/* Hallmark · shape: kept (social network: photo-led home, one-column feeds, app screens behind sign-in) · genre: editorial · theme: brand · hero: Stage, kept (a real member photo, a search, the member's report) · nav: kept (edge-aligned bar, avatar menu, phone tab bar) · footer: kept (columns) · signature: the real track of a member's report, drawn in orange
 * axes: light paper/grotesk display/orange signal · posture: Stage · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S4 R4 V3 · weakest: V, the inner pages share one system on purpose (design.md locked); the home leads with a real report and its track instead of a stock hero */
/* Hallmark · dismissed 3 · the three columns are photo cards of real routes and a community row, not icon tiles */
/* Hallmark · dismissed 41 · the soft and card surfaces are dark only in the dark theme, where body text already flips to the light ink */
/* Hallmark · answered F7 · the pill is the shape of controls and of the freshness and status pills that carry live route state */
/* Hallmark · answered F15 · the guest home is fluid to 1920 at the owner's request; inner pages cap at the 1240 measure */
/* Hallmark · answered F24 · menus float over the page; the hairline keeps their edge on white paper where the shadow alone fades */
/* Hallmark · waive 78 · section heads hold 36px under a 64px hero · the owner's TrailTrack typography system fixes H2 at 28 to 36px and forbids other sizes */
/* Hallmark · answered F19 · four weights are the owner's typography system: Inter 400 and 500 for text, 600 for buttons and titles, Manrope 700 for heads */
/* Hallmark · waive 59 · each TrailTrack home slide fills one screen with its own padding · the TrailTrack home page is a sequence of full-screen slides by the owner design, so gaps between sections come from the slide padding */
/* Hallmark · waive 44c · the home hero copy is centred over a full-bleed photo · the doodle route and sign are loose decoration around centred text, not a second visual column beside it */
/* Hallmark · dismissed F5 · the coloured disc is the unread count on the bell and the create button of the tab bar, both live state */
/*
 * TrailTrack — a social network for hikers and travellers. Landing mock-up.
 * Built to sit beside Komoot, AllTrails and Strava: light, photo-led, product UI shown for real.
 * Brand: orange #ff671d (buttons #cf4a0c for 4.5:1 white text), ink #121922.
 * Type: the TrailTrack typography system — Manrope headings and large figures, Inter for text and UI, one token scale.
 */
:root {
    /* Typography system (TrailTrack): Manrope for headings and large figures, Inter for everything else.
       Use only these tokens; sizes, weights and line heights are not chosen per component. */
    --font-display: 'Manrope', 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --font-text: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --display: var(--font-display);
    --text: var(--font-text);
    --fs-display: clamp(40px, 2.4vw + 28px, 64px);
    --fs-h1: clamp(34px, 2.1vw + 26px, 56px);
    --fs-h2: clamp(28px, 0.8vw + 24.5px, 36px);
    --fs-h3: clamp(22px, 0.4vw + 20.2px, 26px);
    --fs-h4: clamp(18px, 0.2vw + 17.1px, 20px);
    --fs-body-lg: 18px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-caption: 13px;
    --fs-button: 15px;
    --lh-display: 1.1;
    --lh-h1: 1.15;
    --lh-h2: 1.2;
    --lh-h3: 1.25;
    --lh-h4: 1.3;
    --lh-body: 1.6;
    --lh-small: 1.5;
    --lh-caption: 1.4;
    --lh-button: 1.2;
    --lh-article: 1.7;
    --ls-display: -0.025em;
    --ls-heading: -0.015em;
    --fw-heading: 700;
    --fw-title: 600;
    --fw-text: 400;
    --fw-ui: 500;
    --fw-button: 600;
    --fs-caption-tight: 12px;
    --measure: 70ch;
    --article-width: 720px;

    --bg: #ffffff;
    --bg-soft: #f4f5f2;
    --surface: #ffffff;
    --ink: #121922;
    --ink-2: #353c46;
    --copy: #5a636e;
    --quiet: #5f6873;
    --orange-ink: #a83c0a;
    --map-paper: #e8efe4;
    --selection: #ffd8c2;
    --focus: #c4450a;
    --field-edge: #7e858d;
    --selection-ink: #121922;
    --line: #e6e8e3;
    --line-2: #d6d9d3;

    --orange: #ff671d;
    --orange-soft: #fff1e8;
    --dd-green: #2f7d4f;
    --dd-lime: #b9d94c;
    --dd-lilac: #a98bd6;
    --cta: #c4450a;
    --cta-hover: #b13d08;
    --publish-cta: #c73f03;
    --publish-cta-hover: #ad3603;
    --link: #b8430c;

    --ok: #1f7a43;
    --ok-soft: #e5f3ea;
    --warn: #96560a;
    --warn-soft: #fcefdc;
    --info-soft: #eef1f4;

    --r-sm: 10px;
    --r: 16px;
    --r-lg: 24px;
    --shadow: 0 1px 2px rgba(16, 24, 32, 0.06), 0 6px 18px rgba(16, 24, 32, 0.07);
    --shadow-lg: 0 2px 6px rgba(16, 24, 32, 0.08), 0 24px 48px -12px rgba(16, 24, 32, 0.22);

    /* fixed colours: text and glass on photographs, map chips, avatars, scrims and shades (same in both themes) */
    --on-accent: #fffbf7;
    --ink-fixed: #121922;
    --copy-fixed: #5a636e;
    --quiet-fixed: #4f5661;
    --chip-white-hover: #eef0ec;
    --hero-ground: #26301f;
    --hero-accent: #ffb38a;
    --verified: #d94a08;
    --avatar-a: #2f7a52;
    --avatar-b: #c2410c;
    --avatar-c: #3a6ea5;
    --avatar-d: #7a4fa0;
    --avatar-e: #9a6a1c;
    --black-15: rgba(0, 0, 0, 0.15);
    --black-25: rgba(0, 0, 0, 0.25);
    --black-45: rgba(0, 0, 0, 0.45);
    --glass-85: rgba(255, 251, 247, 0.85);
    --glass-86: rgba(255, 251, 247, 0.86);
    --glass-88: rgba(255, 251, 247, 0.88);
    --glass-90: rgba(255, 251, 247, 0.9);
    --glass-94: rgba(255, 251, 247, 0.94);
    --glass-95: rgba(255, 251, 247, 0.95);
    --orange-a-18: rgba(255, 103, 29, 0.18);
    --scrim-00: rgba(12, 16, 14, 0);
    --scrim-10: rgba(12, 16, 14, 0.1);
    --scrim-12: rgba(12, 16, 14, 0.12);
    --scrim-25: rgba(12, 16, 14, 0.25);
    --scrim-30: rgba(12, 16, 14, 0.3);
    --scrim-38: rgba(12, 16, 14, 0.38);
    --scrim-42: rgba(12, 16, 14, 0.42);
    --scrim-45: rgba(12, 16, 14, 0.45);
    --scrim-50: rgba(12, 16, 14, 0.5);
    --scrim-55: rgba(12, 16, 14, 0.55);
    --scrim-66: rgba(12, 16, 14, 0.66);
    --scrim-72: rgba(12, 16, 14, 0.72);
    --scrim-74: rgba(12, 16, 14, 0.74);
    --scrim-75: rgba(12, 16, 14, 0.75);
    --scrim-78: rgba(12, 16, 14, 0.78);
    --scrim-80: rgba(12, 16, 14, 0.8);
    --shade-12: rgba(16, 24, 32, 0.12);
    --shade-18: rgba(16, 24, 32, 0.18);
    --shade-25: rgba(16, 24, 32, 0.25);

    --glass-60: rgba(255, 251, 247, 0.6);
    --black-12: rgba(0, 0, 0, .12);
    --black-18: rgba(0, 0, 0, .18);
    --glass-12: rgba(255, 251, 247, .12);
    --glass-14: rgba(255, 251, 247, .14);
    --glass-16: rgba(255, 251, 247, .16);
    --glass-22: rgba(255, 251, 247, .22);
    --glass-42: rgba(255, 251, 247, .42);
    --glass-78: rgba(255, 251, 247, .78);
    --glass-92: rgba(255, 251, 247, .92);
    --glass-97: rgba(255, 251, 247, .97);
    --scrim-08: rgba(8, 16, 17, .08);
    --scrim-58: rgba(8, 16, 17, .58);

    --scrim-38: rgba(5, 13, 12, 0.38);
    --scrim-52: rgba(5, 13, 12, 0.52);
    --scroll-thumb: #68726b;
    --scroll-track: #17201d;
    --scroll-thumb-hover: #929d94;

    --wrap: 1240px;
    --gutter: 24px;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    color-scheme: light;
}
:root[data-theme="dark"] {
    --bg: #121212;
        --bg-soft: #191919;
        --surface: #222222;
        --ink: #f2f2f0;
        --ink-2: #d7d7d3;
        --copy: #b5b5af;
        --quiet: #a3a39d;
        --line: #343434;
        --line-2: #484848;
        --orange-soft: #2b1d14;
        --orange-ink: #ff9a62;
        --map-paper: #1f2a24;
        --selection: #6b3416;
        --focus: #ff9a62;
        --field-edge: #85857f;
        --selection-ink: #fff7f2;
        --link: #ff9a62;
        --ok: #7fd29c;
        --ok-soft: #16281e;
        --warn: #f3b766;
        --warn-soft: #2e2416;
        --info-soft: #292929;
        --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.3);
        --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 48px -12px rgba(0, 0, 0, 0.6);
        color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fw-text) var(--fs-body)/var(--lh-body) var(--font-text); letter-spacing: 0; -webkit-font-smoothing: antialiased; overflow-x: clip; caret-color: var(--orange); }
