/* Blog post draft; builds on ../assets/tokens.css. The live model and guided tour are on the companion page demo/ (which also loads
   ../vertical/vertical.css); the story styles below are used there. Split pair: the opponent (ochre) | the model (blue). */
:root { --split-a: #d09017; --split-b: #2563b0; --me: #2563b0; --op: #d09017; --ok: #2f6b57; --bad: #9b3a27; --lamp: #c9503a; }
.legend i.dash { width: 18px; height: 0; border-top: 2px dashed var(--muted); border-radius: 0; }
.legend i.ring { background: var(--card); border: 1.6px solid var(--ink-2); border-radius: 50%; width: 9px; height: 9px; }
.fig .chart svg { max-width: 100%; height: auto; }
.fig .chart svg text { font-family: var(--sans); fill: var(--ink); }
.fig .chart svg .num { font-family: var(--mono); font-size: 10.5px; fill: var(--muted); }
section.appendix h2 { margin-top: 56px; }
#described td:nth-child(3), #described-short td:nth-child(2) { font-family: var(--serif); font-size: 14px; }

/* ---------- the scrolling story: hero, pinned dark stage, story cards (this post only) */
header.hero { max-width: 1120px; margin: 0 auto; padding: 48px 20px 8px; }  /* the demo page only; the post uses the shared header.top */
header.hero h1 { font-size: 46px; max-width: 900px; }
header.hero .standfirst { max-width: 760px; }
.story { max-width: 1120px; margin: 0 auto 40px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 44px; align-items: start; }
#stage.stage { display: block; }
.stage { position: sticky; top: 14px; background: var(--card); color: var(--ink); border: 1px solid var(--rule); border-radius: 6px; padding: 16px 16px 12px; box-shadow: 0 6px 24px rgba(20,25,24,.06); }
.stage::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--split); border-radius: 6px 6px 0 0; }
.stage-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.stage .boardwrap { max-width: none; }
.stage .boardbtns button, .stage .presets button { background: var(--paper); color: var(--ink); border-color: var(--rule); }
.stage .status, .stage .sx { color: var(--muted); }
.step-mini { border-top: 1px solid var(--rule); padding: 6px 0 8px; transition: background .25s; border-radius: 3px; }
.step-mini .sn { background: var(--ink); color: #fff; margin-right: 6px; }
.step-mini .lbl { font: 600 12px/1.3 var(--sans); color: var(--ink); }
.step-mini.focus { background: rgba(208,144,23,.14); box-shadow: -6px 0 0 rgba(208,144,23,.14), 6px 0 0 rgba(208,144,23,.14); }
.stage .sx { font-size: 11.5px; margin-top: 3px; }
.stage .meter .tube { background: #e6e9e8; height: 34px; }
.stage .meter { color: var(--muted); }
.stage .probs { height: 52px; }
.stage .probs .pc { color: var(--muted); }
.stage .probs .pc i { background: var(--ink-2); }
.stage .probs .pc.block i { background: var(--me); }
.stage .switches { margin: 10px 0 0; gap: 6px; }
.stage .switch { background: var(--paper); border-color: var(--rule); color: var(--ink); padding: 6px 8px; font-size: 11px; }
.stage .switch b { font-size: 12px; } .stage .switch .m { color: var(--muted); font-size: 10.5px; }
.stage .switch.on { background: #f6ecea; border-color: var(--bad); }
.atlas-wrap { margin-top: 12px; border-top: 1px solid var(--rule); padding-top: 8px; }
.atlas-head { display: flex; justify-content: space-between; gap: 10px; font: 600 11px/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.atlas-mode { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--t-soft); text-align: right; }
#atlas { display: block; cursor: crosshair; touch-action: manipulation; }
.ncard { font: 12px/1.45 var(--sans); color: var(--ink-2); margin-top: 8px; min-height: 52px; max-height: 120px; overflow: auto; }
.ncard .dim { color: var(--muted); } .ncard .role { color: var(--t-soft); font-weight: 600; }
.stage .presets { margin: 10px 0 0; gap: 4px; }
.stage .presets button { font-size: 11px; padding: 4px 7px; }
.steps { padding: 4vh 0 30vh; }
.sc { position: relative; background: var(--card); border: 1px solid var(--rule); border-radius: 4px; padding: 18px 20px 6px; margin: 0 0 58vh; transition: border-color .3s, box-shadow .3s; }
.sc:first-child { margin-top: 8vh; }
.sc.active { border-color: var(--ink-2); box-shadow: 0 6px 24px rgba(20,25,24,.07); }
.sc .sc-no { font: 500 12px var(--mono); color: var(--brand); margin: 0 0 4px; }
.sc h2 { font: 600 23px/1.2 var(--display); margin: 0 0 10px; scroll-margin-top: 20px; }
.sc p { font-size: 16.5px; line-height: 1.6; }
.fig.mini { margin: 12px 0 14px; padding: 14px 12px 10px; }
.fig.mini .fig-title { font-size: 14px; }
@media (max-width: 960px) {
  header.hero { padding-top: 32px; } header.hero h1 { font-size: 34px; }
  .story { grid-template-columns: 1fr; gap: 0; padding: 0 12px; }
  .stage { top: 0; z-index: 5; border-radius: 0 0 6px 6px; padding: 10px 10px 8px; margin: 0 -12px; }
  .stage-grid { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 10px; }
  .stage .boardbtns, #st-head .sx, #st-dirs, .stage .presets, .ncard { display: none; }
  .step-mini { padding: 3px 0 4px; } .stage .probs { height: 44px; } .stage .probs .pc i { max-height: 28px; } .stage #move-text { margin-top: 4px; }
  .stage .switches { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stage .switch .m, .stage .switch span:not(.m) { display: none; }
  .stage .switch { font-size: 0; } .stage .switch b { font-size: 10.5px; margin: 0; }
  .stage.explore .presets, .stage.explore .ncard { display: flex; } .stage.explore .ncard { display: block; max-height: 70px; }
  .sc { margin-bottom: 70vh; } .sc:first-child { margin-top: 4vh; } .steps { padding-bottom: 60vh; }
  .sc p { font-size: 16px; }
}

body.story-on nav.rail, body.story-on .rail-toggle { opacity: 0 !important; pointer-events: none !important; }
.stage .switch { font-size: 0; } .stage .switch b { font-size: 12px; margin-bottom: 2px; } .stage .switch .m { font-size: 10.5px; }

/* ---------- the post: lead paragraph and the demo card (after Goodfire's linked demos) */
main .lead { font-size: 19px; line-height: 1.6; color: var(--ink); }
.demo-card { max-width: var(--measure); margin: 8px auto 38px; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: center; }
.demo-shot { display: block; position: relative; border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; background: var(--card); box-shadow: 0 8px 28px rgba(20,25,24,.08); transition: transform .2s, box-shadow .2s; }
.demo-shot::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--split); z-index: 1; }
.demo-shot:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(20,25,24,.12); }
.demo-shot img { display: block; width: 100%; height: auto; }
.demo-text .kick { font: 600 11.5px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin: 0 0 6px; }
.demo-text .demo-h { font: 700 22px/1.2 var(--display); letter-spacing: -.02em; margin: 0 0 10px; color: var(--ink); }
.demo-text p { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.demo-links { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; font: 500 14px var(--sans); }
.demo-links .btn { background: var(--ink); color: #fff; text-decoration: none; padding: 10px 18px; border-radius: 22px; }
.demo-links .btn:hover { background: var(--me); }
/* ---------- the demo page header */
.demo-hero .back { font: 500 13.5px var(--sans); margin: 0 0 18px; }
.demo-hero h1 { font-size: 40px; }
@media (max-width: 760px) {
  .demo-card { grid-template-columns: 1fr; gap: 16px; margin-bottom: 24px; }
  .demo-text .demo-h { font-size: 22px; } .demo-hero h1 { font-size: 30px; }
}
body.demo-on nav.rail, body.demo-on .rail-toggle { opacity: 0 !important; pointer-events: none !important; }
.tscroll { overflow-x: auto; margin: 0 0 14px; max-width: 100%; }
#described td.n, #testb-table td.n { font-family: var(--mono); font-size: 12.5px; white-space: nowrap; }
