/* Beyond the Chat · version 3
   Layout: dark hero band (title left, the chat that forgets right); then one scroll
   with text cards on the left and, pinned on the right, the project folder that
   fills in file by file; then "When things break"; dark closing band.
   One look on purpose: the book's own pages (paper, ink, deep blue, cyan on dark). */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url("../../assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("../../assets/fonts/archivo-latin-wdth-normal.woff2") format("woff2");
}
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../../assets/fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../../assets/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 600; font-display: swap; src: url("../../assets/fonts/ibm-plex-mono-latin-600-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #F5F3EE;
  --ink: #141417;
  --grey: #55535A;
  --rule: #C9C6BE;
  --band: #ECEAE3;
  --tint: #E6E9FB;
  --blue: #0000D7;
  --night: #0A0A0D;
  --night-ink: #F5F3EE;
  --night-grey: #B9B7B0;
  --night-rule: #2A2A31;
  --cyan: #28C8FF;
  --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: 1200px;
  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, h4 { margin: 0; text-wrap: balance; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
.mono { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; }

/* ---------- 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.25fr) minmax(0, 0.75fr); gap: 56px; padding-block: 72px 64px; } }
.hero-text { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.pill { align-self: flex-start; border: 1px solid var(--cyan); border-radius: 999px; padding: 6px 12px; font-size: 11px; }
.hero h1 {
  font-family: var(--display); font-weight: 900; font-stretch: 68%;
  font-size: clamp(64px, 12vw, 132px); line-height: 0.88; text-transform: uppercase;
}
.hero h1 em { font-style: normal; color: var(--cyan); }
.subtitle { font-size: clamp(18px, 2.2vw, 22px); line-height: 1.35; max-width: 34ch; color: var(--night-grey); }
.lead { font-weight: 800; font-stretch: 80%; font-size: clamp(26px, 3.4vw, 36px); line-height: 1.12; max-width: 22ch; }
.hsub2 { font-size: 18px; max-width: 40ch; }
.cue { color: var(--night-grey); margin-top: 8px; }
.cue::after { content: " ↓"; }
.hero-fig { margin: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.hero-art { width: 100%; max-width: 340px; height: auto; display: block; }
@media (max-width: 899px) { .hero-art { max-width: 240px; } }
.hero-fig figcaption { font-weight: 800; font-stretch: 80%; font-size: 20px; line-height: 1.2; color: var(--cyan); text-align: center; max-width: 24ch; }
.hero-art .frame { fill: #121216; stroke: var(--night-grey); stroke-width: 1.5; }
.hero-art .rule { stroke: var(--night-rule); stroke-width: 1.5; }
.hero-art .wlab { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--night-grey); }
.hero-art .bub { stroke-width: 1.5; }
.hero-art .bub.me { fill: #1E1E26; stroke: var(--night-grey); }
.hero-art .bub.ai { fill: none; stroke: var(--night-grey); }
.hero-art .sum { fill: #16161B; stroke: var(--night-grey); stroke-dasharray: 5 5; stroke-width: 1.5; }
.hero-art .bub.ghost { fill: none; stroke: #3A3A44; }
.hero-art .bub.dec { fill: rgba(40, 200, 255, 0.12); stroke: var(--cyan); }
.hero-art .dlab { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; fill: var(--cyan); }
.hero-art .strike { stroke: var(--cyan); stroke-width: 2; }
.hero-art .slab { font-family: var(--body); font-size: 11.5px; fill: var(--night-grey); text-anchor: middle; }
.hero-art .input { fill: none; stroke: #3A3A44; stroke-width: 1.5; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art .lost { animation: lose 5s var(--ease) 0.6s infinite; }
  .hero-art .strike { stroke-dasharray: 180; stroke-dashoffset: 180; animation: strike 5s var(--ease) 0.6s infinite; }
}
@keyframes lose { 0%, 35% { opacity: 1; } 70%, 100% { opacity: 0.25; } }
@keyframes strike { 0%, 20% { stroke-dashoffset: 180; } 45%, 100% { stroke-dashoffset: 0; } }

/* ---------- prologue (continues the dark band, like the book's page 6) ---------- */
.prologue { background: var(--night); color: var(--night-ink); }
.pro-grid { border-top: 1px solid var(--night-rule); padding-block: 40px 56px; display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pro-grid { grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 56px; padding-block: 64px 80px; align-items: start; } .pro-head { position: sticky; top: 72px; } }
.pro-head { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.prologue h2 { font-family: var(--display); font-weight: 900; font-stretch: 68%; font-size: clamp(40px, 6vw, 72px); line-height: 0.92; text-transform: uppercase; }
.prologue h2 em { font-style: normal; color: var(--cyan); }
.pro-open { margin: 0; background: var(--cyan); color: var(--night); padding: 20px 24px; font-weight: 700; font-stretch: 85%; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; }
.pro-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; color: #E4E2DC; }
.pro-body p { margin: 0; max-width: 60ch; }
.pro-body .pro-punch { font-weight: 900; font-stretch: 68%; font-size: clamp(28px, 3.4vw, 40px); line-height: 0.98; text-transform: uppercase; color: var(--cyan); margin-block: 8px; }
.pro-who { border-top: 1px solid var(--night-rule); padding-top: 18px; margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.pro-who h3 { font-weight: 900; font-stretch: 68%; font-size: 26px; line-height: 1; text-transform: uppercase; color: var(--night-ink); }
.prologue .pointer { border-left-color: var(--cyan); margin-top: 8px; }
.prologue .pointer .mono { color: var(--cyan); }
.prologue .pointer .pt { color: var(--night-ink); }
.prologue .pointer .pg { color: var(--night-grey); }

/* ---------- 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, 1.1fr) minmax(0, 0.9fr); column-gap: 56px; }
  .cards { grid-column: 1; grid-row: 1; }
  .stage-col { grid-column: 2; grid-row: 1; }
}

/* the pinned folder */
.stage {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 3;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
@media (min-width: 960px) {
  .stage { height: 100svh; padding-block: 9svh 4svh; justify-content: flex-start; }
}
@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: 10px 8px; 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; }
}

/* rail */
.rail { display: flex; align-items: center; }
.track { position: relative; flex: 1 1 auto; max-width: 440px; }
.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(--blue); 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; letter-spacing: 0;
  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(--blue); border-color: var(--blue); color: var(--paper); }

/* window and tree */
.win { background: var(--band); border-radius: 12px; overflow: hidden; border: 1px solid var(--rule); flex: none; }
.wtop { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.wtop .label { color: var(--ink); font-weight: 600; font-size: 11.5px; }
.tree { padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.row {
  display: flex; align-items: center; gap: 10px; width: 100%;
  font: inherit; text-align: left; cursor: pointer;
  color: var(--ink); background: transparent;
  border: 0; border-left: 3px solid transparent; border-radius: 4px;
  padding: 5px 10px 5px calc(10px + var(--indent, 0px));
  min-height: 34px;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), opacity 0.3s var(--ease), border-color 0.3s var(--ease);
}
.row.d1 { --indent: 20px; }
.row.d2 { --indent: 40px; }
.row .ic { flex: none; display: inline-flex; color: var(--grey); }
.row .ic svg { width: 18px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; }
.row .nm { font-weight: 700; font-stretch: 88%; font-size: 15px; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.row .bd { margin-left: auto; flex: none; font-size: 12.5px; color: var(--grey); white-space: nowrap; max-width: 52%; overflow: hidden; text-overflow: ellipsis; }
.row .tag, .row .warn { display: none; flex: none; }
.row .tag { font-size: 10px; letter-spacing: 0.1em; color: var(--paper); background: var(--blue); padding: 1px 6px; border-radius: 3px; }
.row .warn { width: 20px; height: 20px; border-radius: 50%; background: var(--ink); color: var(--paper); font-family: var(--mono); font-weight: 600; font-size: 12px; line-height: 20px; text-align: center; }
.row:hover { background: var(--paper); }

/* row states (set by the script; without it, the complete setup shows) */
.js .row.todo { opacity: 0.35; }
.js .row.todo .nm { font-weight: 500; }
.js .row.todo .bd { visibility: hidden; }
.js .row.gone { display: none; }
.row.done { background: rgba(245, 243, 238, 0.7); }
.row.cur { background: var(--tint); border-left-color: var(--blue); }
.row.cur .nm, .row.cur .ic { color: var(--blue); }
.row.cur .tag { display: inline-block; }
.row.chg .bd { color: var(--blue); font-weight: 700; }
.row.prob { background: var(--paper); box-shadow: inset 0 0 0 2px var(--ink); }
.row.prob .warn { display: inline-block; }
html:not(.js) .row[data-row="long"] { display: none; }

/* phone: the folder shrinks to the rows that matter now */
@media (max-width: 959px) {
  .js .stage .row:not(.cur):not(.prob):not([data-row="proj"]) { display: none; }
  .js .stage .row[data-row="proj"].todo { display: none; }
  .tree { padding: 6px; height: 138px; overflow: hidden; }
  .row { min-height: 30px; }
  .row.d1, .row.d2 { --indent: 12px; }
  .wtop { padding: 8px 12px; }
  html:not(.js) .stage-col { position: static; }
}

/* 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; border-radius: 2px; font-style: normal; }
.lg-new i { background: var(--tint); border-left: 3px solid var(--blue); }
.lg-done i { background: var(--paper); border: 1px solid var(--rule); }
.lg-todo i { border: 1px dashed var(--grey); opacity: 0.6; }
.lg-prob i { width: 16px; height: 16px; border-radius: 50%; background: var(--ink); color: var(--paper); text-align: center; line-height: 16px; font-weight: 600; letter-spacing: 0; }

/* ---------- cards ---------- */
.card { padding-top: 64px; }
.card + .card { border-top: 2px solid var(--ink); margin-top: 24px; }
.trig { display: flex; flex-direction: column; gap: 16px; }
.trig + .trig { margin-top: 28px; }
@media (min-width: 960px) {
  .card .trig:first-child { min-height: 40svh; }
  .card .trig:last-child { padding-bottom: 10svh; }
}
.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(--paper); background: var(--blue); padding: 3px 8px; }
.card h2 {
  font-family: var(--display); font-weight: 900; font-stretch: 68%;
  font-size: clamp(38px, 5.4vw, 54px); line-height: 0.95; text-transform: uppercase; color: var(--blue);
}
.hsub { font-weight: 800; font-stretch: 80%; font-size: 22px; line-height: 1.2; }
.blk { border-top: 2px solid var(--ink); }
.blk .lab { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--paper); background: var(--ink); font-size: 11px; }
.blk.add { border-top-color: var(--blue); }
.blk.add .lab { background: var(--blue); }
.blk .txt { padding: 12px 12px 14px; font-size: 19px; line-height: 1.45; border-bottom: 1px solid var(--rule); }
.blk.add .txt { font-weight: 700; border-bottom: 2px solid var(--blue); }
.bang { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); color: var(--ink); font-weight: 600; letter-spacing: 0; }
.answer { display: flex; flex-direction: column; gap: 10px; background: var(--tint); border: 1px solid var(--blue); padding: 18px 20px; }
.answer b, .try b { font-weight: 800; }
.answer b { color: var(--blue); }
.three { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 4px; }
.three li::marker { font-family: var(--mono); color: var(--blue); }
.try { background: var(--blue); color: var(--paper); padding: 16px 20px; }
.try p { font-size: 16px; line-height: 1.5; }
.try b { color: var(--cyan); }
.pointer { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; border-left: 3px solid var(--blue); padding: 4px 0 4px 14px; }
.pointer .mono { color: var(--blue); 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); }

