/*
  NAVIG homepage.
  Concept: a transit departure board. Split-flap tiles, a filterable
  "departures" index of projects, and a sticky stack of featured products.
  Type: Geist + Geist Mono (self-hosted). One accent, one radius, one theme at a time.
*/

@font-face {
    font-family: "Geist";
    src: url("/static/fonts/geist-vf.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Geist Mono";
    src: url("/static/fonts/geist-mono-vf.woff2") format("woff2");
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --ease: cubic-bezier(0.16, 1, 0.3, 1);

    --r: 6px;          /* the one corner radius */
    --nav: 64px;
    --wrap: 1280px;
    --gut: clamp(16px, 4vw, 40px);

    /* One accent, used identically everywhere. Always paired with --accent-ink when filled. */
    --accent: #e9b83a;
    --accent-ink: #17150e;

    --bg: #ecedee;
    --surface: #f6f6f7;
    --ink: #121316;
    --muted: #555a62;
    --line: rgba(18, 19, 22, 0.14);
    --tile: #17181b;
    --tile-ink: #edeef0;
    --shadow: 0 28px 48px -28px rgba(28, 36, 56, 0.4);
    color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    scroll-padding-top: calc(var(--nav) + 16px);
}

@media (prefers-reduced-motion: no-preference) {
    html { scroll-behavior: smooth; }
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }

.icon { width: 1em; height: 1em; fill: currentColor; flex: none; }

.sr-only {
    position: absolute;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
    border-radius: var(--r);
}

.skip {
    position: fixed;
    left: 16px; top: -64px;
    z-index: 100;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--bg);
    border-radius: var(--r);
    transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: var(--gut);
}

/* ---------- Nav ---------- */

.nav {
    position: sticky;
    top: 0;
    z-index: 50;
    height: var(--nav);
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s var(--ease);
}
.nav.is-stuck { border-bottom-color: var(--line); }

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
    font-size: 1.125rem;
    letter-spacing: -0.02em;
}
.brand img { width: 28px; height: 28px; border-radius: var(--r); }

.nav-links {
    position: relative;
    display: flex;
    align-items: center;
    gap: 4px;
}
.nav-links a {
    padding: 8px 12px;
    font-size: 0.9375rem;
    color: var(--muted);
    white-space: nowrap;
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a:focus-visible { color: var(--ink); }
.nav-links a.nav-plan { color: var(--ink); font-weight: 600; }
.nav-line {
    position: absolute;
    left: 0; bottom: 2px;
    width: 100px; height: 2px;
    background: var(--accent);
    transform-origin: 0 50%;
    opacity: 0;
    pointer-events: none;
    transition: transform 0.45s var(--ease), opacity 0.2s;
}

.nav-tools { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: transparent;
    font-size: 1.125rem;
    transition: background 0.2s, transform 0.2s var(--ease);
}
.icon-btn:hover { background: var(--surface); }
.icon-btn:active { transform: scale(0.94); }

.nav-info { position: relative; width: 36px; height: 36px; }
.nav-info::after { content: ""; position: absolute; inset: -4px; }
.nav-links > .nav-info-link { display: none; }
.menu-btn { display: none; }
.menu-btn .i-x { display: none; }
.menu-btn[aria-expanded="true"] .i-x { display: block; }
.menu-btn[aria-expanded="true"] .i-list { display: none; }

/* ---------- Hero ---------- */

.hero { padding-block: 40px 96px; }

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.95fr);
    align-items: center;
    gap: clamp(32px, 5vw, 80px);
    min-height: min(calc(100dvh - var(--nav) - 40px), 720px);
}

.hero-copy { container-type: inline-size; }

.flap-h1 {
    --u: calc(100cqw / 14.4);
    font: 700 var(--u) / 1.22 var(--mono);
    letter-spacing: -0.02em;
    text-transform: uppercase;
    display: grid;
    gap: 0.08em;
}
.flap-visual { display: grid; gap: 0.08em; }
.flap-line { display: block; white-space: nowrap; }
.flap-line.accent { color: var(--accent); }
.flap-line.built {
    display: flex;
    flex-wrap: nowrap;
    gap: 0 0.42em;
    white-space: normal;
}
.flap-word { display: inline-flex; gap: 0.06em; }

