/* Meeting 8 editorial study: audience-facing presentation only. */
:root {
  color-scheme: light;
  --bg: #f3f0e9;
  --surface: #f3f0e9;
  --surface-2: #e8e3d9;
  --line: #a8a69d;
  --text: #172024;
  --muted: #425357;
  --mint: #a93e2c;
  --amber: #8a571d;
  --coral: #a93e2c;
  --blue: #245e70;
  --shadow: none;
  font-family: "Segoe UI", Arial, sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f0e9;
  --surface: #f3f0e9;
  --surface-2: #e8e3d9;
  --line: #a8a69d;
  --text: #172024;
  --muted: #425357;
  --mint: #a93e2c;
  --amber: #8a571d;
  --coral: #a93e2c;
  --blue: #245e70;
  --shadow: none;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #131c1f;
  --surface: #131c1f;
  --surface-2: #223034;
  --line: #64777a;
  --text: #f4f0e8;
  --muted: #bbcbc9;
  --mint: #f1a18c;
  --amber: #e4b779;
  --coral: #f1a18c;
  --blue: #a8d7e6;
  --shadow: none;
}

html { scroll-behavior: auto; background: var(--bg); }
html, body { background: var(--bg); color: var(--text); }
body, :root[data-theme="light"] body { background: var(--bg); }
.app-shell { position: relative; min-height: 100dvh; isolation: isolate; }
.app-shell::before {
  content: "";
  position: fixed;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(243, 240, 233, .72), rgba(243, 240, 233, .94)),
    url("assets/atmosphere-estuary-v1.png") center / cover no-repeat;
}
:root[data-theme="dark"] .app-shell::before {
  background:
    linear-gradient(180deg, rgba(11, 22, 25, .68), rgba(11, 22, 25, .94)),
    url("assets/atmosphere-estuary-v1.png") center / cover no-repeat;
}

.topbar, :root[data-theme="light"] .topbar {
  position: sticky;
  min-height: 62px;
  top: 0;
  z-index: 30;
  padding: .65rem clamp(1.1rem, 3.5vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  backdrop-filter: none;
}
.brand { gap: 0; }
.brand-mark { display: none; }
.brand-copy strong { font-size: .78rem; letter-spacing: .14em; }
.brand-copy span { font-size: .78rem; }
.progress-track { height: 2px; background: var(--line); }
.progress-fill { background: var(--mint); transition: width .24s ease-out; }
.progress-label { color: var(--muted); }
.preference-group, :root[data-theme="light"] .preference-group {
  border: 1px solid var(--line);
  border-radius: 3px;
  background: transparent;
}
.preference-button { border-radius: 2px; min-height: 38px; color: var(--muted); }
.preference-button[aria-pressed="true"] { background: var(--text); color: var(--bg); box-shadow: none; }

main { display: block; padding: clamp(2.6rem, 7vw, 7rem) clamp(1.1rem, 3.5vw, 3rem) 8rem; }
.slide, :root[data-theme="light"] .slide {
  display: flex;
  flex-direction: column;
  width: min(1280px, 100%);
  min-height: min(650px, calc(100dvh - 130px));
  margin: 0 auto clamp(4rem, 12vh, 9rem);
  padding: clamp(1rem, 3vw, 2.8rem);
  border: 0;
  border-radius: 0;
  background: rgba(243, 240, 233, .87);
  box-shadow: none;
  overflow: visible;
  scroll-margin-top: 5.5rem;
  isolation: isolate;
}
:root[data-theme="dark"] .slide { background: rgba(19, 28, 31, .84); }
.slide::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  inset: -1.1rem;
  opacity: 0;
  pointer-events: none;
  background: center / cover no-repeat;
  transition: opacity .28s ease-out;
}
.slide.active::after { opacity: 1; }
.slide[data-slide="1"]::after, .slide[data-slide="2"]::after, .slide[data-slide="3"]::after, .slide[data-slide="19"]::after {
  background-image: linear-gradient(90deg, rgba(19, 28, 31, .16), transparent 70%), url("assets/atmosphere-estuary-v1.png");
}
.slide[data-slide="6"]::after, .slide[data-slide="7"]::after, .slide[data-slide="8"]::after,
.slide[data-slide="12"]::after, .slide[data-slide="14"]::after, .slide[data-slide="15"]::after {
  background-image: linear-gradient(90deg, rgba(19, 28, 31, .44), transparent 68%), url("assets/atmosphere-network-v1.png");
}
.slide.active { animation: editorial-enter .28s ease-out both; }
@keyframes editorial-enter { from { opacity: 0; transform: translateY(6px); } }
.eyebrow { margin-bottom: 1.1rem; color: var(--mint); font: 700 .8rem/1.3 "Segoe UI", Arial, sans-serif; letter-spacing: .1em; }
h1, h2 { max-width: 20ch; color: var(--text); font-family: Georgia, "Times New Roman", serif; font-weight: 500; letter-spacing: -.05em; line-height: .99; }
h1 { font-size: clamp(3.5rem, 8vw, 8.5rem); }
h2 { font-size: clamp(2.8rem, 5vw, 5.4rem); }
h3 { color: var(--text); font-weight: 650; }
p { line-height: 1.52; }
.lead { max-width: 68ch; color: var(--muted); font-size: clamp(1.12rem, 1.7vw, 1.45rem); }
.orientation-slide h1 { font-size: clamp(3.6rem, 8vw, 8.5rem); }
.orientation-slide .lead, .title-slide .lead { max-width: 48ch; color: var(--text); font-size: clamp(1.3rem, 2vw, 1.75rem); }
.slide[data-slide="2"] h2, .slide[data-slide="3"] h2, .slide[data-slide="4"] h2,
.slide[data-slide="5"] h2, .slide[data-slide="16"] h2, .slide[data-slide="17"] h2,
.slide[data-slide="18"] h2, .slide[data-slide="19"] h2 { max-width: 26ch; font-size: clamp(2.6rem, 4.4vw, 4.7rem); line-height: 1.02; }
.slide[data-slide="5"], .slide[data-slide="16"], .slide[data-slide="17"], .slide[data-slide="19"] { padding: clamp(1rem, 3vw, 2.8rem); }

