* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #fff;
    --bg-alt: #f8f7f4;
    --bg-card: #fff;
    --text: #1a1a1a;
    --text-secondary: #555;
    --text-muted: #999;
    --text-faint: #aaa;
    --border: #e8e8e8;
    --border-light: #e8e5dd;
    --border-subtle: #ddd;
    --accent: #c49b2c;
    --accent-light: #e8c547;
    --chart-bg: #f8f7f4;
    --grid-line: #e8e5dd;
    --hero-bg: #0c0c0c;
    --hero-text: #fff;
    --shadow: rgba(0,0,0,0.08);
    --shadow-strong: rgba(0,0,0,0.15);
    --overlay: rgba(0,0,0,0.85);
    --tag-bg: #f0ede6;
    --tag-text: #555;
    --code-bg: #f5f2eb;
    --link: #1a1a1a;
    --unsold: #c0392b;
    --input-bg: #fff;
    color-scheme: light;
}

[data-theme="dark"] {
    --bg: #111;
    --bg-alt: #1a1a1a;
    --bg-card: #1e1e1e;
    --text: #e0e0e0;
    --text-secondary: #aaa;
    --text-muted: #777;
    --text-faint: #666;
    --border: #2a2a2a;
    --border-light: #333;
    --border-subtle: #333;
    --accent: #d4a940;
    --accent-light: #e8c547;
    --chart-bg: #1a1a1a;
    --grid-line: #2a2a2a;
    --hero-bg: #0a0a0a;
    --hero-text: #f0f0f0;
    --shadow: rgba(0,0,0,0.3);
    --shadow-strong: rgba(0,0,0,0.5);
    --overlay: rgba(0,0,0,0.92);
    --tag-bg: #2a2520;
    --tag-text: #bbb;
    --code-bg: #222;
    --link: #e0e0e0;
    --unsold: #e57373;
    --input-bg: #1e1e1e;
    color-scheme: dark;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.7;
    transition: background 0.3s, color 0.3s;
}

/* Header */
header {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.8rem 2.5rem 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    padding-bottom: 0.4rem;
}

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    z-index: 110;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: transform 0.25s, opacity 0.25s;
}
.nav-open .hamburger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-open .hamburger span:nth-child(2) { opacity: 0; }
.nav-open .hamburger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Theme toggle */
.theme-toggle {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    margin-right: 10px;
    flex-shrink: 0;
    transition: border-color 0.2s, color 0.2s;
}
.theme-toggle:hover { border-color: var(--text-muted); color: var(--text); }
.theme-toggle .icon-moon { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-moon { display: block; }

.nav-left {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    width: 100%;
    padding: 0.5rem 0;
    border-top: 1px solid var(--border);
}

.nav-link {
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); font-weight: 600; }
.nav-instagram { display: inline-flex; align-items: center; }
.nav-instagram svg { opacity: 0.6; transition: opacity 0.2s; }
.nav-instagram:hover svg { opacity: 1; }

.logo {
    text-decoration: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.1rem;
    flex-shrink: 0;
}

.logo-icon {
    font-size: 1.6rem;
    color: var(--text);
    line-height: 1;
}

.logo-text {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    color: var(--text);
}

.nav-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    gap: 0.5rem;
    justify-content: flex-end;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 0;
    border: 1px solid var(--border-subtle);
    border-radius: 0;
    overflow: hidden;
}

.search-bar input {
    padding: 0.5rem 0.8rem;
    font-size: 0.8rem;
    font-family: 'Inter', sans-serif;
    background: var(--input-bg);
    border: none;
    color: var(--text);
    outline: none;
    width: 220px;
}

.search-bar input::placeholder { color: var(--text-faint); }

.search-bar button {
    padding: 0.5rem 0.7rem;
    background: none;
    border: none;
    border-left: 1px solid var(--border-subtle);
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

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

/* Hero */
.hero {
    background: #0c0c0c;
    background-image: url('/images/glossary/main_15f369bad555.jpg');
    background-size: cover;
    background-position: center 30%;
    background-repeat: no-repeat;
    position: relative;
    color: #fff;
    padding: 6rem 2.5rem 4rem;
    text-align: center;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.65) 0%,
        rgba(0, 0, 0, 0.5) 40%,
        rgba(0, 0, 0, 0.7) 100%
    );
}

.hero-content { position: relative; z-index: 1; max-width: 600px; }

.hero h1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 1.5rem;
    line-height: 1;
}

.hero-the {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.2rem;
}

.hero-script-svg {
    display: block;
    width: 480px;
    height: auto;
    margin: 0.3rem auto 0.2rem;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}

.hero-enc {
    font-family: 'Inter', sans-serif;
    font-size: 1.6rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.hero-sub {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.8;
    font-weight: 300;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-cta {
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
}

.scroll-indicator {
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
}

.scroll-line {
    display: block;
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, rgba(255, 255, 255, 0.5), transparent);
}

/* References Section */
.refs-section {
    max-width: 960px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

.section-heading {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.2em;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 2rem;
}

.stats-bar {
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-bottom: 2.5rem;
    font-weight: 300;
}

.top-refs {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 2rem;
}

.timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.timeline-line {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-subtle);
    transform: translateX(-50%);
}

.tl-node {
    position: relative;
    margin-bottom: 1rem;
}

.tl-dot {
    position: absolute;
    left: 50%;
    top: 1.8rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent, #b8860b);
    border: 2px solid var(--bg);
    transform: translateX(-50%);
    z-index: 2;
}

/* Reference cards — alternating sides */
.tl-ref { cursor: pointer; }
.tl-ref .tl-card {
    display: flex;
    width: 44%;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s;
    flex-direction: column;
}
.tl-ref:hover .tl-card {
    border-color: var(--accent, #b8860b);
    transform: scale(1.01);
}
.tl-ref:hover .tl-dot { background: #b8860b; }

.tl-left .tl-card { margin-right: auto; }
.tl-right .tl-card { margin-left: auto; }
.tl-right .tl-card .tl-card-body { text-align: right; }

.tl-card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #111;
}
.tl-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.85;
    transition: opacity 0.3s;
}
.tl-ref:hover .tl-card-img img { opacity: 1; }

.tl-card-body {
    padding: 1.2rem 1.4rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.tl-year {
    font-size: 0.65rem;
    color: var(--text-faint);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.15rem;
}

.tl-label {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
    transition: color 0.2s;
    line-height: 1.2;
}
.tl-ref:hover .tl-label { color: var(--accent, #b8860b); }

.tl-nickname {
    font-size: 0.75rem;
    font-style: italic;
    color: var(--accent, #b8860b);
    margin-top: 0.1rem;
}

.tl-blurb {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin-top: 0.5rem;
}

.tl-meta {
    display: flex;
    gap: 1rem;
    margin-top: 0.6rem;
    font-size: 0.65rem;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.tl-right .tl-meta { justify-content: flex-end; }

/* Event milestones — centered */
.tl-event {
    text-align: center;
    padding: 0.6rem 0;
}
.tl-event .tl-dot {
    width: 10px;
    height: 10px;
    background: var(--text-faint);
    border: 2px solid var(--bg);
}
.tl-event-content {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--bg-alt);
    border: 1px solid var(--border-light);
    border-radius: 20px;
    padding: 0.4rem 1.2rem;
    margin-top: 1.6rem;
}
.tl-event-icon { font-size: 1.1rem; }
.tl-event .tl-year {
    font-size: 0.6rem;
    margin-bottom: 0;
}
.tl-event .tl-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-style: italic;
    font-weight: 400;
    color: var(--text-muted);
}
.tl-event .tl-desc {
    font-size: 0.65rem;
    color: var(--text-faint);
}

/* Mobile: stack cards full-width */
@media (max-width: 768px) {
    .timeline-line { left: 16px; }
    .tl-dot { left: 16px !important; top: 1rem; }
    .tl-ref .tl-card {
        margin-left: 40px !important;
        margin-right: 0 !important;
        width: calc(100% - 44px);
    }
    .tl-card-img { height: 160px; }
    .tl-right .tl-card .tl-card-body { text-align: left; }
    .tl-right .tl-meta { justify-content: flex-start; }
    .tl-event-content { margin-left: 40px; }
    .tl-event { text-align: left; }
}

/* Article Page */
.article {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.article-header {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    text-align: center;
}

.article-header .header-script {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.article-header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--text);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.article-subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.article-header .article-meta {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.35rem 1.2rem;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
}

.article-header .meta-item {
    display: contents;
}

.meta-label {
    color: var(--text-faint);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    text-align: right;
    align-self: baseline;
    padding-top: 0.15rem;
}

.meta-value {
    color: var(--text);
    font-weight: 500;
    font-size: 0.8rem;
}

/* Grimoire Sections */
.grimoire-section {
    margin-bottom: 2.5rem;
}

.section-title {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin: 2.5rem 0 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.grimoire-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-weight: 300;
}

.grimoire-list {
    list-style: none;
    padding: 0;
}

.grimoire-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 0.4rem 0 0.4rem 1.2rem;
    position: relative;
    line-height: 1.6;
    font-weight: 300;
}

.grimoire-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.85rem;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--text-faint);
}

/* Component identification blocks */
.component-block {
    padding: 1.2rem 0;
    border-bottom: 1px solid var(--border);
}

.component-block:last-child {
    border-bottom: none;
}

.component-name {
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 0.6rem 0;
}

.component-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.component-points li {
    padding: 0.3rem 0;
    color: var(--text-secondary);
    line-height: 1.65;
    font-size: 0.88rem;
    font-weight: 300;
}

.omega-bullet {
    color: #c4a44a;
    font-weight: 500;
    margin-right: 0.6rem;
    font-size: 0.75rem;
}

.nowrap { white-space: nowrap; }

.ref-link {
    color: var(--text);
    text-decoration: underline;
    text-decoration-color: var(--border-subtle);
    transition: text-decoration-color 0.2s;
}

.ref-link:hover { text-decoration-color: var(--text); }

/* Tables */
.serial-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
    margin: 0.8rem 0 1.5rem;
}

.serial-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.serial-table td {
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border);
    color: var(--text-secondary);
    font-weight: 300;
}

