/* ============================================================
   VinCheck (vincheck.io) — Main Stylesheet
   Mobile-first. CSS custom properties for easy rebranding.
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --site-primary:    #0a2e6e;
    --site-accent:     #e8b400;
    --site-accent-hover: #c99a00;
    --site-bg:         #f5f7fa;
    --site-surface:    #ffffff;
    --site-text:       #1a1a2a;
    --site-muted:      #6b7280;
    --site-border:     #e2e8f0;
    --site-success:    #16a34a;
    --site-error:      #dc2626;

    --brand-primary:   var(--site-primary);
    --brand-secondary: #1e4d9e;

    --radius-sm:  4px;
    --radius-md:  8px;
    --radius-lg:  16px;
    --shadow-sm:  0 1px 3px rgba(0,0,0,.10);
    --shadow-md:  0 4px 12px rgba(0,0,0,.12);

    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', Consolas, monospace;
    --max-width: 1200px;
    --content-width: 800px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; overflow-x: clip; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-sans); color: var(--site-text); background: var(--site-bg); line-height: 1.6; overflow-x: clip; }
img, svg { max-width: 100%; display: block; }
a { color: var(--site-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Accessibility ──────────────────────────────────────────── */
.skip-link {
    position: absolute; left: -999px; top: 8px;
    background: var(--site-primary); color: #fff; padding: 8px 16px;
    border-radius: var(--radius-sm); z-index: 9999;
    width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
    left: 8px;
    width: auto; height: auto; overflow: visible;
}

/* ── Layout ─────────────────────────────────────────────────── */
.container { max-width: var(--max-width); width: 100%; margin: 0 auto; padding: 0 16px; }
main { overflow-x: clip; max-width: 100%; }

.page-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 32px 16px;
}
@media (min-width: 1024px) {
    .page-layout { grid-template-columns: 1fr 320px; padding: 40px 16px; }
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; border-radius: var(--radius-md);
    font-size: 1rem; font-weight: 600; cursor: pointer;
    border: 2px solid transparent; transition: background .15s, color .15s, border-color .15s;
    text-decoration: none;
}
.btn--accent {
    background: var(--site-accent); color: #1a1a2a;
    border-color: var(--site-accent);
}
.btn--accent:hover { background: var(--site-accent-hover); border-color: var(--site-accent-hover); text-decoration: none; }
.btn--primary { background: var(--site-primary); color: #fff; border-color: var(--site-primary); }
.btn--primary:hover { background: #061f50; }
.btn--ghost { background: transparent; border-color: var(--site-border); color: var(--site-text); }

/* ── Header ─────────────────────────────────────────────────── */
.site-header {
    background: var(--site-surface);
    border-bottom: 1px solid var(--site-border);
    position: sticky; top: 0; z-index: 100;
    box-shadow: var(--shadow-sm);
}
.site-header .container {
    display: flex; align-items: center; gap: 8px;
    height: 64px;
    position: relative;
    min-width: 0;
    max-width: 100%;
}
.site-header__logo {
    min-width: 0;
    flex: 1 1 auto;
    max-width: calc(100% - 48px);
    display: block;
    text-decoration: none;
}
.site-header__logo:hover { text-decoration: none; }

.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--site-primary);
}
.site-logo__mark {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 2px 4px rgba(10, 46, 110, 0.22));
    transition: transform 0.25s ease;
}
.site-header__logo:hover .site-logo__mark {
    transform: rotate(-4deg) scale(1.04);
}
.site-logo__wordmark {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--site-primary);
    white-space: nowrap;
}
.site-logo__wordmark-accent {
    color: var(--site-accent);
}
.site-logo--inverse {
    color: #fff;
}
.site-logo--inverse .site-logo__wordmark {
    color: #fff;
}
.site-logo--inverse .site-logo__wordmark-accent {
    color: var(--site-accent);
}
.site-footer__logo {
    display: inline-block;
    text-decoration: none;
}
.site-footer__logo:hover { text-decoration: none; }

