/* components.css — SHARED COMPONENTS LAYER
 * Responsibility: navigation, dropdowns, buttons, cards, tags, forms, scroll-to-top.
 * Inputs: tokens.css + base.css (load order matters). Outputs: reusable component styles.
 * Side effects: nav/dropdown text is WHITE on solid-black bar — do not change without updating scripts/check.mjs.
 * Rules for extension: component selectors only; page-specific overrides belong in pages/*.css.
 */
/* ===== NAVIGATION ===== */
nav {
    color: var(--text-nav);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1300; /* above consent banner 1200/FAB 1100 so the mobile drawer (inside this stacking context) is not covered at the bottom; below consent dialog 1550 + age-gate 1600 — see stack in privacy-choices.css */
    background: #000;
    border-bottom: 1px solid transparent;
    transition: background var(--duration-normal) var(--ease-out-quart),
                border-color var(--duration-normal) var(--ease-out-quart),
                backdrop-filter var(--duration-normal) var(--ease-out-quart);
}

nav a, nav button, nav span { color: var(--text-nav); }
.dropdown a, .dropdown button, .dropdown span, .dropdown div { color: var(--text-dropdown); }
nav.scrolled {
    background: #000;
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.nav-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    align-items: center;
    height: 64px;
}

.nav-logo {
    justify-self: start;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: 'Oswald', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.08em;
    color: var(--text-primary);
    text-decoration: none;
    transition: opacity var(--duration-fast) var(--ease-out-quart);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.nav-logo:hover {
    opacity: 0.8;
}

.nav-logo .logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: none;
    stroke: var(--accent-primary);
    stroke-width: 1.5;
    transition: filter var(--duration-normal) var(--ease-out-quart);
}

.nav-menu {
    display: flex;
    gap: 0;
    list-style: none;
    align-items: center;
    justify-content: center;
    justify-self: center;
    position: static;
    transform: none;
}

.nav-item {
    position: relative;
}

.nav-link {
    text-decoration: none;
    font-size: 1rem;
    font-weight: 510;
    padding: 0.5rem 1.25rem;
    white-space: nowrap; /* 5 top-level items (News/Guides/Map Hub/Media/About) must not wrap to two lines */
    transition: color var(--duration-fast) var(--ease-out-quart);
    display: flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    font-family: var(--font-body);
    position: relative;
    overflow: hidden;
    border: none;
    letter-spacing: 0.02em;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--accent-primary);
    transition: width var(--duration-normal) var(--ease-out-expo),
                left var(--duration-normal) var(--ease-out-expo);
}

.nav-link:hover {
}

.nav-link:hover::after {
    width: 60%;
    left: 20%;
}

.nav-link:focus-visible {
    outline: 2px solid var(--focus-ring);
    outline-offset: 4px;
    border-radius: 4px;
}

.nav-link .chevron {
    width: 10px;
    height: 10px;
    transition: transform var(--duration-fast) var(--ease-out-quart);
    opacity: 0.6;
}

.nav-item:hover .chevron {
    transform: rotate(180deg);
}

.dropdown {
    color: var(--text-primary);
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    transform: translateY(-8px) scale(0.98);
    background: var(--bg-secondary);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-left: none;
    border-right: none;
    border-radius: 0;
    padding: 1rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4);
    opacity: 0;
    visibility: hidden;
    transition: all var(--duration-normal) var(--ease-out-expo);
    z-index: 1001;
    /* The panel is fixed at top:64px, so it can never be taller than the space
       below the header. Without this the last row (and the "Browse all guides"
       footer) falls off the bottom of a laptop screen and cannot be clicked. */
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

/* Mega-menu layout: full-width panel, items in a multi-column grid */
.dropdown-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.25rem 1rem;
}

.dropdown-inner .dropdown-header,
.dropdown-inner .dropdown-footer,
.dropdown-inner .dropdown-divider {
    grid-column: 1 / -1;
}

.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown-header {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: var(--tracking-widest);
    font-weight: 600;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--duration-fast) var(--ease-out-quart);
    position: relative;
    overflow: hidden;
}

