/* Big Brain source viewer. Same palette and type as the main page. */
/* Shared colours, type and motion come from /tokens.css; these are the viewer's own. */
:root {
  --s-com: #6f695f; --s-kw: #5b4bd6; --s-ty: #0f766e; --s-fn: #1d4ed8; --s-str: #1a7f4b;
  --s-num: #b45309; --s-mac: #be185d; --s-attr: #7c3aed; --s-esc: #0e7490;
  --top-h: 56px; --side-w: 250px; --rail-w: 230px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --s-com: #a39e95; --s-kw: #b3a8fa; --s-ty: #5eead4; --s-fn: #93c5fd; --s-str: #86efac;
    --s-num: #fdba74; --s-mac: #f9a8d4; --s-attr: #c4b5fd; --s-esc: #67e8f9;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 64px); }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
a { color: var(--link); text-underline-offset: 2px; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; border-radius: 4px; }
code, kbd, pre { font-family: var(--mono); }
kbd { font-size: 11.5px; padding: 1px 6px; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px;
  background: var(--panel); color: var(--muted); }
button { font: inherit; cursor: pointer; }

/* ---------------------------------------------------------------- top bar */
.top { position: sticky; top: 0; z-index: 20; height: var(--top-h); display: flex; align-items: center; gap: 14px;
  padding: 0 20px; background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700;
  letter-spacing: -.01em; white-space: nowrap; }
.crumbs { display: flex; align-items: center; gap: 6px; min-width: 0; overflow: hidden; white-space: nowrap;
  font-family: var(--mono); font-size: 13px; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs [aria-current] { color: var(--text); font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.crumbs .sep { opacity: .5; }
.pill { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; padding: 1px 9px;
  background: var(--panel); white-space: nowrap; }
.find { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px 6px 10px;
  border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--muted); font-size: 13.5px;
  transition: border-color .15s, color .15s, box-shadow .15s; }
.find:hover { border-color: var(--accent); color: var(--text); box-shadow: 0 0 0 3px var(--accent-soft); }
.find svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; flex: none; }
.find span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------------------------------------------------------------- file page layout */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr) var(--rail-w); gap: 0;
  min-height: calc(100vh - var(--top-h)); }
.side { grid-column: 1; } .main { grid-column: 2; } .rail { grid-column: 3; }
/* Sidebars can be folded away to give the code the whole width (remembered per browser). */
.hide-files .shell { --side-w: 0px; }
.hide-files .side { display: none; }
.hide-rail .shell { --rail-w: 0px; }
.hide-rail .rail { display: none; }
.side, .rail { position: sticky; top: var(--top-h); align-self: start; max-height: calc(100vh - var(--top-h));
  overflow: auto; padding: 18px 10px 40px 16px; font-size: 13.5px; }
.rail { padding: 18px 16px 40px 12px; }
/* The code panel's colour fills the whole column, so it stays uniform to the bottom even while the
   browser is still painting a long, horizontally scrolling file. */
.main { min-width: 0; padding: 0 0 80px; background: var(--code);
  border-left: 1px solid var(--line); border-right: 1px solid var(--line); }
.filepage { background: var(--bg); }

/* file tree */
/* Wide screens: the tree beside the code. Narrow: a closed disclosure. Two renders, picked by CSS,
   so nothing flashes open or closed while the page loads. */
