/* Engine roots. Tokens, fonts and resets are scoped so a host page's own
   chrome is untouched; the standalone shell opts in with <html class="pt-shell">
   and loads shell.css for its header, hero chrome and footer. */
html.pt-shell, .river-app, #site-dialog, .watch-insights {
  color-scheme: light;
  /* Sticky chrome above the explorer. The host site sets --pt-chrome-offset
     to its header + section-bar height; standalone falls back to its own header. */
  --header-h: var(--pt-chrome-offset, 76px);
  --eco-sky: #9ACCD6;
  --eco-yellow: #F8E04E;
  --eco-green: #7ca47c;
  --sky-pale: #EAF3F5;
  --yellow-pale: #FDF6C0;
  --green-pale: #D4E4D4;
  --teal: #5A8FA0;
  --teal-deep: #4A6E4A;
  --green-deep: #4A6E4A;
  --yellow-deep: #C9A800;
  --ink: #102c33;
  --muted: #465e63; /* 5.2:1 on Sage Tint */
  --line: rgba(16, 44, 51, .16);
  --white: #fff;
  --surface: #fff;
  --surface-alt: #f3f9fa;
  --shadow: 0 24px 70px rgba(16, 44, 51, .17);
  --font-body: "Barlow", sans-serif;
  --font-display: "Barlow Semi Condensed", sans-serif;
  font-family: var(--font-body);
}

