/* ==========================================================================
   Data Architecture Curriculum — design system
   Palette and type match the deck brand. Change tokens here, not inline.
   ========================================================================== */

:root {
  /* ------------------------------------------------------------------------
     Trailblazer Community Groups palette, taken from the brand kit's deck
     theme (ppt/theme/theme1.xml), not eyedropped.

     Two tiers, on purpose. The official values are specified against white —
     TBC materials are light — and on this navy they land at 2.0–4.4:1, below
     the 4.5:1 AA needs for body text. So:

       SURFACES use the official values unchanged.
       TEXT AND ACCENTS use lightened tints of the same hue, with the official
       value kept alongside as *-solid for fills, borders, and icons, where
       the contrast floor is 3:1 rather than 4.5:1.

     Do not use a *-solid token for text on --navy or --card. Measured ratios
     are in the comments; recheck if you change --navy.
     ---------------------------------------------------------------------- */

  /* Surfaces — official TBC values */
  --navy:       #032D60;  /* TBC deep navy */
  --navy-mid:   #0B5CAB;  /* TBC primary blue — hover, gradients */
  --card:       #0A3A72;  /* derived: navy lifted for card surfaces */
  --card-dark:  #021D3F;  /* derived: navy dropped for sidebar, tables */

  /* Accents — lightened for legibility, official value kept as *-solid */
  --teal:       #3FB6E8;  /* tint of TBC sky #0D9DDA — 5.86:1 on navy */
  --teal-solid: #0D9DDA;  /* TBC sky — fills and borders only */
  --teal-dim:   #0B827C;  /* TBC teal — borders only, 2.91:1, never text */
  --amber:      #F59B29;  /* tint of TBC orange #DD7A01 — 6.20:1 on navy */
  --amber-solid:#DD7A01;  /* TBC orange — fills and borders only */

  --white:      #FFFFFF;
  --off-white:  #F0F4F8;  /* 12.27:1 on navy */
  --slate:      #94A3B8;  /* 5.29:1 on navy */

  /* Derived */
  --rule:       rgba(148, 163, 184, 0.18);
  --rule-soft:  rgba(148, 163, 184, 0.10);
  --teal-glow:  rgba(63, 182, 232, 0.14);
  --amber-glow: rgba(245, 155, 41, 0.13);

  /* Type */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Calibri, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* Metrics */
  --sidebar-w: 268px;
  /* Wider than a reading measure on purpose: the dataset tables need the room.
     Prose is separately capped at 68ch by .prose, so the text column stays
     readable no matter how wide this gets. */
  --content-max: 1080px;
  --radius: 10px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--off-white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 { color: var(--white); line-height: 1.25; font-weight: 650; margin: 0; }

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 3px;
}

.skip-link {
  position: absolute; left: -9999px;
  background: var(--teal); color: var(--card-dark);
  padding: 10px 16px; border-radius: 0 0 var(--radius) 0;
  font-weight: 650; z-index: 100;
}
.skip-link:focus { left: 0; top: 0; }

/* --------------------------------------------------------------------------
   Eyebrow labels — uppercase, letter-spaced (deck style)
   -------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.6rem;
}
.eyebrow--slate { color: var(--slate); }
.eyebrow--amber { color: var(--amber); }

/* Left teal accent bar on section headers — echoes the deck */
.rule-head {
  position: relative;
  padding-left: 18px;
  margin: 0 0 1.1rem;
  font-size: 1.35rem;
}
.rule-head::before {
  content: "";
  position: absolute;
  left: 0; top: 0.18em; bottom: 0.18em;
  width: 4px;
  border-radius: 2px;
  background: var(--teal);
}
.rule-head--amber::before { background: var(--amber); }

/* --------------------------------------------------------------------------
   App shell
   -------------------------------------------------------------------------- */

.shell { display: flex; min-height: 100vh; }

/* Sidebar ---------------------------------------------------------------- */

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--card-dark);
  border-right: 1px solid var(--rule);
  padding: 26px 18px 40px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.brand { display: block; margin-bottom: 26px; }
