/* ══════════════════════════════════════════════════
   BENCH RECEIPTS — Design System
   "We keep the receipts."
   Light / Red / Gold — Authoritative accountability aesthetic
   ══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;700&display=swap');

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

:root {
    /* Core palette — Light theme */
    --bg-primary: #fafafa;
    --bg-secondary: #f3f3f5;
    --bg-card: #ffffff;
    --bg-card-hover: #f7f7f9;
    --bg-elevated: #ffffff;

    /* Accent colors */
    --red: #b91c1c;
    --red-glow: rgba(185, 28, 28, 0.1);
    --red-bright: #dc2626;
    --gold: #b47a08;
    --gold-dim: #92620a;
    --gold-glow: rgba(180, 122, 8, 0.08);

    /* Text */
    --text-primary: #111118;
    --text-secondary: #4a4a5c;
    --text-muted: #8a8a9e;
    --text-accent: var(--gold);

    /* Borders */
    --border: #e2e2ea;
    --border-active: #c8c8d4;
    --border-red: rgba(185, 28, 28, 0.25);

    /* Status */
    --below-guidelines: #b91c1c;
    --within-guidelines: #16a34a;

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

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;

    /* Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    /* Transitions */
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --transition: 200ms var(--ease);
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    background-color: #f5f4f0;
    background-image:
        radial-gradient(circle at 25% 25%, rgba(0, 0, 0, 0.035) 2px, transparent 2px),
        radial-gradient(circle at 75% 75%, rgba(0, 0, 0, 0.025) 2px, transparent 2px);
    background-size: 12px 12px;
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ── Layout ──────────────────────────────── */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

/* ── Navigation ──────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(250, 250, 250, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 800;
    font-size: 1.1rem;
    letter-spacing: -0.5px;
}

.nav-brand .brand-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, var(--red), var(--gold));
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

.nav-brand .brand-accent {
    color: var(--red);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
    position: relative;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-primary);
}

.nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--red);
    border-radius: 1px;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }
    .nav-links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--bg-secondary);
        border-bottom: 1px solid var(--border);
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-lg);
    }
    .nav-links.open { display: flex; }
}

/* ── Hero ────────────────────────────────── */
.hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero-tag {
    display: inline-block;
    background: var(--red-glow);
    border: 1px solid var(--border-red);
    color: var(--red-bright);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-lg);
}

.hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
    background: linear-gradient(135deg, var(--red), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    color: var(--text-secondary);
    font-size: 1.15rem;
    max-width: 550px;
    margin: 0 auto var(--space-2xl);
    line-height: 1.7;
}

/* ── Stats Bar ───────────────────────────── */
.stats-bar {
    display: flex;
    justify-content: center;
    gap: var(--space-3xl);
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-3xl);
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 900;
    font-family: var(--font-mono);
    color: var(--gold);
    letter-spacing: -1px;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

@media (max-width: 600px) {
    .stats-bar { gap: var(--space-xl); }
    .stat-value { font-size: 1.5rem; }
}

/* ── Section Headers ─────────────────────── */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-xl);
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-header .see-all {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
    transition: color var(--transition);
}

.section-header .see-all:hover {
    color: var(--red);
}

/* ── Judge Cards (Square Photo) ──────────── */
.judges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--space-lg);
}

.judge-card {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
    border: 1px solid var(--border);
    transition: all 300ms var(--ease);
}

.judge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px var(--border-active);
}

.judge-card:hover .judge-card-photo {
    transform: scale(1.05);
}

.judge-card:hover .judge-card-accent {
    opacity: 1;
}

/* Photo layer */
.judge-card-photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    background-color: var(--bg-elevated);
    transition: transform 600ms var(--ease);
}

/* Red/gold accent line at top */
.judge-card-accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--red), var(--gold));
    z-index: 3;
    opacity: 0;
    transition: opacity var(--transition);
}

/* Gradient overlay for text */
.judge-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(17, 17, 24, 0.92) 0%,
        rgba(17, 17, 24, 0.65) 35%,
        rgba(17, 17, 24, 0.1) 60%,
        transparent 100%
    );
    z-index: 1;
}

/* Content layer */
.judge-card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-xl);
    z-index: 2;
}

.judge-card-name {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 4px;
    color: #fff;
}

.judge-card-court {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: var(--space-sm);
}