::selection { background: var(--selection); color: var(--selection-ink); }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; top: 8px; left: 8px; z-index: 90; padding: 12px 16px; border-radius: 10px; background: var(--ink); color: var(--bg); transform: translateY(-200%); }
.skip:focus { transform: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--edge) * 2); margin-inline: auto; padding-inline: var(--edge); }
.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.num { font-variant-numeric: tabular-nums; }
/* ---------- type ---------- */
.display { font-size: var(--fs-display); line-height: var(--lh-display); letter-spacing: var(--ls-display); }
.h1 { font-size: var(--fs-h1); line-height: var(--lh-h1); letter-spacing: var(--ls-display); }
.h2 { font-size: var(--fs-h2); line-height: var(--lh-h2); }
.h3 { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.h4 { font-size: var(--fs-h4); line-height: var(--lh-h4); font-weight: var(--fw-title); }
.caption { color: var(--quiet); font-size: var(--fs-caption); font-weight: var(--fw-ui); line-height: var(--lh-caption); }
.lead { color: var(--copy); font-size: var(--fs-body-lg); line-height: var(--lh-body); }
.muted { color: var(--copy); }
.quiet { color: var(--quiet); font-size: var(--fs-small); line-height: var(--lh-small); }
/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: 999px; font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-text); white-space: nowrap; transition: background-color 160ms, border-color 160ms, color 160ms, transform 160ms; }
.btn:active { transform: scale(0.98); }
.btn--cta { background: var(--cta); color: var(--on-accent); }
.btn--cta:hover { background: var(--cta-hover); }
/* The global Create action matches the publication action on every page. */
.hdr .site-create-button,
html[data-theme="dark"]:not(#tt-dk) .hdr .site-create-button {
    background: var(--publish-cta) !important;
    box-shadow: none !important;
}
.hdr .site-create-button:hover,
html[data-theme="dark"]:not(#tt-dk) .hdr .site-create-button:hover {
    background: var(--publish-cta-hover) !important;
    box-shadow: none !important;
}
.hdr .site-create-button::before { display: none; }
.btn--ink { background: var(--ink); color: var(--bg); }
.btn--ink:hover { background: var(--ink-2); }
.btn--line { border-color: var(--line-2); background: var(--surface); color: var(--ink); }
.btn--line:hover { border-color: var(--ink); }
.btn--white { background: var(--on-accent); color: var(--ink-fixed); }
.btn--white:hover { background: var(--chip-white-hover); }
.btn--lg { min-height: 52px; padding: 0 24px; font-size: var(--fs-button); }
.btn--sm { min-height: 36px; padding: 0 16px; font-size: var(--fs-button); }
.more { display: inline-flex; align-items: center; gap: 8px; color: var(--link); font-weight: 600; white-space: nowrap; }
.more .icon { width: 18px; height: 18px; transition: transform 200ms var(--ease-out); }
.more:hover .icon { transform: translateX(3px); }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-ui); white-space: nowrap; }
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip .icon { width: 16px; height: 16px; }
.chip[aria-pressed="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; font-size: var(--fs-caption); font-weight: var(--fw-button); line-height: var(--lh-caption); white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--warn { background: var(--warn-soft); color: var(--warn); }
.pill--info { background: var(--info-soft); color: var(--ink-2); }
.pill--info::before { display: none; }
.avatar { display: grid; flex: none; place-items: center; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; color: var(--on-accent); font-size: var(--fs-small); font-weight: var(--fw-button); }
.avatar--sm { width: 30px; height: 30px; font-size: var(--fs-caption); }
.avatar--a { background: var(--avatar-a); }
.avatar--b { background: var(--avatar-b); }
.avatar--c { background: var(--avatar-c); }
.avatar--d { background: var(--avatar-d); }
.avatar--e { background: var(--avatar-e); }
.avatars { display: flex; }
.avatars .avatar { margin-left: -8px; border: 2px solid var(--surface); }
.avatars .avatar:first-child { margin-left: 0; }
/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 92%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.hdr__in { display: flex; align-items: center; gap: 24px; height: 68px; }
.hdr__logo img { width: 140px; }
.hdr__nav { display: flex; gap: 4px; }
.hdr__nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink-2); font-size: var(--fs-button); font-weight: var(--fw-ui); }
.hdr__nav a:hover { background: var(--bg-soft); color: var(--ink); }
.hdr__nav a[aria-current="page"] { background: var(--bg-soft); color: var(--ink); }
.hdr__search { display: flex; flex: 1; align-items: center; gap: 8px; max-width: 300px; min-height: 40px; margin-left: auto; padding: 0 16px; border-radius: 999px; background: var(--bg-soft); color: var(--quiet); }
.hdr__search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: var(--fs-small); }
.hdr__search input::placeholder { color: var(--quiet); }
.hdr__search:focus-within { box-shadow: 0 0 0 2px var(--orange); }
.hdr__side { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.hdr__side > .hdr__search { flex: 0 1 300px; margin-left: 0; }
.hdr__login { padding: 8px 12px; color: var(--ink-2); font-size: var(--fs-button); font-weight: var(--fw-button); }
.hdr__login:hover { color: var(--ink); }
.hdr__menu { display: none; width: 42px; height: 42px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); place-items: center; }
.drawer { border-top: 1px solid var(--line); background: var(--bg); }
.drawer nav { display: grid; padding: 8px 0; }
.drawer nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); font-size: var(--fs-body-lg); font-weight: var(--fw-button); }
.drawer__side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 16px 0 20px; }
/* ---------- sections ---------- */
.section { padding-block: clamp(56px, 8vw, 128px); }
.section--soft { background: var(--bg-soft); }
.head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: clamp(24px, 3vw, 36px); }
.head p { max-width: 40em; margin-top: 12px; }
/* ---------- hero ---------- */
.hero { padding: 16px 0 0; }
.hero__frame { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: end; gap: 32px; min-height: min(720px, calc(100svh - 96px)); padding: clamp(28px, 4vw, 56px); overflow: hidden; border-radius: var(--r-lg); background: var(--hero-ground); color: var(--on-accent); isolation: isolate; }
.hero__frame > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
/* a readable scrim on the copy side only, the photo stays itself */
.hero__frame::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--scrim-72) 0%, var(--scrim-50) 38%, var(--scrim-00) 66%), linear-gradient(0deg, var(--scrim-45) 0%, var(--scrim-00) 40%); }
.hero__copy { display: grid; gap: 20px; max-width: 620px; padding-bottom: 8px; }
.hero__copy .lead { color: var(--glass-90); max-width: 32em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--glass-86); font-size: var(--fs-small); }
.hero__facts li { display: inline-flex; align-items: center; gap: 8px; }
.hero__facts .icon { width: 17px; height: 17px; color: var(--hero-accent); }
.hero__credit { position: absolute; right: 16px; top: 16px; padding: 4px 12px; border-radius: 999px; background: var(--scrim-55); color: var(--on-accent); font-size: var(--fs-caption); }
/* ---------- post (feed) ---------- */
.post { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.post__head { display: flex; align-items: center; gap: 12px; }
.post__who { display: grid; line-height: 1.3; }
.post__who b { font-size: var(--fs-body); font-weight: var(--fw-button); }
.post__who span { color: var(--quiet); font-size: var(--fs-caption); }
.post__head .pill { margin-left: auto; }
.post__title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-title); letter-spacing: var(--ls-heading); line-height: var(--lh-h4); }
.post__text { color: var(--copy); font-size: var(--fs-body); }
.post__stats { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-ui); font-variant-numeric: tabular-nums; }
.post__stats span { display: inline-flex; align-items: center; gap: 4px; }
.post__stats .icon { width: 16px; height: 16px; color: var(--quiet); }
.post__media { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; height: 220px; overflow: hidden; border-radius: 12px; }
.post__media img { width: 100%; height: 100%; object-fit: cover; }
.post__media img:first-child { grid-row: span 2; }
.post__media--one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.post__media--one img:first-child { grid-row: auto; }
.post__foot { display: flex; align-items: center; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.post__act { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-ui); }
.post__act:hover { background: var(--bg-soft); }
.post__act .icon { width: 18px; height: 18px; }
.post__act--end { margin-left: auto; color: var(--quiet); }
.post--float { position: relative; align-self: end; justify-self: end; width: min(100%, 400px); }
.post--float .post__media { height: 180px; }
.post__quote { padding: 12px 16px; border-radius: 12px; background: var(--bg-soft); color: var(--ink-2); font-size: var(--fs-body); }
/* ---------- how it works: three live previews ---------- */

