/* Shared editorial case-study layout. Site colour/type tokens live in styles.css. */
.story-page { background: var(--paper-soft); }
.story-page .nav-links a.button { color: var(--white); background: var(--water-dark); }
.story-page :focus-visible { outline: 3px solid var(--water-dark); outline-offset: 5px; }
.story-skip { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--white); padding: 12px 20px; }
.story-skip:focus { top: 12px; }
.story { --reading: 700px; }
.story [id] { scroll-margin-top: 110px; }
.story figure, .story dl { margin: 0; }
.story dd { margin: 0; }
.story-header { padding-top: 30px; }
.story-breadcrumb { display: flex; flex-wrap: wrap; gap: 10px; color: var(--ink-soft); font-size: .82rem; margin-bottom: 42px; }
.story-breadcrumb a { text-underline-offset: 4px; }
.story-kicker { color: var(--water-dark); text-transform: uppercase; font-size: .74rem; letter-spacing: .13em; font-weight: 750; margin: 0 0 16px; }
.story-header > .story-kicker, .story-header h1, .story-deck, .story-meta { max-width: 860px; margin-left: auto; margin-right: auto; text-align: center; }
.story-header h1 { font: 400 clamp(2.7rem, 5.2vw, 4.7rem)/1.04 var(--serif); letter-spacing: 0; color: var(--blue); margin-top: 0; margin-bottom: 24px; max-width: 780px; }
.story-deck { max-width: 760px; font-size: 1.16rem; line-height: 1.75; margin-bottom: 18px; color: var(--ink-soft); }
.story-meta { font-size: .8rem; margin-bottom: 32px; color: var(--ink-soft); }
.story-meta span { margin: 0 9px; }
.story-photo img { width: 100%; height: auto; border-radius: 3px; }
.story-photo figcaption { font-size: .8rem; line-height: 1.55; color: var(--ink-soft); padding: 12px 0 0; max-width: 85ch; }
.story-photo .story-credit { white-space: nowrap; }
.story-facts { padding: 30px 0 26px; }
.story-small-heading { font-family: var(--sans); font-size: .72rem; font-weight: 750; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 18px; }
.story-facts dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.story-facts dl > div { border-left: 1px solid var(--line); padding: 0 25px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.story-facts dl > div:first-child { border: 0; padding-left: 0; }
.story-facts dt { color: var(--ink-soft); font-size: .83rem; }
.story-facts dd { color: var(--blue); font: 400 clamp(1.7rem, 2.7vw, 2.6rem)/1.2 var(--serif); margin-bottom: 8px; overflow-wrap: anywhere; }
.story-contents { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 27px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .83rem; }
.story-contents > span { color: var(--ink-soft); margin-right: auto; }
.story-contents a { text-decoration-thickness: 1px; text-underline-offset: 5px; padding: 5px 0; }
.story-section { padding-top: 76px; padding-bottom: 76px; }
.story-reading { max-width: var(--reading); margin: 0 auto; }
.story-prose h2 { font: 400 clamp(2rem, 3.4vw, 2.9rem)/1.15 var(--serif); letter-spacing: 0; color: var(--blue); margin: 0 0 25px; }
.story-prose p:not(.story-kicker) { font-size: 1.075rem; line-height: 1.85; margin: 0 0 20px; }
.story-prose p:last-child { margin-bottom: 0; }
.story-prose h3 { font: 400 1.7rem/1.25 var(--serif); color: var(--blue); margin: 0 0 18px; }
.story-context { display: grid; grid-template-columns: minmax(0, 700px) minmax(0, 310px); justify-content: space-between; gap: 60px; }
.story-brief { align-self: start; border-top: 3px solid var(--water-dark); padding-top: 22px; }
.story-brief h2, .story-roles h3 { font: 400 1.55rem/1.2 var(--serif); color: var(--blue); margin: 0 0 22px; }
.story-brief dl > div { margin: 0 0 20px; }
.story-brief dt { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--ink-soft); margin-bottom: 6px; }
.story-brief dd { font-size: .94rem; line-height: 1.7; }
.story-text-link { text-underline-offset: 5px; font-size: .88rem; }
.story-photo-break { padding-bottom: 70px; }
.story-response { background: #eaf0ef; }
.story-process { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; list-style: none; padding: 0; margin: 40px 0 48px; counter-reset: process; }
.story-process li { border-top: 1px solid #adbfbc; padding-top: 20px; counter-increment: process; }
.story-process li::before { content: "0" counter(process); color: var(--water-dark); font-size: .8rem; font-weight: 750; }
.story-process h3 { font: 400 1.5rem/1.25 var(--serif); color: var(--blue); margin: 8px 0 12px; }
.story-process p { margin: 0; font-size: .95rem; line-height: 1.7; }
.story-feature { display: grid; grid-template-columns: 1.3fr 1fr; gap: 45px; align-items: center; }
.story-photo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 25px; margin-top: 34px; }
.story-photo-grid img { aspect-ratio: 4/3; object-fit: cover; }
.story-delivery { background: #f0e9dd; }
.story-roles dl > div { border-top: 1px solid #cfc0aa; padding: 16px 0; }
.story-roles dt { font-weight: 700; color: var(--blue); font-size: .94rem; margin-bottom: 6px; }
.story-roles dd { font-size: .9rem; line-height: 1.7; }
.story-evidence { background: var(--blue); color: var(--white); padding: 38px 48px; margin-top: 32px; }
.story-evidence-label { margin: 0 0 24px; font-size: .8rem; letter-spacing: .03em; }
.story-evidence-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.story-evidence-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.story-evidence-stats dt { font-size: .87rem; line-height: 1.6; max-width: 27ch; }
.story-evidence-stats dd { font: 400 3rem/1.1 var(--serif); margin-bottom: 12px; }
.story-quote { margin: 32px 0 0; padding-top: 28px; border-top: 1px solid #65788f; }
.story-quote p { font: 400 clamp(1.45rem, 2.5vw, 2rem)/1.5 var(--serif); max-width: 850px; margin: 0 0 20px; }
.story-quote footer { font-size: .84rem; color: #e8eef2; line-height: 1.7; }
.story-source { font-size: .78rem; color: #e8eef2; line-height: 1.7; margin: 24px 0 0; }
.story-meaning { margin-top: 38px; }
.story-support { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--paper); padding: 48px 0; }
.story-support-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 70px; align-items: center; }
.story-support h2 { font: 400 2.2rem/1.2 var(--serif); color: var(--blue); margin: 0 0 16px; }
.story-support p { margin-bottom: 0; }
.story-support-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.story-support-actions .button { background: var(--earth-dark); }
.story-support-actions p { font-size: .78rem; color: var(--ink-soft); margin: 0; }
.story-notes { padding-top: 46px; padding-bottom: 50px; }
.story-notes h2 { font: 400 1.6rem/1.2 var(--serif); color: var(--blue); margin: 0 0 16px; }
.story-notes p, .story-notes li { font-size: .88rem; line-height: 1.8; }
.story-notes details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 15px 0; margin: 22px 0; }
.story-notes summary { cursor: pointer; color: var(--blue); font-size: .9rem; font-weight: 650; padding: 5px 0; }
.story-notes details p:last-child { margin-bottom: 0; }
.story-updated { color: var(--ink-soft); }
@media (max-width: 950px) {
  .story-context { grid-template-columns: minmax(0, 1fr) 260px; gap: 35px; }
  .story-facts dl > div { padding: 0 14px; }
  .story-feature { gap: 28px; }
  .story-contents { gap: 8px 20px; }
  .story-contents > span { width: 100%; }
}
@media (max-width: 700px) {
  .story-header { padding-top: 20px; }
  .story-breadcrumb { margin-bottom: 28px; font-size: .75rem; }
  .story-header h1, .story-header > .story-kicker, .story-deck, .story-meta { text-align: left; }
  .story-header h1 { font-size: clamp(2.65rem, 10vw, 3.6rem); }
  .story-deck { font-size: 1.05rem; line-height: 1.75; }
  .story-meta { font-size: .74rem; }
  .story-meta span { margin: 0 4px; }
  .story-header .story-photo img { aspect-ratio: 16/10; object-fit: cover; object-position: 35% 50%; }
  .story-facts dl { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
  .story-facts dl > div:nth-child(3) { border: 0; padding-left: 0; }
  .story-facts dd { font-size: 1.8rem; }
  .story-facts dt { font-size: .78rem; }
  .story-section { padding-top: 46px; padding-bottom: 46px; }
  .story-context, .story-feature, .story-support-inner { grid-template-columns: 1fr; gap: 32px; }
  .story-brief { padding-top: 20px; }
  .story-brief dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 22px; overflow-wrap: anywhere; }
  .story-prose p:not(.story-kicker) { font-size: 1rem; line-height: 1.85; }
  .story-process { grid-template-columns: 1fr; gap: 24px; margin: 28px 0 34px; }
  .story-process h3 { margin-top: 6px; }
  .story-photo-break { padding-bottom: 42px; }
  .story-photo-grid { grid-template-columns: 1fr; gap: 28px; }
  .story-evidence { padding: 28px 22px; }
  .story-evidence-stats { grid-template-columns: 1fr; gap: 24px; }
  .story-evidence-stats > div { border-bottom: 1px solid #65788f; padding-bottom: 20px; }
  .story-evidence-stats > div:last-child { border: 0; padding-bottom: 0; }
  .story-evidence-stats dt { max-width: none; }
  .story-evidence-stats dd { font-size: 2.5rem; }
  .story-quote { margin-top: 24px; }
  .story-support { padding: 36px 0; }
  .story-support h2 { font-size: 1.9rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .site-header, .site-footer, .story-contents, .story-breadcrumb, .story-support, .story-skip { display: none; }
  .story-section { padding-top: 25px; padding-bottom: 25px; }
  .story-evidence { background: white; color: #203039; border: 1px solid #ded3c3; }
  .story-source, .story-quote footer { color: #203039; }
  .story-photo, .story-quote { break-inside: avoid; }
}