/* example files */
.xfile { border: 1px solid var(--ink); background: var(--paper); min-width: 0; }
.xh { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.xt { display: flex; flex-direction: column; min-width: 0; }
.xt b { font-weight: 700; font-size: 15px; }
.xt i { font-style: normal; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--night-grey); }
.xc { display: flex; gap: 8px; align-items: center; }
.seg { display: inline-flex; border: 1px solid var(--night-grey); }
.seg button, .xcopy { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; padding: 6px 10px; border: 0; cursor: pointer; }
.seg button { background: transparent; color: var(--night-grey); }
.seg button[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.xcopy { background: var(--cyan); color: var(--night); font-weight: 600; }
.xlab { padding: 10px 14px 0; color: var(--grey); font-size: 10.5px; }
.js .xlab { display: none; }
.xb {
  margin: 0; padding: 14px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.6; letter-spacing: 0;
  white-space: pre-wrap; word-break: break-word; color: var(--ink);
}

/* small diagrams */
.viz { border: 1px solid var(--rule); background: var(--paper); padding: 16px; }
.viz svg { width: 100%; height: auto; display: block; }
.viz .nd { fill: var(--paper); stroke: var(--ink); stroke-width: 1.5; }
.viz .nd.you { fill: var(--band); }
.viz .nd.master { fill: var(--tint); stroke: var(--blue); stroke-width: 2; }
.viz .t1 { font-family: var(--display); font-weight: 700; font-stretch: 84%; font-size: 13.5px; text-anchor: middle; fill: var(--ink); }
.viz .t2 { font-family: var(--body); font-size: 11.5px; text-anchor: middle; fill: var(--grey); }
.viz .ar { fill: none; stroke: var(--grey); stroke-width: 2; }
.viz .mk { fill: var(--grey); }
.viz .bdg { fill: var(--paper); stroke: var(--grey); stroke-width: 1.5; }
.viz .num { font-family: var(--mono); font-size: 10px; font-weight: 600; text-anchor: middle; fill: var(--grey); }
.relay .st { transition: opacity 0.3s; }
.js .relay.run .st { opacity: 0.25; }
.js .relay.run .st.on { opacity: 1; }
.relay .st.on .ar { stroke: var(--blue); }
.relay .st.on .bdg { fill: var(--blue); stroke: var(--blue); }
.relay .st.on .num { fill: var(--paper); }
.relcap { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.relcap li { display: flex; gap: 10px; align-items: baseline; font-size: 15px; padding: 4px 6px; cursor: pointer; border-left: 3px solid transparent; }
.relcap li .mono { color: var(--grey); }
.relcap li.on { border-left-color: var(--blue); background: var(--tint); }
.relcap li.on .mono { color: var(--blue); }
.vcap { margin-top: 10px; font-weight: 800; font-stretch: 80%; font-size: 19px; color: var(--blue); }
.dlog { display: flex; flex-direction: column; gap: 6px; }
.drow { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: baseline; padding: 10px 12px; border: 1px solid var(--rule); background: var(--paper); font-size: 15px; line-height: 1.4; }
.drow b { color: var(--grey); font-size: 11px; }
.drow.new { border: 2px solid var(--blue); background: var(--tint); }
.drow.new b { color: var(--blue); }
.drow.old { color: var(--grey); }
.drow i { font-style: normal; font-size: 10px; color: var(--grey); border: 1px solid var(--grey); padding: 1px 6px; }
@media (prefers-reduced-motion: no-preference) {
  .js .dlog.play .drow.new { animation: drop 0.6s var(--ease) both; }
  .js .dlog.play .drow.old s { background: linear-gradient(var(--grey), var(--grey)) 0 55% / 0 1.5px no-repeat; text-decoration: none; animation: line 0.6s var(--ease) 0.5s forwards; }
}
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
@keyframes line { to { background-size: 100% 1.5px; } }
.weak { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; padding: 0; }
.weak .wh, .weak .sh { padding: 8px 12px; font-size: 11px; }
.weak .wh { background: var(--band); color: var(--grey); }
.weak .sh { background: var(--blue); color: var(--paper); }
.weak .wk, .weak .st2 { padding: 12px; font-size: 15px; line-height: 1.45; border-top: 1px solid var(--rule); }
.weak .wk { color: var(--grey); }
.weak .st2 { background: var(--tint); font-weight: 600; }

/* routine */
.routine { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; border-top: 2px solid var(--ink); }
@media (min-width: 700px) { .routine { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.rt { padding: 16px 16px 18px 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 700px) { .rt:nth-child(odd) { border-right: 1px solid var(--rule); } .rt:nth-child(even) { padding-left: 16px; } }
.rt h4 { color: var(--blue); font-size: 12px; margin-bottom: 6px; }
.rt p { font-size: 16px; line-height: 1.5; }

/* sizes */
.qs { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; min-width: 0; }
.qs legend { font-weight: 800; font-size: 17px; padding: 0; margin-bottom: 4px; }
.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: 17px; line-height: 1.4; }
.q input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--blue); }
.result { border: 2px solid var(--blue); background: var(--tint); padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; }
.result .mono { color: var(--blue); font-weight: 600; }
.result p:last-child { font-size: 18px; font-weight: 700; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
.size { font: inherit; text-align: left; cursor: pointer; padding: 10px 12px; border: 1px solid var(--ink); background: var(--paper); color: var(--ink); display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.size b { font-weight: 800; font-size: 16px; }
.size span { font-size: 13px; color: var(--grey); line-height: 1.3; }
.size[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: var(--paper); }
.size[aria-pressed="true"] span { color: var(--paper); }
.addwhen summary { cursor: pointer; font-weight: 800; padding: 8px 0; }
.addwhen table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.4; margin-bottom: 10px; }
.addwhen th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; background: var(--blue); color: var(--paper); padding: 8px 10px; }
.addwhen td { padding: 8px 10px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.addwhen td:first-child { font-weight: 700; width: 42%; }
.addwhen p { font-size: 15px; color: var(--grey); }

/* ---------- when things break ---------- */
.breaks { border-top: 2px solid var(--ink); background: var(--paper); }
.breaks .wrap { padding-block: 64px 72px; display: flex; flex-direction: column; gap: 14px; }
.breaks h2 { font-family: var(--display); font-weight: 900; font-stretch: 68%; font-size: clamp(44px, 6vw, 64px); line-height: 0.92; text-transform: uppercase; color: var(--blue); }
.breaks .lede { font-size: 19px; }
.symwrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; margin-top: 16px; }
.sym { border-bottom: 1px solid var(--rule); }
.sym summary { list-style: none; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 8px; padding: 12px 8px; cursor: pointer; font-weight: 600; font-size: 17px; line-height: 1.35; }
.sym summary::-webkit-details-marker { display: none; }
.sym summary .n { color: var(--grey); padding-top: 2px; }
.sym[open] summary, .sym.on summary { background: var(--blue); color: var(--paper); }
.sym[open] summary .n, .sym.on summary .n { color: var(--paper); }
.fx, .fixcard { display: flex; flex-direction: column; gap: 6px; padding: 14px 8px 18px 50px; }
.fx .lab, .fixcard .lab { color: var(--grey); font-size: 11px; margin-top: 6px; }
.fx .fix, .fixcard .fix { font-weight: 800; font-size: 19px; line-height: 1.35; border-left: 3px solid var(--blue); padding-left: 12px; }
.gos { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.gochip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none; color: var(--paper); background: var(--ink); padding: 6px 10px; }
.gochip:hover { background: var(--blue); }
@media (min-width: 960px) {
  .js .symwrap.two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .js .symwrap.two .sym .fx { display: none; }
  .js .symwrap.two .fixcard { position: sticky; top: 24px; align-self: start; border-top: 3px solid var(--blue); background: var(--band); padding: 24px 28px 28px; }
  .js .symwrap.two .fixcard h3 { font-weight: 800; font-stretch: 85%; font-size: 26px; line-height: 1.15; }
}

/* ---------- closing ---------- */
.closing { background: var(--night); color: var(--night-ink); }
.closing .wrap { padding-block: 64px 44px; display: flex; flex-direction: column; gap: 28px; }
.closing .big { max-width: 28ch; font-weight: 800; font-stretch: 80%; font-size: clamp(26px, 3.6vw, 40px); line-height: 1.15; }
.cta { align-self: flex-start; border: 1.5px solid var(--cyan); color: var(--cyan); padding: 12px 20px; text-decoration: none; }
.cta:hover { background: var(--cyan); color: var(--night); }
.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) {
  .row, .rail a, .track .fill, .relay .st { transition: none; }
}