.judge-card-headline {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--red-bright);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.judge-card-meta {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.judge-card-meta-item {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.judge-card-meta-item span {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    font-family: var(--font-mono);
    margin-top: 2px;
}

.judge-card-meta-item span.danger { color: var(--red); }
.judge-card-meta-item span.warning { color: var(--gold); }

/* Initials fallback when no photo */
.judge-card-initials {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.06);
    background: var(--bg-card);
    letter-spacing: 4px;
}

/* ── Case Cards (Receipt Style) ──────────── */
.cases-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.case-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--red);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    display: block;
}

.case-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-active);
    border-left-color: var(--red-bright);
}

.case-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: var(--space-md);
    margin-bottom: var(--space-sm);
}

.case-headline {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.4;
}

.case-badge {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-badge.below {
    background: rgba(220, 38, 38, 0.12);
    color: var(--red-bright);
    border: 1px solid var(--border-red);
}

.case-meta {
    display: flex;
    gap: var(--space-lg);
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
}

.case-meta span {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Receipt-style sentencing comparison */
.sentencing-receipt {
    background: var(--bg-primary);
    border: 1px dashed var(--border);
    border-radius: var(--radius-sm);
    padding: var(--space-md);
    font-family: var(--font-mono);
    font-size: 0.8rem;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    padding: 4px 0;
}

.receipt-row .label {
    color: var(--text-muted);
}

.receipt-row .value {
    font-weight: 700;
}

.receipt-row .value.guidelines {
    color: var(--text-secondary);
}

.receipt-row .value.given {
    color: var(--red);
}

.receipt-divider {
    border: none;
    border-top: 1px dashed var(--border);
    margin: 6px 0;
}

/* ── Buttons ─────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    border: none;
    font-family: var(--font-sans);
}

.btn-primary {
    background: var(--red);
    color: white;
}

.btn-primary:hover {
    background: var(--red-bright);
    box-shadow: 0 0 20px var(--red-glow);
}

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

.btn-outline:hover {
    color: var(--text-primary);
    border-color: var(--border-active);
    background: var(--bg-card);
}

/* ── Search & Filters ────────────────────── */
.search-bar {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.search-input {
    flex: 1;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-family: var(--font-sans);
    transition: border-color var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--red);
    box-shadow: 0 0 0 3px var(--red-glow);
}

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

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.chip {
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
}

.chip:hover,
.chip.active {
    background: var(--red-glow);
    border-color: var(--border-red);
    color: var(--red-bright);
}

/* ── Judge Profile Page ──────────────────── */
.profile-header {
    padding: 120px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--space-2xl);
}

.profile-top {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    margin-bottom: var(--space-xl);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--bg-elevated);
    border: 3px solid var(--red);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-muted);
    flex-shrink: 0;
}

.profile-name {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin-bottom: 4px;
}

.profile-court {
    color: var(--text-secondary);
    font-size: 1rem;
}

.profile-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-md);
}

.profile-stats-secondary {
    grid-template-columns: repeat(3, 1fr);
    margin-top: var(--space-md);
}

.profile-stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: center;
}

.profile-stat-card .value {
    font-size: 1.8rem;
    font-weight: 900;
    font-family: var(--font-mono);
    word-break: break-word;
    line-height: 1.2;
}

/* Auto-shrink for long text values */
.profile-stats-secondary .profile-stat-card .value {
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-sans);
    letter-spacing: -0.3px;
}

.profile-stat-card .value.danger { color: var(--red); }
.profile-stat-card .value.warning { color: var(--gold); }

.profile-stat-card .label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 4px;
}

@media (max-width: 768px) {
    .profile-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    .profile-stats-secondary {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .profile-stats,
    .profile-stats-secondary {
        grid-template-columns: 1fr 1fr;
    }
}

/* ── Seat Status — Election Hub ─────────── */
.seat-status-block {
    margin-top: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.seat-status-block.has-election {
    cursor: pointer;
}

.seat-status-block.has-election:hover {
    border-color: var(--border-active);
}

.seat-status-block.has-election.urgency-red {
    border-color: rgba(220, 38, 38, 0.3);
}

.seat-status-block.has-election.urgency-red:hover {
    border-color: var(--red);
}

.seat-status-header {
    padding: var(--space-xl);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-lg);
}

.seat-status-left {
    flex: 1;
}

.seat-status-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: var(--space-lg);
}

.seat-status-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: var(--space-lg);
}

.seat-status-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.seat-status-value {
    font-weight: 600;
    font-size: 0.9rem;
}

