/* =========================================================
   OBITUARIES MODULE (SCOPED)
   - Only used on obituaries.html
   - Scoped under .obit-page so it won't affect global site
========================================================= */

.obit-page *{ box-sizing: border-box; }
.obit-page{ padding: 6px 0 10px; }

/* Local tokens for obituary module (do not override :root) */
.obit-page{
  --ob-panel: #e9ecef;
  --ob-ink: #111;
  --ob-white-frame: #f8f8f8;

  --ob-shadow-1: 0 10px 24px rgba(0,0,0,.35);
  --ob-shadow-2: 0 2px 8px rgba(0,0,0,.25);

  --ob-plate: #0f2b3a;
  --ob-plate-2: #0b2230;
  --ob-stripe-a: rgba(255,255,255,.10);
  --ob-stripe-b: rgba(255,255,255,.03);

  --ob-id-dark: #111;
  --ob-id-dark-2:#2a2a2a;
}

.obit-page .obit-wrap{ max-width: 1400px; margin: 0 auto; }

/* TAPS header */
.obit-page .obit-hero{
  position: relative;
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  margin-bottom: 18px;
  background: #000;
}
.obit-page .obit-hero-img{ width: 100%; height: auto; display: block; }
.obit-page .obit-hero::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,.45),
    rgba(0,0,0,.15) 40%,
    rgba(0,0,0,0)
  );
  pointer-events:none;
}

@media (max-width: 768px){
  .obit-page .obit-hero-img{
    height: 260px;
    object-position: left top;
    object-fit: cover;
  }
}

/* list */
.obit-page .obit-list{
  display:grid;
  gap: 18px;
}

/* row layout */
.obit-page .obit-row{
  display:grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
  align-items: start;
}

/* photo frame */
.obit-page .obit-photo{
  position: relative;
  border-radius: 6px;
  background: var(--ob-white-frame);
  padding: 10px;
  box-shadow: var(--ob-shadow-2);
  overflow: hidden;
}
.obit-page .obit-photo::before{
  content:"";
  position:absolute;
  inset: 6px;
  border-radius: 4px;
  box-shadow:
    inset 0 0 0 2px rgba(0,0,0,.08),
    inset 0 0 0 1px rgba(255,255,255,.35);
  pointer-events:none;
}
.obit-page .obit-photo img{
  width:100%;
  height: 330px;
  display:block;
  object-fit: cover;
  border-radius: 3px;
}

/* panel */
.obit-page .obit-panel{
  position: relative;
  background: var(--ob-panel);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--ob-shadow-1);
  min-height: 330px;
  display:flex;
  flex-direction: column;
  color: var(--ob-ink);
}

/* nameplate header */
.obit-page .obit-header{
  position: relative;
  margin: 0;
  padding: 12px 12px 10px;
}
.obit-page .obit-header .plate{
  position: relative;
  display: grid;
  grid-template-columns: 1fr 120px 190px;
  gap: 10px;
  align-items: center;

  padding: 10px 10px 8px;
  border-radius: 10px 10px 12px 12px;

  background: linear-gradient(#ffffff, #f2f2f2);
  box-shadow:
    0 2px 6px rgba(0,0,0,.30),
    inset 0 0 0 2px rgba(255,255,255,.65),
    inset 0 0 0 1px rgba(0,0,0,.08);
}
.obit-page .obit-header .plate::before{
  content:"";
  position:absolute;
  inset: 7px;
  border-radius: 7px 7px 10px 10px;
  background: linear-gradient(145deg, var(--ob-plate), var(--ob-plate-2));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.10),
    inset 0 -10px 22px rgba(0,0,0,.22);
  z-index: 0;
}

.obit-page .obit-header .tabs{
  position:absolute;
  left: 18px;
  top: -7px;
  width: calc(100% - 36px);
  height: 14px;
  z-index: 2;
  pointer-events: none;
}
.obit-page .obit-header .tabs::before{
  content:"";
  position:absolute;
  left: 0;
  top: 0;
  width: 55%;
  height: 14px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(#ffffff, #e9e9e9);
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
}
.obit-page .obit-header .tabs::after{
  content:"";
  position:absolute;
  left: 58%;
  top: 2px;
  width: 24%;
  height: 12px;
  border-radius: 10px 10px 0 0;
  background: linear-gradient(#ffffff, #ededed);
  box-shadow: 0 2px 4px rgba(0,0,0,.22);
}

.obit-page .obit-name,
.obit-page .obit-id,
.obit-page .obit-flag{
  position: relative;
  z-index: 1;
}

.obit-page .obit-name{
  color: #fff;
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: .8px;
  font-size: 20px;
  padding: 8px 12px;
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      135deg,
      var(--ob-stripe-a) 0,
      var(--ob-stripe-a) 4px,
      var(--ob-stripe-b) 4px,
      var(--ob-stripe-b) 8px
    );
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.12),
    0 1px 0 rgba(0,0,0,.35);
}

.obit-page .obit-id{
  text-align:center;
  font-weight: 900;
  font-size: 16px;
  color:#fff;
  padding: 8px 12px;
  border-radius: 6px;
  background: linear-gradient(145deg, var(--ob-id-dark-2), var(--ob-id-dark));
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.14),
    0 2px 5px rgba(0,0,0,.45);
}

.obit-page .obit-flag{
  height: 40px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
  -webkit-clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
  clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.20),
    0 2px 4px rgba(0,0,0,.35);
}
.obit-page .obit-flag img{
  width: 100%;
  height: 100%;
  display:block;
  object-fit: cover;
  filter: contrast(1.05) saturate(1.05);
}