.brand:hover { text-decoration: none; }

/* Trailblazer Community Groups lockup. The source art is 4588px wide with no
   internal padding, so it is constrained by width and left to keep its own
   aspect ratio — never set both dimensions in CSS. */
.brand__logo {
  display: block;
  width: 100%;
  max-width: 196px;
  height: auto;
  margin-bottom: 10px;
}

/* Retained for the mobile bar, which shows the wordmark rather than the logo. */
.brand__mark {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--teal);
}
.brand__title {
  display: block; color: var(--white); font-weight: 650;
  font-size: 1.02rem; line-height: 1.3; margin-top: 4px;
}

.nav-group { margin-bottom: 22px; }
.nav-group__label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--slate);
  padding: 0 10px; margin-bottom: 8px;
}

.nav-link {
  display: flex;
  gap: 10px;
  align-items: baseline;
  padding: 7px 10px;
  border-radius: 7px;
  color: var(--off-white);
  font-size: 0.875rem;
  line-height: 1.4;
  border-left: 3px solid transparent;
}
.nav-link:hover { background: rgba(255,255,255,0.045); text-decoration: none; }
.nav-link__num {
  flex: 0 0 auto;
  color: var(--slate);
  font-variant-numeric: tabular-nums;
  font-size: 0.78rem;
  font-weight: 650;
  min-width: 1.1em;
}
.nav-link[aria-current="page"] {
  background: var(--teal-glow);
  border-left-color: var(--teal);
  color: var(--white);
  font-weight: 600;
}
.nav-link[aria-current="page"] .nav-link__num { color: var(--teal); }

/* Mobile nav toggle ------------------------------------------------------ */

.navbar {
  display: none;
  position: sticky; top: 0; z-index: 40;
  background: var(--card-dark);
  border-bottom: 1px solid var(--rule);
  padding: 12px 16px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.nav-toggle {
  background: transparent;
  border: 1px solid var(--rule);
  color: var(--off-white);
  border-radius: 8px;
  padding: 8px 13px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--teal); color: var(--white); }

/* Main ------------------------------------------------------------------- */

.main { flex: 1 1 auto; min-width: 0; }
.wrap { max-width: var(--content-max); margin: 0 auto; padding: 52px 32px 96px; }
.wrap--wide { max-width: 1120px; }

/* --------------------------------------------------------------------------
   Landing page
   -------------------------------------------------------------------------- */

.hero { margin-bottom: 46px; }
.hero h1 { font-size: clamp(1.9rem, 4.2vw, 2.7rem); letter-spacing: -0.015em; }
.hero__premise {
  font-size: 1.1rem; color: var(--off-white);
  max-width: 62ch; margin: 1rem 0 0;
}
.hero__note { color: var(--slate); font-size: 0.95rem; max-width: 62ch; }

/* The internal → external → strategy thread */
.thread {
  background: var(--card-dark);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px 26px 26px;
  margin: 0 0 46px;
}
.thread__steps {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: 18px;
  flex-wrap: wrap;
}
.thread__step {
  flex: 1 1 150px;
  min-width: 0;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 13px 15px;
  display: block;
  color: var(--off-white);
}
.thread__step:hover {
  text-decoration: none;
  border-color: var(--teal);
  background: var(--navy-mid);
}
.thread__step .num {
  display: block; font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal);
  margin-bottom: 3px;
}
.thread__step .what { display: block; font-size: 0.88rem; line-height: 1.4; }

/* A thread step whose session is unwritten. Renders as a <div>, not an <a>,
   so it is inert to keyboard and pointer alike — the muted styling states
   what the missing href already enforces. */
.thread__step--soon {
  background: transparent;
  border-style: dashed;
  color: var(--slate);
}
.thread__step--soon:hover { border-color: var(--rule); background: transparent; }
.thread__step--soon .num { color: var(--slate); }
.thread__arrow {
  flex: 0 0 auto;
  align-self: center;
  color: var(--teal-dim);
  padding: 0 10px;
  font-size: 1.1rem;
  line-height: 1;
}