.dropdown-item:hover {
    background: var(--accent-primary-subtle);
}

.dropdown-item-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--bg-tertiary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-lg);
    flex-shrink: 0;
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.dropdown-item:hover .dropdown-item-icon {
    background: var(--accent-primary);
    color: var(--on-accent);
    transform: scale(1.05);
}

.dropdown-item-content {
    flex: 1;
    min-width: 0;
}

.dropdown-item-title {
    font-weight: 600;
    font-size: var(--text-sm);
    margin-bottom: var(--space-1);
}

.dropdown-item-desc {
    font-size: var(--text-xs);
    white-space: normal; /* wrap, never ellipsis-truncate: descriptions are read in full */
    overflow-wrap: break-word;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-2) 0;
}

.dropdown-footer {
    padding: var(--space-2) var(--space-3);
    font-size: var(--text-xs);
    color: var(--text-dropdown);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    cursor: pointer;
    transition: gap var(--duration-fast) var(--ease-out-quart);
    text-decoration: none;
}

.dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.dropdown-footer:hover {
    gap: 0.5rem;
}

.nav-right {
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nav-toggle {
    display: none;
    /* position:relative makes z-index:1001 real in every layout mode: without it
       the hamburger only stayed above the fixed drawer by the grid-item z-index
       quirk (nav-container is a grid; in a non-grid context z-index on a static
       element is ignored and the drawer would bury the close button). */
    position: relative;
    z-index: 1001;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-2);
    border-radius: var(--radius-md);
    background: transparent;
    border: none;
    color: var(--text-nav);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-nav);
    transition: all var(--duration-fast) var(--ease-out-quart);
    border-radius: var(--radius-xs);
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-6);
    border-radius: 6px;
    font-weight: 510;
    font-size: var(--text-sm);
    text-decoration: none;
    transition: all var(--duration-normal) var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 212, 255, 0.2);
    cursor: pointer;
    font-family: var(--font-body);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-tertiary));
    color: var(--on-accent);
    box-shadow: var(--shadow-md), 0 0 20px var(--accent-primary-glow);
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--accent-secondary), var(--accent-primary));
    opacity: 0;
    transition: opacity var(--duration-normal) var(--ease-out-quart);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), 0 0 30px var(--accent-primary-glow);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary span,
.btn-primary svg {
    position: relative;
    z-index: 1;
}

html.theme-rockstar:not([data-theme="light"]) .btn-secondary {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.btn-secondary {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--accent-primary-subtle);
    border-color: var(--accent-primary);
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-ghost:hover {
    color: var(--text-primary);
    border-color: var(--border-medium);
    background: var(--accent-primary-subtle);
}

/* ===== CARDS ===== */
.card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    transition: all var(--duration-normal) var(--ease-out-expo);
}

.card:hover {
    border-color: var(--border-medium);
    box-shadow: var(--shadow-lg);
}

.card-elevated {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
}

/* ===== TAGS ===== */
.tag {
    display: inline-flex;
    padding: var(--space-1) var(--space-3);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.03);
    font-size: var(--text-xs);
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.tag:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
    background: var(--accent-primary-subtle);
}

/* ===== FORMS ===== */
.input {
    padding: var(--space-3) var(--space-4);
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: var(--text-sm);
    font-family: var(--font-body);
    transition: all var(--duration-fast) var(--ease-out-quart);
}

.input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: var(--focus-ring-shadow);
}

.input::placeholder {
    color: var(--text-muted);
}

/* Motion hooks are visible by default; animation must never gate page content. */
.reveal, .reveal-left, .reveal-right, .reveal-scale {
    opacity: 1;
    transform: none;
}
.stagger-children > * {
    opacity: 1;
    transform: none;
}
/* ===== SCROLL TO TOP ===== */
/* Z-INDEX STACK (fixed elements, low→high; audited 2026-11-08):
   page content / map header / gta-guide nav 100 · scroll-top 200 ·
   mode-toggle--fixed 1050 (map only) · consent FAB 1100 · consent banner 1200 ·
   nav 1300 / drawer 999 + dropdown/toggle 1001 inside nav (the modal drawer
   must sit above the non-modal consent banner/FAB, which otherwise cover its
   bottom ~347px at 390px and intercept hits; the consent *dialog* 1550 stays
   above the nav as a modal) · consent dialog 1550 ·
   age-gate backdrop/locked 1600 (topmost — a blocking interstitial must
   cover nav, FAB, banner and mode toggle) · skip-link 2000.
   See css/privacy-choices.css (same stack). */
