/* Volvo P3 Garage — light Nordic design.
   White and warm-grey surfaces, near-black type, one teal accent, pill
   buttons and generous space. Every class the templates use lives here. */

:root {
    --bg: #0f1316;
    --surface: #161c21;
    --surface-2: #1c242a;
    --card: #141a1e;
    --field: #11171b;
    --header-bg: rgba(15, 19, 22, 0.86);
    --ink: #eef1f3;
    --ink-2: #c3cad0;
    --on-ink: #0f1316;
    --muted: #8d98a1;
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(255, 255, 255, 0.17);
    --accent: #8fc3d2;
    --accent-soft: rgba(143, 195, 210, 0.12);
    --gold: #d6b25e;
    --danger: #ff8a75;
    --danger-soft: rgba(255, 110, 90, 0.12);
    --warning: #f2c063;
    --warning-soft: rgba(242, 192, 99, 0.12);
    --success: #6fd49b;
    --success-soft: rgba(111, 212, 155, 0.12);
    --shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
    --radius: 6px;
    --radius-sm: 4px;
    --max-width: 1280px;
    --font: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Inter, "Segoe UI", system-ui, sans-serif;
    --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
    --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font);
    font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; }
h1, h2, h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.2vw, 3.6rem); margin: 0.4rem 0 1rem; }
h2 { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
h3 { font-size: 1.2rem; }
::selection { background: rgba(143,195,210,0.3); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

.container { width: min(var(--max-width), calc(100% - 3rem)); margin: 0 auto; }
.container-narrow { width: min(900px, calc(100% - 3rem)); }
.container-form { width: min(560px, calc(100% - 3rem)); }
.muted, .field-help { color: var(--muted); }

/* ── Header ──────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: var(--header-bg); backdrop-filter: saturate(180%) blur(18px);
    -webkit-backdrop-filter: saturate(180%) blur(18px);
    border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 0.75rem; flex: none; }
.brand-logo { width: 34px; height: 34px; display: block; }
.brand strong { font-weight: 600; font-size: 1.02rem; letter-spacing: -0.01em; }
.brand small { display: none; }
.nav-links { display: flex; align-items: center; gap: 0.3rem 1.5rem; font-size: 0.95rem; }
.nav-links a:not(.button), .nav-links .link-button { color: var(--ink-2); transition: color 0.15s ease; }
.nav-links a:not(.button):hover, .nav-links .link-button:hover { color: var(--ink); }
.nav-links .link-button { text-decoration: none; }
.nav-user { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 500; }
.nav-toggle {
    display: none; width: 44px; height: 44px; border: 0; background: none; cursor: pointer;
    align-items: center; justify-content: center; margin-right: -10px; color: var(--ink);
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 20px; height: 1.6px; background: currentColor; position: relative;
    transition: transform 0.25s var(--ease), background 0.2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ── Buttons and links ───────────────────────────────────────────── */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
    min-height: 46px; padding: 0.75rem 1.5rem; border-radius: 999px; cursor: pointer;
    border: 1px solid var(--ink); background: var(--ink); color: var(--on-ink);
    font: inherit; font-weight: 500; font-size: 0.97rem; line-height: 1.2;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s var(--ease);
}
.button:hover { background: #ffffff; border-color: #ffffff; }
.button:active { transform: scale(0.98); }
.button svg { transition: transform 0.25s var(--ease); }
.button:hover svg { transform: translateX(3px); }
.button-secondary { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button-secondary:hover { background: rgba(255,255,255,0.05); border-color: var(--ink-2); }
.button-light { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.button-light:hover { background: #fff; border-color: #fff; }
.button-ghost-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.button-ghost-light:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.button-danger { background: transparent; color: var(--danger); border-color: rgba(185,58,38,0.45); }
.button-danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.button-small { min-height: 36px; padding: 0.4rem 1rem; font-size: 0.9rem; }
.button[disabled] { opacity: 0.45; cursor: not-allowed; transform: none; }
.button.is-on { border-color: var(--success); color: var(--success); background: var(--success-soft); }
.button-hero { min-height: 52px; padding: 0.9rem 1.8rem; font-size: 1.02rem; }
.link-button {
    background: none; border: 0; padding: 0; min-height: 0; cursor: pointer;
    color: var(--muted); font: inherit; text-decoration: underline; text-underline-offset: 3px;
}
.link-button:hover { color: var(--ink); }
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.home-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 500; color: var(--ink); }
.home-link::after { content: "→"; transition: transform 0.25s var(--ease); }
.home-link:hover::after { transform: translateX(4px); }
.back-link { display: inline-flex; margin-bottom: 1.2rem; color: var(--muted); font-size: 0.95rem; }
.back-link:hover { color: var(--ink); }
.inline-form { display: inline; }

/* ── Page structure ──────────────────────────────────────────────── */
.section { padding: 2.5rem 0 5rem; }
.section-tight { padding-top: 0; padding-bottom: 2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading-stack { flex-direction: column; align-items: flex-start; }
.section-heading h1, .section-heading h2 { margin: 0.3rem 0 0; }
.section-heading p { color: var(--muted); margin: 0.4rem 0 0; }
.subheading { margin: 2.4rem 0 1rem; font-size: 1.25rem; }
.eyebrow {
    display: inline-block; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
    text-transform: uppercase; color: var(--muted);
}
.hero { padding: 4.5rem 0 2.5rem; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: end; }
.hero h1 { font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -0.035em; margin: 0.9rem 0 1rem; }
.hero-copy { color: var(--muted); font-size: 1.1rem; max-width: 36rem; margin: 0; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.8rem; margin-top: 2rem; }

/* ── Surfaces ────────────────────────────────────────────────────── */
.problem-card, .detail-card, .form-card, .empty-state {
    background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem;
}
.form-card + .form-card { margin-top: 1.4rem; }
.filter-panel, .stat-card { background: var(--surface); border-radius: var(--radius); }
.stat-grid, .card-grid, .form-grid { display: grid; gap: 1rem; }
.stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-card { padding: 1.2rem 1.3rem; }
.stat-card span { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.stat-card strong { display: block; margin-top: 0.3rem; font-size: 2.2rem; font-weight: 500; letter-spacing: -0.03em; }
.card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.problem-card { transition: border-color 0.2s ease, transform 0.25s var(--ease), box-shadow 0.25s var(--ease); }
.problem-card:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.problem-card-top, .meta-row, .form-actions { display: flex; align-items: center; justify-content: space-between; gap: 0.8rem; flex-wrap: wrap; }
.problem-card h3 { margin: 1rem 0 0.6rem; font-size: 1.18rem; font-weight: 500; }
.problem-card h3 a:hover { color: var(--accent); }
.meta-row { justify-content: flex-start; margin-top: 1rem; font-size: 0.92rem; color: var(--muted); }
.detail-block { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--line); }
.detail-block h2 { margin: 0 0 0.6rem; font-size: 1.1rem; font-weight: 600; letter-spacing: -0.01em; }
.prose { max-width: 46rem; }
.prose h2 { margin-top: 2.6rem; font-size: 1.45rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin: 0.4rem 0; }
.prose p, .prose li { color: var(--ink-2); }

/* ── Forms ───────────────────────────────────────────────────────── */
.filter-panel { display: grid; grid-template-columns: 2fr repeat(4, 1fr) auto; gap: 1rem; padding: 1.2rem; }
.filter-panel-oem { grid-template-columns: 2fr 1fr 1fr auto; }
.filter-panel input, .filter-panel select { background: var(--field); }
.form-stack { display: grid; gap: 1.15rem; }
.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; }
.field-span-2 { grid-column: span 2; }
.field-group { display: grid; gap: 0.4rem; }
.field-group label { font-size: 0.92rem; font-weight: 500; color: var(--ink-2); }
.field-help { font-size: 0.86rem; }
.field-actions { align-self: end; }
.form-actions { justify-content: flex-start; gap: 1rem 1.4rem; }
.form-actions-start { justify-content: flex-start; }
.form-card > .form-actions, .form-card > .field-help { margin-top: 1.2rem; }
input, select, textarea {
    width: 100%; min-height: 48px; padding: 0.75rem 0.95rem; font: inherit; font-size: 1rem;
    color: var(--ink); background: var(--field); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
    outline: none; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #66717a; }
input:hover, select:hover, textarea:hover { border-color: rgba(255,255,255,0.28); }
input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea { min-height: 132px; resize: vertical; }
input[type="file"] { padding: 0.6rem 0.8rem; }
input[type="checkbox"], input[type="radio"] { width: auto; min-height: 0; }
.vin-input, .mono { font-family: var(--mono); letter-spacing: 0.05em; }
.vin-input { text-transform: uppercase; }
.vin-input::placeholder { text-transform: none; letter-spacing: 0; }
.inline-fields { display: flex; flex-wrap: wrap; align-items: end; gap: 1rem; margin-top: 1.2rem; }
.inline-fields .field-group { flex: 1 1 180px; }
.notice-form { margin-top: 0.9rem; }
.comment-form, .service-form { margin: 1.2rem 0; }
.cancel-row { margin-top: 1.6rem; }
details summary { cursor: pointer; font-weight: 500; color: var(--accent); }
.details-body { margin-top: 1rem; }

/* ── Tags, badges, messages ──────────────────────────────────────── */
.chip {
    display: inline-flex; align-items: center; padding: 0.3rem 0.7rem; border-radius: 999px;
    font-size: 0.85rem; background: var(--surface); color: var(--ink-2);
}
.chip-model { background: var(--accent-soft); color: var(--accent); }
.chip-count { background: var(--warning-soft); color: var(--warning); }
.chip-engine { background: var(--surface-2); }
.part-number-chip { font-family: var(--mono); background: var(--accent-soft); color: var(--accent); }
.part-number-display { font-family: var(--mono); font-weight: 600; color: var(--accent); font-size: 0.92rem; margin: 0 0 0.35rem; }
.badge, .role-badge, .status-pill {
    display: inline-flex; align-items: center; padding: 0.22rem 0.6rem; border-radius: 999px; white-space: nowrap;
    font-size: 0.76rem; font-weight: 600; letter-spacing: 0.02em; background: var(--surface); color: var(--muted);
}
.badge { text-transform: uppercase; letter-spacing: 0.06em; }
.badge-low { background: var(--success-soft); color: var(--success); }
.badge-medium { background: var(--warning-soft); color: var(--warning); }
.badge-high { background: var(--danger-soft); color: var(--danger); }
.role-verified_owner, .status-approved { background: var(--success-soft); color: var(--success); }
.role-admin, .role-moderator, .role-specialist { background: var(--accent-soft); color: var(--accent); }
.status-rejected { background: var(--danger-soft); color: var(--danger); }
.status-pending_review, .status-transfer_pending { background: var(--warning-soft); color: var(--warning); }
.flash-stack { margin-top: 1.2rem; display: grid; gap: 0.6rem; }
.flash { padding: 0.9rem 1.1rem; border-radius: var(--radius-sm); font-size: 0.97rem; }
.flash-success { background: var(--success-soft); color: #bfeccf; }
.flash-error { background: var(--danger-soft); color: #ffd0c6; }
.notice { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin-bottom: 1rem; background: var(--surface); }
.notice p { margin: 0.35rem 0 0; }
.notice a { text-decoration: underline; }
.notice-warn { background: var(--warning-soft); }
.ai-verdict { padding: 1.1rem 1.2rem; border-radius: var(--radius-sm); line-height: 1.65; white-space: pre-wrap; font-size: 0.95rem; }
.ai-verdict-pass { background: var(--success-soft); }
.ai-verdict-warn { background: var(--warning-soft); }
.check-list { list-style: none; padding: 0; margin: 0 0 0.8rem; display: grid; gap: 0.35rem; }
.check-list li::before { display: inline-block; width: 1.4rem; font-weight: 700; }
.check-yes::before { content: "✓"; color: var(--success); }
.check-no::before { content: "?"; color: var(--warning); }

/* ── Verification ────────────────────────────────────────────────── */
.code-box {
    display: grid; gap: 0.3rem; justify-items: center; text-align: center;
    padding: 1.6rem 1rem; margin: 1rem 0 1.4rem; border-radius: var(--radius);
    border: 1px dashed rgba(143,195,210,0.45); background: var(--accent-soft);
}
.code-box strong { font-family: var(--mono); font-size: clamp(1.8rem, 8vw, 2.6rem); letter-spacing: 0.12em; color: var(--accent); }
.code-box small { color: var(--muted); }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; border-radius: var(--radius-sm); display: block; }
.photo-grid figcaption { margin-top: 0.4rem; font-size: 0.9rem; color: var(--muted); }
.photo-step { margin-top: 1rem; }
.camera { display: grid; gap: 0.75rem; }
.camera-view { width: 100%; max-height: 70vh; object-fit: contain; border-radius: var(--radius-sm); background: #000; }
.camera-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.camera-actions:not(:has(button:not([hidden]))) { display: none; }

/* ── Lists, comments, admin ──────────────────────────────────────── */
.list-stack { display: grid; gap: 0.75rem; }
.list-row, .owned-car { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.list-row { padding: 1.1rem 1.3rem; }
.list-row p, .owned-car p { margin: 0.2rem 0 0; }
.owned-car { margin-bottom: 0.75rem; }
a.list-row:hover { border-color: var(--line-strong); }
.item-actions, .comment-actions, .row-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; }
.item-actions { margin-top: 1.4rem; }
.comment { padding: 1.1rem 0; border-top: 1px solid var(--line); }
.comment:first-of-type { border-top: 0; }
.comment-solution { background: var(--success-soft); border-radius: var(--radius-sm); padding: 1.1rem; margin: 0.5rem 0; border-top: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.comment-body { white-space: pre-line; overflow-wrap: anywhere; margin: 0.6rem 0; color: var(--ink-2); }
.role-form { display: flex; gap: 0.5rem; align-items: center; }
.role-form select { min-width: 190px; }
.admin-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.6rem; }
.admin-tabs a { padding: 0.5rem 1.1rem; border-radius: 999px; background: var(--surface); color: var(--ink-2); font-weight: 500; font-size: 0.95rem; }
.admin-tabs a:hover { background: var(--surface-2); }
.admin-tabs a.active { background: var(--ink); color: var(--on-ink); }
.fact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.1rem; margin: 0; }
.fact-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1rem; }
.fact-grid dt { font-size: 0.82rem; color: var(--muted); }
.fact-grid dd { margin: 0.15rem 0 0; font-weight: 500; overflow-wrap: anywhere; }
.fact-big { font-size: 1.5rem; }
.schedule-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.detail-block .schedule-line { padding: 0.8rem 0; border-top: 1px solid var(--line); }
.schedule-line p { margin: 0.2rem 0 0; }
.schedule-title { margin: 0; }
.interval { font-weight: 600; white-space: nowrap; }
.after-list { margin-top: 1.4rem; }
.schedule-row { display: grid; grid-template-columns: 2fr 1.2fr 1fr 1fr auto; gap: 0.75rem; align-items: end; }
.schedule-actions { display: flex; align-items: center; gap: 0.75rem; padding-bottom: 0.4rem; }
.registry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; }
.card-title { margin: 0 0 0.9rem; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 1fr) 2fr auto; gap: 0.75rem; align-items: center; padding: 0.35rem 0; }
.bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.rating { color: var(--gold); font-weight: 600; white-space: nowrap; }
.rating small { color: var(--muted); font-weight: 400; }
.rating-off { color: var(--line-strong); }
.price { color: var(--accent); font-weight: 600; white-space: nowrap; }
.account-danger { margin-top: 1.6rem; }

/* ── Footer ──────────────────────────────────────────────────────── */
.site-footer { background: #0b0e10; border-top: 1px solid var(--line); color: var(--ink-2); padding: 4rem 0 2.2rem; margin-top: 2rem; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.75rem; color: var(--ink); font-weight: 600; }
.footer-brand img { width: 34px; height: 34px; }
.footer-grid p { margin: 1rem 0 0; color: var(--muted); max-width: 22rem; }
.footer-col h3 { color: var(--muted); font-size: 0.82rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; margin: 0.4rem 0 1rem; }
.footer-col a { display: block; color: var(--ink-2); padding: 0.25rem 0; transition: color 0.15s ease; }
.footer-col a:hover { color: var(--accent-strong, #a9d8e6); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
    margin-top: 3.5rem; padding-top: 1.6rem; border-top: 1px solid var(--line); color: #6c7780; font-size: 0.86rem;
}
.footer-bottom p { margin: 0; }

/* ── Home ────────────────────────────────────────────────────────── */
.home-hero {
    position: relative; overflow: hidden; text-align: center;
    padding: clamp(3.5rem, 8vh, 6rem) 0 0;
    background: radial-gradient(120% 70% at 50% 100%, #e3e4e1 0%, #f1f1ef 45%, #fafaf9 75%, #fff 100%);
}
.hero-overline { margin: 0; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.home-hero h1 { font-size: clamp(3rem, 8vw, 6.4rem); font-weight: 500; letter-spacing: -0.045em; line-height: 0.98; margin: 1.1rem auto 1.2rem; }
.home-lead { color: var(--ink-2); font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.6; max-width: 38rem; margin: 0 auto; }
.home-actions { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 0.8rem; margin: 2.2rem 0 0; }
.hero-stage { position: relative; width: min(1100px, 100%); margin: clamp(1rem, 4vh, 2.5rem) auto 0; padding: 0 1rem; }
.hero-stage img.hero-photo { width: 100%; height: auto; display: block; }
.hero-car { width: 100%; height: auto; display: block; }
.hero-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 32%; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.65)); pointer-events: none; }
.hero-specs {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem;
    width: min(760px, calc(100% - 3rem)); margin: 0 auto; padding: 1.6rem 0 2.6rem; text-align: center;
}
.hero-specs strong { display: block; font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 500; letter-spacing: -0.02em; }
.hero-specs span { font-size: 0.85rem; color: var(--muted); }

.home-block { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.home-block-tight { padding-top: 0; }
.block-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; margin-bottom: 2.4rem; }
.block-head h2 { font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.035em; margin: 0.6rem 0 0; max-width: 22ch; }
.block-head p { margin: 0; color: var(--muted); max-width: 26rem; }

.model-tabs { display: inline-flex; gap: 0.3rem; padding: 0.3rem; border-radius: 999px; background: var(--surface); }
.model-tab {
    border: 0; background: none; font: inherit; font-weight: 500; color: var(--muted); cursor: pointer;
    padding: 0.6rem 1.3rem; border-radius: 999px; transition: background 0.2s ease, color 0.2s ease;
}
.model-tab[aria-selected="true"] { background: var(--ink); color: var(--on-ink); }
.model-panel {
    display: grid; grid-template-columns: 1.5fr 1fr; gap: 2rem; align-items: center;
    background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: clamp(1.6rem, 4vw, 3.4rem); margin-top: 1.4rem;
}
.model-panel + .model-panel { margin-top: 1.4rem; }
.js .model-panel + .model-panel { margin-top: 1.4rem; }
.model-art { position: relative; }
.model-art svg, .model-art img { width: 100%; height: auto; display: block; }
.model-kicker { margin: 0; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.model-info h3 { font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -0.035em; margin: 0.5rem 0 1.4rem; }
.model-facts { margin: 0 0 1.8rem; display: grid; gap: 0.9rem; }
.model-facts div { display: grid; grid-template-columns: 7.5rem 1fr; gap: 1rem; padding-top: 0.9rem; border-top: 1px solid var(--line-strong); }
.model-facts dt { color: var(--muted); font-size: 0.92rem; }
.model-facts dd { margin: 0; font-weight: 500; }
.model-links { display: flex; flex-wrap: wrap; gap: 0.8rem; }

.tile-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.tile {
    position: relative; display: flex; flex-direction: column; min-height: 320px; padding: 2rem;
    border-radius: 8px; background: var(--surface); border: 1px solid var(--line); overflow: hidden;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background 0.25s ease;
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); background: var(--surface-2); }
.tile-number { font-family: var(--mono); font-size: 0.85rem; color: var(--muted); }
.tile h3 { font-size: clamp(1.5rem, 2.2vw, 1.9rem); letter-spacing: -0.03em; margin: auto 0 0.6rem; }
.tile p { margin: 0; color: var(--muted); max-width: 22rem; }
.tile-arrow {
    position: absolute; top: 1.6rem; right: 1.6rem; width: 44px; height: 44px; border-radius: 50%;
    display: grid; place-items: center; background: transparent; border: 1px solid var(--line-strong); color: var(--accent);
    transition: transform 0.35s var(--ease), background 0.2s ease, color 0.2s ease;
}
.tile:hover .tile-arrow { background: var(--accent); border-color: var(--accent); color: var(--on-ink); transform: rotate(-45deg); }
.tile-icon { width: 46px; height: 46px; color: var(--ink); margin-bottom: 2.5rem; }
.more-links { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.6rem; }
.more-links a { padding: 0.6rem 1.15rem; border-radius: 999px; border: 1px solid var(--line-strong); font-weight: 500; font-size: 0.95rem; transition: border-color 0.2s ease, background 0.2s ease; }
.more-links a:hover { border-color: var(--ink); background: var(--surface); }

.dark-band { background: linear-gradient(135deg, #172027, #121a20); border: 1px solid var(--line); color: var(--ink-2); border-radius: 8px; padding: clamp(2.4rem, 6vw, 5rem); }
.dark-band .eyebrow { color: var(--muted); }
.dark-band h2 { color: var(--ink); font-size: clamp(2rem, 4vw, 3.2rem); letter-spacing: -0.035em; margin: 0.8rem 0 0.8rem; max-width: 16ch; }
.dark-band > p { color: var(--ink-2); max-width: 34rem; margin: 0; font-size: 1.08rem; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 3rem 0 2.6rem; padding: 0; list-style: none; counter-reset: step; }
.steps li { border-top: 1px solid var(--line-strong); padding-top: 1.4rem; counter-increment: step; }
.steps li::before { content: "0" counter(step); font-family: var(--mono); font-size: 0.85rem; color: var(--gold); }
.steps h3 { color: var(--ink); font-size: 1.25rem; margin: 0.8rem 0 0.5rem; }
.steps p { color: var(--muted); margin: 0; }

/* Shown on scroll. Without JavaScript everything is simply visible. */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js [data-reveal].is-visible { opacity: 1; transform: none; }
.hero-car-anim { animation: car-in 1.4s var(--ease) both; }
@keyframes car-in { from { opacity: 0; transform: translateX(-6%); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .js [data-reveal] { opacity: 1; transform: none; }
}

/* ── Smaller screens ─────────────────────────────────────────────── */
@media (max-width: 1100px) {
    .hero-grid, .filter-panel, .filter-panel-oem, .card-grid { grid-template-columns: 1fr; }
    .model-panel { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute; top: 64px; left: 0; right: 0; display: none;
        flex-direction: column; align-items: stretch; gap: 0;
        background: var(--bg); border-bottom: 1px solid var(--line); padding: 0.5rem 1.5rem 1.5rem;
        max-height: calc(100vh - 64px); overflow-y: auto; box-shadow: var(--shadow);
    }
    .nav-open .nav-links { display: flex; }
    .nav-links > a, .nav-links > form { padding: 0.95rem 0; border-bottom: 1px solid var(--line); font-size: 1.15rem; }
    .nav-links > a.button { margin-top: 1rem; border-bottom: 1px solid var(--ink); font-size: 1rem; }
    .nav-links > a.button-secondary { border-color: var(--line-strong); }
}
@media (max-width: 760px) {
    .container, .container-narrow, .container-form { width: calc(100% - 2.5rem); }
    .section-heading { flex-direction: column; align-items: flex-start; }
    .stat-grid, .form-grid { grid-template-columns: 1fr 1fr; }
    .form-grid { grid-template-columns: 1fr; }
    .field-span-2 { grid-column: span 1; }
    .hero { padding-top: 2.8rem; }
    .field-actions, .field-actions .button { width: 100%; }
    .photo-grid, .fact-grid, .fact-grid-3, .registry-grid, .schedule-row { grid-template-columns: 1fr; }
    .role-form { width: 100%; }
    .tile-grid, .steps { grid-template-columns: 1fr; }
    .tile { min-height: 240px; }
    .hero-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
    .model-facts div { grid-template-columns: 1fr; gap: 0.2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
    .footer-grid > div:first-child { grid-column: 1 / -1; }
    .dark-band { border-radius: 8px; }
}
.prose .home-actions { justify-content: flex-start; }
.prose .hero-copy { margin-bottom: 0.5rem; }

/* ── Home hero: split layout with the drawing on an engineering grid ── */
.home-hero {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    min-height: min(820px, calc(100vh - 64px)); padding: 0; text-align: left; background: none;
}
.home-hero-copy {
    padding: 4rem 3rem 4rem max(1.5rem, calc((100vw - var(--max-width)) / 2));
    display: flex; flex-direction: column; justify-content: center;
}
.eyebrow-line { display: inline-flex; align-items: center; gap: 1rem; letter-spacing: 0.26em; color: var(--ink-2); }
.eyebrow-line::before { content: ""; width: 2.2rem; height: 2px; background: var(--gold); }
.home-hero h1 { font-size: clamp(3.2rem, 6.6vw, 6rem); font-weight: 600; letter-spacing: -0.055em; line-height: 0.95; margin: 2rem 0 1.5rem; max-width: 7ch; }
.home-lead { margin: 0; max-width: 34rem; color: var(--ink-2); }
.home-actions { justify-content: flex-start; gap: 1rem 2rem; margin: 2.4rem 0 3rem; }
.button-hero { min-height: 58px; padding: 1rem 2rem; font-weight: 600; }
.spec-line { display: flex; flex-wrap: wrap; gap: 0.5rem 1.3rem; margin: 0; color: var(--muted); font-size: 0.8rem; letter-spacing: 0.24em; text-transform: uppercase; }
.spec-line span + span::before { content: "·"; margin-right: 1.3rem; color: #4d5860; }
.home-visual {
    position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center;
    background:
        radial-gradient(ellipse at 55% 50%, rgba(143,195,210,0.12), transparent 62%),
        linear-gradient(rgba(143,195,210,0.06) 1px, transparent 1px) 0 0 / 48px 48px,
        linear-gradient(90deg, rgba(143,195,210,0.06) 1px, transparent 1px) 0 0 / 48px 48px,
        #141b20;
    clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%, 0 58%);
}
.visual-label {
    position: absolute; top: 3.4rem; right: 2.6rem; margin: 0; text-align: right;
    font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.18em; line-height: 2.3; color: #8ea3aa;
}
.visual-label strong { color: var(--accent); font-weight: 400; }
.visual-car { width: 88%; margin: 3rem 0 0 8%; height: auto; }
.home-visual .hero-photo { width: 100%; height: 100%; object-fit: cover; }
.visual-foot { position: absolute; left: 12%; bottom: 2.2rem; margin: 0; font-size: 0.76rem; letter-spacing: 0.24em; text-transform: uppercase; color: #8ea3aa; }
.js .bp-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: bp-draw 2.4s var(--ease) 0.2s forwards; }
@keyframes bp-draw { to { stroke-dashoffset: 0; } }
.model-art .blueprint { width: 100%; height: auto; }
.model-art {
    border-radius: 6px; padding: 1rem;
    background:
        linear-gradient(rgba(143,195,210,0.05) 1px, transparent 1px) 0 0 / 40px 40px,
        linear-gradient(90deg, rgba(143,195,210,0.05) 1px, transparent 1px) 0 0 / 40px 40px,
        #121a1f;
}
.block-head h2 { font-weight: 600; letter-spacing: -0.045em; }
.model-info h3, .tile h3, .dark-band h2 { font-weight: 600; letter-spacing: -0.04em; }
.tile-number, .model-kicker { letter-spacing: 0.16em; }
@media (max-width: 960px) {
    .home-hero { grid-template-columns: 1fr; min-height: 0; }
    .home-hero-copy { padding: 2.6rem 1.25rem 1.5rem; }
    .home-visual { min-height: 320px; clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%, 0 40%); }
    .visual-label { top: 1.2rem; right: 1.2rem; font-size: 0.68rem; line-height: 2; }
    .visual-car { width: 94%; margin: 4rem 0 1rem 3%; }
    .visual-foot { bottom: 1rem; left: 1.2rem; font-size: 0.66rem; }
    .spec-line { font-size: 0.7rem; letter-spacing: 0.16em; gap: 0.4rem 0.8rem; }
    .spec-line span + span::before { margin-right: 0.8rem; }
}
.eyebrow { display: inline-flex; align-items: center; gap: 1rem; letter-spacing: 0.24em; color: var(--ink-2); }
.eyebrow::before { content: ""; width: 2.2rem; height: 2px; background: var(--gold); flex: none; }

/* ══ Owners' manual ═══════════════════════════════════════════════════
   Reads like a service book: document references, numbered sections,
   a contents page with dot leaders, ledger rows, a spec plate. */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.doc-ref { margin: 0; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--accent); text-transform: uppercase; }
.manual-hero { padding: 3.6rem 0 3rem; border-bottom: 1px solid var(--line); }
.manual-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 4rem; align-items: center; }
.manual-hero h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.04; margin: 1rem 0 1.1rem; max-width: 15ch; }
.manual-lead { margin: 0; color: var(--ink-2); font-size: 1.08rem; max-width: 33rem; }
.big-search {
    display: flex; align-items: center; gap: 0.6rem; margin-top: 2.2rem; padding: 0.35rem 0.35rem 0.35rem 1rem;
    background: var(--field); border: 1px solid var(--line-strong); border-radius: 999px; color: var(--muted);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.big-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.big-search input { border: 0; background: none; box-shadow: none; min-height: 46px; padding: 0 0.2rem; }
.big-search input:focus { box-shadow: none; }
.big-search .button { flex: none; }
.quick-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.1rem; margin: 1rem 0 0 1.1rem; font-size: 0.9rem; }
.quick-links span { color: var(--muted); }
.quick-links a { color: var(--ink-2); border-bottom: 1px solid var(--line-strong); }
.quick-links a:hover { color: var(--ink); border-color: var(--accent); }

.spec-plate { margin: 0; border: 1px solid var(--line-strong); border-radius: 4px; background: #121a1f; }
.plate-drawing {
    padding: 1.2rem 1rem 0.4rem; border-bottom: 1px solid var(--line);
    background:
        linear-gradient(rgba(143,195,210,0.05) 1px, transparent 1px) 0 0 / 32px 32px,
        linear-gradient(90deg, rgba(143,195,210,0.05) 1px, transparent 1px) 0 0 / 32px 32px;
}
.plate-car { width: 100%; height: auto; display: block; }
.plate-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.plate-table th, .plate-table td { text-align: left; padding: 0.62rem 1.1rem; border-top: 1px solid var(--line); vertical-align: top; }
.plate-table tr:first-child th, .plate-table tr:first-child td { border-top: 0; }
.plate-table th { width: 38%; font-weight: 400; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.78rem; }
.plate-table td span { color: var(--muted); font-size: 0.85rem; margin-left: 0.3rem; }

.manual-section { padding: 3.4rem 0 1rem; }
.manual-two-col { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 4rem; align-items: start; }
.sec-title { display: flex; align-items: baseline; gap: 0.9rem; font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 1.2rem; }
.sec-title span { font-family: var(--mono); font-size: 0.85rem; font-weight: 400; color: var(--gold); }

.ledger { list-style: none; margin: 0 0 1.2rem; padding: 0; border-top: 1px solid var(--line-strong); }
.ledger-row {
    display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; grid-template-areas: "sev title count" ". car cat";
    gap: 0.15rem 0.9rem; align-items: baseline; padding: 0.95rem 0.2rem; border-bottom: 1px solid var(--line);
}
.sev { grid-area: sev; width: 8px; height: 8px; border-radius: 50%; align-self: center; background: var(--muted); }
.sev-high { background: var(--danger); }
.sev-medium { background: var(--warning); }
.sev-low { background: var(--success); }
.ledger-title { grid-area: title; font-weight: 500; }
.ledger-title:hover { color: var(--accent); }
.ledger-car { grid-area: car; font-size: 0.85rem; color: var(--muted); font-family: var(--mono); letter-spacing: 0.02em; }
.ledger-cat { grid-area: cat; font-size: 0.85rem; color: var(--muted); text-align: right; }
.ledger-count { grid-area: count; font-size: 0.85rem; color: var(--warning); white-space: nowrap; }

.contents ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-strong); counter-reset: toc; }
.contents li { counter-increment: toc; }
.contents a { display: flex; align-items: baseline; gap: 0.6rem; padding: 0.85rem 0.1rem; border-bottom: 1px solid var(--line); }
.contents a::before { content: counter(toc) "."; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); width: 1.4rem; flex: none; }
.toc-name { flex: none; transition: color 0.15s ease; }
.toc-dots { flex: 1; border-bottom: 1px dotted rgba(255,255,255,0.25); transform: translateY(-4px); min-width: 1rem; }
.toc-num { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-2); }
.contents a:hover .toc-name { color: var(--accent); }

.blank-page { border: 1px dashed var(--line-strong); border-radius: 4px; padding: 1.6rem 1.6rem 1.4rem; }
.blank-page p { margin: 0 0 0.5rem; }
.blank-page p:first-child { font-weight: 500; font-size: 1.1rem; }
.blank-page .home-link { margin-top: 0.6rem; }

.note-box { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 1.5rem; padding: 1.6rem 0; border-top: 1px solid var(--line-strong); border-bottom: 1px solid var(--line-strong); margin-bottom: 3rem; }
.note-label { margin: 0.15rem 0 0; font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.note-box p { margin: 0 0 0.9rem; color: var(--ink-2); max-width: 46rem; }
.note-box strong { color: var(--ink); font-weight: 600; }

.page-head { padding: 3rem 0 1.6rem; }
.page-head-row { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600; letter-spacing: -0.035em; margin: 0.6rem 0 0.7rem; }
.stat-line { display: flex; flex-wrap: wrap; gap: 0.3rem 1.4rem; margin: 0; color: var(--muted); font-size: 0.92rem; }
.stat-line strong { color: var(--ink); font-weight: 600; }

@media (max-width: 960px) {
    .manual-hero { padding-top: 2.4rem; }
    .manual-hero-grid, .manual-two-col { grid-template-columns: 1fr; gap: 2.6rem; }
    .note-box { grid-template-columns: 1fr; gap: 0.6rem; }
    .quick-links { margin-left: 0.2rem; }
    .ledger-row { grid-template-areas: "sev title count" ". car car" ". cat cat"; }
    .ledger-cat { text-align: left; }
}
.result-count { margin: 0 0 0.8rem; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }
.footer-bottom a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; }

/* ── Header, second edition ──────────────────────────────────────── */
.topbar { background: #0b0e10; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--muted); }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 34px; }
.topbar p { margin: 0; display: flex; align-items: center; gap: 1.1rem; }
.topbar-doc span { color: #3f4a52; margin: 0 -0.5rem; }
.topbar a, .topbar .link-button { color: var(--muted); text-decoration: none; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.06em; }
.topbar a:hover, .topbar .link-button:hover { color: var(--ink); }
.topbar-account a { display: inline-flex; align-items: center; gap: 0.45rem; }
.topbar-role { color: #5f6b74; }
.role-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.role-dot.role-verified_owner { background: var(--success); }
.role-dot.role-admin, .role-dot.role-moderator, .role-dot.role-specialist { background: var(--accent); }
.role-dot.role-former_owner { background: var(--warning); }

.site-header { background: rgba(15, 19, 22, 0.9); }
.nav-row { min-height: 68px; gap: 2rem; }
.brand-logo { width: 36px; height: 36px; }
.brand-text { display: grid; line-height: 1.15; }
.brand-text strong { font-size: 1rem; }
.brand-text small { display: block; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-top: 0.2rem; }
.nav-links { flex: 1; justify-content: center; gap: 0.2rem 1.7rem; }
.nav-item { position: relative; display: inline-flex; align-items: baseline; gap: 0.35rem; padding: 1.45rem 0; color: var(--ink-2); }
.nav-num { font-family: var(--mono); font-size: 0.68rem; color: #56626b; transition: color 0.15s ease; }
.nav-item::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--gold);
    transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav-item:hover::after { transform: scaleX(0.35); }
.nav-item.is-active { color: var(--ink); }
.nav-item.is-active::after { transform: scaleX(1); }
.nav-item:hover .nav-num, .nav-item.is-active .nav-num { color: var(--gold); }
.nav-actions { display: flex; align-items: center; gap: 0.6rem; flex: none; }
.icon-button {
    width: 40px; height: 40px; display: inline-grid; place-items: center; border-radius: 50%;
    border: 1px solid transparent; background: none; color: var(--ink-2); cursor: pointer; transition: 0.15s ease;
}
.icon-button:hover, .icon-button[aria-expanded="true"] { border-color: var(--line-strong); color: var(--ink); }
.nav-search-mobile, .nav-mobile-account { display: none; }
.header-search { border-top: 1px solid var(--line); background: var(--bg); }
.header-search-row { display: flex; align-items: center; gap: 0.8rem; min-height: 64px; color: var(--muted); }
.header-search-row input { border: 0; background: none; box-shadow: none; font-size: 1.15rem; padding: 0; min-height: 60px; }
.header-search-row input:focus { box-shadow: none; }
.kbd { font-family: var(--mono); font-size: 0.72rem; border: 1px solid var(--line-strong); border-radius: 4px; padding: 0.15rem 0.45rem; color: var(--muted); }

@media (max-width: 1100px) {
    .nav-links { gap: 0.2rem 1.2rem; }
    .nav-num { display: none; }
}
@media (max-width: 1000px) {
    .topbar { display: none; }
    .nav-row { gap: 1rem; }
    .nav-links { top: 68px; }
    .nav-item { padding: 1rem 0; font-size: 1.15rem; border-bottom: 1px solid var(--line); }
    .nav-item::after { display: none; }
    .nav-item.is-active { color: var(--gold); }
    .nav-num { display: inline; font-size: 0.75rem; min-width: 1.6rem; }
    .nav-search-mobile { display: block; padding: 1rem 0 0.6rem; }
    .nav-mobile-account { display: grid; margin-top: 1.2rem; }
    .nav-mobile-account a, .nav-mobile-account .link-button { padding: 0.75rem 0; color: var(--ink-2); text-decoration: none; text-align: left; font-size: 1rem; }
    .nav-actions .icon-button { display: none; }
    .brand-text small { display: none; }
}
@media (max-width: 420px) {
    .nav-actions .button { display: none; }
}
.topbar-account { display: flex; align-items: center; gap: 1.1rem; }
.header-search-row input:focus-visible { outline: none; }

/* ── Photo hero ──────────────────────────────────────────────────── */
.photo-hero { position: relative; overflow: hidden; background: #081316; min-height: min(760px, calc(100vh - 102px)); display: flex; align-items: center; }
.photo-hero-media { position: absolute; inset: 0 0 0 auto; width: 80%; }
.photo-hero-media img {
    width: 100%; height: 100%; object-fit: cover; object-position: 60% 55%; display: block;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 92%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 26%, #000 92%, transparent 100%), linear-gradient(180deg, #000 82%, transparent 100%);
    -webkit-mask-composite: source-in; mask-composite: intersect;
    animation: photo-in 1.6s var(--ease) both;
}
@keyframes photo-in { from { opacity: 0; transform: scale(1.03) translateX(2%); } to { opacity: 1; transform: none; } }
.photo-hero-copy { position: relative; z-index: 1; padding: 4rem 0 4.5rem; }
.photo-hero-copy > * { max-width: 34rem; }
.photo-hero h1 { font-size: clamp(2.4rem, 4.4vw, 3.9rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.03; margin: 1rem 0 1.1rem; max-width: 13ch; text-shadow: 0 2px 30px rgba(8,19,22,0.8); }
.photo-hero .manual-lead { text-shadow: 0 1px 20px rgba(8,19,22,0.9); }
.photo-hero .big-search { background: rgba(10, 18, 22, 0.78); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.spec-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #0c1215; }
.spec-strip-row { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 0 auto; }
.spec-strip-row div { padding: 1.1rem 1rem 1.1rem 0; border-right: 1px solid var(--line); }
.spec-strip-row div + div { padding-left: 1.2rem; }
.spec-strip-row div:last-child { border-right: 0; }
.spec-strip dt { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.spec-strip dd { margin: 0.25rem 0 0; font-size: 0.95rem; font-weight: 500; }

@media (max-width: 1100px) {
    .photo-hero-media { width: 92%; opacity: 0.85; }
}
@media (max-width: 760px) {
    .photo-hero { display: block; min-height: 0; }
    .photo-hero-media { position: relative; inset: auto; width: 100%; display: block; opacity: 1; }
    .photo-hero-media img {
        height: auto; aspect-ratio: 900 / 390;
        -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, #000 75%, transparent 100%);
    }
    .photo-hero-copy { padding: 0.5rem 0 2.6rem; }
    .spec-strip-row { grid-template-columns: 1fr 1fr; }
    .spec-strip-row div, .spec-strip-row div + div { padding: 0.9rem 0.8rem 0.9rem 0; border-right: 0; border-bottom: 1px solid var(--line); }
    .spec-strip-row div:nth-child(even) { padding-left: 0.8rem; border-left: 1px solid var(--line); }
    .spec-strip-row div:last-child { grid-column: 1 / -1; border-bottom: 0; padding-left: 0; border-left: 0; }
}
.photo-hero-media { width: 72%; }
.photo-hero-copy > * { max-width: 30rem; }
.photo-hero h1 { max-width: 12ch; }
@media (max-width: 1100px) and (min-width: 761px) {
    .photo-hero-media { width: 70%; opacity: 0.55; }
}
/* Two columns from 761px: text on the container's left edge, the photo bleeding off to the right. */
@media (min-width: 761px) {
    .photo-hero {
        display: grid; align-items: center; min-height: 0;
        grid-template-columns: calc(max(1.5rem, (100vw - var(--max-width)) / 2) + 27rem) minmax(0, 1fr);
    }
    .photo-hero-copy { padding: 4.5rem 1.5rem 4.5rem max(1.5rem, calc((100vw - var(--max-width)) / 2)); }
    .photo-hero-copy > * { max-width: 27rem; }
    .photo-hero-media { position: relative; inset: auto; width: auto; opacity: 1; margin-left: -6rem; }
    .photo-hero-media img {
        height: auto; aspect-ratio: 1.55; object-position: 51% 56%;
        -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 86%, transparent 100%);
        mask-image: linear-gradient(90deg, transparent 0%, #000 16%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 10%, #000 86%, transparent 100%);
    }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .photo-hero { grid-template-columns: 22rem minmax(0, 1fr); }
    .photo-hero-copy { padding-left: 1.5rem; }
    .photo-hero-copy > * { max-width: 20rem; }
    .photo-hero h1 { font-size: 2.4rem; }
    .photo-hero-media { margin-left: -3rem; }
}
.spec-strip dd { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1100px) { .spec-strip dd { font-size: 0.86rem; } }

/* Phone layout of the photo hero: photo on top, full width; copy padded. */
@media (max-width: 760px) {
    .photo-hero { display: flex; flex-direction: column; }
    .photo-hero-media { order: -1; position: relative; inset: auto; width: 100%; margin: 0; opacity: 1; }
    .photo-hero-copy { padding: 0.4rem 1.25rem 2.6rem; }
    .photo-hero-copy > * { max-width: none; }
}
@media (min-width: 761px) and (max-width: 1100px) {
    .spec-strip-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .spec-strip-row div { border-bottom: 1px solid var(--line); }
    .spec-strip-row div:nth-child(3) { border-right: 0; }
    .spec-strip-row div:nth-child(4) { padding-left: 0; }
    .spec-strip-row div:nth-child(n+4) { border-bottom: 0; }
}
