/* Compasso site. Tokens first; dark mode redefines them. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7f9;
  --bg-sunk: #eef0f4;
  --line: #e3e6ec;
  --ink: #0f172a;
  --ink-2: #344054;
  --muted: #5b6474;
  --accent: #c2412d;
  --accent-ink: #ffffff;
  --accent-soft: #fdf0ec;
  --ok: #1f7a4d;
  --ok-soft: #e8f5ee;
  --you: #2f5bd3;
  --you-soft: #edf2fe;
  --code-bg: #0f1520;
  --code-ink: #e3e7ee;
  --code-dim: #8a94a6;
  --code-h: #ffb4a3;
  --code-k: #8fb8ff;
  --code-ok: #6ad19a;
  --code-err: #ff7b72;
  --code-note: #e3b341;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --radius: 12px;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0c1017; --bg-soft: #121822; --bg-sunk: #18202c; --line: #253041;
    --ink: #e8ebf0; --ink-2: #c3cad5; --muted: #95a0b0;
    --accent: #ff7a5c; --accent-ink: #1a0d09; --accent-soft: #2a1712;
    --ok: #57c98d; --ok-soft: #0f2419; --you: #8aa8ff; --you-soft: #141d36;
    --code-bg: #080b11;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0c1017; --bg-soft: #121822; --bg-sunk: #18202c; --line: #253041;
  --ink: #e8ebf0; --ink-2: #c3cad5; --muted: #95a0b0;
  --accent: #ff7a5c; --accent-ink: #1a0d09; --accent-soft: #2a1712;
  --ok: #57c98d; --ok-soft: #0f2419; --you: #8aa8ff; --you-soft: #141d36;
  --code-bg: #080b11;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 3px; }
code { font-family: var(--mono); font-size: .88em; background: var(--bg-sunk); padding: .1em .35em; border-radius: 5px; }
pre { margin: 0; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.02em; margin: 0; }
p { margin: 0 0 12px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

.eyebrow { font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.more { color: var(--muted); font-size: 14px; }
.dim { color: var(--muted); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 20px;
  background: var(--ink); color: var(--bg); border-radius: 10px; font-weight: 600; font-size: 15px;
  text-decoration: none; border: 1px solid var(--ink);
}
.btn:hover { opacity: .9; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--bg-soft); opacity: 1; }
.btn-small { height: 36px; padding: 0 14px; font-size: 14px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 9px;
  border: 1px solid var(--line); background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--bg-soft); }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top-in { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 17px; }
.mark { width: 28px; height: 28px; }
.mark .lead { stroke: var(--accent); }
.ver { font: 500 12px/1 var(--mono); color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 4px 8px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 8px; }
.nav a:hover { background: var(--bg-soft); color: var(--ink); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1100px 400px at 80% -10%, var(--accent-soft), transparent 70%); }
.hero h1 { font-size: clamp(36px, 5vw, 60px); font-weight: 700; max-width: 900px; letter-spacing: -.035em; }
.hero h1 span { color: var(--accent); }
.lede { font-size: 19px; color: var(--ink-2); max-width: 760px; margin: 22px 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.map { margin-top: 56px; display: grid; grid-template-columns: 5fr 3fr; gap: 16px; }
.map-group { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); padding: 16px; box-shadow: var(--shadow); }
.map-loop { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.map-label { font: 600 12px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 12px; }
.map-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; counter-reset: step; }
.map-loop .map-steps { counter-reset: step 5; }
.map-steps li { counter-increment: step; position: relative; }
.map-steps a {
  display: block; height: 100%; padding: 12px; border-radius: 9px; background: var(--bg-soft); text-decoration: none; color: var(--ink);
  border: 1px solid transparent;
}
.map-steps a:hover { border-color: var(--line); background: var(--bg-sunk); }
.map-steps a::before { content: counter(step); display: block; font: 600 12px/1 var(--mono); color: var(--accent); margin-bottom: 8px; }
.map-steps b { display: block; font-size: 15px; }
.map-steps span { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 2px; }
.map-steps li:not(:last-child)::after {
  content: ""; position: absolute; right: -7px; top: 50%; width: 6px; height: 6px; border-top: 2px solid var(--muted); border-right: 2px solid var(--muted);
  transform: translateY(-50%) rotate(45deg); opacity: .6;
}
.map-back { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 13px; color: var(--accent); font-weight: 500; }
.map-back svg { width: 18px; height: 18px; flex: none; }

/* Three disciplines */
.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-soft); padding: 40px 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.h3 { font-size: 18px; margin-bottom: 8px; }
.three p { color: var(--ink-2); font-size: 15px; margin: 0; }

