/* ==========================================================================
   eRideRepair — "the bench network"
   Visual language taken from the repair bench itself: solder-mask green boards,
   gold contact pads, white silkscreen type, anti-static mat greys. One family
   (Archivo, variable width) carries every voice: expanded for headlines,
   standard for reading. Imagery is always labelled for what it is.
   ========================================================================== */

@font-face { font-family: 'Archivo'; src: url('/vendor/fonts/archivo.woff2') format('woff2-variations'), url('/vendor/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Archivo'; src: url('/vendor/fonts/archivo-ext.woff2') format('woff2-variations'), url('/vendor/fonts/archivo-ext.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Shop pages can choose these pairings in the editor. */
@font-face { font-family: 'Fraunces Variable'; src: url('/vendor/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fraunces Variable'; src: url('/vendor/fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter Variable'; src: url('/vendor/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'Space Grotesk Variable'; src: url('/vendor/fonts/space-grotesk.woff2') format('woff2'); font-weight: 300 700; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/vendor/fonts/plex-mono-400.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'IBM Plex Mono'; src: url('/vendor/fonts/plex-mono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }

:root {
  /* Board */
  --pcb: #0f3d2e;          /* solder mask: dark surfaces */
  --pcb-2: #145040;        /* raised areas on the board */
  --pcb-3: #1b6150;
  --pcb-deep: #0b2c21;
  --trace: #2f6c56;        /* lines on dark */
  --on-pcb: #f3f8f4;       /* silkscreen */
  --on-pcb-muted: #b9d3c5;
  --gold: #f0b429;         /* contact pads: actions on dark surfaces, map pins */
  --gold-hover: #ffc845;
  --gold-ink: #8a6100;     /* gold as text on light surfaces */
  /* Bench */
  --silk: #f6f7f3;         /* page */
  --card: #ffffff;
  --mat: #eaefeb;          /* quiet fills */
  --mat-2: #dfe6e1;
  --line: #d8e0db;
  --line-strong: #b5c3ba;
  --ink: #13201a;
  --ink-2: #2f3d36;
  --muted: #56655d;
  --link: #0d6b4b;
  --link-hover: #094a34;
  /* Signals */
  --ok: #157347; --ok-tint: #e3f3ea;
  --amber-ink: #7a4b00; --amber-tint: #fff3d6; --amber-line: #efd593;
  --red: #b42318; --red-tint: #fdecea;
  --focus: #1d4ed8;
  /* Map */
  --map-water: #0b2c21; --map-land: #164a3a; --map-line: #2f6c56; --map-border: #5c9a80;

  /* Legacy token names still used by a few dashboard templates. */
  --paper: var(--silk); --paper-2: var(--mat); --rust: var(--pcb); --rust-deep: var(--pcb-deep); --rust-tint: var(--mat);
  --green: var(--ok); --green-tint: var(--ok-tint); --night: var(--pcb); --night-2: var(--pcb-2); --on-night: var(--on-pcb); --on-night-muted: var(--on-pcb-muted);

  --sans: 'Archivo', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --text: var(--sans);
  --display: var(--sans);
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --shadow: 0 1px 2px rgba(19, 32, 26, .06), 0 10px 28px -16px rgba(19, 32, 26, .28);
  --shadow-lift: 0 2px 4px rgba(19, 32, 26, .08), 0 18px 40px -18px rgba(19, 32, 26, .35);
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--silk); color: var(--ink); font: 400 1.0625rem/1.6 var(--sans); font-stretch: 100%; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img { max-width: 100%; height: auto; display: block; }
svg { flex: none; }
a { color: var(--link); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--link-hover); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
main:focus { outline: none; }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 750; font-stretch: 112%; line-height: 1.08; letter-spacing: -0.012em; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.1rem, 4.4vw, 3.3rem); font-weight: 800; font-stretch: 125%; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.15rem); }
h3, .h3 { font-size: 1.22rem; font-stretch: 105%; font-weight: 700; letter-spacing: -0.005em; }
.h4, h4 { font-size: 1.05rem; font-stretch: 100%; font-weight: 700; letter-spacing: 0; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .86em; letter-spacing: .01em; }
.break { word-break: break-all; }
.visually-hidden { position: absolute !important; left: 0; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
.skip-link { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--pcb); font-weight: 700; padding: 10px 14px; border-radius: var(--r-sm); z-index: 1000; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; vertical-align: -0.22em; }

.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2 * var(--gutter), 780px); }
.page-pad { padding-block: clamp(28px, 5vw, 56px) clamp(48px, 8vw, 96px); }
.section { padding-block: clamp(52px, 7vw, 96px); }
.section + .section { padding-top: 0; }
.section-head { margin-bottom: 28px; max-width: 48rem; }
.section-head p { color: var(--ink-2); font-size: 1.08rem; }
.section-head.split { display: flex; justify-content: space-between; align-items: end; gap: 16px; max-width: none; flex-wrap: wrap; }
.section-head.split > div { max-width: 46rem; }
.section-label { font-size: .95rem; font-weight: 700; color: var(--ink-2); margin: 40px 0 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.eyebrow { font-size: .9rem; font-weight: 650; font-stretch: 100%; color: var(--link); margin: 0 0 .7em; letter-spacing: 0; }
.eyebrow-light { color: var(--gold); }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 40rem; }
.lede-small { font-size: 1.1rem; color: var(--ink-2); }
.crumbs { font-size: .92rem; color: var(--muted); margin-bottom: 16px; }
.crumbs a { color: var(--muted); }
.link-arrow { font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.link-arrow:hover { text-decoration: underline; }
.link-quiet { color: var(--muted); }
.plain-list { list-style: none; padding: 0; }
.plain-list li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.tight-list { margin: 0 0 1em; padding-left: 1.1em; }
.tight-list li { margin: .25em 0; }

/* ---------- Header / footer ---------- */
.masthead { background: var(--pcb); color: var(--on-pcb); position: relative; z-index: 30; }
.masthead-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: var(--header-h); flex-wrap: wrap; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font: 800 1.2rem/1 var(--sans); font-stretch: 125%; letter-spacing: -0.01em; color: var(--on-pcb); text-decoration: none; }
.wordmark:hover { color: #fff; text-decoration: none; }
.wordmark b { font-weight: 800; }
.wordmark-mark { width: 30px; height: 30px; border-radius: 8px; }
.wordmark-small { font-size: 1rem; }
.wordmark-small .wordmark-mark { width: 24px; height: 24px; border-radius: 6px; }
.primary-nav { display: flex; gap: 2px; flex-wrap: wrap; align-items: center; }
.primary-nav a { white-space: nowrap; color: var(--on-pcb-muted); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .98rem; min-height: 44px; display: inline-flex; align-items: center; }
.primary-nav a:hover { color: #fff; background: var(--pcb-2); }
.primary-nav a[aria-current="page"] { color: #fff; background: var(--pcb-2); box-shadow: inset 0 0 0 1px var(--trace); }
.primary-nav .nav-signin { color: var(--pcb); background: var(--gold); margin-left: 6px; padding-inline: 18px; }
.primary-nav .nav-signin:hover { background: var(--gold-hover); color: var(--pcb); }
.masthead :focus-visible { outline-color: var(--gold); }
.masthead .nav-toggle { display: none; }
.flash { background: var(--ok-tint); color: var(--ok); border-bottom: 1px solid #b7dcc6; padding: 12px 0; font-weight: 600; }
.preview-notice { background: var(--pcb-deep); color: var(--on-pcb-muted); border-top: 1px solid var(--trace); padding: 7px 0; font-size: .82rem; line-height: 1.45; }
.preview-notice .wrap::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 9px; vertical-align: 1px; }

.site-footer { background: var(--pcb); color: var(--on-pcb); padding: 64px 0 28px; }
.site-footer a { color: var(--on-pcb); text-decoration: none; display: block; padding: 5px 0; }
.site-footer a:hover { color: var(--gold); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 2fr repeat(3, 1fr); gap: 32px; }
.wordmark-footer { margin: 0 0 14px; font-size: 1.3rem; }
.footer-note { color: var(--on-pcb-muted); max-width: 30rem; font-size: .95rem; }
.footer-head { font: 700 .95rem/1.3 var(--sans); color: var(--gold); margin-bottom: 10px; letter-spacing: 0; font-stretch: 100%; }
.footer-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--trace); margin-top: 44px; padding-top: 20px; color: var(--on-pcb-muted); font-size: .88rem; }
.footer-rides { display: flex; gap: 14px; flex-wrap: wrap; }
.footer-rides svg { width: 26px; height: 26px; color: var(--on-pcb-muted); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 10px 20px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink); font: 650 .98rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn:hover { background: var(--mat); border-color: var(--ink-2); color: var(--ink); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn svg { width: 20px; height: 20px; }
.btn-primary { background: var(--pcb); border-color: var(--pcb); color: #fff; }
.btn-primary:hover { background: var(--pcb-2); border-color: var(--pcb-2); color: #fff; }
.btn-gold { background: var(--gold); border-color: var(--gold); color: var(--pcb); }
.btn-gold:hover { background: var(--gold-hover); border-color: var(--gold-hover); color: var(--pcb); }
.btn-quiet { background: transparent; }
.btn-small { min-height: 38px; padding: 7px 14px; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-icon { min-width: 38px; min-height: 38px; padding: 4px 8px; }
.btn-light { background: var(--on-pcb); border-color: var(--on-pcb); color: var(--pcb); }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--pcb); }
.btn-ghost-light { background: transparent; color: var(--on-pcb); border-color: var(--trace); }
.btn-ghost-light:hover { background: var(--pcb-2); color: #fff; border-color: var(--on-pcb-muted); }
.btn-danger-text { color: var(--red); }
.btn-google { gap: 12px; background: #fff; border-color: var(--line-strong); font-weight: 650; padding-inline: 20px; }
.button-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.link-light { color: var(--on-pcb); font-weight: 600; }
.link-light:hover { color: var(--gold); }

/* ---------- Forms ---------- */
.field { display: grid; gap: 6px; margin-bottom: 18px; min-width: 0; align-content: start; }
.field label, legend { font-weight: 650; font-size: .95rem; color: var(--ink); }
.hint { color: var(--muted); font-size: .9rem; margin: -2px 0 2px; }
.error, .field .error { color: var(--red); font-weight: 600; font-size: .92rem; margin: 0; }
.req { color: var(--red); }
input:not([type="checkbox"]):not([type="radio"]):not([type="color"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; border: 1.5px solid var(--line-strong); border-radius: 10px; background: var(--card); color: var(--ink); font: 400 1rem/1.4 var(--sans);
}
textarea { min-height: 100px; resize: vertical; line-height: 1.5; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink-2) 50%), linear-gradient(135deg, var(--ink-2) 50%, transparent 50%); background-position: calc(100% - 19px) 52%, calc(100% - 14px) 52%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); }
input:focus, select:focus, textarea:focus { border-color: var(--pcb); }
::placeholder { color: #75837b; }
.has-error input, .has-error select, .has-error textarea, [aria-invalid="true"] { border-color: var(--red) !important; box-shadow: 0 0 0 1px var(--red); }
fieldset { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
.check { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; cursor: pointer; min-height: 44px; }
.check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pcb); flex: none; }
.check-card { border: 1px solid var(--line-strong); background: var(--card); padding: 14px; border-radius: var(--r); }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 12px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 0 16px; align-items: end; }
.stack > * + * { margin-top: 12px; }
.stack .field { margin-bottom: 0; }
.input-with-action { display: flex; gap: 8px; }
.input-with-action input { flex: 1; min-width: 0; }
.error-summary { border: 2px solid var(--red); background: var(--red-tint); border-radius: var(--r); padding: 16px 18px; margin-bottom: 22px; }
.error-summary h2 { font: 700 1.05rem/1.3 var(--sans); margin: 0 0 8px; color: var(--red); }
.error-summary ul { margin: 0; }
.error-summary a { color: var(--red); font-weight: 600; }
.form-error { background: var(--red-tint); color: var(--red); border-radius: var(--r-sm); padding: 12px 14px; font-weight: 600; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input, .inline-form select { width: auto; min-width: 140px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Notices, states, tags, chips, badges ---------- */
.notice { background: var(--card); border: 1px solid var(--line-strong); border-left: 4px solid var(--pcb); border-radius: var(--r-sm); padding: 14px 16px; margin: 0 0 20px; }
.notice p:last-child { margin-bottom: 0; }
.notice-warn { border-left-color: #c58a00; background: var(--amber-tint); border-color: var(--amber-line); }
.notice-info { border-left-color: var(--ok); background: var(--ok-tint); }
.notice-inline { font-size: .95rem; color: var(--amber-ink); background: var(--amber-tint); border: 1px solid var(--amber-line); padding: 10px 14px; border-radius: 10px; }
.state { font-weight: 650; font-size: .93rem; }
.state-ok { color: var(--ok); }
.state-wait { color: var(--amber-ink); }
.state-muted { color: var(--muted); }
.tag { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: var(--mat); color: var(--ink-2); vertical-align: middle; }
.tag-new { background: var(--pcb); color: #fff; }
.chips { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; background: var(--mat); color: var(--ink-2); font-size: .86rem; font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.chips-nav .chip { padding: 8px 14px; min-height: 40px; background: var(--card); border-color: var(--line-strong); }
.chip-active, .chips-nav .chip-active { background: var(--pcb); color: #fff; border-color: var(--pcb); }
.chip-n { font-size: .78rem; opacity: .8; }
.chip-remove { background: var(--card); border-color: var(--line-strong); min-height: 36px; }
.chip-remove:hover { border-color: var(--pcb); color: var(--pcb); }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badge { display: inline-flex; align-items: center; gap: 7px; font: 700 .8rem/1 var(--sans); padding: 7px 10px 7px 8px; border-radius: 999px; text-decoration: none; border: 1px solid; }
.badge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge-verified { color: var(--ok); background: var(--ok-tint); border-color: #b7dcc6; }
.badge-og { color: #5b3f8c; background: #efe9f8; border-color: #d6c9ec; }
.badge-hp { color: #7a4b00; background: #fff1cc; border-color: #f0d68e; }
.badge-sponsored { color: var(--amber-ink); background: var(--amber-tint); border-color: var(--amber-line); }
.badge-sponsored::before { border-radius: 2px; }

/* ---------- Identity tile: shop initials on the board (no stock photos) ---------- */
.plate { display: inline-grid; place-items: center; flex: none; background: var(--pcb) url('/static/img/traces-dark.svg') 0 0 / 120px; border-radius: 14px; position: relative; overflow: hidden; color: var(--on-pcb); }
.plate span { font: 800 1rem/1 var(--sans); font-stretch: 118%; letter-spacing: -0.01em; color: var(--on-pcb); position: relative; }
.plate::after { content: ''; position: absolute; right: 8px; bottom: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); }
.plate-md { width: 64px; height: 64px; } .plate-md span { font-size: 1.3rem; }
.plate-lg { width: 104px; height: 104px; border-radius: 20px; } .plate-lg span { font-size: 2.3rem; }
.plate-logo { background: #fff; border: 1px solid var(--line); }
.plate-logo::after { display: none; }
.plate-logo img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

/* ---------- Illustrations (always captioned) ---------- */
.illus { margin: 0; position: relative; overflow: hidden; border-radius: var(--r-lg); background: var(--pcb-2); }
.illus img { width: 100%; height: 100%; object-fit: cover; }
.illus figcaption { position: absolute; left: 12px; bottom: 12px; margin: 0; padding: 4px 10px; border-radius: 999px; background: rgba(11, 44, 33, .82); color: var(--on-pcb); font-size: .78rem; font-weight: 600; backdrop-filter: blur(4px); }

/* ---------- Home ---------- */
.page-home main { background: var(--silk); }
.hero { background: var(--pcb); color: var(--on-pcb); padding: clamp(36px, 5vw, 64px) 0 clamp(44px, 6vw, 80px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.hero h1, .display { color: #fff; font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: .98; font-weight: 800; font-stretch: 125%; letter-spacing: -0.015em; margin-bottom: .35em; }
.hero .lede { color: var(--on-pcb-muted); max-width: 34rem; }
.hero-art { aspect-ratio: 5 / 4; box-shadow: 0 30px 60px -30px rgba(0,0,0,.6); border: 1px solid var(--trace); }
.hero-art img { object-position: var(--focus-xy, 50% 60%); }
.finder { margin-top: 28px; background: var(--pcb-2); border: 1px solid var(--trace); border-radius: var(--r-lg); padding: clamp(16px, 2.4vw, 22px); max-width: 640px; }
.finder-rides { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; padding: 0; border: 0; }
.finder-rides legend { color: var(--on-pcb); font-weight: 700; margin-bottom: 10px; font-size: .95rem; }
.ride-toggle { position: relative; }
.ride-toggle input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.ride-toggle span { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1.5px solid var(--trace); color: var(--on-pcb); font-weight: 600; font-size: .95rem; background: var(--pcb); transition: background .12s, border-color .12s; }
.ride-toggle svg { width: 26px; height: 26px; color: var(--gold); }
.ride-toggle input:hover + span { border-color: var(--on-pcb-muted); }
.ride-toggle input:checked + span { background: var(--gold); border-color: var(--gold); color: var(--pcb); }
.ride-toggle input:checked + span svg { color: var(--pcb); }
.ride-toggle input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.finder-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.finder .field { margin: 0; }
.finder label { color: var(--on-pcb); }
.finder input:not([type="checkbox"]):not([type="radio"]) { background: #fff; border-color: #fff; }
.finder .hint { color: var(--on-pcb-muted); margin: 8px 0 0; }
.finder .check { color: var(--on-pcb); padding-bottom: 0; }
.finder .check input { accent-color: var(--gold); }
.locate-btn { display: inline-flex; align-items: center; gap: 6px; background: transparent; color: var(--on-pcb); border: 0; padding: 0; font: 600 .92rem var(--sans); cursor: pointer; text-decoration: underline; text-underline-offset: .2em; min-height: 44px; }
.locate-btn:hover { color: var(--gold); }
.locate-btn svg { width: 18px; height: 18px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 26px 0 0; padding: 0; list-style: none; color: var(--on-pcb-muted); font-size: .95rem; }
.hero-stats strong { display: block; color: #fff; font-size: 1.6rem; font-weight: 800; font-stretch: 125%; line-height: 1.1; }

.ride-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
@media (min-width: 1100px) { .ride-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.ride-tile { display: grid; gap: 10px; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); height: 100%; transition: border-color .15s, box-shadow .15s; }
.ride-tile:hover { border-color: var(--pcb); box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
.ride-icon { width: 56px; height: 56px; border-radius: 14px; background: var(--pcb); color: var(--gold); display: grid; place-items: center; }
.ride-icon svg { width: 40px; height: 40px; }
.ride-name { font-weight: 750; font-stretch: 110%; font-size: 1.12rem; }
.ride-meta { color: var(--muted); font-size: .9rem; }

.network { background: var(--pcb-deep); color: var(--on-pcb); padding: clamp(52px, 7vw, 96px) 0; }
.network-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.network h2 { color: #fff; font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-stretch: 125%; font-weight: 800; }
.network p { color: var(--on-pcb-muted); }
.network-facts { list-style: none; padding: 0; margin: 22px 0 26px; display: grid; gap: 10px; }
.network-facts li { display: flex; gap: 12px; align-items: baseline; color: var(--on-pcb-muted); }
.network-facts strong { color: var(--gold); font-size: 1.3rem; font-stretch: 125%; font-weight: 800; min-width: 3ch; }
.network-map { height: clamp(320px, 42vw, 520px); border-radius: var(--r-lg); border: 1px solid var(--trace); overflow: hidden; }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; padding: 0; margin: 0; }
.trust-grid li { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; }
.trust-grid svg { width: 34px; height: 34px; color: var(--pcb); background: var(--mat); border-radius: 10px; padding: 6px; margin-bottom: 14px; }
.trust-grid h3 { margin-bottom: 6px; }
.trust-grid p { margin: 0; color: var(--ink-2); }

.owner-band { padding: clamp(52px, 7vw, 96px) 0; }
.section + .owner-band { padding-top: 0; }
.owner-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; background: var(--pcb) url('/static/img/traces-dark.svg') 0 0 / 240px; color: var(--on-pcb); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 48px); }
.owner-grid h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); font-stretch: 125%; font-weight: 800; }
.owner-grid p { color: var(--on-pcb-muted); max-width: 36rem; }
.owner-art { aspect-ratio: 16 / 10; }
.owner-list { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 8px; }
.owner-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--on-pcb); }
.owner-list svg { width: 20px; height: 20px; color: var(--gold); margin-top: 3px; }
.owner-shot { margin: 0; }
.owner-shot img { width: 100%; height: auto; display: block; }
.owner-shot figcaption { font-size: .8rem; color: var(--on-pcb-muted); margin-top: 4px; }
.owner-actions { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* ---------- Article cards ---------- */
.article-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.article-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.article-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.article-card-link { display: flex; flex-direction: column; color: inherit; text-decoration: none; height: 100%; }
.article-card-link:hover { color: inherit; text-decoration: none; }
.article-card-art { margin: 0; aspect-ratio: 16 / 9; overflow: hidden; background: var(--mat); position: relative; }
.article-card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .article-card-art img { transform: scale(1.03); }
.article-card-art figcaption { position: absolute; left: 10px; bottom: 10px; padding: 3px 9px; border-radius: 999px; background: rgba(11, 44, 33, .82); color: var(--on-pcb); font-size: .74rem; font-weight: 600; }
.cover-type { display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; padding: 18px 20px; background: var(--pcb) url('/static/img/traces-dark.svg') 0 0 / 180px; color: var(--on-pcb); }
.cover-type strong { font: 800 clamp(1.25rem, 2.2vw, 1.6rem)/1.05 var(--sans); font-stretch: 122%; color: #fff; letter-spacing: -0.01em; }
.cover-type span { font-size: .85rem; color: var(--gold); font-weight: 650; }
.cover-art { background: #fff; display: grid; place-items: center; }
.cover-art img { object-fit: contain; padding: 8px; }
.article-card-body { padding: 18px 20px 22px; display: grid; gap: 8px; align-content: start; flex: 1; }
.article-card-body .eyebrow { margin: 0; color: var(--muted); font-weight: 600; font-size: .86rem; }
.article-card-body h3 { font-size: 1.16rem; margin: 0; color: var(--ink); line-height: 1.2; }
.article-card-body p:last-child { color: var(--muted); font-size: .95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.article-card:hover h3 { color: var(--link); }

/* ---------- Directory ---------- */
.page-directory main { background: var(--silk); }
.directory-head { background: var(--pcb); color: var(--on-pcb); padding: 22px 0 18px; }
.directory-head h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 12px; }
.directory-head .hint { color: var(--on-pcb-muted); margin: 6px 0 0; min-height: 0; }
.directory-head .hint:empty { display: none; }
.ride-filter { list-style: none; padding: 0; margin: 0 0 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ride-filter a { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 5px 14px 5px 9px; border-radius: 999px; border: 1.5px solid var(--trace); color: var(--on-pcb); font-weight: 600; font-size: .93rem; text-decoration: none; white-space: nowrap; background: var(--pcb); }
.ride-filter a:hover { border-color: var(--on-pcb-muted); color: #fff; }
.ride-filter a[aria-current="true"] { background: var(--gold); border-color: var(--gold); color: var(--pcb); }
.ride-filter svg { width: 24px; height: 24px; color: var(--gold); }
.ride-filter a[aria-current="true"] svg { color: var(--pcb); }
.ride-filter .n { font-size: .8rem; opacity: .8; }
.filter-bar { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, 1fr) auto auto; gap: 10px; align-items: end; background: var(--card); border-radius: var(--r); padding: 12px; color: var(--ink); }
.filter-extra { display: contents; }
.filter-actions { display: flex; gap: 8px; }
.filter-more { display: none; }
.filter-more svg { width: 18px; height: 18px; }
.filter-bar .field { margin: 0; }
.filter-bar .field label { font-size: .86rem; margin-bottom: 4px; }
.near-wrap { position: relative; }
.near-wrap input { padding-right: 48px; }
.near-locate { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--link); cursor: pointer; }
.near-locate:hover { background: var(--mat); }
.near-locate:disabled { opacity: .5; cursor: progress; }
.near-locate svg { width: 22px; height: 22px; }
.filter-checks { display: flex; gap: 14px; margin: 0; align-items: center; padding-bottom: 2px; }
.filter-checks .check { padding: 0; min-height: 46px; align-items: center; }
.directory { padding: 22px 0 72px; }
.directory-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 24px; align-items: start; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.results-count { margin: 0; color: var(--ink-2); }
.results-count strong { font-size: 1.15rem; font-stretch: 115%; }
.sort-form { display: flex; gap: 8px; align-items: center; }
.sort-form label { font-size: .9rem; color: var(--muted); }
.sort-form select { width: auto; min-height: 40px; padding-block: 6px; }
.active-filters { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.shop-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.shop-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px 16px; transition: border-color .15s, box-shadow .15s; }
.shop-card:hover, .shop-card.is-highlighted, .shop-card.is-hot { border-color: var(--pcb); box-shadow: var(--shadow); }
.shop-card-body { min-width: 0; }
.shop-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.shop-card h3 { font-size: 1.15rem; margin: 0 0 2px; line-height: 1.2; }
.shop-card h3 a { color: var(--ink); text-decoration: none; }
.shop-card h3 a::after { content: ''; position: absolute; inset: 0; border-radius: var(--r); }
.shop-card h3 a:hover { color: var(--link); }
.shop-card h3 a:focus-visible { outline: none; }
.shop-card:has(h3 a:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.shop-card-place { margin: 0; color: var(--muted); font-size: .93rem; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.shop-card-place svg { width: 16px; height: 16px; color: var(--muted); }
.distance { color: var(--ink); font-weight: 700; }
.shop-card-tagline { color: var(--ink-2); margin: 8px 0 10px; font-size: .97rem; }
.shop-card-rides { list-style: none; padding: 0; margin: 0 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.shop-card-rides li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 5px; border-radius: 999px; background: var(--mat); font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.shop-card-rides svg { width: 20px; height: 20px; color: var(--pcb); }
.shop-card-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-card-meta { margin: 0; display: flex; gap: 6px 14px; flex-wrap: wrap; font-size: .86rem; color: var(--muted); align-items: center; }
.shop-card-meta span { display: inline-flex; align-items: center; gap: 5px; }
.shop-card-meta svg { width: 16px; height: 16px; }
.unclaimed { font-style: normal; }
.claimed-mark { color: var(--ok); font-weight: 650; }
.pin-no { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 6px; border-radius: 999px; background: var(--gold); color: var(--pcb); font: 800 .8rem/1 var(--sans); flex: none; }
.show-on-map { position: relative; z-index: 2; background: none; border: 0; padding: 4px 0; min-height: 44px; color: var(--link); font: 650 .86rem var(--sans); cursor: pointer; display: none; align-items: center; gap: 4px; text-decoration: underline; text-underline-offset: .2em; }
.show-on-map svg { width: 16px; height: 16px; }
.badges-compact .badge { font-size: .74rem; padding: 5px 8px 5px 7px; position: relative; z-index: 1; }
.sponsored-block { border: 1.5px dashed #d9b14e; border-radius: var(--r); padding: 12px; margin-bottom: 16px; background: var(--amber-tint); }
.sponsored-block .shop-card { margin-bottom: 10px; }
.sponsored-label { position: absolute; top: 12px; right: 14px; margin: 0; font-size: .78rem; font-weight: 700; color: var(--amber-ink); background: #fff; border: 1px solid var(--amber-line); padding: 2px 8px; border-radius: 999px; }
.sponsored-note { font-size: .86rem; color: var(--amber-ink); margin: 0; }
.map-panel { position: sticky; top: 16px; }
.map-frame { border-radius: var(--r-lg); overflow: hidden; background: var(--map-water); border: 1px solid var(--trace); }
.map { height: calc(100vh - 32px); min-height: 460px; max-height: 920px; }
.map-fallback { padding: 20px; color: var(--on-pcb-muted); }
.map-toggle { display: none; }
.empty-state { background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: 28px; }
.empty-state h2 { font-size: 1.4rem; }
.empty-actions { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.empty-actions a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; background: var(--card); }

/* ---------- Map (Leaflet over the bundled base map) ---------- */
.leaflet-container { font-family: var(--sans); outline: none; }
.map.leaflet-container, .ew-map.leaflet-container, .rail-map.leaflet-container { background: var(--map-water); }
.leaflet-container :focus-visible { outline: 3px solid var(--gold); }
.leaflet-control-zoom { border: 0 !important; box-shadow: 0 2px 10px rgba(0,0,0,.35) !important; border-radius: 10px !important; overflow: hidden; }
.leaflet-control-zoom a { background: var(--pcb-2) !important; color: var(--on-pcb) !important; border-color: var(--trace) !important; width: 36px !important; height: 36px !important; line-height: 34px !important; font-size: 20px !important; }
.leaflet-control-zoom a:hover { background: var(--pcb-3) !important; color: var(--gold) !important; }
.leaflet-container .leaflet-control.leaflet-control-attribution { background: rgba(11, 44, 33, .86); color: var(--on-pcb-muted); font-size: 11px; border-top-left-radius: 8px; padding: 2px 8px; }
.leaflet-container .leaflet-control.leaflet-control-attribution a { color: var(--on-pcb); text-decoration: underline; }
.ew-state { color: rgba(222, 240, 230, .5); font: 700 11px/14px var(--sans); text-align: center; letter-spacing: .06em; pointer-events: none; white-space: nowrap; }
.ew-pad { display: grid !important; place-items: center; border-radius: 50%; background: var(--gold); border: 3px solid var(--pcb-deep); box-shadow: 0 0 0 2px var(--gold), 0 4px 10px rgba(0,0,0,.45); color: var(--pcb); transition: transform .15s ease; }
.ew-pad span { font: 800 12px/1 var(--sans); }
.ew-pad.is-hot, .ew-pad:hover, .ew-pad:focus-visible { transform: scale(1.25); background: #fff; box-shadow: 0 0 0 2px #fff, 0 6px 14px rgba(0,0,0,.5); z-index: 1000 !important; }
/* Clusters read as "a group of shops": dark disc, gold ring, white count. Single shops are solid gold pads. */
.ew-cluster { display: grid !important; place-items: center; border-radius: 50%; background: var(--pcb-deep); border: 2px solid var(--gold); box-shadow: 0 0 0 5px rgba(240, 180, 41, .22), 0 4px 12px rgba(0,0,0,.45); color: #fff; cursor: pointer; transition: transform .15s ease; }
.ew-cluster span { font: 800 13px/1 var(--sans); font-stretch: 110%; }
.ew-cluster:hover, .ew-cluster:focus-visible { transform: scale(1.1); }
.ew-cluster.is-hot { background: var(--gold); color: var(--pcb); box-shadow: 0 0 0 5px rgba(255, 255, 255, .45), 0 4px 12px rgba(0,0,0,.45); }
.leaflet-ew-labels-pane { pointer-events: none; }
.ew-you { border-radius: 50%; background: #4f8cff; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(79, 140, 255, .3); }
.ew-popup .leaflet-popup-content-wrapper { border-radius: 12px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.ew-popup .leaflet-popup-content { margin: 12px 16px; font-size: .95rem; line-height: 1.35; }
.ew-pop-name { font-weight: 800; font-stretch: 110%; margin: 0 0 2px; font-size: 1.02rem; color: var(--ink); }
.ew-pop-place { margin: 0 0 8px; color: var(--muted); font-size: .88rem; }
.ew-pop-link { font-weight: 700; }
.ew-map-btn { background: var(--pcb-2); color: var(--on-pcb); border: 1px solid var(--trace); border-radius: 999px; padding: 8px 14px; font: 650 .85rem var(--sans); cursor: pointer; box-shadow: 0 2px 10px rgba(0,0,0,.35); }
.ew-map-btn:hover { color: var(--gold); }
.leaflet-tile-pane .ew-tiles { filter: grayscale(.35) contrast(.95); }

/* ---------- Page heads ---------- */
.page-head { padding: clamp(36px, 6vw, 64px) 0 28px; border-bottom: 1px solid var(--line); }
.page-head-dark { background: var(--pcb) url('/static/img/traces-dark.svg') 0 0 / 240px; color: var(--on-pcb); border-bottom: 0; padding-bottom: clamp(36px, 6vw, 64px); }
.page-head-dark h1 { color: #fff; max-width: 22ch; }
.page-head-dark .lede { color: var(--on-pcb-muted); }
.page-head-dark .eyebrow { color: var(--gold); }
.page-head-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.page-head-art { aspect-ratio: 16 / 10; border: 1px solid var(--trace); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 0 0 56px; padding: 0; list-style: none; counter-reset: step; }
.steps > * { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; position: relative; counter-increment: step; }
.steps > li > svg { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--pcb); color: var(--gold); margin-bottom: 14px; }
.steps > li::after { content: none; position: absolute; top: 20px; right: 22px; font: 800 1.6rem/1 var(--sans); font-stretch: 125%; color: var(--line-strong); }
.owner-hero { background: var(--pcb); color: var(--on-pcb); padding: clamp(36px, 5vw, 64px) 0 clamp(40px, 5vw, 64px); overflow: hidden; }
.owner-hero-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
.owner-hero h1 { color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1; font-weight: 800; font-stretch: 125%; letter-spacing: -0.02em; margin-bottom: .4em; }
.owner-hero .lede { color: var(--on-pcb-muted); }
.owner-hero .button-row { margin-top: 24px; }
.owner-hero-shot { margin: 0 calc(-1 * clamp(0px, 6vw, 120px)) 0 0; }
.owner-hero-shot img { width: 100%; height: auto; display: block; }
.owner-hero-shot figcaption { margin-top: 6px; font-size: .82rem; color: var(--on-pcb-muted); text-align: right; padding-right: clamp(0px, 6vw, 120px); }
.step-n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--pcb); color: var(--gold); font-weight: 800; margin-bottom: 12px; }
.plans h2 { margin-bottom: 18px; }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 16px; margin-bottom: 18px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.plan h3 { font-size: 1.2rem; }
.plan-free { border-color: var(--pcb); box-shadow: inset 0 4px 0 var(--gold); }
.plan.is-current { border-color: var(--ok); box-shadow: inset 0 4px 0 var(--ok); }
.plan .btn, .plan form { margin-top: auto; }
.plan-price { font-size: 1.45rem; font-weight: 800; font-stretch: 120%; margin: 6px 0; }
.plan-soon { color: var(--muted); font-style: italic; margin-top: auto; }
.tick-list { list-style: none; padding: 0; margin: 0 0 12px; }
.tick-list li { padding-left: 24px; position: relative; margin: 6px 0; }
.tick-list li::before { content: ''; position: absolute; left: 3px; top: .5em; width: 11px; height: 6px; border-left: 2.5px solid var(--ok); border-bottom: 2.5px solid var(--ok); transform: rotate(-45deg); }
.badge-explainer section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.signin { max-width: 34rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 4vw, 40px); }
.signin .form-stack { display: grid; gap: 10px; margin: 24px 0 12px; }
.signin .form-stack input { min-width: 0; width: 100%; }
.signin .form-stack .btn, .signin .btn-google { width: 100%; min-height: 44px; }
.signin .btn-google { margin: 12px 0; }
.signin #signin-code { font-variant-numeric: tabular-nums; letter-spacing: .16em; font-size: 1.25rem; }

/* ---------- Articles ---------- */
.article-head { padding-top: clamp(28px, 5vw, 56px); }
.article-head.has-art { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 56px); align-items: center; padding-bottom: clamp(8px, 2vw, 20px); }
.article-head-text { max-width: 780px; }
.story-shop { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--trace); background: var(--pcb); box-shadow: var(--shadow); display: grid; }
.story-shop-map { height: 300px; background: var(--map-water); }
.story-shop-link { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; color: var(--on-pcb-muted); text-decoration: none; background: var(--pcb); }
.story-shop-link > span:first-child { display: grid; gap: 1px; font-size: .92rem; }
.story-shop-link small { color: var(--gold); font-weight: 700; font-size: .8rem; }
.story-shop-link strong { color: #fff; font-size: 1.15rem; font-stretch: 112%; }
.story-shop-go { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; white-space: nowrap; }
.story-shop-go svg { width: 18px; height: 18px; }
.story-shop-link:hover .story-shop-go { color: var(--gold-hover); text-decoration: underline; }
.article-art { aspect-ratio: 16 / 10; border: 1px solid var(--line); box-shadow: var(--shadow); }
.article-art.cover-art { background: #fff; }
.article-art.cover-art img { object-fit: contain; padding: 10px; }
.display-article { font-size: clamp(2rem, 4.4vw, 3.2rem); line-height: 1.04; font-stretch: 118%; }
.article-dek { font-size: 1.24rem; color: var(--ink-2); line-height: 1.5; }
.article-byline { color: var(--muted); font-size: .9rem; display: flex; flex-wrap: wrap; gap: 4px 18px; font-weight: 600; }
.article-byline span + span { position: relative; }
.article-byline span + span::before { content: ''; position: absolute; left: -11px; top: 50%; width: 4px; height: 4px; margin-top: -2px; border-radius: 50%; background: var(--gold); }
.section-note { color: var(--muted); max-width: 60ch; margin: -6px 0 18px; font-size: .95rem; }
.guide-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.guide-list a { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; height: 100%; transition: border-color .15s, box-shadow .15s; }
.guide-list a:hover { border-color: var(--pcb); box-shadow: var(--shadow); }
.guide-list a:hover strong { color: var(--link); }
.guide-icon { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 12px; background: var(--pcb) url('/static/img/traces-dark.svg') 0 0 / 120px; color: var(--gold); }
.guide-icon svg { width: 34px; height: 34px; }
.guide-text { display: grid; gap: 4px; min-width: 0; }
.guide-text strong { font-size: 1.05rem; line-height: 1.25; font-stretch: 108%; }
.guide-dek { color: var(--muted); font-size: .93rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.guide-text small { color: var(--ink-2); font-weight: 600; font-size: .82rem; }
.article-hero { margin: 28px auto 0; }
.article-hero .illus { aspect-ratio: 21 / 9; max-height: 560px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: minmax(0, 46rem) minmax(0, 18rem); gap: clamp(28px, 5vw, 72px); justify-content: space-between; padding-block: 36px 72px; }
.article-head.wrap, .article-layout.wrap { width: min(100% - 2 * var(--gutter), 1120px); }
.prose { font-size: 1.1rem; line-height: 1.72; }
.prose h2 { font-size: 1.65rem; margin: 1.8em 0 .5em; scroll-margin-top: 20px; }
.prose h3 { font-size: 1.28rem; margin: 1.5em 0 .4em; }
.prose ul, .prose ol { margin: 0 0 1.2em; }
.prose li { margin: .35em 0; }
.prose strong { font-weight: 700; }
.pull-quote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--gold); background: var(--card); border-radius: 0 var(--r) var(--r) 0; font-size: 1.35rem; line-height: 1.35; font-weight: 650; font-stretch: 110%; color: var(--ink); }
.pull-quote p { margin: 0; }
.callout { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 14px 16px; border-radius: 10px; margin: 1.4em 0; font-size: 1rem; line-height: 1.6; }
.callout p { margin: 0; }
.callout-icon { padding-top: 2px; }
.callout-warning { background: var(--amber-tint); border: 1px solid var(--amber-line); color: #4a3200; }
.callout-warning .callout-icon { color: #9b6200; }
.callout-note { background: var(--ok-tint); border: 1px solid #b7dcc6; }
.callout-note .callout-icon { color: var(--ok); }
.article-faq details, .faq details { border-bottom: 1px solid var(--line); padding: 14px 0; }
.article-faq summary, .faq summary { cursor: pointer; font-weight: 650; font-size: 1.05rem; list-style-position: outside; min-height: 32px; }
.article-faq details p { margin: 10px 0 0; }
.sources { margin-top: 40px; font-size: .92rem; color: var(--muted); }
.sources ol { padding-left: 1.3em; }
.article-aside { display: grid; gap: 18px; align-content: start; position: sticky; top: 16px; }
.aside-card, .toc { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; }
.toc ol { padding-left: 1.1em; margin: 0; font-size: .95rem; }
.toc li { margin: 6px 0; }
.toc a { color: var(--ink-2); }
.aside-shop-name { font-size: 1.2rem; font-weight: 750; font-stretch: 110%; margin-bottom: 4px; }
.related { border-top: 1px solid var(--line); padding-top: 40px; }
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 28px; }

/* ---------- Spec lists, tables, panels ---------- */
.spec { margin: 0 0 12px; display: grid; gap: 0; }
.spec > div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.spec dt { color: var(--muted); font-size: .92rem; }
.spec dd { margin: 0; font-weight: 550; }
.table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 20px; font-size: .95rem; }
.table th { text-align: left; font: 700 .84rem/1.2 var(--sans); color: var(--ink-2); background: var(--mat); padding: 10px 12px; }
.table td { padding: 12px; border-top: 1px solid var(--line); vertical-align: top; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 18px; }
.panel > h2:first-child, .panel > .h4:first-child { margin-top: 0; }

/* ---------- Timeline / status / thread ---------- */
.status-panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; margin: 18px 0 24px; }
.timeline { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 12px; }
.timeline li { display: flex; justify-content: space-between; gap: 12px; padding-left: 26px; position: relative; flex-wrap: wrap; }
.timeline li::before { content: ''; position: absolute; left: 0; top: 5px; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-strong); background: var(--card); }
.timeline li.done::before { background: var(--ok); border-color: var(--ok); }
.timeline span { color: var(--muted); font-size: .9rem; }
.delivery { margin: 0; font-size: .9rem; }
.thread { margin: 24px 0; }
.msg { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 12px; background: var(--card); max-width: 46rem; }
.msg-shop { background: var(--ok-tint); border-color: #c4dccf; margin-left: clamp(0px, 6vw, 64px); }
.msg-head { font-size: .85rem; color: var(--muted); font-weight: 650; margin-bottom: 6px; }
.msg p:last-child { margin-bottom: 0; }
.estimate { border: 1px solid var(--line-strong); border-left: 4px solid var(--gold); border-radius: var(--r-sm); padding: 18px; margin: 18px 0; background: var(--card); }
.estimate h2 { font-size: 1.35rem; }

/* ---------- Terms ---------- */
.terms-meta { border-block: 1px solid var(--line); padding: 12px 0; margin-bottom: 18px; }
.terms-meta p { margin: 0; }
.clauses { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 12px; }
.clause { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.clause-head { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.clause-head h2 { font-size: 1.12rem; margin: 0; flex: 1 1 auto; }
.clause-id { color: var(--muted); }
.clause-tag { font-size: .8rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--mat); }
.clause-modified { border-left: 4px solid #c58a00; } .clause-modified .clause-tag { background: var(--amber-tint); color: var(--amber-ink); }
.clause-removed { border-left: 4px solid var(--red); } .clause-removed .clause-tag { background: var(--red-tint); color: var(--red); }
.clause-added { border-left: 4px solid var(--ok); } .clause-added .clause-tag { background: var(--ok-tint); color: var(--ok); }
ins { background: #d8efe1; color: #0f3d2e; text-decoration: none; border-bottom: 2px solid var(--ok); padding: 0 1px; }
del { background: var(--red-tint); color: #6d1a14; text-decoration: line-through; text-decoration-thickness: 1.5px; }
.clause-reason { font-size: .92rem; color: var(--ink-2); font-style: italic; }
.terms-editor .clause-edit { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.terms-editor legend { font-size: 1rem; }
.seg-choice { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.seg-choice label { display: inline-flex; gap: 6px; align-items: center; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 999px; cursor: pointer; min-height: 40px; }
.seg-choice label:has(input:checked) { background: var(--pcb); color: #fff; border-color: var(--pcb); }

/* ---------- Dashboard & admin shell ---------- */
.page-dash main, .page-admin main { background: var(--silk); }
.dash { display: grid; grid-template-columns: 260px minmax(0, 1fr); min-height: calc(100vh - var(--header-h)); }
.dash-side { border-right: 1px solid var(--line); padding: 24px 18px; background: var(--card); }
.dash-shop { margin-bottom: 20px; }
.dash-shop-name { font-size: 1.2rem; font-weight: 800; font-stretch: 112%; margin: 0 0 4px; line-height: 1.2; }
.dash-nav { display: grid; gap: 2px; margin-bottom: 20px; }
.dash-nav a { color: var(--ink-2); text-decoration: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; min-height: 42px; display: flex; align-items: center; }
.dash-nav a:hover { background: var(--mat); color: var(--ink); }
.dash-nav a[aria-current="page"] { background: var(--pcb); color: #fff; }
.dash-main { padding: clamp(20px, 3vw, 36px) clamp(16px, 3vw, 40px) 64px; min-width: 0; }
.dash-head { margin-bottom: 22px; }
.dash-head h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: 6px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; align-items: start; }
.dash-grid-wide { grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); }
.stat-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; text-decoration: none; color: var(--ink); display: grid; gap: 2px; }
.stat:hover { border-color: var(--pcb); color: var(--ink); }
.stat-n { font-size: 2rem; font-weight: 800; font-stretch: 120%; line-height: 1; }
.stat-l { color: var(--muted); font-size: .9rem; }
.dash-cards { list-style: none; padding: 0; display: grid; gap: 12px; }
.dash-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; flex-wrap: wrap; }
.dash-card h2 { margin-bottom: 2px; }
.dash-card p { margin: 0; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs a { padding: 10px 14px; color: var(--muted); text-decoration: none; font-weight: 600; text-transform: capitalize; min-height: 44px; display: inline-flex; align-items: center; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--gold); }
.inbox-list { list-style: none; padding: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--card); overflow: hidden; }
.inbox-item + .inbox-item { border-top: 1px solid var(--line); }
.inbox-item a { display: grid; grid-template-columns: 1.3fr 1.5fr auto auto; gap: 12px; padding: 14px 16px; color: var(--ink); text-decoration: none; align-items: center; }
.inbox-item a:hover { background: var(--silk); }
.inbox-item.is-unread .inbox-who { font-weight: 750; }
.inbox-what, .inbox-when, .inbox-status { color: var(--muted); font-size: .92rem; }
.media-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.media-item { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; }
.media-item img { aspect-ratio: 4/3; object-fit: cover; width: 100%; border-radius: var(--r-sm); background: var(--mat); }
.media-item p { margin: 0; }
.media-item .inline-form input { min-width: 0; flex: 1; }
.upload-form { max-width: 640px; }
.review-admin { list-style: none; padding: 0; }
.discard-form { margin-top: 18px; }

/* ---------- Editor ---------- */
.editor { --editor-header-height: calc(var(--header-h) + 1px); }
.editor-bar { position: sticky; top: var(--editor-header-height); z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; margin: -8px 0 12px; background: var(--silk); border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.editor-title { font-size: 1.5rem; margin: 0; }
.editor-bar-left { display: flex; gap: 16px; align-items: baseline; flex-wrap: wrap; }
.editor-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.save-state { margin: 0; font-size: .9rem; color: var(--muted); }
.save-state.is-saving, .save-state[data-tone="pending"] { color: var(--amber-ink); }
.save-state.is-error, .save-state[data-tone="error"] { color: var(--red); font-weight: 650; }
.publish-issues { background: var(--amber-tint); border: 1px solid var(--amber-line); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; font-size: .95rem; }
.publish-issues.is-empty { display: none; }
.publish-issues ul { margin: 4px 0 0; }
.editor-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: start; }
.ed-section { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; }
.ed-section > summary { cursor: pointer; padding: 16px 18px; font-size: 1.1rem; font-weight: 750; font-stretch: 108%; display: flex; gap: 12px; align-items: center; min-height: 54px; }
.ed-section[open] > summary { border-bottom: 1px solid var(--line); }
.ed-n { display: inline-grid; place-items: center; min-width: 30px; height: 30px; border-radius: 8px; background: var(--pcb); color: var(--gold); font: 800 .8rem/1 var(--sans); }
.ed-body { padding: 18px; }
.editor-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 12px 0; }
.editor-preview { position: var(--editor-preview-position, static); top: calc(var(--editor-header-height) + var(--editor-toolbar-height)); }
.preview-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: var(--card); }
.seg-btn { border: 0; background: transparent; padding: 7px 14px; font: 650 .88rem var(--sans); cursor: pointer; min-height: 36px; color: var(--ink-2); }
.seg-btn[aria-pressed="true"] { background: var(--pcb); color: #fff; }
.preview-frame { border: 1px solid var(--line-strong); border-radius: var(--r); overflow: hidden; background: #fff; height: calc(100vh - 150px); min-height: 520px; display: flex; justify-content: center; transition: background .2s; }
.preview-frame iframe { width: 100%; height: 100%; border: 0; transition: width .25s; }
.preview-frame.is-mobile { background: var(--mat); padding: 14px 0; }
.preview-frame.is-mobile iframe { width: 390px; border: 1px solid var(--line-strong); border-radius: 22px; background: #fff; }
.color-row { display: flex; gap: 12px; align-items: center; }
.color-row input[type="color"] { width: 56px; height: 46px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--card); padding: 3px; }
.theme-warnings { margin: 6px 0 0; padding-left: 1.1em; color: var(--amber-ink); font-size: .9rem; }
.theme-warnings:empty { display: none; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.choice-list { display: grid; gap: 8px; }
.choice { display: flex; gap: 10px; align-items: center; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; cursor: pointer; background: var(--card); min-height: 48px; font-size: .95rem; }
.choice:has(input:checked) { border-color: var(--pcb); box-shadow: 0 0 0 1px var(--pcb); }
.choice input { accent-color: var(--pcb); width: 18px; height: 18px; }
.choice-swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); flex: none; }
.choice-bg-silk .choice-swatch { background: #f6f7f3; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 11px #0f3d2e; } .choice-font-network span { font-family: var(--sans); font-stretch: 115%; }
.choice-bg-paper .choice-swatch { background: #f5f0e6; } .choice-bg-chalk .choice-swatch { background: #fff; } .choice-bg-concrete .choice-swatch { background: #e9e8e4; }
.choice-bg-graphite .choice-swatch { background: #17191b; } .choice-bg-forest .choice-swatch { background: #13211b; }
.choice-font-workshop span { font-family: 'Fraunces Variable', Georgia, serif; } .choice-font-technical span, .choice-font-bold span { font-family: 'Space Grotesk Variable', var(--sans); }
.repeat-list { list-style: none; padding: 0; margin: 0 0 10px; display: grid; gap: 12px; }
.repeat-row { border: 1px solid var(--line); border-radius: 10px; padding: 14px; background: var(--silk); }
.repeat-row .field { margin-bottom: 10px; }
.gallery-pick { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gallery-pick li { border: 1px solid var(--line); border-radius: 10px; padding: 8px; background: var(--silk); }
.gallery-item { display: grid; gap: 6px; cursor: pointer; }
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.gallery-item input { accent-color: var(--pcb); width: 18px; height: 18px; }
.gallery-pos { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.gallery-pos input { width: 70px !important; min-height: 34px !important; padding: 4px 8px !important; }
.block-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.block-row { border: 1px solid var(--line); border-radius: 10px; background: var(--silk); padding: 6px 10px; }
.block-row.is-moved { border-color: var(--pcb); }
.block-main { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.block-move { display: flex; gap: 4px; align-items: center; }
.pos-input { width: 60px !important; min-height: 36px !important; padding: 4px 6px !important; text-align: center; }
.js .pos-input { display: none; }
.block-text { padding: 8px 0 6px; }

/* ---------- Checkout ---------- */
.checkout-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 640px; }
.checkout-step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; }
.checkout-step .spec .is-total dd, .checkout-step .spec .is-total dt { font-weight: 800; color: var(--ink); }
.stripe-slot { margin-bottom: 14px; min-height: 40px; }
.checkout-msg { margin-top: 14px; font-weight: 650; }
.checkout-msg[data-tone="error"] { color: var(--red); }
.checkout-msg[data-tone="ok"] { color: var(--ok); }

/* ==========================================================================
   Shop pages — themed by --shop-* custom properties (contrast-checked server-side)
   ========================================================================== */
.page-shop { background: var(--shop-bg, var(--silk)); }
.network-bar { background: var(--pcb); color: var(--on-pcb); }
.network-bar-inner { display: flex; justify-content: space-between; align-items: center; min-height: 48px; gap: 12px; }
.network-back { color: var(--on-pcb-muted); font-size: .92rem; font-weight: 600; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.network-back:hover { color: var(--gold); }
.network-back svg { width: 18px; height: 18px; transform: scaleX(-1); }
.site { background: var(--shop-bg); color: var(--shop-ink); font-family: var(--shop-body); }
.site h1, .site h2, .site h3, .site-h2, .site-name { font-family: var(--shop-display); color: var(--shop-ink); font-stretch: 100%; }
.site.font-network h1, .site.font-network h2, .site.font-network h3, .site.font-network .site-name, .site.font-network .site-h2 { font-stretch: 118%; }
.site a { color: var(--shop-accent); }
.site .muted, .site-muted { color: var(--shop-muted); }
.preview-banner { margin: 0; padding: 10px var(--gutter); background: #1d4ed8; color: #fff; font-weight: 650; font-size: .95rem; text-align: center; }
.site-hero { border-bottom: 1px solid var(--shop-line); background: var(--shop-bg); }
.site-hero-grid { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(20px, 4vw, 52px); align-items: stretch; padding: clamp(24px, 4vw, 48px) 0; }
.site-hero-grid.is-single { grid-template-columns: minmax(0, 1fr); }
.site-hero-id { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(16px, 2.6vw, 26px); align-content: center; min-width: 0; }
.site .site-plate:not(.plate-logo) { background-color: var(--shop-accent-fill); }
.site .site-plate:not(.plate-logo) > span { color: var(--shop-on-accent); }
.site-hero-text { min-width: 0; }
.site-place { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .95rem; font-weight: 600; color: var(--shop-muted); margin: 4px 0 10px; }
.site-place span { display: inline-flex; gap: 6px; align-items: center; }
.site-place svg { width: 18px; height: 18px; color: var(--shop-accent); flex: none; }
.site-name { font-size: clamp(2.2rem, 5vw, 3.9rem); line-height: 1; letter-spacing: -0.015em; margin-bottom: 12px; font-weight: 800; }
.site.font-network .site-name { font-stretch: 122%; letter-spacing: -0.025em; }
.site-tagline { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--shop-ink); max-width: 40rem; margin-bottom: 0; }
.site-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 22px 0 16px; }
.site-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 10px; border: 1.5px solid var(--shop-line); color: var(--shop-ink) !important; background: var(--shop-surface); font: 650 .98rem var(--shop-body); text-decoration: none; }
.site-btn svg { width: 19px; height: 19px; flex: none; }
.site-btn:hover { border-color: var(--shop-accent); text-decoration: none; }
.site-btn-primary { background: var(--shop-accent-fill); border-color: var(--shop-accent-fill); color: var(--shop-on-accent) !important; }
.site-btn-primary:hover { filter: brightness(.95); border-color: var(--shop-accent-fill); }
.site-btn-quiet { background: transparent; }
.site-btn-block { width: 100%; justify-content: center; }
.site-status { display: grid; gap: 10px; }
.community-note { margin: 0; font-size: .92rem; color: var(--shop-muted); max-width: 44rem; padding: 10px 14px; border-radius: 10px; background: var(--shop-surface); border: 1px solid var(--shop-line); }
.community-note strong { color: var(--shop-ink); }
.site-hero-media { margin: 0; display: grid; gap: 8px; min-width: 0; align-self: center; }
.site-hero-media img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--shop-line); }
.site-hero-media.is-photo img { object-fit: cover; aspect-ratio: 4 / 3; }
.site-hero-media.is-banner img { object-fit: contain; max-height: 380px; }
.site-hero-media figcaption { font-size: .82rem; color: var(--shop-muted); }
.site-hero-map { min-height: 340px; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--shop-line); background: var(--map-water); position: relative; isolation: isolate; }
.site-hero-map-canvas { position: absolute; inset: 0; }
.site-hero-map .map-note, .site-hero-map .map-legend { position: absolute; left: 12px; z-index: 500; margin: 0; padding: 5px 11px; border-radius: 999px; background: rgba(11, 44, 33, .9); color: var(--on-pcb); font: 650 .8rem/1.3 var(--sans); max-width: calc(100% - 70px); }
.site-hero-map .map-note { top: 12px; left: 60px; }
.site-hero-map .map-legend { bottom: 12px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; max-width: calc(100% - 24px); }
.site-hero-map:has(.leaflet-control-attribution) .map-legend { bottom: 30px; }
.map-legend .key { display: inline-block; width: 11px; height: 11px; border-radius: 50%; }
.map-legend .key-self { background: var(--gold); box-shadow: 0 0 0 2px var(--pcb-deep), 0 0 0 3.5px var(--gold); }
.map-legend .key-near { background: #cfe3d8; margin-left: 8px; }
.rail-where .map-note, .rail-where .map-legend { font-size: .86rem; color: var(--shop-muted); margin: 6px 0 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rail-where .map-legend .key-near { background: #7f9c8d; }
.ew-pad.is-self { box-shadow: 0 0 0 2px var(--gold), 0 0 0 9px rgba(240, 180, 41, .28), 0 4px 10px rgba(0,0,0,.45); }
.ew-pad.is-self { overflow: visible; }
.ew-self-label { position: absolute; left: calc(100% + 10px); top: 50%; transform: translateY(-50%); white-space: nowrap; padding: 3px 9px; border-radius: 6px; background: var(--gold); color: var(--pcb-deep); font: 800 12px/1.3 var(--sans); font-stretch: 110%; box-shadow: 0 3px 8px rgba(0,0,0,.4); pointer-events: none; }
.ew-dot { border-radius: 50%; background: #cfe3d8; border: 2.5px solid var(--pcb-deep); box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer; }
.ew-dot:hover, .ew-dot:focus-visible { background: #fff; transform: scale(1.2); }
.site-nav { position: sticky; top: 0; z-index: 10; background: var(--shop-bg); border-bottom: 1px solid var(--shop-line); }
.site-nav ul { list-style: none; margin: 0 auto; padding: 0; width: min(100% - 2 * var(--gutter), var(--wrap)); display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.site-nav a { display: inline-flex; align-items: center; min-height: 50px; padding: 0 12px; color: var(--shop-muted); text-decoration: none; font-weight: 650; white-space: nowrap; }
.site-nav a:hover { color: var(--shop-ink); box-shadow: inset 0 -3px 0 var(--shop-accent); }
.site-body { width: min(100% - 2 * var(--gutter), var(--wrap)); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: clamp(28px, 5vw, 64px); padding: clamp(28px, 4vw, 48px) 0 64px; }
.site-section { padding: 0 0 clamp(32px, 4vw, 48px); margin-bottom: clamp(32px, 4vw, 48px); border-bottom: 1px solid var(--shop-line); scroll-margin-top: 60px; }
.site-section-tight { padding-bottom: 24px; margin-bottom: 24px; }
.site-eyebrow { font-size: .9rem; font-weight: 700; color: var(--shop-accent); margin: 0 0 6px; }
.site-h2 { font-size: clamp(1.55rem, 2.8vw, 2.1rem); margin-bottom: 16px; font-weight: 750; }
.site-h2-small { font-size: 1.15rem; margin-bottom: 12px; }
.site-small { font-size: .88rem; margin: 10px 0 0; }
.empty-note { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--shop-line); color: var(--shop-muted); }
.empty-note svg { width: 26px; height: 26px; color: var(--shop-accent); }
.empty-note p { margin: 0; }
.site-h3 { font-size: 1.15rem; margin: 22px 0 10px; }
.site-prose { font-size: 1.07rem; line-height: 1.7; max-width: 44rem; }
.site-lead { font-size: 1.2rem; line-height: 1.6; }
.site-spec { font-size: .95rem; color: var(--shop-muted); }
.site-spec span { font-weight: 700; margin-right: 8px; color: var(--shop-ink); }
.site-note { font-size: .92rem; color: var(--shop-muted); border-left: 3px solid var(--shop-line); padding-left: 12px; }
.site-link { font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.site-link svg { width: 18px; height: 18px; flex: none; }
.service-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.service-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--shop-line); border-radius: 10px; background: var(--shop-surface); font-weight: 600; }
.service-list li::before { content: ''; width: 9px; height: 9px; border-radius: 50%; background: var(--shop-accent-fill); box-shadow: 0 0 0 3px color-mix(in srgb, var(--shop-accent-fill) 25%, transparent); flex: none; }
.specialty-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.specialty-list li { padding: 12px 16px; background: var(--shop-surface); border: 1px solid var(--shop-line); border-left: 4px solid var(--shop-accent-fill); border-radius: 10px; }
.ride-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ride-list li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border: 1px solid var(--shop-line); border-radius: 999px; background: var(--shop-surface); font-weight: 650; }
.ride-list svg { width: 28px; height: 28px; color: var(--shop-accent); }
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.gallery figure { margin: 0; aspect-ratio: 4/3; overflow: hidden; border-radius: 10px; background: var(--shop-surface); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 18px; }
.team-member { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: start; }
.team-photo, .team-initials { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.team-initials { display: grid; place-items: center; background: var(--shop-surface); border: 1px solid var(--shop-line); font-family: var(--shop-display); font-weight: 700; color: var(--shop-accent); font-size: 1.3rem; }
.team-member h3 { font-size: 1.1rem; margin-bottom: 2px; }
.team-role { color: var(--shop-muted); font-size: .92rem; margin-bottom: 6px; }
.faq summary { color: var(--shop-ink); }
.faq .site-prose { margin-top: 10px; }
.review-summary { font-size: 1.05rem; }
.review-summary strong { font-family: var(--shop-display); font-size: 1.8rem; margin-right: 4px; }
.reviews { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.review { background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: var(--r); padding: 18px 20px; }
.review h3 { font-size: 1.12rem; margin-bottom: 6px; }
.review-rating { color: var(--shop-accent); letter-spacing: 2px; margin-bottom: 6px; font-size: 1.05rem; }
.review-meta { font-size: .88rem; color: var(--shop-muted); margin: 0; }
.verified-job { font-weight: 700; color: var(--shop-ink); display: inline-flex; align-items: center; gap: 4px; }
.verified-job svg { width: 15px; height: 15px; color: var(--shop-accent); }
.review-response { margin-top: 12px; padding: 12px 14px; border-left: 3px solid var(--shop-accent); background: var(--shop-bg); }
.review-response-head { font-weight: 700; font-size: .9rem; margin-bottom: 4px; }
.review-report { margin: 8px 0 0; font-size: .85rem; }
.review-report a { color: var(--shop-muted); }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.link-list a { font-weight: 650; display: inline-flex; align-items: center; gap: 8px; }
.link-list svg { width: 17px; height: 17px; flex: none; }
.link-host { color: var(--shop-muted); font-weight: 400; font-size: .9rem; margin-left: 6px; }
.site-contact { border-bottom: 0; }
.inquiry-form { background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: var(--r); padding: clamp(18px, 3vw, 28px); margin-bottom: 20px; }
.site .field label { color: var(--shop-ink); }
.site .hint { color: var(--shop-muted); }
.site input:not([type="checkbox"]):not([type="radio"]), .site select, .site textarea { background: var(--shop-bg); color: var(--shop-ink); border-color: var(--shop-line); }
.site .check input { accent-color: var(--shop-accent-fill); }
.form-footnote { font-size: .88rem; color: var(--shop-muted); margin: 12px 0 0; }
.contact-list { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; }
.contact-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--shop-line); border-radius: 10px; background: var(--shop-surface); }
.contact-k { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--shop-bg); color: var(--shop-accent); font-size: .74rem; font-weight: 700; }
.contact-k svg { width: 20px; height: 20px; }
.contact-v { display: grid; min-width: 0; }
.contact-v small { color: var(--shop-muted); font-size: .8rem; font-weight: 600; }
.contact-list a { font-weight: 650; word-break: break-word; }
.site-rail { display: grid; gap: 16px; align-content: start; position: sticky; top: 64px; }
.rail-card { background: var(--shop-surface); border: 1px solid var(--shop-line); border-radius: var(--r); padding: 18px; }
.rail-h { font: 750 1rem/1.3 var(--shop-body) !important; color: var(--shop-ink) !important; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.rail-h svg { width: 19px; height: 19px; color: var(--shop-accent); }
.rail-maps { display: block; font-size: .86rem; font-weight: 600; margin-top: 4px; }
.rail-card .spec > div { border-color: var(--shop-line); grid-template-columns: 96px 1fr; }
.rail-card .spec dt { color: var(--shop-muted); }
.rail-map { height: 220px; border-radius: 10px; overflow: hidden; margin: 0 0 4px; background: var(--map-water); position: relative; isolation: isolate; }
.rail-note { font-size: .9rem; color: var(--shop-muted); margin: 8px 0 0; }
.rail-trust p { font-size: .95rem; }
.hours > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--shop-line); }
.hours dt { font-weight: 650; } .hours dd { margin: 0; color: var(--shop-muted); }
.rail-cta:empty { display: none; }
.site-foot { border-top: 1px solid var(--shop-line); padding: 24px var(--gutter); text-align: center; font-size: .9rem; color: var(--shop-muted); }
.site-foot p { margin: 0; }
.site.is-dark .badge-verified { background: #1d3a2e; color: #a6dcc1; border-color: #2d5544; }
.site.is-dark .badge-og { background: #2c2440; color: #cdbdf0; border-color: #463a64; }
.site.is-dark .badge-hp { background: #3a2e12; color: #f3cf7a; border-color: #5b4a1f; }

/* Layout variants */
.layout-split .site-hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.layout-compact .site-hero-grid { grid-template-columns: minmax(0, 1fr); }
.layout-compact .site-hero-map { display: none; }
.layout-compact .site-name { font-size: clamp(2rem, 4vw, 3rem); }
.layout-compact .site-body { grid-template-columns: minmax(260px, 340px) minmax(0, 1fr); }
.layout-compact .site-rail { order: -1; }

/* ---------- Paired brand (eRideRepair) ----------
   The rider-facing sister site inverts the network palette: a gold field with PCB-green ink. */
.masthead-repair { background: var(--pcb-deep); }
.flash-repair { background: #fff4d6; color: #6b4b00; border-bottom-color: #f1d488; }
.repair-hero { background: var(--gold) url('/static/img/traces-light.svg') 0 0 / 260px; color: var(--pcb-deep); padding: clamp(36px, 5vw, 72px) 0; border-bottom: 1px solid #d99c12; }
.repair-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.repair-hero h1 { color: var(--pcb-deep); font-size: clamp(2.6rem, 6vw, 5rem); line-height: .95; font-weight: 850; font-stretch: 125%; letter-spacing: -0.025em; margin-bottom: .4em; max-width: 11ch; }
.repair-hero .lede { color: #2a2410; font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 32rem; }
.repair-facts { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.repair-facts li { padding: 8px 14px; border-radius: 999px; background: rgba(11, 44, 33, .1); font-weight: 650; font-size: .95rem; color: #2a2410; }
.repair-facts strong { color: var(--pcb-deep); font-weight: 850; font-stretch: 115%; margin-right: 2px; }
.repair-finder { background: var(--card); border-radius: var(--r-lg); padding: clamp(18px, 2.6vw, 28px); box-shadow: 0 24px 50px -24px rgba(60, 40, 0, .55), 0 2px 0 rgba(11, 44, 33, .08); color: var(--ink); }
.repair-finder h2 { font-size: clamp(1.4rem, 2.4vw, 1.8rem); margin-bottom: 14px; color: var(--ink); }
.repair-finder .finder-rides legend { color: var(--ink); }
.repair-finder .ride-toggle span { background: var(--card); color: var(--ink); border-color: var(--line-strong); }
.repair-finder .ride-toggle svg { color: var(--pcb); }
.repair-finder .ride-toggle input:hover + span { border-color: var(--pcb); }
.repair-finder .ride-toggle input:checked + span { background: var(--pcb); border-color: var(--pcb); color: #fff; }
.repair-finder .ride-toggle input:checked + span svg { color: var(--gold); }
.repair-finder .ride-toggle input:focus-visible + span { outline-color: var(--pcb); }
.finder-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.finder-two .field { margin-bottom: 12px; }
.repair-finder .check { margin-bottom: 14px; }
.repair-finder .btn svg { width: 20px; height: 20px; color: var(--gold); }
.finder-note { margin: 10px 0 0; font-size: .86rem; color: var(--muted); }
.symptom-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.symptom { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: grid; transition: border-color .15s, box-shadow .15s; }
.symptom:hover { border-color: var(--pcb); box-shadow: var(--shadow); }
.symptom-main { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 14px; align-items: center; padding: 16px; color: var(--ink); text-decoration: none; }
.symptom-main:hover strong { color: var(--link); }
.symptom-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--gold); color: var(--pcb-deep); display: grid; place-items: center; }
.symptom-icon svg { width: 30px; height: 30px; }
.symptom-text { display: grid; gap: 2px; }
.symptom-text strong { font-size: 1.08rem; line-height: 1.25; font-stretch: 108%; }
.symptom-text span { color: var(--muted); font-size: .9rem; }
.symptom-guide { border-top: 1px solid var(--line); padding: 10px 16px; font-size: .88rem; font-weight: 600; color: var(--link); }
.section-tint { background: var(--mat); }
.section + .section-tint, .section-tint + .section { padding-top: clamp(52px, 7vw, 96px); }
.before-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(24px, 5vw, 64px); align-items: start; }
.before-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.before-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.before-list svg { width: 44px; height: 44px; padding: 9px; border-radius: 12px; background: var(--mat); color: var(--pcb); }
.before-list h3 { font-size: 1.12rem; margin-bottom: 4px; }
.before-list p { margin: 0; color: var(--ink-2); }
.owner-grid-solo { grid-template-columns: minmax(0, 46rem); }
.site-footer-repair { background: var(--pcb-deep); padding-top: 8px; }
.site-footer-repair .footer-base { margin-top: 0; border-top: 0; align-items: center; }
.site-footer-repair .wordmark { display: inline-flex; padding: 0; }
.site-footer-repair p { margin: 0; }
.site-footer-repair p a { display: inline; padding: 0; text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .filter-bar { grid-template-columns: minmax(0, 1fr) auto; }
  .filter-bar .field-grow { grid-column: 1 / -1; }
  .filter-bar .field-near { order: 1; }
  .filter-actions { order: 2; }
  .filter-extra { order: 3; }
  .js .filter-more { display: inline-flex; }
  .js .filter-extra { display: none; grid-column: 1 / -1; }
  .js .filter-bar.is-open .filter-extra { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; }
  .js .filter-extra .field { flex: 1 1 220px; }
  .filter-more[aria-expanded="true"] { background: var(--mat); border-color: var(--pcb); }
  .directory-grid { grid-template-columns: minmax(0, 1fr); }
  .map-panel { position: static; display: none; }
  .js .map-toggle { display: inline-flex; position: fixed; z-index: 900; left: 50%; bottom: 18px; transform: translateX(-50%); align-items: center; gap: 8px; min-height: 48px; padding: 10px 22px; border-radius: 999px; border: 0; background: var(--pcb); color: #fff; font: 700 1rem var(--sans); box-shadow: 0 10px 30px rgba(0,0,0,.35); cursor: pointer; }
  .js .map-toggle svg { width: 20px; height: 20px; color: var(--gold); }
  .show-map .map-panel { display: block; position: fixed; inset: 0; z-index: 800; padding: 0; }
  .show-map .map-frame { height: 100%; border-radius: 0; border: 0; }
  .show-map .map { height: 100%; max-height: none; min-height: 0; }
  .show-map .results { visibility: hidden; }
  .js .show-map .map-toggle { bottom: 46px; }
  .js .directory { padding-bottom: 104px; }
  .ew-map-btn { font-size: .8rem; padding: 6px 10px; }
  .js .show-on-map { display: inline-flex; }
  html:not(.js) .map-panel { display: block; }
  html:not(.js) .map { height: 320px; min-height: 0; }
  .editor-grid { grid-template-columns: minmax(0, 1fr); }
  .editor-preview { position: static; }
  .preview-frame { height: 640px; }
  .network-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hero-grid, .owner-grid, .page-head-split, .article-head.has-art, .repair-hero-grid, .before-grid, .owner-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .owner-hero-shot { margin-right: 0; }
  .owner-hero-shot figcaption { padding-right: 0; text-align: left; }
  .guide-list { grid-template-columns: minmax(0, 1fr); }
  .hero-art { aspect-ratio: 16 / 9; max-height: 360px; }
  .trust-grid { grid-template-columns: minmax(0, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-aside { position: static; }
  .site-hero-grid, .layout-split .site-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .site-hero-map { min-height: 300px; }
  .site-body, .layout-compact .site-body { grid-template-columns: minmax(0, 1fr); }
  .site-rail { position: static; order: 0; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .dash-side { min-width: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 16px var(--gutter); }
  .dash-nav { display: flex; overflow-x: auto; gap: 4px; margin-bottom: 8px; }
  .dash-nav a { white-space: nowrap; }
  .dash-grid-wide { grid-template-columns: minmax(0, 1fr); }
  .inbox-item a { grid-template-columns: 1fr auto; }
  .inbox-what { grid-column: 1 / -1; grid-row: 2; }
}
@media (max-width: 720px) {
  body { font-size: 1rem; }
  .masthead-inner { padding-block: 10px; }
  .js .masthead .nav-toggle { display: inline-flex; color: var(--on-pcb); border-color: var(--trace); }
  .js .primary-nav { display: none; width: 100%; }
  .js .primary-nav.is-open { display: grid; grid-template-columns: 1fr; gap: 4px; padding-bottom: 12px; }
  .primary-nav { width: 100%; }
  .primary-nav .nav-signin { margin-left: 0; justify-content: center; }
  .filter-bar { grid-template-columns: minmax(0, 1fr); }
  .filter-actions .btn { flex: 1 1 0; }
  .finder-two { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .filter-checks { flex-wrap: wrap; }
  .directory-head { padding: 16px 0 14px; }
  .directory-head h1 { margin-bottom: 10px; }
  .finder-row { grid-template-columns: minmax(0, 1fr); }
  .shop-card { grid-template-columns: 52px minmax(0, 1fr); padding: 14px; }
  .shop-card .plate-md { width: 52px; height: 52px; } .shop-card .plate-md span { font-size: 1.05rem; }
  .site-hero-id { grid-template-columns: minmax(0, 1fr); }
  .plate-lg { width: 64px; height: 64px; border-radius: 14px; } .plate-lg span { font-size: 1.45rem; }
  .site-hero-id { gap: 14px; }
  .site-hero-map { min-height: 300px; }
  .service-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .service-list li { padding: 10px 10px; font-size: .92rem; gap: 8px; }
  .site-actions .site-btn { flex: 1 1 auto; justify-content: center; }
  .spec > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .table { display: block; overflow-x: auto; }
  .preview-frame.is-mobile iframe { width: 100%; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
  .editor-bar { flex-wrap: wrap; gap: 8px; }
  .preview-bar, .block-main, .editor-foot { flex-wrap: wrap; }
  .block-move { margin-left: auto; }
  .editor-foot .btn { flex: 1 1 auto; }
}
@media (max-width: 400px) {
  .input-with-action { flex-wrap: wrap; }
  .input-with-action input { flex-basis: 100%; }
  .input-with-action button { width: 100%; }
}
.dash-side, .editor-form, .editor-preview, .editor-grid > *, .preview-frame iframe { min-width: 0; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media print {
  .masthead, .site-footer, .network-bar, .site-nav, .inquiry-form, .site-rail .rail-cta, .map-panel, .map-toggle, .site-hero-map { display: none; }
}

.estimate .mono, .table .mono { overflow-wrap: anywhere; }
[data-add-clause] { display: none; } .js [data-add-clause] { display: inline-flex; } .js [data-added-clause].is-unused { display: none; }

/* Refinements for the shop membership preview. */
.owner-hero h1 { max-width: 14ch; }
.owner-hero-copy .lede { max-width: 39rem; }
.plans > .lede-small { max-width: 48rem; margin-bottom: 28px; }
@media (max-width: 900px) { .hero h1 { max-width: 16ch; } }

/* Service workspace: compact stages and a clear daily overview. */
.crm-metrics { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 16px; margin: 26px 0 34px; }
.crm-metric { min-width: 0; padding: 22px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.crm-metric .eyebrow { margin: 0 0 14px; font-size: .76rem; line-height: 1.4; }
.crm-metric-number { margin: 0; color: var(--pcb); font-size: clamp(2.5rem, 4vw, 3.6rem); font-weight: 800; font-stretch: 108%; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.crm-metric-number span { color: var(--line-strong); font-weight: 400; padding-inline: 3px; }
.crm-metric-note { margin: 12px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.crm-metric-attention { border-color: var(--amber-line); background: var(--amber-tint); }
.crm-metric-attention .crm-metric-number { color: var(--amber-ink); }
.crm-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; margin-bottom: 20px; }
.crm-stage { min-width: 0; min-height: 112px; display: flex; flex-direction: column; gap: 10px; padding: 12px; border: 1px solid var(--line); border-top: 3px solid var(--line-strong); border-radius: 10px; background: var(--mat); }
.crm-stage--awaiting_approval, .crm-stage--awaiting_parts { border-top-color: var(--gold); }
.crm-stage--repairing, .crm-stage--quality_check { border-top-color: var(--pcb); }
.crm-stage--ready { border-top-color: var(--ok); }
.crm-stage-head { display: flex; align-items: start; justify-content: space-between; gap: 8px; padding: 1px 0 3px; }
.crm-stage-head h3 { margin: 0; font-size: .9rem; font-stretch: 100%; line-height: 1.35; }
.crm-stage-count { flex: 0 0 auto; min-width: 24px; padding: 2px 6px; border-radius: 6px; background: var(--card); color: var(--ink-2); text-align: center; font: 650 .75rem/1.4 var(--sans); font-variant-numeric: tabular-nums; }
.crm-job-card { min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); overflow-wrap: anywhere; }
.crm-job-card h4 { margin: 6px 0 0; font-size: .98rem; font-weight: 700; font-stretch: 100%; line-height: 1.3; text-wrap: pretty; }
.crm-job-card h4 a { color: var(--ink); text-decoration: none; }
.crm-job-card h4 a:hover { color: var(--link); text-decoration: underline; }
.crm-job-customer { margin: 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.crm-job-date { margin: 10px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.4; }
.crm-job-date.error { color: var(--red); }
.crm-job-card .state { margin: 8px 0 0; font-size: .72rem; }
.crm-stage-empty { margin: 4px 0 8px; color: var(--muted); font-size: .82rem; line-height: 1.4; }
@media (max-width: 1100px) { .crm-board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .crm-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-block: 22px 28px; }
  .crm-metric { padding: 18px; }
  .crm-metric:last-child { grid-column: 1 / -1; }
  .crm-metric .eyebrow { margin-bottom: 12px; }
  .crm-board { gap: 10px; }
}
@media (max-width: 480px) { .crm-board { grid-template-columns: minmax(0, 1fr); } }