.main-nav { margin-left: auto; min-width: 0; }
.main-nav__list {
    display: flex; list-style: none; gap: 8px; align-items: center;
}
.main-nav__list a {
    padding: 8px 12px; border-radius: var(--radius-sm);
    color: var(--site-text); font-weight: 500;
    display: flex; align-items: center; gap: 4px;
}
.main-nav__list a:hover { background: var(--site-bg); text-decoration: none; }
.has-dropdown { position: relative; }
.dropdown {
    display: none; position: absolute; top: 100%; right: 0; left: auto;
    background: var(--site-surface); border: 1px solid var(--site-border);
    border-radius: var(--radius-md); box-shadow: var(--shadow-md);
    width: min(520px, calc(100vw - 32px)); padding: 16px;
    column-count: 3; list-style: none; z-index: 200;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { break-inside: avoid; }
.dropdown a { padding: 6px 8px; display: block; font-size: .9rem; }

.nav-toggle {
    display: none;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    border-radius: var(--radius-sm);
}
.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--site-text);
    border-radius: 2px;
    transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
    .main-nav {
        display: block;
        margin-left: 0;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--site-surface);
        border-top: 1px solid transparent;
        border-bottom: 1px solid transparent;
        padding: 0 16px;
        z-index: 99;
        box-shadow: none;
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-8px);
        transition:
            max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            opacity 0.25s ease,
            visibility 0.35s,
            transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
            padding 0.35s ease,
            border-color 0.25s ease,
            box-shadow 0.25s ease;
    }
    .nav-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin-left: auto;
    }
    .main-nav.is-open {
        max-height: calc(100vh - 64px);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
        padding: 12px 16px 16px;
        border-top-color: var(--site-border);
        border-bottom-color: var(--site-border);
        box-shadow: var(--shadow-md);
        overflow-y: auto;
    }
    .main-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }
    .main-nav__list a { padding: 12px 8px; }
    .has-dropdown:hover .dropdown,
    .has-dropdown:focus-within .dropdown { display: none; }
    .has-dropdown.is-open .dropdown { display: block; }
    .dropdown {
        position: static;
        display: none;
        column-count: 2;
        width: 100%;
        min-width: unset;
        box-shadow: none;
        border: none;
        padding: 4px 0 8px 8px;
    }
}

/* ── VIN Form ─────────────────────────────────────────────────── */
.vin-form { background: var(--site-surface); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-md); }
.vin-form__label { display: block; font-weight: 700; margin-bottom: 8px; font-size: 1rem; }
.vin-form__row { display: flex; gap: 8px; }
.vin-form__input-wrap { flex: 1; position: relative; }
.vin-form__input {
    width: 100%; padding: 14px 48px 14px 16px;
    border: 2px solid var(--site-border); border-radius: var(--radius-md);
    font-size: 1.1rem; font-family: var(--font-mono); letter-spacing: .08em;
    color: var(--site-text); background: var(--site-surface);
    transition: border-color .15s;
    text-transform: uppercase;
}
.vin-form__input:focus { outline: none; border-color: var(--brand-primary); box-shadow: 0 0 0 3px rgba(10,46,110,.15); }
.vin-form__counter {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    font-size: .75rem; color: var(--site-muted); pointer-events: none;
}
.vin-form__hint { font-size: .85rem; color: var(--site-muted); margin-top: 8px; }
.vin-form__error { color: var(--site-error); font-size: .9rem; margin-top: 8px; font-weight: 500; }
@media (max-width: 600px) {
    .vin-form__row { flex-direction: column; }
    .vin-form__btn { width: 100%; }
}

