/* =====================================================
   CALIROSTER — UNIFIED STYLESHEET
   Merged: global + pages + search + home + browse +
   detail + brand + faq
   ===================================================== */

/* ═══════════════════════════════════════════════════════
   1. GLOBAL (variables, reset, nav, footer)
   ═══════════════════════════════════════════════════════ */
/* =====================================================
   CALIROSTER — GLOBAL STYLES
   Design tokens, reset, nav, footer, shared components.
   Included on every page.
   ===================================================== */

/* ── Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

/* ── Design Tokens ── */
:root {
    /* Colors */
    --color-cream: #F7F5F0;
    --color-white: #FFFFFF;
    --color-warm-gray: #E8E4DD;
    --color-card-bg: #EDEBE6;
    --color-text: #1A1815;
    --color-text-secondary: #6B6560;
    --color-accent: #8B7355;

    /* Status Colors */
    --color-roster-green: #2D5A3D;
    --color-roster-green-bg: #E8F0EB;
    --color-alert: #8B4513;
    --color-alert-bg: #FDF4EE;
    --color-removed: #888888;
    --color-removed-bg: #F0F0F0;
    --color-new-blue: #2563EB;
    --color-new-blue-bg: #EFF6FF;

    /* Typography */
    --font-serif: 'Instrument Serif', Georgia, serif;
    --font-sans: 'Inter', -apple-system, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* ── Reset ── */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    /* Sticky footer — pushes footer to bottom on short pages */
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }


/* =====================================================
   NAV
   ===================================================== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--color-text);
}

.nav-logo {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    color: var(--color-cream);
    text-decoration: none;
}

.nav-center {
    display: flex;
    gap: 24px;
}

.nav-link {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-cream);
    text-decoration: none;
    opacity: 0.6;
    transition: opacity 0.2s;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-link:hover,
.nav-link.active { opacity: 1; }

.nav-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    background: rgba(255,255,255,0.1);
    border: none;
    color: var(--color-cream);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.2s, background 0.2s;
}

.nav-search:hover { opacity: 1; background: rgba(255,255,255,0.15); }

.nav-search::after {
    content: '⌘K';
    font-family: var(--font-mono);
    font-size: 9px;
    padding: 2px 5px;
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
    margin-left: 8px;
}

.nav-fav {
    color: var(--color-cream);
    text-decoration: none;
    font-size: 16px;
    opacity: 0.6;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-fav:hover { opacity: 1; }

.nav-fav-count {
    font-family: var(--font-mono);
    font-size: 10px;
    background: var(--color-accent);
    padding: 2px 6px;
    border-radius: 10px;
}


/* =====================================================
   STATUS BADGES (shared across pages)
   ===================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 9px;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    white-space: nowrap;
}

.badge .dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}

.badge.new { background: var(--color-new-blue-bg); color: var(--color-new-blue); }
.badge.on  { background: var(--color-roster-green-bg); color: var(--color-roster-green); }
.badge.exp { background: var(--color-alert-bg); color: var(--color-alert); }
.badge.off { background: var(--color-removed-bg); color: var(--color-removed); }


/* =====================================================
   FOOTER
   ===================================================== */
.footer {
    background: var(--color-text);
    color: var(--color-cream);
    padding: 48px 40px 32px;
    flex-shrink: 0;
    margin-top: auto; /* sticky footer — pushes to bottom on short pages */
}

.footer-inner {
    max-width: 800px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    color: var(--color-cream);
    opacity: 0.6;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-cream);
    text-decoration: none;
    opacity: 0.4;
    transition: opacity 0.2s;
}

.footer-links a:hover { opacity: 1; }

.footer-legal {
    padding: 20px 0;
    font-family: var(--font-mono);
    font-size: 10px;
    line-height: 1.8;
    letter-spacing: 0.02em;
    color: rgba(255,255,255,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-bottom {
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.footer-copy {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.25);
}

.footer-note {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.04em;
    color: rgba(255,255,255,0.25);
}

.footer-note a {
    color: rgba(255,255,255,0.35);
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.footer-note a:hover { color: var(--color-cream); }


/* =====================================================
   RESPONSIVE — Global
   ===================================================== */
@media (max-width: 1120px) {
    .nav { padding: 12px 20px; }
    .nav-center { gap: 16px; }
    .nav-link { font-size: 10px; letter-spacing: 0.08em; }
}

@media (max-width: 1024px) {
    .nav-center { display: none; }
}

@media (max-width: 640px) {
    .nav { padding: 10px 16px; }
    .nav-search span:last-child { display: none; }
    .nav-search::after { display: none; }
    .footer { padding: 36px 16px 24px; }
    .footer-top { flex-direction: column; align-items: center; text-align: center; gap: 20px; }
    .footer-links { flex-wrap: wrap; justify-content: center; }
    .footer-legal { text-align: center; }
    .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
}


/* ═══════════════════════════════════════════════════════
   2. SEARCH (command palette overlay)
   ═══════════════════════════════════════════════════════ */
/* =====================================================
   CALIROSTER — GLOBAL SEARCH (Command Palette)
   Overlay, input, results, keyboard nav.
   ===================================================== */

/* ── Overlay ── */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(26, 24, 21, 0.7);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: min(18vh, 160px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s, visibility 0.2s;
}

.search-overlay.open {
    opacity: 1;
    visibility: visible;
}

/* ── Modal ── */
.search-modal {
    width: 100%;
    max-width: 620px;
    background: var(--color-white);
    box-shadow: 0 24px 80px rgba(0,0,0,0.35);
    display: flex;
    flex-direction: column;
    max-height: 72vh;
    transform: translateY(-8px) scale(0.98);
    transition: transform 0.2s;
    overflow: hidden;
}

.search-overlay.open .search-modal {
    transform: translateY(0) scale(1);
}

/* ── Input Row ── */
.search-input-row {
    display: flex;
    align-items: center;
    padding: 0 20px;
    border-bottom: 1px solid var(--color-warm-gray);
    gap: 12px;
    flex-shrink: 0;
}

.search-icon {
    font-size: 18px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
    line-height: 1;
}

.search-input {
    flex: 1;
    padding: 18px 0;
    border: none;
    outline: none;
    background: none;
    font-family: var(--font-sans);
    font-size: 17px;
    color: var(--color-text);
}

.search-input::placeholder {
    color: var(--color-text-secondary);
    opacity: 0.6;
}

.search-shortcut {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-secondary);
    padding: 4px 8px;
    border: 1px solid var(--color-warm-gray);
    flex-shrink: 0;
    user-select: none;
}

/* ── Results ── */
.search-results {
    flex: 1;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.search-results::-webkit-scrollbar { width: 4px; }
.search-results::-webkit-scrollbar-track { background: transparent; }
.search-results::-webkit-scrollbar-thumb { background: var(--color-warm-gray); }

/* ── Group ── */
.sr-group {
    padding: 8px 0;
}

.sr-group-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    padding: 6px 20px 4px;
}

/* ── Result Item ── */
.sr-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 20px;
    text-decoration: none;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.1s;
}

.sr-item:hover,
.sr-item.active {
    background: var(--color-cream);
}

.sr-item.active {
    outline: none;
}

/* Badge/icon */
.sr-badge {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cream);
    flex-shrink: 0;
    font-family: var(--font-serif);
    font-size: 14px;
    font-style: italic;
    color: var(--color-text-secondary);
}

.sr-item.active .sr-badge,
.sr-item:hover .sr-badge {
    background: var(--color-warm-gray);
}

.sr-badge.page-badge {
    background: var(--color-text);
    color: var(--color-cream);
    font-family: var(--font-mono);
    font-size: 10px;
    font-style: normal;
}

/* Status dot inside badge */
.sr-badge-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.sr-badge-dot.on  { background: var(--color-roster-green); }
.sr-badge-dot.new { background: var(--color-new-blue); }
.sr-badge-dot.exp { background: var(--color-alert); }
.sr-badge-dot.off { background: var(--color-removed); }

/* Info */
.sr-info {
    flex: 1;
    min-width: 0;
}

.sr-title {
    font-family: var(--font-serif);
    font-size: 16px;
    font-style: italic;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-title mark {
    background: none;
    color: var(--color-accent);
    font-weight: 500;
}

.sr-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Right side */
.sr-price {
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
    color: var(--color-text);
    flex-shrink: 0;
}

.sr-arrow {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--color-text-secondary);
    flex-shrink: 0;
    opacity: 0;
    transition: opacity 0.15s;
}

.sr-item:hover .sr-arrow,
.sr-item.active .sr-arrow {
    opacity: 1;
}


/* ── Footer ── */
.search-footer {
    border-top: 1px solid var(--color-warm-gray);
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
}

.search-hints {
    display: flex;
    gap: 16px;
}

.search-hint {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
    gap: 5px;
}

.search-hint kbd {
    display: inline-block;
    padding: 2px 5px;
    background: var(--color-cream);
    border: 1px solid var(--color-warm-gray);
    font-family: var(--font-mono);
    font-size: 9px;
    line-height: 1;
}

.search-view-all {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.search-view-all:hover { color: var(--color-text); }

.search-footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
}