/* Election Countdown Badge */
.seat-status-right {
    text-align: center;
    flex-shrink: 0;
}

.election-countdown {
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.25);
    border-radius: var(--radius-md);
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--red);
    white-space: nowrap;
}

.election-countdown.urgency-green {
    background: rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.25);
    color: #16a34a;
}

.election-countdown.urgency-gold {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.25);
    color: var(--gold);
}

.election-countdown.urgency-red {
    background: rgba(220, 38, 38, 0.12);
    border-color: rgba(220, 38, 38, 0.3);
    color: var(--red-bright);
    animation: pulse-red 2s infinite;
}

.seat-status-expand-hint {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 6px;
    letter-spacing: 0.3px;
}

/* Expanded Section */
.seat-status-expanded {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.3s ease;
    padding: 0 var(--space-xl);
    border-top: 0px solid transparent;
}

.seat-status-block.expanded .seat-status-expanded {
    max-height: 800px;
    padding: 0 var(--space-xl) var(--space-xl);
    border-top: 1px solid var(--border);
}

.seat-status-block.expanded .seat-status-expand-hint {
    display: none;
}

/* Election Details */
.election-details {
    padding-top: var(--space-lg);
    font-size: 0.88rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.election-detail-row {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: 6px;
}

.election-detail-row .icon {
    flex-shrink: 0;
}

/* Challengers */
.challengers-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    margin: var(--space-xl) 0 var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--border);
}

.challengers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: var(--space-md);
}

.challenger-card {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    transition: all 0.2s ease;
}