/* ---------- feed ---------- */
.feed { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: clamp(24px, 3vw, 40px); align-items: start; }
.feed__main { display: grid; gap: 16px; }
.side { position: sticky; top: 92px; display: grid; gap: 16px; }
.box { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.box .h3 { margin-bottom: 12px; font-size: var(--fs-h4); }
.checks { display: grid; }
.check { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.check:first-child { border-top: 0; padding-top: 0; }
.check b { font-size: var(--fs-small); font-weight: var(--fw-button); }
.check p { margin-top: 4px; color: var(--copy); font-size: var(--fs-small); line-height: var(--lh-small); }
.check .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 8px; color: var(--quiet); font-size: var(--fs-caption); }
/* ---------- routes ---------- */
.find { display: flex; align-items: center; gap: 12px; max-width: 760px; min-height: 56px; margin-bottom: 20px; padding: 8px 8px 8px 20px; border: 1px solid var(--field-edge); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); }
.find .icon { color: var(--quiet); }
.find input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: var(--fs-body); }
.find input::placeholder { color: var(--quiet); }
.find:focus-within { border-color: var(--orange); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.route { position: relative; display: grid; align-content: start; gap: 12px; }
.route__link { display: grid; align-content: start; gap: 12px; }
.route__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--bg-soft); }
.route__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.route__fav { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--glass-94); color: var(--ink-fixed); box-shadow: 0 2px 8px var(--black-15); }
.route__fav:hover { color: var(--cta); }
.route__where { color: var(--quiet); font-size: var(--fs-caption); }
.route__title { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-title); letter-spacing: var(--ls-heading); line-height: var(--lh-h4); }
.route:hover .route__title { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
.route__spec { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-button); font-variant-numeric: tabular-nums; }
.route__people { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; color: var(--copy); font-size: var(--fs-caption); }
/* ---------- together (clubs) ---------- */
.together { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.photo-note { position: relative; overflow: hidden; border-radius: var(--r-lg); }
.photo-note img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-note figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 4px; padding: 16px 16px; border-radius: var(--r); background: var(--glass-95); color: var(--ink-fixed); box-shadow: var(--shadow); }
.photo-note figcaption span { color: var(--copy-fixed); font-size: var(--fs-caption); }
.clubs { display: grid; gap: 12px; margin: 24px 0 24px; }
.club { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.club__logo { display: grid; place-items: center; width: 52px; height: 52px; overflow: hidden; border-radius: 14px; background: var(--orange-soft); color: var(--orange-ink); font-family: var(--font-display); font-weight: var(--fw-heading); }
.club__logo img { width: 100%; height: 100%; object-fit: cover; }
.club__name { display: block; color: var(--ink); font-family: var(--font-display); font-size: var(--fs-body); font-weight: var(--fw-title); letter-spacing: var(--ls-heading); }
.club__meta { display: block; color: var(--quiet); font-size: var(--fs-caption); }
/* ---------- profile ---------- */
.profile { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.pcard { overflow: hidden; border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.pcard__cover { height: 150px; }
.pcard__cover img { width: 100%; height: 100%; object-fit: cover; }
.pcard__body { display: grid; gap: 16px; padding: 0 24px 24px; }
.pcard__id { display: flex; align-items: flex-start; gap: 16px; margin-top: -40px; }
.pcard__id > span:last-child { margin-top: 44px; }
.pcard__id .avatar { width: 76px; height: 76px; border: 4px solid var(--surface); font-size: var(--fs-h3); }
.pcard__id b { display: block; color: var(--ink); font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); }
.pcard__id > span:last-child > span { display: block; color: var(--quiet); font-size: var(--fs-caption); }
.pcard__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 14px; }
.pcard__stats div { padding: 12px 12px; border-left: 1px solid var(--line); }
.pcard__stats div:first-child { border-left: 0; }
.pcard__stats b { display: block; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-heading); font-variant-numeric: tabular-nums; }
.pcard__stats span { color: var(--quiet); font-size: var(--fs-caption); }
.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.badges figure { display: grid; justify-items: center; gap: 4px; width: 74px; text-align: center; font-size: var(--fs-caption); color: var(--copy); line-height: 1.2; }
.badges img { width: 54px; height: 64px; object-fit: contain; }
.points { display: grid; gap: 16px; margin: 24px 0 28px; }
.points li { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
.points .icon { margin-top: 2px; color: var(--cta); }
.points b { display: block; }
.points span { color: var(--copy); font-size: var(--fs-body); }
/* ---------- app ---------- */
.app { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(24px, 4vw, 64px); align-items: center; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--bg-soft); }
.app img { width: 260px; justify-self: center; filter: drop-shadow(0 24px 30px var(--shade-25)); }
/* ---------- join ---------- */
.join { display: grid; justify-items: center; gap: 20px; padding: clamp(40px, 6vw, 72px) 24px; border-radius: var(--r-lg); background: var(--orange-soft); text-align: center; }
.join .lead { max-width: 34em; }
/* ---------- footer ---------- */
.ftr { margin-top: clamp(48px, 6vw, 80px); padding: 44px 0 28px; border-top: 1px solid var(--line); font-size: var(--fs-small); }
.ftr__grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 28px; }
.ftr__brand img { width: 140px; margin-bottom: 12px; }
.ftr__brand p { max-width: 28em; color: var(--copy); }
.ftr h2 { margin-bottom: 12px; font: var(--fw-title) var(--fs-body)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); }
.ftr a { display: block; padding: 4px 0; color: var(--copy); }
.ftr a:hover { color: var(--ink); }
.ftr__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--quiet); font-size: var(--fs-caption); }
/* ---------- one moment: the hero post arrives ---------- */
@media (prefers-reduced-motion: no-preference) {
    .js .post--float { animation: arrive 700ms var(--ease-out) 250ms both; }
@keyframes arrive { from { transform: translateY(18px) scale(0.985); }
}
}
/* ---------- responsive ---------- */
/* The header search folds into a magnifier on narrower desktops and opens on focus. */
@media (max-width: 1440px) {
    .hdr__search { flex: 0 0 40px; justify-content: center; padding: 0; cursor: text; }
.hdr__search input { width: 0; padding: 0; }
.hdr__search:focus-within { flex-basis: 260px; justify-content: flex-start; padding: 0 16px; }
.hdr__search:focus-within input { width: 100%; }
}
@media (max-width: 1180px) {
    .hdr__search { display: none; }
.routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
    .hdr__nav, .hdr__login, .hdr__side .btn { display: none; }
.hdr__menu { display: grid; margin-left: auto; }
.hero__frame { grid-template-columns: minmax(0, 1fr); align-items: start; min-height: 0; }
.hero__frame::before { background: linear-gradient(0deg, var(--scrim-78) 0%, var(--scrim-42) 55%, var(--scrim-25) 100%); }
.post--float { justify-self: start; }
.feed { grid-template-columns: minmax(0, 1fr); }
.side { position: static; }
.together, .profile, .app { grid-template-columns: minmax(0, 1fr); }
.ftr__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ftr__brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
    :root { --gutter: 16px; --fs-body-lg: 17px; --fs-caption: 12px; }
.hdr__in { height: 60px; }
.hdr__logo img { width: 124px; }
.hero { padding-top: 8px; }
.hero__frame { margin-inline: -8px; padding: 88px 20px 20px; border-radius: 20px; }
.hero__frame > img { object-position: 70% 50%; }
.hero__cta { display: grid; }
.hero__cta .btn { width: 100%; }
.hero__credit { left: 18px; right: auto; }
.post--float .post__media { height: 150px; }
.routes { grid-template-columns: minmax(0, 1fr); }
.route__link { grid-template-columns: 132px minmax(0, 1fr); align-items: start; gap: 4px 12px; }
.route__media { grid-row: span 4; aspect-ratio: 1 / 1; }
.route__fav { display: none; }
.find { min-height: 52px; }
.find .btn { padding: 0 16px; }
.post__media { height: 180px; }
.app img { width: 200px; }
.ftr__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* =====================================================================
 * Inner pages (feed, routes, regions, profile, journal, clubs)
 * ===================================================================== */

/* ---------- theme switch & member header ---------- */
.theme-btn, .hdr__icon { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); }
.theme-btn:hover, .hdr__icon:hover { background: var(--bg-soft); color: var(--ink); }
.hdr__icon .dot { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px; border: 2px solid var(--bg); border-radius: 999px; background: var(--cta); color: var(--on-accent); font-size: var(--fs-caption-tight); font-weight: 700; line-height: 14px; text-align: center; }
.hdr__me { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: var(--fs-small); font-weight: 600; }
.hdr__me:hover { border-color: var(--line-2); }
.menu { position: relative; }
.menu > summary { list-style: none; cursor: pointer; }
.menu > summary::-webkit-details-marker { display: none; }
.menu__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; display: grid; min-width: 230px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow-lg); }
.menu__list a, .menu__list button { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); font-size: var(--fs-small); text-align: left; }
.menu__list a:hover, .menu__list button:hover { background: var(--bg-soft); }
.menu__list .icon { width: 18px; height: 18px; color: var(--quiet); }
/* the avatar menu: grouped like an account menu, not a list of everything */
.menu--me .menu__list { min-width: 260px; max-height: calc(100svh - 90px); overflow: auto; }
.menu--me summary.hdr__me { gap: 4px; padding: 4px 8px 4px 4px; }
.menu--me summary .icon { width: 16px; height: 16px; color: var(--quiet); }
.menu__me { gap: 12px !important; margin-bottom: 4px; padding: 12px 12px !important; }
.menu__me .menu__me-name { display: flex; align-items: center; gap: 5px; font-size: var(--fs-small); font-weight: var(--fw-button); }
.menu__me .menu__me-name .verified { flex: 0 0 18px; }
.menu__me .verified .icon { color: var(--on-accent); }
.menu__me .menu__me-level { display: block; color: var(--quiet); font-size: var(--fs-caption); }
.menu__group { margin: 8px 12px 2px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--quiet); font-size: var(--fs-caption); font-weight: var(--fw-ui); }
.menu__out { margin-top: 8px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px !important; }
/* ---------- page frame ---------- */
.page { padding: 28px 0 72px; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 16px; color: var(--quiet); font-size: var(--fs-caption); }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: 24px; }
.page-head p { max-width: 44em; margin-top: 8px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; }
.layout--3 { grid-template-columns: 260px minmax(0, 1fr) 320px; gap: 28px; }
.layout--filters { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; }
.sticky { position: sticky; top: 92px; }
/* a column that holds a sticky block has to be as tall as the row, or the block has nowhere to stick */
:is(.layout, .layout--3, .layout--filters) > :has(> .sticky) { align-self: stretch; }
.stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-content: start; }
.stack--sm { gap: 12px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.row--between { justify-content: space-between; }
.card { padding: 20px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.card--flush { padding: 0; overflow: hidden; }
.card__title { margin-bottom: 12px; font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-title); letter-spacing: var(--ls-heading); line-height: var(--lh-h4); }
.divider { height: 1px; margin: 16px 0; background: var(--line); }
/* ---------- tabs & segmented controls ---------- */
.tabs { display: flex; gap: 4px; overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { display: inline-flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--copy); font-size: var(--fs-button); font-weight: var(--fw-button); white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--ink); }
.tabs [aria-selected="true"], .tabs [aria-current="page"] { border-color: var(--orange); color: var(--ink); }
.tabs .count { padding: 1px 8px; border-radius: 999px; background: var(--bg-soft); color: var(--quiet); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--bg-soft); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--copy); font-size: var(--fs-small); font-weight: var(--fw-button); white-space: nowrap; }
.seg [aria-pressed="true"], .seg [aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px var(--shade-12); }
/* ---------- form controls ---------- */
.field { display: grid; gap: 8px; }
.field > span { color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-ui); }
.input, .select { width: 100%; min-height: 44px; padding: 0 16px; border: 1px solid var(--field-edge); border-radius: 12px; background: var(--surface); color: var(--ink); font-size: var(--fs-body); }
.input::placeholder { color: var(--quiet); }
.input:focus, .select:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px var(--orange-a-18); }
.select { padding-right: 40px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23737b85' stroke-width='2' stroke-linecap='round' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.check-row { display: flex; align-items: center; gap: 12px; min-height: 36px; font-size: var(--fs-small); cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--cta); }
.check-row .count { margin-left: auto; color: var(--quiet); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.switch { position: relative; display: inline-block; width: 40px; height: 24px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 999px; background: var(--line-2); transition: background 160ms; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--on-accent); box-shadow: 0 1px 2px var(--black-25); transition: transform 160ms var(--ease-out); }
.switch input:checked + span { background: var(--cta); }
.switch input:checked + span::after { transform: translateX(16px); }
.filter-group { padding: 16px 0; border-top: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; border-top: 0; }
.filter-group h3 { margin-bottom: 12px; font: var(--fw-title) var(--fs-body)/var(--lh-h4) var(--font-display); letter-spacing: var(--ls-heading); }
/* ---------- small data pieces ---------- */
.kv { display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; margin: 0; font-size: var(--fs-small); }
.kv dt { color: var(--quiet); }
.kv dd { margin: 0; color: var(--ink); font-weight: 600; text-align: right; font-variant-numeric: tabular-nums; }
.facts { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.fact { display: grid; }
.fact b { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); font-variant-numeric: tabular-nums; }
.fact span { color: var(--quiet); font-size: var(--fs-caption); }
.bar { height: 8px; overflow: hidden; border-radius: 999px; background: var(--bg-soft); }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--cta); }
.bar--ok > i { background: var(--ok); }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 12px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-ui); white-space: nowrap; }
.tag--orange { background: var(--orange-soft); color: var(--link); }
.count-badge { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--bg-soft); color: var(--ink-2); font-size: var(--fs-caption); font-weight: var(--fw-button); }
.avatar--lg { width: 56px; height: 56px; font-size: var(--fs-h4); }
.avatar--xl { width: 112px; height: 112px; font-size: var(--fs-h2); }
.avatar img { width: 100%; height: 100%; aspect-ratio: 1 / 1; border-radius: 50%; object-fit: cover; }
.verified { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--verified); color: var(--on-accent); vertical-align: -3px; }
.verified .icon { width: 12px; height: 12px; stroke-width: 3; }
/* ---------- media ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; }
.cover { position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-soft); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
/* ---------- comments ---------- */
.comments { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.comment { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.comment__bubble { padding: 12px 12px; border-radius: 4px 14px 14px 14px; background: var(--bg-soft); font-size: var(--fs-small); }
.comment__bubble b { display: block; margin-bottom: 2px; font-size: var(--fs-caption); font-weight: var(--fw-button); }
.comment__meta { margin-top: 4px; color: var(--quiet); font-size: var(--fs-caption); }
.reply { display: flex; align-items: center; gap: 12px; }
.reply .input { min-height: 40px; border-radius: 999px; }
/* ---------- lists ---------- */
.list { display: grid; }
.list > * { padding: 12px 0; border-top: 1px solid var(--line); }
.list > *:first-child { padding-top: 0; border-top: 0; }
.person { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.person__name { display: block; font-size: var(--fs-small); font-weight: var(--fw-button); }
.person__meta { display: block; color: var(--quiet); font-size: var(--fs-caption); }
/* ---------- pagination & empty ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 32px; }
.pager a, .pager span { display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--ink-2); font-weight: 600; }
.pager [aria-current="page"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.empty { display: grid; justify-items: center; gap: 12px; padding: 36px 20px; border: 1px dashed var(--line-2); border-radius: var(--r); color: var(--copy); text-align: center; }
.empty .icon { width: 28px; height: 28px; color: var(--quiet); }
@media (max-width: 1180px) {
    .layout--3 { grid-template-columns: minmax(0, 1fr) 300px; }
.layout--3 > .layout__left { display: none; }
}
@media (max-width: 1023px) {
    .layout, .layout--3, .layout--filters { grid-template-columns: minmax(0, 1fr); }
.sticky { position: static; }
.hdr__label { display: none; }
}
@media (max-width: 767px) {
    .page { padding-top: 20px; }
.gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hdr__icon--wide { display: none; }
}
/* =====================================================================
 * Fluid frame: the header spans the window on every page; the guest home
 * page is fluid end to end and shows every part of the site.
 * ===================================================================== */
:root { --edge: clamp(16px, 3.2vw, 64px); }
.hdr .wrap, .drawer .wrap { width: 100%; max-width: none; padding-inline: var(--edge); }
.ftr .wrap { width: 100%; max-width: none; padding-inline: var(--edge); }
.home .wrap { width: 100%; max-width: calc(1520px + var(--edge) * 2); padding-inline: var(--edge); }
.home .hero { padding: 0; }
.home .hero .wrap { max-width: none; padding: 0; }
.home .hero__frame { min-height: calc(100svh - 68px); max-height: 1080px; padding: clamp(28px, 4vw, 72px) var(--edge); border-radius: 0; }
.home .hero__copy { max-width: 760px; }
.home .post--float { width: min(100%, 420px); }
/* ---------- the tour: a sticky index of everything the site does ---------- */
.home .section { scroll-margin-top: 130px; }
/* fluid grids on the home page */
.home .routes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1700px) { .home .routes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1023px) { .home .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) { .home .routes { grid-template-columns: minmax(0, 1fr); }
}
.home .feed { grid-template-columns: minmax(0, 1fr) minmax(320px, 380px); }
.home .feed__main { grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); align-items: start; }
/* ---------- map and planner ---------- */
.showcase { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.showcase--flip { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); }
.showcase--flip > :first-child { order: 2; }
.mapview { position: relative; aspect-ratio: 16 / 8; }
.mapview > img { width: 100%; height: 100%; object-fit: cover; }
.mapview__ui { position: absolute; display: flex; flex-wrap: wrap; gap: 8px; }
.mapview__ui--top { top: 14px; left: 14px; right: 14px; }
.mapview__ui--side { top: 14px; right: 14px; flex-direction: column; }
.mapview__ui--bottom { left: 14px; bottom: 14px; }
.mapchip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; background: var(--on-accent); color: var(--ink-fixed); font-size: var(--fs-caption); font-weight: var(--fw-button); box-shadow: 0 2px 8px var(--shade-18); }
.mapchip .icon { width: 16px; height: 16px; }
.mapchip--search { flex: 1; max-width: 320px; color: var(--quiet-fixed); font-weight: 500; }
.mapchip--on { background: var(--ink-fixed); color: var(--on-accent); }
.mapchip--cta { background: var(--cta); color: var(--on-accent); }
.mapbtn { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--on-accent); color: var(--ink-fixed); font-size: var(--fs-caption); font-weight: var(--fw-heading); box-shadow: 0 2px 8px var(--shade-18); }
.formats { display: flex; flex-wrap: wrap; gap: 8px; }
.formats span { padding: 4px 12px; border-radius: 8px; background: var(--bg-soft); color: var(--ink-2); font: var(--fw-button) var(--fs-caption)/var(--lh-caption) var(--font-text); }
/* ---------- AI planner ---------- */
.planner { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow-lg); }
.planner__ask { display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 16px; border: 1px solid var(--line-2); border-radius: 999px; }
.planner__ask > span:not(.btn) { flex: 1; color: var(--ink); font-size: var(--fs-body); }
.planner__modes { display: flex; gap: 8px; }
.planner__day { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 14px; background: var(--bg-soft); }
.planner__day i { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--orange-soft); color: var(--orange-ink); font-style: normal; font-family: var(--font-display); font-weight: var(--fw-heading); }
.planner__day b { display: block; font-size: var(--fs-body); font-weight: var(--fw-button); }
.planner__day span { color: var(--copy); font-size: var(--fs-small); }
.trips { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.trip { display: grid; align-content: space-between; gap: 20px; min-height: 160px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
.trip b { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); line-height: var(--lh-h3); }
.trip span { color: var(--quiet); font-size: var(--fs-caption); }
.trip--photo { position: relative; overflow: hidden; border: 0; color: var(--on-accent); isolation: isolate; }
.trip--photo img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.trip--photo::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--scrim-75), var(--scrim-10) 70%); }
.trip--photo span { color: var(--glass-85); }
/* ---------- journal ---------- */
.mag { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 20px; }
.mag__item { display: grid; align-content: start; gap: 12px; }
.mag__item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r); }
.mag__item b { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-title); letter-spacing: var(--ls-heading); line-height: var(--lh-h4); }
.mag__item span { color: var(--quiet); font-size: var(--fs-caption); }
.mag__item--lead { grid-row: span 2; }
.mag__item--lead b { font-size: var(--fs-h3); line-height: var(--lh-h3); }
.mag__item:hover b { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
/* ---------- regions ---------- */
/* nine places, the first one wide: five columns make two full rows */
.mosaic { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: clamp(190px, 14vw, 280px); gap: 12px; }
.place { position: relative; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; padding: 16px; overflow: hidden; border-radius: var(--r); color: var(--on-accent); isolation: isolate; }
.place img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; transition: transform 600ms var(--ease-out); }
.place::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, var(--scrim-78), var(--scrim-00) 60%); }
.place b { font-family: var(--font-display); font-size: var(--fs-h4); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); line-height: var(--lh-h4); }
.place span { color: var(--glass-88); font-size: var(--fs-caption); }
.place--wide { grid-column: span 2; }
/* ---------- Plus ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.plan { display: grid; align-content: start; gap: 16px; padding: clamp(24px, 2.4vw, 32px); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.plan--plus { border-color: var(--orange); box-shadow: 0 0 0 1px var(--orange), var(--shadow-lg); }
.plan__name { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.plan__name b { font-family: var(--font-display); font-size: var(--fs-h3); font-weight: var(--fw-heading); letter-spacing: var(--ls-heading); }
.plan__price { font-family: var(--font-display); font-size: var(--fs-h2); font-weight: var(--fw-heading); letter-spacing: var(--ls-display); font-variant-numeric: tabular-nums; }
.plan__price small { color: var(--quiet); font: var(--fw-ui) var(--fs-small)/var(--lh-small) var(--font-text); letter-spacing: 0; }
.plan ul { display: grid; gap: 12px; }
.plan li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; font-size: var(--fs-body); }
.plan li .icon { margin-top: 2px; color: var(--ok); }
.plan li small { display: block; color: var(--quiet); font-size: var(--fs-caption); }
@media (max-width: 1023px) {
    .home .feed { grid-template-columns: minmax(0, 1fr); }
.showcase, .showcase--flip { grid-template-columns: minmax(0, 1fr); }
.showcase--flip > :first-child { order: 0; }
.mag { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mag__item--lead { grid-column: span 2; grid-row: auto; }
.plans { grid-template-columns: minmax(0, 1fr); }
.mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 200px; }
}
@media (max-width: 767px) {
    .home .hero__frame { min-height: 0; margin-inline: 0; padding: 80px var(--edge) 20px; border-radius: 0; }
.mapview { aspect-ratio: 4 / 3; }
.mapview__ui--side { display: none; }
.mag { grid-template-columns: minmax(0, 1fr); }
.mag__item--lead { grid-column: auto; }
.mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 170px; gap: 8px; }
.place { padding: 12px; }
.place--wide { grid-column: span 2; }
}
/* short feature lists: a label per line, no sentences */
.keys { display: grid; gap: 16px; margin: 24px 0 32px; }
.keys li { display: flex; align-items: center; gap: 16px; font-size: var(--fs-body-lg); font-weight: var(--fw-ui); }
.keys .icon { width: 22px; height: 22px; color: var(--cta); }
.home .head { margin-bottom: clamp(28px, 3.4vw, 48px); }
.home .routes { gap: clamp(24px, 2.4vw, 36px); }
/* =====================================================================
 * Audit fixes (28.10.2026)
 * ===================================================================== */