.scroll-top {
    position: fixed;
    /* Sits above any fixed bottom bar (age notice, consent banner). --bottom-chrome
       is measured by js/nav-scroll.js; without it the button rendered underneath
       the 18+ bar at bottom:32px and was effectively invisible while scrolling. */
    bottom: calc(var(--bottom-chrome, 0px) + var(--space-6));
    right: var(--space-6);
    width: 48px;
    height: 48px;
    background: var(--glass-bg-strong);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    color: var(--text-primary);
    border-radius: var(--radius-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    transition: all var(--duration-normal) var(--ease-out-expo);
    opacity: 0;
    visibility: hidden;
    z-index: 200;
    font-size: var(--text-lg);
}

.scroll-top:hover {
    background: var(--accent-primary);
    color: var(--on-accent);
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl), var(--glow-subtle);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}


/* ===== SHARED FOOTER (from landing page — single source for all pages) ===== */
        footer {
            position: relative;
            z-index: 2;
            border-top: 1px solid var(--border-subtle);
            /* Extra bottom clearance so the fixed consent FAB (bottom-left,
               min-height 44px) and scroll-top (bottom-right) never trap the
               footer's last line at max scroll. */
            padding: 4rem 2rem calc(2rem + 3.5rem);
            background: var(--bg-secondary);
            text-align: center;
        }
        
        .footer-grid {
            max-width: 100%;
            margin: 0 auto;
            display: grid;
            grid-template-columns: 2fr 1fr 1fr 1fr;
            gap: 3rem;
            margin-bottom: 3rem;
            justify-items: center;
            justify-content: center;
            text-align: center;
        }
        
        @media (max-width: 900px) {
            .footer-grid {
                grid-template-columns: 1fr 1fr;
            }
        }
        
        @media (max-width: 600px) {
            .footer-grid {
                grid-template-columns: 1fr;
            }
        }
        
        .footer-brand {
            font-family: 'Oswald', sans-serif;
            font-weight: 900;
            font-size: 1.25rem;
            margin-bottom: 1rem;
        }
        
        .footer-desc {
            color: var(--text-secondary);
            font-size: 0.9rem;
            line-height: 1.6;
            margin-bottom: 1.5rem;
            text-align: center;
        }
        
        .footer-social {
            display: flex;
            gap: 0.75rem;
            justify-content: center;
        }
        
        .social-link {
            width: 40px;
            height: 40px;
            border-radius: 10px;
            background: var(--bg-tertiary);
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-secondary);
            transition: all var(--duration-fast) var(--ease-out-quart);
            text-decoration: none;
        }
        
        .social-link:hover {
            background: var(--accent-primary);
            color: var(--on-accent);
            transform: translateY(-3px);
        }
        
        .footer-column h4 {
            font-family: 'Oswald', sans-serif;
            font-size: 0.85rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin-bottom: 1.25rem;
            color: var(--text-primary);
            text-align: center;
        }
        
        .footer-links {
            list-style: none;
            display: flex;
            flex-direction: column;
            gap: 0.75rem;
            align-items: center;
            text-align: center;
        }
        
        .footer-links a {
            color: var(--text-secondary);
            font-size: 0.9rem;
            transition: all var(--duration-fast) var(--ease-out-quart);
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            text-decoration: none;
        }
        
        .footer-links a:hover {
            color: var(--accent-primary);
            transform: translateX(4px);
        }
        
        .footer-bottom {
            max-width: 100%;
            margin: 0 auto;
            padding-top: 2rem;
            border-top: 1px solid var(--border-subtle);
            display: flex;
            justify-content: center;
            align-items: center;
            flex-wrap: wrap;
            gap: 1rem;
            color: var(--text-muted);
            font-size: 0.85rem;
            text-align: center;
        }

        /* FOOTER LEGAL DISCLAIMER — legal-ip.md §7.1 (all pages, above copyright line).
           Visible body-size text: never hidden, shrunk, or moved out of the footer. */
        .footer-legal {
            max-width: 56rem;
            margin: 0 auto 1.5rem;
            color: var(--text-secondary);
            font-size: 0.85rem;
            line-height: 1.6;
            text-align: center;
        }
        .footer-legal a { color: var(--text-secondary); text-decoration: underline; }
        .footer-legal a:hover { color: var(--accent-primary); }