.search-result-count {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-secondary);
    letter-spacing: 0.04em;
}


/* ── Empty / Recent ── */
.search-empty {
    padding: 40px 20px;
    text-align: center;
}

.search-empty-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.search-recents {
    padding: 8px 0;
}

.search-recents-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 20px 4px;
}

.search-recents-label {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.search-recents-clear {
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--color-text-secondary);
    background: none;
    border: none;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: color 0.2s;
}

.search-recents-clear:hover { color: var(--color-accent); }


/* ── Responsive ── */
@media (max-width: 768px) {
    .search-overlay { padding-top: 0; }
    .search-modal {
        max-width: 100%;
        max-height: 100vh;
        height: 100vh;
    }
    .search-hints { display: none; }
    .search-shortcut { display: none; }
}

@media (max-width: 480px) {
    .search-input { font-size: 16px; padding: 16px 0; }
    .sr-item { padding: 10px 16px; gap: 12px; }
    .sr-title { font-size: 15px; }
    .sr-badge { width: 36px; height: 36px; }
    .search-footer { padding: 10px 16px; }
}


/* ═══════════════════════════════════════════════════════
   3. PAGES (contact, disclaimer, privacy, favorites)
   ═══════════════════════════════════════════════════════ */
/* =====================================================
   CALIROSTER — CONTENT PAGES
   Shared styles for FAQ, Privacy, Disclaimer, Contact,
   Resources, Updates, 404.
   ===================================================== */

/* ── Page Header ── */
.page-header {
    padding: 120px 32px 48px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

.page-title {
    font-family: var(--font-serif);
    font-size: clamp(36px, 6vw, 56px);
    font-style: italic;
    line-height: 1.1;
    margin-bottom: 16px;
}

.page-subtitle {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

/* ── Content Body ── */
.content-body {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.content-body h2 {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    margin-top: 48px;
    margin-bottom: 16px;
    padding-top: 32px;
    border-top: 1px solid var(--color-warm-gray);
}

.content-body h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.content-body p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.content-body a {
    color: var(--color-accent);
    text-decoration: underline;
}

.content-body a:hover {
    color: var(--color-text);
}

.content-body ul {
    list-style: none;
    margin-bottom: 16px;
}

.content-body ul li {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-secondary);
    padding-left: 20px;
    position: relative;
}

.content-body ul li::before {
    content: '—';
    position: absolute;
    left: 0;
    color: var(--color-accent);
}

.content-body strong {
    color: var(--color-text);
    font-weight: 600;
}


/* ── FAQ Accordion ── */
.faq-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.faq-item {
    border-bottom: 1px solid var(--color-warm-gray);
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 0;
    background: none;
    border: none;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    gap: 16px;
    transition: color 0.2s;
}

.faq-question:hover { color: var(--color-accent); }

.faq-arrow {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(45deg); }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 500px;
    padding-bottom: 24px;
}

.faq-answer p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}

.faq-answer a {
    color: var(--color-accent);
    text-decoration: underline;
}


/* ── Contact Form ── */
.contact-form {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 32px 80px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.form-input,
.form-textarea {
    padding: 14px 16px;
    background: var(--color-white);
    border: 1px solid var(--color-warm-gray);
    font-family: var(--font-sans);
    font-size: 14px;
    color: var(--color-text);
    transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-accent);
}

.form-textarea {
    min-height: 140px;
    resize: vertical;
}

.form-submit {
    padding: 16px 32px;
    background: var(--color-text);
    color: var(--color-cream);
    border: none;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s;
    align-self: flex-start;
}

.form-submit:hover { background: var(--color-accent); }


/* ── Favorites (empty state) ── */
.favorites-empty {
    max-width: 520px;
    margin: 0 auto;
    padding: 0 32px 80px;
    text-align: center;
}

.favorites-empty-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 20px;
}

.favorites-empty p {
    font-size: 15px;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.favorites-empty a {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-text);
    color: var(--color-cream);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
}

.favorites-empty a:hover { background: var(--color-accent); }


/* ── Favorites List ── */
.favorites-list {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.fav-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid var(--color-warm-gray);
    gap: 16px;
}

.fav-info {
    flex: 1;
    min-width: 0;
}

.fav-model {
    font-family: var(--font-serif);
    font-size: 20px;
}

.fav-model a {
    color: var(--color-text);
    text-decoration: none;
}

.fav-model a:hover { color: var(--color-accent); }

.fav-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-secondary);
    margin-top: 4px;
}

.fav-remove {
    background: none;
    border: 1px solid var(--color-warm-gray);
    padding: 8px 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.fav-remove:hover {
    border-color: var(--color-alert);
    color: var(--color-alert);
}


/* ── Resource Cards ── */
.resource-grid {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px 80px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resource-card {
    background: var(--color-white);
    padding: 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    transition: box-shadow 0.2s;
}

.resource-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.resource-title {
    font-family: var(--font-serif);
    font-size: 20px;
    margin-bottom: 6px;
}

.resource-desc {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.resource-link {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-accent);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 10px 16px;
    border: 1px solid var(--color-accent);
    transition: background 0.2s, color 0.2s;
}

.resource-link:hover {
    background: var(--color-accent);
    color: var(--color-white);
}


/* ── Updates Timeline ── */
.updates-timeline {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px 80px;
}

.update-item {
    display: flex;
    gap: 24px;
    padding: 28px 0;
    border-bottom: 1px solid var(--color-warm-gray);
}

.update-date {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    min-width: 100px;
    padding-top: 4px;
    flex-shrink: 0;
}

.update-content {
    flex: 1;
}

.update-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 4px 8px;
    margin-bottom: 10px;
}

.update-tag.added { background: var(--color-new-blue-bg); color: var(--color-new-blue); }
.update-tag.removed { background: var(--color-removed-bg); color: var(--color-removed); }
.update-tag.expiring { background: var(--color-alert-bg); color: var(--color-alert); }
.update-tag.renewed { background: var(--color-roster-green-bg); color: var(--color-roster-green); }

.update-title {
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    margin-bottom: 6px;
}

.update-desc {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.7;
}


/* ── 404 ── */
.four-oh-four {
    min-height: 70vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 32px;
}

.four-oh-four-num {
    font-family: var(--font-serif);
    font-size: clamp(80px, 20vw, 200px);
    font-style: italic;
    line-height: 1;
    color: var(--color-warm-gray);
    margin-bottom: 16px;
}

.four-oh-four-text {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-secondary);
    margin-bottom: 32px;
}

.four-oh-four a {
    display: inline-block;
    padding: 14px 28px;
    background: var(--color-text);
    color: var(--color-cream);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s;
}

.four-oh-four a:hover { background: var(--color-accent); }


/* ── Responsive ── */
@media (max-width: 640px) {
    .page-header { padding: 100px 20px 32px; }
    .content-body, .faq-list, .contact-form, .favorites-empty,
    .favorites-list, .resource-grid, .updates-timeline { padding-left: 20px; padding-right: 20px; }
    .faq-question { font-size: 17px; }
    .update-item { flex-direction: column; gap: 8px; }
    .update-date { min-width: 0; }
    .resource-card { flex-direction: column; align-items: flex-start; }
}


/* ═══════════════════════════════════════════════════════
   4. HOME (index.html)
   ═══════════════════════════════════════════════════════ */
/* =====================================================
   CALIROSTER — HOMEPAGE
   Hero, caliber browse, top brands, features.
   ===================================================== */

/* ── Shared Section Styles ── */
.section-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 32px;
}

.section-num {
    font-family: var(--font-serif);
    font-size: 48px;
    font-style: italic;
    color: var(--color-warm-gray);
    line-height: 1;
}

.section-title {
    font-family: var(--font-serif);
    font-size: 36px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.1;
}


/* =====================================================
   HERO
   ===================================================== */
.hero {
    position: relative;
    min-height: 85vh;
    background: var(--color-text);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 0;
}

.hero-bg-text {
    position: absolute;
    font-family: var(--font-serif);
    font-size: 30vw;
    font-style: italic;
    color: rgba(255,255,255,0.025);
    white-space: nowrap;
    pointer-events: none;
    line-height: 0.85;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -55%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 700px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 20px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(64px, 12vw, 120px);
    font-style: italic;
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--color-cream);
    margin-bottom: 24px;
}

.hero-sub {
    font-size: 17px;
    color: rgba(255,255,255,0.55);
    max-width: 520px;
    margin: 0 auto;
    line-height: 1.7;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 40px;
    padding: 16px 36px;
    background: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.hero-cta:hover {
    background: var(--color-white);
    transform: translateY(-1px);
}

.hero-cta .arrow { transition: transform 0.2s; }
.hero-cta:hover .arrow { transform: translateX(4px); }

/* Stats bar — bottom of hero */
.hero-stats {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    background: rgba(255,255,255,0.03);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.hero-stat {
    flex: 1;
    text-align: center;
    padding: 24px 16px;
    border-right: 1px solid rgba(255,255,255,0.06);
}

.hero-stat:last-child { border-right: none; }

.hero-stat-num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-style: italic;
    color: var(--color-cream);
    line-height: 1;
    margin-bottom: 6px;
}

.hero-stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}


