/* Escape from theory land · Volume 3 · Transforming the organisation · website
   (built from the volume 1 stylesheet; volume 3's colours: green #3DBE5C, deep #1B6B35)
   Layout: dark hero (the problem: cars with no roads); then one scroll with text
   cards on the left and, pinned on the right, the book's map on its road, which
   fills in step by step; dark closing band. The look is the book's own pages:
   paper, ink, Archivo condensed capitals, IBM Plex Mono labels, volume 1 orange.
   Fonts come from ../assets/series.css. */

:root {
  color-scheme: light;
  --paper: #F5F3EE;
  --white: #FFFFFF;
  --ink: #141417;
  --grey: #55555E;
  --soft: #9A988F;
  --rule: #C9C6BE;
  --band: #ECEAE4;
  --tint: #E3F4E7;
  --acc: #3DBE5C;
  --deep: #1B6B35;
  --darker: #0F4521;
  --night: #0A0A0D;
  --night-ink: #F5F3EE;
  --night-grey: #B9B7B0;
  --night-rule: #2A2A31;
  --display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

* { box-sizing: border-box; }
html { background: var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 760px) { .wrap { padding-left: max(40px, env(safe-area-inset-left, 0px)); padding-right: max(40px, env(safe-area-inset-right, 0px)); } }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
a { color: var(--deep); }
a:hover { color: var(--darker); }
:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
sup { font-size: 0.65em; line-height: 0; }
sup a { text-decoration: none; }

/* ---------- hero ---------- */
.hero { background: var(--night); color: var(--night-ink); }
.hero-grid { padding-block: 44px 40px; display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); gap: 56px; padding-block: 72px 64px; } }
.hero-text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pill { align-self: flex-start; border: 1px solid var(--acc); border-radius: 999px; padding: 6px 12px; font-size: 11px; }
.hero h1 { font-weight: 900; font-stretch: 68%; font-size: clamp(60px, 12vw, 128px); line-height: 0.88; text-transform: uppercase; }
.hero h1 em { font-style: normal; color: var(--acc); }
.vt { font-weight: 800; font-stretch: 80%; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.1; }
.subtitle { font-size: clamp(17px, 2vw, 20px); line-height: 1.35; max-width: 40ch; color: #E4E2DC; }
.lead { font-weight: 800; font-stretch: 80%; font-size: clamp(24px, 3vw, 32px); line-height: 1.12; max-width: 26ch; color: var(--acc); margin-top: 6px; }
.cue { color: var(--night-grey); margin-top: 6px; }
.cue::after { content: " ↓"; }
.hero-fig { margin: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; }
.hero-art { width: 100%; max-width: 340px; height: auto; display: block; }
@media (max-width: 899px) { .hero-art { max-width: 260px; } }
.hero-fig figcaption { font-weight: 800; font-stretch: 80%; font-size: 22px; line-height: 1.2; color: var(--acc); text-align: center; }
.hero-art .car rect { fill: var(--acc); }
.hero-art .car circle { fill: var(--night-ink); }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .car { animation: jitter 3.2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .hero-art .car:nth-child(2n) { animation-delay: -1.1s; }
  .hero-art .car:nth-child(3n) { animation-delay: -2.2s; animation-direction: reverse; }
}
@keyframes jitter { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 30% { transform: translate(4px, -2px) rotate(-6deg); } 65% { transform: translate(-3px, 2px) rotate(5deg); } }

/* ---------- story layout ---------- */
.story { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.cards { min-width: 0; padding-bottom: 12svh; }
.stage-col { min-width: 0; }
@media (min-width: 960px) {
  .story { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
  .cards { grid-column: 1; grid-row: 1; }
  .stage-col { grid-column: 2; grid-row: 1; }
}
.stage { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 3; background: var(--paper); display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 960px) { .stage { height: 100svh; padding-block: 6svh 3svh; } }
@media (max-width: 959px) {
  .stage-col { order: -1; grid-row: 1; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 3; }
  .stage { position: static; padding-block: 8px 6px; border-bottom: 1px solid var(--rule); margin-inline: calc(-1 * max(16px, env(safe-area-inset-left, 0px))); padding-inline: max(16px, env(safe-area-inset-left, 0px)); }
  .legend { display: none !important; }
  html:not(.js) .stage-col { position: static; }
}

/* rail: the journey in five stops */
.rail { display: flex; align-items: center; }
.track { position: relative; flex: 1 1 auto; max-width: 360px; }
.track::before { content: ""; position: absolute; left: 13px; right: 13px; top: 50%; height: 1px; background: var(--rule); }
.track .fill { position: absolute; left: 13px; top: 50%; margin-top: -1px; height: 2px; width: 0; background: var(--acc); transition: width 0.4s var(--ease); }
.rail ol { list-style: none; margin: 0; padding: 0; display: flex; justify-content: space-between; position: relative; z-index: 1; }
.rail a { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--rule); background: var(--paper); color: var(--grey); text-decoration: none; font-family: var(--mono); font-size: 11px; font-weight: 600; transition: background 0.3s, color 0.3s, border-color 0.3s; }
.rail a.is-past { border-color: var(--ink); color: var(--ink); }
.rail a[aria-current="step"] { background: var(--deep); border-color: var(--deep); color: var(--white); }
.slabel { color: var(--deep); font-weight: 600; font-size: 11.5px; min-height: 1.5em; }

/* the picture */
.pic { position: relative; background: var(--white); border: 1px solid var(--rule); padding: 10px; flex: 0 1 auto; min-height: 0; display: flex; align-items: flex-start; justify-content: center; }
.pic svg { display: block; width: 100%; height: 100%; max-height: 100%; }
@media (max-width: 959px) { .pic { height: 34svh; padding: 6px; } }
@media (min-width: 960px) { .pic { max-height: 74svh; } }
.alt { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 10px; background: var(--white); }
.js .alt { display: flex; opacity: 0; pointer-events: none; transition: opacity 0.4s var(--ease); }
.js .alt.on { opacity: 1; }
.js .pic.show-alt .map { opacity: 0.06; }
.nojs-fig { display: none; }
html:not(.js) .nojs-fig { display: block; }

/* map drawing */
.map text { font-family: var(--body); fill: var(--ink); }
.map .plane { fill: none; stroke: var(--rule); stroke-dasharray: 3 5; }
.map .rl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; fill: var(--grey); }
.map .vl { stroke: var(--rule); }
.map .cell { fill: var(--white); stroke: var(--rule); }
.map .cell.unk { fill: var(--paper); stroke-dasharray: 4 4; }
.map .hl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; fill: var(--grey); }
.map .h2tint { fill: var(--tint); stroke: var(--acc); stroke-width: 1.5; }
.map .uc { font-size: 10.5px; fill: var(--soft); }
.map .car rect { fill: var(--acc); }
.map .car circle { fill: var(--ink); }
.map .oncar circle { fill: var(--paper); }
.map .halo { fill: var(--acc); fill-opacity: 0.1; stroke: var(--acc); stroke-width: 1; }
.map .u-email { fill: var(--white); stroke: var(--ink); stroke-width: 2; }
.map .u-agent { fill: var(--acc); }
.map .ul { font-size: 11.5px; font-weight: 700; }
.map .badge rect { fill: var(--ink); }
.map .badge text { fill: var(--white); font-size: 11px; font-weight: 700; }
.map .r-built { fill: var(--ink); }
.map .r-dash { stroke: var(--paper); stroke-width: 2; stroke-dasharray: 10 8; }
.map .r-being { fill: var(--rule); }
.map .cone { fill: var(--acc); }
.map .r-not { fill: none; stroke: var(--soft); stroke-width: 1.5; stroke-dasharray: 5 5; }
.map .rt { font-size: 10.5px; fill: var(--grey); }
.map .rt.b { font-weight: 700; fill: var(--ink); }
.map .g1 { stroke: var(--deep); stroke-width: 4; }
.map .gate1.open .g1 { stroke-dasharray: 8 6; }
.map .gl { font-size: 10.5px; font-weight: 700; fill: var(--deep); }
.map .gl2 { font-size: 10px; fill: var(--grey); }
.map .dia { fill: var(--white); stroke: var(--deep); stroke-width: 2; }
.map .band rect { fill: var(--paper); stroke: var(--rule); }
.map .band.weak rect { fill: var(--tint); stroke: var(--acc); stroke-width: 2; }
.map .et { font-family: var(--mono); font-size: 8.5px; letter-spacing: 0.06em; fill: var(--ink); }
.map .own { fill: var(--deep); }
.map .ot { font-family: var(--mono); font-size: 8px; fill: var(--deep); }
.map .box { fill: var(--white); stroke: var(--ink); stroke-width: 1.25; }
.map .bt1 { font-size: 11.5px; font-weight: 700; }
.map .bt2 { font-size: 10.5px; fill: var(--grey); }
.map .link, .map .arrow { fill: none; stroke: var(--deep); stroke-width: 1.5; marker-end: url(#mk); }
.map marker path { fill: var(--deep); }
.map .dchip { fill: var(--deep); }
.map .dnum { fill: var(--white); font-family: var(--mono); font-size: 10px; font-weight: 600; text-anchor: middle; }
.map .dtxt { font-size: 10.5px; font-weight: 700; fill: var(--deep); }
.map .reader { display: none; }
.map .reader.show { display: inline; }
.map .rr { fill: none; stroke: var(--deep); stroke-width: 2.5; stroke-dasharray: 4 3; }
.map .rtx { font-size: 11px; font-weight: 700; fill: var(--deep); }

/* states, set by the script; without it, the finished map shows */
.map [data-from] { transition: opacity 0.45s var(--ease); }
.js .map [data-from].todo { opacity: 0.12; }
.js .map [data-until].todo, .js .map .gone { opacity: 0; visibility: hidden; }
html:not(.js) .map [data-until] { display: none; }
.map .cur.roles .rl, .map .cur.hors .hl { fill: var(--deep); font-weight: 700; }
.map .cur.hors .cell { stroke: var(--acc); }
.map .cur.road .r-being, .map .cur.road .r-not { stroke: var(--acc); }
.map .cur.uses .halo { stroke-width: 2.5; }
.map .cur.enab .band rect { stroke: var(--acc); }
.map .cur.gate1 .g1 { stroke-width: 6; }
.map .cur.senior .box { stroke: var(--acc); stroke-width: 2.5; }
.map .cur.gate2 .dia { fill: var(--acc); }
.map .cur.unclear .uc { fill: var(--deep); font-weight: 700; }
.map .cur.h2tint { stroke-width: 3; }
.map .cur.badge rect { fill: var(--deep); }
@media (prefers-reduced-motion: no-preference) {
  .map .cur.uses .halo.l, .map .cur.gate2 .dia, .map .cur.dec-g .dchip { animation: pulse 1.8s var(--ease) 2; transform-box: fill-box; transform-origin: center; }
}
@keyframes pulse { 50% { transform: scale(1.18); } }

/* small pictures that stand in for the map */
.alt-svg { width: 100%; height: auto; max-height: 100%; }
.alt-svg text { font-family: var(--body); fill: var(--ink); }
.alt-svg .ah { font-weight: 800; font-stretch: 80%; font-size: 22px; }
.alt-svg .s1 { fill: var(--rule); }
.alt-svg .s2 { fill: var(--band); }
.alt-svg .s3 { fill: var(--acc); }
.alt-svg .al { font-size: 13px; font-weight: 700; }
.alt-svg .am { font-size: 12.5px; fill: var(--grey); }
.alt-svg .ac { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; fill: var(--grey); }
.alt-svg .t5 { fill: var(--tint); stroke: var(--acc); stroke-width: 1.5; }
.alt-svg .tn { font-family: var(--mono); font-size: 12px; font-weight: 600; fill: var(--deep); }
.alt-svg .tl { font-size: 14px; font-weight: 700; }

/* legend */
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--grey); font-size: 10.5px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { display: inline-block; width: 16px; height: 12px; }
.lg-new i { background: var(--tint); border: 2px solid var(--acc); }
.lg-done i { background: var(--white); border: 1px solid var(--ink); }
.lg-todo i { border: 1px dashed var(--grey); opacity: 0.5; }

/* ---------- cards ---------- */
.card { padding-top: 64px; display: flex; flex-direction: column; gap: 16px; }
.card + .card { border-top: 2px solid var(--ink); margin-top: 28px; }
@media (min-width: 960px) { .card .trig { scroll-margin-top: 30svh; } .card { padding-bottom: 6svh; } .card .blk.add { margin-bottom: 18svh; } }
.kicker { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.kicker .mono { color: var(--grey); }
.chip { font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--white); background: var(--deep); padding: 3px 8px; }
.card h2 { font-weight: 900; font-stretch: 68%; font-size: clamp(34px, 4.6vw, 50px); line-height: 0.96; text-transform: uppercase; color: var(--deep); }
.card h2.h2b { margin-top: 24px; font-size: clamp(28px, 3.6vw, 40px); }
.card h3 { font-weight: 800; font-stretch: 85%; font-size: 21px; line-height: 1.2; }
.bt { font-size: 18px; line-height: 1.55; }
.blk { border-top: 2px solid var(--ink); }
.blk .lab { padding: 8px 12px; color: var(--white); background: var(--ink); font-size: 11px; }
.blk .txt { padding: 12px 12px 14px; font-size: 19px; line-height: 1.45; border-bottom: 1px solid var(--rule); }
.blk.add { border-top-color: var(--acc); }
.blk.add .lab { background: var(--deep); }
.blk.add .txt { font-weight: 700; background: var(--tint); border-bottom: 2px solid var(--acc); }
.small { font-size: 15px; color: var(--grey); line-height: 1.5; }
.pointer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; border-left: 3px solid var(--deep); padding: 4px 0 4px 14px; margin-top: 6px; }
.pointer .mono { color: var(--deep); font-size: 11px; }
.pointer .pt { grid-column: 1; font-weight: 700; font-size: 16px; line-height: 1.3; }
.pointer .pg { grid-column: 2; grid-row: 1 / span 2; align-self: center; color: var(--grey); font-size: 11px; }
.notes { border-top: 1px solid var(--rule); padding-top: 10px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.5; color: var(--grey); }
.notes .mono { font-size: 10.5px; }
.gochip { align-self: flex-start; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--white); background: var(--ink); padding: 8px 12px; }
.gochip:hover { background: var(--deep); color: var(--white); }
.gochip::after { content: " ↓"; }