/* LIGHT MODE: btn-secondary must not use the dark rgba(255,255,255,.02) wash;
   .tag must not use the dark rgba(255,255,255,.03) wash. */
html[data-theme="light"] .btn-secondary { background: var(--glass-bg); border-color: var(--glass-border); }
html[data-theme="light"] .tag { background: rgba(0,0,0,.04); }

/* AFFILIATE DISCLOSURE (FTC Endorsement Guides, 16 CFR Part 255, rev. 2023).
   "Clear and conspicuous" = difficult to miss + easily understandable (16 CFR 255.0(f)).
   Do NOT hide this block, shrink it below body text, or move it to a footer-only
   location: FTC FAQ requires disclosure near the recommendation/link it relates to.
   Reuse snippet: <aside class="affiliate-disclosure" aria-label="Affiliate disclosure">…
   Any affiliate/paid link inside must carry rel="sponsored" (Google/FTC convention). */
.affiliate-disclosure {
    border: 2px solid var(--accent-primary);
    background: var(--bg-accent);
    color: var(--text-primary);
    border-radius: 8px;
    padding: 1rem 1.25rem;
    margin: 1.5rem 0;
    font-size: 1rem;            /* never smaller than body copy — visibility requirement */
    line-height: 1.5;
}
.affiliate-disclosure strong { color: var(--text-primary); }
.affiliate-disclosure a { color: var(--accent-primary); text-decoration: underline; }

/* AGE GATE (18+) — M-rated interstitial; see js/entry-check.js.
   Tokens only; body text AAA contrast
   (black/white editorial); 44px targets; reduced-motion safe. */