/* Block sections + session tiles */
.block { margin-bottom: 52px; }
.block__head { margin-bottom: 20px; }
.block__desc { color: var(--slate); max-width: 66ch; margin: 0.35rem 0 0; font-size: 0.95rem; }

.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(258px, 1fr));
  gap: 14px;
}

.tile {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 17px 18px 18px;
  color: var(--off-white);
  transition: border-color .14s ease, transform .14s ease, background .14s ease;
}
.tile:hover {
  text-decoration: none;
  border-color: var(--teal);
  background: var(--navy-mid);
  transform: translateY(-2px);
}
.tile__num {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 7px;
}
.tile__title { font-size: 1rem; font-weight: 620; color: var(--white); line-height: 1.35; }
.tile__meta {
  margin-top: auto; padding-top: 12px;
  font-size: 0.78rem; color: var(--slate);
}

/* Session 0 on-ramp callout */
.onramp {
  display: block;
  background: linear-gradient(135deg, var(--card) 0%, var(--navy-mid) 100%);
  border: 1px solid var(--teal-dim);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-lg);
  padding: 26px 28px;
  margin-bottom: 48px;
  color: var(--off-white);
}
.onramp:hover { text-decoration: none; border-color: var(--teal); }
.onramp h2 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.onramp p { margin: 0; max-width: 64ch; color: var(--off-white); }
.onramp__cta { display: inline-block; margin-top: 14px; color: var(--teal); font-weight: 600; font-size: 0.9rem; }

/* --------------------------------------------------------------------------
   Session page
   -------------------------------------------------------------------------- */

.session-head {
  border-bottom: 1px solid var(--rule);
  padding-bottom: 26px;
  margin-bottom: 34px;
}
.session-head h1 {
  font-size: clamp(1.65rem, 3.6vw, 2.25rem);
  letter-spacing: -0.012em;
  max-width: 24ch;
}
.session-head__goal {
  margin: 1.1rem 0 0;
  font-size: 1.05rem;
  color: var(--off-white);
  max-width: 64ch;
}

.section { margin-bottom: 42px; }

.prose { max-width: 68ch; }
.prose p { margin: 0 0 1rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: 0.5rem; }
.prose li::marker { color: var(--teal); }
.prose strong { color: var(--white); font-weight: 650; }
.prose h3 { font-size: 1.05rem; margin: 1.8rem 0 0.6rem; }

/* Placeholder region — visible while prose is unauthored */
.placeholder {
  border: 1px dashed var(--rule);
  border-radius: var(--radius);
  background: rgba(148,163,184,0.04);
  padding: 20px 22px;
  color: var(--slate);
  font-size: 0.92rem;
  max-width: 68ch;
}
.placeholder__label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 6px;
}
.placeholder p { margin: 0.4rem 0 0; }

/* Timed segment (e.g. "Trap 1 — 15 min") */
.segment {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 24px 26px 26px;
  margin-bottom: 22px;
}
.segment__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
.segment__head h3 { font-size: 1.12rem; }
.segment__time {
  flex: 0 0 auto;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate);
  border: 1px solid var(--rule); border-radius: 20px; padding: 3px 11px;
}

/* Discussion prompt — amber callout */
.prompt {
  border-left: 3px solid var(--amber);
  background: var(--amber-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 18px;
  margin: 18px 0 0;
  max-width: 68ch;
}
.prompt__label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 4px;
}
.prompt p { margin: 0; color: var(--white); font-size: 1rem; }

/* --------------------------------------------------------------------------
   Callback / next nav
   -------------------------------------------------------------------------- */

.callbacks {
  border-top: 1px solid var(--rule);
  padding-top: 28px;
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 14px;
}
.callback {
  display: block;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 15px 17px;
  color: var(--off-white);
}
.callback:hover { text-decoration: none; border-color: var(--teal); background: var(--navy-mid); }
.callback__kind {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 5px;
}
.callback__title { color: var(--white); font-weight: 600; font-size: 0.95rem; line-height: 1.35; }
.callback__why { color: var(--slate); font-size: 0.85rem; margin-top: 6px; line-height: 1.45; }
.callback--back .callback__kind { color: var(--teal); }
.callback--fwd  .callback__kind { color: var(--amber); }

