@import url("../../assets/fonts.css");

/* ================= AERIAL CURRENT — drenched deep-water survey =================
   Color strategy: drenched. The page IS the water. Deep ink-teal carries the
   whole story river; light "landings" of photography interrupt it like sunlit
   banks. Yellow and orange are reserved for human moments and the donate act. */

:root {
  --ts-white: oklch(1 0 0);
  --ts-ink: oklch(.25 .035 201);
  --ts-muted: oklch(.42 .03 201);
  --ts-teal: oklch(.56 .11 174);
  --ts-teal-deep: oklch(.34 .075 184);
  --ts-blue: oklch(.55 .105 229);
  --ts-water: oklch(.72 .10 188);
  --ts-water-bright: oklch(.82 .105 185);
  --ts-water-light: oklch(.95 .025 191);
  --ts-orange: oklch(.72 .17 51);
  --ts-yellow: oklch(.88 .17 93);
  --ts-green: oklch(.64 .17 142);
  --ts-abyss: oklch(.19 .045 210);
  --ts-deep: oklch(.24 .055 205);
  --ts-deep-2: oklch(.29 .06 200);
  --z-nav: 40; --z-dialog: 60; --z-skip: 100;
  font-family: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ts-abyss); color: var(--ts-white); font-size: 1.02rem; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
h1, h2, h3 { font-family: Archivo, "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-weight: 800; letter-spacing: -.03em; margin-top: 0; text-wrap: balance; }
p { margin-top: 0; }
:focus-visible { outline: 3px solid var(--ts-yellow); outline-offset: 3px; }

.skip-link { position: fixed; left: 1rem; top: -4rem; z-index: var(--z-skip); padding: .7rem 1rem; color: var(--ts-ink); background: var(--ts-yellow); font-weight: 700; border-radius: .3rem; }
.skip-link:focus { top: 1rem; }

/* --- Masthead: thin survey bar --- */
.masthead { position: sticky; top: 0; z-index: var(--z-nav); display: flex; align-items: center; gap: clamp(1rem, 3vw, 3rem); min-height: 4.4rem; padding: .6rem clamp(1.1rem, 4vw, 3.5rem); background: oklch(.19 .045 210 / .92); backdrop-filter: blur(6px); border-bottom: 1px solid oklch(.35 .06 200); }
.brand img { width: clamp(6.6rem, 11vw, 9rem); height: auto; filter: brightness(0) invert(1); }
.masthead nav { display: flex; flex: 1; justify-content: center; gap: clamp(.9rem, 2.6vw, 2.2rem); font-size: .8rem; font-weight: 700; flex-wrap: wrap; }
.masthead nav a { color: var(--ts-water-bright); text-decoration: none; padding: .3rem 0; }
.masthead nav a:hover, .masthead nav a:focus-visible { color: var(--ts-yellow); }
.donate-button { padding: .6rem 1.15rem; color: var(--ts-abyss); background: var(--ts-yellow); border-radius: 999px; font-weight: 800; font-size: .85rem; text-decoration: none; }
.donate-button:hover, .donate-button:focus-visible { background: var(--ts-orange); }

/* --- Hero --- */
.hero { position: relative; display: grid; place-items: center; min-height: min(52rem, calc(100svh - 4.4rem)); overflow: hidden; padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 6rem); background: linear-gradient(180deg, var(--ts-abyss), var(--ts-deep) 75%); }
.hero-media { position: absolute; inset: 0; }
.hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, oklch(.19 .045 210 / .55), oklch(.19 .045 210 / .78)); }
.hero-video { width: 100%; height: 100%; object-fit: cover; }
.video-toggle { position: absolute; right: clamp(1rem, 3vw, 2.5rem); bottom: 1.2rem; z-index: 2; padding: .5rem .95rem; border: 2px solid var(--ts-water-bright); border-radius: 999px; background: oklch(.19 .045 210 / .75); color: var(--ts-water-bright); font-weight: 700; font-size: .78rem; }
.video-toggle:hover, .video-toggle:focus-visible { background: var(--ts-water-bright); color: var(--ts-abyss); }
@media (max-width: 44rem) { .hero-media, .video-toggle { display: none; } }

.hero-inner { position: relative; z-index: 1; max-width: 62rem; text-align: center; }
.hero-kicker { margin-bottom: 1.4rem; color: var(--ts-water-bright); font-weight: 700; font-size: .86rem; letter-spacing: .04em; }
.hero h1 { margin-bottom: 1.6rem; font-size: clamp(3.2rem, 8.6vw, 6rem); font-weight: 900; line-height: .94; }
.hero h1 em { font-style: normal; color: var(--ts-yellow); }
.hero-deck { max-width: 36rem; margin: 0 auto 2.2rem; font-size: clamp(1.05rem, 1.9vw, 1.28rem); line-height: 1.55; color: oklch(.9 .03 191); }
.hero-cta { display: inline-flex; align-items: center; gap: .7rem; padding: .9rem 1.5rem; color: var(--ts-abyss); background: var(--ts-water-bright); font-weight: 800; text-decoration: none; border-radius: .3rem; }
.hero-cta:hover, .hero-cta:focus-visible { background: var(--ts-yellow); }
.hero-coord { position: absolute; bottom: 1.4rem; left: 50%; translate: -50% 0; z-index: 1; margin: 0; color: oklch(.62 .07 190); font: 700 .68rem/1 Archivo, sans-serif; letter-spacing: .22em; white-space: nowrap; }