.moves { background: var(--deep); color: var(--white); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.moves h3 { color: var(--white); }
.moves ol { margin: 0; padding-left: 26px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; }
.moves li::marker { font-family: var(--mono); font-weight: 600; }
.say { background: var(--tint); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; }
.say .mono { color: var(--deep); font-size: 11px; }
.close { border: 1px solid var(--ink); background: var(--white); padding: 16px 20px; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.5; }
.close .mono { color: var(--grey); font-size: 11px; }
.close h3 { font-size: 19px; }
.four { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-weight: 700; font-size: 17px; }
.four li::marker { color: var(--acc); }

/* figures */
.viz { margin: 0; border: 1px solid var(--rule); background: var(--white); padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.viz svg { width: 100%; height: auto; display: block; }
.fcap { color: var(--grey); font-size: 10.5px; line-height: 1.5; }
.viz .cl { font-size: 12.5px; fill: var(--ink); font-family: var(--body); }
.viz .cv { font-family: var(--mono); font-size: 11px; fill: var(--grey); }
.viz .bar { fill: var(--rule); }
.viz .bar.hot { fill: var(--acc); }
.ladder { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.ladder li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: start; padding: 8px 10px; border-left: calc(var(--lv) * 3px) solid var(--acc); background: var(--paper); }
.ladder .lvn { color: var(--deep); font-weight: 600; padding-top: 3px; }
.ladder b { display: block; font-weight: 800; font-size: 17px; }
.ladder span:not(.lvn) { display: block; font-size: 15px; line-height: 1.4; }
.ladder i { display: block; font-style: normal; font-size: 13.5px; color: var(--grey); }
.f4 { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; line-height: 1.3; }
.f4h, .f4r { display: grid; grid-template-columns: 92px minmax(0, 1fr) 40px minmax(0, 1fr); gap: 8px; align-items: center; }
.f4h { font-weight: 800; font-size: 12.5px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.f4h span:last-child, .f4r span:last-child { text-align: right; }
.f4r { padding: 6px 0; border-bottom: 1px solid var(--band); }
.f4r b { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep); }
.f4r i { display: block; height: 4px; background: linear-gradient(90deg, var(--rule), var(--acc)); border-radius: 2px; }
@media (max-width: 520px) { .f4h, .f4r { grid-template-columns: 74px minmax(0, 1fr) 18px minmax(0, 1fr); } }
.enab { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.enab li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; padding: 8px 10px; background: var(--paper); border-left: 3px solid var(--acc); font-size: 15px; }
.enab b { font-weight: 800; }
.twocol { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
.twocol .tc { border: 1px solid var(--rule); padding: 0 0 8px; }
.twocol .tch { padding: 8px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--band); color: var(--grey); }
.twocol .tc.hot { border-color: var(--acc); background: var(--tint); }
.twocol .tc.hot .tch { background: var(--deep); color: var(--white); }
.twocol ul { margin: 0; padding: 8px 12px 0 30px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; line-height: 1.4; }
.twocol .tc.hot ul { font-weight: 700; }
@media (max-width: 520px) { .twocol { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: no-preference) {
  .js .wallgate .tc { transition: opacity 0.5s var(--ease); }
  .js .card:not(.play) .wallgate .tc.hot { opacity: 0.35; }
  .js .card.play .wallgate .tc:not(.hot) { opacity: 0.55; transition-delay: 0.8s; }
  .js .card.play .wallgate .tc.hot { transition-delay: 0.8s; }
}
.loop .lp { fill: none; stroke: var(--soft); stroke-width: 2.5; }
.loop .lt { font-size: 12px; fill: var(--ink); font-family: var(--body); }
.loop .lt.b { font-weight: 700; }
.loop .ls { font-size: 11.5px; fill: var(--grey); font-family: var(--body); }
.loop .way { fill: none; stroke: var(--acc); stroke-width: 4; }
.loop .wayd { fill: var(--acc); }
@media (prefers-reduced-motion: no-preference) {
  .js .loop .way { stroke-dasharray: 380; stroke-dashoffset: 380; }
  .js .card.play .loop .way { animation: draw 1.6s var(--ease) 0.4s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.f6 { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.f6 li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px; padding: 8px 10px; background: var(--paper); font-size: 14.5px; }
.f6 li:last-child { background: var(--tint); }
@media (max-width: 520px) { .f6 li, .enab li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.gates { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.gates li { border: 2px solid var(--deep); padding: 10px 12px; display: flex; flex-direction: column; gap: 4px; font-size: 14.5px; line-height: 1.4; background: var(--white); }
.gates li:last-child { background: var(--tint); }
.gates b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep); }
@media (max-width: 620px) { .gates { grid-template-columns: minmax(0, 1fr); } }
.senior { background: var(--ink); color: var(--white); padding: 10px 14px; font-weight: 700; font-size: 15px; }
.seq { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.seq .st { display: inline-flex; align-items: baseline; gap: 8px; border: 1.5px solid var(--ink); padding: 8px 12px; font-weight: 700; font-size: 15px; background: var(--white); transition: background 0.3s, color 0.3s, border-color 0.3s; }
.seq .st .mono { font-size: 10.5px; color: var(--grey); }
.seq .st.on { background: var(--deep); border-color: var(--deep); color: var(--white); }
.seq .st.on .mono { color: var(--white); }
.dec { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.dec li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; padding: 10px 12px; background: var(--white); border: 1px solid var(--rule); }
.dec .dn { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--deep); color: var(--white); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.dec b { display: block; font-weight: 800; font-size: 18px; }
.dec span:not(.dn) { display: block; font-size: 15.5px; line-height: 1.45; }
.promise { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 700px) { .promise { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); } }
.promise .tch { padding: 8px 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--ink); color: var(--white); }
.promise .tch.hot { background: var(--deep); }
.promise ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.promise .nv li { padding: 8px 12px; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; font-size: 14.5px; line-height: 1.4; background: var(--white); }
.promise .nv b { font-weight: 700; }
.promise .nv span { color: var(--grey); }
.promise .cn li { padding: 10px 12px; border-bottom: 1px solid var(--acc); background: var(--tint); font-weight: 700; font-size: 15.5px; }

/* copy boxes (prompts, lists, summaries) */
.xfile { border: 1px solid var(--ink); background: var(--white); min-width: 0; }
.xh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; background: var(--ink); color: var(--white); padding: 10px 14px; }
.xt b { font-weight: 700; font-size: 15px; }
.xcopy { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 12px; border: 0; cursor: pointer; background: var(--acc); color: var(--night); font-weight: 600; }
.xb { margin: 0; padding: 14px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; white-space: pre-wrap; word-break: break-word; color: var(--ink); max-height: 360px; overflow-y: auto; }
.xb:empty::before { content: "…"; color: var(--soft); }
html:not(.js) .xcopy { display: none; }

/* tools */
.tool { border-top: 4px solid var(--acc); background: var(--white); padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 12px; font-size: 16px; line-height: 1.5; }
.tool .tl { color: var(--deep); font-size: 11px; }
.tool .tt { font-weight: 900; font-stretch: 70%; font-size: 30px; line-height: 1; text-transform: uppercase; color: var(--deep); }
.qs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.q { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rule); cursor: pointer; font-size: 16px; line-height: 1.4; }
.q input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--deep); }
.result { border: 2px solid var(--deep); background: var(--tint); padding: 12px 16px; font-weight: 700; display: flex; flex-direction: column; gap: 6px; }
.js .result p[hidden] { display: none; }
.steps1 { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.steps1 > li { border-top: 1px solid var(--rule); padding-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.qh { font-weight: 800; font-size: 18px; }
.qh .mono { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--deep); color: var(--white); font-size: 11px; margin-right: 6px; }
.qs2 { color: var(--grey); font-size: 15px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: 14px; color: var(--grey); }
.fld input { font: inherit; font-size: 16px; color: var(--ink); padding: 8px 10px; border: 1.5px solid var(--ink); background: var(--paper); border-radius: 0; width: 100%; }
.opts { display: flex; flex-wrap: wrap; gap: 6px; }
.opt { position: relative; cursor: pointer; }
.opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt span { display: inline-block; padding: 7px 12px; border: 1.5px solid var(--ink); font-size: 15px; font-weight: 600; background: var(--white); }
.opt.sm span { padding: 4px 10px; font-size: 13.5px; }
.opt input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--white); }
.opt input:focus-visible + span { outline: 3px solid var(--acc); outline-offset: 2px; }
.frow { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 10px; align-items: center; padding: 4px 0; }
.frow b { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--deep); }
.both { background: var(--paper); padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; font-size: 15px; }
.tqs { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.tq { border-bottom: 1px solid var(--rule); padding: 10px 0; display: flex; flex-direction: column; gap: 8px; }
.tq .mono { color: var(--deep); font-weight: 600; }
.tq .ch { color: var(--grey); font-weight: 400; font-size: 10.5px; }
.tq .three { display: none; gap: 6px; flex-direction: column; padding: 8px 10px; background: var(--tint); border-left: 3px solid var(--acc); }
.tq.is-no .three { display: flex; }
.tq.prio p .mono:first-child { background: var(--deep); color: var(--white); padding: 1px 5px; }
html:not(.js) .tq .three { display: flex; }
.rules { display: flex; flex-direction: column; gap: 8px; background: var(--paper); padding: 12px 14px; font-size: 15px; }

/* interludes */
.interlude { background: var(--night); color: var(--night-ink); padding: 40px 24px 28px; margin-inline: calc(-1 * min(24px, 2vw)); }
.card.interlude + .card, .card + .card.interlude { border-top: 0; }
.interlude .mono { color: var(--acc); }
.interlude h2 { color: var(--night-ink); }
.interlude .bt { font-size: 17px; color: #E4E2DC; }
.interlude .bt:last-of-type { font-weight: 800; font-stretch: 85%; font-size: 21px; color: var(--acc); }
.interlude .pointer { border-left-color: var(--acc); }
.interlude .pointer .mono { color: var(--acc); }
.interlude .pointer .pt { color: var(--night-ink); }
.interlude .notes { color: var(--night-grey); border-top-color: var(--night-rule); }
.interlude a { color: var(--acc); }

/* ---------- closing ---------- */
.closing { background: var(--night); color: var(--night-ink); }
.closing .wrap { padding-block: 64px 44px; display: flex; flex-direction: column; gap: 24px; }
.closing .big { max-width: 36ch; font-weight: 800; font-stretch: 80%; font-size: clamp(24px, 3.2vw, 36px); line-height: 1.15; }
.closing .big2 { font-weight: 900; font-stretch: 68%; font-size: clamp(44px, 7vw, 80px); line-height: 0.9; text-transform: uppercase; color: var(--acc); }
.cta { align-self: flex-start; border: 1.5px solid var(--acc); color: var(--acc); padding: 12px 18px; text-decoration: none; }
.cta[aria-disabled="true"] { opacity: 0.7; cursor: default; }
.others { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--night-rule); padding-top: 18px; }
.others .mono { color: var(--night-grey); font-size: 11px; }
.others ul { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.others a { color: var(--night-ink); }
.legal { border-top: 1px solid var(--night-rule); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; color: var(--night-grey); font-size: 13px; line-height: 1.55; max-width: 90ch; }

@media (prefers-reduced-motion: reduce) {
  .map [data-from], .rail a, .track .fill, .alt, .seq .st { transition: none !important; }
}