/* =====================================================
   BROWSE BY CALIBER
   ===================================================== */
.caliber-section {
    background: var(--color-white);
    padding: 64px 0;
}

.caliber-grid {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.cal-bar {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    background: var(--color-cream);
    text-decoration: none;
    color: var(--color-text);
    overflow: hidden;
    transition: transform 0.15s;
}

.cal-bar:hover { transform: translateX(4px); }

.cal-fill {
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    background: var(--color-accent);
    opacity: 0.08;
    pointer-events: none;
    transition: opacity 0.2s;
}

.cal-bar:hover .cal-fill { opacity: 0.14; }

.cal-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    position: relative;
    z-index: 1;
}

.cal-count {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-secondary);
    position: relative;
    z-index: 1;
}


/* =====================================================
   TOP BRANDS
   ===================================================== */
.brands-section {
    background: var(--color-cream);
    padding: 64px 0;
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.brand-card {
    background: var(--color-white);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
    border-bottom: 2px solid transparent;
}

.brand-card:hover {
    background: var(--color-warm-gray);
    border-bottom-color: var(--color-accent);
    transform: translateY(-2px);
}

.brand-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    line-height: 1.2;
}

.brand-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-secondary);
    letter-spacing: 0.04em;
}

.brands-more {
    margin-top: 24px;
    text-align: right;
}

.brands-all-link {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    color: var(--color-accent);
    text-decoration: none;
    transition: color 0.2s;
}

.brands-all-link:hover { color: var(--color-text); }


/* =====================================================
   FEATURES
   ===================================================== */
.features-section {
    background: var(--color-text);
    padding: 64px 0;
}

.features-section .section-num { color: rgba(255,255,255,0.15); }
.features-section .section-title { color: var(--color-cream); }

.features-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

.feat {
    background: rgba(255,255,255,0.04);
    padding: 36px 32px;
}

.feat-icon {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--color-accent);
}

.feat-title {
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 400;
    font-style: italic;
    color: var(--color-cream);
    margin-bottom: 10px;
}

.feat-text {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
}


/* =====================================================
   DISCLAIMER
   ===================================================== */
.disclaimer-strip {
    background: var(--color-cream);
    padding: 36px 40px;
    text-align: center;
}

.disclaimer-strip p {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.8;
    max-width: 680px;
    margin: 0 auto;
}

.disclaimer-strip a {
    color: var(--color-accent);
    text-decoration: underline;
}


/* =====================================================
   RESPONSIVE — 1024px
   ===================================================== */
@media (max-width: 1024px) {
    .section-inner { padding: 0 32px; }
    .features-strip { padding: 0 32px; }

    .brands-grid { grid-template-columns: repeat(2, 1fr); }

    .hero-stat-num { font-size: 24px; }
}


/* =====================================================
   RESPONSIVE — 768px
   ===================================================== */
@media (max-width: 768px) {
    .hero { min-height: 75vh; padding: 100px 24px 0; }
    .hero-title { font-size: clamp(48px, 14vw, 80px); }
    .hero-sub { font-size: 15px; }

    .hero-stats { flex-wrap: wrap; }
    .hero-stat { flex: 1 1 50%; padding: 18px 12px; }
    .hero-stat:nth-child(2) { border-right: none; }

    .section-inner { padding: 0 24px; }
    .section-num { font-size: 36px; }
    .section-title { font-size: 28px; }

    .caliber-section { padding: 48px 0; }
    .brands-section { padding: 48px 0; }
    .features-section { padding: 48px 0; }

    .features-strip { grid-template-columns: 1fr; padding: 0 24px; }

    .brands-grid { grid-template-columns: 1fr 1fr; }
}


/* =====================================================
   RESPONSIVE — 480px
   ===================================================== */
@media (max-width: 480px) {
    .hero { padding: 80px 20px 0; min-height: 70vh; }
    .hero-title { margin-bottom: 20px; }

    .hero-stats { flex-wrap: wrap; }
    .hero-stat { flex: 1 1 50%; padding: 16px 10px; }
    .hero-stat-num { font-size: 22px; }
    .hero-stat-label { font-size: 9px; }

    .section-inner { padding: 0 16px; }
    .section-num { font-size: 32px; }
    .section-title { font-size: 24px; }

    .caliber-section,
    .brands-section,
    .features-section { padding: 40px 0; }

    .cal-bar { padding: 16px 20px; }
    .cal-name { font-size: 18px; }
    .cal-count { font-size: 12px; }

    .brands-grid { grid-template-columns: 1fr; }
    .brand-card { padding: 22px 20px; }
    .brand-name { font-size: 18px; }

    .features-strip { padding: 0 16px; }
    .feat { padding: 28px 24px; }
    .feat-title { font-size: 20px; }

    .disclaimer-strip { padding: 28px 16px; }
}


/* ═══════════════════════════════════════════════════════
   5. BROWSE (browse.html)
   ═══════════════════════════════════════════════════════ */
/* =====================================================
   CALIROSTER — BROWSE PAGE
   Filter bar, data table, card grid, pagination.
   Mobile-first with desktop enhancements.
   ===================================================== */


/* =====================================================
   MOBILE FILTER BAR (< 768px)
   Compact bar with filter toggle + sort
   ===================================================== */
.mobile-filter-bar {
    display: none; /* shown via media query */
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-warm-gray);
    padding: 10px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.mobile-filter-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    background: var(--color-cream);
    border: 1px solid var(--color-warm-gray);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    transition: all 0.15s;
}

.mobile-filter-toggle:hover { border-color: var(--color-text); }

.mobile-filter-toggle.has-filters {
    background: var(--color-text);
    color: var(--color-cream);
    border-color: var(--color-text);
}

.mobile-filter-count {
    display: none;
    background: var(--color-accent);
    color: var(--color-cream);
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 8px;
    min-width: 18px;
    text-align: center;
}

.mobile-filter-toggle.has-filters .mobile-filter-count {
    display: inline-block;
}

.mobile-sort-wrap {
    flex: 1;
    max-width: 180px;
}

.mobile-sort-select {
    width: 100%;
    padding: 9px 28px 9px 12px;
    background: var(--color-cream);
    border: 1px solid var(--color-warm-gray);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236B6560' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
}


/* =====================================================
   FILTER BAR — DESKTOP
   ===================================================== */
.filter-bar {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 100;
    background: var(--color-white);
    border-bottom: 1px solid var(--color-warm-gray);
    padding: 14px 32px;
    transition: box-shadow 0.3s;
}