/* --------------------------------------------------------------------------
   Take-home dataset call to action
   -------------------------------------------------------------------------- */

.dataset-cta {
  background: var(--card);
  border: 1px solid var(--rule);
  /* Solid TBC sky down the left edge. A fill, not text, so the official
     value is used at full strength here. */
  border-left: 4px solid var(--teal-solid);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.dataset-cta__blurb { margin: 0; max-width: 62ch; }
.dataset-cta__meta {
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--slate);
}
.dataset-cta__btn {
  display: inline-block;
  margin-top: 18px;
  background: var(--teal-solid);
  /* Dark text on the sky fill — white would sit at 2.6:1 and fail. */
  color: var(--card-dark);
  font-weight: 650;
  font-size: 0.92rem;
  padding: 11px 20px;
  border-radius: var(--radius);
}
.dataset-cta__btn:hover { background: var(--teal); text-decoration: none; }
.dataset-cta__note {
  margin: 14px 0 0;
  font-size: 0.84rem;
  color: var(--slate);
  max-width: 62ch;
}

.footer-nav {
  margin-top: 40px;
  font-size: 0.88rem;
  color: var(--slate);
}

/* --------------------------------------------------------------------------
   Dataset table component
   -------------------------------------------------------------------------- */

.dataset {
  background: var(--card-dark);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin: 20px 0 0;
}

.dataset__bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rule);
  background: var(--card);
}
.dataset__caption { font-size: 0.9rem; font-weight: 650; color: var(--white); }
.dataset__sub { display: block; font-weight: 400; color: var(--slate); font-size: 0.8rem; margin-top: 2px; }

.reveal-btn {
  flex: 0 0 auto;
  background: transparent;
  border: 1px solid var(--teal-dim);
  color: var(--teal);
  border-radius: 20px;
  padding: 6px 15px;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  cursor: pointer;
  white-space: nowrap;
}
.reveal-btn:hover { background: var(--teal-glow); }
.reveal-btn[aria-pressed="true"] {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--card-dark);
}

.dataset__scroll { overflow-x: auto; }

.dataset table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}
.dataset thead th {
  text-align: left;
  padding: 11px 14px;
  color: var(--slate);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  border-bottom: 1px solid var(--rule);
  background: var(--card-dark);
}
.dataset tbody td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--rule-soft);
  vertical-align: top;
  white-space: nowrap;
}
.dataset tbody tr:last-child td { border-bottom: 0; }
.dataset tbody tr:hover td { background: rgba(255,255,255,0.025); }
.dataset .col--id { font-family: var(--mono); font-size: 0.8rem; color: var(--slate); }
.dataset .is-empty { color: var(--slate); opacity: 0.5; }

/* Reveal styling — inert until the container gets .is-revealed */
.dataset .hl { transition: background .16s ease, box-shadow .16s ease; }

.dataset.is-revealed td.hl {
  background: var(--amber-glow);
  box-shadow: inset 2px 0 0 var(--amber);
  color: var(--white);
}
.dataset.is-revealed tr.hl > td {
  background: var(--amber-glow);
}
.dataset.is-revealed tr.hl > td:first-child {
  box-shadow: inset 3px 0 0 var(--amber);
}

/* Revealing adds a column. Let the data cells wrap so the annotation stays
   on screen instead of being pushed into horizontal scroll — this table is
   usually on a projector when it gets revealed. */
.dataset.is-revealed tbody td,
.dataset.is-revealed thead th { white-space: normal; }
.dataset.is-revealed tbody td.col--id { white-space: nowrap; }

/* Per-row annotation column, hidden until revealed */
.dataset .note-cell { color: var(--amber); font-size: 0.8rem; white-space: normal; min-width: 160px; }
.dataset .note-col, .dataset .note-cell { display: none; }
.dataset.is-revealed .note-col, .dataset.is-revealed .note-cell { display: table-cell; }