/* --- Headwaters: light bank --- */
.headwaters { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(2rem, 5vw, 5rem) clamp(2rem, 6vw, 6rem); align-items: center; padding: clamp(4.5rem, 9vw, 8.5rem) clamp(1.25rem, 6vw, 7rem); background: var(--ts-water-light); color: var(--ts-ink); }
.headwaters h2 { max-width: 14ch; margin-bottom: 1.4rem; color: var(--ts-teal-deep); font-size: clamp(2.3rem, 4.6vw, 4.2rem); line-height: .98; }
.headwaters .lede { font-size: clamp(1.08rem, 1.8vw, 1.3rem); line-height: 1.6; max-width: 58ch; }
.headwaters p { max-width: 58ch; }
.headwaters-photo { margin: 0; }
.headwaters-photo img { border-radius: .4rem; box-shadow: 0 30px 60px -30px oklch(.34 .075 184 / .55); }
.headwaters-photo figcaption { margin-top: .7rem; color: var(--ts-muted); font-size: .78rem; }
.leader-note { grid-column: 1 / -1; margin: 0; padding: clamp(1.6rem, 3vw, 2.4rem) clamp(1.6rem, 4vw, 3rem); background: var(--ts-white); border-radius: .5rem; border: 1px solid oklch(.86 .03 190); }
.leader-note p { max-width: 60ch; margin-bottom: .9rem; font-family: Archivo, sans-serif; font-weight: 700; font-size: clamp(1.15rem, 2vw, 1.5rem); line-height: 1.35; letter-spacing: -.01em; color: var(--ts-teal-deep); }
.leader-note cite { font-style: normal; font-size: .84rem; color: var(--ts-muted); }

/* --- Riverway: the drenched story current --- */
.riverway { position: relative; padding: clamp(4.5rem, 9vw, 8rem) 0 clamp(3rem, 6vw, 5rem); background: linear-gradient(180deg, var(--ts-deep), var(--ts-deep-2) 55%, var(--ts-deep)); overflow: clip; }
.riverway-head { max-width: 46rem; margin: 0 auto clamp(3rem, 6vw, 5.5rem); padding: 0 clamp(1.25rem, 5vw, 3rem); text-align: center; }
.riverway-head h2 { margin-bottom: 1rem; font-size: clamp(2.4rem, 5.4vw, 4.6rem); line-height: .96; }
.riverway-head p { color: oklch(.87 .035 190); }
.riverway-track { position: relative; max-width: 74rem; margin: 0 auto; padding: 1rem clamp(1.25rem, 5vw, 4rem); }
.spine { position: absolute; top: 0; bottom: 0; left: 50%; translate: -50% 0; width: clamp(4rem, 9vw, 9rem); height: 100%; pointer-events: none; }
#spine-path { stroke: var(--ts-water); stroke-width: 4; opacity: .85; }
body[data-anim] #spine-path { stroke-dasharray: var(--spine-len, 2600); stroke-dashoffset: var(--spine-offset, 2600); transition: stroke-dashoffset .25s linear; }
.landing { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.4rem, 3.5vw, 3rem); align-items: center; width: min(100%, 64rem); margin: 0 auto clamp(4rem, 8vw, 7rem); }
.landing figure { margin: 0; grid-row: 2; }
.landing .coord { grid-column: 1 / -1; grid-row: 1; margin: 0 0 .2rem; color: var(--ts-water-bright); font: 700 .72rem/1.2 Archivo, sans-serif; letter-spacing: .18em; }
.landing figure img { border-radius: .4rem; box-shadow: 0 24px 50px -22px oklch(0 0 0 / .6); }
.landing-plate { grid-row: 2; padding-left: clamp(0rem, 2vw, 1.5rem); border-left: 0; }
.landing-alt figure { order: 2; }
.landing-alt .landing-plate { order: 1; padding-left: 0; padding-right: clamp(0rem, 2vw, 1.5rem); text-align: right; }
.landing-alt .landing-plate .open-story { margin-left: auto; }
.landing h3 { margin-bottom: .7rem; font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.05; }
.landing h3 span { display: block; margin-top: .35rem; color: var(--accent, var(--ts-yellow)); font-family: "Open Sans", sans-serif; font-weight: 700; font-size: .88rem; letter-spacing: .01em; }
.landing .preview { max-width: 44ch; color: oklch(.9 .03 190); }
.landing-alt .preview { margin-left: auto; }
.open-story { display: inline-flex; align-items: center; gap: .55rem; margin: .4rem 0 .8rem; padding: .62rem 1.1rem; color: var(--ts-abyss); background: var(--accent, var(--ts-yellow)); border: 0; border-radius: 999px; font-weight: 800; font-size: .86rem; }
.open-story:hover, .open-story:focus-visible { background: var(--ts-white); }
.landing .attribution { margin: 0; color: oklch(.68 .05 190); font-size: .74rem; }
body[data-anim] .landing { opacity: 0; translate: 0 16px; transition: opacity 500ms var(--report-ease-out), translate 500ms var(--report-ease-out); }
body[data-anim] .landing.in-view { opacity: 1; translate: 0 0; }
.riverway-note { margin: 0 auto; padding: 0 clamp(1.25rem, 5vw, 3rem); max-width: 46rem; text-align: center; color: oklch(.68 .05 190); font-size: .8rem; }