.serial-table tr:hover td { background: var(--bg-alt); }

/* Source / Further Reading sections */
.source-section {
    margin-bottom: 2rem;
}

.source-section h2 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 1rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.source-article {
    margin-bottom: 1.2rem;
}

.source-article h3 {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.source-article h3 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
}

.source-article h3 a:hover {
    border-color: var(--text-secondary);
}

.excerpt {
    color: var(--text-secondary);
    font-size: 0.83rem;
    line-height: 1.8;
    margin-bottom: 0.6rem;
    padding: 0.8rem 1rem;
    border-left: 2px solid var(--border);
    background: var(--bg-alt);
    font-weight: 300;
    white-space: pre-line;
}

.excerpt mark {
    background: rgba(200, 165, 90, 0.15);
    color: #8a6d2b;
    padding: 1px 3px;
    border-radius: 2px;
    font-weight: 400;
}

/* Search results */
.search-results {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem;
}

.search-results h2 {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
}

.search-ref-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.search-ref-chip {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    background: var(--bg);
    border: 1px solid var(--border-subtle);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
    font-weight: 400;
}

.search-ref-chip .ref-count { color: var(--text-faint); }

.search-ref-chip:hover {
    border-color: var(--text-secondary);
    background: var(--bg-alt);
}

.search-article-item {
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
}

.search-article-item .source-tag {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    font-weight: 500;
}

.search-article-item h3 {
    font-size: 0.95rem;
    color: var(--text);
    margin: 0.2rem 0;
    font-weight: 400;
}

.search-article-item h3 a {
    color: inherit;
    text-decoration: none;
}

.search-article-item h3 a:hover { text-decoration: underline; }

.search-article-item .snippet {
    font-size: 0.8rem;
    color: var(--text-muted);
    line-height: 1.6;
    font-weight: 300;
}

.search-article-item .snippet mark {
    background: rgba(200, 165, 90, 0.15);
    color: #8a6d2b;
    padding: 1px 3px;
    border-radius: 2px;
}

/* Serial results */
.serial-results {
    max-width: 760px;
    margin: 0 auto;
    padding: 2rem;
}

.serial-results h2 {
    font-size: 1.1rem;
    color: var(--text);
    font-weight: 300;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Media Page */
.media-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.media-header {
    text-align: center;
    margin-bottom: 3rem;
}

.media-header .header-script {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.media-header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.media-header p {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 300;
    max-width: 550px;
    margin: 0 auto;
    line-height: 1.7;
}

.media-category {
    margin-bottom: 3rem;
}

.media-category h2 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.video-card {
    text-decoration: none;
    color: inherit;
    display: block;
    transition: opacity 0.2s;
}

.video-card:hover { opacity: 0.85; }

.video-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    background: var(--bg-alt);
    position: relative;
    overflow: hidden;
}

.video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.video-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: rgba(0,0,0,0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-play::after {
    content: '';
    display: block;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 8px 0 8px 14px;
    border-color: transparent transparent transparent #fff;
    margin-left: 3px;
}

.video-card h3 {
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text);
    margin-top: 0.7rem;
    line-height: 1.4;
}

.video-card .video-meta {
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-top: 0.2rem;
}

/* Expert resource card */
.expert-card {
    margin: 2.5rem 0;
    border: 1px solid var(--border-light);
    border-radius: 2px;
    background: linear-gradient(135deg, var(--bg) 0%, var(--bg-alt) 100%);
    overflow: hidden;
}

.expert-card-badge {
    background: #2c2418;
    color: #d4b978;
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 0.4rem 1.2rem;
    display: inline-block;
}

.expert-card-body {
    padding: 1.5rem 1.5rem 1.2rem;
}

.expert-card-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.expert-card-desc {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1.2rem;
}

.expert-card-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.expert-card-links a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--bg-alt);
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.expert-card-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

.expert-card-links a:hover svg {
    stroke: #fff;
}

.caliber-timeline {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}

.caliber-card {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1rem 1.2rem;
    background: var(--bg-alt);
}

.caliber-name {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.caliber-years {
    font-size: 0.72rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.caliber-notes {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.6;
    font-weight: 300;
}

@media (max-width: 600px) {
    .expert-card-body {
        padding: 1rem;
    }
    .expert-card-links {
        flex-direction: column;
    }
    .expert-card-links a {
        justify-content: center;
    }
}

/* FAQ section */
.faq-item {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.faq-question {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.faq-answer {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
}

/* Anomalies list */
.anomaly-list {
    list-style: none;
    padding: 0;
}

.anomaly-list li {
    font-size: 0.83rem;
    color: var(--text-secondary);
    padding: 0.6rem 0 0.6rem 1.5rem;
    position: relative;
    line-height: 1.7;
    font-weight: 300;
    border-bottom: 1px solid var(--border);
}

.anomaly-list li:last-child { border-bottom: none; }

.anomaly-list li::before {
    content: '!';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #f0ebe0;
    color: #8a6d2b;
    font-size: 0.6rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* About page */
.about-page {
    max-width: 700px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.about-header {
    text-align: center;
    margin-bottom: 3rem;
}

.about-header .header-script {
    font-family: 'Playfair Display', Georgia, serif;
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-muted);
}

.about-header h1 {
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.about-header .hero-sub {
    color: var(--text-muted);
    text-shadow: none;
}

.about-section {
    margin-bottom: 2.5rem;
}

.about-acknowledgment {
    border-left: 3px solid var(--accent);
    padding-left: 1.5rem;
    background: var(--bg-alt);
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
}

.about-section h2 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 1rem;
}

.about-section p {
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 0.8rem;
}

.about-section strong {
    font-weight: 500;
    color: var(--text);
}

.about-contact {
    margin-top: 1.2rem;
    padding: 1rem 1.2rem;
    background: var(--bg-alt);
    border-left: 2px solid var(--border-subtle);
}

.about-sources {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1rem 0;
}

.about-source {
    padding: 1rem;
    border: 1px solid var(--border);
}

.about-source h3 {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 0.4rem;
}

.about-source p {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 0;
}

.about-list {
    padding-left: 1.2rem;
    margin: 0.8rem 0;
}

.about-list li {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 0.5rem;
}

/* Feedback widget */
.fb-widget {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--border);
}

.fb-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-faint);
    background: none;
    border: 1px solid var(--border);
    border-radius: 2px;
    padding: 0.3rem 0.6rem;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.02em;
}

.fb-btn:hover {
    color: var(--text-secondary);
    border-color: var(--border-subtle);
}

.fb-upvote:hover { color: #2a7d2a; border-color: #2a7d2a; }
.fb-upvote:hover svg { stroke: #2a7d2a; }

.fb-count {
    font-weight: 600;
    font-size: 0.7rem;
}

.fb-form {
    width: 100%;
    margin-top: 0.5rem;
}

.fb-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    color: var(--text);
    resize: vertical;
    background: var(--bg-alt);
    box-sizing: border-box;
}

.fb-form textarea:focus {
    outline: none;
    border-color: var(--text-muted);
    background: var(--bg);
}

.fb-form-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.4rem;
}

.fb-submit {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.35rem 0.8rem;
    background: #2c2418;
    color: #fff;
    border: none;
    border-radius: 2px;
    cursor: pointer;
}

.fb-submit:hover { background: #1a1610; }

.fb-cancel {
    font-size: 0.7rem;
    padding: 0.35rem 0.6rem;
    background: none;
    color: var(--text-muted);
    border: 1px solid var(--border);
    border-radius: 2px;
    cursor: pointer;
}

.fb-status {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-style: italic;
}

/* Serial submission form */
.serial-submit-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border);
}

.serial-submit-intro {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 1.2rem;
}

.serial-submit-form {
    max-width: 640px;
}

.serial-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.serial-form-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.serial-form-field input,
.serial-form-field select,
.serial-form-field textarea {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    color: var(--text);
    background: var(--bg-alt);
    box-sizing: border-box;
}

.serial-form-field input:focus,
.serial-form-field select:focus,
.serial-form-field textarea:focus {
    outline: none;
    border-color: var(--text-muted);
    background: var(--bg);
}

.serial-form-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.serial-submit-btn {
    padding: 0.55rem 1.5rem;
    background: #2c2418;
    color: #fff;
    border: none;
    border-radius: 2px;
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: background 0.2s;
}

.serial-submit-btn:hover { background: #1a1610; }

.serial-submit-status {
    font-size: 0.78rem;
    color: var(--text-muted);
}

@media (max-width: 600px) {
    .serial-form-grid { grid-template-columns: 1fr; }
}

.about-subhead {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text);
    margin: 1.2rem 0 0.3rem;
}

.about-note {
    font-size: 0.8rem !important;
    color: #999 !important;
    font-style: italic;
}

.about-cta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    margin: 1.5rem 0;
}