.challenger-card:hover {
    border-color: var(--border-active);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.challenger-card.recommended {
    border-color: rgba(22, 163, 74, 0.3);
    background: rgba(22, 163, 74, 0.03);
}

.challenger-name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.challenger-party {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.challenger-endorsements {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: var(--space-sm);
}

.endorsement-badge {
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 12px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--gold);
    font-weight: 600;
}

.challenger-link {
    display: inline-block;
    margin-top: var(--space-sm);
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-decoration: none;
}

.challenger-link:hover {
    color: var(--red);
}

/* No Challenger Warning */
.no-challenger-warning {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
    margin-top: var(--space-lg);
    padding: var(--space-lg);
    background: rgba(220, 38, 38, 0.05);
    border: 1px solid rgba(220, 38, 38, 0.15);
    border-radius: var(--radius-md);
}

.no-challenger-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.no-challenger-text {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.no-challenger-text strong {
    color: var(--red);
}

/* ── Key Facts — Why This Matters ────────── */
.key-facts-block {
    margin-bottom: var(--space-xl);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 4px solid var(--red);
    border-radius: var(--radius-md);
    padding: var(--space-xl);
}

.key-facts-title {
    font-size: 0.85rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.key-facts-icon {
    font-size: 1.1rem;
}

.key-facts-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.key-fact-item {
    display: flex;
    gap: var(--space-md);
    align-items: flex-start;
}

.key-fact-number {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    background: rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(220, 38, 38, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 800;
    color: var(--red-bright);
}

.key-fact-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-weight: 500;
    padding-top: 3px;
}

/* ── Footer ──────────────────────────────── */
.footer {
    border-top: 1px solid var(--border);
    padding: var(--space-2xl) 0;
    margin-top: var(--space-3xl);
    text-align: center;
}

.footer-brand {
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: var(--space-sm);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-style: italic;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-lg);
    list-style: none;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--red);
}

/* ── Utilities ───────────────────────────── */
.text-red { color: var(--red); }
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mb-lg { margin-bottom: var(--space-lg); }
.mb-xl { margin-bottom: var(--space-xl); }

/* ── Loading States ──────────────────────── */
.skeleton {
    background: linear-gradient(90deg, var(--bg-card) 25%, var(--bg-card-hover) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-pulse 1.5s infinite;
    border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Page fade-in ────────────────────────── */
.page-content {
    animation: fadeIn 400ms var(--ease);
}

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

/* ── Empty State ─────────────────────────── */
.empty-state {
    text-align: center;
    padding: var(--space-3xl) var(--space-xl);
    color: var(--text-muted);
}

.empty-state .icon {
    font-size: 3rem;
    margin-bottom: var(--space-md);
}

.empty-state h3 {
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

/* ── Case Card Enhancements ──────────────── */
.case-badge.type {
    background: rgba(245, 158, 11, 0.15);
    color: var(--gold);
    border: 1px solid rgba(245, 158, 11, 0.25);
    font-size: 0.65rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.case-description {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-top: var(--space-sm);
    padding-top: var(--space-sm);
    border-top: 1px solid var(--border);
}

.case-outcome {
    font-size: 0.8rem;
    color: var(--red-bright);
    margin-top: var(--space-sm);
    font-weight: 500;
}

.case-defendant {
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-top: 4px;
}

.case-reoffense {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--red) 0%, #991b1b 100%);
    padding: 4px 10px;
    border-radius: 4px;
    margin-top: var(--space-sm);
    display: inline-block;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    animation: pulse-red 2s infinite;
}

@keyframes pulse-red {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    50% { box-shadow: 0 0 12px 4px rgba(220, 38, 38, 0.15); }
}

/* ── Case Timeline ──────────────────────── */
.case-timeline {
    position: relative;
    padding-left: 32px;
}

.case-timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(180deg, var(--red) 0%, var(--border) 30%, var(--border) 100%);
}

.timeline-item {
    position: relative;
    margin-bottom: var(--space-xl);
}

.timeline-item:last-child {
    margin-bottom: 0;
}

.timeline-marker {
    position: absolute;
    left: -28px;
    top: 16px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--border-active);
    z-index: 1;
}

.timeline-latest .timeline-marker {
    border-color: var(--red);
    background: var(--red);
    box-shadow: 0 0 12px rgba(220, 38, 38, 0.5);
}

.timeline-date {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.timeline-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.timeline-card:hover {
    border-color: var(--border-red);
    background: var(--bg-card-hover);
    transform: translateX(4px);
    box-shadow: -4px 0 16px rgba(220, 38, 38, 0.08);
}

.timeline-latest .timeline-card {
    border-color: rgba(220, 38, 38, 0.3);
    background: rgba(220, 38, 38, 0.04);
}

.timeline-headline {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.4;
}

.timeline-description {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.65;
    margin-top: var(--space-sm);
}

/* ── Profile Bio Enhancement ──────────── */
.profile-bio-section {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
}

/* ── Mission Blocks ──────────────────────── */
.mission-hero {
    padding-bottom: var(--space-xl);
}

.mission-blocks {
    max-width: 960px;
    margin: var(--space-3xl) auto 0;
    text-align: left;
}

.mission-block {
    position: relative;
    padding: var(--space-xl) var(--space-xl) var(--space-xl) var(--space-3xl);
    margin-bottom: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s;
}

.mission-block:hover {
    border-color: var(--border-active);
}

.mission-block-marker {
    position: absolute;
    left: 16px;
    top: 24px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: 2px solid var(--border-active);
}

.mission-block-title {
    font-size: 1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
}

.mission-block p {
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text-secondary);
}

/* Constitution blockquotes */
.constitution-quote {
    margin: var(--space-lg) 0;
    padding: var(--space-lg) var(--space-xl);
    border-left: 3px solid var(--gold);
    background: rgba(245, 158, 11, 0.04);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    font-size: 0.92rem;
    line-height: 1.8;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.constitution-quote cite {
    display: block;
    margin-top: var(--space-sm);
    font-style: normal;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.5px;
}

.oath-quote {
    border-left-color: var(--text-muted);
    background: rgba(255, 255, 255, 0.02);
}

.oath-quote cite {
    color: var(--text-muted);
}

/* Stat callouts inside mission blocks */
.stat-callouts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin: var(--space-xl) 0;
}

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

.stat-callout {
    text-align: center;
    padding: var(--space-lg) var(--space-md);
    background: rgba(185, 28, 28, 0.04);
    border: 1px solid rgba(185, 28, 28, 0.12);
    border-radius: var(--radius-md);
}

.stat-callout-value {
    font-size: 2rem;
    font-weight: 900;
    color: var(--red);
    line-height: 1;
    margin-bottom: var(--space-xs);
    font-family: var(--font-mono);
}

.stat-callout-label {
    font-size: 0.78rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.stat-callout-source {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    margin-top: var(--space-xs);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

@media (max-width: 768px) {
    .stat-callouts {
        grid-template-columns: 1fr;
    }
}

/* Danger variant */
.mission-block-danger {
    border-color: rgba(220, 38, 38, 0.2);
    background: rgba(220, 38, 38, 0.03);
}

.mission-block-danger .mission-block-marker {
    background: var(--red);
    border-color: var(--red);
    box-shadow: 0 0 10px rgba(220, 38, 38, 0.4);
}

.mission-block-danger .mission-block-title {
    color: var(--red-bright);
}

/* Gold variant */
.mission-block-gold {
    border-color: rgba(245, 158, 11, 0.2);
    background: rgba(245, 158, 11, 0.03);
}

.mission-block-gold .mission-block-marker {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.mission-block-gold .mission-block-title {
    color: var(--gold);
}

/* CTA variant */
.mission-block-cta {
    border-color: rgba(245, 158, 11, 0.3);
    background: linear-gradient(135deg, rgba(220, 38, 38, 0.04) 0%, rgba(245, 158, 11, 0.04) 100%);
}

.mission-block-cta .mission-block-marker {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.5);
    width: 10px;
    height: 10px;
}

.mission-block-cta .mission-block-title {
    color: var(--gold);
    font-size: 1.1rem;
}

.mission-cta-buttons {
    display: flex;
    gap: 12px;
    margin-top: var(--space-lg);
}

/* ── Tyrant of the Week ──────────────────── */
.tyrant-section {
    padding-bottom: 80px;
}

.tyrant-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl, 16px);
    overflow: hidden;
    transition: border-color 0.3s;
}

.tyrant-card:hover {
    border-color: var(--border-red);
}

.tyrant-inner {
    display: flex;
    min-height: 360px;
}

.tyrant-photo-wrap {
    position: relative;
    width: 45%;
    min-height: 360px;
    overflow: hidden;
    flex-shrink: 0;
}

.tyrant-photo {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center top;
    transition: transform 0.5s ease;
}

.tyrant-card:hover .tyrant-photo {
    transform: scale(1.03);
}

.tyrant-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 150%;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    padding: 8px 0;
    transform: translate(-50%, -50%) rotate(-25deg);
    box-shadow: 0 2px 16px rgba(0,0,0,0.6);
    text-align: center;
    white-space: nowrap;
}

.tyrant-info {
    flex: 1;
    padding: var(--space-3xl);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tyrant-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--red-bright);
    margin-bottom: var(--space-md);
}