.side-narrow { display: none; }
.side-label { margin: 0 0 8px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.side-files > summary, .symbols > summary { list-style: none; font-size: 11.5px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 8px 4px; cursor: default; }
.side-files > summary::-webkit-details-marker, .symbols > summary::-webkit-details-marker { display: none; }
.side-files ul { list-style: none; margin: 0; padding: 0; }
.side-files ul ul { padding-left: 12px; margin-left: 7px; border-left: 1px solid var(--line); }
.side-files details > summary { cursor: pointer; padding: 3px 6px; border-radius: 6px; color: var(--text); font-weight: 600;
  list-style: none; }
.side-files details > summary::-webkit-details-marker { display: none; }
.side-files details > summary::before { content: "▸"; display: inline-block; width: 14px; color: var(--muted);
  transition: transform .15s; }
.side-files details[open] > summary::before { transform: rotate(90deg); }
.side-files details > summary:hover { background: var(--accent-soft); }
.side-files a.file { display: block; padding: 3px 6px 3px 8px; border-radius: 6px; color: var(--muted); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side-files a.file::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px;
  background: var(--dot, #b8b2a7); vertical-align: 1px; }
.side-files a.file:hover { color: var(--text); background: var(--accent-soft); }
.side-files a.file[aria-current] { color: var(--text); font-weight: 600; background: var(--accent-soft);
  box-shadow: inset 2px 0 0 var(--accent); }
.lang-rust { --dot: #dea584; } .lang-markdown { --dot: #5b4bd6; } .lang-toml { --dot: #9c4221; }
.lang-shell { --dot: #4a9e5c; } .lang-json { --dot: #8a8578; } .lang-yaml { --dot: #cb171e; }
@media (prefers-color-scheme: dark) { .lang-markdown { --dot: #a597f7; } .lang-toml { --dot: #e8a77a; } }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dot, #b8b2a7); flex: none; }

/* file header */
.filehead { position: sticky; top: var(--top-h); z-index: 10; display: flex; flex-wrap: wrap; align-items: center;
  justify-content: space-between; gap: 10px 16px; padding: 14px 24px; background: var(--bg); border-bottom: 1px solid var(--line); }
.fh-title { display: flex; align-items: baseline; gap: 10px; min-width: 0; flex-wrap: wrap; }
.fh-title .dot { align-self: center; }
.fh-title h1 { margin: 0; font: 600 18px/1.3 var(--mono); letter-spacing: -.01em; overflow-wrap: anywhere; }
.fh-meta { color: var(--muted); font-size: 13px; white-space: nowrap; }
.fh-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tool, .seg-b { font-size: 12.5px; font-weight: 600; padding: 5px 11px; border-radius: 8px; border: 1px solid var(--line);
  background: var(--panel); color: var(--muted); transition: color var(--fast), border-color var(--fast), background-color var(--fast); }
.tool:hover, .seg-b:hover { color: var(--text); border-color: var(--muted); }
.tool[aria-pressed="true"] { color: var(--button-text); border-color: var(--button); background: var(--button); }
.tool[aria-pressed="true"]::before { content: "✓ "; }
.tool[aria-pressed="true"]:hover { color: var(--button-text); border-color: var(--button-hover); background: var(--button-hover); }
.tool.panel-toggle { display: inline-flex; align-items: center; gap: 6px; }
.tool.panel-toggle svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tool.panel-toggle[aria-expanded="false"] { color: var(--link); border-style: dashed; }
.tool.done { color: var(--ok); border-color: var(--ok); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 9px; padding: 2px; background: var(--panel); }
.seg-b { border: 0; background: transparent; padding: 4px 10px; border-radius: 7px; }
.seg-b[aria-pressed="true"] { background: var(--button); color: var(--button-text); }
.fh-symbols-narrow { display: none; }

/* ---------------------------------------------------------------- code */
pre.code { margin: 0; padding: 14px 0 24px; overflow-x: auto; background: var(--code); font-size: 13px; line-height: 1.6;
  tab-size: 4; counter-reset: none; border-bottom: 1px solid var(--line); }
pre.code code { display: block; min-width: max-content; }
.line { display: block; min-height: 1.6em; padding-right: 24px; white-space: pre; border-left: 3px solid transparent; }
pre.code.wrapped code { min-width: 0; }
pre.code.wrapped .line { white-space: pre-wrap; overflow-wrap: anywhere; padding-left: calc(5ch + 30px); text-indent: calc(-5ch - 30px); }
.line .ln { position: sticky; left: 0; display: inline-block; width: calc(5ch + 18px); padding-right: 12px; margin-right: 12px;
  text-align: right; color: var(--muted); text-decoration: none; user-select: none; -webkit-user-select: none;
  background: var(--code); text-indent: 0; }
.line .ln::before { content: attr(data-n); }
.line .ln:hover { opacity: 1; color: var(--link); }
.line:hover { background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.line.hl, .line:target { background: var(--hl); border-left-color: var(--hl-edge); }
.line.hl .ln, .line:target .ln { background: var(--hl); opacity: 1; color: var(--text); }
.line.flash { animation: flash 1.2s ease-out; }
@keyframes flash { from { background: color-mix(in srgb, var(--hl-edge) 45%, var(--hl)); } }
.empty { padding: 40px 24px; color: var(--muted); }

/* pygments */
pre.code .c, pre.code .c1, pre.code .cm, pre.code .cs, pre.code .ch, pre.code .cp, pre.code .cpf, pre.code .sd { color: var(--s-com); font-style: italic; }
pre.code .k, pre.code .kd, pre.code .kn, pre.code .kr, pre.code .kc, pre.code .kp, pre.code .ow { color: var(--s-kw); font-weight: 600; }
pre.code .kt, pre.code .nc, pre.code .nn, pre.code .ne { color: var(--s-ty); }
pre.code .nf, pre.code .fm { color: var(--s-fn); }
pre.code .s, pre.code .s1, pre.code .s2, pre.code .sb, pre.code .sc, pre.code .sh, pre.code .sx, pre.code .sr, pre.code .ss, pre.code .sa, pre.code .dl { color: var(--s-str); }
pre.code .se, pre.code .si { color: var(--s-esc); }
pre.code .m, pre.code .mi, pre.code .mf, pre.code .mh, pre.code .mo, pre.code .mb, pre.code .il { color: var(--s-num); }
pre.code .nb, pre.code .bp, pre.code .fm, pre.code .nd { color: var(--s-mac); }
pre.code .na, pre.code .nt, pre.code .nl { color: var(--s-attr); }
pre.code .nv, pre.code .vc, pre.code .vg, pre.code .vi { color: var(--s-ty); }
pre.code .gh, pre.code .gu { color: var(--s-kw); font-weight: 700; }
pre.code .ge { font-style: italic; } pre.code .gs { font-weight: 700; }
pre.code .gd { color: #b42318; } pre.code .gi { color: var(--ok); }
pre.code .err { color: inherit; background: none; }

/* symbols */
.symbols ul { list-style: none; margin: 0; padding: 0; }
.symbols a { display: flex; align-items: baseline; gap: 7px; padding: 3px 6px; border-radius: 6px; color: var(--text);
  text-decoration: none; font-size: 13px; }
.symbols a:hover { background: var(--accent-soft); }
.symbols a.active { background: var(--accent-soft); box-shadow: inset 2px 0 0 var(--accent); }
.symbols li.d1 a { padding-left: 18px; }
.symbols li.d2 a { padding-left: 30px; }
.symbols .sk { flex: none; font: 600 10px/1.6 var(--mono); text-transform: uppercase; letter-spacing: .04em; padding: 0 5px;
  border-radius: 4px; background: var(--accent-soft); color: var(--link); min-width: 32px; text-align: center; }
.symbols .sk-struct, .symbols .sk-enum, .symbols .sk-type, .symbols .sk-trait { color: var(--s-ty); }
.symbols .sk-impl { color: var(--s-mac); }
.symbols .sk-const, .symbols .sk-static { color: var(--s-num); }
.symbols .sk-h1, .symbols .sk-h2, .symbols .sk-h3 { display: none; }
.symbols .sn { font-family: var(--mono); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; flex: 1; }
.symbols .sl { color: var(--muted); font-size: 11px; font-family: var(--mono); }

/* rendered markdown */
.mdview article { max-width: 820px; padding: 28px 32px 40px; }
.prose { line-height: 1.7; }
.prose h1 { font-size: 30px; letter-spacing: -.02em; margin: 0 0 14px; }
.prose h2 { font-size: 22px; letter-spacing: -.01em; margin: 38px 0 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.prose h3 { font-size: 17px; margin: 24px 0 6px; }
.prose code { background: var(--gutter); padding: 1px 6px; border-radius: 5px; font-size: .88em; }
.prose pre { background: var(--gutter); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto;
  font-size: 13px; line-height: 1.55; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; font-size: 14px; }
.prose th, .prose td { border-bottom: 1px solid var(--line); padding: 7px 10px; text-align: left; vertical-align: top; }
.prose th { color: var(--muted); font-size: 12.5px; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 28px 0; }
.prose hr + h2 { border-top: 0; padding-top: 0; margin-top: 0; }
.prose img { max-width: 100%; height: auto; }
.prose h1:focus:not(:focus-visible), .prose h2:focus:not(:focus-visible), .prose h3:focus:not(:focus-visible) { outline: none; }
.prose blockquote { margin: 12px 0; padding: 2px 14px; border-left: 3px solid var(--accent); color: var(--muted); }

/* ---------------------------------------------------------------- finder */
.finder { position: fixed; inset: 0; z-index: 50; display: grid; place-items: start center; padding: 12vh 16px 16px;
  background: rgba(10, 9, 14, .42); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .12s ease-out; }
.finder[hidden] { display: none; }
.finder-box { width: min(640px, 100%); background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, .28); overflow: hidden; animation: rise .16s cubic-bezier(.2, .8, .2, 1); }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.finder-top { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); padding-right: 12px; }
#finder-q { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text);
  font: 16px/1.4 system-ui, sans-serif; padding: 16px 18px; outline: none; }
.finder-close { flex: none; font: 600 11.5px/1 var(--mono); padding: 6px 9px; border-radius: 7px; border: 1px solid var(--line);
  border-bottom-width: 2px; background: var(--panel); color: var(--muted); }
.finder-close:hover { color: var(--text); border-color: var(--muted); }
#finder-list { list-style: none; margin: 0; padding: 6px; max-height: 52vh; overflow: auto; }
#finder-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; cursor: pointer; }
#finder-list li[aria-selected="true"] { background: var(--accent-soft); }
#finder-list .fk { flex: none; font: 600 10px/1.6 var(--mono); text-transform: uppercase; padding: 0 5px; border-radius: 4px;
  min-width: 34px; text-align: center; background: var(--gutter); color: var(--muted); }
#finder-list .fn { font-family: var(--mono); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#finder-list .fp { margin-left: auto; color: var(--muted); font-size: 12px; font-family: var(--mono); white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
#finder-list mark { background: none; color: var(--link); font-weight: 700; }
#finder-list .none { color: var(--muted); cursor: default; }
.finder-hint { margin: 0; padding: 9px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.finder-hint kbd { margin-right: 2px; }

/* ---------------------------------------------------------------- tour */
.tour { max-width: 1120px; margin: 0 auto; padding: 0 24px 40px; }
.eyebrow { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--link); }
.tour h2 { font-size: clamp(22px, 3vw, 30px); letter-spacing: -.02em; line-height: 1.2; margin: 0 0 22px; }
.hero { padding: 64px 0 30px; position: relative; }

.hero h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 16px; font-weight: 700; }
.hero .lede { font-size: 18.5px; color: var(--muted); max-width: 680px; margin: 0; }
.hero code { background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; font-size: .86em; }
.stats { list-style: none; padding: 0; margin: 30px 0 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stats li { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); }
.stats b { display: block; font-size: 28px; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: 13px; }
.langbar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; }
.langbar span { min-width: 3px; }
.legend { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.legend b { color: var(--text); font-weight: 600; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; }

.map { padding: 40px 0 10px; }

.modules { padding: 44px 0 10px; }
.cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 18px 18px 14px;
  box-shadow: var(--shadow); transition: transform .18s cubic-bezier(.2, .8, .2, 1), border-color .18s, box-shadow .18s; }
.card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
  box-shadow: 0 10px 34px rgba(91, 75, 214, .12); }
.card-link { text-decoration: none; color: var(--text); }
.card-link::after { content: ""; position: absolute; inset: 0; border-radius: 14px; }
.card-name { font: 700 17px/1.3 var(--mono); letter-spacing: -.01em; }
.card-name .ext { color: var(--muted); font-weight: 500; }
.card p { margin: 6px 0 12px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.meter { height: 4px; border-radius: 999px; background: var(--gutter); overflow: hidden; }
.meter span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), #8b7ff0); }
.card p.card-meta { margin: 8px 0 0; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.card p.card-deps { margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 12px; }
.card-deps span { color: var(--muted); margin-right: 2px; }
.dep { position: relative; z-index: 1; font: 12px/1.5 var(--mono); padding: 0 7px; border-radius: 6px; background: var(--accent-soft);
  color: var(--link); text-decoration: none; }
.dep:hover { background: var(--button); color: var(--button-text); }

.split { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; padding: 44px 0 0; align-items: start; }
.news, .start { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; padding: 24px 26px; box-shadow: var(--shadow); }
.news { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background:
  linear-gradient(180deg, var(--accent-soft), var(--panel) 120px); }
.news h2 { margin-bottom: 10px; font-size: 22px; }
.news .prose { font-size: 14.5px; max-height: 520px; overflow: auto; }
.news .prose ul { padding-left: 20px; }
.news .prose li { margin: 4px 0; }
.startlist { list-style: none; padding: 0; margin: 0 0 14px; }
.startlist a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text);
  text-decoration: none; font-family: var(--mono); font-size: 13.5px; }
.startlist a:hover { background: var(--accent-soft); }
.tourtree > summary { cursor: pointer !important; color: var(--link) !important; }
.foot { max-width: 1120px; margin: 40px auto 0; padding: 22px 24px 44px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1180px) {
  .shell { grid-template-columns: var(--side-w) minmax(0, 1fr); }
  .panel-toggle[data-panel="rail"] { display: none !important; }
  .main { border-right: 0; }
  .rail { display: none; }
  .fh-symbols-narrow { display: block; padding: 10px 24px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
  .fh-symbols-narrow .symbols { padding-bottom: 8px; }
  .fh-symbols-narrow .symbols:not([open]) > summary { margin-bottom: 0; }
  .fh-symbols-narrow .symbols > summary { cursor: pointer; }
  .fh-symbols-narrow .symbols > summary::after { content: " ▾"; }
  .fh-symbols-narrow ul { max-height: 220px; overflow: auto; columns: 2; }
}
@media (max-width: 820px) {
  .shell { display: block; }
  .panel-toggle[data-panel="files"] { display: none !important; }
  .hide-files .side { display: block; }
  .main { border-left: 0; }
  .side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding: 10px 16px; }
  .side-wide { display: none; }
  .side-narrow { display: block; }
  .side-files > summary { cursor: pointer; margin: 0; }
  .side-files > summary::after { content: " ▾"; }
  .side-files[open] > summary { margin-bottom: 8px; }
  .filehead { padding: 12px 16px; }
  .fh-symbols-narrow { padding: 8px 16px 0; }
  .fh-symbols-narrow ul { columns: 1; }
  .mdview article { padding: 22px 18px 32px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
  .find span, .find kbd { display: none; }
  .pill { display: none; }
  .brand span { display: none; }
}
@media (max-width: 520px) {
  .tour { padding: 0 16px 32px; }
  .hero { padding-top: 36px; }
  .line .ln { width: calc(4ch + 12px); padding-right: 8px; margin-right: 8px; }
}
/* Reduced motion is handled once, in tokens.css (it honours an explicit Play on the diagram). */