.tile {
    position: relative;
    display: block;
    width: 0.74em;
    height: 1.16em;
    perspective: 12em;
    color: var(--tile-ink);
    background: color-mix(in srgb, var(--tile) 40%, #000);
    border-radius: min(var(--r), 0.14em);
    cursor: default;
}
.accent .tile { color: var(--accent); }

.half,
.flap {
    position: absolute;
    left: 0;
    width: 100%;
    height: calc(50% - 0.5px);
    overflow: hidden;
    background: var(--tile);
}
.half i,
.flap i {
    position: absolute;
    left: 0;
    width: 100%;
    height: 200%;
    display: grid;
    place-items: center;
    font-style: normal;
}
.half.t, .flap.t {
    top: 0;
    border-radius: min(var(--r), 0.14em) min(var(--r), 0.14em) 0 0;
    background: linear-gradient(var(--tile), color-mix(in srgb, var(--tile) 88%, #000));
}
.half.b, .flap.b {
    bottom: 0;
    border-radius: 0 0 min(var(--r), 0.14em) min(var(--r), 0.14em);
    background: linear-gradient(color-mix(in srgb, var(--tile) 94%, #000), var(--tile));
}
.half i::before, .flap i::before { content: attr(data-c); }
.half.t i, .flap.t i { top: 0; }
.half.b i, .flap.b i { bottom: 0; }
.flap {
    z-index: 2;
    opacity: 0;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.flap.t { transform-origin: 50% 100%; }
.flap.b { transform-origin: 50% 0; transform: rotateX(90deg); }

.hero-sub {
    margin-top: 28px;
    max-width: 34ch;
    font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
    line-height: 1.5;
    color: var(--muted);
}

.hero-cta { margin-top: 32px; display: inline-flex; flex-wrap: wrap; gap: 12px; }
.hero-link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 3px; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 15px 22px;
    border: 0;
    border-radius: var(--r);
    background: var(--ink);
    color: var(--bg);
    font-weight: 560;
    font-size: 1rem;
    white-space: nowrap;
    transition: transform 0.4s var(--ease), background 0.2s;
}
.btn-accent { background: var(--accent); color: #17150e; }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn:active { transform: scale(0.97); }
.btn .icon { transition: transform 0.4s var(--ease); }
.btn:hover .icon { transform: translate(2px, 3px); }

/* Collage */
.hero-art {
    --mx: 0;
    --my: 0;
    position: relative;
    aspect-ratio: 6 / 5;
    width: 100%;
}
.shot {
    position: absolute;
    margin: 0;
}
.shot img {
    width: 100%;
    border-radius: var(--r);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translate3d(calc(var(--mx) * var(--d) * 1px), calc(var(--my) * var(--d) * 1px), 0);
    will-change: transform;
}
.shot-a { --d: 10; left: 0; top: 3%; width: 78%; z-index: 1; }
.shot-b { --d: -18; right: 0; bottom: 4%; width: 58%; z-index: 2; }

@media (prefers-reduced-motion: no-preference) {
    .shot { animation: rise 1s var(--ease) both; }
    .shot-a { animation-delay: 0.15s; }
    .shot-b { animation-delay: 0.3s; }
    .hero-sub { animation: rise 0.9s var(--ease) 0.7s both; }
    .hero-cta { animation: rise 0.9s var(--ease) 0.85s both; }
    @keyframes rise {
        from { opacity: 0; transform: translate3d(0, 28px, 0); }
        to { opacity: 1; transform: none; }
    }
}

/* ---------- Featured bento ---------- */

.section { padding-block: 24px 0; }

.section-title {
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
    font-weight: 650;
}

.bento {
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}
.bento-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r);
    overflow: hidden;
}
/* Planner leads: full width, tinted with the single accent. */
.tile-plan { grid-column: 1 / -1; background: color-mix(in srgb, var(--accent) 16%, var(--surface)); }
.tile-meet, .tile-live, .tile-bike { grid-column: span 2; }
.tile-time, .tile-sea { grid-column: span 3; }
.tile-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: clamp(20px, 2.4vw, 32px); }
.tile-title {
    font-size: clamp(1.375rem, 2vw, 1.75rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 650;
}
.tile-plan .tile-title { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1; letter-spacing: -0.04em; }
.tile-text { max-width: 46ch; font-size: 1rem; color: var(--muted); }
.tile-plan .tile-text { font-size: 1.125rem; }
.tile-copy .panel-more { margin-top: 4px; }
.tile-media { flex: 1 1 auto; display: flex; padding: 0 12px 12px; margin-top: auto; }
.tile-media img {
    width: 100%;
    height: 100%;
    min-height: 140px;
    object-fit: cover;
    object-position: left top;
    border-radius: var(--r);
    border: 1px solid var(--line);
    aspect-ratio: 16 / 9;
}

.link-arrow {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding-block: 6px;
    font-weight: 560;
    font-size: 1.0625rem;
}
.link-arrow::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0.28);
    transform-origin: 0 50%;
    transition: transform 0.5s var(--ease);
}
.link-arrow:hover::after,
.link-arrow:focus-visible::after { transform: scaleX(1); }
.link-arrow .icon { transition: transform 0.4s var(--ease); }
.link-arrow:hover .icon { transform: translate(3px, -3px); }

@media (min-width: 900px) {
    /* The planner screenshot is 800px wide: show it beside the copy at about its own size instead of stretching it. */
    .tile-plan { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
    .tile-plan .tile-media { padding: 12px 12px 12px 0; align-self: center; }
    .tile-plan .tile-media img { aspect-ratio: 3 / 2; height: auto; }
}

/* ---------- What is NAVIG (answer block) ---------- */
.about { padding-top: 96px; }
.about-answer { margin-top: 20px; max-width: 62ch; font-size: 1.1875rem; line-height: 1.55; }
.about-sources { margin-top: 16px; max-width: 70ch; font-size: 0.9375rem; color: var(--muted); }

/* ---------- Board ---------- */

.board { padding-top: 96px; position: relative; }
.anchor { position: absolute; top: 0; visibility: hidden; }

.board-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 32px;
}
.count {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.875rem;
    color: var(--muted);
}

.board-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: transparent;
    font-size: 0.9375rem;
    white-space: nowrap;
    transition: background 0.25s var(--ease), color 0.25s, border-color 0.25s, transform 0.2s var(--ease);
}
.chip .n { font-family: var(--mono); font-size: 0.75rem; color: var(--muted); transition: color 0.25s; }
.chip:hover { background: var(--surface); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.chip[aria-pressed="true"] .n { color: color-mix(in srgb, var(--bg) 70%, var(--ink)); }

.search {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 0 10px 0 14px;
    height: 41px;
    border: 1px solid var(--muted);
    border-radius: var(--r);
    background: var(--surface);
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 55%, transparent); }
.search span { font-size: 0.875rem; color: var(--muted); }
.search input {
    width: 148px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 0.9375rem;
}
.search input::placeholder { color: var(--muted); opacity: 0.85; }
.search kbd {
    display: inline-grid;
    place-items: center;
    min-width: 22px; height: 22px;
    padding-inline: 6px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-family: var(--mono);
    font-size: 0.75rem;
    color: var(--muted);
}

.rows { margin-top: 32px; }

.row {
    isolation: isolate;
    position: relative;
    display: grid;
    grid-template-columns: minmax(200px, 1.15fr) minmax(0, 2fr) 72px 44px;
    column-gap: 24px;
    align-items: start;
    padding: 24px 0;
    border-bottom: 1px solid var(--line);
}
.row[hidden] { display: none; }
.row:last-of-type { border-bottom-color: transparent; }

.row::before {
    content: "";
    position: absolute;
    inset: 4px -16px;
    background: var(--surface);
    border-radius: var(--r);
    opacity: 0;
    transform: scale(0.985);
    transition: opacity 0.3s var(--ease), transform 0.5s var(--ease);
    z-index: -1;
}

.row-main { display: contents; }
.row-main::after { content: ""; position: absolute; inset: 0; z-index: 0; }

.row-name {
    grid-column: 1;
    min-width: 0;
    font-size: clamp(1.5rem, 2.4vw, 2.125rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-weight: 620;
}
.roll { display: flex; flex-wrap: wrap; column-gap: 0.25em; }
.roll-word { display: inline-flex; overflow: hidden; }
.ch { position: relative; display: inline-block; white-space: pre; }
.ch::after { content: attr(data-c); position: absolute; left: 0; top: 100%; }

.row-desc { grid-column: 2; padding-top: 4px; color: var(--muted); max-width: 54ch; }
.row-more {
    grid-column: 2;
    grid-row: 2;
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px 18px;
    font-size: 0.9375rem;
}
.panel-more { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 0.9375rem; }
.row-more a, .panel-more a {
    position: relative;
    z-index: 1;
    padding-block: 2px;
    font-weight: 540;
    background: linear-gradient(var(--accent), var(--accent)) 0 100% / 100% 2px no-repeat;
    transition: background-size 0.4s var(--ease);
}
.row-more a:hover, .panel-more a:hover { background-size: 100% 100%; color: var(--accent-ink); }

.row-where { grid-column: 3; padding-top: 7px; font-family: var(--mono); font-size: 0.8125rem; color: var(--muted); }
.row-go {
    grid-column: 4;
    justify-self: end;
    display: inline-grid;
    place-items: center;
    width: 40px; height: 40px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    font-size: 1.125rem;
    transition: background 0.3s var(--ease), color 0.3s, border-color 0.3s;
}
.row-go .icon { transition: transform 0.5s var(--ease); }

@media (hover: hover) {
    .row:hover::before { opacity: 1; transform: none; }
    .row:hover .ch { transform: translateY(-100%); }
    .row:hover .row-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
    .row:hover .row-go .icon { transform: rotate(45deg); }
}
.ch {
    transition: transform 0.55s var(--ease);
    transition-delay: calc(var(--i) * 14ms);
}
.row-main:focus-visible { outline: none; }
.row:has(.row-main:focus-visible)::before { opacity: 1; transform: none; }
.row:has(.row-main:focus-visible) .row-go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.row-thumb { display: none; }

.empty {
    padding: 64px 0 24px;
    max-width: 44ch;
}
.empty[hidden] { display: none; }
.empty h3 { font-size: 1.75rem; letter-spacing: -0.03em; line-height: 1.15; font-weight: 620; }
.empty p { margin-top: 10px; color: var(--muted); }
.empty .btn { margin-top: 22px; }

/* Cursor-following preview */
.peek {
    position: fixed;
    left: 0; top: 0;
    z-index: 40;
    width: 320px;
    aspect-ratio: 3 / 2;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: var(--shadow);
    overflow: hidden;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.25s var(--ease);
    will-change: transform;
}
.peek.on { opacity: 1; }
.peek img {
    position: absolute;
    inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.25s;
}
.peek img.on { opacity: 1; }
@media (hover: none), (pointer: coarse) { .peek { display: none; } }

/* Scroll-in */
.js .reveal { opacity: 0; transform: translateY(16px); }
.js .reveal.in {
    opacity: 1;
    transform: none;
    transition: opacity 0.7s var(--ease), transform 0.8s var(--ease);
    transition-delay: var(--d, 0ms);
}

/* ---------- FAQ ---------- */

.faq { padding-top: 120px; }
.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr);
    gap: 32px clamp(32px, 6vw, 96px);
    align-items: start;
}
.faq-grid .section-title { position: sticky; top: calc(var(--nav) + 24px); max-width: 10ch; }