:is(.river-app, #site-dialog, .watch-insights), :is(.river-app, #site-dialog, .watch-insights) * { box-sizing: border-box; }
:is(.river-app, #site-dialog, .watch-insights) :is(button, input, select) { font: inherit; }
:is(.river-app, #site-dialog, .watch-insights) :is(button, a) { -webkit-tap-highlight-color: transparent; }
:is(.river-app, #site-dialog, .watch-insights) img { display: block; max-width: 100%; }
:is(.river-app, #site-dialog, .watch-insights) a { color: inherit; }
.sr-only { 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; }

.hero { min-height: calc(100svh - var(--pt-chrome-offset, 76px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .84fr); grid-template-rows: 1fr auto; align-items: center; gap: 2rem 6vw; padding: clamp(3rem, 6vw, 6rem) clamp(1.25rem, 6vw, 7rem) 2.5rem; background: radial-gradient(circle at 9% 12%, rgba(248,224,78,.42), transparent 21%), linear-gradient(rgba(154,204,214,.18) 1px, transparent 1px), linear-gradient(90deg, rgba(154,204,214,.18) 1px, transparent 1px), var(--surface-alt); background-size: auto, 42px 42px, 42px 42px, auto; overflow: hidden; }
.hero-copy { max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .17em; font-size: .72rem; font-weight: 800; color: var(--green-deep); margin: 0 0 1rem; }
.eyebrow.light { color: var(--eco-yellow); }
.hero h1 { font-family: var(--font-display); font-size: clamp(3rem, 5.2vw, 5.5rem); line-height: .98; letter-spacing: -.04em; max-width: 920px; margin: 0; font-weight: 500; }
.hero h1 em { font-family: inherit; font-style: normal; font-weight: 300; color: var(--teal); }
.hero-copy > p:not(.eyebrow) { max-width: 680px; font-size: clamp(.98rem, 1.2vw, 1.14rem); line-height: 1.62; color: var(--muted); margin: 1.35rem 0 1.5rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.hero-actions > a:not(.primary-action) { color: var(--teal-deep); font-size: .9rem; font-weight: 750; }
.primary-action, .light-action { display: inline-flex; align-items: center; gap: 1.1rem; padding: 1rem 1.3rem; border-radius: 999px; background: var(--eco-yellow); color: var(--ink); text-decoration: none; font-weight: 750; }
.hero-image { position: relative; margin: 0; align-self: stretch; min-height: 520px; border-radius: 26px 26px 72px 26px; overflow: hidden; box-shadow: var(--shadow); border: 8px solid var(--white); }
.hero-image:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 38, 41, .65)); pointer-events: none; }
.hero-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-image figcaption { position: absolute; z-index: 1; left: 1.5rem; bottom: 1.4rem; color: white; font-size: .78rem; }
.hero-stats { grid-column: 1 / -1; width: 100%; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; border-top: 1px solid var(--line); }
.hero-stats div { min-width: 0; padding: 1.8rem 1rem 0; border-right: 1px solid var(--line); display: flex; gap: 1rem; align-items: baseline; }
.hero-stats div:last-child { border: 0; }
.hero-stats dt { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; color: var(--teal); }
.hero-stats dd { min-width: 0; margin: 0; color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.hero-stat-note { grid-column: 1 / -1; margin: -.9rem 1rem 0 !important; color: var(--teal-deep) !important; font-size: .83rem !important; }
.hero-stat-note strong { font-weight: 800; }

.explorer-section { scroll-margin-top: var(--pt-chrome-offset, 76px); padding: clamp(4rem, 8vw, 7rem) clamp(1rem, 4vw, 4rem); color: white; background: var(--teal-deep); }
.explorer-intro { max-width: 1500px; margin: 0 auto 2rem; display: grid; grid-template-columns: 1.3fr .7fr; gap: 4rem; align-items: end; }
.explorer-intro h2, .section-heading h2, .field-film-copy h2 { font-family: var(--font-display); font-size: clamp(2.4rem, 4.5vw, 5rem); line-height: 1; letter-spacing: -.035em; margin: 0; font-weight: 500; }
.explorer-intro > p { color: #b8cdca; line-height: 1.6; font-size: .92rem; }
.explorer-thesis { max-width: 1500px; margin: -1rem auto 1.5rem; padding: 1rem 1.2rem; display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; border: 1px solid rgba(255,255,255,.16); border-radius: 12px; color: #d8e8e6; background: rgba(255,255,255,.06); }
.explorer-thesis strong { color: var(--eco-yellow); }
.explorer-thesis span, .explorer-thesis a { font-size: .78rem; line-height: 1.45; }
.explorer-thesis a { font-weight: 750; }
.river-app { color: var(--white); width: 100%; max-width: 1600px; height: min(890px, calc(100svh - var(--pt-chrome-offset, 76px))); min-height: 680px; margin: auto; scroll-margin-top: var(--pt-chrome-offset, 76px); display: grid; grid-template-columns: 180px minmax(0, 1fr); border: 1px solid rgba(255,255,255,.2); border-radius: 18px; overflow: hidden; background: #0d3038; box-shadow: 0 35px 100px rgba(0,0,0,.28); }
.load-error { display: grid; place-content: center; gap: .7rem; min-height: 320px; height: 100%; padding: 2rem; text-align: center; color: white; }
.load-error h3 { margin: 0; font-family: var(--font-display); font-size: clamp(1.4rem, 2.4vw, 2rem); font-weight: 400; letter-spacing: -.02em; }
.load-error p { max-width: 46ch; margin: 0 auto; color: #c6d9d7; font-size: .8rem; line-height: 1.6; }
/* Embedded in the site, the partial ships without a rail: the section bar is the rail. */
.river-app:not(:has(> .movement-rail)) { grid-template-columns: minmax(0, 1fr); }
.movement-rail { background: #0a2930; padding: 1.15rem .8rem; display: flex; flex-direction: column; gap: .45rem; border-right: 1px solid rgba(255,255,255,.1); }
.movement-rail button { min-height: 92px; border: 0; border-radius: 12px; padding: .9rem; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto; text-align: left; color: #85a6a2; background: transparent; cursor: pointer; }
.movement-rail button b { color: inherit; font-size: .92rem; }
.movement-rail button small { font-size: .75rem; line-height: 1.3; margin-top: .3rem; }
.movement-rail button[aria-pressed="true"] { background: var(--eco-yellow); color: var(--ink); }
.movement-rail button:disabled, .insight-tabs button:disabled { opacity: .45; cursor: not-allowed; }
.movement-rail button:focus-visible, .world button:focus-visible, .world a:focus-visible { outline: 3px solid var(--eco-yellow); outline-offset: 2px; }
.world { min-width: 0; min-height: 0; height: 100%; position: relative; display: grid; grid-template-rows: 52px minmax(0, 1fr); overflow: hidden; }
.world-topbar { z-index: 8; display: flex; justify-content: space-between; align-items: center; padding: 0 1.1rem; background: rgba(13,45,50,.9); border-bottom: 1px solid rgba(255,255,255,.1); }
.world-topbar p { margin: 0; font-size: .73rem; display: flex; align-items: center; gap: .5rem; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--eco-yellow); box-shadow: 0 0 0 5px rgba(248,224,78,.14); }
.world-tools { display: flex; gap: .45rem; }
.world-tools button[hidden] { display: none; }
.world-tools button { border: 2px solid var(--ink); color: var(--ink); background: white; border-radius: 999px; padding: .45rem .8rem; font-size: .8rem; font-weight: 800; cursor: pointer; }
.creek-world, .map-world { grid-row: 2; min-height: 0; height: 100%; overflow: hidden; }
.map-world { display: grid; grid-template-columns: minmax(0, 1fr) 360px; background: var(--green-pale); color: var(--ink); }
.map-stage { min-height: 0; overflow: hidden; position: relative; background: var(--surface-alt); }
.map-legend { position: absolute; z-index: 2; left: 1rem; bottom: 1rem; display: flex; gap: 1rem; flex-wrap: wrap; padding: .7rem .8rem; border-radius: 9px; color: var(--ink); background: rgba(255,255,255,.92); font-size: .75rem; box-shadow: 0 5px 20px rgba(20,50,54,.15); }
.map-legend span { display: flex; gap: .35rem; align-items: center; }
.map-legend i { display: inline-block; }
.map-legend .line { width: 25px; border-top: 3px solid var(--teal); }
.map-selection { width: 100%; display: flex; flex-direction: column; gap: .18rem; margin: 1rem 0; padding: .7rem .85rem; border-left: 4px solid var(--eco-yellow); border-radius: 8px; color: var(--ink); background: var(--yellow-pale); box-shadow: 0 5px 16px rgba(20,50,54,.1); }
.map-selection[hidden] { display: none; }
.map-selection strong { font-size: .78rem; }
.map-selection span { color: var(--muted); font-size: .75rem; line-height: 1.4; }
.map-guide { padding: clamp(1.5rem, 3vw, 3rem) 1.5rem 6.5rem; background: var(--surface); overflow: auto; }
.scene-step { color: var(--green-deep); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .75rem; margin: 0 0 .8rem; }
.map-guide h3, .thread-panel > h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2rem, 3vw, 3rem); line-height: 1; letter-spacing: -.02em; margin: 0 0 1.1rem; }
.map-guide > p:not(.scene-step), .thread-panel > p:not(.scene-step) { line-height: 1.5; font-size: var(--step-0, 1rem); color: var(--muted); }
.filter-row { display: flex; gap: .4rem; flex-wrap: wrap; margin: 1.3rem 0 1rem; }
.filter-row-label { margin: .8rem 0 .3rem; font-size: .75rem; font-weight: 750; }
.filter-row-label span { display: block; margin-top: .15rem; color: var(--muted); font-weight: 500; font-size: .75rem; }
.filter-row button { border: 1px solid var(--line); color: var(--ink); border-radius: 999px; background: transparent; padding: .55rem .7rem; font-size: .75rem; cursor: pointer; }
.filter-row button[aria-pressed="true"] { color: var(--ink); background: var(--eco-yellow); border-color: var(--eco-yellow); }
.waterway-list { display: grid; gap: .45rem; }
.waterway-list button { width: 100%; min-height: 52px; display: flex; justify-content: space-between; align-items: center; text-align: left; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; cursor: pointer; }
.waterway-list button:hover, .waterway-list button[aria-pressed="true"] { border-color: var(--eco-green); box-shadow: 0 4px 14px rgba(49,72,70,.08); }
.waterway-list button[aria-pressed="true"] { border-left: 6px solid var(--eco-yellow); background: var(--yellow-pale); }
.waterway-list b { font-size: .76rem; }
.waterway-list span { color: var(--muted); font-size: .75rem; }
.map-note { padding-top: 1rem; border-top: 1px solid var(--line); }
.waterway-search { margin: 1.25rem 0 .75rem; }
.waterway-search > label { display: block; margin-bottom: .4rem; color: var(--ink); font-size: .7rem; font-weight: 750; }
.waterway-search > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem; }
.waterway-search input { width: 100%; min-width: 0; min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: .65rem .75rem; color: var(--ink); background: white; }
.waterway-search button { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; padding: .6rem .75rem; color: var(--ink); background: var(--surface-alt); cursor: pointer; }
.waterway-search input:focus-visible, .waterway-search button:focus-visible { outline: 3px solid var(--eco-yellow); outline-offset: 2px; }
.waterway-list-region h4, .site-results h4 { margin: .9rem 0 .5rem; font-size: .75rem; }
.site-results { margin: 1rem 0; padding: .9rem; border: 1px solid rgba(49,93,70,.28); border-radius: 10px; background: var(--green-pale); box-shadow: 0 8px 24px rgba(16,44,51,.08); }
.site-results-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.site-results-header h4 { margin: 0; }
.site-results-header button { width: auto; min-height: 36px; border: 1px solid var(--line); border-radius: 999px; padding: .45rem .65rem; color: var(--ink); background: white; font-size: .75rem; font-weight: 750; cursor: pointer; }
.site-results > p { margin: 0 0 .7rem; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.site-results ul { display: grid; gap: .45rem; margin: 0; padding: 0; list-style: none; }
.site-results button { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 9px; padding: .65rem .75rem; text-align: left; color: var(--ink); background: var(--surface); cursor: pointer; }
.site-results li strong, .site-results li span { display: block; }
.site-results li span { margin-top: .18rem; color: var(--muted); font-size: .75rem; line-height: 1.35; }
.site-effort-comparison { margin: .85rem 0 1rem; padding: .75rem; border-radius: 9px; color: white; background: var(--teal-deep); }
.site-effort-comparison h5, .site-effort-group h5 { margin: 0 0 .55rem; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.site-effort-comparison > div { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.site-effort-comparison article { min-width: 0; padding: .6rem; border: 1px solid rgba(255,255,255,.18); border-radius: 7px; background: rgba(255,255,255,.08); }
.site-effort-comparison article strong, .site-effort-comparison article span { display: block; overflow-wrap: anywhere; }
.site-effort-comparison article strong { color: var(--eco-yellow); font-size: .75rem; }
.site-effort-comparison article span { margin-top: .25rem; color: #d9e9e7; font-size: .75rem; line-height: 1.35; }
.site-effort-comparison > p { margin: .65rem 0 0; color: #d9e9e7; font-size: .75rem; line-height: 1.45; }
.site-effort-group + .site-effort-group { margin-top: 1.1rem; padding-top: 1rem; border-top: 1px solid rgba(16,44,51,.16); }
.site-effort-group-low > p { margin: -.2rem 0 .65rem; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.site-results li em { display: block; margin-top: .4rem; color: var(--green-deep); font-size: .75rem; font-style: normal; font-weight: 800; line-height: 1.35; }
.site-results li.is-low-effort button { border-style: dashed; background: color-mix(in srgb, var(--surface) 82%, var(--sky-pale)); }
.site-results li.is-low-effort strong { font-weight: 650; }
.site-results button:hover, .site-results button:focus-visible { border-color: var(--eco-green); outline: 3px solid rgba(248,224,78,.7); outline-offset: 1px; }
.look-without-harm { margin-top: 1rem; padding: .85rem; border-radius: 9px; background: var(--yellow-pale); }
.look-without-harm strong { font-size: .72rem; }
.look-without-harm p { margin: .35rem 0 0; color: var(--ink); font-size: .75rem; line-height: 1.5; }
.survey-story { margin: 1.2rem 0; padding: 1rem; border-radius: 12px; color: var(--ink); background: var(--sky-pale); }
.survey-story h4 { margin: 0; font-family: var(--font-display); font-size: 1.15rem; }
.survey-split { margin: .3rem 0 0; font-size: .75rem; font-weight: 700; }
.survey-period { margin: .25rem 0 .8rem; color: var(--muted); font-size: .75rem; }
.survey-story-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .45rem; margin: 0; }
.survey-story-stats div { min-width: 0; padding: .6rem; border: 1px solid rgba(16,44,51,.1); border-radius: 8px; background: rgba(255,255,255,.7); }
.survey-story-stats dt { font-family: var(--font-display); font-size: 1.35rem; font-weight: 800; }
.survey-story-stats dd { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.25; }
.survey-months { height: 54px; display: flex; align-items: end; gap: 3px; margin: .85rem 0 .5rem; padding-top: .25rem; border-bottom: 1px solid rgba(16,44,51,.24); }
.survey-months i { width: 100%; height: var(--month-height); min-height: 4px; border-radius: 3px 3px 0 0; background: var(--teal); }
.survey-months-caption { display: flex; justify-content: space-between; gap: .5rem; margin: .2rem 0 .6rem; color: var(--muted); font-size: .75rem; }
.time-bar-caption { margin: 0 0 1rem; color: var(--muted); font-size: .72rem; }
.survey-story-note { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.survey-story-details { margin: .75rem 0; font-size: .75rem; }
.survey-story-details summary { min-height: 36px; display: flex; align-items: center; cursor: pointer; color: var(--teal-deep); font-weight: 850; }
.survey-story-details dl { display: grid; gap: .55rem; margin: .35rem 0 .75rem; }
.survey-story-details div { padding-top: .5rem; border-top: 1px solid rgba(16,44,51,.12); }
.survey-story-details dt { font-weight: 800; }
.survey-story-details dd { margin: .18rem 0 0; color: var(--muted); line-height: 1.4; }
.survey-story-link { min-height: 38px; display: inline-flex; align-items: center; gap: .45rem; margin-top: .7rem; color: var(--teal-deep); font-size: .75rem; font-weight: 850; }

.watch-insights {
  --insight-1: #5A8FA0;
  --insight-2: #7ca47c;
  --insight-3: #d7b813;
  --insight-4: #5d7bb0;
  --insight-5: #a56883;
  --rating-1: #4A6E4A;
  --rating-2: #7ca47c;
  --rating-3: #F8E04E;
  --rating-4: #dd8a58;
  --rating-5: #a74d54;
  scroll-margin-top: var(--pt-chrome-offset, 76px);
  padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 6vw, 7rem);
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 10%, rgba(248,224,78,.2), transparent 24%),
    linear-gradient(135deg, rgba(154,204,214,.14), transparent 42%),
    #f7fbfc;
}
.insights-intro { max-width: 1450px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .65fr); gap: clamp(2rem, 7vw, 7rem); align-items: end; margin: 0 auto 3rem; }
.insights-intro h2 { max-width: 900px; margin: 0; font-family: var(--font-display); font-size: clamp(2.6rem, 5vw, 5.4rem); font-weight: 400; line-height: .98; letter-spacing: -.045em; }
.insights-intro > p { max-width: 600px; margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.7; }
.insight-explorer { max-width: 1450px; min-height: 650px; display: grid; grid-template-columns: 270px minmax(0, 1fr); margin: auto; border: 1px solid rgba(16,44,51,.14); border-radius: 24px; overflow: hidden; background: white; box-shadow: 0 24px 70px rgba(16,44,51,.1); }
.insight-tabs { display: flex; flex-direction: column; gap: 1px; padding: 1rem; background: var(--teal-deep); }
.insight-tabs button { min-height: 94px; display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; align-content: center; gap: .2rem .6rem; border: 0; border-radius: 12px; padding: 1rem; text-align: left; color: #a9c4c2; background: transparent; cursor: pointer; }
.insight-tabs button > span { grid-row: 1 / 3; padding-top: .1rem; color: var(--eco-yellow); font-size: .75rem; font-weight: 850; }
.insight-tabs button strong { color: inherit; font-size: .86rem; }
.insight-tabs button small { color: inherit; font-size: .75rem; line-height: 1.3; }
.insight-tabs button[aria-selected="true"] { color: var(--ink); background: var(--eco-yellow); }
.insight-tabs button[aria-selected="true"] > span { color: var(--green-deep); }
.insight-tabs button:focus-visible, .effort-month:focus-visible { outline: 3px solid var(--eco-yellow); outline-offset: 2px; }
.insight-tabs button[aria-selected="true"]:focus-visible { outline-color: white; }
.insight-panel { min-width: 0; padding: clamp(1.5rem, 4vw, 4.5rem); overflow: hidden; }
.insight-panel-heading { max-width: 880px; }
.insight-kicker { margin: 0 0 .65rem; color: var(--green-deep); font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.insight-panel-heading h3 { max-width: 780px; margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 3.3vw, 3.6rem); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.insight-panel-heading > p:last-child { max-width: 780px; margin: 1rem 0 2rem; color: var(--muted); line-height: 1.6; }
.insight-limit { max-width: 900px; margin: 2rem 0 0; padding: 1rem 1.1rem; border-left: 4px solid var(--eco-yellow); color: var(--muted); background: var(--yellow-pale); font-size: .78rem; line-height: 1.55; }
.insight-limit strong { color: var(--ink); }
.effort-key, .habitat-key { display: flex; flex-wrap: wrap; gap: .65rem 1.2rem; margin-bottom: 1rem; color: var(--muted); font-size: .7rem; }
.effort-key span, .habitat-key span { display: inline-flex; align-items: center; gap: .4rem; }
.effort-key i { width: 11px; height: 11px; border-radius: 2px; }
.effort-key .is-seen { background: var(--eco-yellow); }
.effort-key .is-not-seen { background: var(--teal); }
.effort-chart-scroll { max-width: 100%; overflow-x: auto; padding: .5rem .2rem .8rem; border-bottom: 1px solid var(--line); scrollbar-color: var(--eco-sky) transparent; }
.effort-chart { min-width: 690px; height: 270px; display: grid; grid-template-columns: repeat(14, minmax(42px, 1fr)); gap: .35rem; align-items: end; }
.effort-month { height: 100%; min-width: 0; display: grid; grid-template-rows: 24px minmax(130px, 1fr) 38px; align-items: end; border: 0; border-radius: 9px 9px 0 0; padding: .3rem; color: var(--ink); background: transparent; cursor: pointer; }
.effort-month:hover, .effort-month.is-active { background: var(--sky-pale); }
.effort-total { align-self: center; font-size: .7rem; font-weight: 850; }
.effort-stack { position: relative; width: 100%; height: var(--effort-height); min-height: 3px; display: flex; flex-direction: column; align-self: end; border-radius: 6px 6px 2px 2px; overflow: hidden; background: var(--eco-sky); }
.effort-month.is-partial .effort-stack::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.5) 0 4px, transparent 4px 9px); pointer-events: none; }
.effort-key .is-partial-key { background: repeating-linear-gradient(135deg, var(--teal) 0 3px, white 3px 6px); }
.effort-stack i { display: block; width: 100%; }
.effort-seen { height: var(--seen-share); background: var(--eco-yellow); }
.effort-not-seen { flex: 1; background: var(--teal); }
.effort-month-label { align-self: center; white-space: pre-line; color: var(--muted); font-size: .75rem; line-height: 1.2; }
.insight-selection { display: grid; grid-template-columns: auto 1fr; gap: .25rem 1rem; align-items: baseline; margin-top: 1rem; }
.insight-selection span { grid-row: 1 / 3; min-width: 90px; color: var(--green-deep); font-size: .7rem; font-weight: 850; text-transform: uppercase; letter-spacing: .08em; }
.insight-selection strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.insight-selection p { margin: 0; color: var(--muted); font-size: .75rem; }
.animal-count-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .65rem; margin-bottom: 2rem; }
.animal-count-cards article { min-height: 120px; display: flex; flex-direction: column; justify-content: end; padding: 1.1rem; border-radius: 14px; color: var(--ink); background: var(--sky-pale); border: 1px solid var(--line); }
.animal-count-cards article:nth-child(2) { color: var(--ink); background: var(--eco-sky); }
.animal-count-cards article:nth-child(3) { color: var(--ink); background: var(--eco-yellow); }
.animal-count-cards strong { font-family: var(--font-display); font-size: 2.5rem; font-weight: 500; }
.animal-count-cards span { font-size: .73rem; }
.activity-breakdown h4 { margin: 0 0 1rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 500; }
.activity-row { display: grid; grid-template-columns: minmax(130px, .75fr) minmax(180px, 2fr) 46px; gap: 1rem; align-items: center; padding: .55rem 0; }
.activity-row > span { font-size: .76rem; }
.activity-row > div { height: 12px; border-radius: 999px; overflow: hidden; background: var(--surface-alt); }
.activity-row i { display: block; width: var(--activity-width); height: 100%; border-radius: inherit; background: var(--activity-colour); }
.activity-row strong { text-align: right; font-size: .78rem; }
.time-outcomes, .coverage-bars, .habitat-fields { display: grid; gap: .8rem; }
.time-outcomes article, .coverage-bars article, .habitat-fields article { padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-alt); }
.time-outcomes header, .coverage-bars header, .habitat-fields header { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.time-outcomes h4, .coverage-bars h4, .habitat-fields h4 { margin: 0; font-family: var(--font-display); font-size: 1rem; font-weight: 550; }
.coverage-bars header strong { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; }
.time-measures { display: grid; grid-template-columns: repeat(2, minmax(88px, auto)); gap: .65rem; margin: 0; }
.time-measures > div { min-width: 0; }
.time-measures dt { color: var(--muted); font-size: .75rem; font-weight: 750; letter-spacing: .04em; text-transform: uppercase; }
.time-measures dd { margin: .12rem 0 0; font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; line-height: 1; }
.time-outcomes p, .coverage-bars p, .habitat-fields p { margin: .55rem 0 0; color: var(--muted); font-size: .7rem; line-height: 1.45; }
.time-bar, .coverage-track { height: 13px; margin-top: .65rem; border-radius: 999px; overflow: hidden; background: white; }
.time-bar i { display: block; width: var(--time-width); height: 100%; border-radius: inherit; background: var(--time-colour); }
.coverage-track i { display: block; width: var(--coverage-width); min-width: 3px; height: 100%; border-radius: inherit; background: var(--coverage-colour); }
.habitat-key i { width: 12px; height: 12px; border-radius: 3px; background: var(--rating-colour); }
.habitat-fields { grid-template-columns: 1fr 1fr; }
.habitat-fields header span { color: var(--muted); font-size: .75rem; }
.habitat-stack { height: 18px; display: flex; margin-top: .8rem; overflow: hidden; border-radius: 5px; background: white; }
.habitat-stack i { width: var(--rating-share); height: 100%; background: var(--rating-colour); }
.insight-reading-note { max-width: 1450px; display: grid; grid-template-columns: 180px 1fr auto; gap: 1.5rem; align-items: center; margin: 1rem auto 0; padding: 1.2rem 1.5rem; border-radius: 14px; color: white; background: var(--teal); }
.insight-reading-note strong { font-family: var(--font-display); font-size: 1rem; font-weight: 550; }
.insight-reading-note p { margin: 0; color: #d9eef2; font-size: .75rem; line-height: 1.5; }
.insight-reading-note a { white-space: nowrap; color: var(--eco-yellow); font-size: .72rem; font-weight: 800; }

.creek-world { display: none; grid-template-columns: minmax(0, 1fr) 380px; grid-template-rows: auto minmax(0, 1fr); background: var(--surface); color: var(--ink); }
.creek-scene { position: relative; min-height: 0; height: 100%; overflow: hidden; background: var(--teal-deep); }
.creek-scene > img { width: 100%; height: 100%; object-fit: cover; }
.scene-tint { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(19,55,48,.08), rgba(5,32,38,.25)); pointer-events: none; transition: background .5s; }
.current-lines i { position: absolute; left: -20%; width: 45%; height: 2px; border-radius: 50%; background: linear-gradient(90deg, transparent, rgba(190,232,231,.6), transparent); animation: current 6s linear infinite; }
.current-lines i:nth-child(1) { top: 60%; animation-delay: -2s; }
.current-lines i:nth-child(2) { top: 70%; animation-delay: -4.2s; width: 30%; }
.current-lines i:nth-child(3) { top: 78%; animation-delay: -1.1s; width: 38%; }
.current-lines i:nth-child(4) { top: 86%; animation-delay: -5s; width: 48%; }
@keyframes current { to { transform: translateX(290%); } }
.sediment-cloud { position: absolute; inset: 45% 0 0; opacity: 0; transition: opacity .6s; background: radial-gradient(ellipse at 28% 70%, rgba(162,103,50,.72), transparent 26%), radial-gradient(ellipse at 52% 82%, rgba(146,107,61,.5), transparent 34%); mix-blend-mode: screen; pointer-events: none; }
[data-movement="disturb"][data-pressure-path="fine-material"] .sediment-cloud { opacity: .16; }
[data-movement="disturb"] .scene-tint { background: linear-gradient(180deg, rgba(47,72,48,.06), rgba(77,54,33,.24)); }
.river-app[data-pressure-path="fine-material"][data-pressure-step="1"] .sediment-cloud { opacity: .32; background-position: 0 -25px; }
.river-app[data-pressure-path="fine-material"][data-pressure-step="2"] .sediment-cloud { opacity: .58; background-position: 10px 0; }
.river-app[data-pressure-path="fine-material"][data-pressure-step="3"] .sediment-cloud { opacity: .78; background-position: 0 24px; }
.river-app[data-pressure-path="fine-material"][data-pressure-step="4"] .sediment-cloud { opacity: .94; background-position: 0 48px; }
.river-app[data-pressure-path="fine-material"][data-pressure-step="2"] .current-lines,
.river-app[data-pressure-path="fine-material"][data-pressure-step="3"] .current-lines,
.river-app[data-pressure-path="fine-material"][data-pressure-step="4"] .current-lines { opacity: .55; }
.river-app[data-pressure-path="fine-material"][data-pressure-step="3"] .scene-tint,
.river-app[data-pressure-path="fine-material"][data-pressure-step="4"] .scene-tint { background: linear-gradient(180deg, rgba(73,76,48,.12), rgba(104,65,34,.5)); }
.river-app[data-pressure-path="fine-material"][data-pressure-step="3"] .creek-scene::after,
.river-app[data-pressure-path="fine-material"][data-pressure-step="4"] .creek-scene::after { content: ""; position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: 27%; pointer-events: none; opacity: .62; background: linear-gradient(180deg, transparent, rgba(115,73,37,.64)), radial-gradient(ellipse at 25% 100%, rgba(174,119,58,.85), transparent 48%), radial-gradient(ellipse at 74% 100%, rgba(145,97,49,.78), transparent 52%); mix-blend-mode: multiply; }
.river-app[data-pressure-path="fine-material"][data-pressure-step="4"] .creek-scene::after { height: 36%; opacity: .82; }
#thread-lines { position: absolute; z-index: 2; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.thread-line { stroke: var(--edge-color, var(--eco-sky)); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: .72; filter: drop-shadow(0 0 2px rgba(8,36,40,.95)) drop-shadow(0 0 1px rgba(255,255,255,.7)); transition: opacity .25s, stroke-width .25s, filter .25s; }
.thread-line.is-related, .thread-line.is-trail { opacity: 1; stroke-width: 2; filter: drop-shadow(0 0 5px currentColor) drop-shadow(0 0 2px rgba(255,255,255,.95)); }
.thread-line.pressure { stroke: #f2a85e; }
.scene-node { position: absolute; z-index: 3; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); transform: translate(-50%,-50%); width: 48px; height: 48px; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.75); background: rgba(13,52,55,.72); color: white; cursor: pointer; box-shadow: 0 0 0 7px rgba(255,255,255,.09); transition: transform .2s, opacity .25s, background .25s; }
.scene-node:before { content: ""; position: absolute; inset: 9px; border-radius: 50%; border: 1px dashed currentColor; }
.scene-node .node-hit { display: none; }
.scene-node .node-label { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); min-width: max-content; max-width: 150px; padding: .28rem .45rem; border-radius: 5px; color: var(--ink); background: rgba(255,255,255,.94); font-weight: 700; font-size: .75rem; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.scene-node[data-node-id="platypus"] .node-label { top: auto; bottom: calc(100% + 8px); }
.scene-node[data-kind="pressure"] { background: rgba(160,103,50,.8); }
.scene-node[data-kind="action"] { background: rgba(49,93,70,.9); }
.scene-node:hover, .scene-node:focus, .scene-node.is-active { transform: translate(-50%,-50%) scale(1.18); background: var(--green-deep); }
.scene-node.is-muted { opacity: .25; }
.scene-node.waterbug-node { width: 78px; height: 78px; background-image: url("assets/waterbug-specimens.webp"); background-size: 200% 200%; background-position: 0 0; border: 3px solid var(--eco-yellow); }
.scene-node.waterbug-node:before { display: none; }
.scene-node.waterbug-node .node-label { top: calc(100% + 4px); }
.scene-label { position: absolute; z-index: 4; left: 1rem; bottom: .5rem; color: rgba(255,255,255,.8); font-size: .75rem; text-shadow: 0 1px 2px black; }
.thread-panel { min-height: 0; height: 100%; padding: clamp(1.5rem, 3vw, 3rem) 1.5rem 6.5rem; overflow: auto; background: var(--surface); }
.web-reading-guide { margin: 1rem 0; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: var(--sky-pale); font-size: .7rem; line-height: 1.5; }
.web-reading-guide summary { width: fit-content; color: var(--teal); cursor: pointer; font-weight: 800; }
.web-reading-guide p { margin: .65rem 0; }
.web-reading-guide a { color: var(--teal-deep); font-weight: 750; }
.selected-card { margin-top: 1.2rem; background: white; border: 1px solid var(--line); border-left: 5px solid var(--eco-yellow); border-radius: 12px; padding: 1rem; box-shadow: 0 8px 25px rgba(33,62,61,.1); }
.selected-card > div:first-child { display: flex; justify-content: space-between; align-items: center; }
#selected-kind { text-transform: uppercase; letter-spacing: .1em; color: var(--green-deep); font-weight: 800; font-size: .75rem; }
#close-selection { flex: 0 0 36px; width: 36px; height: 36px; padding: 0; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; font-size: 1.1rem; }
.selected-card h4 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; margin: .4rem 0; }
.selected-card h4:focus, .connect-current h4:focus, .pressure-focus-card h4:focus { outline: none; }
.selected-card p { line-height: 1.55; font-size: .76rem; margin: .55rem 0; }
#selected-detail { color: var(--muted); }
.node-facts { margin: .8rem 0; padding: .8rem .85rem; border-radius: 9px; background: var(--surface-alt); }
.node-facts h5 { margin: 0 0 .5rem; color: var(--teal-deep); font-size: .7rem; }
.node-facts ul { display: grid; gap: .35rem; margin: 0; padding-left: 1.1rem; }
.node-facts li { color: var(--muted); font-size: .75rem; line-height: 1.4; }
/* Mirror the four label colours the evidence guide teaches. */
#selected-evidence { width: fit-content; margin-top: .75rem; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: var(--eco-sky); font-size: .75rem; font-weight: 750; }
#selected-evidence[data-evidence-kind="established"] { background: var(--eco-green); }
#selected-evidence[data-evidence-kind="regional"] { background: var(--eco-yellow); }
#selected-evidence[data-evidence-kind="mechanism"] { color: var(--white); background: var(--teal); border-color: var(--eco-sky); }
.evidence-label-link { display: inline-block; margin-top: .25rem; padding: .35rem 0; font-size: .75rem; font-weight: 750; }
#selected-evidence-scope { margin: .5rem 0 0; color: var(--muted); font-size: .72rem; line-height: 1.5; }
#selected-evidence-scope[hidden] { display: none; }
.relationship-list { display: grid; gap: .8rem; margin-top: 1rem; }
.relationship-list[hidden] { display: none; }
.relationship-list button { position: relative; width: 100%; min-height: 112px; height: auto; display: grid; grid-template-columns: auto 1fr; gap: .2rem .65rem; text-align: left; border: 1px solid color-mix(in srgb, var(--connection-color) 68%, var(--ink)); border-left: 6px solid var(--connection-color); border-radius: 10px; color: var(--ink); background: color-mix(in srgb, var(--connection-color) 18%, white); padding: .8rem; cursor: pointer; font-size: .75rem; line-height: 1.4; overflow-wrap: anywhere; box-shadow: 0 5px 14px rgba(16,44,51,.07); }
.relationship-list button:hover, .relationship-list button:focus-visible { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(16,44,51,.13); outline: 3px solid var(--eco-yellow); outline-offset: 2px; }
.connection-number { grid-row: 1 / 5; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); background: var(--connection-color); font-size: .75rem; font-weight: 850; }
.relationship-route { color: var(--teal-deep); font-family: var(--font-display); font-size: .94rem; font-weight: 650; line-height: 1.3; }
.relationship-copy { color: var(--ink); }
.relationship-group + .relationship-group { margin-top: .9rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.relationship-group h5 { margin: 0 0 .55rem; color: var(--green-deep); font-size: .7rem; text-transform: uppercase; letter-spacing: .09em; }
.relationship-direction { display: block; margin-bottom: .25rem; color: var(--teal); font-weight: 750; }
.relationship-caveat { margin-top: .45rem; padding-top: .45rem; border-top: 1px solid rgba(16,44,51,.12); color: var(--muted); font-size: .75rem; }
.relationship-caveat summary { cursor: pointer; font-weight: 750; }
.thread-trail { margin-top: 1rem; display: flex; gap: .35rem; flex-wrap: wrap; }
.thread-trail button, #movement-action button { border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; padding: .55rem .7rem; cursor: pointer; font-size: .75rem; }
.thread-trail button:not(:last-child):after { content: " →"; color: var(--green-deep); }
#movement-action { margin-top: 1.2rem; }
#movement-action button { border-color: var(--eco-yellow); color: var(--ink); background: var(--eco-yellow); }

.site-dialog { width: min(450px, calc(100% - 2rem)); max-height: 85svh; overflow: auto; border: 0; border-radius: 18px; color: var(--ink); background: var(--surface); padding: 2rem; box-shadow: var(--shadow); }
.site-dialog::backdrop { background: rgba(9,35,39,.64); backdrop-filter: blur(4px); }
/* Sticky within the dialog's own scroll, so the exit never scrolls away on
   long monitoring-place summaries. */
.dialog-close { position: sticky; top: 1rem; float: right; margin: -1rem -1rem 0 0; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; font-size: 1.2rem; z-index: 2; }
.site-dialog h3 { font-family: var(--font-display); font-weight: 500; font-size: 2.2rem; margin: 0; }
.site-dialog-location { color: var(--muted); }
.site-watch-period { margin: -.35rem 0 1rem; color: var(--green-deep); font-size: .7rem; font-weight: 800; }
.site-totals { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.site-totals p { display: flex; flex-direction: column; padding: 1rem .3rem; margin: 0; }
.site-totals strong { font-size: 1.5rem; }
.site-totals span { color: var(--muted); font-size: .75rem; }
.dialog-caveat { font-size: .7rem; line-height: 1.5; color: var(--muted); }
.dialog-review-note { margin-top: .85rem; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.dialog-review-note summary { color: var(--teal); cursor: pointer; font-weight: 750; }
.site-observations { margin: 1rem 0; padding: .9rem; border-radius: 10px; background: var(--sky-pale); }
.site-observations h4 { margin: 0 0 .65rem; font-family: var(--font-display); font-size: 1.05rem; }
.site-observations > p { margin: .4rem 0; font-size: .7rem; line-height: 1.45; }
.site-condition-list { display: grid; gap: .55rem; margin: .7rem 0; }
.site-condition-list div { display: grid; gap: .15rem; padding-top: .5rem; border-top: 1px solid rgba(16,44,51,.12); }
.site-condition-list dt { color: var(--teal-deep); font-size: .75rem; font-weight: 800; }
.site-condition-list dd { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.site-observations details { font-size: .75rem; }
.site-observations summary { cursor: pointer; color: var(--teal-deep); font-weight: 800; }
.site-observation-note { color: var(--muted); }

.field-notes-section { display: grid; grid-template-columns: minmax(0, .85fr) minmax(300px, .55fr); gap: clamp(2.5rem, 7vw, 8rem); align-items: center; padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem); background: var(--sky-pale); position: relative; overflow: hidden; }
.field-notes-section:before { content: ""; position: absolute; width: 340px; height: 340px; border: 64px solid rgba(154,204,214,.35); border-radius: 50%; right: -130px; top: -170px; }
.field-film-copy { max-width: 760px; position: relative; z-index: 1; }
.field-film-copy > p:not(.eyebrow) { max-width: 670px; color: var(--muted); line-height: 1.75; font-size: 1.06rem; }
.film-facts { margin: 2rem 0 0; border-top: 1px solid var(--line); }
.film-facts div { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.film-facts dt { color: var(--green-deep); text-transform: uppercase; letter-spacing: .12em; font-size: .75rem; font-weight: 800; }
.film-facts dd { margin: 0; font-size: .82rem; }
.field-film { width: min(100%, 390px); justify-self: center; margin: 0; padding: 10px; border-radius: 28px 28px 58px 28px; background: var(--eco-yellow); box-shadow: var(--shadow); position: relative; z-index: 1; }
.field-film video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 20px 20px 48px 20px; background: var(--teal-deep); }
.field-film figcaption { padding: .75rem .55rem .35rem; color: var(--ink); font-size: .75rem; line-height: 1.45; }
.field-sequence { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin: clamp(1rem, 3vw, 3rem) 0 0; padding: 0; list-style: none; position: relative; z-index: 1; }
.field-sequence li { min-width: 0; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 35px rgba(16,44,51,.08); }
.field-sequence img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.field-sequence li > div { padding: 1.25rem; }
.field-sequence span { color: var(--green-deep); text-transform: uppercase; letter-spacing: .12em; font-weight: 800; font-size: .75rem; }
.field-sequence h3 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 500; letter-spacing: -.02em; margin: .5rem 0; }
.field-sequence p { color: var(--muted); font-size: .82rem; line-height: 1.55; margin: 0; }
.spotting-guide { grid-column: 1 / -1; display: grid; grid-template-columns: .75fr 1.6fr; gap: 2rem; margin-top: 1rem; padding: 1.5rem; border-radius: 18px; background: var(--teal-deep); color: white; }
.spotting-guide h3 { margin: .4rem 0 0; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.5rem); font-weight: 500; }
.spotting-guide ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 0; background: rgba(255,255,255,.18); list-style: none; }
.spotting-guide li { padding: 1rem; background: var(--teal); }
.spotting-guide strong, .spotting-guide span { display: block; }
.spotting-guide strong { color: var(--eco-yellow); font-size: .75rem; }
.spotting-guide span { margin-top: .4rem; color: #d9eef2; font-size: .7rem; line-height: 1.45; }

/* About and Join: the standalone page's own sections. They reuse the
   section-heading / eyebrow / data-journey / evidence-callout patterns. */
.program-section, .about-section { padding: clamp(5rem, 9vw, 9rem) clamp(1.25rem, 7vw, 8rem); }
.about-section { scroll-margin-top: var(--pt-chrome-offset, 76px); background: var(--surface-alt); }
.join-section { scroll-margin-top: var(--pt-chrome-offset, 76px); }
.section-heading { max-width: 920px; }
.section-heading > p:last-child { max-width: 720px; color: var(--muted); line-height: 1.7; font-size: 1.04rem; }
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr); gap: clamp(3rem, 7vw, 8rem); align-items: start; margin-top: 3rem; }
.about-copy > p:not(.about-stat), .about-goals li { color: var(--muted); line-height: 1.65; }
.about-copy h3 { margin: 2rem 0 .6rem; font-family: var(--font-display); font-size: 1.65rem; font-weight: 500; }
.about-goals { list-style: none; margin: 0; padding: 0; }
.about-goals li { position: relative; padding: .75rem 0 .75rem 1.5rem; border-bottom: 1px solid var(--line); }
.about-goals li::before { content: "≈"; position: absolute; left: 0; color: var(--green-deep); }
.about-stat { display: flex; align-items: baseline; gap: 1rem; margin: 2rem 0 0; padding-top: 1.4rem; border-top: 1px solid var(--line); color: var(--teal-deep); }
.about-stat strong { font-family: var(--font-display); font-size: 2.6rem; font-weight: 800; color: var(--teal); }
.about-photo, .join-photo { margin: 0; overflow: hidden; border: 8px solid var(--white); border-radius: 28px 28px 28px 86px; background: var(--white); box-shadow: var(--shadow); }
.about-photo img, .join-photo img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.about-photo figcaption, .join-photo figcaption { padding: .8rem 1rem 1rem; color: var(--muted); font-size: .78rem; line-height: 1.45; }
.join-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: clamp(2.5rem, 6vw, 6rem); align-items: start; margin: 3.5rem 0 3rem; }
.join-steps { list-style: none; margin: 0; padding: 0; }
.join-steps li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.join-steps li > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--eco-yellow); font-size: .78rem; font-weight: 850; }
.join-steps h3 { margin: .4rem 0 .5rem; font-family: var(--font-display); font-size: 1.45rem; font-weight: 500; }
.join-steps p { margin: 0; color: var(--muted); line-height: 1.6; }
.join-steps a { color: var(--teal-deep); font-weight: 700; }
.join-aside { display: grid; gap: 1.4rem; }
.join-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.4rem; }
.join-actions > a:not(.primary-action) { color: var(--teal-deep); font-size: .82rem; font-weight: 750; }
.join-note { margin: 0; padding: 1rem 1.2rem; border-left: 4px solid var(--eco-sky); background: var(--surface-alt); color: var(--muted); font-size: .92rem; line-height: 1.6; }
.join-note a { color: var(--teal-deep); font-weight: 700; }
.data-journey { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin: 0 0 2rem; padding: 1px; background: var(--line); list-style: none; }
.data-journey li { min-height: 150px; padding: 1.2rem; background: var(--surface); }
.data-journey span { width: 30px; height: 30px; display: grid; place-items: center; margin-bottom: 1.2rem; border-radius: 50%; background: var(--eco-yellow); font-size: .75rem; font-weight: 850; }
.data-journey strong, .data-journey small { display: block; }
.data-journey strong { font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.data-journey small { margin-top: .45rem; color: var(--muted); line-height: 1.45; }
.evidence-callout { display: grid; grid-template-columns: 180px 1fr auto; gap: 2rem; align-items: center; padding: 1.5rem 2rem; border-radius: 14px; color: white; background: var(--teal); }
.evidence-callout h3 { margin: 0; font-family: var(--font-display); font-size: 1.25rem; }
.evidence-callout p { color: #d9eef2; line-height: 1.55; font-size: .8rem; }
.evidence-callout a { font-size: .75rem; }
.join-extras { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 1rem; margin-top: 2rem; }
.support-block, .teachers-card { padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: 14px; scroll-margin-top: var(--pt-chrome-offset, 76px); }
.support-block { border-top: 8px solid var(--eco-yellow); background: var(--sky-pale); }
.teachers-card { border: 1px solid var(--line); background: var(--surface-alt); }
.support-block h3, .teachers-card h3 { margin: 0 0 .8rem; font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2.1rem); font-weight: 500; line-height: 1.05; letter-spacing: -.02em; }
.support-block p:not(.eyebrow), .teachers-card p:not(.eyebrow) { color: var(--muted); line-height: 1.6; }
.support-block a, .teachers-card a { color: var(--teal-deep); font-weight: 750; }
.partner-inventory { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .55rem; margin-top: 1.4rem; }
.partner-inventory span { display: grid; min-height: 92px; place-items: center; border: 1px dashed var(--teal); border-radius: 12px; color: var(--teal-deep); background: rgba(255,255,255,.72); padding: 1rem; font-size: .7rem; font-weight: 800; text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.teachers-card > div { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; margin-top: 1rem; font-size: .85rem; }

[data-movement="watch"] .creek-world { display: none; }
[data-movement="connect"] .map-world, [data-movement="disturb"] .map-world { display: none; }
[data-movement="connect"] .creek-world, [data-movement="disturb"] .creek-world { display: grid; }
[data-movement="connect"] .scene-node[data-kind="pressure"], [data-movement="connect"] .scene-node[data-kind="action"] { opacity: 0; pointer-events: none; }
[data-movement="disturb"] .scene-node[data-kind="action"] { opacity: 0; pointer-events: none; }

@media (max-width: 1050px) {
  .hero { grid-template-columns: 1fr .75fr; }
  .river-app { height: auto; grid-template-columns: 1fr; min-height: auto; }
  .movement-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-right: 0; border-bottom: 1px solid rgba(255,255,255,.1); }
  .movement-rail button { min-width: 0; min-height: 70px; }
  .world { min-height: 820px; height: auto; overflow: visible; }
  .insights-intro { grid-template-columns: 1fr; gap: 1.2rem; }
  .insight-explorer { grid-template-columns: 220px minmax(0, 1fr); }
  .about-grid, .join-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .join-extras { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  html.pt-shell, .river-app, #site-dialog, .watch-insights { --header-h: var(--pt-chrome-offset, 66px); }
  /* Creek scene on phones: the image fills the first grid row and the
     reconstruction note becomes a caption in the second row rather than an
     overlay. The absolutely positioned layers (tint, lines, hotspots,
     sediment) are placed in the image row so their percentages refer to the
     image, not the caption. */
  .creek-scene { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
  .creek-scene > img { grid-area: 1 / 1 / 2 / 2; min-height: 0; }
  .creek-scene > .scene-tint, .creek-scene > .current-lines, .creek-scene > .sediment-cloud,
  .creek-scene > #thread-lines, .creek-scene > #scene-nodes, .creek-scene::before, .creek-scene::after { grid-area: 1 / 1 / 2 / 2; }
  .creek-scene > #scene-nodes { position: absolute; inset: 0; z-index: 3; }
  .scene-label { position: static; grid-area: 2 / 1 / 3 / 2; margin: 0; padding: .5rem .8rem; color: rgba(255,255,255,.9); background: var(--teal-deep); text-shadow: none; line-height: 1.4; }
  /* Hotspots: a 28px disc; the .node-hit child extends the touch target to 44px. */
  .scene-node { left: calc(var(--mx, var(--x)) * 1%); top: calc(var(--my, var(--y)) * 1%); width: 28px; height: 28px; box-shadow: 0 0 0 4px rgba(255,255,255,.09); }
  .scene-node:before { inset: 5px; }
  .scene-node .node-hit { display: block; position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%); }
  .scene-node.waterbug-node { width: 44px; height: 44px; }
  .scene-node .node-label { top: calc(100% + 4px); }
  .scene-node[data-node-id="platypus"] .node-label { top: auto; bottom: calc(100% + 4px); }
  .scene-node.is-pressure-affected::after { right: -7px; top: -8px; }
  .river-app { scroll-margin-top: var(--header-h); }
  /* 44px touch floor for the small recovery/filter controls. */
  .world-tools button,
  .filter-row button,
  .site-results-header button { min-height: 44px; }
  .survey-story-link,
  .survey-story-details summary { display: inline-flex; align-items: center; min-height: 44px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 3.5rem 1.2rem 1.5rem; }
  .hero h1 { font-size: clamp(2.55rem,12vw,4.2rem); }
  .hero-image { min-height: 430px; }
  .hero-stats { overflow: visible; }
  .hero-stats div { min-width: 0; padding: 1rem .35rem 0; flex-direction: column; align-items: flex-start; gap: .25rem; }
  .hero-stats dt { font-size: clamp(1.85rem, 8vw, 2.35rem); }
  .hero-stats dd { font-size: .72rem; line-height: 1.25; }
  .hero-stat-note { margin: -.5rem .35rem 0 !important; }
  .explorer-section { scroll-margin-top: var(--pt-chrome-offset, 66px); padding: 4rem .6rem; }
  .explorer-intro { grid-template-columns: 1fr; gap: 1rem; padding: 0 .6rem; }
  .explorer-thesis { margin: -1rem .6rem 1rem; grid-template-columns: 1fr; gap: .35rem; }
  .watch-insights { scroll-margin-top: var(--pt-chrome-offset, 66px); padding-left: .8rem; padding-right: .8rem; }
  .insights-intro { padding: 0 .4rem; }
  .insights-intro h2 { font-size: clamp(2.5rem, 11vw, 4rem); }
  .insight-explorer { min-height: 0; grid-template-columns: 1fr; border-radius: 16px; }
  .insight-tabs { flex-direction: row; gap: .35rem; overflow-x: auto; padding: .65rem; scroll-snap-type: x proximity; }
  .insight-tabs button { flex: 0 0 158px; min-height: 76px; grid-template-columns: 26px 1fr; padding: .75rem; scroll-snap-align: start; }
  .insight-tabs button small { font-size: .75rem; }
  .insight-panel { padding: 1.35rem 1rem 1.5rem; }
  .insight-panel-heading > p:last-child { margin-bottom: 1.35rem; }
  .effort-chart-scroll { margin-right: -1rem; padding-right: 1rem; }
  .insight-selection { grid-template-columns: 1fr; }
  .insight-selection span { grid-row: auto; }
  .animal-count-cards { gap: .35rem; }
  .animal-count-cards article { min-height: 105px; padding: .8rem; }
  .animal-count-cards strong { font-size: 2rem; }
  .activity-row { grid-template-columns: minmax(100px, .9fr) minmax(100px, 1.5fr) 34px; gap: .55rem; }
  .habitat-fields { grid-template-columns: 1fr; }
  .insight-reading-note { grid-template-columns: 1fr; gap: .55rem; padding: 1rem; }
  .insight-reading-note a { white-space: normal; }
  .river-app { border-radius: 15px; }
  .movement-rail { width: 100%; padding: .45rem; gap: .2rem; overflow: visible; }
  .movement-rail button { min-width: 0; min-height: 64px; padding: .45rem .2rem; grid-template-columns: 1fr; grid-template-rows: auto auto; text-align: center; place-items: center; }
  .movement-rail button b { font-size: .72rem; }
  .movement-rail button small { display: none; }
  .world { min-height: 780px; }
  .world-topbar { height: 48px; }
  .map-world, .creek-world { grid-template-columns: 1fr; overflow: auto; align-content: start; }
  .map-stage, .creek-scene { min-height: 500px; }
  #program-map-live { min-height: 500px; }
  .map-guide, .thread-panel { overflow: visible; padding: 1.5rem 1rem 6rem; }
  .waterway-list { grid-template-columns: 1fr 1fr; }
  .waterway-list button { min-height: 58px; flex-direction: column; align-items: flex-start; justify-content: center; }
  .field-notes-section { grid-template-columns: 1fr; }
  .field-film { width: min(100%, 330px); }
  .field-sequence { grid-template-columns: 1fr; }
  .spotting-guide { grid-template-columns: 1fr; }
  .spotting-guide ul { grid-template-columns: 1fr; }
  .data-journey { grid-template-columns: 1fr 1fr; }
  footer { grid-template-columns: 1fr; }
  .partner-inventory { grid-template-columns: 1fr; }
  .join-steps li { grid-template-columns: 36px minmax(0, 1fr); gap: .8rem; }
  .join-steps li > span { width: 34px; height: 34px; font-size: .7rem; }
  .evidence-callout { grid-template-columns: 1fr; gap: .5rem; }
  footer > div { align-items: flex-start; }
}

@media (max-width: 430px) {
  .time-outcomes header { display: grid; grid-template-columns: 1fr; justify-content: stretch; gap: .7rem; }
  .time-measures { width: 100%; grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 500px) {
  .hero { padding-left: 1rem; padding-right: 1rem; }
  .hero-image { min-height: 380px; }
  .hero-stats div { padding-left: .3rem; padding-right: .3rem; }
  .hero-stats dd { font-size: .75rem; }
  .movement-rail button { min-height: 60px; }
  .map-stage, .creek-scene, #program-map-live { min-height: 440px; }
  .waterway-list { grid-template-columns: 1fr; }
  .site-totals strong { font-size: 1.3rem; }
  .data-journey { grid-template-columns: 1fr; }
  .animal-count-cards { grid-template-columns: 1fr 1fr 1fr; }
  .animal-count-cards article { min-width: 0; }
  .animal-count-cards span { font-size: .75rem; }
  .activity-row { grid-template-columns: 1fr 34px; }
  .activity-row > div { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 360px) {
  .world-topbar { flex-wrap: wrap; gap: .35rem .6rem; height: auto; min-height: 48px; padding-block: .45rem; }
  .world-tools { flex-basis: 100%; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 2.55rem; }
  .hero-stats dt { font-size: 1.75rem; }
  .hero-stats dd { font-size: .75rem; line-height: 1.2; }
  .movement-rail { padding: .35rem .2rem; gap: .1rem; }
  .movement-rail button { min-height: 58px; border-radius: 8px; padding: .35rem .1rem; }
  .movement-rail button b { font-size: .75rem; }
  .world-topbar { padding: 0 .7rem; }
  .map-guide, .thread-panel { padding-left: .8rem; padding-right: .8rem; }
  .site-dialog { padding: 1.5rem 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  :is(.river-app, #site-dialog, .watch-insights) :is(*, *::before, *::after) { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Stacked insights layout (`data-layout="stacked"`): every view on one page. */
.insight-stack { display: grid; gap: clamp(2.5rem, 6vw, 5rem); }
.insight-panel--stacked { padding: 0; border: 0; box-shadow: none; }
.insight-panel-heading h2 { max-width: 780px; margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 3.3vw, 3.6rem); font-weight: 400; line-height: 1.04; letter-spacing: -.035em; }
.insight-lede { max-width: 780px; margin: 0 0 1.5rem; line-height: 1.6; }
.animal-count-cards--four { grid-template-columns: repeat(4, 1fr); }
.animal-count-cards--four article:nth-child(4) { color: white; background: var(--green-deep); }
.basin-breakdown { margin-top: 2rem; }
.basin-note { margin: .75rem 0 0; color: var(--muted); font-size: .76rem; line-height: 1.5; }
.insight-limit a { font-weight: 700; text-decoration: underline; }
@media (max-width: 760px) {
  .animal-count-cards--four { grid-template-columns: repeat(2, 1fr); }
}
