/* Shared eRideRepair brand. Load after site.css; shop-owned --shop-* themes remain local. */
.rider-home{background:var(--mat)}
.rider-home-grid{display:grid;grid-template-columns:1fr 1fr;gap:clamp(28px,6vw,80px);align-items:center}
.rider-home h2,.rider-intro h1{font-size:clamp(36px,5vw,72px);line-height:1.02;letter-spacing:-.045em;margin:12px 0 24px}
.rider-intro{background:var(--pcb);color:var(--on-pcb);padding:clamp(48px,8vw,104px) 0}
.rider-intro h1{color:var(--on-pcb)}
.rider-intro .lede,.rider-intro p{color:var(--on-pcb-muted)}
.rider-intro .eyebrow{color:var(--gold)}
.rider-steps{margin-bottom:64px}
.rider-questions{max-width:800px;margin:auto}
.rider-questions details{border-bottom:1px solid var(--line-strong);padding:20px 0}
.rider-questions summary{font-weight:700;cursor:pointer;line-height:1.5}
.rider-questions details p{line-height:1.7;color:var(--ink-2);max-width:65ch}
@media(max-width:760px){.rider-home-grid{grid-template-columns:1fr;gap:16px}.rider-home .button-row{align-items:center}.rider-intro .button-row .btn{flex:1;text-align:center}}
:root {
  --pcb: #171b20;
  --pcb-2: #222830;
  --pcb-3: #323b46;
  --pcb-deep: #0b0d10;
  --trace: #363e48;
  --on-pcb: #f5f5f2;
  --on-pcb-muted: #b5bcc5;
  --gold: #ff6b35;
  --gold-hover: #ff8254;
  --gold-ink: #a82f08;
  --silk: #f5f5f2;
  --card: #ffffff;
  --mat: #eceeea;
  --mat-2: #e2e6e1;
  --line: #d9ddd8;
  --line-strong: #b8c0ba;
  --ink: #15191e;
  --ink-2: #384149;
  --muted: #59636b;
  --link: #a82f08;
  --link-hover: #7e2306;
  --focus: #b3360d;
  --map-water: #0b0d10;
  --map-land: #222a31;
  --map-line: #3f4a53;
  --map-border: #78848c;
  --sans: 'Inter Variable', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: var(--sans);
  --display: 'Archivo', system-ui, sans-serif;
  --r-sm: 4px;
  --r: 8px;
  --r-lg: 12px;
  --shadow: 0 1px 2px rgb(11 13 16 / .04), 0 8px 24px -20px rgb(11 13 16 / .22);
  --shadow-lift: 0 2px 4px rgb(11 13 16 / .05), 0 14px 28px -20px rgb(11 13 16 / .3);
  --header-h: 72px;
}