.qa { border-bottom: 1px solid var(--line); }
.qa:first-child { border-top: 1px solid var(--line); }
.qa summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa h3 { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); font-weight: 580; letter-spacing: -0.015em; line-height: 1.3; }
.qa-mark {
    position: relative;
    flex: none;
    width: 14px; height: 14px;
}
.qa-mark::before,
.qa-mark::after {
    content: "";
    position: absolute;
    left: 0; top: 6px;
    width: 14px; height: 2px;
    background: currentColor;
    transition: transform 0.45s var(--ease);
}
.qa-mark::after { transform: rotate(90deg); }
.qa[open] .qa-mark::after { transform: rotate(0deg); }
.qa p { padding-bottom: 24px; max-width: 62ch; color: var(--muted); }
.qa summary:hover h3 { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: 4px; }

@supports (interpolate-size: allow-keywords) {
    .qa { interpolate-size: allow-keywords; }
    .qa::details-content {
        block-size: 0;
        overflow: hidden;
        transition: block-size 0.5s var(--ease), content-visibility 0.5s allow-discrete;
    }
    .qa[open]::details-content { block-size: auto; }
}

/* The footer is the shared one (templates/_nv/foot.html, navig-ui.css). */
.nv-foot { margin-top: 96px; }
.featured-note { margin-top: 28px; color: var(--muted); font-size: 0.9375rem; max-width: 70ch; }