/* Section heads */
section { padding: 88px 0; }
.band { padding: 40px 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.sec-head p { color: var(--ink-2); font-size: 17px; }

/* Walkthrough */
.walk-grid { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 48px; }
.toc { position: sticky; top: 88px; align-self: start; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.toc a { display: flex; align-items: center; gap: 10px; padding: 7px 0 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.toc a i { font: 600 11px/1 var(--mono); font-style: normal; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--bg-sunk); color: var(--muted); }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--ink); border-left-color: var(--accent); }
.toc a.on i { background: var(--accent); color: var(--accent-ink); }
.toc-side { display: block; margin-top: 16px; font-size: 13px; color: var(--muted); }

.phase { padding: 0 0 56px; margin-bottom: 56px; border-bottom: 1px solid var(--line); }
.phase:last-child { border-bottom: 0; margin-bottom: 0; }
.ph-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 20px; }
.ph-num { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 600 15px/1 var(--mono); }
.ph-any { background: var(--accent); color: var(--accent-ink); }
.ph-head h3 { font-size: 24px; margin-bottom: 6px; }
.cmd { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.ph-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; align-items: start; }
.ph-text { color: var(--ink-2); font-size: 15.5px; }
.ph-text p:last-child { margin-bottom: 0; }
.ph-out { display: grid; gap: 14px; }
.ph-wide { grid-template-columns: 1fr; }
.ph-wide .ph-text { max-width: 760px; }
.ph-out-2 { grid-template-columns: 1fr 1fr; }
.plain { padding-left: 20px; margin: 0 0 12px; }
.plain li { margin-bottom: 4px; }

.gate, .you { border-radius: 10px; padding: 12px 14px; font-size: 14.5px; margin: 14px 0 0; }
.gate { background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.you { background: var(--you-soft); border: 1px solid color-mix(in srgb, var(--you) 30%, transparent); }
.gate b, .you b { display: inline-block; font: 600 11px/1 var(--sans); text-transform: uppercase; letter-spacing: .07em; padding: 4px 7px; border-radius: 5px; margin-right: 6px; vertical-align: 1px; }
.gate b { background: var(--accent); color: var(--accent-ink); }
.you b { background: var(--you); color: var(--bg); }

/* Panes: files and terminals */
.pane { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); overflow: hidden; box-shadow: var(--shadow); }
.pane figcaption {
  font: 500 12px/1 var(--mono); color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-soft);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.pane pre { font: 12.5px/1.6 var(--mono); padding: 14px; overflow-x: auto; color: var(--ink); }