/* Reveal explanation drawer */
.dataset__explain {
  display: none;
  padding: 16px 18px;
  border-top: 1px solid var(--rule);
  background: rgba(245, 155, 41,0.05);
  font-size: 0.9rem;
  color: var(--off-white);
}
.dataset.is-revealed .dataset__explain { display: block; }
.dataset__explain p { margin: 0 0 0.6rem; }
.dataset__explain p:last-child { margin-bottom: 0; }
.dataset__explain .label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--amber); display: block; margin-bottom: 5px;
}

/* Synthetic-data stamp */
.synthetic-note {
  font-size: 0.75rem;
  color: var(--slate);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* Two-table comparison (Session 5 overlap) --------------------------------- */

.compare {
  display: grid;
  /* 440px min: below that the two tables would clip their shared-key column,
     so they stack full-width instead of sitting side by side. */
  grid-template-columns: repeat(auto-fit, minmax(440px, 1fr));
  gap: 16px;
  align-items: start;
}
.compare .dataset { margin-top: 0; }

/* Two tables in half the width each: tighten up and let long values wrap
   rather than pushing the shared key column out of view — that column is
   the whole point of the exercise. */
.compare .dataset table { font-size: 0.8rem; }
.compare .dataset thead th,
.compare .dataset tbody td {
  padding: 8px 10px;
  white-space: normal;
}
.compare .dataset .col--id { white-space: nowrap; }

.overlap-readout {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-top: 18px;
}
.overlap-readout h4 {
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--teal); margin-bottom: 14px;
}
.overlap-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 0;
}
.stat { margin: 0; }
.stat__num {
  font-size: 1.7rem; font-weight: 700; color: var(--white);
  font-variant-numeric: tabular-nums; line-height: 1.1;
  display: block;
}
.stat__num--amber { color: var(--amber); }
.stat__label { font-size: 0.8rem; color: var(--slate); line-height: 1.4; display: block; margin-top: 3px; }
.overlap-verdict {
  margin: 16px 0 0; padding-top: 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem; color: var(--off-white);
}

/* --------------------------------------------------------------------------
   VIEW MODES — audience is the default; ?prep shows the facilitator view.

   Everything hidden below is prep material: unwritten-content placeholders,
   curriculum-planning callouts, run-sheet timings, the outline scaffolding on
   stub pages, and facilitator design notes. The production gotchas are NOT
   hidden — those are audience-facing by decision.
   -------------------------------------------------------------------------- */

[data-view="audience"] .placeholder,
[data-view="audience"] .seeded,
[data-view="audience"] .segment__time,
[data-view="audience"] .prep-only,
[data-view="audience"] section[aria-labelledby="s-outline"],
[data-view="audience"] section[aria-labelledby="s-notes"] {
  display: none !important;
}

/* Facilitator-mode banner */
.prepbar {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--amber-glow);
  border-bottom: 1px solid rgba(245, 155, 41, 0.35);
  padding: 9px 20px;
  font-size: 0.85rem;
  position: relative;
  z-index: 60;
}
.prepbar__label {
  font-size: 0.64rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--amber);
  border: 1px solid var(--amber); border-radius: 20px; padding: 2px 10px;
  flex: 0 0 auto;
}
.prepbar__what { color: var(--off-white); flex: 1 1 240px; }
.prepbar__exit { color: var(--teal); font-weight: 600; flex: 0 0 auto; }

/* Sessions not yet written, in the audience view */
.nav-link--unpublished { opacity: 0.55; }
.nav-link__soon {
  display: inline-block;
  margin-left: 7px;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate);
  border: 1px solid var(--rule); border-radius: 20px; padding: 1px 7px;
  vertical-align: middle;
}

.notyet {
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--slate);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin-top: 8px;
}
.notyet__label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--slate); margin-bottom: 8px;
}
.notyet__what { margin: 0; color: var(--off-white); max-width: 60ch; }