.filter-bar.scrolled {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Close row — only visible in mobile drawer mode */
.filter-close-row {
    display: none;
}

.filter-row {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.filter-select {
    padding: 8px 28px 8px 12px;
    background: var(--color-cream);
    border: 1px solid transparent;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--color-text);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236B6560' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 10px center;
    transition: border-color 0.15s, background-color 0.15s, color 0.15s;
}

.filter-select:hover { border-color: var(--color-warm-gray); }
.filter-select:focus { outline: none; border-color: var(--color-accent); }

.filter-select.active {
    background-color: var(--color-text);
    color: var(--color-cream);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%23F7F5F0' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
}


/* ── Caliber Chips (replaces old duplicate quick-btns) ── */
.caliber-chips {
    display: flex;
    gap: 3px;
}

.cal-chip {
    padding: 7px 11px;
    background: transparent;
    border: 1px solid var(--color-warm-gray);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.cal-chip:hover { color: var(--color-text); border-color: var(--color-text); }

.cal-chip.active {
    background: var(--color-text);
    border-color: var(--color-text);
    color: var(--color-cream);
}


/* ── Status Toggles ── */
.status-toggles {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.status-btn {
    padding: 8px 12px;
    background: transparent;
    border: 1px solid;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.status-btn .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.status-btn.new { border-color: var(--color-new-blue); color: var(--color-new-blue); }
.status-btn.new.active { background: var(--color-new-blue); color: white; }

.status-btn.on { border-color: var(--color-roster-green); color: var(--color-roster-green); }
.status-btn.on.active { background: var(--color-roster-green); color: white; }

.status-btn.exp { border-color: var(--color-alert); color: var(--color-alert); }
.status-btn.exp.active { background: var(--color-alert); color: white; }

.status-btn.off { border-color: var(--color-removed); color: var(--color-removed); }
.status-btn.off.active { background: var(--color-removed); color: white; }

/* Mobile filter actions — hidden on desktop */
.mobile-filter-actions {
    display: none;
}


/* =====================================================
   FILTER OVERLAY (mobile backdrop)
   ===================================================== */
.filter-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    z-index: 149;
    opacity: 0;
    transition: opacity 0.3s;
}

.filter-overlay.visible {
    display: block;
    opacity: 1;
}


/* =====================================================
   RESULTS BAR
   ===================================================== */
.results-bar {
    margin-top: 120px;
    padding: 12px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.results-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.results-count {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.results-count strong { color: var(--color-text); }

.active-pills {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pill {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: var(--color-white);
    border: 1px solid var(--color-warm-gray);
    font-family: var(--font-mono);
    font-size: 11px;
}

.pill button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 12px;
    color: var(--color-text-secondary);
    line-height: 1;
    padding: 0;
}

.pill button:hover { color: var(--color-text); }

.clear-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-accent);
    background: none;
    border: none;
    cursor: pointer;
    text-decoration: underline;
}

.results-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.per-page {
    padding: 6px 24px 6px 10px;
    background: var(--color-white);
    border: 1px solid var(--color-warm-gray);
    font-family: var(--font-mono);
    font-size: 11px;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 10 10'%3E%3Cpath fill='%236B6560' d='M5 7L1 3h8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    cursor: pointer;
}


/* =====================================================
   VIEW TOGGLE
   ===================================================== */
.view-toggle {
    display: flex;
    border: 1px solid var(--color-warm-gray);
    overflow: hidden;
}

.view-btn {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 14px;
    background: var(--color-white);
    color: var(--color-text-secondary);
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.view-btn:not(:last-child) {
    border-right: 1px solid var(--color-warm-gray);
}

.view-btn:hover { color: var(--color-text); }

.view-btn.active {
    background: var(--color-text);
    color: var(--color-cream);
}

.view-btn svg {
    width: 13px;
    height: 13px;
}


/* =====================================================
   DATA TABLE
   ===================================================== */
.table-wrap {
    padding: 0 32px 48px;
    min-height: 60vh;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--color-white);
    table-layout: fixed;
}

thead {
    position: sticky;
    top: 120px;
    z-index: 99;
}

thead tr {
    background: var(--color-text);
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

th {
    background: var(--color-text);
    color: var(--color-cream);
    padding: 12px 14px;
    text-align: left;
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    border-bottom: 2px solid var(--color-accent);
    transition: background 0.15s;
}

th:hover { background: #2d2a27; }
th.sorted { background: var(--color-accent); }

th .arrow {
    margin-left: 4px;
    opacity: 0.4;
    font-size: 10px;
    display: inline-block;
    transition: transform 0.2s;
}

th.sorted .arrow { opacity: 1; }
th.sorted.desc .arrow { transform: rotate(180deg); }

td {
    padding: 11px 14px;
    border-bottom: 1px solid var(--color-cream);
    font-size: 13px;
    vertical-align: middle;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

tbody tr {
    transition: background 0.1s;
    cursor: pointer;
}

tbody tr:hover { background: rgba(139, 115, 85, 0.04); }

/* ── Column Widths (fixed layout) ── */
th:nth-child(1), td:nth-child(1) { width: 13%; } /* Brand */
th:nth-child(2), td:nth-child(2) { width: 20%; } /* Model */
th:nth-child(3), td:nth-child(3) { width: 10%; } /* Caliber */
th:nth-child(4), td:nth-child(4) { width: 9%; }  /* Size */
th:nth-child(5), td:nth-child(5) { width: 6%; }  /* Cap */
th:nth-child(6), td:nth-child(6) { width: 7%; }  /* Barrel */
th:nth-child(7), td:nth-child(7) { width: 9%; }  /* MSRP */
th:nth-child(8), td:nth-child(8) { width: 12%; } /* Status */
th:nth-child(9), td:nth-child(9) { width: 10%; } /* Expires */
th:nth-child(10), td:nth-child(10) { width: 4%; } /* Fav */

/* ── Column Styles ── */
.col-brand {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--color-text-secondary);
    text-transform: uppercase;
}

.col-model a {
    font-family: var(--font-serif);
    font-size: 16px;
    color: var(--color-text);
    text-decoration: none;
}

.col-model a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.col-caliber {
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
}

.col-size {
    font-size: 12px;
    color: var(--color-text-secondary);
}

.col-cap {
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
}

.col-barrel {
    font-family: var(--font-mono);
    font-size: 12px;
}

.col-price {
    font-family: var(--font-serif);
    font-size: 15px;
    font-style: italic;
}

.col-exp {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-secondary);
}

.col-exp.soon { color: var(--color-alert); font-weight: 500; }

.col-fav { text-align: center; width: 44px; }

.fav {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 15px;
    color: var(--color-warm-gray);
    transition: color 0.15s, transform 0.2s;
    padding: 4px;
}

.fav:hover { color: var(--color-accent); }
.fav.active { color: var(--color-accent); }

/* Removed row */
tr.removed { opacity: 0.5; }


/* =====================================================
   CARD VIEW
   ===================================================== */
.card-grid {
    display: none;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    padding: 0 32px 48px;
    min-height: 60vh;
}

.card {
    position: relative;
    background: var(--color-card-bg);
    overflow: hidden;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.3s;
    /* ── FIXED HEIGHT — prevents sizing shifts ── */
    height: 340px;
}

.card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.card-bg-brand {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-serif);
    font-size: 100px;
    font-style: italic;
    color: rgba(0,0,0,0.025);
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.03em;
}

.card-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px 0;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.card-brand-label {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.card-status {
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 5px 12px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.card-status.on  { color: var(--color-white); background: var(--color-roster-green); }
.card-status.new { color: var(--color-white); background: var(--color-new-blue); }
.card-status.exp { color: var(--color-white); background: var(--color-alert); }
.card-status.off { color: var(--color-white); background: var(--color-removed); }

.card-img-area {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 40px;
    min-height: 0;
    position: relative;
}

.card-img-placeholder {
    width: 180px;
    height: 80px;
    background: rgba(0,0,0,0.035);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-mono);
    font-size: 9px;
    color: var(--color-text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.card-img-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.card:hover .card-img-placeholder {
    transform: scale(1.03);
}

.card-foot {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 14px 24px 20px;
    border-top: 1px solid rgba(0,0,0,0.04);
    position: relative;
    z-index: 2;
    gap: 16px;
    flex-shrink: 0;
    /* Fixed footer height prevents card resizing */
    min-height: 90px;
}

.card-foot-left {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.card-model-name {
    font-family: var(--font-serif);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: -0.02em;
    /* Clamp to 2 lines max — prevents height shifts */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-detail {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-secondary);
    margin-top: 4px;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-foot-right {
    display: flex;
    gap: 18px;
    flex-shrink: 0;
}

.card-spec {
    display: flex;
    flex-direction: column;
    gap: 1px;
    text-align: right;
}

.card-spec-label {
    font-family: var(--font-mono);
    font-size: 8px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.card-spec-val {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
}

.card-cta {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%) translateY(8px);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-text);
    background: rgba(247,245,240,0.92);
    backdrop-filter: blur(8px);
    padding: 14px 28px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    pointer-events: none;
    z-index: 10;
}

.card:hover .card-cta {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0);
}

.card.card-removed { opacity: 0.5; }

/* Expiring pulse animation */
.card-status.exp .status-pulse {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(1.2); }
}


/* =====================================================
   VIEW STATE CLASSES
   ===================================================== */
body.view-table .table-wrap { display: block; }
body.view-table .card-grid  { display: none; }

body.view-cards .table-wrap { display: none; }
body.view-cards .card-grid  { display: grid; }


/* =====================================================
   EMPTY STATE
   ===================================================== */
.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    text-align: center;
    min-height: 60vh;
}

.empty-state.visible { display: flex; }

.empty-state-icon {
    font-size: 48px;
    opacity: 0.3;
    margin-bottom: 16px;
}

.empty-state-title {
    font-family: var(--font-serif);
    font-size: 22px;
    margin-bottom: 8px;
}

.empty-state-text {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-secondary);
}

.empty-state-text button {
    color: var(--color-accent);
    background: none;
    border: none;
    text-decoration: underline;
    font-family: inherit;
    font-size: inherit;
    cursor: pointer;
}


/* =====================================================
   LOADING STATE
   ===================================================== */
.loading-state {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-secondary);
    gap: 10px;
}

.loading-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-warm-gray);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    padding: 20px 32px 48px;
    display: flex;
    justify-content: center;
    gap: 4px;
}

.pg-btn {
    min-width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-white);
    border: 1px solid var(--color-warm-gray);
    font-family: var(--font-mono);
    font-size: 12px;
    cursor: pointer;
    transition: all 0.15s;
}

.pg-btn:hover { border-color: var(--color-text); }
.pg-btn.active { background: var(--color-text); border-color: var(--color-text); color: var(--color-cream); }
.pg-btn:disabled { opacity: 0.3; cursor: default; }
.pg-btn:disabled:hover { border-color: var(--color-warm-gray); }

.pg-ellipsis,
.pg-dots {
    padding: 0 8px;
    color: var(--color-text-secondary);
    display: flex;
    align-items: center;
}


/* =====================================================
   RESPONSIVE — 1024px (tablet landscape)
   ===================================================== */
@media (max-width: 1024px) {
    .filter-bar { padding: 12px 20px; }
    .caliber-chips { display: none; }
    .results-bar { padding: 12px 20px; }
    .table-wrap { padding: 0 20px 48px; }
    .card-grid { padding: 0 20px 48px; }
    thead { top: 108px; }
}


/* =====================================================
   RESPONSIVE — 768px (tablet portrait / mobile)
   ===================================================== */
