/* Pedalsim's visual language: the colours, radii, motion and type of the app's
   own generated tokens (Services/Service.Pedalsim/lib/ui/design/tokens.dart, from
   Docs/Specs.Pedalsim/spec/tokens.json), laid out in the house style ported from
   Service.Udonite.Blazor's app.css, so the site and the app read as one product.

   The site is dark only, like the ride screen it shows off. */

:root {
    --bg: #0b0b0f;
    --bg-soft: #14141a;
    --bg-raised: #1b1b23;
    --bg-sunken: #22222c;
    --border: #22222c;
    --border-strong: color-mix(in srgb, var(--text-faint) 35%, var(--bg));
    --text: #ededf2;
    --text-soft: #9a9aa8;
    --text-faint: #6e6e7c;
    --accent: #7456ef;
    --accent-text: #a78bfa;
    --accent-soft: #221c46;
    --on-accent: #ffffff;
    --on-accent-soft: #c4b5fd;
    --code-bg: #14141a;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 8px 24px rgb(0 0 0 / .35);
    --shadow-lg: 0 2px 6px rgb(0 0 0 / .4), 0 28px 72px -16px rgb(116 86 239 / .32);
    --glow: color-mix(in srgb, var(--accent) 24%, transparent);
    --radius-sm: 8px;
    --radius-md: 10px;
    --radius: 12px;
    --radius-xl: 16px;
    --header-height: 64px;
    --shell: 1120px;
    --sidebar-width: 232px;
    --ease: cubic-bezier(.2, .7, .3, 1);
    --font-text: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
    --font-metric: "Barlow Condensed", "Arial Narrow", var(--font-text);
    --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E");
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[tabindex="-1"]:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

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

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-text);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent-soft); color: var(--on-accent-soft); }

code, pre {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .88em;
}
code { background: var(--code-bg); padding: .15em .4em; border-radius: 4px; }

h1, h2, h3 { color: var(--text); text-wrap: balance; }
h1 {
    margin: 0 0 16px;
    font-size: clamp(2.1rem, 4.6vw, 3rem);
    line-height: 1.08;
    letter-spacing: -.032em;
    font-weight: 700;
}
h2 { margin: 0 0 12px; font-size: clamp(1.5rem, 2.8vw, 2rem); line-height: 1.18; letter-spacing: -.024em; font-weight: 700; }
h3 { margin: 0 0 8px; font-size: 1.08rem; line-height: 1.35; letter-spacing: -.012em; font-weight: 650; }
p { text-wrap: pretty; }

.skip { position: absolute; left: -9999px; top: 8px; padding: 10px 16px; background: var(--accent); color: var(--on-accent); border-radius: var(--radius-sm); z-index: 100; }
.skip:focus { left: 12px; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    flex: none;
    height: var(--header-height);
    background: color-mix(in srgb, var(--bg) 80%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    max-width: var(--shell);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { display: block; height: 32px; width: auto; aspect-ratio: 90 / 57; flex: none; color: var(--accent); }
.brand-name { font-weight: 700; font-size: 1.08rem; letter-spacing: -.022em; }

.header-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.header-nav a {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: .93rem;
    font-weight: 550;
    transition: background .12s var(--ease), color .12s var(--ease);
}
.header-nav a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.header-nav a.active { color: var(--accent-text); font-weight: 600; }

.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }


.menu { display: none; }
.menu > summary {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    color: var(--text);
    list-style: none;
    cursor: pointer;
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover { background: var(--bg-soft); }
.menu > summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.menu .icon-close, .menu[open] .icon-open { display: none; }
.menu[open] .icon-close { display: block; }

.menu-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 12px 16px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 28px 48px -28px rgb(0 0 0 / .4);
}
.menu-panel nav { display: grid; gap: 2px; }
.menu-panel nav a { padding: 12px; border-radius: var(--radius-sm); color: var(--text); font-weight: 550; }
.menu-panel nav a:hover { background: var(--bg-soft); text-decoration: none; }
.menu-panel nav a.active { color: var(--accent-text); background: var(--accent-soft); }

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    font: inherit;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .12s var(--ease), background-color .12s var(--ease), box-shadow .12s var(--ease);
}
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button:active { transform: none; }
.button svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.button.primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgb(0 0 0 / .12), inset 0 1px 0 rgb(255 255 255 / .14); }
.button.primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--on-accent)); }
.button.secondary { background: var(--bg-sunken); color: var(--text); }
.button.secondary:hover { background: color-mix(in srgb, var(--bg-sunken) 82%, var(--text-faint)); }
.button.large { min-height: 50px; padding: 0 24px; font-size: 1rem; }
.button.small { min-height: 36px; padding: 0 14px; border-radius: var(--radius-sm); font-size: .875rem; }