/* Landing tiles for unwritten sessions */
[data-view="audience"] .tile--unpublished { opacity: 0.6; }
.tile__soon {
  display: inline-block;
  margin-left: 7px;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--slate);
  border: 1px solid var(--rule); border-radius: 20px; padding: 1px 7px;
  vertical-align: middle;
}

@media print { .prepbar { display: none !important; } }

/* --------------------------------------------------------------------------
   Delivered flags + "ground already covered" callout
   -------------------------------------------------------------------------- */

.nav-link__flag,
.tile__flag {
  display: inline-block;
  margin-left: 7px;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal);
  border: 1px solid var(--teal-dim);
  border-radius: 20px;
  padding: 1px 7px;
  vertical-align: middle;
  white-space: nowrap;
}

.seeded {
  display: block;
  background: rgba(245, 155, 41, 0.06);
  border: 1px solid rgba(245, 155, 41, 0.28);
  border-left: 4px solid var(--amber);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin: 0 0 34px;
}
.seeded__label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.seeded__source {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--off-white);
  font-weight: 600;
}
.seeded__flag {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.58rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--teal);
  border: 1px solid var(--teal-dim); border-radius: 20px; padding: 1px 7px;
  vertical-align: middle;
}
.seeded__list { margin: 0 0 14px; padding-left: 1.15rem; max-width: 72ch; }
.seeded__list:last-child { margin-bottom: 0; }
.seeded__list li {
  color: var(--slate);
  font-size: 0.89rem;
  line-height: 1.55;
  margin-bottom: 6px;
}
.seeded__list li::marker { color: var(--amber); }

/* --------------------------------------------------------------------------
   Production gotchas — the real-world consequence behind the abstract point.
   Deliberately teal/slate, so it never reads as the amber "already covered"
   callout: that one says don't re-teach this, this one says here's the bite.
   -------------------------------------------------------------------------- */

.gotchas__note {
  color: var(--slate);
  font-size: 0.85rem;
  margin: -0.5rem 0 1.2rem;
  max-width: 68ch;
}

.gotcha {
  background: var(--card-dark);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--teal-dim);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 14px;
  max-width: 78ch;
}
.gotcha:last-child { margin-bottom: 0; }

.gotcha__pattern {
  color: var(--white);
  font-weight: 650;
  font-size: 0.98rem;
  line-height: 1.35;
  margin-bottom: 8px;
}
.gotcha__what {
  margin: 0;
  color: var(--off-white);
  font-size: 0.92rem;
  line-height: 1.6;
}
.gotcha__signal {
  margin: 12px 0 0;
  padding-top: 11px;
  border-top: 1px solid var(--rule-soft);
  color: var(--slate);
  font-size: 0.87rem;
  line-height: 1.55;
}
.gotcha__signal-label {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 4px;
}

/* --------------------------------------------------------------------------
   Stack diagram — layered rows, load-bearing layers called out
   -------------------------------------------------------------------------- */

.stack { display: flex; flex-direction: column-reverse; gap: 6px; margin: 20px 0 0; }

.stack__layer {
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--rule);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.stack__name { font-weight: 620; color: var(--white); font-size: 0.95rem; flex: 0 0 auto; }
.stack__what { color: var(--slate); font-size: 0.87rem; flex: 1 1 200px; }
.stack__layer--bearing {
  border-left-color: var(--amber);
  background: linear-gradient(90deg, var(--amber-glow) 0%, var(--card) 60%);
}
.stack__tag {
  flex: 0 0 auto;
  font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--amber);
  border: 1px solid var(--amber); border-radius: 20px; padding: 2px 9px;
}

/* --------------------------------------------------------------------------
   Test cards (four tests for an identity field)
   -------------------------------------------------------------------------- */

.tests {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 20px 0 0;
}
.test {
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--teal);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.test__name { color: var(--white); font-weight: 650; font-size: 1rem; }
.test__what { color: var(--slate); font-size: 0.87rem; margin: 5px 0 12px; line-height: 1.45; }
.test__eg { font-size: 0.85rem; margin: 0; }
.test__eg span { display: block; margin-bottom: 3px; }
.test__yes::before { content: "✅ "; }
.test__no::before  { content: "❌ "; }
.test__no { color: var(--slate); }