/* ── VIN Result card ─────────────────────────────────────────── */
.vin-result {
    background: var(--site-surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md); padding: 24px; margin-top: 24px;
}
.vin-result__header {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 16px; border-bottom: 1px solid var(--site-border);
    margin-bottom: 16px;
}
.vin-result__vin { font-family: var(--font-mono); font-size: 1.1rem; font-weight: 700; letter-spacing: .1em; }
.vin-result__valid { color: var(--site-success); font-weight: 600; }
.vin-result__invalid { color: var(--site-error); font-weight: 600; }
.vin-result__table { width: 100%; border-collapse: collapse; }
.vin-result__table th, .vin-result__table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--site-border); font-size: .95rem; }
.vin-result__table th { font-weight: 600; color: var(--site-muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.vin-result__table tr:last-child td { border-bottom: none; }
.vin-result__positions { margin-top: 16px; }
.vin-result__positions-title { font-weight: 700; margin-bottom: 10px; }
.pos-cells { display: flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.pos-cell {
    width: 44px; text-align: center; border-radius: var(--radius-sm);
    border: 1px solid var(--site-border); padding: 6px 4px;
    cursor: pointer; transition: background .1s;
    position: relative;
}
.pos-cell:hover { background: var(--site-bg); }
.pos-cell__num { font-size: .65rem; color: var(--site-muted); display: block; }
.pos-cell__char { font-family: var(--font-mono); font-weight: 700; font-size: 1.1rem; display: block; }
.pos-cell__tooltip {
    display: none; position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
    background: var(--site-text); color: #fff; font-size: .75rem; padding: 6px 10px; border-radius: var(--radius-sm);
    white-space: nowrap; z-index: 50; pointer-events: none;
    max-width: 200px; white-space: normal;
}
.pos-cell:hover .pos-cell__tooltip { display: block; }

/* ── Brand hero ──────────────────────────────────────────────── */
.brand-hero {
    padding: 32px 0;
    color: #fff;
}
.brand-hero .container { display: flex; align-items: center; gap: 20px; }
.brand-hero__logo { width: 72px; height: 72px; object-fit: contain; border-radius: var(--radius-md); background: rgba(255,255,255,.1); padding: 8px; }
.brand-hero h1 { font-size: clamp(1.4rem, 3vw, 2rem); margin-top: 4px; }
.breadcrumb ol { display: flex; gap: 8px; list-style: none; font-size: .85rem; opacity: .8; flex-wrap: wrap; }
.breadcrumb li + li::before { content: '›'; margin-right: 8px; }
.breadcrumb a { color: rgba(255,255,255,.85); }

/* ── Content sections ────────────────────────────────────────── */
.content-section { margin-top: 40px; }
.content-section h2 { font-size: 1.4rem; margin-bottom: 16px; }
.prose { line-height: 1.75; }
.prose h2, .prose h3 { margin: 1.5em 0 .5em; }
.prose p { margin-bottom: 1em; }
.prose ul, .prose ol { margin: .5em 0 1em 1.5em; }
.prose table { border-collapse: collapse; width: 100%; margin: 1em 0; }
.prose table th, .prose table td { border: 1px solid var(--site-border); padding: 8px 12px; font-size: .9rem; }
.prose table th { background: var(--site-bg); font-weight: 600; }

/* ── Contact page ─────────────────────────────────────────────── */
.contact-page { padding: 48px 0; max-width: 560px; }
.contact-page h1 { margin-bottom: 8px; }
.contact-page > p { margin-bottom: 24px; color: var(--site-muted); }

.site-alert {
    padding: 12px 16px; border-radius: var(--radius-md);
    margin-bottom: 20px; font-size: .95rem; line-height: 1.5;
}
.site-alert--success { background: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.site-alert--error { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

.contact-form {
    background: var(--site-surface); border-radius: var(--radius-lg);
    padding: 24px; box-shadow: var(--shadow-md);
}
.contact-form__field {
    display: block; margin-bottom: 16px;
    font-weight: 600; font-size: .95rem;
}
.contact-form__input {
    display: block; width: 100%; margin-top: 6px;
    padding: 12px 14px; border: 2px solid var(--site-border);
    border-radius: var(--radius-md); font-size: 1rem;
    font-family: var(--font-sans); color: var(--site-text);
    background: var(--site-surface); transition: border-color .15s;
}
.contact-form__textarea { resize: vertical; min-height: 140px; line-height: 1.5; }
.contact-form__input:focus {
    outline: none; border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px rgba(10,46,110,.15);
}
.contact-form__submit { margin-top: 8px; width: 100%; }
@media (min-width: 480px) {
    .contact-form__submit { width: auto; }
}

/* ── FAQ ────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 8px; }
.faq-item {
    border: 1px solid var(--site-border); border-radius: var(--radius-md);
    overflow: hidden;
}
.faq-item summary {
    padding: 14px 16px; font-weight: 600; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
    background: var(--site-surface);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.2rem; color: var(--site-muted); flex-shrink: 0; }
.faq-item[open] summary::after { content: '−'; }
.faq-item__answer { padding: 0 16px 16px; color: var(--site-muted); }

/* ── Widget (sidebar) ────────────────────────────────────────── */
.widget { background: var(--site-surface); border-radius: var(--radius-md); padding: 20px; box-shadow: var(--shadow-sm); }
.widget__title { font-size: .9rem; text-transform: uppercase; letter-spacing: .08em; color: var(--site-muted); margin-bottom: 12px; }
.widget__brand-list { list-style: none; }
.widget__brand-list li { border-bottom: 1px solid var(--site-border); }
.widget__brand-list li:last-child { border-bottom: none; }
.widget__brand-list a { display: flex; align-items: center; gap: 8px; padding: 8px 0; font-size: .9rem; }

/* ── Ad slots ────────────────────────────────────────────────── */
.ad-slot { position: relative; }
.ad-slot::before { content: 'Advertisement'; font-size: .65rem; color: var(--site-muted); display: block; text-align: center; padding: 4px 0; letter-spacing: .06em; }
.ad-slot--header_leaderboard { text-align: center; padding: 8px 0; background: var(--site-bg); border-bottom: 1px solid var(--site-border); }

/* ── Home hero ───────────────────────────────────────────────── */
.home-hero {
    background: linear-gradient(135deg, var(--site-primary) 0%, #1e4d9e 100%);
    color: #fff; padding: 60px 0 48px;
    text-align: center;
}
.home-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; }
.home-hero p { font-size: 1.1rem; opacity: .88; margin-bottom: 32px; max-width: 600px; margin-left: auto; margin-right: auto; }
.home-hero .vin-form { max-width: 680px; margin: 0 auto; }

/* ── Trust badges ────────────────────────────────────────────── */
.trust-badges { display: flex; justify-content: center; flex-wrap: wrap; gap: 24px; margin-top: 28px; }
.trust-badge { display: flex; align-items: center; gap: 8px; font-size: .9rem; opacity: .9; }

/* ── Brand grid ─────────────────────────────────────────────── */
.brands-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 16px; }
.brand-card {
    background: var(--site-surface); border-radius: var(--radius-md);
    padding: 20px 12px; text-align: center; box-shadow: var(--shadow-sm);
    border: 1px solid var(--site-border); transition: box-shadow .15s, transform .15s;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.brand-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); text-decoration: none; }
.brand-card img { width: 48px; height: 48px; object-fit: contain; }
.brand-card span { font-size: .85rem; font-weight: 600; color: var(--site-text); }
.brand-card small { font-size: .75rem; color: var(--site-muted); }
.brands-grid--full { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
.page-hero { background: var(--site-primary); color: #fff; padding: 48px 0; text-align: center; }
.page-hero h1 { margin-bottom: 8px; }
.page-hero p { opacity: .85; max-width: 600px; margin: 0 auto; }
.prose h2 { margin-top: 1.5em; margin-bottom: .5em; }
.prose p, .prose ul { margin-bottom: 1em; line-height: 1.7; }

/* ── How it works ────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; margin-top: 24px; }
.step { text-align: center; }
.step__num { width: 48px; height: 48px; border-radius: 50%; background: var(--site-primary); color: #fff; font-weight: 700; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.step h3 { font-size: 1rem; margin-bottom: 6px; }
.step p { font-size: .9rem; color: var(--site-muted); }

/* ── Footer ─────────────────────────────────────────────────── */
.site-footer { background: var(--site-primary); color: rgba(255,255,255,.8); padding: 48px 0 24px; margin-top: 64px; }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: 32px; }
@media (min-width: 640px)  { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer__brand p { font-size: .9rem; margin-top: 12px; opacity: .7; }
.site-footer__col h3 { font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: rgba(255,255,255,.5); margin-bottom: 12px; }
.site-footer__col ul { list-style: none; }
.site-footer__col a { color: rgba(255,255,255,.75); font-size: .9rem; display: block; padding: 4px 0; }
.site-footer__col a:hover { color: #fff; text-decoration: none; }
.site-footer__bottom {
    margin-top: 40px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.15);
    display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
    font-size: .8rem; color: rgba(255,255,255,.5);
}
.site-footer__bottom nav { display: flex; gap: 20px; }
.site-footer__bottom a { color: rgba(255,255,255,.5); }
.site-footer__bottom a:hover { color: rgba(255,255,255,.9); }

/* ── Admin (light import) ────────────────────────────────────── */
/* Full admin styles are in admin.css */

/* ── Utility ─────────────────────────────────────────────────── */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.text-center { text-align: center; }
.mt-2 { margin-top: 8px; }  .mt-4 { margin-top: 16px; }  .mt-8 { margin-top: 32px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; }
.mono {
    font-family: var(--font-mono);
    letter-spacing: .06em;
    word-break: break-all;
    overflow-wrap: anywhere;
}

/* ── VIN report page ─────────────────────────────────────────── */
.vin-report-hero {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%);
    color: #fff;
    padding: 36px 0 32px;
}
.vin-report-hero h1 {
    font-size: clamp(1.2rem, 4.5vw, 1.9rem);
    margin: 12px 0 8px;
    line-height: 1.25;
    overflow-wrap: break-word;
}
.vin-report-hero__vin {
    font-family: var(--font-mono);
    font-size: clamp(.85rem, 3.8vw, 1.15rem);
    letter-spacing: .06em;
    opacity: .95;
    word-break: break-all;
    overflow-wrap: anywhere;
}
.vin-report-hero__badge {
    display: inline-block; margin-top: 12px; padding: 4px 12px; border-radius: 999px;
    font-size: .8rem; font-weight: 600;
}
.vin-report-hero__badge--ok { background: rgba(22,163,74,.25); color: #bbf7d0; }
.vin-report-hero__badge--bad { background: rgba(220,38,38,.25); color: #fecaca; }
.breadcrumb--light a { color: rgba(255,255,255,.85); }
.breadcrumb--light li + li::before { color: rgba(255,255,255,.5); }

.report-card {
    background: var(--site-surface); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm); border: 1px solid var(--site-border);
    padding: 24px; margin-bottom: 24px;
    max-width: 100%;
    overflow: hidden;
}
.report-card__title { font-size: 1.15rem; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--site-border); }
.report-card__meta { font-size: .9rem; color: var(--site-muted); margin-bottom: 16px; }
.equipment-list { margin: 0; padding-left: 1.25rem; font-size: .92rem; line-height: 1.5; columns: 2; column-gap: 2rem; }
.equipment-list li { margin-bottom: .35rem; break-inside: avoid; }
@media (max-width: 640px) { .equipment-list { columns: 1; } }
.report-card__empty { color: var(--site-muted); font-size: .95rem; }
.report-table { width: 100%; max-width: 100%; border-collapse: collapse; table-layout: fixed; }
.report-table th, .report-table td {
    padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--site-border);
    font-size: .95rem; vertical-align: top;
    overflow-wrap: anywhere;
    word-break: break-word;
}
.report-table th { width: 38%; font-weight: 600; color: var(--site-muted); }
.report-table tr:last-child th, .report-table tr:last-child td { border-bottom: none; }
.report-table--striped tbody tr:nth-child(even) { background: var(--site-bg); }
.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
    margin: 0 -4px;
    padding: 0 4px;
}

@media (max-width: 640px) {
    .container { padding: 0 12px; }
    body { overflow-x: clip; }
    .container.page-layout { padding: 20px 12px; }
    .report-card { padding: 16px; }
    .report-table th,
    .report-table td {
        display: block;
        width: 100%;
        padding: 6px 0;
        border-bottom: none;
    }
    .report-table th {
        font-size: .75rem;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--site-muted);
        padding-top: 10px;
    }
    .report-table tr {
        display: block;
        border-bottom: 1px solid var(--site-border);
        padding-bottom: 4px;
    }
    .report-table tr:last-child { border-bottom: none; }
    .report-table--striped thead { display: none; }
    .report-table--striped tbody tr {
        display: block;
        margin-bottom: 12px;
        border: 1px solid var(--site-border);
        border-radius: var(--radius-sm);
        padding: 8px 10px;
        background: var(--site-surface);
    }
    .report-table--striped tbody tr:nth-child(even) { background: var(--site-bg); }
    .report-table--striped td {
        display: block;
        border: none;
        padding: 4px 0;
    }
    .report-table--striped td::before {
        content: attr(data-label);
        display: block;
        font-size: .7rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: .05em;
        color: var(--site-muted);
        margin-bottom: 2px;
    }
    .table-scroll { overflow: visible; margin: 0; padding: 0; }
    .pos-cell { width: calc((100% - 30px) / 6); min-width: 42px; max-width: 52px; }
    .breadcrumb ol { font-size: .8rem; }
    .vin-report-hero { padding: 28px 0 24px; }
}

@media (max-width: 240px) {
    .container { padding: 0 6px; }
    .container.page-layout { padding: 16px 6px; }
    .site-header .container { gap: 4px; height: 56px; }
    .site-header__logo { max-width: calc(100% - 40px); }
    .site-logo__mark { width: 30px; height: 30px; }
    .site-logo__wordmark { font-size: 1.18rem; }
    .nav-toggle { width: 36px; height: 36px; flex-shrink: 0; }
    .nav-toggle span { width: 18px; }
    .report-card { padding: 12px; }
    .pos-cell { width: calc((100% - 18px) / 4); min-width: 0; max-width: none; }
    .vin-form { padding: 16px; }
    .vin-form__input { font-size: .95rem; padding: 12px 40px 12px 10px; letter-spacing: .04em; }
}