.route-step, .definition-card, .philanthropy-card, .reading-card, .actor-card,
.question, .debrief-item, .watch-list, .quiz-option, .guide, .flow-node, .layer,
:root[data-theme="light"] .route-step, :root[data-theme="light"] .definition-card,
:root[data-theme="light"] .philanthropy-card, :root[data-theme="light"] .reading-card,
:root[data-theme="light"] .actor-card, :root[data-theme="light"] .question,
:root[data-theme="light"] .debrief-item, :root[data-theme="light"] .watch-list,
:root[data-theme="light"] .quiz-option, :root[data-theme="light"] .guide,
:root[data-theme="light"] .flow-node, :root[data-theme="light"] .layer {
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.seminar-route { gap: clamp(1rem, 2.5vw, 2rem); margin-top: clamp(3rem, 8vh, 6rem); }
.route-step { min-height: 115px; padding: 1rem 0; gap: .7rem; }
.route-step span, .card-label { color: var(--mint); }
.route-step strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 1.9vw, 1.8rem); font-weight: 500; }
.definition-grid, .philanthropy-grid, .reading-grid { gap: clamp(1rem, 2.5vw, 2rem); }
.definition-card, .philanthropy-card { padding: 1.1rem 0; min-height: 170px; }
.definition-card p, .philanthropy-card p { color: var(--muted); }
.reading-card { min-height: 250px; padding: 1.2rem 0; }
.reading-badge, .reading-card.recommended .reading-badge { padding: 0; background: transparent; color: var(--mint); }
.reading-author, .reading-meta { color: var(--muted); }
.reading-title { font-family: Georgia, "Times New Roman", serif; font-weight: 500; font-size: clamp(2rem, 3.3vw, 3.4rem); }
.reading-job { border-top-color: var(--line); }
.framing-line, .prompt-card { max-width: 75ch; padding: .7rem 0 .7rem 1rem; border-left: 3px solid var(--mint); background: transparent; }
.prompt-card { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.3rem, 2.3vw, 2rem); }
.layer { min-height: 240px; padding: 1rem 0; opacity: 1; }
.layer[hidden] { display: none; }
.layer.revealed { border-color: var(--mint); animation: layer-reveal .26s ease-out both; }
@keyframes layer-reveal { from { opacity: 0; transform: translateY(12px); } }
.reveal-prompt { max-width: 36ch; margin: 1.1rem 0 0; color: var(--muted); font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.2rem, 2vw, 1.7rem); }
.node, :root[data-theme="light"] .node { background: var(--surface-2); color: var(--text); }
.actor-card { padding: 1rem 0; }
.actor-card h3 { color: var(--mint); }
.actor-card[hidden], .guide[hidden] { display: none; }
.actor-reveal-action { margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.stat, :root[data-theme="light"] .stat { min-width: 0; border-top: 2px solid var(--mint); background: transparent; padding: 1rem 0; }
.stat strong { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.15rem, 3.6vw, 3.6rem); font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.flow-node { justify-content: center; gap: 1rem; padding: 1rem 0; }
.flow-node.hidden { box-shadow: none; border-top-style: dashed; }
.video-frame, :root[data-theme="light"] .video-frame { border-radius: 0; background: var(--surface-2); }
.watch-list { padding: 1rem 0; }
.play { border: 0; background: var(--mint); color: var(--bg); cursor: pointer; }
.quiz-intro, :root[data-theme="light"] .quiz-intro { border: 0; border-top: 2px solid var(--mint); border-radius: 0; background: transparent; padding: 1.3rem 0; }
.quiz-intro[hidden], :root[data-theme="light"] .quiz-intro[hidden] { display: none; }
.quiz-intro-step { background: var(--mint); color: var(--bg); }
.quiz-side, :root[data-theme="light"] .quiz-side { border: 1px solid var(--line); border-radius: 0; background: transparent; }
.quiz-option { padding: .55rem 0; }
.quiz-option strong { font-size: 1rem; }
.tally-button { width: 44px; height: 44px; border-color: var(--line); }
.vote-count, .quiz-total { color: var(--mint); }
.quiz-note { color: var(--muted); }
.action { min-height: 44px; border-radius: 3px; background: var(--mint); color: var(--bg); }
.action.secondary { border-color: var(--line); }
.nav-button { min-height: 44px; border-radius: 3px; }
.nav-button.primary { background: var(--text); color: var(--bg); }
.comparison-head, .comparison-row { border-bottom: 1px solid var(--line); padding-bottom: .5rem; }
.comparison-head[hidden], .comparison-actions[hidden] { display: none; }
.comparison-status { font-family: Georgia, "Times New Roman", serif; font-size: clamp(1.15rem, 2vw, 1.65rem); }
.bar-slot, :root[data-theme="light"] .bar-slot { border-radius: 0; background: var(--surface-2); }
.bar.baseline { background: var(--blue); }
.bar.final { background: var(--mint); }
.bar-value, :root[data-theme="light"] .bar-value { color: var(--text); }
.debate-main { align-items: center; border: 0; border-top: 2px solid var(--mint); border-radius: 0; background: transparent; padding: 1.5rem 0; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.guide { padding: .8rem 0; }
.debate-reveal-action { margin-top: 1.25rem; }
.closing-line { padding: .6rem 0; border: 0; border-top: 1px solid var(--line); background: transparent; font-family: Georgia, "Times New Roman", serif; font-weight: 500; }
.closing-line:nth-child(2) { border-color: var(--line); background: transparent; }
.synthesis { color: var(--mint); font-family: Georgia, "Times New Roman", serif; }
.credit-line { color: var(--muted); }

.progress-wrap .nav-button { border-radius: 3px; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

@media (max-width: 900px) {
  .slide { min-height: auto; margin-bottom: clamp(3rem, 9vh, 5rem); }
  .seminar-route { margin-top: 3rem; }
  .definition-grid, .philanthropy-grid, .reading-grid { margin-top: 2rem; }
}
@media (max-width: 560px) {
  main { padding: 1rem; }
  .slide { padding: 1rem .2rem 4.5rem; }
  h1 { font-size: clamp(3.2rem, 15vw, 5rem); }
  h2 { font-size: clamp(2.5rem, 10vw, 4.3rem); }
  .route-step { min-height: auto; }
  .quiz-side { padding: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .slide.active, .layer.revealed { animation: none; }
  .progress-fill, .slide::after { transition: none; }
}

/* One readable page at a time; the landscape stays outside the reading surface. */
body, :root[data-theme="light"] body {
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(243, 240, 233, .52), rgba(243, 240, 233, .62)),
    url("assets/atmosphere-estuary-v1.png");
  background-position: center;
  background-size: cover;
  background-attachment: fixed;
}
:root[data-theme="dark"] body {
  background-color: var(--bg);
  background-image:
    linear-gradient(rgba(19, 28, 31, .55), rgba(19, 28, 31, .68)),
    url("assets/atmosphere-estuary-v1.png");
}
.app-shell { display: grid; grid-template-rows: auto 1fr; min-width: 0; min-height: 100vh; }
main { position: relative; display: flex; align-items: center; justify-content: center; min-width: 0; padding: clamp(1.2rem, 3vw, 3rem); }
.app-shell::before { content: none !important; display: none !important; }
.slide, :root[data-theme="light"] .slide {
  --slide-pad: clamp(1rem, 3vw, 2.8rem);
  display: none !important;
  position: relative;
  width: min(1280px, 100%);
  min-width: 0;
  min-height: min(650px, calc(100vh - 170px));
  margin: 0 auto;
  padding: var(--slide-pad);
  overflow: visible;
  border: 1px solid rgba(44, 54, 52, .32);
  background: rgba(250, 248, 243, .955);
  box-shadow: 0 20px 70px rgba(20, 35, 35, .16);
}
:root[data-theme="dark"] .slide { background: rgba(19, 28, 31, .96); border-color: rgba(204, 220, 211, .3); }
.slide[data-slide="1"]::before, .slide[data-slide="6"]::before,
.slide[data-slide="11"]::before, .slide[data-slide="19"]::before {
  content: "";
  display: block;
  flex: 0 0 auto;
  height: clamp(64px, 8vw, 104px);
  margin: calc(0px - var(--slide-pad)) calc(0px - var(--slide-pad)) 1.5rem;
  background: url("assets/atmosphere-estuary-v1.png") center 55% / cover no-repeat;
}
.slide[data-slide="6"]::before, .slide[data-slide="11"]::before {
  background-image: url("assets/atmosphere-network-v1.png");
}
.slide::after { content: none !important; display: none !important; }
.slide.active, :root[data-theme="light"] .slide.active { display: flex !important; position: relative; animation: none; }
.definition-grid, .philanthropy-grid { margin-top: clamp(1.25rem, 2vw, 1.8rem); }
.definition-card, .philanthropy-card { justify-content: flex-start; }
.definition-card h3, .philanthropy-card h3 { min-height: 3.3rem; margin: 0 0 .45rem; }
.definition-card p, .philanthropy-card p { margin-top: 0; }
.slide[data-slide="4"] .reading-grid { margin-bottom: auto; }
.slide[data-slide="6"] .network { margin-top: clamp(1.25rem, 2.3vw, 2rem); }
.network, .layer, .node { min-width: 0; }
.layer { justify-content: flex-start; }
.layer-count { align-self: flex-start; flex: 0 0 28px; }
.layer h3 { min-height: 2.75rem; margin: .75rem 0 .5rem; line-height: 1.3; }
.node { display: flex; align-items: center; min-height: 3.15rem; margin: .25rem 0; padding: .48rem .65rem; line-height: 1.3; overflow-wrap: break-word; }
.slide.active.is-page-entering, :root[data-theme="light"] .slide.active.is-page-entering {
  animation: page-enter .25s ease-out both;
}
@keyframes page-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.layer[hidden] { display: none !important; }
.layer.revealed { animation: layer-reveal .24s ease-out both; }
.network[data-visible-count="0"] { display: none; }
.network[data-visible-count="1"] { grid-template-columns: minmax(0, 1fr); }
.network[data-visible-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.network[data-visible-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.network[data-visible-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card-grid[data-visible-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card-grid[data-visible-count="4"], .card-grid[data-visible-count="6"], .card-grid[data-visible-count="8"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.actor-card { min-width: 0; }
.quiz-shell, .quiz-option, .comparison-row { min-width: 0; }
.quiz-option { border-top: 1px solid var(--line); }
.quiz-side { align-self: start; }
.comparison { margin-top: .75rem; }
.comparison-head { margin-top: 1.5rem; }
.comparison-status { order: 0; }
.progress-wrap .nav-button, :root[data-theme="dark"] .progress-wrap .nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 40px;
  width: auto;
  box-sizing: border-box;
  line-height: 1.2;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
}
.progress-wrap .nav-button.primary { background: var(--text); color: var(--bg); }
@media (max-width: 900px) {
  .slide, :root[data-theme="light"] .slide { min-height: auto; }
  .definition-card h3, .philanthropy-card h3 { min-height: 0; }
  .network[data-visible-count="3"], .network[data-visible-count="4"],
  .card-grid[data-visible-count="4"], .card-grid[data-visible-count="6"], .card-grid[data-visible-count="8"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .topbar, :root[data-theme="light"] .topbar { display: grid; }
  .progress-wrap { display: flex !important; }
}
@media (max-width: 560px) {
  body, :root[data-theme="light"] body, :root[data-theme="dark"] body { background-attachment: scroll; }
  main { padding: 1rem; }
  .slide, :root[data-theme="light"] .slide { --slide-pad: .85rem; min-height: calc(100vh - 220px); padding: 1rem var(--slide-pad); }
  .network[data-visible-count], .card-grid[data-visible-count] { grid-template-columns: minmax(0, 1fr); }
  .layer { min-height: auto; }
  .layer h3, .node { min-height: 0; }
  .quiz-option { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
  .tally { justify-content: flex-end; }
  .comparison-head, .comparison-row { grid-template-columns: minmax(88px, .9fr) 1fr 1fr; gap: .3rem; }
  .progress-wrap .nav-button { min-height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .slide.active.is-page-entering,
  .layer.revealed { animation: none; }
}