@media (max-width: 768px) {

    /* Show mobile filter bar, hide desktop filter bar */
    .mobile-filter-bar { display: flex; }

    .filter-bar {
        /* Convert to slide-up drawer */
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 150;
        padding: 0;
        border-bottom: none;
        border-top: 1px solid var(--color-warm-gray);
        border-radius: 16px 16px 0 0;
        box-shadow: 0 -8px 40px rgba(0,0,0,0.15);
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
        max-height: 80vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    .filter-bar.open {
        transform: translateY(0);
    }

    /* Drawer header */
    .filter-close-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 18px 20px 12px;
        border-bottom: 1px solid var(--color-warm-gray);
        position: sticky;
        top: 0;
        background: var(--color-white);
        z-index: 2;
    }

    .filter-drawer-title {
        font-family: var(--font-mono);
        font-size: 12px;
        font-weight: 500;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        color: var(--color-text);
    }

    .filter-close-btn {
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: var(--color-cream);
        border: none;
        font-size: 16px;
        color: var(--color-text-secondary);
        cursor: pointer;
        border-radius: 50%;
    }

    .filter-close-btn:hover { color: var(--color-text); }

    /* Stack filters vertically in drawer */
    .filter-row {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 20px 0;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        padding: 14px 0;
        border-bottom: 1px solid rgba(0,0,0,0.04);
    }

    .filter-label {
        font-size: 11px;
    }

    .filter-select {
        width: 100%;
        padding: 12px 28px 12px 14px;
        font-size: 13px;
    }

    .caliber-chips { display: none; }

    /* Status toggles in drawer */
    .status-toggles {
        margin-left: 0;
        padding: 14px 0;
        flex-wrap: wrap;
        gap: 6px;
    }

    .status-btn {
        flex: 1 1 calc(50% - 3px);
        justify-content: center;
        padding: 12px;
        font-size: 11px;
    }

    /* Show drawer actions */
    .mobile-filter-actions {
        display: flex;
        gap: 10px;
        padding: 16px 20px;
        border-top: 1px solid var(--color-warm-gray);
        background: var(--color-white);
        position: sticky;
        bottom: 0;
        z-index: 2;
    }

    .mobile-clear-btn {
        flex: 1;
        padding: 14px;
        background: var(--color-cream);
        border: 1px solid var(--color-warm-gray);
        font-family: var(--font-mono);
        font-size: 12px;
        font-weight: 500;
        color: var(--color-text);
        cursor: pointer;
    }

    .mobile-apply-btn {
        flex: 2;
        padding: 14px;
        background: var(--color-text);
        border: none;
        font-family: var(--font-mono);
        font-size: 12px;
        font-weight: 500;
        color: var(--color-cream);
        letter-spacing: 0.04em;
        cursor: pointer;
    }

    /* Results bar adjustments */
    .results-bar {
        margin-top: 100px;
        padding: 10px 16px;
    }

    .results-right { display: none; } /* Hide view toggle + per-page on mobile */

    /* Force cards on mobile */
    body.view-table .table-wrap { display: none; }
    body.view-table .card-grid  { display: grid; }

    /* Single column cards */
    .card-grid {
        grid-template-columns: 1fr;
        gap: 2px;
        padding: 0 16px 48px;
    }

    .card {
        height: 280px;
    }

    .card-bg-brand { font-size: 60px; }
    .card-img-area { padding: 16px 32px; }

    .card-foot {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 18px 16px;
        min-height: auto;
        gap: 8px;
    }

    .card-foot-right {
        width: 100%;
        justify-content: flex-start;
        gap: 20px;
    }

    .card-spec { text-align: left; }

    .card-model-name { font-size: 20px; }

    .card-head { padding: 14px 18px 0; }

    .card-cta { display: none; } /* No hover on mobile */

    /* Pagination */
    .pagination { padding: 16px; }

    /* Table — still accessible via scroll if someone forces it */
    .table-wrap { padding: 0 16px 48px; overflow-x: auto; }
    thead { position: static; }
    table { min-width: 700px; }
}


/* =====================================================
   RESPONSIVE — 480px (small phones)
   ===================================================== */
@media (max-width: 480px) {
    .mobile-filter-bar { top: 48px; padding: 8px 12px; }
    .mobile-filter-toggle { padding: 8px 12px; font-size: 11px; }
    .mobile-sort-select { font-size: 10px; padding: 8px 24px 8px 10px; }

    .results-bar { margin-top: 88px; padding: 8px 12px; }
    .results-count { font-size: 11px; }

    .card-grid { padding: 0 12px 48px; }
    .card { height: 260px; }
    .card-model-name { font-size: 18px; }
    .card-spec-val { font-size: 15px; }
    .card-head { padding: 12px 16px 0; }
    .card-foot { padding: 10px 16px 14px; }

    .pagination { gap: 2px; }
    .pg-btn { min-width: 30px; height: 30px; font-size: 11px; }
}


/* =====================================================
   RESPONSIVE — Column hiding for table (if accessed)
   ===================================================== */
@media (max-width: 900px) {
    .col-hide-sm,
    td:nth-child(4), /* Size */
    td:nth-child(6)  /* Barrel */
    { display: none; }
    th.col-hide-sm { display: none; }
}

@media (max-width: 700px) {
    .col-hide-md,
    td:nth-child(9) /* Expires */
    { display: none; }
    th.col-hide-md { display: none; }
}


/* ═══════════════════════════════════════════════════════
   6. DETAIL (handgun.html)
   ═══════════════════════════════════════════════════════ */
/* =====================================================
   CALIROSTER — DETAIL PAGE v2
   Full-width layout. No dead space.
   ===================================================== */

/* ── Breadcrumb ── */
.breadcrumb {
    position: fixed;
    top: 52px;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-warm-gray);
    padding: 10px 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.03em;
}

.breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.breadcrumb a:hover { color: var(--color-accent); }
.breadcrumb .sep { color: var(--color-warm-gray); user-select: none; }
.breadcrumb .current { color: var(--color-text); font-weight: 500; }


/* =====================================================
   HERO — kept from original, full viewport
   ===================================================== */
.hero {
    position: relative;
    min-height: 80vh;
    background: var(--color-text);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 60px 80px;
}

.hero-bg-text {
    position: absolute;
    font-family: var(--font-serif);
    font-size: 25vw;
    font-style: italic;
    color: rgba(255,255,255,0.03);
    white-space: nowrap;
    pointer-events: none;
    line-height: 0.85;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 900px;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 24px;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(56px, 12vw, 140px);
    font-weight: 400;
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: var(--color-cream);
    margin-bottom: 40px;
}

.hero-title .model { display: block; font-style: italic; }

.hero-meta-row {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 28px;
}

.hero-meta-item { display: flex; flex-direction: column; gap: 4px; }

.hero-meta-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.hero-meta-value {
    font-family: var(--font-serif);
    font-size: 24px;
    font-style: italic;
    color: var(--color-cream);
}

.roster-status {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 22px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
}

.roster-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    background: var(--color-roster-green);
    animation: pulse 2s ease-in-out infinite;
}
.roster-dot.expiring { background: var(--color-alert); }
.roster-dot.removed  { background: var(--color-removed); }
.roster-dot.new-item { background: var(--color-new-blue); }

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(1.15); }
}

.roster-text {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-roster-green);
}
.roster-text.expiring { color: var(--color-alert); }
.roster-text.removed  { color: var(--color-removed); }
.roster-text.new-item { color: var(--color-new-blue); }

.roster-expires {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    margin-left: 8px;
    padding-left: 16px;
    border-left: 1px solid rgba(255,255,255,0.2);
}

/* Hero Favorite Button */
.hero-fav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 24px;
    padding: 12px 24px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: rgba(255,255,255,0.7);
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.06em;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
}

.hero-fav:hover {
    background: rgba(255,255,255,0.12);
    color: var(--color-cream);
    border-color: rgba(255,255,255,0.3);
}

.hero-fav-icon {
    font-size: 16px;
    line-height: 1;
    transition: transform 0.2s;
}

.hero-fav.active {
    background: rgba(255,255,255,0.12);
    color: var(--color-cream);
    border-color: rgba(255,255,255,0.3);
}

.hero-fav.active .hero-fav-icon {
    color: #e25555;
}

.hero-fav:active .hero-fav-icon {
    transform: scale(1.3);
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 1;
    transition: opacity 0.5s;
}
.scroll-indicator.hidden { opacity: 0; }

.scroll-indicator-text {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.4);
}

.scroll-indicator-line {
    width: 1px; height: 24px;
    background: rgba(255,255,255,0.4);
    animation: scrollPulse 2s ease-in-out infinite;
}

@keyframes scrollPulse {
    0%, 100% { transform: scaleY(1); opacity: 1; }
    50% { transform: scaleY(0.5); opacity: 0.5; }
}


/* =====================================================
   SPEC STRIP — full-width bar under hero
   ===================================================== */
.spec-strip {
    display: flex;
    background: var(--color-text);
    border-top: 1px solid rgba(255,255,255,0.08);
}

.spec-strip-item {
    flex: 1;
    padding: 24px 20px;
    text-align: center;
    border-right: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.spec-strip-item:last-child { border-right: none; }

.ss-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.ss-value {
    font-family: var(--font-serif);
    font-size: 24px;
    font-style: italic;
    color: var(--color-cream);
}

.ss-price { color: var(--color-accent); }


/* =====================================================
   DETAIL BODY — 2-column fill
   ===================================================== */
.detail-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 0;
}

