/* ITDC — Story page */
.story-page{padding-top:74px;background:var(--paper)}

/* Stories archive page */
.stories-index-hero{padding:80px 0 48px}
.stories-filter{
  display:flex;justify-content:center;gap:8px;flex-wrap:wrap;
  max-width:720px;margin:32px auto 0;   /* two even rows of five on wide screens */
}
.filter-chip{
  appearance:none;background:transparent;cursor:pointer;
  font:inherit;font-size:14px;font-weight:500;
  padding:9px 18px;border:1px solid rgba(15,42,53,.18);
  border-radius:999px;color:var(--ink);
  transition:background .2s ease,border-color .2s ease,color .2s ease;
}
.filter-chip:hover{border-color:rgba(15,42,53,.4)}
.filter-chip.is-active{background:var(--ink);color:#fff;border-color:var(--ink)}
.stories-archive{margin-top:8px}
.stories-archive .story{transition:opacity .25s ease}

.story-hero{padding:72px 0 36px;text-align:center}
.story-eyebrow{
  font-family:'Inter',sans-serif;font-size:12px;font-weight:600;
  letter-spacing:.16em;text-transform:uppercase;color:var(--accent-ink);
  margin-bottom:22px;
}
.story-title{
  font-family:'Fraunces','Inter',serif;
  font-size:clamp(36px,5.4vw,68px);
  font-weight:480;line-height:1.04;letter-spacing:-.022em;
  color:var(--ink);margin:0 auto;max-width:880px;
  text-wrap:balance;
  font-variation-settings:"opsz" 96,"SOFT" 50;
}
.story-title .line{display:inline-block;overflow:hidden;padding:.04em 0 .16em;line-height:1.05}
.story-title .line > span{display:inline-block;padding-bottom:.05em}
.js .story-title .line > span{animation:line-rise 1.1s var(--ease-out) .2s both}
.story-sub{
  max-width:680px;margin:22px auto 0;
  font-size:clamp(17px,1.4vw,20px);line-height:1.55;color:var(--muted);
  text-wrap:pretty;
}
.story-meta{
  margin-top:26px;display:flex;justify-content:center;gap:10px;
  font-size:13px;letter-spacing:.04em;color:var(--slate);
}
.story-meta .dot{opacity:.6}

.story-figure{padding:28px 0 56px}
.figure-img{
  width:100%;aspect-ratio:16/9;border-radius:24px;
  background-size:cover;background-position:center;
  box-shadow:0 50px 110px -60px rgba(15,42,53,.35);
}

.story-body{
  max-width:740px;padding:0 24px 96px;
  font-family:'Inter',sans-serif;
  font-size:17px;line-height:1.75;color:#243947;
}
.story-body p{margin:0 0 1.2em}
.story-body .lede{
  font-family:'Fraunces',serif;
  font-size:clamp(20px,1.8vw,24px);
  font-weight:430;line-height:1.55;color:var(--ink);
  margin-bottom:1.8em;
  font-variation-settings:"opsz" 48;
}

.story-pull{
  margin:48px -8px;padding:36px 40px;
  border-left:3px solid var(--accent);
  background:linear-gradient(180deg,#ffffff,#faf6ec);
  border-radius:0 18px 18px 0;
  box-shadow:0 30px 70px -50px rgba(15,42,53,.18);
}
.story-pull p{
  font-family:'Fraunces',serif;font-style:italic;
  font-size:clamp(20px,1.9vw,26px);line-height:1.45;
  color:var(--ink);margin:0 0 14px;text-wrap:balance;
}
.story-pull cite{
  font-style:normal;font-family:'Inter',sans-serif;
  font-size:13px;letter-spacing:.06em;color:var(--muted);
}

.story-cta{
  margin-top:64px;padding:48px;
  background:linear-gradient(180deg,#1a3d4a,#0f2a35);
  color:#fff;border-radius:24px;text-align:center;
  box-shadow:0 40px 90px -50px rgba(15,42,53,.5);
}
.story-cta h2{
  font-size:clamp(22px,2.4vw,30px);
  font-weight:480;line-height:1.2;margin:0 0 12px;
  text-wrap:balance;
}
.story-cta p{
  max-width:520px;margin:0 auto 26px;
  color:rgba(255,255,255,.78);line-height:1.6;
}
.story-cta .cta-row{
  display:flex;justify-content:center;gap:12px;flex-wrap:wrap;
}
.story-cta .btn-dark{
  background:transparent;color:#fff;
  border:1px solid rgba(255,255,255,.3);
}
.story-cta .btn-dark:hover{background:rgba(255,255,255,.08)}

@media (max-width:760px){
  .story-page{padding-top:64px}
  .story-hero{padding:48px 22px 24px}
  .story-figure{padding:16px 0 40px}
  .figure-img{border-radius:16px;aspect-ratio:4/3}
  .story-body{font-size:16px;padding:0 22px 72px}
  .story-pull{margin:36px 0;padding:28px 24px;border-radius:0 14px 14px 0}
  .story-cta{padding:36px 24px;border-radius:20px}
}

/* Stories index: program-area filters */
@media (max-width:760px){
  /* Phones: one row that scrolls sideways instead of a wall of chips */
  .stories-filter{
    flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;
    margin:26px -22px 0;padding:2px 32px 6px 22px;
    scrollbar-width:none;overscroll-behavior-x:contain;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 30px),transparent);
            mask-image:linear-gradient(90deg,transparent 0,#000 18px,#000 calc(100% - 30px),transparent);
  }
  .stories-filter::-webkit-scrollbar{display:none}
  .filter-chip{flex:0 0 auto;padding:8px 15px;font-size:13.5px}
}
.stories-count{margin-top:16px;font-size:13.5px;color:var(--muted)}
.stories-archive .story[hidden]{display:none}

/* Quiet link back to all stories, above the story title */
.story-back{display:inline-flex;align-items:center;gap:8px;margin-bottom:22px;font-size:13.5px;font-weight:600;color:var(--muted);transition:color .3s var(--ease),gap .3s var(--ease)}
.story-back:hover{color:var(--teal);gap:11px}
.story-back + .story-eyebrow{display:block}