/* --- Gauges --- */
.gauges { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 7rem); background: var(--ts-abyss); border-top: 1px solid oklch(.32 .055 200); }
.gauges header { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.gauges h2 { margin-bottom: 1rem; font-size: clamp(2.2rem, 4.6vw, 3.8rem); }
.gauges header p { color: oklch(.87 .035 190); }
.gauge-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); margin: 0; }
.gauge { padding-top: 1.2rem; border-top: 3px solid var(--ts-water); }
.gauge:nth-child(2) { border-top-color: var(--ts-yellow); }
.gauge:nth-child(3) { border-top-color: var(--ts-green); }
.gauge:nth-child(4) { border-top-color: var(--ts-orange); }
.gauge dt { margin-bottom: .5rem; font-size: .86rem; font-weight: 700; color: oklch(.85 .04 190); }
.gauge dd { margin: 0; }
.gauge strong { display: block; font-family: Archivo, sans-serif; font-weight: 900; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; letter-spacing: -.02em; }
.gauge span { display: block; margin-top: .4rem; color: oklch(.78 .05 190); font-size: .9rem; }
.gauge-source { margin: 2.6rem 0 0; color: var(--ts-yellow); font-size: .74rem; font-weight: 700; letter-spacing: .05em; }

/* --- Sea: supporter + donate --- */
.sea { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: center; padding: clamp(4.5rem, 9vw, 8.5rem) clamp(1.25rem, 6vw, 7rem); background: var(--ts-water-light); color: var(--ts-ink); }
.supporter { margin: 0; }
.supporter p { margin-bottom: 1rem; font-family: Archivo, sans-serif; font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.4rem); line-height: 1.2; letter-spacing: -.02em; color: var(--ts-teal-deep); }
.supporter cite { font-style: normal; color: var(--ts-muted); font-size: .84rem; }
.sea-close h2 { margin-bottom: 1rem; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; color: var(--ts-ink); }
.sea-close p { max-width: 46ch; }
.support-button { display: inline-block; margin: .6rem 0 1rem; padding: 1rem 1.7rem; color: var(--ts-white); background: var(--ts-teal-deep); border-radius: 999px; font-weight: 800; font-size: 1.05rem; text-decoration: none; }
.support-button:hover, .support-button:focus-visible { background: var(--ts-blue); }
.sea .fine { margin: 0; color: var(--ts-muted); font-size: .76rem; }

/* --- Print sample --- */
.print-sample { padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 7rem); background: var(--ts-white); color: var(--ts-ink); }
.print-sample h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); margin-bottom: .8rem; color: var(--ts-teal-deep); }
.print-sample > p { max-width: 56ch; margin-bottom: 2.4rem; }
.sheet { display: grid; grid-template-columns: 3rem 1fr; width: min(24rem, 100%); aspect-ratio: 8.5 / 11; padding: 1.4rem 1.4rem 1.4rem 0; background: var(--ts-white); border: 1px solid oklch(.85 .01 200); border-radius: .3rem; box-shadow: 0 24px 48px -28px oklch(.34 .075 184 / .5); }
.sheet-margin { color: var(--ts-blue); }
.sheet-margin svg { width: 100%; height: 100%; }
.sheet-body { display: flex; flex-direction: column; gap: .55rem; }
.sheet-coord { margin: 0; color: var(--ts-teal); font: 700 .58rem/1 Archivo, sans-serif; letter-spacing: .16em; }
.sheet-photo { height: 28%; background: linear-gradient(135deg, var(--ts-water), var(--ts-teal-deep)); border-radius: .2rem; }
.sheet h3 { margin: .2rem 0 0; font-size: .95rem; }
.sheet-line { height: .45rem; margin: 0; background: oklch(.9 .008 200); border-radius: 99px; }
.sheet-line.short { width: 62%; }
.sheet-quote { margin: .3rem 0 0; color: var(--ts-orange); font: 800 .8rem/1.25 Archivo, sans-serif; }