.pane .h { color: var(--accent); font-weight: 600; }
.pane .k { color: var(--you); }
.pane .ok { color: var(--ok); }
.pane .err { color: #c0362c; font-weight: 600; }
.pane .note { color: #9a6700; }
.term { background: var(--code-bg); border-color: var(--code-bg); }
.term figcaption { background: #161d2a; border-bottom-color: #222b3a; color: var(--code-dim); padding-left: 52px; position: relative; }
.term figcaption::before { content: ""; position: absolute; left: 14px; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #ff5f57; box-shadow: 13px 0 #febc2e, 26px 0 #28c840; }
.term pre { color: var(--code-ink); }
.term .p { color: var(--code-dim); }
.term .ok { color: var(--code-ok); }
.term .err { color: var(--code-err); }
.term .note { color: var(--code-note); }
.term .dim { color: var(--code-dim); }
.term .moved { background: rgba(255, 123, 114, .16); color: #ffd2cc; border-radius: 3px; padding: 0 3px; }
.term b { color: #fff; }

.issues { list-style: none; margin: 0; padding: 6px 0; }
.issues li { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 14px; }
.issues li + li { border-top: 1px solid var(--line); }
.issues .dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--ok); flex: none; }
.issues em { margin-left: auto; font-style: normal; color: var(--muted); font-family: var(--mono); font-size: 12.5px; }

.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 9px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; background: var(--bg-soft); }
.feat td:nth-child(2), .feat th:nth-child(2) { text-align: right; font-family: var(--mono); }
.feat td:nth-child(3) { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.feat b { font-family: var(--mono); font-size: 13px; margin-right: 6px; color: var(--muted); }
.mvp-line td { padding: 4px 14px; font: 600 11px/1.6 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--accent); background: var(--accent-soft); border-top: 2px dashed var(--accent); }
.post td { color: var(--muted); }

/* The story run */
.run { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 0; }
.run::before { content: ""; position: absolute; left: 47px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.run li { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 18px; padding: 10px 0; position: relative; font-size: 15px; color: var(--ink-2); }
.run li b { color: var(--ink); }
.who {
  justify-self: center; align-self: start; font: 600 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line);
  position: relative; z-index: 1; color: var(--ink-2);
}
.loop-step .who { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.loop-step > div { background: var(--accent-soft); border-radius: 10px; padding: 10px 12px; margin: -6px 0; }
.mini { margin-top: 8px; font: 12.5px/1.6 var(--mono); background: var(--code-bg); color: var(--code-ink); padding: 10px 12px; border-radius: 8px; overflow-x: auto; }
.mini .err { color: var(--code-err); }

.shot { display: block; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; text-decoration: none; box-shadow: var(--shadow); background: var(--bg); }
.shot img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.shot span { display: block; padding: 10px 14px; font-weight: 600; font-size: 14px; }
.shot:hover span { text-decoration: underline; }

/* Loops */
.loops { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.loop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.loop-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); }
.loop-card > h3 { font-size: 22px; margin-bottom: 12px; }
.loop-intro { color: var(--ink-2); font-size: 15px; }

.cycle { display: block; width: 100%; max-width: 520px; margin: 8px auto 16px; height: auto; }
.cycle .ring { fill: none; stroke: var(--line); stroke-width: 3; stroke-dasharray: 2 10; stroke-linecap: round; }
.cycle .arrow path { fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.cycle .node rect { fill: var(--bg-soft); stroke: var(--line); stroke-width: 1.5; }
.cycle .node-hot rect { fill: var(--accent-soft); stroke: var(--accent); }
.cycle text { font: 600 17px var(--sans); fill: var(--ink); text-anchor: middle; }
.cycle .sub { font: 400 13px var(--sans); fill: var(--muted); }
.cycle .inner text { font: 500 16px var(--mono); fill: var(--ink-2); }
.cycle .inner .inner-t { font: 600 12px var(--sans); fill: var(--accent); text-transform: uppercase; letter-spacing: .1em; }
.cycle .inner .sub { font: 400 13px var(--sans); fill: var(--muted); }
.facts { margin: 0; padding-left: 18px; color: var(--ink-2); font-size: 14.5px; }
.facts li { margin-bottom: 6px; }

.lanes { list-style: none; margin: 18px 0; padding: 0; display: grid; gap: 8px; }
.ev { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; align-items: start; }
.ev p { margin: 0; font-size: 14.5px; color: var(--ink-2); padding-top: 3px; }
.lane { font: 600 12px/1.3 var(--sans); padding: 6px 10px; border-radius: 8px; }
.l1 { background: var(--bg-sunk); color: var(--ink); }
.l2 { background: var(--ok-soft); color: var(--ok); }
.l3 { background: var(--you-soft); color: var(--you); }
.thread { margin-top: 8px; }
.cmt { padding: 12px 14px; font-size: 14px; }
.cmt + .cmt { border-top: 1px solid var(--line); }
.cmt p { margin: 4px 0 0; color: var(--ink-2); }
.lbl { font: 600 11px/1 var(--mono); background: var(--accent-soft); color: var(--accent); padding: 3px 6px; border-radius: 999px; margin-left: 6px; }
.cmt .dim { font-size: 12px; margin-left: 6px; }

/* Outcomes */
.cards3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 56px; }
.ocard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; text-decoration: none; color: var(--ink); background: var(--bg); box-shadow: var(--shadow); transition: transform .15s ease; }
.ocard:hover { transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .ocard { transition: none; } .ocard:hover { transform: none; } }
.ocard img { display: block; width: 100%; height: 220px; object-fit: cover; object-position: top; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
.ocard > div { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.ocard h3 { font-size: 18px; margin-bottom: 6px; }
.ocard p { color: var(--ink-2); font-size: 14.5px; }
.go { margin-top: auto; color: var(--accent); font-weight: 600; font-size: 14px; }
.sub-h { font-size: 20px; margin-bottom: 16px; }
.files td:first-child { white-space: nowrap; }
.files td:last-child { color: var(--ink-2); }
.outcomes .more { margin-top: 14px; }

/* Gates */
.gates { background: var(--bg-soft); border-top: 1px solid var(--line); }
.gate-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.gate-grid li { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px; font-size: 14px; color: var(--ink-2); }
.gate-grid b { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.gate-grid .hot { border-color: var(--accent); background: var(--accent-soft); }
.gate-grid .check { border-style: dashed; }

/* Install */
.install-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.install h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 14px; }
.install p { color: var(--ink-2); }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; }
.tabs [role="tab"] { font: 500 14px var(--sans); padding: 7px 14px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--ink-2); cursor: pointer; }
.tabs [aria-selected="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.code { position: relative; }
.code pre { padding: 18px 90px 18px 18px; font-size: 13.5px; }
.copy { position: absolute; top: 12px; right: 12px; font: 500 12px var(--sans); color: var(--code-ink); background: #232c3b; border: 1px solid #334055; border-radius: 7px; padding: 6px 10px; cursor: pointer; }
.copy:hover { background: #2c3749; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; font-size: 14px; color: var(--muted); }
.foot-in { display: flex; gap: 24px; justify-content: space-between; flex-wrap: wrap; }
.foot p { margin: 0; max-width: 560px; }
.foot nav { display: flex; gap: 16px; flex-wrap: wrap; }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { color: var(--accent); }

/* Responsive */
@media (max-width: 1080px) {
  .gate-grid { grid-template-columns: repeat(3, 1fr); }
  .loop-grid { grid-template-columns: 1fr; }
  .ph-out-2 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .map { grid-template-columns: 1fr; }
  .walk-grid { grid-template-columns: 1fr; }
  .toc { display: none; }
  .ph-body { grid-template-columns: 1fr; }
  .cards3 { grid-template-columns: 1fr 1fr; }
  .install-grid { grid-template-columns: 1fr; gap: 24px; }
  .three { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 700px) {
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .lede { font-size: 17px; }
  .map-steps { grid-auto-flow: row; grid-template-columns: 1fr 1fr; }
  .map-steps li::after { display: none; }
  .gate-grid { grid-template-columns: 1fr 1fr; }
  .cards3 { grid-template-columns: 1fr; }
  .loop-card { padding: 18px; }
  .ev { grid-template-columns: 1fr; gap: 4px; }
  .ev .lane { justify-self: start; }
  .run::before { left: 14px; }
  .run li { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
  .who { justify-self: start; }
  .run li::before { content: ""; position: absolute; left: 9px; top: 18px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); }
  .ph-head h3 { font-size: 20px; }
  .files td:first-child { white-space: normal; }
}
@media (max-width: 440px) {
  .gate-grid { grid-template-columns: 1fr; }
  .top-in { gap: 10px; }
  .ver { display: none; }
}
.term pre { white-space: pre-wrap; overflow-wrap: anywhere; }
/* grid tracks never grow to fit a long code line */
.ph-out, .run, .lanes { grid-template-columns: minmax(0, 1fr); }
.ph-out-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 1080px) {
  .loop-grid, .ph-out-2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .map, .walk-grid, .ph-body, .install-grid, .three { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .cards3 { grid-template-columns: minmax(0, 1fr); }
  .map-steps { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .ev, .run li { grid-template-columns: minmax(0, 1fr); }
}
/* on a phone the sprint loop is a list: the drawing's labels would be too small */
.cycle-list { display: none; }
@media (max-width: 560px) {
  .cycle { display: none; }
  .cycle-list { display: grid; gap: 8px; list-style: none; margin: 8px 0 20px; padding: 0; counter-reset: c; }
  .cycle-list li { counter-increment: c; padding: 10px 12px 10px 44px; position: relative; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft); font-size: 14px; color: var(--muted); }
  .cycle-list li::before { content: counter(c); position: absolute; left: 12px; top: 10px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--bg); font: 600 12px/1 var(--mono); }
  .cycle-list li.hot { border-color: var(--accent); background: var(--accent-soft); }
  .cycle-list b { display: block; color: var(--ink); }
  .cycle-list li:last-child::after { content: "↻ back to 1"; display: block; color: var(--accent); font-weight: 600; margin-top: 4px; }
}
@media (max-width: 700px) {
  .files tr, .files td { display: block; }
  .files td:first-child { border-bottom: 0; padding-bottom: 2px; }
  .files tr + tr { border-top: 1px solid var(--line); }
  .files td { border-bottom: 0; }
}
