/* Ride Almanac. One accent (forest green), warm paper, hairlines instead of boxes. */
@font-face { font-family: Inter; font-weight: 400; font-display: swap; src: url(/assets/fonts/inter-400.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 500; font-display: swap; src: url(/assets/fonts/inter-500.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 600; font-display: swap; src: url(/assets/fonts/inter-600.woff2) format("woff2"); }
@font-face { font-family: Inter; font-weight: 700; font-display: swap; src: url(/assets/fonts/inter-700.woff2) format("woff2"); }

:root {
  --paper: #FAF8F3;
  --surface: #FFFFFF;
  --ink: #16201A;
  --ink-2: #4E5A52;
  --ink-3: #7F8982;
  --line: #E2DED2;
  --line-2: #EEEBE2;
  --accent: #1E5B43;
  --accent-deep: #17483A;
  --accent-ink: #FFFFFF;
  --accent-wash: #E4EEE8;
  --route: #D9482B;
  --climb: #C8553D;
  --climb-wash: rgba(200, 85, 61, .16);
  --fill-a: rgba(30, 91, 67, .30);
  --fill-b: rgba(30, 91, 67, .03);
  --radius: 10px;
  --max: 1120px;
  --sans: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F1411; --surface: #161C18; --ink: #ECEFEA; --ink-2: #A9B3AC; --ink-3: #78827B;
    --line: #28312B; --line-2: #1D2520; --accent: #6FCF9F; --accent-deep: #8ADBB1; --accent-ink: #0E1511;
    --accent-wash: #1A2A22; --route: #FF6A4A; --climb: #F08268; --climb-wash: rgba(240, 130, 104, .2);
    --fill-a: rgba(111, 207, 159, .32); --fill-b: rgba(111, 207, 159, .02);
  }
}
:root[data-theme="dark"] {
  --paper: #0F1411; --surface: #161C18; --ink: #ECEFEA; --ink-2: #A9B3AC; --ink-3: #78827B;
  --line: #28312B; --line-2: #1D2520; --accent: #6FCF9F; --accent-deep: #8ADBB1; --accent-ink: #0E1511;
  --accent-wash: #1A2A22; --route: #FF6A4A; --climb: #F08268; --climb-wash: rgba(240, 130, 104, .2);
  --fill-a: rgba(111, 207, 159, .32); --fill-b: rgba(111, 207, 159, .02);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; font-feature-settings: "cv11", "ss01"; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
h1, h2, p, dl, dd, ul, ol { margin: 0; }
ul { padding: 0; list-style: none; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-2); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.eyebrow { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* header */
.top { border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 1100; }
.top-in { display: flex; align-items: center; gap: 20px; min-height: 60px; }

/* search box in the header */
.search { position: relative; flex: 1 1 320px; max-width: 460px; margin-left: 8px; display: flex; align-items: center; }
.search > svg { position: absolute; left: 13px; width: 17px; height: 17px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 38px 8px 38px; font-size: .95rem; transition: border-color .15s, box-shadow .15s; }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-wash); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 12px; font: 500 .72rem/1 var(--sans); color: var(--ink-3); border: 1px solid var(--line); border-radius: 5px; padding: 3px 6px; pointer-events: none; }
.search input:focus ~ kbd { display: none; }
.q-list { position: absolute; top: calc(100% + 8px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 44px -18px rgba(0, 0, 0, .35); padding: 6px; max-height: min(70vh, 520px); overflow-y: auto; z-index: 1200; }
.q-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 12px; border-radius: 9px; color: inherit; text-decoration: none; }
.q-list li[aria-selected="true"] a, .q-list a:hover { background: var(--accent-wash); }
.q-main { display: flex; flex-direction: column; min-width: 0; }
.q-main strong { font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-main span { font-size: .84rem; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.q-meta { font-size: .78rem; color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.q-all a { justify-content: center; font-size: .86rem; color: var(--accent); font-weight: 500; border-top: 1px solid var(--line-2); border-radius: 0 0 9px 9px; margin-top: 4px; }
.q-none { padding: 14px 12px; color: var(--ink-2); font-size: .92rem; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 600; letter-spacing: -.01em; font-size: 1.02rem; }
.brand svg { width: 24px; height: 24px; color: var(--accent); }
.nav { display: flex; gap: 22px; margin-left: auto; font-size: .92rem; }
.nav a { color: var(--ink-2); text-decoration: none; }
.nav a:hover { color: var(--ink); }
.units, .seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; padding: 2px; background: var(--surface); }
.units button, .seg button { border: 0; background: none; padding: 4px 12px; border-radius: 999px; font-size: .82rem; font-weight: 500; color: var(--ink-2); cursor: pointer; }
.units button[aria-pressed="true"], .seg button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

/* home */
.hero { background: linear-gradient(180deg, var(--accent-wash), var(--paper) 92%); border-bottom: 1px solid var(--line); }
.hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 40px; align-items: center; padding-top: 48px; padding-bottom: 48px; }
.hero-text { min-width: 0; }
.hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.03; letter-spacing: -.035em; font-weight: 650; margin-top: 12px; text-wrap: balance; }
.lede { font-size: 1.14rem; color: var(--ink-2); max-width: 54ch; margin-top: 20px; }
.stats dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.list-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 26px 0 14px; border-top: 1px solid var(--line); }
.list-head h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.list-head.flush { border-top: 0; padding-top: 0; }
.rows { border-top: 1px solid var(--line); margin-bottom: 72px; }
.block .rows { margin-bottom: 0; }
.row a.hot { background: var(--accent-wash); }
.results .row a { grid-template-columns: minmax(0, 1fr) auto; }