.about-cta-card {
    padding: 1.5rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.about-cta-card:hover {
    border-color: var(--text-secondary);
    box-shadow: 0 2px 12px var(--shadow);
}

.about-cta-icon {
    font-size: 1.4rem;
    margin-bottom: 0.6rem;
    line-height: 1;
}

.about-cta-card h3 {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.4rem;
    letter-spacing: 0.02em;
}

.about-cta-card p {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.about-cta-card strong {
    font-weight: 500;
    color: var(--text);
}

/* Community Pulse stats */
.about-pulse {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.2rem 0;
}

.pulse-card {
    text-align: center;
    padding: 1.2rem 0.8rem;
    border: 1px solid var(--border);
}

.pulse-number {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
}

.pulse-label {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-secondary);
    margin-top: 0.3rem;
}

.pulse-sub {
    font-size: 0.68rem;
    color: var(--text-faint);
    margin-top: 0.2rem;
    font-weight: 300;
}

/* Trust tiers */
.about-trust-tiers {
    margin: 1rem 0;
}

.trust-tier {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--border);
}

.trust-tier:last-child {
    border-bottom: none;
}

.trust-tier .reg-status-badge {
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.trust-tier p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin: 0;
}

@media (max-width: 700px) {
    .about-pulse { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
    .pulse-number { font-size: 1.4rem; }
    .pulse-card { padding: 0.8rem 0.5rem; }
}

.media-channel-link {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.media-channel-link a {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.05em;
    font-weight: 400;
    transition: color 0.2s;
}

.media-channel-link a:hover { color: var(--text); }

.popculture-section {
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid var(--border);
}
.popculture-intro {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}
.popculture-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.popculture-card {
    display: flex;
    gap: 1.5rem;
    padding: 1.2rem 1.5rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    background: var(--bg-alt);
    transition: border-color 0.2s;
}
.popculture-card:hover {
    border-color: var(--accent);
}
.popculture-year {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    min-width: 60px;
    display: flex;
    align-items: flex-start;
    padding-top: 0.15rem;
}
.popculture-details h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    margin: 0 0 0.3rem;
}
.popculture-actor {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin: 0 0 0.2rem;
}
.popculture-model {
    font-size: 0.8rem;
    color: var(--accent);
    letter-spacing: 0.03em;
    font-weight: 500;
    margin: 0 0 0.5rem;
}
.popculture-note {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    margin: 0;
}
@media (max-width: 600px) {
    .popculture-card { flex-direction: column; gap: 0.5rem; padding: 1rem; }
    .popculture-year { font-size: 1.4rem; }
}

/* Gallery page */
.gallery-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.gallery-ref-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.5rem 0 0.8rem;
}

.gallery-ref-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.gallery-ref-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text);
}

.gallery-ref-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text-secondary);
}

.ref-btn-count {
    font-size: 0.7rem;
    font-weight: 300;
    opacity: 0.6;
    margin-left: 0.2rem;
}

.gallery-ref-btn.active .ref-btn-count { opacity: 0.7; }

.gallery-group {
    margin-bottom: 2rem;
}

.gallery-group-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 0.8rem;
    padding-bottom: 0.4rem;
    border-bottom: 1px solid var(--border);
}

.gallery-group-title {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin: 0;
}

.gallery-group-refs {
    display: flex;
    gap: 0.3rem;
}

.gallery-group-count {
    font-size: 0.72rem;
    color: var(--text-faint);
    margin-left: auto;
}

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 1rem;
}

.gallery-filter-btn {
    padding: 0.4rem 0.9rem;
    border: 1px solid var(--border);
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.02em;
}

.gallery-filter-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text);
}

.gallery-filter-btn.active {
    background: var(--text);
    color: var(--bg);
    border-color: var(--text-secondary);
}

.gallery-filter-desc {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    font-style: italic;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    cursor: pointer;
    overflow: hidden;
    border: 1px solid var(--border);
    transition: border-color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.gallery-item:hover {
    border-color: var(--text-faint);
    box-shadow: 0 4px 16px var(--shadow);
}

.gallery-item img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}

.gallery-item-info {
    padding: 0.8rem 1rem;
    flex: 1;
}

.gallery-item-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.3rem;
    line-height: 1.3;
}

.gallery-item-caption {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-top: 0.3rem;
}

.gallery-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
    margin-bottom: 0.3rem;
}

.gallery-ref-tag {
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--text);
    background: var(--tag-bg);
    padding: 0.15rem 0.4rem;
    letter-spacing: 0.03em;
}

.gallery-feat-tag {
    font-size: 0.65rem;
    font-weight: 400;
    color: var(--text-muted);
    background: var(--bg-alt);
    border: 1px solid var(--border);
    padding: 0.15rem 0.4rem;
}

.gallery-caption {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
}

/* Lightbox */
.lightbox {
    position: fixed;
    inset: 0;
    background: var(--overlay);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
    text-align: center;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-content p {
    color: var(--text-faint);
    font-size: 0.82rem;
    margin-top: 0.8rem;
    font-family: 'Inter', sans-serif;
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.5rem;
}

/* Sources page */
.sources-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

.source-featured {
    margin: 2rem 0 1.5rem;
}

.source-featured .expert-card {
    max-width: 100%;
}

.sources-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 1.5rem 0 2rem;
}

.source-card {
    display: block;
    padding: 1.8rem;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.source-card:hover {
    border-color: var(--text-secondary);
    box-shadow: 0 2px 12px var(--shadow);
}

.source-card h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.6rem;
    letter-spacing: 0.02em;
}

.source-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.source-link {
    font-size: 0.78rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
    font-weight: 400;
}

.source-card:hover .source-link {
    color: var(--text);
}

.source-card-enhanced {
    cursor: default;
    text-decoration: none;
    color: inherit;
}

.source-card-enhanced .expert-card-links {
    margin-top: 0.8rem;
}

/* Reading list (Further Reading) */
.reading-list {
    list-style: none;
    padding: 0;
    margin: 0.4rem 0 1.2rem;
}

.reading-list li {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--border);
}

.reading-list li:last-child {
    border-bottom: none;
}

.reading-list a {
    font-size: 0.82rem;
    color: var(--text);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s;
}

.reading-list a:hover {
    color: var(--text-secondary);
    text-decoration: underline;
}

/* View transitions */
main > div {
    animation: fadeIn 0.2s ease-out;
}

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

/* Misc */
.loading {
    text-align: center;
    color: var(--text-faint);
    padding: 4rem;
    font-size: 0.85rem;
    font-weight: 300;
}

.no-results {
    text-align: center;
    color: var(--text-faint);
    padding: 4rem;
    font-size: 0.85rem;
}

/* Footer */
footer {
    border-top: 1px solid var(--border);
    padding: 2rem;
    text-align: center;
    background: var(--bg);
    transition: background 0.2s, border-color 0.2s;
}

.footer-text {
    font-size: 0.7rem;
    color: var(--text-faint);
    font-weight: 300;
}

/* (removed dark footer override)
}


/* Glossary Page */
.glossary-page {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.glossary-search-bar {
    margin: 0 0 1.2rem;
}

.glossary-search-bar input {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.85rem;
    font-family: 'Inter', sans-serif;
    border: 1px solid var(--border-subtle);
    background: var(--input-bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.glossary-search-bar input:focus {
    border-color: var(--text-secondary);
}

.glossary-search-bar input::placeholder {
    color: var(--text-faint);
}

.glossary-cat-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2rem;
}

.glossary-category {
    margin-bottom: 3rem;
}

.glossary-cat-header {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
}

.glossary-cat-header h2 {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin: 0;
}

.glossary-cat-count {
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-left: auto;
}

.glossary-cat-desc {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 1.2rem;
    line-height: 1.6;
}

.glossary-terms {
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border);
    border: 1px solid var(--border);
}

.glossary-term-card {
    background: var(--bg);
}

.glossary-term-header {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.2rem;
    cursor: pointer;
    transition: background 0.2s;
}

.glossary-term-header:hover {
    background: var(--bg-alt);
}

.glossary-term-header h3 {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text);
    margin: 0;
    flex-shrink: 0;
}