.tyrant-name {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.1;
}

.tyrant-court {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.tyrant-headline {
    font-size: 0.95rem;
    font-style: italic;
    color: var(--red-bright);
    line-height: 1.5;
    margin-bottom: var(--space-lg);
    padding-left: var(--space-md);
    border-left: 3px solid var(--red);
}

.tyrant-stats {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-xl);
}

.tyrant-stat {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.tyrant-stat strong {
    font-size: 1.1rem;
}

.tyrant-status {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    color: #fff;
    background: var(--red);
    padding: 3px 10px;
    border-radius: 4px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.tyrant-cta {
    align-self: flex-start;
}

/* Responsive tyrant card */
@media (max-width: 768px) {
    .tyrant-inner {
        flex-direction: column;
    }
    .tyrant-photo-wrap {
        width: 100%;
        min-height: 280px;
    }
    .tyrant-info {
        padding: var(--space-xl);
    }
    .tyrant-name {
        font-size: 1.5rem;
    }
    .mission-cta-buttons {
        flex-direction: column;
    }
}

/* ── Judge Card Status Banner ──────────── */
.judge-card-banner {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    width: 150%;
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 50%, #b91c1c 100%);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 6px 0;
    transform: translate(-50%, -50%) rotate(-25deg);
    box-shadow: 0 2px 12px rgba(0,0,0,0.6);
    text-align: center;
    white-space: nowrap;
}

/* ── Profile Avatar Banner ──────────────── */
.profile-avatar.has-banner {
    position: relative;
    overflow: hidden;
}

.profile-avatar-banner {
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #b91c1c 0%, #dc2626 100%);
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.5);
    z-index: 5;
}

/* ── Court Documents ────────────────────── */
.documents-grid {
    display: grid;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.document-card {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-lg) var(--space-xl);
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}

.document-card:hover {
    border-color: var(--gold-dim);
    background: var(--bg-card-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.08);
}

.document-icon {
    font-size: 2rem;
    flex-shrink: 0;
}

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

.document-title {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.document-meta {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
}

.document-action {
    font-size: 1.2rem;
    color: var(--gold);
    flex-shrink: 0;
    transition: transform 0.2s;
}

.document-card:hover .document-action {
    transform: translate(2px, -2px);
}