.detail-left {
    background: var(--color-white);
    padding: 0;
}

.detail-right {
    background: var(--color-cream);
    padding: 0;
}


/* =====================================================
   PANELS — shared card style
   ===================================================== */
.panel {
    padding: 32px 40px;
    border-bottom: 1px solid var(--color-warm-gray);
}

.panel:last-child { border-bottom: none; }

.panel-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.panel-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.panel-links { display: flex; gap: 12px; }

.panel-link {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--color-accent);
    text-decoration: none;
    padding: 8px 14px;
    border: 1px solid var(--color-accent);
    transition: background 0.2s, color 0.2s;
}
.panel-link:hover { background: var(--color-accent); color: var(--color-white); }


/* ── Spec Rows ── */
.spec-rows { border-top: 2px solid var(--color-text); }

.spec-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-cream);
}

.spec-label {
    font-size: 15px;
    color: var(--color-text-secondary);
}

.spec-val {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
    text-align: right;
}

.spec-val-price {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    font-weight: 400;
}


/* ── Status Panel ── */
.panel-status {
    border-left: 4px solid var(--color-roster-green);
}

.status-card-body { padding: 0; }

.sc-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 6px;
}

.sc-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--color-roster-green);
    animation: pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}
.sc-dot.expiring { background: var(--color-alert); }
.sc-dot.removed  { background: var(--color-removed); }
.sc-dot.new-item { background: var(--color-new-blue); }

.sc-text {
    font-family: var(--font-serif);
    font-size: 26px;
    font-style: italic;
}

.sc-exp {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--color-text-secondary);
}


/* ── Capacity Panel ── */
.cap-body { padding: 0; }

.cap-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}

.cap-dots {
    display: flex;
    gap: 3px;
    flex-wrap: wrap;
    max-width: 180px;
}

.cap-dot {
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--color-accent);
}

.cap-dot.chamber {
    background: transparent;
    border: 2px solid var(--color-accent);
}

.cap-num {
    font-family: var(--font-serif);
    font-size: 32px;
    font-style: italic;
    line-height: 1;
}

.cap-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-secondary);
}


/* ── Verify Panel ── */
.panel-verify { background: rgba(0,0,0,0.015); }

.verify-text {
    font-size: 14px;
    color: var(--color-text-secondary);
    line-height: 1.65;
    margin-bottom: 16px;
}

.verify-sku {
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding: 14px 18px;
    background: var(--color-white);
}

.verify-sku-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.verify-sku-value {
    font-family: var(--font-mono);
    font-size: 15px;
    font-weight: 500;
}


/* ── Purchase Panel ── */
.panel-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.pp-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.pp-value {
    font-family: var(--font-serif);
    font-size: 28px;
    font-style: italic;
    color: var(--color-text);
}

.buy-note {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.retailers { display: flex; flex-direction: column; }

.ret {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    text-decoration: none;
    color: inherit;
    transition: padding-left 0.2s;
}
.ret:last-child { border-bottom: none; }
.ret:hover { padding-left: 8px; }

.ret-name {
    font-family: var(--font-serif);
    font-size: 19px;
    font-weight: 400;
}

.ret-type {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-top: 3px;
}

.ret-arrow {
    font-family: var(--font-serif);
    font-size: 20px;
    color: var(--color-text-secondary);
    transition: color 0.2s, transform 0.2s;
}
.ret:hover .ret-arrow { color: var(--color-text); transform: translateX(3px); }


/* =====================================================
   RELATED — full-width dark strip
   ===================================================== */
.related-section {
    background: var(--color-text);
    padding: 48px 0;
}

.related-inner { padding: 0 40px; }

.related-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
}

.related-title {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-cream);
}

.related-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color 0.2s;
}
.related-link:hover { color: var(--color-cream); }

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.rel-card {
    background: rgba(255,255,255,0.06);
    padding: 28px;
    text-decoration: none;
    color: var(--color-cream);
    transition: background 0.25s, transform 0.25s;
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 2px solid transparent;
}
.rel-card:hover {
    background: rgba(255,255,255,0.12);
    border-bottom-color: var(--color-accent);
    transform: translateY(-2px);
}

.rel-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.rel-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
}

.rel-status.on  .rel-dot { background: var(--color-roster-green); }
.rel-status.on  { color: var(--color-roster-green); }
.rel-status.new .rel-dot { background: var(--color-new-blue); }
.rel-status.new { color: var(--color-new-blue); }
.rel-status.exp .rel-dot { background: var(--color-alert); }
.rel-status.exp { color: var(--color-alert); }
.rel-status.off .rel-dot { background: var(--color-removed); }
.rel-status.off { color: var(--color-removed); }

.rel-model {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    line-height: 1.25;
    color: var(--color-white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.rel-meta {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.45);
    letter-spacing: 0.04em;
    line-height: 1.5;
}

.rel-price {
    font-family: var(--font-serif);
    font-size: 18px;
    font-style: italic;
    color: var(--color-cream);
    margin-top: auto;
    padding-top: 4px;
}


/* =====================================================
   NOT FOUND
   ===================================================== */
.not-found {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 32px;
    text-align: center;
}

.not-found-title { font-family: var(--font-serif); font-size: 48px; margin-bottom: 12px; }
.not-found-text { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-secondary); margin-bottom: 32px; }
.not-found-link {
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 14px 28px; background: var(--color-text);
    color: var(--color-cream); text-decoration: none;
    transition: background 0.2s;
}
.not-found-link:hover { background: var(--color-accent); }


/* =====================================================
   RESPONSIVE — 1024px
   ===================================================== */
@media (max-width: 1024px) {
    .breadcrumb { padding: 10px 20px; }
    .hero { padding: 100px 40px 60px; min-height: 70vh; }
    .hero-title { font-size: clamp(48px, 10vw, 100px); }
    .hero-meta-row { flex-wrap: wrap; gap: 28px; }

    .spec-strip { flex-wrap: wrap; }
    .spec-strip-item { flex: 1 1 33%; min-width: 0; padding: 18px 16px; }

    .panel { padding: 28px 32px; }
    .related-inner { padding: 0 32px; }
    .related-grid { grid-template-columns: repeat(2, 1fr); }
    .rel-card { padding: 24px; }
}


/* =====================================================
   RESPONSIVE — 768px (stack columns)
   ===================================================== */
@media (max-width: 768px) {
    .hero { padding: 80px 24px 60px; min-height: 60vh; }
    .hero-title { font-size: clamp(40px, 12vw, 80px); margin-bottom: 28px; }
    .hero-meta-row { gap: 20px; }
    .hero-meta-value { font-size: 20px; }

    .spec-strip-item { flex: 1 1 50%; padding: 16px 14px; }
    .ss-value { font-size: 18px; }

    /* Stack columns */
    .detail-body { grid-template-columns: 1fr; }
    .detail-right { background: var(--color-white); }
    .panel { padding: 28px 24px; }

    .sc-text { font-size: 24px; }
    .pp-value { font-size: 24px; }
    .ret-name { font-size: 18px; }

    .related-section { padding: 40px 0; }
    .related-inner { padding: 0 24px; }
    .related-grid { grid-template-columns: 1fr 1fr; }
    .rel-card { padding: 22px; }
    .rel-model { font-size: 18px; }
    .rel-meta { font-size: 11px; }
    .rel-price { font-size: 17px; }
}


/* =====================================================
   RESPONSIVE — 480px
   ===================================================== */
@media (max-width: 480px) {
    .breadcrumb { padding: 10px 16px; top: 48px; font-size: 10px; }

    .hero { padding: 72px 20px 48px; min-height: 55vh; }
    .hero-title { margin-bottom: 24px; }
    .hero-meta-row { gap: 16px; }
    .hero-meta-value { font-size: 18px; }

    .spec-strip-item { padding: 14px 10px; }
    .ss-label { font-size: 8px; }
    .ss-value { font-size: 16px; }

    .panel { padding: 22px 16px; }
    .panel-link { padding: 6px 10px; font-size: 10px; }

    .spec-label { font-size: 14px; }
    .spec-val { font-size: 14px; }

    .sc-text { font-size: 21px; }
    .cap-num { font-size: 26px; }
    .pp-value { font-size: 22px; }
    .ret-name { font-size: 16px; }

    .related-section { padding: 32px 0; }
    .related-inner { padding: 0 16px; }
    .related-grid { gap: 2px; }
    .rel-card { padding: 18px; }
    .rel-model { font-size: 17px; }
    .rel-meta { font-size: 11px; }
    .rel-price { font-size: 16px; }
}


/* ═══════════════════════════════════════════════════════
   7. BRAND (brand.html + brands.html)
   ═══════════════════════════════════════════════════════ */
/* =====================================================
   CALIROSTER — BRANDS INDEX + BRAND DETAIL
   ===================================================== */

/* =====================================================
   BRANDS INDEX PAGE
   ===================================================== */
.brands-hero {
    background: var(--color-text);
    padding: 120px 40px 64px;
    text-align: center;
}

.brands-hero-inner { max-width: 700px; margin: 0 auto; }