.arrow { display: inline-block; transition: transform .2s var(--ease); }
a:hover > .arrow { transform: translateX(3px); }
.more { font-weight: 600; }
.more:hover { text-decoration: none; }

main { flex: 1 0 auto; }

.container { max-width: var(--shell); margin: 0 auto; padding: 0 24px; }
.shell { max-width: var(--shell); margin: 0 auto; padding: 72px 24px 104px; }

.lede { max-width: 680px; }
.lede p { margin: 0; color: var(--text-soft); font-size: 1.125rem; line-height: 1.6; }

.eyebrow { margin: 0 0 16px; color: var(--accent-text); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero { position: relative; isolation: isolate; overflow: hidden; overflow: clip visible; padding-top: 96px; }
.hero::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -320px;
    left: 50%;
    width: 1600px;
    height: 1000px;
    transform: translateX(-50%);
    background: radial-gradient(closest-side, var(--glow), transparent);
    pointer-events: none;
}
.hero-copy { max-width: 760px; }
.hero h1 { margin-bottom: 20px; font-size: clamp(2.5rem, 6vw, 4rem); line-height: 1.02; letter-spacing: -.038em; }
.hero-lede { max-width: 600px; margin: 0; color: var(--text-soft); font-size: clamp(1.07rem, 1.6vw, 1.22rem); line-height: 1.6; }
.hero .actions { margin-top: 36px; }
.hero-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin: 24px 0 0; color: var(--text-soft); font-size: .92rem; }

.hero-shot { margin: 72px 0 0; }
.shot-frame {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: color-mix(in srgb, var(--bg-raised) 72%, transparent);
    box-shadow: var(--shadow-lg);
}
.shot-frame img { width: 100%; border-radius: 14px; }

.section { padding-top: 112px; }
.section:last-child { padding-bottom: 112px; }
.section-head { max-width: 640px; margin-bottom: 36px; }
.section-head h2 { margin: 0; }
.section-foot { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 28px 0 0; }

.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.feature { padding: 28px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.feature p { margin: 0; color: var(--text-soft); font-size: .97rem; }

.icon-tile {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    flex: none;
    border-radius: var(--radius-md);
    background: var(--accent-soft);
    color: var(--accent-text);
}
.feature .icon-tile { margin-bottom: 20px; }
.icon-tile svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; padding: 28px; background: var(--bg-soft); border-radius: var(--radius-xl); }
.steps li::before {
    content: counter(step, decimal-leading-zero);
    display: block;
    margin-bottom: 18px;
    color: var(--accent-text);
    font-family: var(--font-metric);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: .9;
    font-variant-numeric: tabular-nums;
}
.steps p { margin: 0; color: var(--text-soft); font-size: .97rem; }

.cta-band {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 56px;
    border-radius: 24px;
    background: var(--accent);
    color: var(--on-accent);
}
.cta-band::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: -60%;
    right: -12%;
    width: 640px;
    height: 640px;
    background: radial-gradient(closest-side, rgb(255 255 255 / .2), transparent);
}
.cta-band h2 { margin-bottom: 10px; color: var(--on-accent); }
.cta-band p { max-width: 520px; margin: 0; font-size: 1.08rem; }
.cta-band .actions { margin-top: 28px; }
.cta-band .button.primary { background: var(--on-accent); color: var(--accent); box-shadow: 0 1px 2px rgb(0 0 0 / .15); }
.cta-band .button.primary:hover { background: color-mix(in srgb, var(--on-accent) 90%, var(--accent)); }
.cta-band .button.secondary { background: rgb(255 255 255 / .14); color: var(--on-accent); }
.cta-band .button.secondary:hover { background: rgb(255 255 255 / .22); }

.spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 48px;
    align-items: center;
    padding: 48px;
    border: 1px solid var(--border);
    border-radius: 24px;
    background: radial-gradient(circle at 0% 0%, var(--glow), transparent 60%), var(--bg-soft);
}
.spotlight-copy p:not(.eyebrow) { margin: 0 0 20px; color: var(--text-soft); font-size: 1.05rem; }
.spotlight-points { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.spotlight-points li { padding: 20px 22px; border-left: 3px solid var(--accent); border-radius: var(--radius); background: var(--bg-raised); }
.spotlight-points h3 { margin-bottom: 4px; font-size: 1rem; }
.spotlight-points p { margin: 0; color: var(--text-soft); font-size: .95rem; }

.metric { font-family: var(--font-metric); font-weight: 700; font-variant-numeric: tabular-nums; }

.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 28px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow-lg); }
.plan h2 { margin: 0 0 20px; color: var(--text-soft); font-size: .95rem; font-weight: 600; letter-spacing: 0; }
.plan .badge {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--on-accent);
    font-size: .75rem;
    font-weight: 700;
}
.price { display: flex; align-items: baseline; gap: 8px; }
.price .metric { font-size: 3.5rem; line-height: .9; letter-spacing: -.01em; }
.price .unit { color: var(--text-soft); font-size: .95rem; font-weight: 600; }
.plan .period { margin-top: 10px; color: var(--text-soft); font-size: .9rem; }
.plan .save {
    align-self: flex-start;
    margin-top: 14px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--on-accent-soft);
    font-size: .78rem;
    font-weight: 700;
}
.plan ul { display: grid; gap: 12px; margin: 24px 0 28px; padding: 24px 0 0; border-top: 1px solid var(--border); list-style: none; color: var(--text-soft); font-size: .95rem; line-height: 1.45; }
.plan li { display: flex; gap: 10px; }
.plan li::before {
    content: "";
    flex: none;
    width: 18px;
    height: 18px;
    background: var(--accent-text);
    -webkit-mask: var(--check) center / contain no-repeat;
    mask: var(--check) center / contain no-repeat;
}

.plan .button { margin-top: auto; }
.plans-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    margin-top: 16px;
    padding: 20px 20px 20px 28px;
    background: var(--bg-soft);
    border-radius: var(--radius-xl);
}
.plans-cta p { margin: 0; color: var(--text-soft); }
.founding { margin: 16px 0 0; color: var(--accent-text); }

.expect { margin-top: 96px; }
.notes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.note-card { padding: 24px; border: 1px solid var(--border); border-radius: var(--radius-xl); }
.note-card h3 { font-size: 1rem; }
.note-card p { margin: 0; color: var(--text-soft); font-size: .95rem; }

.downloads { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; margin-top: 48px; }
.download {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
}
.download-head { display: flex; align-items: center; gap: 14px; }
.download h2 { margin: 0; font-size: 1.1rem; letter-spacing: -.012em; }
.download .meta { display: block; color: var(--text-soft); font-size: .85rem; font-variant-numeric: tabular-nums; }
.download .note { margin: 0; color: var(--text-soft); font-size: .92rem; line-height: 1.55; }
.download .button { margin-top: auto; }

.panel { margin-top: 48px; padding: 24px 28px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-xl); }
.panel p { margin: 0; color: var(--text-soft); }

.doc-layout { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); gap: 64px; max-width: var(--shell); margin: 0 auto; padding: 56px 24px 104px; }

.doc-sidebar { position: sticky; top: calc(var(--header-height) + 32px); align-self: start; }
.doc-sidebar h2 { margin: 0 0 10px; padding: 0 12px; color: var(--text-faint); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.doc-sidebar ul { display: grid; gap: 1px; margin: 0 0 28px; padding: 0; list-style: none; }
.doc-sidebar a {
    display: block;
    padding: 7px 12px;
    border-radius: var(--radius-sm);
    color: var(--text-soft);
    font-size: .92rem;
    line-height: 1.4;
    transition: background .12s var(--ease), color .12s var(--ease);
}
.doc-sidebar a:hover { background: var(--bg-soft); color: var(--text); text-decoration: none; }
.doc-sidebar a.active { background: var(--accent-soft); color: var(--on-accent-soft); font-weight: 600; }

.doc-main { min-width: 0; max-width: 720px; }
.doc-body h1 { margin-bottom: 24px; font-size: clamp(2rem, 3.6vw, 2.5rem); }
.doc-body h2 { margin: 40px 0 10px; font-size: 1.2rem; letter-spacing: -.014em; }
.doc-body p { margin: 0 0 18px; color: var(--text-soft); font-size: 1.02rem; line-height: 1.75; }

.pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--border); }
.pager a {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-weight: 600;
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.pager a:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.pager .dir { display: block; margin-bottom: 2px; color: var(--text-soft); font-size: .8rem; font-weight: 500; }
.pager .next { grid-column: 2; text-align: right; }

.site-footer { flex: none; border-top: 1px solid var(--border); background: var(--bg-soft); }
.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 40px 64px;
    max-width: var(--shell);
    margin: 0 auto;
    padding: 56px 24px 40px;
}
.footer-brand p { max-width: 320px; margin: 14px 0 0; color: var(--text-soft); font-size: .93rem; }
.footer-links { display: flex; gap: 72px; }
.footer-links h2 { margin: 0 0 14px; font-size: .82rem; letter-spacing: 0; }
.footer-links ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.footer-links a { color: var(--text-soft); font-size: .93rem; }
.footer-links a:hover { color: var(--text); }
.footer-base { max-width: var(--shell); margin: 0 auto; padding: 0 24px 32px; }
.footer-base p { margin: 0; padding-top: 20px; border-top: 1px solid var(--border); color: var(--text-faint); font-size: .85rem; }