/* home: big search and the route map */
.search-hero { margin: 26px 0 0; max-width: none; flex: none; }
.search-hero > svg { left: 18px; width: 20px; height: 20px; }
.search-hero input { padding: 15px 120px 15px 48px; font-size: 1.05rem; border-radius: 14px; box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); }
.search-go { position: absolute; right: 6px; top: 6px; bottom: 6px; border: 0; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-weight: 600; padding: 0 18px; cursor: pointer; }
.search-go:hover { background: var(--accent-deep); }
.search-hero .q-list { top: calc(100% + 6px); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.quick a { display: inline-block; padding: 6px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink-2); text-decoration: none; font-size: .9rem; font-weight: 500; }
.quick a:hover { border-color: var(--accent); color: var(--accent); }
.quick a.hot { background: #FFE14D; border-color: #E8C800; color: #16201A; }
.quick a.hot:hover { background: #FFD600; color: #16201A; }
.hero-map-wrap { min-width: 0; }
.hero-map { height: 420px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; box-shadow: 0 24px 50px -30px rgba(0, 0, 0, .45); background: var(--line-2); z-index: 0; }
.hero-map-note { font-size: .82rem; color: var(--ink-3); margin-top: 8px; }

/* cards with a small elevation profile */
.card-art { position: relative; display: block; }
.card-badge { position: absolute; left: 8px; top: 8px; font-size: .7rem; font-weight: 600; letter-spacing: .04em; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; color: var(--ink-2); }
.spark { display: block; width: 100%; height: 36px; margin-top: 10px; }
.spark-area { fill: var(--accent-wash); }
.spark-line { fill: none; stroke: var(--accent); stroke-width: 1.6; vector-effect: non-scaling-stroke; }

/* the race banner */
.banner { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 30px; align-items: center; padding: 34px 38px; border-radius: 20px; background: #16201A; color: #F3F1EA; text-decoration: none; overflow: hidden; position: relative; transition: transform .15s, box-shadow .15s; }
.banner:hover { color: #F3F1EA; transform: translateY(-2px); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .6); }
.banner::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: #FFE14D; }
.banner .eyebrow { color: #FFE14D; }
.banner-text { display: flex; flex-direction: column; gap: 10px; }
.banner strong { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 650; letter-spacing: -.03em; line-height: 1.05; }
.banner-lede { color: #C9CFC8; max-width: 56ch; }
.banner-nums { display: flex; flex-wrap: wrap; gap: 6px 18px; color: #C9CFC8; font-variant-numeric: tabular-nums; }
.banner-nums b { color: #fff; font-weight: 600; font-size: 1.15rem; }
.banner-go { font-weight: 600; color: #FFE14D; margin-top: 4px; }
.thumb.banner-art { width: 300px; height: 260px; }
.thumb.banner-art path { stroke: #FFE14D; stroke-width: 2.2; }
.thumb.banner-art path.transfer { stroke: rgba(255, 255, 255, .35); stroke-width: 1.2; stroke-dasharray: 3 4; }

/* the route list on the home page */
.count { font-size: .9rem; font-weight: 500; color: var(--ink-3); margin-left: 6px; }
.rows.collapsed > li:nth-child(n+13) { display: none; }
.more { display: block; margin: -48px auto 72px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; padding: 11px 22px; border-radius: 999px; cursor: pointer; }
.more:hover { border-color: var(--accent); color: var(--accent); }

/* sections on the home page */
.section { margin-top: 18px; padding-bottom: 34px; }
.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; padding: 26px 0 16px; border-top: 1px solid var(--line); }
.section-head h2 { font-size: 1.25rem; font-weight: 600; letter-spacing: -.01em; }
.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.card { display: flex; flex-direction: column; gap: 2px; height: 100%; padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.card:hover, .feature:hover { border-color: var(--accent); color: inherit; transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgba(0, 0, 0, .4); }
.card strong { font-weight: 600; letter-spacing: -.01em; font-size: 1.04rem; line-height: 1.25; margin-top: 6px; }
.card .muted { font-size: .86rem; }
.card-nums { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-variant-numeric: tabular-nums; font-size: .92rem; font-weight: 500; margin-top: auto; padding-top: 10px; }
.card-nums i { font-style: normal; color: var(--ink-3); }
.thumb.big { width: 100%; height: auto; aspect-ratio: 160 / 96; background: var(--paper); border-radius: 9px; }
.thumb.big path { stroke-width: 2.4; }
.feature-list { display: grid; gap: 14px; }
.feature { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 26px; align-items: center; padding: 18px 22px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s, box-shadow .15s; }
.feature-text { display: flex; flex-direction: column; gap: 6px; }
.feature strong { font-size: 1.7rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.1; }
.thumb.multi { width: 260px; height: 200px; background: var(--paper); border-radius: 10px; }
.thumb.multi path { stroke-width: 1.8; }
.browse { display: grid; gap: 14px; }
.browse > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; align-items: baseline; }
.browse dt { font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chips a { display: inline-block; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 4px 12px; font-size: .86rem; color: var(--ink-2); text-decoration: none; transition: border-color .15s, color .15s, background .15s; }
.chips a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.route > .chips { margin-top: 14px; }

/* stage navigation and collection page */
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.route-head .lede { margin-top: 12px; font-size: 1.05rem; }
.stage-nav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: stretch; margin-top: 30px; }
.stage-nav a { display: flex; flex-direction: column; gap: 2px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: inherit; text-decoration: none; }
.stage-nav a:hover { border-color: var(--accent); }
.stage-nav a.next { text-align: right; }
.stage-nav a.all { justify-content: center; font-weight: 500; color: var(--accent); }
.stage-nav .muted { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; }
.stage-nav strong { font-weight: 600; letter-spacing: -.01em; }
.row a { display: grid; grid-template-columns: 96px minmax(0, 1fr) 96px 96px 120px 44px; gap: 18px; align-items: center; padding: 12px 8px; border-bottom: 1px solid var(--line-2); color: inherit; text-decoration: none; transition: background .15s; }
.row a:hover { background: var(--surface); }
.thumb { width: 96px; height: 64px; }
.thumb path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.thumb circle { fill: var(--paper); stroke: var(--accent); stroke-width: 1.6; }
.row-main { display: flex; flex-direction: column; min-width: 0; }
.row-main strong { font-weight: 600; letter-spacing: -.01em; font-size: 1.04rem; }
.row-main .muted { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-num { display: flex; flex-direction: column; text-align: right; font-variant-numeric: tabular-nums; }
.row-num b { font-weight: 500; }
.row-num i { font-style: normal; font-size: .72rem; color: var(--ink-3); letter-spacing: .04em; }
.row-go { font-size: .72rem; font-weight: 600; letter-spacing: .08em; color: var(--accent); border: 1px solid var(--line); border-radius: 6px; padding: 3px 0; text-align: center; background: var(--surface); }
.row a:hover .row-go { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.empty { padding: 28px 0 72px; color: var(--ink-2); }

/* route page */
.route { padding-top: 22px; padding-bottom: 72px; }
.crumbs { display: flex; gap: 8px; font-size: .86rem; color: var(--ink-3); }
.crumbs a { color: var(--ink-2); text-decoration: none; }
.route-head { display: flex; justify-content: space-between; align-items: end; gap: 28px; flex-wrap: wrap; padding: 26px 0 26px; }
.route-head h1 { font-size: clamp(1.9rem, 4.4vw, 3rem); line-height: 1.06; letter-spacing: -.03em; font-weight: 600; margin-top: 10px; text-wrap: balance; }
.fromto { color: var(--ink-2); margin-top: 10px; font-size: 1.05rem; }
.get { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.get .muted { font-size: .84rem; }
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; padding: 13px 22px; border-radius: var(--radius); letter-spacing: -.005em; transition: background .15s, transform .05s; }
.btn:hover { background: var(--accent-deep); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 20px; height: 20px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.stats div { padding: 14px 18px; border-right: 1px solid var(--line-2); }
.stats div:last-child { border-right: 0; }
.stats dd { font-size: 1.35rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.block { margin-top: 30px; }
.block h2 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.01em; }
.block-head { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 10px; }
.block-head .muted { font-size: .88rem; font-variant-numeric: tabular-nums; }
.map-block { margin-top: 22px; }
.map { height: min(62vh, 520px); min-height: 320px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line-2); overflow: hidden; z-index: 0; }
.leaflet-container { font: inherit; }
.pin { width: 14px; height: 14px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.pin.start { background: #1E5B43; }
.pin.end { background: #16201A; }
.pin.hover { background: #D9482B; width: 16px; height: 16px; }
.pin.top { background: #C8553D; width: auto; height: auto; min-width: 20px; padding: 0 5px; border-radius: 10px; color: #fff; font: 600 11px/16px var(--sans); text-align: center; border-width: 2px; }

.profile { position: relative; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: 14px 14px 8px; touch-action: pan-y; }
.profile svg { display: block; width: 100%; height: 220px; overflow: visible; }
.profile .area { fill: url(#fill); }
.profile .curve { fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; }
.profile .grid { stroke: var(--line-2); stroke-width: 1; }
.profile .axis { fill: var(--ink-3); font-size: 11px; font-variant-numeric: tabular-nums; }
.profile .climb { fill: var(--climb-wash); }
.profile .climb-label { fill: var(--climb); font-size: 11px; font-weight: 600; }
.profile .cursor { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 3; }
.profile .dot { fill: var(--route); stroke: var(--surface); stroke-width: 2; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); margin-top: 10px; }
.climbs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 560px; }
.climbs th { text-align: right; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.climbs td { text-align: right; padding: 10px 16px; border-bottom: 1px solid var(--line-2); }
.climbs th:first-child, .climbs td:first-child { text-align: left; white-space: nowrap; }
.climbs tr:last-child td { border-bottom: 0; }
.climbs tbody tr { cursor: pointer; }
.climbs tbody tr:hover { background: var(--paper); }
.badge { display: inline-block; min-width: 20px; text-align: center; background: var(--climb); color: #fff; border-radius: 10px; font-size: .72rem; font-weight: 600; line-height: 20px; margin-right: 10px; padding: 0 5px; }
.note { font-size: .84rem; color: var(--ink-3); margin-top: 8px; }
.prose { max-width: 68ch; }
.prose p { margin-top: 10px; color: var(--ink-2); }
.prose h2 + p { margin-top: 8px; }
.prose.small p, .small { font-size: .88rem; }
.links { font-size: .92rem; }

/* about */
.about { padding-top: 56px; padding-bottom: 80px; }
.about h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); letter-spacing: -.03em; line-height: 1.08; font-weight: 600; margin-top: 12px; }
.about h2 { font-size: 1.15rem; font-weight: 600; margin-top: 34px; }
.about ol { padding-left: 20px; list-style: decimal; color: var(--ink-2); }
.about li { margin-top: 8px; }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: .86rem; color: var(--ink-2); }
.foot-in { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 860px) {
  .row a { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; }
  .thumb { width: 72px; height: 48px; }
  .row-num, .row-go { display: none; }
  .row-num:nth-of-type(2) { display: flex; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats div { border-bottom: 1px solid var(--line-2); }
  .stats div:nth-child(2n) { border-right: 0; }
  .stats div:last-child { grid-column: 1 / -1; border-bottom: 0; }
  .stats.four div:last-child { grid-column: auto; }
  .stats.four div:nth-last-child(-n+2) { border-bottom: 0; }
  .hero-in { grid-template-columns: 1fr; gap: 24px; padding-top: 28px; padding-bottom: 28px; }
  .hero-map { height: 300px; }
  .search-hero input { padding-right: 16px; }
  .search-go { display: none; }
  .banner { grid-template-columns: 1fr; padding: 26px 24px; }
  .thumb.banner-art { width: 100%; height: 200px; }
  .get, .btn { width: 100%; justify-content: center; }
  .nav a:first-child { display: none; }
  /* the search box gets its own full-width line under the logo */
  .top-in { flex-wrap: wrap; gap: 10px 14px; padding-top: 10px; padding-bottom: 10px; }
  .search { order: 5; flex: 1 1 100%; max-width: none; margin-left: 0; }
  /* the home page has its own big search box: no second one in the header */
  .home .top .search { display: none; }
  .search kbd { display: none; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature { grid-template-columns: 1fr; gap: 14px; }
  .thumb.multi { width: 100%; height: auto; aspect-ratio: 260 / 200; }
  .browse > div { grid-template-columns: 1fr; gap: 6px; }
  .stage-nav { grid-template-columns: 1fr 1fr; }
  .stage-nav a.all { grid-column: 1 / -1; order: 3; }
}
@media (max-width: 420px) {
  .cards { grid-template-columns: 1fr; }
}