.age-gate-backdrop {
    position: fixed; inset: 0; z-index: 1600; /* topmost: above nav 1300, consent 1100-1550, mode-toggle 1050 */
    background: rgba(0,0,0,.88);
    display: none; align-items: center; align-items: safe center; justify-content: center;
    padding: 1rem; overflow-y: auto; /* 200% zoom / short viewports (WCAG 1.4.10) */
}
.age-gate-backdrop.is-open { display: flex; }
.age-gate {
    background: #000; color: #fff;
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 12px; max-width: 32rem; width: 100%;
    padding: 2rem; text-align: center;
}
html[data-theme="light"] .age-gate { background: #fff; color: #000; border-color: rgba(0,0,0,.25); }
.age-gate__badge {
    display: inline-block; font-weight: 700; letter-spacing: .12em;
    border: 2px solid currentColor; border-radius: 6px;
    padding: .25rem .75rem; margin-bottom: 1rem;
}
.age-gate__title { font-size: 2rem; line-height: 1.15; margin: 0 0 .75rem; }
.age-gate__desc { font-size: 1.125rem; line-height: 1.6; margin: 0 0 1.5rem; }
.age-gate__actions { display: flex; flex-direction: column; gap: .75rem; }
.age-gate__btn {
    min-height: 44px; width: 100%; /* WCAG 2.5.5 target size */
    font-weight: 700; font-size: 1.125rem; line-height: 1;
    border-radius: 9999px; cursor: pointer;
}
.age-gate__btn--confirm { background: #FFD4A8; color: #000; border: 1px solid #FFD4A8; }
.age-gate__btn--confirm:hover { filter: brightness(1.08); }
.age-gate__btn--exit { background: transparent; color: inherit; border: 1px solid currentColor; }
.age-gate__btn--exit:hover { text-decoration: underline; }
.age-gate__btn:focus-visible { outline: 3px solid var(--focus-ring, #FFAB00); outline-offset: 3px; }
.age-gate__fineprint { font-size: 1rem; line-height: 1.5; margin: 1rem 0 0; }
.age-gate__sr-only {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
    white-space: nowrap; border: 0;
}
/* Locked state after Escape: single centered re-entry button (never stranded). */
.age-gate-locked {
    position: fixed; inset: 0; z-index: 1600; /* topmost, matches .age-gate-backdrop */ background: #000; color: #fff;
    display: none; align-items: center; justify-content: center;
    flex-direction: column; gap: 1rem; padding: 1rem; text-align: center;
}
html[data-theme="light"] .age-gate-locked { background: #fff; color: #000; }
.age-gate-locked.is-open { display: flex; }
.age-gate-locked .age-gate__btn { width: auto; padding: 0 2rem; }
@media (prefers-reduced-motion: reduce) { .age-gate__btn { transition: none; } }
/* [hidden] must win over .is-open{display:flex} (author display overrides the
   UA [hidden] rule) — without this, a hidden locked overlay stays visible. */
.age-gate-backdrop[hidden], .age-gate-locked[hidden] { display: none !important; }
/* Pre-paint pending state (head inline script): hide page content until the
   gate (external or fallback) has built, so mature content never flashes
   before the interstitial. Gate overlays themselves stay visible. The head
   script removes this class on open/close/verified and fail-opens after 4s
   if no gate ever appears. Tokens flip in light mode via the rules above. */

/* Mobile input zoom: iOS Safari auto-zooms on focus when text inputs are <16px.
   .input is already 16px (--text-sm); page inputs at 0.72-0.95rem need this guard on coarse pointers. */
@media (pointer: coarse) {
    input, textarea, select, .input, .search-input, .newsletter-input, .calc-input, .progress-input { font-size: 16px !important; }
}

/* === AGE NOTICE (non-blocking) ===
   Replaces the old full-screen 18+ interstitial. Content stays painted and
   scrollable behind a dismissible bar, so neither a reader nor a crawler is
   stopped at the door. Sits above the consent banner, below modals. */
.age-notice {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 0.8rem clamp(1rem, 3vw, 2rem);
  background: #0b0b10;
  color: #f2f2f2;
  border-top: 1px solid rgba(255, 212, 168, 0.35);
  box-shadow: 0 -10px 34px rgba(0, 0, 0, 0.5);
  font-size: 0.86rem;
  line-height: 1.5;
}
.age-notice[hidden] { display: none; }
.age-notice__text { margin: 0; max-width: 78ch; }
.age-notice__badge {
  display: inline-block;
  margin-right: 0.55rem;
  padding: 0.1rem 0.45rem;
  border-radius: 4px;
  background: #ffd4a8;
  color: #0b0b10;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.03em;
  vertical-align: 0.05em;
}
.age-notice__actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.age-notice__btn {
  border-radius: 999px;
  padding: 0.45rem 0.95rem;
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  border: 1px solid transparent;
}
.age-notice__btn--confirm { background: #ffd4a8; color: #0b0b10; font-weight: 700; }
.age-notice__btn--confirm:hover { filter: brightness(1.07); }
.age-notice__btn--leave { background: transparent; color: inherit; border-color: rgba(255, 255, 255, 0.35); }
.age-notice__btn--leave:hover { text-decoration: underline; }
.age-notice__btn:focus-visible { outline: 3px solid #ffab00; outline-offset: 3px; }
html[data-theme="light"] .age-notice { background: #fff; color: #111; border-top-color: rgba(0, 0, 0, 0.18); }
html[data-theme="light"] .age-notice__btn--leave { border-color: rgba(0, 0, 0, 0.35); }
html[data-theme="light"] .age-notice__badge { background: #111; color: #fff; }
/* Room for the bar so it never covers the last line of the footer. */
body.age-notice-open { padding-bottom: 4.5rem; }
@media (max-width: 640px) {
  .age-notice { font-size: 0.8rem; padding: 0.7rem 1rem 0.85rem; }
  /* keep the bar slim on phones: the warning stays, the fineprint does not */
  .age-notice__more, .age-notice__detail { display: none; }
  .age-notice__actions { width: 100%; }
  .age-notice__btn { flex: 1; }
  body.age-notice-open { padding-bottom: 7rem; }
}

/* === SKIP LINK ===
   Hidden until focused; the first Tab stop on every page jumps to #main. */
.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 2000;
  padding: 0.65rem 1rem;
  border-radius: 8px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid rgba(212, 175, 55, 0.6);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-150%);
  transition: transform 140ms ease;
}
.skip-link:focus-visible,
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #d4af37;
  outline-offset: 2px;
}

/* === BREADCRUMBS ===
   Small trail above the page title on article pages. */
/* The site's global `nav` rule pins every nav element to the viewport top with
   a solid background, which is correct for the header and wrong for an in-flow
   breadcrumb. nav.breadcrumbs outranks the bare element selector. */
nav.breadcrumbs {
  position: static;
  width: auto;
  height: auto;
  background: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  padding: 0;
  z-index: auto;
  transform: none;
}
nav.breadcrumbs a, nav.breadcrumbs span { color: inherit; }
.breadcrumbs {
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  opacity: 0.72;
  margin: 0 0 0.9rem;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
}
.breadcrumbs li { display: flex; align-items: center; gap: 0.4rem; }
.breadcrumbs li + li::before { content: "›"; opacity: 0.5; }
.breadcrumbs a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.breadcrumbs a:hover, .breadcrumbs a:focus-visible { border-bottom-color: currentColor; }
.breadcrumbs [aria-current="page"] { opacity: 0.85; }

/* === CROSS-LINK BLOCK ===
   "GTA 6 launch coverage" module appended to older evergreen guides so the new
   cluster is reachable from the pages that already have inbound links. */
.cross-links {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}
.cross-links h2 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.cross-links .cross-meta { font-size: 0.82rem; opacity: 0.6; margin: 0 0 0.9rem; }
.cross-links ul { margin: 0; padding-left: 1.1rem; }
.cross-links li { margin-bottom: 0.45rem; }

/* === AD SLOTS ===
   Reserved boxes: the height is claimed before any ad exists, so inserting a
   unit after approval cannot shift the article below it (CLS stays flat).
   Nothing renders until a publisher ID is configured in js/cmp.js. */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 2.25rem 0;
  min-height: 280px;
  border-radius: 10px;
  background: rgba(127, 127, 127, 0.04);
}
.ad-slot--in-article { min-height: 280px; }
.ad-slot--mid-article { min-height: 280px; }
.ad-slot ins { width: 100%; min-height: inherit; }
@media (max-width: 720px) { .ad-slot, .ad-slot--in-article, .ad-slot--mid-article { min-height: 250px; } }

/* === MODE TOGGLE (nav right) ===
   The nav's only control now that the dead theme buttons are gone. The label
   gets a fixed minimum width so flipping Light <-> Dark cannot resize the pill
   and nudge the logo across the bar. */
.mode-toggle { flex: 0 0 auto; } /* never let a flex parent shrink the pill */
.mode-toggle__icon { font-size: 1rem; line-height: 1; display: inline-block; }
.mode-toggle__label { min-width: 2.9em; text-align: left; }
@media (max-width: 430px) {
  .mode-toggle__label { min-width: 2.6em; }
  /* The map header row is narrower than its controls on a phone, so it
     scrolls. Keep the global theme control first there rather than letting it
     sit off the right edge behind a scroll the reader has no reason to try. */
  .map-header .header-right .mode-toggle { order: -1; }
}

/* News menu: six items, three columns. The shared auto-fit grid would put four
   across and leave one orphan on a second row, which reads like a broken menu. */
/* Scope to desktop: the mobile drawer collapses .dropdown-inner to a single
   column, and an id selector would outrank that rule and re-break the accordion. */
@media (min-width: 1025px) { #newsSubmenu .dropdown-inner { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