html { scroll-padding-top: calc(var(--header-h) + 20px); }
body { font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
body:not(.page-shop) :is(h1, h2, h3, h4) { font-family: var(--display); font-stretch: 100%; letter-spacing: -.025em; }
body:not(.page-shop) :is(h1, h2) { line-height: 1.03; }
body:not(.page-shop) :is(h3, h4) { line-height: 1.2; }
.lede { font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.65; }
.section-head { max-width: 46rem; }
.eyebrow { font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .05em; }
.mono, .distance, .pin-no, .hero-stats strong, .network-facts strong { font-variant-numeric: tabular-nums; }
body:not(.page-shop) :is(.btn, .chip, .badge, .clause-tag, .seg-choice label, .dash-nav a) { border-radius: var(--r-sm); }
body:not(.page-shop) .btn { border-width: 1px; font-weight: 650; letter-spacing: -.015em; }
body:not(.page-shop) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), select, textarea) { border-radius: var(--r-sm); border-width: 1px; }
body:not(.page-shop) ::placeholder { color: #69737b; opacity: 1; }
.plate, .cover-type, .owner-grid, .page-head-dark, .guide-icon { background-image: none; }
body:not(.page-shop) .plate { border-radius: var(--r); }
body:not(.page-shop) .plate span { font-family: var(--display); font-stretch: 100%; }
.illus figcaption { border-radius: var(--r-sm); background: rgb(11 13 16 / .88); backdrop-filter: none; }
body:not(.page-shop) .prose :is(h2, h3) { scroll-margin-top: calc(var(--header-h) + 20px); }

/* A single constant navigation bar; the map never disappears into the menu. */
.masthead { position: sticky; top: 0; z-index: 100; background: var(--pcb-deep); border-bottom: 1px solid var(--trace); }
.masthead-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: var(--header-h); gap: 22px; padding-block: 0; }
.wordmark { gap: 9px; color: var(--on-pcb); font: italic 800 1.4rem/1 var(--display); font-stretch: 100%; letter-spacing: -.055em; white-space: nowrap; }
.wordmark-mark { width: 36px; height: 36px; border-radius: 0; overflow: visible; }
.wordmark span { padding-right: 3px; }
.wordmark-small { font-size: 1.12rem; }
.wordmark-small .wordmark-mark { width: 28px; height: 28px; border-radius: 0; }
.primary-nav { justify-content: end; gap: 2px; flex-wrap: nowrap; }
.primary-nav a { padding: 10px 11px; min-height: 44px; border-radius: 4px; font-size: .8125rem; font-weight: 550; letter-spacing: -.015em; }
.primary-nav a:hover { background: var(--pcb); }
.primary-nav a[aria-current="page"] { background: transparent; color: var(--on-pcb); box-shadow: inset 0 -2px 0 var(--gold); }
.primary-nav .nav-signin { margin-left: 2px; padding-inline: 12px; color: var(--on-pcb); background: transparent; border: 1px solid var(--trace); }
.primary-nav .nav-signin:hover { color: var(--on-pcb); background: var(--pcb-2); border-color: #66727d; }
.primary-nav .nav-account { max-width: 150px; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 24px; }
.masthead-actions { display: flex; align-items: center; gap: 8px; }
.brand-map-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 9px 14px; background: var(--gold); color: var(--pcb-deep); border: 1px solid var(--gold); border-radius: 4px; font-size: .8125rem; font-weight: 750; line-height: 1.2; text-decoration: none; white-space: nowrap; }
.brand-map-link:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--pcb-deep); text-decoration: none; }
.brand-map-link svg { width: 17px; height: 17px; }
.masthead .nav-toggle { min-height: 44px; min-width: 48px; padding: 7px 9px; border: 1px solid var(--trace); border-radius: 4px; background: transparent; color: var(--on-pcb); font: 550 .8125rem/1.2 var(--sans); cursor: pointer; }
.masthead .nav-toggle:hover, .masthead .nav-toggle[aria-expanded="true"] { background: var(--pcb-2); border-color: #66727d; }
.masthead :focus-visible, .site-footer :focus-visible { outline: 2px solid var(--on-pcb); outline-offset: 4px; }
.masthead .brand-map-link:focus-visible { outline-color: var(--gold); }
.network-bar { background: var(--pcb-deep); border-bottom: 1px solid var(--trace); }
.preview-notice { background: var(--pcb); }

/* Keep public cards and working screens clean without replacing shop themes. */
body:not(.page-shop) :is(.panel, .aside-card, .toc, .clause, .check-card, .shop-card, .article-card, .dash-card) { box-shadow: none; border-radius: var(--r); }
body:not(.page-shop) :is(.owner-grid, .page-head-dark) { background-color: var(--pcb); }
body:not(.page-shop) .trust-grid > li { background: transparent; border: 0; border-top: 1px solid var(--line-strong); border-radius: 0; padding: 22px 0 0; box-shadow: none; }
body:not(.page-shop) .sponsored-block { border: 0; border-left: 3px solid var(--gold); border-radius: 0; padding: 0 0 0 12px; background: transparent; }
body:not(.page-shop) .sponsored-label { color: var(--gold-ink); font: 500 .7rem/1.4 var(--mono); letter-spacing: .04em; }
body:not(.page-shop) .sponsored-note { line-height: 1.55; }
.page-head-dark :is(.eyebrow, .muted), .directory-head > .wrap > .small.muted { color: var(--on-pcb-muted); }
.page-head-dark .eyebrow { color: var(--gold); }
.directory-head > .wrap > .small.muted a { color: inherit; }
.dash-nav a[aria-current="page"] { background: var(--pcb); box-shadow: inset 3px 0 0 var(--gold); }
.dash-head { padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.dash-head h1 { font-weight: 750; }
.dash-shop-name { font-family: var(--display); font-stretch: 100%; letter-spacing: -.025em; }
.dash-side { background: #eef0ec; }
body:not(.page-shop) .table th { font: 500 .72rem/1.4 var(--mono); letter-spacing: .015em; }
body:not(.page-shop) .table td { font-variant-numeric: tabular-nums; }
.article-aside { top: calc(var(--header-h) + 20px); }

/* Close with the same identity, useful links and plain image provenance. */
.site-footer { padding: clamp(48px, 6vw, 80px) 0 24px; background: var(--pcb-deep); border-top: 1px solid var(--trace); }
.footer-grid { grid-template-columns: minmax(280px, 1.8fr) repeat(3, minmax(120px, 1fr)); gap: clamp(24px, 4vw, 64px); }
.site-footer .wordmark-footer { display: inline-flex; padding: 0; margin-bottom: 28px; font-size: 1.75rem; color: var(--on-pcb); text-decoration: none; }
.wordmark-footer .wordmark-mark { width: 42px; height: 42px; }
.footer-statement { font: 700 clamp(1.6rem, 2.6vw, 2.3rem)/1.08 var(--display); letter-spacing: -.04em; color: var(--on-pcb); margin-bottom: 18px; }
.footer-note { max-width: 32ch; font-size: .875rem; line-height: 1.7; }
.site-footer .footer-head { margin: 8px 0 18px; font: 500 .7rem/1.4 var(--mono); letter-spacing: .09em; text-transform: uppercase; color: #949faa; }
.site-footer nav a { color: #d8dde2; padding: 6px 0; font-size: .875rem; font-weight: 450; line-height: 1.45; }
.site-footer nav a:hover { color: var(--gold); }
.footer-base { align-items: start; gap: 20px 40px; margin-top: 48px; padding-top: 20px; font-size: .75rem; line-height: 1.6; color: #a6b0ba; }
.footer-base p { margin: 0; }
.footer-operator { display: block; }
.footer-credits { max-width: 65ch; text-wrap: pretty; }

@media (max-width: 1080px) {
  :root { --header-h: 64px; }
  .masthead-inner { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; row-gap: 0; }
  .masthead .wordmark { grid-column: 1; grid-row: 1; min-height: var(--header-h); justify-self: start; font-size: 1.25rem; }
  .masthead-actions { grid-column: 2; grid-row: 1; }
  .masthead .wordmark-mark { width: 32px; height: 32px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 0 14px; }
  .js .primary-nav { display: none; }
  .js .primary-nav.is-open { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-height: calc(100dvh - var(--header-h) - 12px); overflow-y: auto; overscroll-behavior: contain; padding: 8px 0 16px; border-top: 1px solid var(--trace); }
  .js .masthead .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .primary-nav a { padding: 12px; min-height: 48px; border-radius: 0; font-size: .875rem; }
  .primary-nav a + a { border-top: 1px solid var(--trace); }
  .primary-nav .nav-signin { margin-left: 0; justify-content: start; border-color: transparent; }
  .primary-nav .nav-account { max-width: 100%; }
  .footer-grid { grid-template-columns: minmax(230px, 1.6fr) repeat(3, minmax(100px, 1fr)); gap: 24px; }
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 24px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-note { max-width: 56ch; }
}

@media (max-width: 720px) {
  .masthead-inner { padding-block: 0; }
  .masthead .wordmark { font-size: 1.18rem; gap: 7px; }
  .masthead .wordmark-mark { width: 30px; height: 30px; }
  .brand-map-link { min-height: 44px; padding: 9px 11px; gap: 6px; }
  .primary-nav .nav-signin { justify-content: start; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 20px; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-grid > nav:last-child { grid-column: 1 / -1; }
  .footer-base { flex-direction: column; gap: 14px; margin-top: 36px; }
  .footer-credits { max-width: 54ch; }
}

@media (max-width: 380px) {
  .masthead-inner { column-gap: 8px; }
  .masthead .wordmark { font-size: 1.06rem; gap: 5px; }
  .masthead .wordmark-mark { width: 27px; height: 27px; }
  .brand-map-link { padding-inline: 9px; font-size: .75rem; }
  .brand-map-link svg { display: none; }
  .masthead .nav-toggle { min-width: 44px; padding-inline: 7px; font-size: .75rem; }
}

@media print {
  .masthead, .site-footer { display: none; }
}