/* --------------------------------------------------------------------------
   Two-column split (anti-patterns: why it stalls / build instead)
   -------------------------------------------------------------------------- */

.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin: 18px 0 0;
}
.split__side {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 17px 19px;
}
.split__side p { margin: 0; font-size: 0.92rem; }
.split__label {
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; margin-bottom: 8px;
}
.split__side--problem { border-top: 3px solid var(--slate); }
.split__side--problem .split__label { color: var(--slate); }
.split__side--build   { border-top: 3px solid var(--teal); }
.split__side--build .split__label { color: var(--teal); }

/* Doctrine callout (never / always) */
.doctrine { margin: 20px 0 0; }
.doctrine__line {
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
  border-left: 3px solid var(--rule);
  padding: 12px 0 12px 16px;
  margin-bottom: 10px;
}
.doctrine__line--never { border-left-color: var(--slate); }
.doctrine__line--always { border-left-color: var(--teal); }
.doctrine__key {
  flex: 0 0 auto;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase;
}
.doctrine__line--never .doctrine__key { color: var(--slate); }
.doctrine__line--always .doctrine__key { color: var(--teal); }
.doctrine__text { flex: 1 1 240px; margin: 0; }

/* --------------------------------------------------------------------------
   Glossary
   -------------------------------------------------------------------------- */

.glossary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0 26px;
  margin: 20px 0 0;
}
.glossary div {
  border-bottom: 1px solid var(--rule-soft);
  padding: 11px 0;
}
.glossary dt { color: var(--white); font-weight: 620; font-size: 0.92rem; }
.glossary dd { margin: 3px 0 0; color: var(--slate); font-size: 0.87rem; line-height: 1.5; }

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 860px) {
  .shell { flex-direction: column; }
  .navbar { display: flex; }

  .sidebar {
    position: static;
    width: 100%;
    flex: none;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--rule);
    padding: 18px 16px 26px;
    display: none;
  }
  .sidebar.is-open { display: block; }
  .sidebar .brand { display: none; }

  .wrap { padding: 30px 18px 72px; }

  .thread__arrow { display: none; }
  .thread__steps { gap: 10px; }
  .thread__step { flex: 1 1 100%; }

  .dataset tbody td, .dataset thead th { padding: 9px 11px; }
}

@media (min-width: 861px) {
  .sidebar { display: block !important; }
}

/* Printing produces the FACILITATOR copy: nav chrome gone, and every trap
   annotation forced visible whether or not it was revealed on screen. */
@media print {
  .sidebar, .navbar, .reveal-btn, .skip-link,
  .callbacks, .footer-nav { display: none !important; }

  body { background: #fff; color: #111; }
  h1, h2, h3, h4 { color: #000; }
  a { color: #111; text-decoration: none; }

  .wrap { max-width: none; padding: 0; }

  .segment, .dataset, .placeholder, .thread,
  .overlap-readout, .tile, .onramp {
    background: #fff;
    border-color: #bbb;
    box-shadow: none;
  }

  .dataset thead th { background: #f2f2f2; color: #333; }
  .dataset tbody td { color: #111; }
  .dataset tbody tr:hover td { background: transparent; }

  /* Annotations and explanations: always on in print. */
  .dataset .note-col,
  .dataset .note-cell { display: table-cell; color: #8a5a00; }
  .dataset__explain { display: block; background: #fff7e8; color: #111; }
  .dataset tr.hl > td,
  .dataset td.hl { background: #fff2d6; box-shadow: inset 2px 0 0 #b3791a; }

  .eyebrow, .prompt__label, .placeholder__label { color: #8a5a00; }
  .prompt { background: #fff7e8; border-left-color: #b3791a; }
  .prompt p { color: #111; }
  .stat__num, .stat__num--amber { color: #000; }
  .stat__label, .synthetic-note, .block__desc { color: #444; }

  .segment { page-break-inside: avoid; }
}