.prose { max-width: 720px; margin: 48px 0 64px; }
.prose h2 { margin: 40px 0 10px; font-size: 1.2rem; letter-spacing: -.014em; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: var(--text-soft); font-size: 1.02rem; line-height: 1.75; }
.prose p { margin: 0 0 18px; }
.prose ol, .prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose strong { color: var(--text); }
.prose code { padding: 2px 6px; border-radius: 6px; background: var(--code-bg); font-size: .92em; }
.prose .fine { color: var(--text-faint); font-size: .88rem; }

.table-wrap { margin-top: 40px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-xl); }
.compare { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.compare tbody tr:last-child > * { border-bottom: 0; }
.compare thead th { color: var(--text); font-weight: 700; }
.compare thead th:nth-child(2) { color: var(--accent-text); }
.compare tbody th { color: var(--text); font-weight: 600; }
.compare td { color: var(--text-soft); }

.crumbs { margin-bottom: 20px; color: var(--text-faint); font-size: .9rem; }
.climb-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 48px; }
.climb-card {
    display: block;
    padding: 24px 28px;
    background: var(--bg-raised);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    color: var(--text);
    transition: border-color .2s var(--ease), transform .2s var(--ease);
}
.climb-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.climb-card h2, .climb-card h3 { margin: 4px 0 6px; font-size: 1.3rem; }
.climb-card p { margin: 10px 0 0; color: var(--text-soft); font-size: .95rem; line-height: 1.6; }
.climb-country { color: var(--accent-text); font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.climb-stats { color: var(--text); font-family: var(--font-metric); font-size: 1.15rem; font-weight: 600; }
.climb-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 40px 0 0; }
.climb-facts div { padding: 18px 20px; background: var(--bg-raised); border: 1px solid var(--border); border-radius: var(--radius); }
.climb-facts dt { color: var(--text-soft); font-size: .82rem; }
.climb-facts dd { margin: 4px 0 0; font-family: var(--font-metric); font-size: 1.9rem; font-weight: 700; font-variant-numeric: tabular-nums; }

@media (max-width: 960px) {
    .plans, .notes { grid-template-columns: minmax(0, 1fr); }
    .plans { max-width: 520px; }
}

@media (max-width: 860px) {
    :root { --header-height: 60px; }
    .header-inner { gap: 12px; padding: 0 16px; }
    .header-nav { display: none; }
    .menu { display: block; }
    .container { padding: 0 20px; }
    .shell { padding: 48px 20px 80px; }
    .hero { padding-top: 56px; }
    .hero-shot { margin-top: 48px; }
    .shot-frame { padding: 5px; border-radius: 16px; }
    .shot-frame img { border-radius: 11px; }
    .section { padding-top: 80px; }
    .section:last-child { padding-bottom: 80px; }
    .steps { grid-template-columns: minmax(0, 1fr); }
    .spotlight { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 32px 24px; border-radius: 20px; }
    .cta-band { padding: 40px 28px; border-radius: 20px; }
    .doc-layout { grid-template-columns: minmax(0, 1fr); gap: 28px; padding: 24px 20px 80px; }
    .doc-sidebar { position: static; }
    .doc-sidebar h2, .doc-elsewhere { display: none; }
    .doc-sidebar ul { display: flex; gap: 6px; margin: 0 -20px; padding: 0 20px 4px; overflow-x: auto; scrollbar-width: none; }
    .doc-sidebar ul::-webkit-scrollbar { display: none; }
    .doc-sidebar li { flex: none; }
    .doc-sidebar a { padding: 7px 14px; border: 1px solid var(--border); border-radius: 999px; white-space: nowrap; }
    .doc-sidebar a.active { border-color: transparent; }
    .footer-inner { padding: 44px 20px 32px; }
    .footer-base { padding: 0 20px 28px; }
}

@media (max-width: 640px) {
    .features { grid-template-columns: minmax(0, 1fr); }
    .feature, .steps li { padding: 24px; }
    .hero .actions .button { flex: 1 1 auto; }
    .pager { grid-template-columns: minmax(0, 1fr); }
    .pager .next { grid-column: auto; }
    .footer-links { flex-wrap: wrap; gap: 32px 48px; }
    .climb-list { grid-template-columns: minmax(0, 1fr); }
    .climb-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* Blazor's own error strip, kept out of the token system deliberately so it
   is still legible if the stylesheet itself is what broke. */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 20px;
    background: #ffeaa7;
    color: #2d2d2d;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, .2);
}
#blazor-error-ui .dismiss { cursor: pointer; float: right; }