.glossary-aliases {
    font-size: 0.75rem;
    color: var(--text-faint);
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.glossary-expand {
    margin-left: auto;
    font-size: 1.1rem;
    color: var(--text-faint);
    flex-shrink: 0;
    width: 20px;
    text-align: center;
    font-weight: 300;
    line-height: 1;
    user-select: none;
}

.glossary-term-body {
    display: none;
    padding: 0 1.2rem 1.2rem;
}

.glossary-term-card.open .glossary-term-body {
    display: block;
}

.glossary-definition {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.9;
    font-weight: 300;
    margin-bottom: 0.8rem;
}

.glossary-refs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.6rem;
}

.glossary-ref-tag {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--text);
    background: #f0f0f0;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    letter-spacing: 0.03em;
}

.glossary-ref-tag:hover {
    background: #1a1a1a;
    color: #fff;
}

.glossary-see-also {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

.glossary-see-label {
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
}

.glossary-see-link {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
    transition: border-color 0.2s;
    font-size: 0.78rem;
}

.glossary-see-link:hover {
    border-color: var(--text-secondary);
}

/* Serial Reference Page — dark theme scoped
   All rules below are prefixed with .serial-page to prevent leakage.
   The serial page also needs to override inherited body/main styles. */
.serial-page {
    color: var(--text);
    line-height: 1.65;
}

.serial-page h1,
.serial-page h2,
.serial-page h3,
.serial-page h4 {
    margin: 0;
    padding: 0;
    border: none;
}

.serial-page .serial-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2.5rem 2rem 4rem;
}

.serial-page h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.2rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.serial-page .subtitle { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }

.serial-page .intro {
    font-size: 0.9rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.serial-page h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: var(--text);
    margin: 3rem 0 0.6rem;
    letter-spacing: 0.03em;
    border-bottom: 1px solid var(--border);
    padding-bottom: 0.4rem;
}

.serial-page h3 {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin: 1.8rem 0 0.5rem;
}