.brands-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.brands-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(56px, 10vw, 96px);
    font-style: italic;
    font-weight: 400;
    color: var(--color-cream);
    line-height: 1;
    margin-bottom: 16px;
}

.brands-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    line-height: 1.6;
}

/* Grid */
.brands-index {
    background: var(--color-white);
    padding: 48px 40px;
}

.brands-index-inner { max-width: 1100px; margin: 0 auto; }

.brands-index-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3px;
}

.bi-card {
    background: var(--color-cream);
    padding: 28px 24px;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: background 0.2s, transform 0.15s;
    border-bottom: 2px solid transparent;
}

.bi-card:hover {
    background: var(--color-warm-gray);
    border-bottom-color: var(--color-accent);
    transform: translateY(-2px);
}

.bi-name {
    font-family: var(--font-serif);
    font-size: 20px;
    font-style: italic;
    line-height: 1.2;
}

.bi-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-secondary);
    letter-spacing: 0.04em;
}

.bi-hq {
    font-family: var(--font-mono);
    font-size: 10px;
    color: var(--color-text-secondary);
    margin-top: auto;
    padding-top: 4px;
}


/* =====================================================
   BRAND DETAIL PAGE
   ===================================================== */

/* Breadcrumb */
.brand-breadcrumb {
    position: fixed;
    top: 52px;
    left: 0; right: 0;
    z-index: 100;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--color-warm-gray);
    padding: 10px 32px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.03em;
}

.brand-breadcrumb a {
    color: var(--color-text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}
.brand-breadcrumb a:hover { color: var(--color-accent); }
.brand-breadcrumb .sep { color: var(--color-warm-gray); user-select: none; }
.brand-breadcrumb .current { color: var(--color-text); font-weight: 500; }

/* Hero */
.brand-hero {
    position: relative;
    background: var(--color-text);
    padding: 140px 40px 64px;
    overflow: hidden;
    text-align: center;
}

.brand-hero-bg {
    position: absolute;
    font-family: var(--font-serif);
    font-size: 20vw;
    font-style: italic;
    color: rgba(255,255,255,0.025);
    white-space: nowrap;
    pointer-events: none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    line-height: 0.85;
}

.brand-hero-content {
    position: relative;
    z-index: 10;
    max-width: 800px;
    margin: 0 auto;
}

.brand-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.brand-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 10vw, 100px);
    font-style: italic;
    font-weight: 400;
    color: var(--color-cream);
    line-height: 0.95;
    margin-bottom: 32px;
}

.brand-hero-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 32px;
}

.bh-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bh-stat-num {
    font-family: var(--font-serif);
    font-size: 28px;
    font-style: italic;
    color: var(--color-cream);
    line-height: 1;
}

.bh-stat-label {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}

.brand-hero-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.bh-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--color-cream);
    color: var(--color-text);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.bh-cta:hover { background: var(--color-white); transform: translateY(-1px); }
.bh-cta .arrow { transition: transform 0.2s; }
.bh-cta:hover .arrow { transform: translateY(3px); }

.bh-link {
    font-family: var(--font-mono);
    font-size: 12px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}
.bh-link:hover { color: var(--color-cream); }


/* About Section */
.brand-about {
    background: var(--color-white);
    padding: 56px 40px;
}

.brand-about-inner { max-width: 800px; margin: 0 auto; }

.brand-about-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.brand-about-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
}

.brand-about-founded {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--color-text-secondary);
    letter-spacing: 0.06em;
}

.brand-about-text {
    font-size: 16px;
    line-height: 1.8;
    color: var(--color-text-secondary);
}


/* News Section (hidden by default) */
.brand-news {
    background: var(--color-cream);
    padding: 56px 40px;
}

.brand-news-inner { max-width: 1100px; margin: 0 auto; }

.brand-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3px;
    margin-top: 24px;
}


/* Photos Section (hidden by default) */
.brand-photos {
    background: var(--color-white);
    padding: 56px 40px;
}

.brand-photos-inner { max-width: 1100px; margin: 0 auto; }

.brand-photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-top: 24px;
}


/* Section Label (shared) */
.section-label {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
}


/* =====================================================
   MODELS GRID
   ===================================================== */
.brand-models {
    background: var(--color-cream);
    padding: 56px 40px;
}

.brand-models-inner { max-width: 1100px; margin: 0 auto; }

.brand-models-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 28px;
    flex-wrap: wrap;
    gap: 16px;
}

.brand-models-controls {
    display: flex;
    align-items: center;
    gap: 16px;
}

.bm-sort {
    font-family: var(--font-mono);
    font-size: 12px;
    padding: 8px 12px;
    border: 1px solid var(--color-warm-gray);
    background: var(--color-white);
    color: var(--color-text);
    cursor: pointer;
}

.bm-browse-link {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-accent);
    text-decoration: none;
    letter-spacing: 0.04em;
    transition: color 0.2s;
}
.bm-browse-link:hover { color: var(--color-text); }

/* Model Cards */
.brand-models-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
}

.bm-card {
    background: var(--color-white);
    padding: 24px;
    text-decoration: none;
    color: var(--color-text);
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: background 0.2s, transform 0.15s;
    border-left: 3px solid var(--color-roster-green);
}

.bm-card:hover {
    background: var(--color-warm-gray);
    transform: translateY(-2px);
}

.bm-card.status-expiring { border-left-color: var(--color-alert); }
.bm-card.status-removed  { border-left-color: var(--color-removed); }
.bm-card.status-new      { border-left-color: var(--color-new-blue); }

.bm-model {
    font-family: var(--font-serif);
    font-size: 19px;
    font-style: italic;
    line-height: 1.2;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bm-specs {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--color-text-secondary);
    letter-spacing: 0.03em;
    line-height: 1.6;
}

.bm-bottom {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: auto;
    padding-top: 8px;
}

.bm-price {
    font-family: var(--font-serif);
    font-size: 17px;
    font-style: italic;
}

.bm-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.bm-status-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
}

.bm-status.on  { color: var(--color-roster-green); }
.bm-status.on  .bm-status-dot { background: var(--color-roster-green); }
.bm-status.exp { color: var(--color-alert); }
.bm-status.exp .bm-status-dot { background: var(--color-alert); }
.bm-status.off { color: var(--color-removed); }
.bm-status.off .bm-status-dot { background: var(--color-removed); }
.bm-status.new { color: var(--color-new-blue); }
.bm-status.new .bm-status-dot { background: var(--color-new-blue); }


/* Not Found */
.brand-not-found {
    min-height: 60vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 32px;
    text-align: center;
}

.bnf-title { font-family: var(--font-serif); font-size: 48px; margin-bottom: 12px; }
.bnf-text { font-family: var(--font-mono); font-size: 13px; color: var(--color-text-secondary); margin-bottom: 32px; }
.bnf-link {
    font-family: var(--font-mono); font-size: 12px;
    letter-spacing: 0.1em; text-transform: uppercase;
    padding: 14px 28px; background: var(--color-text);
    color: var(--color-cream); text-decoration: none;
    transition: background 0.2s;
}
.bnf-link:hover { background: var(--color-accent); }


/* =====================================================
   RESPONSIVE — 1024px
   ===================================================== */
@media (max-width: 1024px) {
    .brands-index { padding: 40px 32px; }
    .brands-index-grid { grid-template-columns: repeat(3, 1fr); }

    .brand-hero { padding: 120px 32px 56px; }
    .brand-about { padding: 40px 32px; }
    .brand-models { padding: 40px 32px; }
    .brand-models-grid { grid-template-columns: repeat(2, 1fr); }
}


/* =====================================================
   RESPONSIVE — 768px
   ===================================================== */
@media (max-width: 768px) {
    .brands-hero { padding: 100px 24px 48px; }
    .brands-index { padding: 32px 24px; }
    .brands-index-grid { grid-template-columns: repeat(2, 1fr); }

    .brand-breadcrumb { padding: 10px 20px; }
    .brand-hero { padding: 100px 24px 48px; }
    .brand-hero-title { font-size: clamp(40px, 12vw, 72px); }
    .brand-hero-stats { gap: 28px; flex-wrap: wrap; }
    .brand-hero-actions { flex-direction: column; gap: 12px; }

    .brand-about { padding: 40px 24px; }
    .brand-about-title { font-size: 24px; }
    .brand-about-text { font-size: 15px; }

    .brand-models { padding: 40px 24px; }
    .brand-models-grid { grid-template-columns: 1fr 1fr; }
    .brand-models-controls { flex-direction: column; align-items: flex-start; gap: 10px; }
}


/* =====================================================
   RESPONSIVE — 480px
   ===================================================== */
@media (max-width: 480px) {
    .brands-hero { padding: 80px 16px 40px; }
    .brands-hero-title { font-size: clamp(40px, 14vw, 64px); }
    .brands-index { padding: 24px 16px; }
    .brands-index-grid { grid-template-columns: 1fr; }
    .bi-card { padding: 22px 20px; }

    .brand-breadcrumb { padding: 10px 16px; top: 48px; font-size: 10px; }
    .brand-hero { padding: 80px 16px 40px; }
    .brand-hero-title { margin-bottom: 24px; }
    .bh-stat-num { font-size: 22px; }

    .brand-about { padding: 32px 16px; }
    .brand-models { padding: 32px 16px; }
    .brand-models-grid { grid-template-columns: 1fr; }
    .bm-card { padding: 20px; }
    .bm-model { font-size: 17px; }
}