/* ---------- Responsive ---------- */

@media (max-width: 899px) {
    .faq-grid { grid-template-columns: 1fr; }
    .faq-grid .section-title { position: static; max-width: none; }
}

@media (max-width: 1023px) {
    .hero-grid { grid-template-columns: 1fr; min-height: 0; }
    .hero-art { max-width: 640px; }
    .row { grid-template-columns: minmax(160px, 1fr) minmax(0, 1.6fr) 64px 44px; }
}

@media (max-width: 899px) {
    .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tile-plan { grid-column: 1 / -1; }
    .tile-meet, .tile-live, .tile-bike, .tile-time { grid-column: auto; }
    .tile-sea { grid-column: 1 / -1; }
    .tile-media img { aspect-ratio: 3 / 2; height: auto; }
    .about { padding-top: 72px; }
}

@media (max-width: 599px) {
    .bento { grid-template-columns: 1fr; }
    .tile-plan, .tile-meet, .tile-live, .tile-bike, .tile-time, .tile-sea { grid-column: 1 / -1; }
}

@media (max-width: 767px) {
    .hero { padding-block: 16px 40px; }
    .hero-grid { gap: 24px; }
    .hero-sub { margin-top: 16px; font-size: 1.0625rem; }
    .hero-cta { margin: 20px 0 0; padding: 0; gap: 10px; display: flex; }
    .hero-cta .btn { padding: 13px 16px; gap: 8px; font-size: 0.9375rem; justify-content: center; flex: 1 1 auto; }
    .hero-cta .btn-accent { flex-grow: 1.3; }
    /* One product image on phones (the bus planner) so the task content starts sooner. */
    .hero-art { aspect-ratio: auto; max-width: none; }
    .shot-a { position: static; width: 100%; }
    .shot-b { display: none; }
    .menu-btn { display: inline-grid; }
    .nav-links {
        position: absolute;
        left: 0; right: 0; top: var(--nav);
        display: grid;
        gap: 0;
        padding: 8px var(--gut) 16px;
        background: var(--bg);
        border-bottom: 1px solid var(--line);
        visibility: hidden;
        opacity: 0;
        transform: translateY(-8px);
        transition: opacity 0.25s var(--ease), transform 0.35s var(--ease), visibility 0s 0.35s;
    }
    .nav-links.open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
    .nav-links a { padding: 14px 4px; font-size: 1.0625rem; color: var(--ink); border-bottom: 1px solid var(--line); }
    .nav-line { display: none; }
    .nav-links > .nav-info-link { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 44px; padding: 14px 4px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: inherit; font-size: 1.0625rem; color: var(--ink); text-align: left; cursor: pointer; }

    .board { padding-top: 72px; }
    .board-tools { width: 100%; }
    .search { width: 100%; }
    .search input { flex: 1; width: auto; min-width: 0; }

    .row {
        grid-template-columns: minmax(0, 1fr) 44px;
        row-gap: 10px;
        padding: 22px 0;
    }
    .row-name { grid-column: 1; grid-row: 1; }
    .row-go { grid-column: 2; grid-row: 1; }
    .row-desc { grid-column: 1 / -1; grid-row: 2; padding-top: 0; }
    .row-more { grid-column: 1 / -1; grid-row: 3; margin-top: 0; }
    .row-where { grid-column: 1 / -1; grid-row: 4; padding-top: 0; }
    .row::before { inset: 4px -8px; }

}

@media (max-width: 399px) {
    .chip { padding: 8px 12px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
    .js .reveal { opacity: 1; transform: none; }
}

@media (hover: none), (pointer: coarse) { .search kbd { display: none; } }

/* Touch: 44px hit areas for small text links */
@media (pointer: coarse) {
    .brand { min-height: 44px; }
    .row-more a { display: inline-flex; align-items: center; min-height: 44px; }
    .search input { min-height: 44px; font-size: 1rem; }
}