.serial-page .chart-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    max-width: 900px;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.serial-page .chart-wrap {
    background: var(--chart-bg);
    border-radius: 10px;
    padding: 1.5rem;
    margin: 1rem 0 2rem;
    overflow-x: auto;
    border: 1px solid var(--border);
}
[data-theme="dark"] .serial-page .chart-wrap svg line[stroke="#e8e8e8"],
[data-theme="dark"] .serial-page .chart-wrap svg line[stroke="#eee"] { stroke: var(--grid-line) !important; }
[data-theme="dark"] .serial-page .chart-wrap svg line[stroke="#ccc"] { stroke: #333 !important; }
[data-theme="dark"] .serial-page .chart-wrap svg text[fill="#999"] { fill: var(--text-muted) !important; }
[data-theme="dark"] .serial-page .chart-wrap svg text[fill="#555"] { fill: var(--text-muted) !important; }
[data-theme="dark"] .serial-page .chart-wrap svg rect[fill="#fafafa"] { fill: var(--chart-bg) !important; }
[data-theme="dark"] .serial-page .chart-wrap svg rect[stroke="#bbb"] { stroke: #444 !important; }
[data-theme="dark"] .serial-page .chart-wrap svg rect[fill="#f5f5f5"] { fill: #252525 !important; }
.serial-page .chart-wrap svg polygon[fill="#d4af37"] {
    filter: drop-shadow(0 0 3px rgba(212,175,55,0.6));
    opacity: 1 !important;
}
.serial-page .chart-wrap svg polygon[stroke="#d6d66b"],
.serial-page .chart-wrap svg polygon[stroke="#6bd6a3"] {
    stroke-width: 2 !important;
    filter: drop-shadow(0 0 2px rgba(214,214,107,0.5));
}

.serial-page svg text { font-family: 'Inter', sans-serif; }

.serial-page .legend { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; font-size: 0.78rem; }
.serial-page .legend-item { display: flex; align-items: center; gap: 0.4rem; color: var(--text-secondary); }
.serial-page .legend-swatch { width: 14px; height: 14px; border-radius: 3px; }
.serial-page .legend-divider { border-left: 1px solid var(--border-subtle); height: 16px; }
.serial-page .legend-icon { width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; }

.serial-page .note-box {
    background: var(--bg-alt);
    border-left: 3px solid #ccc;
    padding: 0.8rem 1rem;
    margin: 1rem 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
    border-radius: 0 6px 6px 0;
    line-height: 1.6;
}

.serial-page .note-box.warn { border-left-color: #d4a84a; background: #fefbf4; }
.serial-page .note-box.info { border-left-color: #5a9ecf; background: #f4f8fc; }

.serial-page .ref-table-wrap { overflow-x: auto; margin: 1rem 0 1.5rem; }

.serial-page table { border-collapse: collapse; width: 100%; font-size: 0.82rem; }
.serial-page thead th {
    background: var(--bg-alt);
    color: var(--text);
    font-weight: 600;
    padding: 0.6rem 0.8rem;
    text-align: left;
    border-bottom: 2px solid var(--border-subtle);
    white-space: nowrap;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.serial-page tbody td { padding: 0.5rem 0.8rem; border-bottom: 1px solid #eee; vertical-align: top; }
.serial-page tbody tr:hover { background: var(--bg-alt); }

.serial-page .ref-badge { display: inline-block; padding: 0.1rem 0.5rem; border-radius: 3px; font-weight: 600; font-size: 0.78rem; white-space: nowrap; }
.serial-page .serial-mono { font-family: 'SF Mono', 'Fira Code', monospace; font-size: 0.78rem; color: #8B6914; }
.serial-page .discrepancy-flag { color: #c0503a; font-weight: 500; font-size: 0.75rem; }

.serial-page .source-tag { display: inline-block; padding: 0.05rem 0.35rem; border-radius: 3px; font-size: 0.7rem; font-weight: 500; margin-right: 0.3rem; }
.serial-page .src-sm101 { background: #e8f5ee; color: #2d7a50; }
.serial-page .src-hartmann { background: #e8eff8; color: #3d6fa0; }
.serial-page .src-maddox { background: #f0e8f5; color: #6a4a90; }
.serial-page .src-mwo { background: #f0f0e0; color: #6a6a30; }
.serial-page .src-of { background: #f5e8ee; color: #a04060; }

.serial-page .outlier-card {
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1rem 1.2rem;
    margin: 0.8rem 0;
}
.serial-page .outlier-card .status { display: inline-block; padding: 0.15rem 0.5rem; border-radius: 4px; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; margin-left: 0.5rem; }
.serial-page .status-confirmed { background: #e8f5ee; color: #2d7a50; }
.serial-page .status-debated { background: #f5f5e0; color: #7a7a30; }
.serial-page .status-unconfirmed { background: #f5e8ee; color: #a04060; }
.serial-page .outlier-card h4 { font-size: 0.9rem; color: var(--text); margin-bottom: 0.4rem; }
.serial-page .outlier-card p { font-size: 0.82rem; color: var(--text-secondary); margin: 0.3rem 0; }

.serial-page .methodology { columns: 2; column-gap: 2rem; font-size: 0.82rem; color: var(--text-secondary); line-height: 1.7; }
.serial-page .methodology p { margin-bottom: 0.8rem; break-inside: avoid; }

.serial-page .toc { background: var(--bg-alt); border: 1px solid var(--border); border-radius: 8px; padding: 1rem 1.5rem; margin: 1.5rem 0 2rem; font-size: 0.82rem; }
.serial-page .toc-title { font-weight: 600; color: var(--text-muted); margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.72rem; }
.serial-page .toc ol { list-style: decimal; padding-left: 1.2rem; color: var(--text-secondary); }
.serial-page .toc li { margin: 0.2rem 0; }
.serial-page .toc a { color: #3d6fa0; text-decoration: none; }
.serial-page .toc a:hover { color: #2a5580; text-decoration: underline; }

.serial-page p { margin: 0.4rem 0; color: #444; font-weight: 300; }
.serial-page a { color: #3d6fa0; }
.serial-page a:hover { color: #2a5580; }

/* Auctions page */
.auctions-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}

.auction-summary {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 0 0 2.5rem;
}

.auction-summary-card {
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.auction-summary-card:hover {
    border-color: var(--text-secondary);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.auction-summary-ref {
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.auction-summary-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.auction-summary-count {
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.auction-summary-avg {
    font-weight: 500;
    color: var(--text-secondary);
}

.auction-summary-range {
    font-size: 0.72rem;
    color: var(--text-faint);
    font-weight: 300;
}

.auction-filters {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 0 0 1.5rem;
}

.auction-filter-group {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.auction-filter-label {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    min-width: 70px;
}

.auction-results-count {
    font-size: 0.75rem;
    color: var(--text-faint);
    margin-bottom: 1rem;
    font-weight: 300;
}

.auction-table-wrap {
    overflow-x: auto;
    margin: 0 0 1.5rem;
}

.auction-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.auction-table th {
    text-align: left;
    color: var(--text-muted);
    font-weight: 500;
    padding: 0.6rem 0.8rem;
    border-bottom: 1px solid var(--border-subtle);
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.auction-table td {
    padding: 0.7rem 0.8rem;
    border-bottom: 1px solid #f0f0f0;
    color: #444;
    font-weight: 300;
    vertical-align: top;
}

.auction-table tr:hover td {
    background: #fafafa;
}

.auction-lot-cell {
    max-width: 350px;
}

.auction-lot-title {
    font-weight: 400;
    color: var(--text);
    margin-bottom: 0.2rem;
    line-height: 1.4;
}

.auction-lot-title a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
    transition: border-color 0.2s;
}

.auction-lot-title a:hover {
    border-color: var(--text-secondary);
}

.auction-lot-num {
    font-size: 0.7rem;
    color: var(--text-faint);
    margin-right: 0.5rem;
}

.auction-sale-name {
    font-size: 0.7rem;
    color: var(--text-faint);
    font-style: italic;
    display: block;
}

.auction-price {
    font-weight: 500 !important;
    color: var(--text) !important;
}

.auction-unsold {
    color: var(--text-faint);
    font-style: italic;
    font-weight: 300;
}

.auction-table.compact { font-size: 0.78rem; }
.auction-table.compact th { font-size: 0.62rem; }
.auction-table.compact td { padding: 0.5rem 0.8rem; }

.auction-note {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-style: italic;
    margin: 0.3rem 0;
}

.auction-view-all {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}
.auction-view-all:hover { color: var(--text); }

.article-gallery-strip {
    display: flex;
    gap: 0.8rem;
    overflow-x: auto;
    padding: 0.5rem 0 1rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.article-gallery-strip::-webkit-scrollbar {
    height: 4px;
}

.article-gallery-strip::-webkit-scrollbar-track {
    background: var(--tag-bg);
    border-radius: 2px;
}

.article-gallery-strip::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.article-gallery-thumb {
    flex: 0 0 auto;
    width: 180px;
    cursor: pointer;
    scroll-snap-align: start;
    position: relative;
}

.article-gallery-thumb img {
    width: 100%;
    height: 135px;
    object-fit: cover;
    border-radius: 4px;
    transition: transform 0.2s;
}

.article-gallery-thumb:hover img {
    transform: scale(1.03);
}

.article-gallery-label {
    display: block;
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 0.3rem;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.auction-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    margin: 2rem 0;
}

.auction-page-btn {
    padding: 0.5rem 1.2rem;
    border: 1px solid var(--border-subtle);
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    letter-spacing: 0.03em;
}

.auction-page-btn:hover {
    border-color: var(--text-secondary);
    color: var(--text);
}

.auction-page-info {
    font-size: 0.75rem;
    color: var(--text-faint);
    font-weight: 300;
}

.auction-disclaimer {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.auction-disclaimer p {
    font-size: 0.75rem;
    color: var(--text-faint);
    line-height: 1.7;
    font-weight: 300;
    font-style: italic;
    max-width: 700px;
}

/* Registry page */
.registry-page {
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 2rem 5rem;
}


.registry-intro {
    max-width: 640px;
    margin: 0 auto 2rem;
    text-align: center;
}

.registry-intro p {
    font-size: 0.85rem;
    color: #444;
    line-height: 1.8;
    font-weight: 300;
    margin-bottom: 0.8rem;
}

.registry-intro p:last-child {
    margin-bottom: 0;
}

.registry-stats {
    display: flex;
    justify-content: center;
    gap: 2.5rem;
    margin: 0 0 2.5rem;
    font-size: 0.82rem;
    color: var(--text-muted);
}

.registry-stat strong {
    color: var(--text);
    font-weight: 600;
}

.registry-legend {
    margin: 0 auto 2.5rem;
    max-width: 900px;
    padding: 1.5rem 2rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    background: var(--card-bg);
}
.registry-legend h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    margin: 0 0 1rem;
    color: var(--text);
}
.legend-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.5rem;
}
.legend-group h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin: 0 0 0.6rem;
}
.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    line-height: 1.4;
}
.legend-item .reg-status-badge { flex-shrink: 0; }
.legend-item .reg-badge { flex-shrink: 0; position: static; }
.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}
.legend-dot-production { background: var(--accent); }
.legend-dot-extract { background: #2d7a50; }
.legend-dot-auction { background: #b8860b; }
.legend-dot-registry { background: var(--text-muted); }

@media (max-width: 700px) {
    .legend-grid { grid-template-columns: 1fr; gap: 1rem; }
    .registry-legend { padding: 1rem 1.2rem; }
}

.registry-submit-section {
    margin-bottom: 2.5rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.registry-toggle-btn {
    width: 100%;
    padding: 1rem 1.5rem;
    background: #fafafa;
    border: none;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text);
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s;
}

.registry-toggle-btn:hover { background: #f0f0f0; }

.registry-toggle-icon {
    font-size: 1.1rem;
    font-weight: 300;
    color: var(--text-muted);
    width: 1.2rem;
    text-align: center;
}

.registry-form-wrap {
    padding: 1.5rem;
    border-top: 1px solid var(--border);
}

.reg-form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.reg-field label {
    display: block;
    font-size: 0.7rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 0.3rem;
}

.reg-field input,
.reg-field select,
.reg-field textarea {
    width: 100%;
    padding: 0.5rem 0.6rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.2s;
}

.reg-field input:focus,
.reg-field select:focus,
.reg-field textarea:focus {
    border-color: var(--text-muted);
}

.reg-field-wide {
    margin-bottom: 1rem;
}

.reg-proof-row {
    display: flex;
    gap: 0.8rem;
    align-items: center;
    flex-wrap: wrap;
}

.reg-proof-row select { width: auto; flex: 1; min-width: 180px; }

.reg-file-label {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: 4px;
    font-size: 0.82rem;
    color: var(--text-secondary);
    cursor: pointer;
    transition: border-color 0.2s;
}

.reg-file-label:hover { border-color: var(--text-muted); }

.reg-file-name {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.reg-submit-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.reg-submit-btn {
    padding: 0.6rem 1.8rem;
    background: #1a1a1a;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    letter-spacing: 0.03em;
    transition: background 0.2s;
}

.reg-submit-btn:hover { background: #333; }

.reg-status { font-size: 0.8rem; color: var(--text-muted); }
.reg-error { color: #c0503a; }
.reg-success { color: #2d7a50; }

.registry-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    margin-bottom: 1.5rem;
}

.registry-sort {
    margin-left: auto;
    display: flex;
    gap: 0.4rem;
}

.registry-count {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.registry-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8rem;
}

.registry-table thead th {
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    padding: 0.6rem 0.5rem;
    border-bottom: 2px solid #e0e0e0;
    text-align: left;
    white-space: nowrap;
}

.registry-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.15s;
}

.registry-table tbody tr:hover {
    background: #fafaf8;
}

.registry-table td {
    padding: 0.55rem 0.5rem;
    color: #444;
    vertical-align: middle;
}

.reg-serial-col {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.82rem;
    color: #8B6914;
    letter-spacing: 0.03em;
    font-weight: 500;
}

.reg-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 400;
}

.reg-details-col {
    max-width: 200px;
    font-size: 0.75rem;
    color: #777;
}

.reg-note-icon {
    margin-left: 0.3rem;
    cursor: help;
    color: var(--text-faint);
}

.reg-doc-col { text-align: center; }

.reg-doc-link {
    color: #3d6fa0;
    text-decoration: none;
    font-size: 0.9rem;
}

.reg-status-badge {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15rem 0.45rem;
    border-radius: 2px;
    white-space: nowrap;
}

.reg-documented {
    background: #e8f5ee;
    color: #2d7a50;
}

.reg-verified {
    background: #fdf6e3;
    color: #b8860b;
}

.reg-unverified {
    background: #f5f5f0;
    color: var(--text-muted);
}

.reg-badge {
    display: inline-block;
    font-size: 0.85rem;
    margin-left: 0.3rem;
    cursor: help;
    vertical-align: middle;
}

.reg-badge-auction {
    color: #c49b2c;
}

.reg-badge-extract {
    color: #2d7a50;
}

.reg-expandable { cursor: pointer; }
.reg-expandable:hover { background: var(--bg-alt); }
.reg-expanded { background: var(--bg-alt); }
.chain-arrow {
    display: inline-block;
    font-size: 0.6rem;
    color: var(--text-muted);
    transition: transform 0.2s;
    margin-right: 0.2rem;
}
.reg-expanded .chain-arrow { transform: rotate(90deg); color: var(--accent); }

.prov-chain-row td { padding: 0 !important; border-top: none !important; }
.prov-chain-wrap {
    padding: 1.2rem 1.5rem 1.2rem 2.5rem;
    background: var(--bg-alt);
    border-top: 1px solid var(--border);
}
.prov-chain {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: relative;
}
.prov-node {
    display: flex;
    align-items: flex-start;
    position: relative;
    padding-left: 2rem;
    min-height: 3.2rem;
}
.prov-dot {
    position: absolute;
    left: 0;
    top: 0.35rem;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg);
    z-index: 1;
}
.prov-production .prov-dot { background: var(--accent); }
.prov-extract .prov-dot { background: #2d7a50; border-color: #2d7a50; }
.prov-auction .prov-dot { background: #b8860b; border-color: #b8860b; }
.prov-registry .prov-dot { background: var(--text-muted); border-color: var(--text-muted); }
.prov-line {
    position: absolute;
    left: 5px;
    top: 14px;
    bottom: -2px;
    width: 2px;
    background: var(--border);
}
.prov-content {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding-bottom: 0.8rem;
}
.prov-date {
    font-family: 'Playfair Display', serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent);
}
.prov-label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.prov-detail {
    font-size: 0.85rem;
    color: var(--text);
}
.prov-notes, .prov-details-row {
    margin-top: 0.5rem;
    padding-left: 2rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-style: italic;
}
@media (max-width: 600px) {
    .prov-chain-wrap { padding: 1rem 1rem 1rem 1.5rem; }
    .prov-node { padding-left: 1.5rem; }
}

/* ── Parts Checker page ── */

.parts-page {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.parts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.2rem;
    margin-top: 1.5rem;
}

.parts-card {
    background: var(--bg);
    border: 1px solid #e8e5e0;
    border-radius: 4px;
    overflow: hidden;
}

.parts-card-header {
    background: #1a1a1a;
    color: #fff;
    padding: 0.7rem 1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.parts-icon {
    margin-right: 0.4rem;
}

.parts-card-body {
    padding: 1rem;
}

.parts-field {
    font-size: 0.8rem;
    color: #333;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.parts-key {
    font-weight: 600;
    color: var(--text);
    text-transform: capitalize;
}

.parts-variant {
    border-left: 3px solid #c49b2c;
    padding: 0.5rem 0.7rem;
    margin: 0.5rem 0;
    background: #fdfcf8;
}

.parts-variant-label {
    font-weight: 600;
    font-size: 0.78rem;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.parts-red-flags {
    margin-top: 0.8rem;
    border-top: 1px solid var(--border-light);
    padding-top: 0.6rem;
}

.parts-rf-label {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c0392b;
    margin-bottom: 0.3rem;
}

.parts-rf-item {
    font-size: 0.75rem;
    color: #c0392b;
    line-height: 1.5;
    padding-left: 0.8rem;
    position: relative;
    margin-bottom: 0.2rem;
}

.parts-rf-item::before {
    content: '!';
    position: absolute;
    left: 0;
    font-weight: 700;
}

.parts-meta {
    margin: 1.5rem 0 0.5rem;
    font-size: 0.85rem;
    color: #333;
    line-height: 1.6;
}

.parts-subs {
    font-size: 0.78rem;
    color: var(--text-muted);
}

.parts-section-label {
    font-weight: 600;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #2d7a50;
    margin-bottom: 0.4rem;
    margin-top: 0.2rem;
}

.parts-correct-item {
    padding-left: 0.6rem;
    border-left: 2px solid #2d7a50;
    margin-bottom: 0.3rem;
}

.parts-notes {
    font-size: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-top: 0.6rem;
    padding-top: 0.5rem;
    border-top: 1px solid #eee;
    font-style: italic;
}

/* ── Valuations page ── */

.valuations-page {
    padding: 3rem 2rem;
    max-width: 1100px;
    margin: 0 auto;
}

.val-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin: 1rem 0 2.5rem;
    font-style: italic;
}

.scatter-section {
    margin-bottom: 3rem;
}

.section-subheading {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.scatter-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.8rem;
}

.scatter-legend-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border: 1.5px solid #e0ddd6;
    border-radius: 20px;
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.15s;
}

.scatter-legend-btn:hover {
    border-color: var(--text-faint);
    background: var(--bg-alt);
}

.scatter-legend-btn.active {
    border-color: currentColor;
    background: var(--chart-bg);
    color: var(--text);
    font-weight: 600;
}

.scatter-legend-swatch {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.scatter-wrap {
    position: relative;
    background: var(--chart-bg);
    border-radius: 6px;
    overflow: hidden;
}

.scatter-wrap canvas {
    display: block;
    cursor: crosshair;
}

.scatter-tooltip {
    display: none;
    position: absolute;
    background: rgba(26, 26, 26, 0.92);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    line-height: 1.45;
    padding: 8px 12px;
    border-radius: 4px;
    pointer-events: none;
    z-index: 10;
    max-width: 260px;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.val-ref-block {
    margin-bottom: 2.5rem;
    border-bottom: 1px solid #eee;
    padding-bottom: 2rem;
}

.val-ref-block:last-child {
    border-bottom: none;
}

.val-ref-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 0.8rem;
}

.val-ref-name {
    font-family: 'Playfair Display', serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

.val-ref-stats {
    display: flex;
    gap: 1.2rem;
    align-items: baseline;
}

.val-stat {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.val-range {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
}

.val-chart {
    position: relative;
    height: 32px;
    background: linear-gradient(90deg, #f8f7f4 0%, #f0ede6 100%);
    border-radius: 4px;
    margin: 0.6rem 0 0.3rem;
    overflow: visible;
}

.val-range-bar {
    position: absolute;
    top: 12px;
    height: 8px;
    background: linear-gradient(90deg, #c49b2c, #e8c547);
    border-radius: 4px;
    opacity: 0.35;
    z-index: 1;
}

.val-dot {
    position: absolute;
    top: 10px;
    width: 12px;
    height: 12px;
    background: #c49b2c;
    border: 2px solid #fff;
    border-radius: 50%;
    transform: translateX(-6px);
    z-index: 2;
    cursor: help;
    box-shadow: 0 1px 3px rgba(0,0,0,0.15);
    transition: transform 0.15s, box-shadow 0.15s;
}

.val-dot:hover {
    transform: translateX(-6px) scale(1.4);
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    z-index: 10;
}

.val-dot-outlier {
    background: #c0392b;
    width: 14px;
    height: 14px;
    top: 9px;
    transform: translateX(-7px);
}

.val-dot-outlier:hover {
    transform: translateX(-7px) scale(1.4);
}

.val-scale {
    position: relative;
    height: 18px;
    margin-bottom: 0.8rem;
}

.val-tick {
    position: absolute;
    transform: translateX(-50%);
    font-size: 0.6rem;
    color: var(--text-faint);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.02em;
}

.val-trend-wrap {
    position: relative;
    margin: 0.8rem 0 1rem;
    border-radius: 6px;
    overflow: hidden;
}

.val-trend-wrap canvas {
    display: block;
    width: 100%;
    border-radius: 6px;
}

.val-trend-tooltip {
    display: none;
    position: absolute;
    z-index: 20;
    background: rgba(12, 12, 12, 0.92);
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    line-height: 1.5;
    padding: 8px 12px;
    border-radius: 6px;
    pointer-events: none;
    max-width: 280px;
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(0,0,0,0.25);
}

.val-sales {
    display: grid;
    gap: 0;
}

.val-sale-row {
    display: grid;
    grid-template-columns: 130px 1fr auto;
    gap: 0.8rem;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f5f5f0;
    align-items: baseline;
    font-size: 0.8rem;
}

.val-sale-row:last-child {
    border-bottom: none;
}

.val-sale-price {
    font-weight: 600;
    color: var(--text);
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}
.val-native {
    font-weight: 400;
    color: var(--text-muted);
    font-size: 0.85em;
}

.val-sale-detail {
    color: var(--text-secondary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.val-sale-link {
    color: var(--text-secondary);
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
}

.val-sale-link:hover {
    color: #c49b2c;
    border-color: #c49b2c;
}

.val-sale-meta {
    color: var(--text-muted);
    font-size: 0.72rem;
    white-space: nowrap;
    text-align: right;
}

@media (max-width: 768px) {
    .valuations-page { padding: 2rem 1rem; }
    .val-ref-header { flex-direction: column; gap: 0.3rem; }
    .val-ref-name { font-size: 1.1rem; }
    .val-sale-row { grid-template-columns: 1fr; gap: 0.1rem; }
    .val-sale-meta { text-align: left; }
    .val-sale-detail { white-space: normal; }
}

/* Multi-select tag checkboxes */
.reg-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.reg-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    padding: 0.3rem 0.55rem;
    border: 1px solid var(--border-subtle);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.reg-tag:hover {
    border-color: var(--text-muted);
}

.reg-tag input[type="checkbox"] {
    display: none;
}

.reg-tag:has(input:checked) {
    background: #2c2418;
    color: #fff;
    border-color: #2c2418;
}

.reg-hint {
    font-weight: 400;
    font-size: 0.6rem;
    color: var(--text-faint);
    text-transform: none;
    letter-spacing: 0;
    margin-left: 0.3rem;
}


.registry-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .registry-table { font-size: 0.72rem; }
    .registry-table td, .registry-table thead th { padding: 0.4rem 0.3rem; }
    .reg-details-col { display: none; }
    .registry-page { overflow-x: auto; }
    .auction-table { font-size: 0.72rem; }
    .auction-table th, .auction-table td { padding: 0.4rem 0.3rem; }
    .auction-est-col { display: none; }
    .auction-house-col { display: none; }
    .auction-lot-cell { max-width: 150px; }
    .auction-sale-name { display: none; }
    .auction-summary { grid-template-columns: 1fr 1fr; gap: 0.5rem; }
    .auction-summary-card { padding: 0.6rem 0.8rem; }
    .auction-summary-ref { font-size: 0.85rem; }
    .auction-summary-stats { font-size: 0.65rem; flex-wrap: wrap; gap: 0.2rem 0.5rem; }
    .auction-summary-range { font-size: 0.6rem; }
    .auction-page-wrap { overflow-x: auto; }
}

@media (max-width: 900px) {
    .serial-page .methodology { columns: 1; }
    .serial-page .serial-inner { padding: 1.5rem 1rem; }
    .serial-page h1 { font-size: 1.6rem; }
    .sources-grid { grid-template-columns: 1fr; }
    .about-sources { grid-template-columns: 1fr; }
    .nav-left { gap: 0.8rem; }
    .nav-link { font-size: 0.62rem; }
    .auction-summary { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
    .auction-filter-label { min-width: auto; width: 100%; }
}

/* Mobile */
@media (max-width: 700px) {
    header {
        padding: 0.7rem 1rem 0;
    }
    .header-bar {
        padding-bottom: 0.5rem;
    }
    .hamburger { display: flex; }
    .nav-left {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 260px;
        height: 100vh;
        background: var(--bg);
        border-top: none;
        border-right: 1px solid var(--border);
        flex-direction: column;
        justify-content: flex-start;
        gap: 0;
        padding: 60px 0 1rem;
        z-index: 105;
        box-shadow: 4px 0 20px var(--shadow-strong);
        overflow-y: auto;
    }
    .nav-open .nav-left { display: flex; }
    .nav-left .nav-link {
        font-size: 0.82rem;
        padding: 0.7rem 1.5rem;
        border-bottom: 1px solid var(--border);
    }
    .nav-left .nav-link:hover { background: var(--bg-alt); }
    .nav-left .nav-link.active { background: var(--bg-alt); }
    .nav-right { min-width: auto; flex: 1; justify-content: flex-end; }
    .search-bar { flex: 1; max-width: 100%; }
    .search-bar input { width: 100%; min-width: 0; }
    .hero { padding: 4rem 1.5rem 3rem; min-height: 50vh; }
    .hero-the, .hero-enc { font-size: 1.2rem; }
    .hero-script-svg { width: 340px; }
    .refs-section { padding: 2.5rem 1rem; }
    .article { padding: 2rem 1rem; }
    .article-header h1 { font-size: 1.4rem; }
    .article-header .article-meta { max-width: 100%; }
    .component-block { padding: 0.8rem 0; }
    .video-grid { grid-template-columns: 1fr; }
    .media-page { padding: 2rem 1rem; }
    .about-page { padding: 2rem 1rem; }
    .about-sources { grid-template-columns: 1fr; }
    .about-cta-grid { grid-template-columns: 1fr; }
    .sources-page { padding: 2rem 1rem; }
    .sources-grid { grid-template-columns: 1fr; }
    .glossary-page { padding: 2rem 1rem; }
    .glossary-cat-filters { gap: 0.3rem; }
    .glossary-term-header { padding: 0.6rem 0.8rem; }
    .glossary-term-body { padding: 0 0.8rem 1rem; }
    .glossary-term-header h3 { font-size: 0.82rem; }
    .glossary-aliases { font-size: 0.7rem; }
    .gallery-page { padding: 2rem 1rem; }
    .gallery-grid { grid-template-columns: 1fr; gap: 1rem; }
    .gallery-item img { height: 220px; }
    .gallery-ref-filters { gap: 0.3rem; }
    .gallery-ref-btn { padding: 0.35rem 0.6rem; font-size: 0.75rem; }
    .gallery-filters { gap: 0.3rem; }
    .gallery-filter-btn { padding: 0.3rem 0.6rem; font-size: 0.72rem; }
    .gallery-group-header { flex-wrap: wrap; gap: 0.4rem; }
    .gallery-group-title { font-size: 0.82rem; }
    .serial-page .serial-inner { padding: 1.5rem 1rem; }
    .serial-page h1 { font-size: 1.4rem; }
    .serial-page h2 { font-size: 1.1rem; }
    .serial-page .methodology { columns: 1; }
    .serial-page table { font-size: 0.75rem; }
    .serial-page thead th { padding: 0.4rem 0.5rem; font-size: 0.7rem; }
    .serial-page tbody td { padding: 0.4rem 0.5rem; }
    .serial-table { font-size: 0.75rem; }
    .serial-table th, .serial-table td { padding: 0.4rem 0.5rem; }
    .auctions-page { padding: 2rem 1rem; }
    .lightbox { padding: 1rem; }
    .lightbox-content { max-width: 95vw; }
    .registry-page { padding: 2rem 1rem; }
    .registry-stats { flex-direction: column; gap: 0.5rem; align-items: center; }
    .reg-form-grid { grid-template-columns: 1fr 1fr; }
    .registry-sort { margin-left: 0; margin-top: 0.4rem; }
    .registry-table { font-size: 0.7rem; }
    .parts-page { padding: 2rem 1rem; }
    .parts-grid { grid-template-columns: 1fr; }
    .valuations-page { padding: 2rem 1rem; }
    .source-detail-page { padding: 2rem 1rem; }
    .source-article-full { padding: 16px; }
}

/* ── Home page stats grid ── */
.home-stats-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}
.home-stat {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
}
.home-stat-num {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text);
    display: block;
    margin-bottom: 2px;
}

/* ── Reference stats bar ── */
.ref-stats-bar {
    display: flex;
    gap: 0;
    margin: 0 0 2rem;
    border: 1px solid #e8e5dd;
    border-radius: 6px;
    overflow: hidden;
}
.ref-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 14px 10px;
    border-right: 1px solid var(--border-light);
}
.ref-stat:last-child { border-right: none; }
.ref-stat-num {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    white-space: nowrap;
}
.ref-stat-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 3px;
}
@media (max-width: 768px) {
    .ref-stats-bar { flex-wrap: wrap; }
    .ref-stat { min-width: 33%; border-bottom: 1px solid #e8e5dd; }
}

/* ── Verification badges ── */
.vf-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.65rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    padding: 2px 7px;
    border-radius: 3px;
    vertical-align: middle;
    cursor: default;
    white-space: nowrap;
}
.vf-badge-verified {
    background: #e6f4ea;
    color: #1a7f37;
    border: 1px solid #b4dfbf;
}
.vf-badge-community {
    background: #e8f0fe;
    color: #1a56db;
    border: 1px solid #b6d4fe;
}
.vf-badge-unverified {
    background: #fef3e2;
    color: #9a6700;
    border: 1px solid #f0d9a8;
}
.vf-badge-disputed {
    background: #fee2e2;
    color: #c53030;
    border: 1px solid #f5b4b4;
}
.vf-badge svg { flex-shrink: 0; }

.vf-actions {
    display: inline-flex;
    gap: 4px;
    margin-left: 6px;
    vertical-align: middle;
}
.vf-btn {
    background: none;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    padding: 1px 6px;
    font-size: 0.6rem;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.15s;
}
.vf-btn:hover { border-color: var(--text-muted); color: #333; }
.vf-btn-confirm:hover { border-color: #1a7f37; color: #1a7f37; background: #e6f4ea; }
.vf-btn-dispute:hover { border-color: #c53030; color: #c53030; background: #fee2e2; }

.vf-source-form {
    display: none;
    margin-top: 6px;
    padding: 8px;
    background: #fafaf8;
    border: 1px solid #e8e5dd;
    border-radius: 4px;
}
.vf-source-form.active { display: block; }
.vf-source-form input {
    width: 100%;
    padding: 4px 8px;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    font-size: 0.75rem;
    margin-bottom: 4px;
}
.vf-source-form button {
    font-size: 0.7rem;
    padding: 3px 10px;
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    cursor: pointer;
    background: var(--bg);
    margin-right: 4px;
}
.vf-source-form button.vf-submit { background: #1a7f37; color: #fff; border-color: #1a7f37; }
.vf-source-form .vf-status { font-size: 0.65rem; color: var(--text-secondary); margin-top: 3px; }

.vf-inline { display: inline-flex; align-items: center; gap: 4px; margin-left: 4px; }

.vf-summary-bar {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 10px 16px;
    background: #fafaf8;
    border: 1px solid #e8e5dd;
    border-radius: 6px;
    margin: 12px 0 20px;
    font-size: 0.8rem;
    flex-wrap: wrap;
}
.vf-summary-stat {
    display: flex;
    align-items: center;
    gap: 4px;
}
.vf-summary-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.vf-summary-dot-verified { background: #1a7f37; }
.vf-summary-dot-community { background: #1a56db; }
.vf-summary-dot-unverified { background: #9a6700; }
.vf-summary-dot-disputed { background: #c53030; }

.vf-progress {
    flex: 1;
    min-width: 120px;
    height: 6px;
    background: #e8e5dd;
    border-radius: 3px;
    overflow: hidden;
    display: flex;
}
.vf-progress-seg { height: 100%; transition: width 0.3s; }
/* ── Source detail page ── */
.source-detail-page { padding: 2rem 4rem; max-width: 1100px; margin: 0 auto; }
.source-highlight-bar {
    padding: 8px 14px;
    background: #e8f0fe;
    border: 1px solid #b6d4fe;
    border-radius: 4px;
    font-size: 0.82rem;
    color: #1a56db;
    margin-bottom: 16px;
}
.source-filter-bar {
    display: flex; flex-wrap: wrap; gap: 6px;
    margin-bottom: 20px;
}
.source-articles-list { margin-bottom: 2rem; }
.source-group { margin-bottom: 2rem; }
.source-group-name {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-secondary);
    border-bottom: 1px solid #e8e5dd;
    padding-bottom: 6px;
    margin-bottom: 12px;
}
.source-article-card {
    padding: 14px 16px;
    border: 1px solid #e8e5dd;
    border-radius: 6px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.source-article-card:hover {
    border-color: #c49b2c;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.source-article-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text);
}
.source-article-preview {
    font-size: 0.8rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 8px;
}
.source-article-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.75rem;
}
.source-orig-link {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.72rem;
}
.source-orig-link:hover { color: #c49b2c; }

.source-article-full {
    background: #fafaf8;
    border: 1px solid #e8e5dd;
    border-radius: 6px;
    padding: 24px 28px;
    margin: 20px 0;
}
.source-article-content {
    font-size: 0.88rem;
    line-height: 1.8;
    color: #333;
}
.source-article-content p { margin-bottom: 1em; }

.source-archive-note {
    padding: 12px 16px;
    background: #f5f4f0;
    border: 1px solid #e8e5dd;
    border-radius: 4px;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 1.5rem;
}
.source-archive-note a { color: var(--text-muted); text-decoration: underline; }

.vf-btn-source {
    background: #e6f4ea;
    border-color: #b4dfbf;
    color: #1a7f37;
    font-weight: 500;
    text-decoration: none;
    display: inline-block;
}
.vf-btn-source:hover { background: #d0ecd6; color: #146b2d; border-color: #1a7f37; }

.vf-progress-verified { background: #1a7f37; }
.vf-progress-community { background: #1a56db; }
.vf-progress-unverified { background: #d4a017; }
.vf-progress-disputed { background: #c53030; }

/* ── Extracts page ── */
.extracts-page { padding: 2rem 4rem; max-width: 900px; margin: 0 auto; }

.extract-status-banner {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 24px;
    border-radius: 6px;
    margin-bottom: 2rem;
}
.extract-status-suspended {
    background: #fef3e2;
    border: 1px solid #f0d9a8;
}
.extract-status-icon {
    font-size: 1.6rem;
    line-height: 1;
    flex-shrink: 0;
}
.extract-status-text strong {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    color: #7c5a00;
}
.extract-status-text p {
    font-size: 0.85rem;
    color: #8a6d00;
    margin-top: 6px;
    line-height: 1.6;
}

.extract-section {
    margin-bottom: 2.5rem;
}
.extract-section h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text);
    margin-bottom: 1rem;
    padding-bottom: 8px;
    border-bottom: 1px solid #e8e5dd;
}
.extract-section p {
    font-size: 0.88rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 1em;
}

.extract-callout {
    padding: 16px 20px;
    background: #f5f4f0;
    border-left: 3px solid #c49b2c;
    border-radius: 0 4px 4px 0;
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin: 1.2rem 0;
}
.extract-callout-warn {
    background: #fef8ec;
    border-left-color: #d4a017;
}
.extract-callout strong { color: #333; }

.extract-doc-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
    margin-bottom: 1.2rem;
}
.extract-doc-field {
    padding: 14px 16px;
    background: #fafaf8;
    border: 1px solid #e8e5dd;
    border-radius: 6px;
}
.extract-doc-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 4px;
}
.extract-doc-value {
    font-size: 0.85rem;
    color: #333;
}

.extract-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
}
.extract-detail-card {
    padding: 18px 20px;
    background: #fafaf8;
    border: 1px solid #e8e5dd;
    border-radius: 6px;
}
.extract-detail-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}
.extract-detail-card p {
    font-size: 0.82rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.extract-section-scandal { }
.extract-timeline {
    position: relative;
    padding-left: 24px;
    margin: 1.2rem 0;
}
.extract-timeline::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: #e8e5dd;
}
.extract-tl-item {
    position: relative;
    margin-bottom: 1.5rem;
}
.extract-tl-item::before {
    content: '';
    position: absolute;
    left: -21px;
    top: 6px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #c49b2c;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e8e5dd;
}
.extract-tl-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #c49b2c;
    margin-bottom: 4px;
}
.extract-tl-content h4 {
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 6px;
}
.extract-tl-content p {
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text-secondary);
}

.extract-alt-card {
    padding: 18px 22px;
    border: 1px solid #e8e5dd;
    border-radius: 6px;
    margin-bottom: 12px;
    transition: border-color 0.15s;
}
.extract-alt-card:hover { border-color: #c49b2c; }
.extract-alt-card h3 {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 4px;
}
.extract-alt-meta {
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    color: var(--text-muted);
    margin-bottom: 10px;
}
.extract-alt-card p {
    font-size: 0.84rem;
    line-height: 1.65;
    color: var(--text-secondary);
}
.extract-alt-card a { color: #c49b2c; text-decoration: underline; }

.extract-impact-list {
    list-style: none;
    padding: 0;
}
.extract-impact-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0ede6;
    font-size: 0.85rem;
    line-height: 1.65;
    color: var(--text-secondary);
}
.extract-impact-list li:last-child { border-bottom: none; }
.extract-impact-list li strong { color: var(--text); }

.extract-section-reading .reading-list {
    list-style: none;
    padding: 0;
}
.extract-section-reading .reading-list li {
    padding: 8px 0;
    border-bottom: 1px solid #f0ede6;
    font-size: 0.85rem;
}
.extract-section-reading .reading-list li:last-child { border-bottom: none; }
.extract-section-reading .reading-list a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px solid var(--border-subtle);
    transition: border-color 0.15s;
}
.extract-section-reading .reading-list a:hover { border-color: #c49b2c; color: #c49b2c; }

@media (max-width: 768px) {
    .extracts-page { padding: 2rem 1rem; }
    .extract-doc-grid { grid-template-columns: 1fr 1fr; }
    .extract-details-grid { grid-template-columns: 1fr; }
    .extract-status-banner { flex-direction: column; gap: 8px; padding: 16px; }
}

/* ── Must-Haves page ── */
.musthave-page {
    padding: 3rem 4rem 5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.musthave-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.musthave-card {
    border: 1px solid var(--border-light);
    border-radius: 4px;
    padding: 1.5rem;
    background: var(--bg);
    transition: box-shadow 0.2s;
}

.musthave-card:hover {
    box-shadow: 0 4px 16px var(--shadow);
}

.musthave-featured {
    grid-column: span 1;
    border-color: var(--accent);
    border-width: 2px;
}

.musthave-badge {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent);
    margin-bottom: 0.5rem;
}

.musthave-card h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 0.3rem;
}

.musthave-author {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 0.8rem;
}

.musthave-card p {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.7;
    font-weight: 300;
    margin-bottom: 0.8rem;
}

.musthave-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 0.8rem;
}

.musthave-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.musthave-links a {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text);
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border);
    border-radius: 2px;
    background: var(--bg-alt);
    transition: all 0.2s;
}

.musthave-links a:hover {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

@media (max-width: 700px) {
    .musthave-page { padding: 2rem 1rem; }
    .musthave-grid { grid-template-columns: 1fr; }
}

/* Small mobile */
@media (max-width: 400px) {
    .hero-the, .hero-enc { font-size: 1rem; letter-spacing: 0.08em; }
    .hero-script-svg { width: 260px; }
    .hero-sub { font-size: 0.78rem; }
    .nav-left { gap: 0.6rem; }
    .nav-link { font-size: 0.6rem; }
}