/* --- Main-site footer --- */
.footer { position: relative; border-bottom: .4rem solid var(--ts-orange); background: var(--ts-white); color: var(--ts-ink); }
.footer-cta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); justify-items: center; gap: clamp(2rem, 6vw, 6rem); padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 6vw, 7rem); color: #fff; text-align: center; background-color: #5BB6A5; background-image: url("https://2025.tenstrands.org/wp-content/uploads/2025/10/grilled-noise-pattern-1.png"); }
.footer-cta h3 { margin-bottom: .55rem; color: #fff; font-size: clamp(1.75rem, 3.2vw, 2.375rem); font-weight: 600; line-height: 1; }
.footer-cta p { max-width: 38ch; margin-bottom: 1.25rem; color: #fff; font-size: clamp(1rem, 1.7vw, 1.25rem); font-weight: 500; }
.footer_donate, .footer_newsletter { width: min(100%, 34rem); max-width: 34rem; }
.footer_donate fieldset { margin: 0; padding: 0; border: 0; }
.footer_donate legend { margin-bottom: .55rem; font-size: .85rem; font-weight: 800; }
.footer-donate-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .45rem; }
.footer_donate input[type="radio"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
.footer_donate label { display: grid; place-items: center; min-width: 0; height: 47px; padding: .35rem .25rem; border: 1px solid #707070; border-radius: 5px; background: #fff; color: #333; cursor: pointer; font-size: 22px; font-weight: 700; line-height: 47px; text-align: center; }
.footer_donate label:hover { background: #F2F2F2; }
.footer_donate input[type="radio"]:checked + label { background: #FF8300; border-color: #FF8300; color: #fff; }
.footer_donate input[type="radio"]:focus-visible + label { outline: 3px solid var(--ts-abyss); outline-offset: 3px; }
.footer_donate button, .footer_newsletter button { width: 100%; height: 47px; min-height: 47px; margin-top: 20px; padding: 0 1rem; border: 0; border-radius: 3px; background: #00836B; color: #fff; font-size: 25px; font-weight: 700; line-height: 47px; text-transform: uppercase; cursor: pointer; }
.footer_donate button { border-radius: 10px; }
.footer_donate button:hover, .footer_donate button:focus-visible, .footer_newsletter button:hover, .footer_newsletter button:focus-visible { background: #005F4E; }
.footer-newsletter-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.footer-newsletter-fields input { width: 100%; min-width: 0; height: 38px; min-height: 38px; padding: 10px 8px; border: 1px solid #686E77; border-radius: 3px; background: #fff; color: #112337; font-size: 14px; }
.footer-newsletter-fields input:focus-visible { outline: 3px solid var(--ts-abyss); outline-offset: 3px; }
.footer-brand { display: flex; justify-content: center; padding: clamp(2rem, 4vw, 3.5rem) clamp(1.25rem, 6vw, 7rem) 1.25rem; }
.footer-brand a, .footer-social a, .footer-legal a, .footer-top { font-weight: 700; text-decoration: none; }
.footer .footer-brand > a { display: block; flex: 0 1 min(350px, 100%); inline-size: min(350px, 100%); min-inline-size: 0; max-inline-size: 100%; }
.footer .footer-brand > a > img { display: block; width: 100%; height: auto; }
.footer-social a { color: #14836C; }
.footer-legal a { color: #000; }
.footer-brand a:focus-visible, .footer-social a:focus-visible, .footer-legal a:focus-visible, .footer-top:focus-visible { outline: 3px solid var(--ts-abyss); outline-offset: 3px; }
.footer-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 1.2rem 2rem; align-items: center; padding: 1.25rem clamp(1.25rem, 6vw, 7rem) 2.25rem; color: #454545; font-size: .82rem; }
.footer-meta p { margin: 0; }
.footer-social ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.footer-social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; }
.footer-social a:hover { color: #005F4E; background: transparent; }
.footer-social svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: end; gap: .45rem 1rem; }
.footer-legal a:hover { color: #000; text-decoration: underline; }
.footer-top, .back-to-top { position: fixed; right: 0; bottom: 76px; z-index: var(--z-nav); display: inline-flex; align-items: center; justify-content: flex-start; gap: 14px; width: 80px; height: 24px; padding: 5px 15px 5px 10px; border: 0; border-radius: 5px 0 0 5px; background: #FC842A; color: #fff; font-size: 14px; line-height: 14px; text-decoration: none; }
.footer-top svg { width: 14px; height: 14px; flex: 0 0 14px; fill: currentColor; }
.footer-top span { display: inline-block; }
.footer-top:hover { background: #FC842A; color: #fff; }
.footer-top:focus-visible { outline: 3px solid var(--ts-abyss); outline-offset: 3px; }
.footer-visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap !important; border: 0 !important; }

/* --- Dialogs --- */
.story-dialog { z-index: var(--z-dialog); width: min(44rem, calc(100vw - 2rem)); border: 0; border-radius: .6rem; padding: 0; background: var(--ts-white); color: var(--ts-ink); box-shadow: .85rem .85rem 0 var(--ts-orange); }
.story-dialog::backdrop { background: oklch(.19 .045 210 / .8); }
.dialog-inner { padding: clamp(1.6rem, 4vw, 2.8rem); }
.dialog-inner img { margin: 0 0 1.4rem; border-radius: .4rem; max-height: 21rem; width: 100%; object-fit: cover; }
.dialog-meta { margin-bottom: .5rem; color: var(--ts-teal); font-weight: 700; font-size: .84rem; }
.dialog-inner h2 { margin-bottom: 1.1rem; font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.05; color: var(--ts-teal-deep); }
.dialog-inner blockquote { margin: 1.2rem 0; padding: 0; font-family: Archivo, sans-serif; font-weight: 800; font-size: 1.2rem; color: var(--ts-orange); }
.dialog-source { margin: 0; color: var(--ts-muted); font-size: .8rem; }
.dialog-close { position: sticky; top: 1rem; float: right; width: 2.6rem; height: 2.6rem; border: 0; border-radius: 50%; background: var(--ts-teal-deep); color: var(--ts-white); font-size: 1.3rem; line-height: 1; }
.dialog-close:hover, .dialog-close:focus-visible { background: var(--ts-orange); }

/* --- Responsive --- */
@media (max-width: 56rem) {
  .masthead nav { display: none; }
  .headwaters, .sea { grid-template-columns: 1fr; }
  .landing { grid-template-columns: 1fr; width: 100%; }
  .landing-alt figure { order: 0; }
  .landing-alt .landing-plate { order: 0; text-align: left; padding-right: 0; }
  .landing-alt .landing-plate .open-story { margin-left: 0; }
  .landing-alt .preview { margin-left: 0; }
  .spine { left: auto; right: .4rem; translate: 0 0; width: 2.6rem; opacity: .5; }
  .hero-coord { font-size: .58rem; letter-spacing: .16em; }
}

/* --- Reduced motion: the Impact spine is fully drawn without scroll motion --- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-video, .video-toggle { display: none; }
  .hero-media { background: url("../../assets/video/statewide-current-poster.jpg") center / cover; }
  body[data-anim] #spine-path { stroke-dashoffset: 0 !important; transition: none; }
  body[data-anim] .landing { opacity: 1; translate: 0 0; transition: opacity 120ms ease; }
}

/* --- Print: chart-sheet adaptation --- */
@media print {
  body { background: #fff; color: #111; }
  .masthead, .skip-link, .open-story, .hero-cta, .support-button, .print-sample, .hero-media, .video-toggle, .footer-top { display: none; }
  .hero, .riverway, .gauges { background: #fff; color: #111; padding: 1.5rem 0; }
  .hero h1 em, .landing h3 span, .gauge-source { color: #b35a00; }
  .riverway-head p, .landing .preview, .gauges header p, .gauge dt, .gauge span { color: #333; }
  .landing { break-inside: avoid; margin-bottom: 2rem; }
  .spine { display: none; }
  .story-dialog { display: block; position: static; width: 100%; border-top: 2px solid #0e4d5c; border-radius: 0; padding: 1rem 0; }
  .story-dialog .dialog-close { display: none; }
  .headwaters, .sea { grid-template-columns: 1fr; background: #fff; color: #111; }
}

/* ================= R6 — SOURCE TO SEA CONTENT SYSTEM =================
   These overrides keep the reference data readable while giving the selected
   concept its own editorial rhythm. */
.statewide-current .endmatter { background: #fbfcf8; }
.statewide-current .em-leadership-grid { align-items: end; }
.statewide-current .em-letter { padding-bottom: 1rem; }
.statewide-current .em-signature-stack { margin-top: 2rem; }
.statewide-current .em-founders-portrait img { border-radius: .35rem 2.5rem .35rem 2.5rem; }
.statewide-current .em-supporters + .em-financials { border-top: 0; }

@media (min-width: 57rem) {
  .statewide-current .em-leadership-grid { grid-template-columns: 24rem 18rem; gap: 2rem; justify-content: start; align-items: end; }
  .statewide-current .em-letter { display: contents; }
  .statewide-current .em-letter .em-rich-text { grid-column: 1 / -1; grid-row: 1; }
  .statewide-current .em-letter .em-signature-stack { grid-column: 1; grid-row: 2; width: 24rem; max-width: 100%; margin-top: 0; }
  .statewide-current .em-founders-portrait { grid-column: 2; grid-row: 2; width: 18rem; max-width: 100%; align-self: end; }
}

/* The full 2025 supporter voices stay native dialogs; cards expose a useful
   quote preview so the page is skimmable without opening anything. */
.statewide-current .endmatter-2025 .em-supporters { width: min(100%, 66rem); max-width: 66rem; margin-inline: auto; }
.statewide-current .em-supporter-grid { grid-template-columns: 1fr; gap: 0; border-top: 0; }
.statewide-current .em-supporter { position: relative; min-height: 0; padding: clamp(1.25rem, 3vw, 2.25rem) 0; border-top: 1px solid var(--ref-rule); background: transparent; text-align: left; }
.statewide-current .em-supporter::after { display: none; }
.statewide-current .em-supporter-summary { display: grid; grid-template-columns: clamp(10rem, 18vw, 12rem) minmax(0, 1fr); gap: clamp(1rem, 2.5vw, 2rem); align-items: center; flex: 1; min-width: 0; }
.statewide-current .em-supporter-summary img { flex: 0 0 clamp(10rem, 18vw, 12rem); width: clamp(10rem, 18vw, 12rem); height: clamp(10rem, 18vw, 12rem); border: .55rem solid #fbfcf8; box-shadow: 0 0 0 1px var(--ts-water), .65rem .65rem 0 color-mix(in srgb, var(--ts-water) 28%, transparent); }
.statewide-current .em-supporter-summary > span { display: block; min-width: 0; }
.statewide-current .em-supporter-summary strong { font-size: 1.08rem; }
.statewide-current .em-supporter:hover .em-supporter-summary img,
.statewide-current .em-supporter:focus-visible .em-supporter-summary img { transform: scale(1.04); box-shadow: 0 0 0 1px var(--ts-orange), .55rem .55rem 0 color-mix(in srgb, var(--ts-orange) 34%, transparent); }
.statewide-current .em-supporter-summary small { max-width: 32ch; }
.statewide-current button.em-supporter:nth-of-type(even) .em-supporter-summary { grid-template-columns: minmax(0, 1fr) clamp(10rem, 18vw, 12rem); }
.statewide-current button.em-supporter:nth-of-type(even) .em-supporter-summary img { grid-column: 2; grid-row: 1; }
.statewide-current button.em-supporter:nth-of-type(even) .em-supporter-summary > span { grid-column: 1; grid-row: 1; justify-self: end; inline-size: min(100%, 42rem); max-inline-size: 100%; text-align: right; }
.statewide-current button.em-supporter:nth-of-type(even) .em-supporter-summary small,
.statewide-current button.em-supporter:nth-of-type(even) .current-voice-quote { margin-left: auto; margin-right: 0; text-align: right; }
.current-voice-quote { display: block; margin: .8rem 0 0; max-width: 48ch; color: var(--ref-muted); font: 600 .84rem/1.5 "Open Sans", sans-serif; }
.current-voice-quote::before { content: "“"; margin-right: .1rem; color: var(--ts-orange); font: 900 1.8rem/.6 Archivo, sans-serif; vertical-align: -.25rem; }

/* Charts are an always-visible overview; the native complete tables remain
   below in the three disclosure groups for accessible detail. */
.current-financial-atlas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 2rem 0 2.75rem; }
.current-donut-card { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: 1rem; align-items: center; min-width: 0; padding: 1.1rem; border: 1px solid color-mix(in srgb, var(--ts-teal) 35%, var(--ref-rule)); background: #f1f7f3; }
.current-donut { --chart-progress: 0deg; --chart-stops: var(--ts-teal) 0deg var(--chart-progress), color-mix(in srgb, var(--ts-water) 24%, white) var(--chart-progress) 360deg; display: grid; place-items: center; width: 8rem; aspect-ratio: 1; border-radius: 50%; background: conic-gradient(var(--chart-stops)); transform: rotate(-18deg); transition: background 1.2s cubic-bezier(.22,.9,.3,1); }
.current-donut::before { content: ""; grid-area: 1 / 1; width: 66%; aspect-ratio: 1; border-radius: 50%; background: #f1f7f3; }
.current-donut span { grid-area: 1 / 1; z-index: 1; color: var(--ts-ink); font: 900 1.15rem/1 Archivo, sans-serif; transform: rotate(18deg); }
.current-chart-kicker { margin: 0 0 .25rem; color: var(--ts-orange); font: 800 .68rem/1.2 Archivo, sans-serif; letter-spacing: .12em; text-transform: uppercase; }
.current-donut-card h3 { margin: 0 0 .35rem; color: var(--ref-head); font-size: 1.08rem; }
.current-donut-card > div > p:last-child { margin: 0; color: var(--ref-muted); font-size: .8rem; line-height: 1.45; }
.current-chart-key { grid-column: 1 / -1; display: grid; gap: .35rem; margin: .25rem 0 0; padding: .7rem 0 0; border-top: 1px solid var(--ref-rule); list-style: none; color: var(--ref-muted); font-size: .74rem; }
.current-chart-key li { display: grid; grid-template-columns: .55rem minmax(0, 1fr) auto; gap: .4rem; align-items: center; }
.current-chart-key i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--ts-teal); }
.current-chart-key li:nth-child(2) i { background: var(--ts-orange); }
.current-chart-key li:nth-child(3) i { background: var(--ts-yellow); }
.current-chart-key li:nth-child(4) i { background: var(--ts-blue); }
.current-chart-key b { color: var(--ref-ink); font-variant-numeric: tabular-nums; font-weight: 700; }
.statewide-current .em-financial-group { border-radius: 0; background: #f4f8f4; }
.statewide-current .em-financial-group > summary { font-size: .98rem; }

/* Donors read as a field of names with a quiet tide-line, not a stack of
   boxes. */
.statewide-current .em-donor-tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; }
.statewide-current .em-tier { border: 0; background: transparent; }
.statewide-current .em-tier > h3 { padding: .9rem 0; border-bottom: 2px solid var(--ts-water); }
.statewide-current .em-tier ul { padding: .2rem 0 1rem; }
.statewide-current .em-donor { min-height: 2.25rem; padding: .15rem 0; border-bottom: 1px dotted color-mix(in srgb, var(--ts-teal) 30%, var(--ref-rule)); }
.statewide-current .em-donor:hover { color: var(--ts-teal-deep); }
.statewide-current .em-badge { width: 1.5rem; height: 1.5rem; }
.statewide-current .em-donor-tiers > .em-tier[data-tier="1-5"],
.statewide-current .em-donor-tiers > .em-tier[data-tier="0-1"] { grid-column: 1 / -1; }
.statewide-current .em-donor-tiers > .em-tier[data-tier="1-5"] ul,
.statewide-current .em-donor-tiers > .em-tier[data-tier="0-1"] ul { columns: 2; column-gap: 2rem; }
.statewide-current .em-donor-tiers > .em-tier[data-tier="1-5"] li,
.statewide-current .em-donor-tiers > .em-tier[data-tier="0-1"] li { break-inside: avoid; }
.statewide-current .em-legend { display: grid; gap: .75rem; margin: 1.5rem 0 1.4rem; padding: 1rem 0; border-block: 1px solid var(--ref-rule); }
.statewide-current .em-legend > h3 { margin: 0; color: var(--ref-head); font: 800 .9rem/1.2 Archivo, sans-serif; }
.statewide-current .em-legend-list { display: flex; flex-wrap: wrap; gap: .75rem 1.4rem; margin: 0; padding: 0; list-style: none; }
.statewide-current .em-legend-item { display: inline-flex; gap: .45rem; align-items: center; color: var(--ref-muted); }
.statewide-current .em-legend-five { position: relative; display: inline-grid; place-items: center; width: 1.55rem; height: 1.55rem; color: var(--ts-yellow); font-size: 1.8rem; line-height: 1; }
.statewide-current .em-legend-five b { position: absolute; color: var(--ts-white); font: 800 .64rem/1 Archivo, sans-serif; }
.statewide-current .em-partner-list { columns: 4 14rem; column-gap: 2rem; }
.statewide-current .em-partner-list li { border-bottom-color: color-mix(in srgb, var(--ts-teal) 26%, var(--ref-rule)); }
.statewide-current .em-people { gap: 1.3rem 1rem; }
.statewide-current .em-person img { width: 4rem; height: 4rem; border-radius: .3rem 1.2rem .3rem 1.2rem; }

@media (max-width: 58rem) {
  .current-financial-atlas { grid-template-columns: 1fr; }
  .current-donut-card { grid-template-columns: 8rem minmax(0, 1fr); }
  .statewide-current .em-partner-list { columns: 3 14rem; }
}
@media (max-width: 38rem) {
  .statewide-current .em-donor-tiers { grid-template-columns: 1fr; }
  .statewide-current .em-partner-list { columns: 1; }
  .current-donut-card { grid-template-columns: 7rem minmax(0, 1fr); padding: .85rem; }
  .current-donut { width: 6.6rem; }
  .statewide-current .em-supporter-summary,
  .statewide-current button.em-supporter:nth-of-type(even) .em-supporter-summary { grid-template-columns: clamp(7rem, 28vw, 8rem) minmax(0, 1fr); gap: 1rem; }
  .statewide-current .em-supporter-summary img,
  .statewide-current button.em-supporter:nth-of-type(even) .em-supporter-summary img { grid-column: 1; grid-row: 1; flex-basis: clamp(7rem, 28vw, 8rem); width: clamp(7rem, 28vw, 8rem); height: clamp(7rem, 28vw, 8rem); }
  .statewide-current button.em-supporter:nth-of-type(even) .em-supporter-summary > span { grid-column: 2; grid-row: 1; justify-self: stretch; inline-size: auto; max-inline-size: none; text-align: left; }
  .statewide-current button.em-supporter:nth-of-type(even) .em-supporter-summary small,
  .statewide-current button.em-supporter:nth-of-type(even) .current-voice-quote { margin-left: 0; margin-right: 0; text-align: left; }
  .statewide-current .em-donor-tiers > .em-tier[data-tier="1-5"] ul,
  .statewide-current .em-donor-tiers > .em-tier[data-tier="0-1"] ul { columns: 1; }
}

@media (max-width: 767px) {
  .footer-cta { grid-template-columns: 1fr; padding-top: 5.5rem; scroll-margin-top: 5.5rem; }
  .footer-invest, .footer-connect { scroll-margin-top: 5.5rem; }
  .footer-meta { grid-template-columns: 1fr; text-align: center; }
  .footer-legal { justify-content: center; }
}

@media (max-width: 390px) {
  .footer-donate-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-newsletter-fields { grid-template-columns: 1fr; }
  .footer-top, .back-to-top { position: static; width: 80px; min-width: 80px; height: 24px; min-height: 24px; margin: .25rem 1rem 1.25rem auto; }
}

@media (forced-colors: active) {
  .footer-top, .back-to-top { forced-color-adjust: none; border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; }
  .footer-top:focus-visible, .back-to-top:focus-visible, .footer_donate button:focus-visible, .footer_newsletter button:focus-visible, .footer-newsletter-fields input:focus-visible { outline-color: Highlight; }
}

@media print {
  .current-financial-atlas { grid-template-columns: repeat(3, 1fr); }
  .current-donut-card { break-inside: avoid; }
}

/* --- End matter: founders, financials, donors, partners, team (shared block) --- */
.endmatter { --em-head: var(--ts-teal-deep); --em-accent: var(--ts-orange); --em-rule: oklch(.87 .015 195); padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 6vw, 7rem); background: var(--ts-white); color: var(--ts-ink); }
.endmatter .em-block { max-width: 74rem; padding: clamp(2rem, 4vw, 3rem) 0; border-top: 1px solid var(--em-rule); }
.endmatter .em-block:first-child { padding-top: 0; border-top: 0; }
.endmatter h2 { margin-bottom: 1.2rem; font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1; color: var(--em-head); }
.endmatter h3 { margin: 0 0 .6rem; font-size: 1.02rem; color: var(--em-accent); }
.endmatter .em-note { margin: .6rem 0 0; font-size: .78rem; color: var(--ts-muted); }
.endmatter .em-intro { max-width: 60ch; margin-bottom: 1.4rem; font-size: .92rem; color: var(--ts-muted); }
.em-founders-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .6fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: start; }
.em-letter p:first-child { max-width: 62ch; font-size: 1.06rem; line-height: 1.7; }
.em-signatures p { margin: 0 0 1rem; }
.em-signatures strong { display: block; font-family: Archivo, "Arial Narrow", sans-serif; font-size: 1.2rem; letter-spacing: -.01em; }
.em-signatures span { font-size: .86rem; color: var(--ts-muted); }
.em-table { width: min(100%, 44rem); border-collapse: collapse; }
.em-table caption { padding-bottom: .7rem; text-align: left; }
.em-table th, .em-table td { padding: .65rem .4rem; border-bottom: 1px solid var(--em-rule); font-size: .95rem; text-align: left; }
.em-table thead th { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--em-head); }
.em-table td { font-variant-numeric: tabular-nums; font-weight: 700; }
.em-table tbody th { font-weight: 400; }
.em-table .em-total th, .em-table .em-total td { border-bottom: 3px double var(--em-head); font-weight: 800; }
.em-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.4rem 2rem; }
.em-tier ul, .em-partner-list, .em-people { list-style: none; margin: 0; padding: 0; }
.em-tier li, .em-partner-list li { padding: .28rem 0; font-size: .92rem; border-bottom: 1px dotted var(--em-rule); }
.em-legend { margin: 1.4rem 0 0; font-size: .8rem; color: var(--ts-muted); }
.em-tier li span { color: var(--em-accent); }
.em-partner-list { columns: 3; column-gap: 2.5rem; max-width: 60rem; }
.em-people { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: .7rem 2rem; max-width: 60rem; }
.em-people li strong { display: block; font-size: .95rem; }
.em-people li span { font-size: .82rem; color: var(--ts-muted); }
.em-people.em-compact { display: block; }
.em-people.em-compact li { padding: .24rem 0; font-size: .92rem; border-bottom: 1px dotted var(--em-rule); }
.em-boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem 3rem; margin-top: 1.8rem; max-width: 60rem; }
.em-contact { max-width: 74rem; margin: 2.2rem 0 0; padding-top: 1.6rem; border-top: 3px solid var(--em-accent); font-weight: 700; font-size: .95rem; }
@media (max-width: 56rem) { .em-founders-grid { grid-template-columns: 1fr; } .em-partner-list { columns: 2; } }
@media (max-width: 40rem) { .em-partner-list { columns: 1; } }
@media print { .endmatter { padding: 1.5rem 0; background: #fff; color: #111; } .endmatter .em-block { break-inside: avoid; } }

/* ================= R6 — SOURCE TO SEA =================
   The client-selected R1 current, carried end to end through the scroll-
   scrubbed source-to-sea passage and the editorial report sections. */

/* --- Supporter voice on the front (client: quote from a larger testimonial) --- */
.hero-voice { margin: clamp(2rem, 5vh, 3.4rem) auto 0; max-width: 46rem; }
.hero-voice blockquote { margin: 0 0 .55rem; color: var(--ts-water-bright); font: 600 clamp(.94rem, 1.5vw, 1.08rem)/1.55 "Open Sans", sans-serif; }
.hero-voice blockquote::before { content: "“"; margin-right: .15rem; color: var(--ts-yellow); font: 900 1.9rem/.4 Archivo, sans-serif; vertical-align: -.4rem; }
.hero-voice figcaption { color: oklch(.78 .05 190); font-size: .76rem; font-weight: 700; letter-spacing: .03em; }
.hero-voice figcaption a { color: var(--ts-water-bright); }

/* --- Source-to-sea scroll passage (scrubbed by scroll) --- */
.descent { position: relative; height: 260vh; background: var(--ts-abyss); }
.descent-sticky { position: sticky; top: 4.4rem; height: calc(100svh - 4.4rem); overflow: hidden; }
.descent-video { width: 100%; height: 100%; object-fit: cover; }
.descent-caption { position: absolute; left: clamp(1.25rem, 6vw, 6rem); bottom: clamp(2rem, 6vh, 4rem); max-width: 30rem; padding: 1.2rem 1.5rem; background: oklch(.19 .045 210 / .78); border-radius: .5rem; }
.descent-caption p { margin: 0; font: 800 clamp(1.4rem, 2.6vw, 2rem)/1.1 Archivo, sans-serif; letter-spacing: -.02em; }
.descent-caption .descent-sub { margin-top: .5rem; font: 400 .92rem/1.5 "Open Sans", sans-serif; color: oklch(.9 .03 191); }
.descent-caption .descent-sub span { display: block; margin-top: .4rem; color: var(--ts-yellow); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 44rem) { .descent { height: 200vh; } }

/* --- Team names link to the staff page --- */
.em-person-link { color: inherit; text-decoration: none; border-bottom: 1px dotted color-mix(in srgb, var(--ts-teal) 45%, transparent); }
.em-person-link:hover, .em-person-link:focus-visible { color: var(--ts-teal-deep); border-bottom-color: var(--ts-teal-deep); }
.statewide-current .em-person:has(.em-person-link) { position: relative; border-radius: .3rem 1.2rem .3rem 1.2rem; transition: background-color 180ms ease-out, box-shadow 180ms ease-out, translate 180ms ease-out; }
.statewide-current .em-person:has(.em-person-link):hover,
.statewide-current .em-person:has(.em-person-link):focus-within { translate: 0 -.18rem; background: var(--ts-white); box-shadow: 0 0 0 2px var(--ts-teal-deep), .45rem .45rem 0 var(--ts-yellow); }
.statewide-current .em-person:has(.em-person-link) .em-person-link { position: static; }
.statewide-current .em-person:has(.em-person-link) .em-person-link::after { content: ""; position: absolute; inset: 0; cursor: pointer; }
.statewide-current .em-person:has(.em-person-link) .em-person-link:hover,
.statewide-current .em-person:has(.em-person-link) .em-person-link:focus-visible { color: var(--ts-teal-deep); border-bottom: 2px solid var(--ts-teal-deep); }
.statewide-current .em-person:has(.em-person-link) .em-person-link:focus-visible { outline: 3px solid var(--ts-abyss); outline-offset: 4px; }

/* --- Reduced motion & print for the source-to-sea passage --- */
@media (prefers-reduced-motion: reduce) {
  .descent { height: auto; }
  .descent-sticky { position: static; height: clamp(20rem, 60vh, 34rem); }
  .statewide-current .em-person:has(.em-person-link) { transition: none; }
  .statewide-current .em-person:has(.em-person-link):hover,
  .statewide-current .em-person:has(.em-person-link):focus-within { translate: none; }
}
@media print {
  .descent { display: none; }
  .hero-voice blockquote { color: #333; }
}