.obit-page .obit-header .corner{
  position:absolute;
  width: 14px; height: 14px;
  background: linear-gradient(#fff, #eaeaea);
  box-shadow: 0 2px 4px rgba(0,0,0,.25);
  z-index: 3;
}
.obit-page .obit-header .corner.tl{ left: 6px; top: 6px; border-radius: 3px 0 0 0; }
.obit-page .obit-header .corner.tr{ right: 6px; top: 6px; border-radius: 0 3px 0 0; }

/* body text */
.obit-page .obit-body{
  padding: 14px 18px 10px;
  font-size: 16px;
}
.obit-page .obit-body p{ margin: 0 0 12px; }

/* ========= Read More + PDF inline row ========= */
.obit-page .obit-more-row{
  display:flex;
  align-items:flex-start;
  gap: 14px;
  margin: 0 18px 16px;
}
.obit-page .obit-more-row .obit-actions{
  margin-left: auto;         /* pushes button to far right */
  display:flex;
  align-items:flex-start;
}

/* read more */
.obit-page .obit-more{
  flex: 1 1 auto;            /* summary stays left, content expands */
  margin: 0;
  padding: 0;
  border-top: none;
}
.obit-page .obit-more summary{
  cursor:pointer;
  list-style:none;
  display:inline-block;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  color:#111;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
}
.obit-page .obit-more summary:hover{ background:#f2f2f2; }
.obit-page .obit-more summary::-webkit-details-marker{ display:none; }
.obit-page .obit-more summary:before{ content:"Read More ▸"; }
.obit-page .obit-more details[open] summary:before{ content:"Read Less ▾"; }

.obit-page .obit-more-content{ margin-top: 12px; font-size: 15px; }
.obit-page .obit-more-content h4{
  margin: 10px 0 8px;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: #0e2a3a;
}

/* gallery */
.obit-page .obit-gallery{
  display:grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 12px 0 6px;
}
.obit-page .obit-gallery .pic{
  height: 330px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0,0,0,.16);
  background:#fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.20);
}
.obit-page .obit-gallery img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

/* PDF button (gold) */
.obit-page .obit-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.18);
  background: #fff;
  color:#111;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 1px 2px rgba(0,0,0,.15);
  text-decoration:none;
  white-space: nowrap;
}
.obit-page .obit-btn:hover{ background:#f2f2f2; }

.obit-page .obit-btn.gold{
  background: linear-gradient(135deg, rgba(201,178,107,1), rgba(201,178,107,.75));
  border: 1px solid rgba(201,178,107,.85);
  color: #0b0d10;
  box-shadow: 0 3px 8px rgba(0,0,0,.25), 0 0 8px rgba(201,178,107,.25);
  transition: transform .22s ease, box-shadow .22s ease;
}
.obit-page .obit-btn.gold:hover{
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,.35), 0 0 12px rgba(201,178,107,.45);
}

/* obituary module footer */
.obit-page .obit-footer{
  margin-top: 18px;
  text-align:center;
  color: rgba(231,237,245,.75);
  font-size: 13px;
}

/* responsive (obituaries) */
@media (max-width: 980px){
  .obit-page .obit-row{ grid-template-columns: 1fr; }
  .obit-page .obit-photo img{ height: 260px; }
  .obit-page .obit-gallery .pic{ height: 260px; }
  .obit-page .obit-header .plate{ grid-template-columns: 1fr 110px 170px; }
}
@media (max-width: 560px){
  .obit-page .obit-header .plate{ grid-template-columns: 1fr; gap: 8px; }
  .obit-page .obit-id{ text-align:left; }
  .obit-page .obit-flag{ width: 100%; }
}

/* Mobile stack for Read More + PDF */
@media (max-width: 600px){
  .obit-page .obit-more-row{
    flex-direction: column;
    align-items: stretch;
  }
  .obit-page .obit-more-row .obit-actions{
    margin-left: 0;
  }
  .obit-page .obit-btn{
    width: 100%;
  }
}

/* =========================================================
   ISSUE BAR (Edition Navigation)
========================================================= */

.issue-bar{
  margin: 16px 0 22px;
}

.issue-bar-inner{
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
  padding: 10px 14px;
  border-radius: 14px;
  background: #0e2430;
  box-shadow: 0 6px 16px rgba(0,0,0,.35);
}

.issue-current{
  margin-left:auto;
  font-weight:900;
  letter-spacing:.5px;
  color:#fff;
  padding:6px 12px;
  border-radius:8px;
  background: rgba(255,255,255,.1);
}

.issue-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:7px 12px;
  border-radius: 8px;
  font-weight:800;
  font-size:14px;
  text-decoration:none;
  border:1px solid rgba(255,255,255,.25);
  color:#fff;
  background: rgba(255,255,255,.08);
  transition: all .2s ease;
}

.issue-btn:hover{
  background: rgba(255,255,255,.18);
}

.issue-btn.gold{
  background: linear-gradient(135deg, #c9b26b, #b79e4f);
  border:1px solid #c9b26b;
  color:#0b0d10;
}

.issue-btn.ghost{
  background: transparent;
}

.issue-btn.disabled{
  opacity:.4;
  pointer-events:none;
}

@media (max-width:700px){
  .issue-bar-inner{
    justify-content:center;
  }

  .issue-current{
    margin-left:0;
  }
}