/* Touch: every control is at least 44 x 44 on a touch screen. */
.hdr__logo { display: inline-flex; align-items: center; min-height: 44px; }
@media (pointer: coarse) {
    .btn, .btn--sm, .chip, .post__act, .seg button, .seg a, .tabs a, .tabs button, .pager a, .pager span, .more, .check-row, .menu__list a, .menu__list button, .crumbs a, .hdr__me, .find .btn { min-height: 44px; }
.theme-btn, .hdr__icon, .hdr__menu, .icon-btn, .route__fav { min-width: 44px; min-height: 44px; }
.crumbs a, .more { display: inline-flex; align-items: center; }
.input, .select { min-height: 48px; }
}
/* Follow: one component everywhere. */
.btn-follow { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--bg); font: var(--fw-button) var(--fs-button)/var(--lh-button) var(--font-text); white-space: nowrap; }
.btn-follow:hover { background: var(--ink-2); }
.btn-follow[aria-pressed="true"] { border-color: var(--line-2); background: transparent; color: var(--ink-2); }
.btn-follow[aria-pressed="true"]:hover { border-color: var(--ink); color: var(--ink); }
@media (pointer: coarse) { .btn-follow { min-height: 44px; }
}
/* Header on narrow screens: the magnifier opens a full search bar under the header. */
.hdr__find { display: none; }
.icon-btn { display: inline-grid; flex: none; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-soft); color: var(--ink); }
@media (max-width: 1180px) {
    .hdr__side { margin-left: auto; }
.hdr__find { display: inline-grid; }
.hdr.is-search .hdr__search { position: absolute; left: var(--edge); right: var(--edge); top: calc(100% + 8px); display: flex; justify-content: flex-start; max-width: none; min-height: 48px; margin: 0; padding: 0 16px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-lg); }
.hdr.is-search .hdr__search input { width: 100%; font-size: var(--fs-body); }
}
@media (max-width: 1023px) {
    .hdr__menu { margin-left: 0; }
.hdr__side .hdr__login { display: inline-flex; align-items: center; min-height: 44px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
    .hdr__side .menu > summary.btn { display: inline-flex; width: 40px; padding: 0; justify-content: center; }
}
/* Phones: one bottom navigation, with secondary destinations in More. */
.tabbar { display: none; }
.avatar--xs { width: 24px; height: 24px; font-size: var(--fs-caption-tight); }
@media (max-width: 767px) {
    .hdr__side { gap: 2px; }
body:has(#site-tabbar) .hdr__menu, body:has(#site-tabbar) #drawer { display: none; }
.hdr__side > .theme-btn { display: none; }
.hdr__icon--wide { display: inline-grid; }
body.has-tabbar { padding-bottom: calc(68px + env(safe-area-inset-bottom)); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 55; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 95%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
#site-tabbar.tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); }
#site-tabbar.tabbar--guest { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#site-tabbar[hidden] { display: none; }
.tabbar > a, .tabbar summary { display: grid; justify-items: center; align-content: center; gap: 4px; min-width: 0; min-height: 56px; border-radius: 12px; color: var(--copy); font-size: clamp(9px, 2.7vw, 12px); font-weight: var(--fw-ui); line-height: 1.2; text-align: center; }
.tabbar .icon { width: 22px; height: 22px; }
.tabbar > a[aria-current="page"] { color: var(--ink); }
.tabbar > a[aria-current="page"] .icon { color: var(--orange-ink); }
.tabbar__more { position: static; min-width: 0; }
.tabbar__more > summary { list-style: none; cursor: pointer; }
.tabbar__more > summary::-webkit-details-marker { display: none; }
.tabbar__more[open] > summary { color: var(--orange-ink); }
.tabbar__more-panel { position: absolute; right: 8px; bottom: calc(100% + 8px); display: grid; width: min(280px, calc(100vw - 16px)); max-height: calc(100dvh - 90px - env(safe-area-inset-bottom)); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.tabbar__more-panel[hidden], .tabbar__more:not([open]) .tabbar__more-panel { display: none; }
.tabbar__more-panel :is(a, button) { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 10px 12px; border: 0; border-radius: 10px; background: transparent; color: var(--ink); font: var(--fw-ui) var(--fs-small)/1.3 var(--font-text); text-align: left; }
.tabbar__more-panel :is(a, button):hover, .tabbar__more-panel :is(a, button):focus-visible { background: var(--bg-soft); }
.tabbar__more-panel .icon { flex: none; width: 20px; height: 20px; color: var(--quiet); }
.tabbar__create { position: static; }
.tabbar__create summary .icon { box-sizing: content-box; width: 18px; height: 18px; padding: 4px; border-radius: 50%; background: var(--cta); color: var(--on-accent); }
.tabbar__create .menu__list { left: 8px; right: 8px; top: auto; bottom: calc(100% + 8px); min-width: 0; }
.tabbar__create .menu__list a { min-height: 48px; font-size: var(--fs-body); }
}
/* Помощник: a dialog on desktop, a bottom sheet on phones. */
.helper { width: min(520px, calc(100% - 32px)); max-height: calc(100svh - 32px); padding: 24px; border: 0; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.helper::backdrop { background: var(--scrim-45); }
.helper__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.helper__lead { margin-top: 4px; color: var(--copy); }
.helper__asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.helper__asks .chip { white-space: normal; text-align: left; }
.helper__form { display: flex; gap: 8px; margin-top: 16px; }
.helper__form .input { flex: 1; min-width: 0; }
.helper__note { margin-top: 12px; color: var(--copy); font-size: var(--fs-small); }
.helper__safety { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin-top: 16px; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-ui); }
.helper__safety:hover { color: var(--ink); }
@media (max-width: 767px) {
    .helper { width: 100%; max-width: none; margin: auto 0 0; border-radius: 20px 20px 0 0; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.helper__form { flex-direction: column; }
}
/* Help is one tap away. */
.help-link { display: inline-flex; align-items: center; gap: 8px; }
/* =====================================================================
 * Home v2 (audit): eight blocks, search on the first screen, the real
 * track of a member's report as the brand line.
 * ===================================================================== */
.home .hero__frame { grid-template-columns: minmax(0, 600px) minmax(0, 420px); justify-content: start; column-gap: 64px; align-content: start; align-items: center; padding-inline: max(var(--edge), (100% - 1520px) / 2); }
.home .hero__frame > .post--float { justify-self: start; }
.home .hero__frame::before { background: linear-gradient(180deg, var(--scrim-66) 0%, var(--scrim-38) 36%, var(--scrim-00) 58%), linear-gradient(90deg, var(--scrim-42) 0%, var(--scrim-00) 52%); }
.home .post--float { align-self: start; }
.hero__copy { grid-template-columns: minmax(0, 1fr); }
.hero__find { display: flex; align-items: center; gap: 12px; width: min(100%, 560px); min-height: 60px; padding: 8px 8px 8px 20px; border-radius: 999px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow-lg); }
.hero__find > .icon { flex: none; color: var(--quiet); }
.hero__find input { flex: 1; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: var(--fs-body); }
.hero__find input::placeholder { color: var(--quiet); }
.hero__find:focus-within { box-shadow: 0 0 0 3px var(--orange), var(--shadow-lg); }
.hero__near { display: inline-flex; flex: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 999px; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-ui); }
.hero__near:hover { background: var(--bg-soft); color: var(--ink); }
.hero__near .icon { width: 17px; height: 17px; color: var(--orange-ink); }
.post__spec, .route__spec { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--ink-2); font-size: var(--fs-small); font-weight: var(--fw-ui); font-variant-numeric: tabular-nums; }
.post__map { position: relative; display: grid; place-items: center; grid-row: span 2; overflow: hidden; background: var(--map-paper); color: var(--orange); }
.post__media > .post__map + img { grid-row: auto; }
.post__map > span { position: absolute; left: 8px; bottom: 8px; padding: 4px 8px; border-radius: 999px; background: var(--surface); color: var(--ink); font-size: var(--fs-caption); font-weight: var(--fw-ui); box-shadow: var(--shadow); }
.track-line { display: block; width: 84%; height: 84%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.post__map .track-line { width: 88%; height: 80%; stroke-width: 12; }
/* routes and the map in one block: the map is a band under the catalogue */
.route__where { order: -1; color: var(--copy); font-size: var(--fs-caption); }
.route__link > .route__media { order: -2; }
.mapband { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(24px, 4vw, 64px); align-items: center; margin-top: clamp(48px, 6vw, 88px); }
.mapband__copy { display: grid; justify-items: start; gap: 20px; }
.mapband .mapview { overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-lg); }
.showcase__lead { margin: 12px 0 24px; }
.planner__spark { flex: none; color: var(--orange-ink); }
.planner__ask .btn { flex: none; }
/* community: clubs, journal and the profile side by side */
.community { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 3vw, 48px); align-items: start; }
.community__col { display: grid; align-content: start; gap: 16px; }
.community__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; }
.community .clubs { margin: 0; }
.mag-row { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 64px; }
.mag-row img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.mag-row b { display: block; font-family: var(--font-display); font-size: var(--fs-body); font-weight: var(--fw-title); letter-spacing: var(--ls-heading); line-height: var(--lh-h4); }
.mag-row span span { display: block; margin-top: 2px; color: var(--quiet); font-size: var(--fs-caption); }
.mag-row:hover b { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 3px; }
/* the app and the plans in one row */
.appplus { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.appcard { position: relative; display: grid; align-content: start; justify-items: start; gap: 16px; min-height: 420px; padding: clamp(24px, 2.4vw, 32px); padding-right: 46%; overflow: hidden; border-radius: var(--r-lg); background: var(--bg-soft); }
.appcard img { position: absolute; right: 6%; bottom: -26%; width: 38%; max-width: 240px; filter: drop-shadow(0 24px 30px var(--shade-25)); }
/* the last screen: a real photo, the track line and the way in */
.joinband { position: relative; display: grid; min-height: clamp(420px, 46vw, 620px); overflow: hidden; color: var(--on-accent); isolation: isolate; }
.joinband > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 50% 70%; }
.joinband::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--scrim-74) 0%, var(--scrim-50) 42%, var(--scrim-12) 75%); }
.joinband__in { position: relative; display: grid; align-content: center; padding-block: clamp(56px, 7vw, 104px); }
.joinband__copy { display: grid; justify-items: start; gap: 20px; max-width: 560px; }
.joinband__copy .lead { color: var(--glass-90); }
.track-line--band { position: absolute; right: var(--edge); top: 50%; width: min(42%, 560px); height: auto; aspect-ratio: 1024 / 563; color: var(--orange); stroke-width: 7; filter: drop-shadow(0 2px 6px var(--black-45)); transform: translateY(-50%); }
@media (prefers-reduced-motion: no-preference) {
    .js .track-line--band use { stroke-dasharray: 1; animation: trace 2400ms var(--ease-out) 200ms both; }
@keyframes trace { from { stroke-dashoffset: 1; }
to { stroke-dashoffset: 0; }
}
}
/* footer links are touch targets too */
@media (pointer: coarse), (max-width: 767px) { .ftr nav a { display: flex; align-items: center; min-height: 44px; }
}
@media (max-width: 1180px) {
    .community { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.community__col:last-child { grid-column: 1 / -1; max-width: 560px; }
.appplus { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.appcard { grid-column: 1 / -1; min-height: 360px; }
}
@media (max-width: 1023px) {
    .home .hero__frame { grid-template-columns: minmax(0, 1fr); }
.mapband { grid-template-columns: minmax(0, 1fr); }
.track-line--band { opacity: 0.55; }
}
@media (max-width: 767px) {
    .hero__find { min-height: 56px; padding-left: 16px; }
.hero__near span { display: none; }
.community { grid-template-columns: minmax(0, 1fr); }
.appplus { grid-template-columns: minmax(0, 1fr); }
.appcard { min-height: 0; padding-right: clamp(24px, 2.4vw, 32px); }
.appcard img { position: static; width: 200px; margin: 8px auto -28%; justify-self: center; }
.track-line--band { top: 18%; right: -12%; width: 78%; opacity: 0.4; }
.joinband::before { background: linear-gradient(0deg, var(--scrim-80) 0%, var(--scrim-50) 60%, var(--scrim-30) 100%); }
.joinband__in { align-content: end; }
}
/* Disabled: every control says when it cannot be used. */
.btn:disabled, .btn[aria-disabled="true"], .chip:disabled, .btn-follow:disabled, .icon-btn:disabled, .input:disabled, .select:disabled { opacity: 0.5; cursor: not-allowed; pointer-events: none; }
abbr[title] { text-decoration: none; cursor: help; }
/* Fields show their edge: the header search and the hero search carry a 3:1 ring. */
.hdr__search { box-shadow: inset 0 0 0 1px var(--field-edge); }
.hdr__search:focus-within { box-shadow: inset 0 0 0 1px var(--field-edge), 0 0 0 2px var(--focus); }
.hero__find { box-shadow: 0 0 0 1px var(--glass-60), var(--shadow-lg); }
.hero__find input { min-height: 48px; }
.home .post__act, .home .chip, .home .btn { min-height: 44px; }
/* Phones: «Создать» lives in the tab bar, so the header menu stays shut; menus never leave the screen. */
@media (max-width: 767px) {
    .hdr__side > details.menu:not(.menu--me) { display: none; }
.tabbar__create .menu__list a { white-space: nowrap; }
}
@media (max-width: 400px) {
    .menu--me .menu__list { position: fixed; top: 64px; left: 8px; right: 8px; min-width: 0; }
}
/* A closed menu takes no room (some engines keep the box of a closed <details>). */
details.menu:not([open]) > .menu__list { display: none; }
.menu__list a, .menu__list button { white-space: nowrap; }
/* Home catalogue: all eight cards, four across on desktop, two rows. */
.home .routes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .home .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) { .home .routes { grid-template-columns: minmax(0, 1fr); }
}
/* Click burst (likes, favourites, «Полезно»): transform and opacity only, skipped under reduced motion. */
.burst { position: fixed; z-index: 90; width: 0; height: 0; pointer-events: none; }
.burst__bit { position: absolute; left: -7px; top: -7px; display: grid; place-items: center; width: 14px; height: 14px; color: var(--orange); opacity: 0; animation: burst-fly 640ms var(--ease-out) forwards; }
.burst__bit .icon { width: 14px; height: 14px; fill: currentColor; stroke: none; }
.burst__bit--star { color: var(--warn); }
.burst__bit--check { color: var(--ok); }
.burst__bit--check .icon { fill: none; stroke: currentColor; stroke-width: 3; }
.burst__ring { position: absolute; left: -18px; top: -18px; width: 36px; height: 36px; border: 2px solid var(--orange); border-radius: 50%; opacity: 0; animation: burst-ring 520ms var(--ease-out) forwards; }
@keyframes burst-fly { 0% { opacity: 1; transform: translate(0, 0) scale(0.4) rotate(0); }
60% { opacity: 1; }
100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.15) rotate(var(--turn)); }
}
@keyframes burst-ring { 0% { opacity: 0.7; transform: scale(0.3); }
100% { opacity: 0; transform: scale(1.5); }
}
.is-pop { animation: pop 420ms var(--ease-out); }
@keyframes pop { 0% { transform: scale(1); }
35% { transform: scale(1.28); }
70% { transform: scale(0.94); }
100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) { .burst__bit { animation: burst-still 700ms linear forwards; }
.burst__ring { animation: burst-still 700ms linear forwards; }
.is-pop { animation: none; }
}
@keyframes burst-still { 0% { opacity: 1; }
100% { opacity: 0; }
}
.route__fav[aria-pressed="true"] { color: var(--cta); }
.route__fav[aria-pressed="true"] .icon { fill: currentColor; }
@media (max-width: 767px) { .ftr__brand p { font-size: var(--fs-body); }
}
/* Follow as a round + / check button: one component for people lists everywhere. */
.follow-ico { display: grid; flex: none; place-items: center; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 50%; background: transparent; color: var(--ink); }
.follow-ico:hover { border-color: var(--ink); }
.follow-ico[aria-pressed="true"] { border-color: var(--ok); color: var(--ok); }
/* Photo trip tiles carry the day count as a chip so it reads on any photo. */
.trip--photo span { align-self: start; justify-self: start; padding: 4px 12px; border-radius: 999px; background: var(--scrim-50); color: var(--on-accent); }
.trips { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 767px) { .trips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* Home hero: keep the message clear and the featured trip card away from the tent. */
.home .hero__frame { align-content: end; align-items: end; }
.home .hero__copy { max-width: 680px; padding-bottom: clamp(12px, 2vh, 28px); }
.home .hero__copy .display { max-width: 12ch; text-wrap: balance; }
.home .hero__copy .lead { max-width: 34em; }
.home .post--float { width: min(100%, 340px); align-self: end; justify-self: end; margin-bottom: clamp(12px, 2vh, 28px); }
@media (max-width: 1023px) { .home .hero__frame { align-content: end; row-gap: 24px; }
.home .post--float { justify-self: end; }
}
@media (max-width: 767px) { .home .hero__frame { min-height: calc(100svh - 64px); padding-block: 40px 28px; }
.home .hero__copy { gap: 16px; padding-bottom: 0; }
.home .post--float { width: min(100%, 320px); margin: 0; }
}
/* Let the home hero photo run behind the top navigation. */
.home .hdr { position: absolute; inset: 0 0 auto; background: linear-gradient(180deg, var(--scrim-58), var(--scrim-08)); border-bottom-color: var(--glass-16); color: var(--on-accent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .hdr__nav a, .home .hdr__login { color: var(--glass-92); }
.home .hdr__nav a:hover, .home .hdr__nav a[aria-current="page"] { background: var(--glass-14); color: var(--on-accent); }
.home .theme-btn, .home .hdr__menu { border-color: var(--glass-42); background: var(--glass-12); color: var(--on-accent); }
.home .theme-btn:hover, .home .hdr__menu:hover { background: var(--glass-22); }
.home .hero__frame { min-height: 100svh; padding-top: max(104px, calc(68px + 36px)); }
@media (max-width: 767px) { .home .hero__frame { min-height: 100svh; padding-top: 92px; }
}
/* Center the home message and present the featured route as a feed report. */
.home .hero__frame { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: clamp(16px, 2.4svh, 28px); padding: 108px 24px 36px; text-align: center; }
.home .hero__frame::before { background: linear-gradient(180deg, var(--scrim-38), var(--scrim-52)); }
.home .hero__copy { justify-items: center; width: min(100%, 820px); max-width: 820px; gap: 16px; padding: 0; }
.home .hero__copy .display { max-width: none; }
.home .hero__copy .lead { max-width: 38em; }
.home .hero__find { width: min(100%, 620px); }
.home .hero__cta { justify-content: center; }
.home .hdr { position: absolute; inset: 0 0 auto; background: linear-gradient(180deg, var(--scrim-58), var(--scrim-08)); border-bottom-color: var(--glass-16); color: var(--on-accent); backdrop-filter: none; -webkit-backdrop-filter: none; }
.home .hdr__nav a, .home .hdr__login { color: var(--glass-92); }
.home .hdr__nav a:hover, .home .hdr__nav a[aria-current="page"] { background: var(--glass-14); color: var(--on-accent); }
.home .theme-btn, .home .hdr__menu { border-color: var(--glass-42); background: var(--glass-12); color: var(--on-accent); }
@media (max-width: 767px) {
  .home .hero__frame { min-height: 100svh; padding: 92px 16px 28px; gap: 16px; }
.home .hero__copy { gap: 12px; }
.home .hero__copy .display { font-size: clamp(34px, 9vw, 48px); }
}
@media (prefers-reduced-motion: no-preference) {
  .home .hero__frame > img { inset: -4% 0; height: 108%; transform: translate3d(var(--hero-parallax-x, 0px), calc(var(--hero-parallax-y, 0px) + var(--hero-parallax-mouse-y, 0px)), 0) scale(1.04); will-change: transform; }
}
/* Feed report media and route widget, shared with the full post copied into the home hero. */
.cover, .cover .ph, .cover img { border-radius: 0; }
.coverbox { position: relative; margin-top: 16px; }
.coverbox .cover { margin-top: 0; }
.cover > .ph { position: absolute; inset: 0; display: block; }
.cover .chip-on-photo { left: 16px; top: 16px; }
.chip-on-photo { position: absolute; left: 14px; top: 14px; z-index: 1; display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: var(--glass-95); color: var(--ink-fixed); font-size: var(--fs-caption); font-weight: var(--fw-button); pointer-events: none; }
.chip-on-photo .icon { width: 15px; height: 15px; color: var(--cta); }
.trk__casing { fill: none; stroke: var(--surface); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trk__line { fill: none; stroke: var(--cta); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.trk__start { fill: var(--ok); stroke: var(--surface); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.trk__end { fill: var(--ink); stroke: var(--surface); stroke-width: 2.5; vector-effect: non-scaling-stroke; }
.trk__txt { fill: var(--ink-2); font: var(--fw-button) var(--fs-caption-tight) var(--font-text); paint-order: stroke; stroke: var(--surface); stroke-width: 3px; stroke-linejoin: round; }
.rw { display: grid; gap: 12px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.coverbox > .rw { position: absolute; right: 16px; top: 50%; width: min(34%, 340px); transform: translateY(-50%); }
.rw__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: var(--fs-small); }
.rw__head b { font-family: var(--font-display); font-weight: var(--fw-title); }
.rw__head span { display: inline-flex; align-items: center; gap: 4px; color: var(--quiet); font-weight: var(--fw-ui); }
.rw__head .icon { width: 16px; height: 16px; }
.rw__map { display: block; aspect-ratio: 8 / 5; overflow: hidden; border-radius: var(--r-sm); background: var(--map-paper); }
.rw__map svg { width: 100%; height: 100%; }
.rw__grid { fill: none; stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rw__contour { fill: none; stroke: var(--line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.rw__start { fill: var(--ok); stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rw__end { fill: var(--ink); stroke: var(--surface); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rw__prof { display: grid; gap: 4px; }
.rw__elev { width: 100%; height: 40px; }
.rw__ea { fill: var(--orange-a-18); }
.rw__el { fill: none; stroke: var(--cta); stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.rw__ez { display: flex; justify-content: space-between; color: var(--quiet); font-size: var(--fs-caption); font-variant-numeric: tabular-nums; }
.rw__m { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 8px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.rw__m dt { color: var(--quiet); font-size: var(--fs-caption); }
.rw__m dd { margin: 0; font-family: var(--font-display); font-size: var(--fs-small); font-weight: var(--fw-heading); font-variant-numeric: tabular-nums; }
.rw__m small { color: var(--copy); font-family: var(--font-text); font-size: var(--fs-caption); font-weight: var(--fw-ui); }
.rw__map:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
@media (max-width: 767px) { .coverbox > .rw { position: static; width: auto; margin: 16px 16px 0; transform: none; }
}
/* Final hero composition: balanced copy and the unabridged feed post fit together. */
.home .hero__frame { display: grid; grid-template-columns: minmax(320px, 440px) minmax(460px, 560px); justify-content: center; align-content: center; align-items: center; column-gap: clamp(28px, 4vw, 64px); row-gap: 28px; min-height: 100svh; padding: 112px 32px 44px; overflow: hidden; text-align: left; }
.home .hero__copy { justify-items: start; width: 100%; max-width: 440px; padding: 0; gap: 20px; text-align: left; }
.home .hero__copy .display { max-width: 11ch; text-wrap: balance; }
.home .hero__copy .lead { max-width: 32em; }
.home .hero__find { width: 100%; }
.home .hero__cta { justify-content: flex-start; }
@media (max-width: 1023px) {
  .home .hero__frame { grid-template-columns: minmax(0, 1fr); justify-items: center; row-gap: 24px; padding: 112px 24px 40px; }
.home .hero__copy { justify-items: center; max-width: 680px; text-align: center; }
.home .hero__copy .display { max-width: 16ch; }
.home .hero__cta { justify-content: center; }
}
@media (max-width: 767px) {
  .home .hero__frame { min-height: 100svh; padding: 92px 16px 28px; row-gap: 20px; }
.home .hero__copy { gap: 16px; }
}


/* Center the hero content after removing the featured report. */
.home .hero__frame { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; align-content: center; min-height: 100svh; padding: 112px 24px 48px; text-align: center; }
.home .hero__copy { width: min(100%, 680px); max-width: 680px; justify-items: center; text-align: center; }
.home .hero__copy .display { max-width: none; }
.home .hero__find { width: min(100%, 620px); }
.home .hero__cta { justify-content: center; }
@media (max-width: 767px) { .home .hero__frame { padding: 92px 16px 36px; }
}
.home .hero__copy .display { font-family: 'Unbounded Hero', var(--font-display); font-weight: 600; font-size: clamp(34px, 4vw, 60px); line-height: 1.15; letter-spacing: -0.035em; text-wrap: balance; }
/* Match the full-width header alignment used on the other pages. */
.home .hdr .wrap { width: 100%; max-width: none; padding-inline: var(--edge); }
.home .hdr__icon { color: var(--glass-92); }
.home .hdr__icon:hover { background: var(--glass-14); color: var(--on-accent); }
.home .hdr__side { margin-left: auto; }
.home .hdr__nav a { white-space: nowrap; }
@media (min-width: 1024px) and (max-width: 1180px) { .home .hdr__in { gap: 12px; }
.home .hdr__nav a { padding-inline: 8px; }
.home .hdr__side { gap: 4px; }
}
/* Dark page scrollbar. */
html { scrollbar-color: var(--scroll-thumb) var(--scroll-track); scrollbar-width: thin; }
html::-webkit-scrollbar { width: 10px; }
html::-webkit-scrollbar-track { background: var(--scroll-track); }
html::-webkit-scrollbar-thumb { background: var(--scroll-thumb); border: 2px solid var(--scroll-track); border-radius: 999px; }
html::-webkit-scrollbar-thumb:hover { background: var(--scroll-thumb-hover); }
/* Scrollers inside panels, cards and dialogs are light and thin: only the page itself carries the dark bar. */
:where(div, section, aside, dialog, ul, ol, form, textarea) { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
/* A quiet cue to continue past the first screen. */
.home .hero__frame { padding-bottom: 104px; }
.hero__scroll { position: absolute; left: 50%; bottom: clamp(16px, 3vh, 28px); z-index: 1; display: grid; justify-items: center; gap: 2px; min-width: 120px; min-height: 44px; padding: 4px 8px; color: var(--glass-88); font-size: 13px; font-weight: 500; line-height: 1.3; text-align: center; transform: translateX(-50%); }
.hero__scroll:hover { color: var(--on-accent); }
.hero__scroll:focus-visible { outline-color: var(--on-accent); }
@media (prefers-reduced-motion: no-preference) {
  .hero__scroll-arrow { animation: hero-scroll-cue 2s ease-in-out infinite; }
@keyframes hero-scroll-cue { 0%, 100% { transform: translateY(0); }
50% { transform: translateY(5px); }
}
}
@media (max-height: 600px) { .home .hero__frame { padding-bottom: 80px; }
.hero__scroll { bottom: 10px; }
}

.hero__scroll:hover .hero__scroll-arrow, .hero__scroll:focus-visible .hero__scroll-arrow { animation-play-state: paused; }

/* Hover life for photo cards on every page: the picture slowly zooms, the card lifts a little, the shadow deepens. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .place, .route__media, .trip--photo, .club, .pcard, .jcard, .fp { transition: transform 360ms var(--ease-out), box-shadow 360ms var(--ease-out); will-change: transform; }
    .place:hover, .trip--photo:hover, .club:hover, .pcard:hover { transform: translate3d(0, -4px, 0); box-shadow: var(--shadow-lg); }
    .route:hover .route__media { transform: translate3d(0, -4px, 0); box-shadow: var(--shadow-lg); }
    .place:hover img, .route:hover .route__media img, .trip--photo:hover img, .pcard:hover img, .jcard:hover .jcard__media img { transform: scale(1.06); }
    .place img, .trip--photo img, .pcard img, .jcard img { transition: transform 700ms var(--ease-out); }
}