/* ═══════════════════════════════════════════════════════
   8. FAQ (faq.html)
   ═══════════════════════════════════════════════════════ */
/* =====================================================
   CALIROSTER — FAQ PAGE
   Editorial style, numbered sections, accordion.
   ===================================================== */

/* ── Hero ── */
.faq-hero {
    background: var(--color-text);
    padding: 120px 40px 56px;
    text-align: center;
}

.faq-hero-inner { max-width: 700px; margin: 0 auto; }

.faq-hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.faq-hero-title {
    font-family: var(--font-serif);
    font-size: clamp(48px, 8vw, 80px);
    font-style: italic;
    font-weight: 400;
    color: var(--color-cream);
    line-height: 1;
    margin-bottom: 16px;
}

.faq-hero-sub {
    font-size: 16px;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 560px;
    margin: 0 auto;
}


/* ── TOC ── */
.faq-toc {
    background: var(--color-text);
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 20px 40px;
}

.faq-toc-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
}

.toc-link {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.45);
    text-decoration: none;
    padding: 8px 0;
    transition: color 0.2s;
}

.toc-link:hover { color: var(--color-cream); }


/* ── Body ── */
.faq-body {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 40px 48px;
}


/* ── Section ── */
.faq-section {
    padding-top: 48px;
}

.faq-section-head {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-bottom: 8px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--color-text);
}

.faq-section-num {
    font-family: var(--font-serif);
    font-size: 48px;
    font-style: italic;
    color: var(--color-warm-gray);
    line-height: 1;
}

.faq-section-title {
    font-family: var(--font-serif);
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    line-height: 1.2;
}


/* ── Accordion ── */
.faq-item {
    border-bottom: 1px solid var(--color-warm-gray);
}

.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 0;
    background: none;
    border: none;
    font-family: var(--font-serif);
    font-size: 20px;
    font-weight: 400;
    color: var(--color-text);
    text-align: left;
    cursor: pointer;
    gap: 16px;
    transition: color 0.2s;
    line-height: 1.3;
}

.faq-q:hover { color: var(--color-accent); }

.faq-arrow {
    font-family: var(--font-mono);
    font-size: 14px;
    color: var(--color-text-secondary);
    transition: transform 0.3s;
    flex-shrink: 0;
}

.faq-item.open .faq-arrow { transform: rotate(45deg); }

.faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-item.open .faq-a {
    max-height: 800px;
    padding-bottom: 24px;
}

.faq-a p {
    font-size: 15px;
    line-height: 1.85;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
}

.faq-a p:last-child { margin-bottom: 0; }

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

.faq-a a:hover { color: var(--color-text); }

.faq-a strong { color: var(--color-text); font-weight: 600; }

.faq-a em { font-style: italic; }


/* ── Support Banner ── */
.support-banner {
    background: var(--color-text);
    padding: 48px 40px;
}

.support-banner-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
}

.support-text { flex: 1; }

.support-headline {
    font-family: var(--font-serif);
    font-size: 24px;
    font-style: italic;
    color: var(--color-cream);
    margin-bottom: 6px;
}

.support-sub {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
}

.support-actions { flex-shrink: 0; }

.support-cta {
    display: inline-block;
    padding: 16px 28px;
    background: var(--color-accent);
    color: var(--color-white);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, transform 0.2s;
}

.support-cta:hover {
    background: var(--color-cream);
    color: var(--color-text);
    transform: translateY(-1px);
}


/* =====================================================
   RESPONSIVE — 768px
   ===================================================== */
@media (max-width: 768px) {
    .faq-hero { padding: 100px 24px 44px; }
    .faq-hero-title { font-size: clamp(40px, 10vw, 64px); }
    .faq-toc { padding: 16px 24px; }
    .toc-link { font-size: 10px; }
    .faq-body { padding: 0 24px 40px; }
    .faq-section-num { font-size: 36px; }
    .faq-section-title { font-size: 24px; }
    .faq-q { font-size: 18px; padding: 20px 0; }

    .support-banner { padding: 40px 24px; }
    .support-banner-inner { flex-direction: column; text-align: center; }
    .support-headline { font-size: 22px; }
}


/* =====================================================
   RESPONSIVE — 480px
   ===================================================== */
@media (max-width: 480px) {
    .faq-hero { padding: 80px 16px 36px; }
    .faq-toc { padding: 14px 16px; }
    .toc-link { font-size: 10px; letter-spacing: 0.02em; }
    .faq-toc-inner { gap: 16px; }
    .faq-body { padding: 0 16px 32px; }
    .faq-section { padding-top: 36px; }
    .faq-section-num { font-size: 32px; }
    .faq-section-title { font-size: 22px; }
    .faq-q { font-size: 17px; padding: 18px 0; }
    .faq-a p { font-size: 14px; }

    .support-banner { padding: 32px 16px; }
    .support-headline { font-size: 20px; }
    .support-cta { padding: 14px 24px; font-size: 11px; }
}


/* ═══════════════════════════════════════════════════════
   9. SEO CONTENT SECTION (gun + brand detail pages)
   ═══════════════════════════════════════════════════════ */

.seo-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 64px 24px 80px;
}

.seo-inner h2 {
    font-family: var(--font-serif);
    font-style: italic;
    font-size: 28px;
    margin: 48px 0 16px;
    color: var(--color-text);
    line-height: 1.3;
}

.seo-inner h2:first-child {
    margin-top: 0;
}

.seo-inner p {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.75;
    color: var(--color-text-secondary);
    margin-bottom: 16px;
}

.seo-inner a {
    color: var(--color-accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.seo-inner a:hover {
    border-bottom-color: var(--color-accent);
}

.future-section {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid var(--color-warm-gray);
}

@media (max-width: 768px) {
    .seo-content { padding: 40px 20px 60px; }
    .seo-inner h2 { font-size: 24px; margin: 36px 0 12px; }
    .seo-inner p { font-size: 15px; }
}


/* ═══════════════════════════════════════════════════════
   AGE GATE OVERLAY
   ═══════════════════════════════════════════════════════ */
#age-gate {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: ageGateFadeIn 0.3s ease;
}

#age-gate.age-gate-closing {
    animation: ageGateFadeOut 0.3s ease forwards;
}

.age-gate-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 8, 5, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.age-gate-modal {
    position: relative;
    background: var(--color-cream, #F7F5F0);
    border: 1px solid var(--color-warm-gray, #E8E4DD);
    max-width: 520px;
    width: calc(100% - 32px);
    padding: 48px 40px 36px;
    text-align: center;
    animation: ageGateSlideUp 0.4s ease;
}

.age-gate-icon {
    font-size: 28px;
    margin-bottom: 16px;
    display: block;
    opacity: 0.7;
}

.age-gate-title {
    font-family: var(--font-serif, Georgia, serif);
    font-size: 28px;
    font-weight: 400;
    color: var(--color-text, #1A1815);
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.age-gate-text {
    font-family: var(--font-sans, sans-serif);
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-text-secondary, #6B6560);
    margin-bottom: 12px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.age-gate-text strong {
    color: var(--color-text, #1A1815);
    font-weight: 600;
}

.age-gate-text-sm {
    font-family: var(--font-sans, sans-serif);
    font-size: 12px;
    line-height: 1.7;
    color: var(--color-text-secondary, #6B6560);
    margin-bottom: 28px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.age-gate-text-sm a {
    color: var(--color-accent, #8B7355);
    text-decoration: underline;
}

.age-gate-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 24px;
}

.age-gate-btn {
    font-family: var(--font-mono, monospace);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 16px 24px;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.age-gate-confirm {
    background: var(--color-text, #1A1815);
    color: var(--color-cream, #F7F5F0);
}

.age-gate-confirm:hover {
    background: var(--color-accent, #8B7355);
}

.age-gate-deny {
    background: transparent;
    color: var(--color-text-secondary, #6B6560);
    border: 1px solid var(--color-warm-gray, #E8E4DD);
}

.age-gate-deny:hover {
    border-color: var(--color-text-secondary, #6B6560);
    color: var(--color-text, #1A1815);
}

.age-gate-legal {
    font-family: var(--font-mono, monospace);
    font-size: 9px;
    line-height: 1.8;
    color: var(--color-text-secondary, #6B6560);
    opacity: 0.5;
    letter-spacing: 0.02em;
}

@keyframes ageGateFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ageGateFadeOut {
    from { opacity: 1; }
    to { opacity: 0; }
}

@keyframes ageGateSlideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 640px) {
    .age-gate-modal {
        padding: 36px 24px 28px;
    }
    .age-gate-title {
        font-size: 24px;
    }
    .age-gate-text {
        font-size: 14px;
    }
}


/* ═══════════════════════════════════════════════════════
   FOOTER AGE NOTICE
   ═══════════════════════════════════════════════════════ */
/* Footer age notice is now built into .footer-legal — no separate element needed */
