/* ==================================================================
   THE RECEIPTS — A Public Record Series
   Shared stylesheet, served from https://thereceipts.fyi/assets/style.css
   Loaded via <link> from every profile domain (peterthiel.fyi,
   jdvance.fyi, petehegseth.fyi, stephenmiller.fyi, and any future
   additions). No CORS setup needed — cross-origin <link> tags for
   stylesheets aren't subject to CORS restrictions.

   Edit this ONE file to restyle the entire series at once.
   ================================================================== */

    /* ============================================================
       DESIGN SYSTEM — "Civic Ledger"
       A public-record aesthetic: ink, paper, and stamped
       verification marks. The stamp motif is structural, not
       decorative — it marks whether a claim is a documented fact
       or a contested characterization, which is the whole point
       of this template.
       ============================================================ */
    :root {
        --paper:        #EDEAE0;
        --paper-raised: #F7F5EE;
        --ink:          #1E2530;
        --ink-soft:     #4A5262;
        --rule:         #C9C3B2;
        --verified:     #2E5339;
        --verified-bg:  #E3ECE2;
        --disputed:     #8B2E22;
        --disputed-bg:  #F3E4DF;
        --gold:         #96742E;
        --font-display: 'Spectral', Georgia, serif;
        --font-body:    'IBM Plex Sans', Arial, sans-serif;
        --font-mono:    'IBM Plex Mono', 'Courier New', monospace;
    }
    * { box-sizing: border-box; margin: 0; padding: 0; }

    body {
        background-color: var(--paper);
        color: var(--ink);
        font-family: var(--font-body);
        font-size: 17px;
        line-height: 1.65;
    }

    .container { max-width: 760px; margin: 0 auto; padding: 0 22px; }

    h1, h2, h3 { font-family: var(--font-display); color: var(--ink); }

    .eyebrow {
        font-family: var(--font-mono);
        font-size: 0.78rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--ink-soft);
        border-bottom: 1px solid var(--rule);
        padding-bottom: 4px;
        display: inline-block;
        margin-bottom: 14px;
    }
    
    /* ============================================================
       SERIES NETWORK NAVIGATION — Public Record Dossier Switcher
       ============================================================ */
    .series-nav {
        background: var(--ink);
        color: var(--paper);
        font-family: var(--font-mono);
        font-size: 0.78rem;
        border-bottom: 2px solid var(--gold);
        position: relative;
        z-index: 900;
    }
    .series-nav-container {
        max-width: 1180px;
        margin: 0 auto;
        padding: 0 22px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 46px;
        gap: 16px;
    }
    .series-brand {
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--paper-raised);
        text-decoration: none;
        font-weight: 600;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        white-space: nowrap;
        font-size: 0.75rem;
    }
    .series-brand .mark {
        color: var(--gold);
        font-size: 0.85rem;
    }
    .series-menu {
        display: flex;
        align-items: center;
        gap: 10px;
        overflow-x: auto;
        scrollbar-width: none; /* Firefox */
        -ms-overflow-style: none; /* IE/Edge */
        padding: 6px 0;
    }
    .series-menu::-webkit-scrollbar { 
        display: none; /* Chrome/Safari */
    }
    .series-label {
        color: var(--rule);
        text-transform: uppercase;
        font-size: 0.68rem;
        letter-spacing: 0.08em;
        white-space: nowrap;
    }
    .profile-links {
        display: flex;
        align-items: center;
        gap: 6px;
        list-style: none;
        margin: 0;
        padding: 0;
    }
    .profile-links a {
        color: #C9C3B2;
        text-decoration: none;
        padding: 5px 11px;
        border-radius: 2px;
        white-space: nowrap;
        transition: background-color 0.15s ease, color 0.15s ease;
        text-transform: uppercase;
        font-size: 0.7rem;
        letter-spacing: 0.06em;
    }
    .profile-links a:hover {
        color: var(--paper-raised);
        background: rgba(255, 255, 255, 0.12);
    }
    .profile-links a.active {
        color: var(--ink);
        background: var(--gold);
        font-weight: 700;
    }
    
    @media (max-width: 640px) {
        .series-nav-container {
            flex-direction: column;
            align-items: flex-start;
            padding-top: 8px;
            padding-bottom: 8px;
            gap: 6px;
        }
        .series-menu {
            width: 100%;
        }
    }

    header.masthead {
        border-bottom: 3px double var(--ink);
        padding: 56px 0 40px;
        background: var(--paper-raised);
    }
    header.masthead .container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 28px;
        align-items: start;
    }
    .masthead-text { display: flex; flex-direction: column; gap: 14px; }
    .masthead-top {
        display: flex; justify-content: space-between; align-items: baseline;
        font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em;
        text-transform: uppercase; color: var(--ink-soft);
    }
    h1.name {
        font-size: clamp(2.4rem, 6vw, 3.6rem);
        font-weight: 600;
        line-height: 1.05;
        letter-spacing: -0.5px;
    }
    .role-line {
        font-family: var(--font-body);
        font-size: 1.1rem;
        color: var(--ink-soft);
    }
    .method-note {
        font-size: 0.92rem;
        color: var(--ink-soft);
        border-left: 3px solid var(--gold);
        padding-left: 14px;
        margin-top: 8px;
        max-width: 560px;
    }

    /* Subject photo — a "dossier" frame: plain paper mat, thin
       ink rule, a small tab label. Reusable across profiles;
       only the image src, alt text, and credit line change. */
    .subject-photo {
        order: -1;
        justify-self: center;
        width: min(220px, 60vw);
    }
    .subject-photo .frame {
        position: relative;
        background: var(--paper);
        border: 1px solid var(--ink);
        padding: 10px 10px 34px;
        box-shadow: 4px 4px 0 var(--rule);
    }
    .subject-photo .photo-crop {
        width: 100%;
        aspect-ratio: 4 / 5;
        overflow: hidden;
        background: var(--rule);
        filter: grayscale(0.15) contrast(1.03);
    }
    .subject-photo img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center top;
        display: block;
    }
    .subject-photo .tab {
        position: absolute;
        bottom: 10px; left: 10px; right: 10px;
        font-family: var(--font-mono);
        font-size: 0.68rem;
        letter-spacing: 0.06em;
        color: var(--ink-soft);
        text-align: center;
        line-height: 1.4;
    }
    @media (min-width: 700px) {
        header.masthead .container {
            grid-template-columns: 1fr 220px;
        }
        .subject-photo { order: 0; justify-self: end; width: 100%; }
    }

    section { padding: 38px 0; }
    section h2 {
        font-size: 1.7rem;
        margin-bottom: 18px;
        padding-bottom: 10px;
        border-bottom: 1px solid var(--rule);
    }
    p { margin-bottom: 1.2rem; color: var(--ink); }
    p.lede { font-size: 1.08rem; }

    /* Quick facts */
    table.facts {
        width: 100%;
        border-collapse: collapse;
        font-size: 0.95rem;
        margin: 20px 0;
        background: var(--paper-raised);
        border: 1px solid var(--rule);
    }
    table.facts td { padding: 11px 16px; border-bottom: 1px solid var(--rule); vertical-align: top; }
    table.facts tr:last-child td { border-bottom: none; }
    table.facts td:first-child {
        font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em;
        text-transform: uppercase; color: var(--ink-soft); width: 38%;
    }

    /* Record cards — the signature element */
    .record {
        background: var(--paper-raised);
        border: 1px solid var(--rule);
        margin: 26px 0;
        position: relative;
        box-shadow: 3px 3px 0 var(--rule);
    }
    .record-head {
        display: flex; justify-content: space-between; align-items: flex-start;
        gap: 16px; padding: 20px 22px 14px; border-bottom: 1px solid var(--rule);
    }
    .record-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 600; }
    .stamp {
        font-family: var(--font-mono);
        font-size: 0.7rem;
        letter-spacing: 0.1em;
        text-transform: uppercase;
        padding: 5px 10px;
        border: 2px solid currentColor;
        border-radius: 3px;
        white-space: nowrap;
        transform: rotate(-2deg);
        flex-shrink: 0;
    }
    .stamp.verified { color: var(--verified); background: var(--verified-bg); }
    .stamp.disputed { color: var(--disputed); background: var(--disputed-bg); }
    .stamp.unconfirmed { color: var(--ink-soft); background: var(--paper); border-style: dashed; }

    .record-body { padding: 6px 22px 22px; }
    .field { margin-top: 16px; }
    .field-label {
        font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.1em;
        text-transform: uppercase; color: var(--ink-soft); margin-bottom: 5px;
    }
    .field-label.critics { color: var(--disputed); }
    .field-label.supporters { color: var(--verified); }
    .field p { margin-bottom: 0; font-size: 0.98rem; }
    .cite {
        font-size: 0.78rem; vertical-align: super; color: var(--gold);
        text-decoration: none; font-weight: 700; margin-left: 2px;
    }

    /* Timeline */
    .timeline { position: relative; margin: 30px 0 10px; padding-left: 26px; border-left: 2px solid var(--gold); }
    .t-node { margin-bottom: 24px; position: relative; }
    .t-node::before {
        content: ''; position: absolute; left: -33px; top: 4px;
        width: 10px; height: 10px; border-radius: 50%;
        background: var(--paper); border: 2px solid var(--gold);
    }
    .t-year { font-family: var(--font-mono); font-weight: 700; color: var(--gold); font-size: 0.95rem; }
    .t-title { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin: 2px 0 4px; }
    .t-node p { font-size: 0.95rem; margin-bottom: 0; }

    /* FAQ */
    .faq-item { border-bottom: 1px solid var(--rule); padding: 16px 0; }
    .faq-q { font-weight: 700; margin-bottom: 6px; }
    .faq-a { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 0; }

    footer {
        background: var(--paper-raised);
        border-top: 3px double var(--ink);
        padding: 44px 0 60px;
        font-size: 0.92rem;
    }
    footer h3 {
        font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em;
        font-family: var(--font-mono); margin-bottom: 16px; color: var(--ink-soft);
    }
    footer ol { padding-left: 20px; }
    footer li { margin-bottom: 10px; color: var(--ink-soft); }
    footer a { color: var(--gold); text-decoration: none; }
    footer a:hover { text-decoration: underline; }
    .about-template {
        margin-top: 30px; padding-top: 24px; border-top: 1px solid var(--rule);
        color: var(--ink-soft); font-size: 0.88rem;
    }

    .cookie-banner {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--ink); color: #EDEAE0;
        padding: 18px 22px; display: flex; flex-direction: column;
        gap: 14px; align-items: center; z-index: 1000; border-top: 3px solid var(--gold);
    }
    .cookie-banner p { margin: 0; font-size: 0.85rem; color: #C9C3B2; text-align: center; }
    .cookie-banner button {
        background: var(--gold); color: #1E2530; border: none; padding: 9px 30px;
        font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.85rem;
        cursor: pointer; width: 100%;
    }
    .cookie-banner.hidden { display: none !important; }
    @media (min-width: 700px) {
        .cookie-banner { flex-direction: row; justify-content: space-between; }
        .cookie-banner p { text-align: left; }
        .cookie-banner button { width: auto; }
        .record-head { align-items: center; }
    }

    /* ============================================================
       TABLE OF CONTENTS — a docket index. Fixed rail on wide
       screens; a slide-in drawer with a floating tab below that.
       Reusable: the link list is the only thing to edit per page —
       give each <section> a matching id and label here.
       ============================================================ */
    .toc-toggle {
        position: fixed;
        bottom: 22px; right: 22px;
        z-index: 1001;
        background: var(--ink);
        color: var(--paper-raised);
        font-family: var(--font-mono);
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        border: none;
        padding: 13px 18px;
        cursor: pointer;
        box-shadow: 3px 3px 0 var(--gold);
        display: flex;
        align-items: center;
        gap: 8px;
    }
    .toc-toggle:hover { background: var(--ink-soft); }
    .toc-toggle .glyph { font-size: 0.95rem; line-height: 1; }

    .toc-overlay {
        position: fixed; inset: 0;
        background: rgba(20, 20, 20, 0.4);
        z-index: 1002;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    .toc-overlay.visible { opacity: 1; pointer-events: auto; }

    .toc {
        position: fixed;
        top: 0; left: 0;
        height: 100vh;
        width: min(280px, 82vw);
        background: var(--paper-raised);
        border-right: 1px solid var(--rule);
        transform: translateX(-100%);
        transition: transform 0.28s ease;
        z-index: 1003;
        overflow-y: auto;
        padding: 26px 0 40px;
    }
    .toc.open { transform: translateX(0); box-shadow: 8px 0 24px rgba(0,0,0,0.18); }

    .toc-head {
        display: flex; align-items: center; justify-content: space-between;
        padding: 0 22px 16px; margin-bottom: 10px;
        border-bottom: 1px solid var(--rule);
    }
    .toc-head .toc-label {
        font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em;
        text-transform: uppercase; color: var(--ink-soft);
    }
    .toc-close {
        background: none; border: none; color: var(--ink-soft);
        font-size: 1.1rem; line-height: 1; cursor: pointer; padding: 4px;
    }
    .toc-close:hover { color: var(--ink); }

    .toc ol {
        list-style: none;
        padding: 0 12px;
        counter-reset: toc-counter;
    }
    .toc li { counter-increment: toc-counter; }
    .toc-link {
        display: flex; align-items: baseline; gap: 10px;
        font-family: var(--font-body);
        font-size: 0.92rem;
        color: var(--ink-soft);
        text-decoration: none;
        padding: 9px 10px;
        border-left: 2px solid transparent;
        border-radius: 1px;
    }
    .toc-link::before {
        content: counter(toc-counter, decimal-leading-zero);
        font-family: var(--font-mono);
        font-size: 0.7rem;
        color: var(--gold);
        flex-shrink: 0;
    }
    .toc-link:hover { color: var(--ink); background: var(--paper); }
    .toc-link.active {
        color: var(--ink);
        background: var(--paper);
        border-left-color: var(--gold);
        font-weight: 600;
    }

    @media (min-width: 1180px) {
        .toc-toggle, .toc-overlay { display: none; }
        .toc {
            position: fixed;
            transform: none;
            top: 130px;
            left: max(20px, calc((100vw - 760px) / 2 - 236px));
            height: auto;
            max-height: calc(100vh - 170px);
            width: 216px;
            border: 1px solid var(--rule);
            box-shadow: 3px 3px 0 var(--rule);
            padding: 18px 0;
        }
        .toc-close { display: none; }
        .toc-head { padding: 0 18px 14px; }
        .toc ol { padding: 0 8px; }
    }

    /* ============================================================
       DASHBOARD ACCENTS — borrowed from the registry/ticker
       aesthetic of data-transparency sites: bold monospace
       stats, a live status strip, and cross-profile connection
       chips. Layered on top of the civic-ledger base, not a
       replacement for it.
       ============================================================ */

    /* Stat strip: big numbers, small labels. Use light on paper,
       or add .dark for a sunken ink panel (parent site hero). */
    .stat-strip {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 1px;
        background: var(--rule);
        border: 1px solid var(--rule);
        margin: 24px 0;
    }
    .stat-block {
        background: var(--paper-raised);
        padding: 18px 16px;
        text-align: left;
    }
    .stat-block .num {
        font-family: var(--font-mono);
        font-size: clamp(1.5rem, 3vw, 2.1rem);
        font-weight: 700;
        color: var(--gold);
        line-height: 1;
        display: block;
    }
    .stat-block .label {
        font-family: var(--font-mono);
        font-size: 0.68rem;
        letter-spacing: 0.07em;
        text-transform: uppercase;
        color: var(--ink-soft);
        margin-top: 6px;
        display: block;
    }
    .stat-strip.dark { background: var(--ink); border-color: var(--ink); }
    .stat-strip.dark .stat-block { background: #262f3d; }
    .stat-strip.dark .stat-block .num { color: var(--gold); }
    .stat-strip.dark .stat-block .label { color: #9AA3B4; }

    /* Network / series status strip — a thin monospace ticker,
       the "this registry is live and cross-referenced" signal. */
    .network-status {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        letter-spacing: 0.04em;
        color: var(--ink-soft);
        background: var(--paper-raised);
        border: 1px solid var(--rule);
        padding: 10px 16px;
        display: flex;
        flex-wrap: wrap;
        gap: 6px 18px;
        margin: 20px 0;
    }
    .network-status .dot {
        color: var(--verified);
        margin-right: 5px;
    }
    .network-status strong { color: var(--ink); font-weight: 700; }

    /* Connection chips — link one profile to another. */
    .connections {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
        margin: 18px 0 30px;
    }
    .connection-chip {
        display: flex;
        align-items: center;
        gap: 8px;
        background: var(--paper-raised);
        border: 1px solid var(--rule);
        border-radius: 999px;
        padding: 7px 14px 7px 7px;
        text-decoration: none;
        color: var(--ink);
        font-size: 0.85rem;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    .connection-chip:hover { border-color: var(--gold); box-shadow: 2px 2px 0 var(--rule); }
    .connection-chip .chip-photo {
        width: 30px; height: 30px; border-radius: 50%;
        overflow: hidden; flex-shrink: 0; background: var(--rule);
        border: 1px solid var(--ink);
    }
    .connection-chip .chip-photo img { width: 100%; height: 100%; object-fit: cover; }
    .connection-chip .chip-text { display: flex; flex-direction: column; line-height: 1.25; }
    .connection-chip .chip-name { font-weight: 700; }
    .connection-chip .chip-role { font-size: 0.72rem; color: var(--ink-soft); }

    /* Directory grid — used on the parent site to list all profiles. */
    .directory-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 30px 0;
    }
    @media (min-width: 640px) {
        .directory-grid { grid-template-columns: repeat(2, 1fr); }
    }
    .directory-card {
        background: var(--paper-raised);
        border: 1px solid var(--rule);
        box-shadow: 3px 3px 0 var(--rule);
        text-decoration: none;
        color: var(--ink);
        display: flex;
        gap: 16px;
        padding: 18px;
        position: relative;
        transition: transform 0.12s ease;
    }
    .directory-card:hover { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--gold); }
    .directory-card .dc-photo {
        width: 72px; height: 90px; flex-shrink: 0;
        overflow: hidden; border: 1px solid var(--ink); background: var(--rule);
    }
    .directory-card .dc-photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
    .directory-card .dc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
    .directory-card .dc-name { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; }
    .directory-card .dc-role { font-size: 0.82rem; color: var(--ink-soft); }
    .directory-card .dc-tag {
        font-family: var(--font-mono); font-size: 0.65rem; letter-spacing: 0.08em;
        text-transform: uppercase; color: var(--gold); margin-top: auto;
    }

    /* Parent-site hero (thereceipts.fyi only) */
    .site-hero {
        background: var(--ink);
        color: var(--paper-raised);
        padding: 70px 0 50px;
        border-bottom: 3px double var(--gold);
    }
    .site-hero .eyebrow { color: #9AA3B4; border-color: #3a4252; }
    .site-hero h1 {
        font-size: clamp(2.6rem, 7vw, 4.2rem);
        line-height: 1.05;
        letter-spacing: -0.5px;
        margin-bottom: 16px;
    }
    .site-hero p.lede { color: #C9C3B2; font-size: 1.15rem; max-width: 620px; }
