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

:root {
    /* Dark Crime Theme Colors — Refined Palette */
    --bg-black: #0a0a0a;
    --bg-dark: #111111;
    --bg-card: #161616;
    --bg-elevated: #1e1c1b;

    /* Crimson Accents — muted, sophisticated (Zodiac-poster, not slasher-film) */
    --crimson: #9f1239;          /* rose-900 — primary accent */
    --crimson-mid: #be123c;      /* rose-700 — hover/active */
    --crimson-dark: #7f0f2e;     /* dark variant */
    --crimson-glow: rgba(159, 18, 57, 0.25);
    --crimson-tint: rgba(159, 18, 57, 0.06);

    /* Warm amber for BREAKING / status badges */
    --amber: #d97706;
    --amber-tint: rgba(217, 119, 6, 0.12);

    /* Status badge colors */
    --status-breaking: #d97706;     /* amber */
    --status-developing: #2563eb;   /* blue */
    --status-cold-case: #6b7280;    /* grey */
    --status-verdict: #16a34a;      /* green */

    /* Topic accent colors — subtle top-border tints */
    --topic-homicide: #9f1239;
    --topic-organized-crime: #7c3aed;
    --topic-white-collar: #0369a1;
    --topic-cybercrime: #0e7490;
    --topic-cold-cases: #4b5563;
    --topic-missing-persons: #b45309;
    --topic-trials: #15803d;
    --topic-default: #9f1239;

    /* Text Colors */
    --text-primary: #f0ece8;        /* warm white */
    --text-secondary: #a39e99;      /* warm grey */
    --text-muted: #6b6560;          /* muted warm */

    /* Border Colors */
    --border-subtle: #1f1d1c;
    --border-medium: #2e2b29;
    --border-crimson: #9f1239;

    /* Typography */
    --serif: 'Crimson Pro', Georgia, serif;
    --sans: 'Inter', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', 'Courier New', monospace;

    /* Layout */
    --container-width: 1200px;
    --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ═══════════════════════════════════════
   BASE STYLES
   ═══════════════════════════════════════ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-black);
    color: var(--text-primary);
    font-family: var(--sans);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    position: relative;
}

/* Very subtle warm noise texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noise"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="4" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noise)" opacity="0.03"/%3E%3C/svg%3E');
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

a {
    transition: var(--transition);
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ═══════════════════════════════════════
   AVATAR STYLES
   ═══════════════════════════════════════ */

img.avatar-photo {
    border-radius: 50%;
    object-fit: cover;
    object-position: center top;
    border: 2px solid var(--border-medium);
}

img.avatar-photo.byline-avatar { width: 48px; height: 48px; }
img.avatar-photo.card-byline-avatar { width: 32px; height: 32px; }
img.avatar-photo.reporter-avatar { width: 64px; height: 64px; }
img.avatar-photo.reporter-avatar.large { width: 96px; height: 96px; }

/* ═══════════════════════════════════════
   TOP BAR
   ═══════════════════════════════════════ */

.top-bar {
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-subtle);
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar span {
    color: var(--text-muted);
}

.ai-badge {
    background: transparent;
    border: 1px solid var(--border-medium);
    color: var(--text-muted);
    padding: 3px 10px;
    border-radius: 2px;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   MASTHEAD / HEADER — Clean Wordmark
   ═══════════════════════════════════════ */

.masthead {
    text-align: center;
    padding: 28px 0 20px;
    background: var(--bg-dark);
    position: relative;
}

/* Thin red rule above wordmark */
.masthead::before {
    content: '';
    display: block;
    width: 80px;
    height: 2px;
    background: var(--crimson);
    margin: 0 auto 20px;
}

/* Thin rule at bottom of entire masthead area (through border-bottom on nav below) */
.masthead-wordmark {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
    line-height: 1;
    margin-bottom: 6px;
}

.masthead-wordmark a {
    display: inline-flex;
    align-items: baseline;
    gap: 0;
}

.masthead-crime {
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--text-primary);
    line-height: 1;
}

.masthead-bytes {
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 400;
    letter-spacing: -1px;
    color: var(--crimson);
    line-height: 1;
}

.masthead-wordmark a:hover .masthead-crime {
    color: var(--crimson-mid);
}

.masthead-sub {
    font-family: var(--mono);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 5px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* Thin red rule below subtitle */
.masthead::after {
    content: '';
    display: block;
    width: 80px;
    height: 1px;
    background: var(--crimson);
    margin: 14px auto 0;
    opacity: 0.5;
}

/* Legacy elements (hidden) */
.masthead-top { display: none; }
.masthead-icon { display: none; }
.masthead-rule { display: none; }

/* Keep old .masthead-title for any pages that use it */
.masthead-title { display: none; }

/* ═══════════════════════════════════════
   NAVIGATION
   ═══════════════════════════════════════ */

nav {
    background: var(--bg-dark);
    border-bottom: 2px solid var(--crimson);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
}

nav .container {
    display: flex;
    align-items: center;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

nav .container::-webkit-scrollbar {
    display: none;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    white-space: nowrap;
    flex: 1;
}

.nav-links a {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-secondary);
    padding: 14px 18px;
    display: block;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    flex-shrink: 0;
    transition: var(--transition);
}

.nav-links a:hover {
    color: var(--text-primary);
    background: rgba(159, 18, 57, 0.04);
    border-bottom-color: var(--crimson-mid);
}

.nav-links a.active {
    color: var(--text-primary);
    border-bottom-color: var(--crimson);
}

/* Search link pinned to right */
.nav-search {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 14px 18px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: var(--transition);
    border-left: 1px solid var(--border-subtle);
    margin-left: auto;
}

.nav-search:hover {
    color: var(--crimson-mid);
}

/* ═══════════════════════════════════════
   STATUS BADGES
   ═══════════════════════════════════════ */

.status-badge {
    display: inline-block;
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 3px 8px;
    border-radius: 2px;
    margin-bottom: 8px;
    line-height: 1;
}

.status-breaking {
    background: var(--amber-tint);
    color: var(--amber);
    border: 1px solid rgba(217, 119, 6, 0.3);
}

.status-developing {
    background: rgba(37, 99, 235, 0.1);
    color: #60a5fa;
    border: 1px solid rgba(37, 99, 235, 0.25);
}

.status-cold-case {
    background: rgba(107, 114, 128, 0.1);
    color: #9ca3af;
    border: 1px solid rgba(107, 114, 128, 0.25);
}

.status-verdict {
    background: rgba(22, 163, 74, 0.1);
    color: #4ade80;
    border: 1px solid rgba(22, 163, 74, 0.25);
}

/* ═══════════════════════════════════════
   HERO / HEADLINE SECTION
   ═══════════════════════════════════════ */

.headline {
    padding: 56px 0 52px;
    background: linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-black) 60%, rgba(159, 18, 57, 0.04) 100%);
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 56px;
    position: relative;
}

.headline::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--crimson), transparent);
    opacity: 0.4;
}

.headline-layout {
    max-width: 860px;
    margin: 0 auto;
}

.hl-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    color: var(--crimson-mid);
    text-transform: uppercase;
    letter-spacing: 2.5px;
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 12px;
    border: 1px solid var(--crimson-dark);
    background: var(--crimson-tint);
}

.headline-main h2 {
    font-family: var(--serif);
    font-size: 62px;
    font-weight: 900;
    line-height: 1.05;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.headline-main h2 a {
    color: var(--text-primary);
    transition: var(--transition);
}

.headline-main h2 a:hover {
    color: var(--crimson-mid);
}

.headline-main .lede {
    font-family: var(--serif);
    font-size: 21px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.byline {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
}

.byline-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--border-medium);
}

.byline .name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    display: block;
}

.byline .role {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
}

.byline .meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
}

/* ═══════════════════════════════════════
   HOMEPAGE LAYOUT — Editorial Grid
   ═══════════════════════════════════════ */

.homepage-content {
    margin-bottom: 72px;
}

/* Top editorial row: 2/3 + 1/3 split */
.editorial-row {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2px;
    margin-bottom: 2px;
    background: var(--border-subtle);
}

/* Below: 2-column grid */
.article-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    background: var(--border-subtle);
}

/* Wrap editorial row + grid together */
.editorial-board {
    background: var(--border-subtle);
    border: 1px solid var(--border-subtle);
    overflow: hidden;
}

/* ═══════════════════════════════════════
   ARTICLE CARDS — Redesigned
   ═══════════════════════════════════════ */

.article-card {
    background: var(--bg-card);
    padding: 24px 26px 22px;
    display: block;
    transition: background 0.2s ease;
    position: relative;
    overflow: hidden;
    border-top: 3px solid var(--topic-default);
}

/* Topic-specific top border colors */
.article-card[data-topic="homicide"]       { border-top-color: var(--topic-homicide); }
.article-card[data-topic="organized-crime"]{ border-top-color: var(--topic-organized-crime); }
.article-card[data-topic="white-collar"]   { border-top-color: var(--topic-white-collar); }
.article-card[data-topic="cybercrime"]     { border-top-color: var(--topic-cybercrime); }
.article-card[data-topic="cold-cases"]     { border-top-color: var(--topic-cold-cases); }
.article-card[data-topic="missing-persons"]{ border-top-color: var(--topic-missing-persons); }
.article-card[data-topic="trials"]         { border-top-color: var(--topic-trials); }

.article-card:hover {
    background: var(--bg-elevated);
}

/* Feature card (large, left 2/3 column) */
.article-card.card-feature {
    padding: 32px 32px 28px;
}

.article-card.card-feature h3 {
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.2;
    margin-bottom: 14px;
}

.article-card.card-feature p {
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 18px;
    display: block;
}

/* Sidebar card (smaller, right 1/3 column) */
.article-card.card-sidebar {
    padding: 24px 22px 20px;
    border-left: none;
}

.article-card.card-sidebar p {
    display: none; /* hide excerpt on small sidebar card */
}

.card-topic {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    margin-bottom: 10px;
}

.article-card h3 {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: color 0.2s ease;
}

.article-card:hover h3 {
    color: var(--text-primary);
}

.article-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.card-byline {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle);
    margin-top: auto;
}

.card-byline-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    border: 1px solid var(--border-medium);
    flex-shrink: 0;
}

.card-byline .name {
    font-weight: 600;
    color: var(--text-secondary);
}

/* ═══════════════════════════════════════
   DEVELOPING STORIES SIDEBAR / SECTION
   ═══════════════════════════════════════ */

.developing-section {
    margin-bottom: 72px;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-subtle);
}

.section-label {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.section-accent {
    width: 32px;
    height: 2px;
    background: var(--crimson);
    flex-shrink: 0;
}

.developing-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.developing-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition);
}

.developing-item:last-child {
    border-bottom: none;
}

.developing-number {
    font-family: var(--mono);
    font-size: 20px;
    font-weight: 600;
    color: var(--border-medium);
    line-height: 1;
    flex-shrink: 0;
    padding-top: 2px;
    min-width: 28px;
}

.developing-item:hover .developing-number {
    color: var(--crimson);
}

.developing-content h4 {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--text-primary);
    margin-bottom: 4px;
    transition: color 0.2s;
}

.developing-item:hover .developing-content h4 {
    color: var(--crimson-mid);
}

.developing-meta {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════
   REPORTERS SECTION (footer only now)
   ═══════════════════════════════════════ */

.reporters-section {
    margin-bottom: 64px;
    padding: 48px 0;
    background: var(--bg-dark);
}

.section-title {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 28px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--crimson);
}

.reporters-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.reporter-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: var(--transition);
}

.reporter-card:hover {
    border-color: var(--crimson);
    background: var(--bg-elevated);
    transform: translateX(2px);
}

.reporter-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    font-family: var(--mono);
    font-size: 16px;
    font-weight: 700;
    flex-shrink: 0;
    border: 2px solid var(--border-medium);
}

.reporter-avatar.large {
    width: 96px;
    height: 96px;
    font-size: 28px;
}

.r-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-primary);
    display: block;
    margin-bottom: 4px;
}

.r-beat {
    font-family: var(--mono);
    font-size: 10px;
    color: var(--crimson-mid);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
}

/* ═══════════════════════════════════════
   ARTICLE PAGE — Improved Typography
   ═══════════════════════════════════════ */

.article-page {
    padding: 0 0 64px;
}

/* Topic accent bar at top of article */
.article-topic-bar {
    height: 4px;
    background: var(--crimson);
    width: 100%;
    margin-bottom: 0;
}

.article-topic-bar[data-topic="homicide"]        { background: var(--topic-homicide); }
.article-topic-bar[data-topic="organized-crime"] { background: var(--topic-organized-crime); }
.article-topic-bar[data-topic="white-collar"]    { background: var(--topic-white-collar); }
.article-topic-bar[data-topic="cybercrime"]      { background: var(--topic-cybercrime); }
.article-topic-bar[data-topic="cold-cases"]      { background: var(--topic-cold-cases); }
.article-topic-bar[data-topic="missing-persons"] { background: var(--topic-missing-persons); }
.article-topic-bar[data-topic="trials"]          { background: var(--topic-trials); }

.article-header-section {
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-black) 100%);
    padding: 48px 0 40px;
    margin-bottom: 48px;
    border-bottom: 1px solid var(--border-subtle);
}

.article-container {
    max-width: 780px;
}

.article-header {
    margin-bottom: 0;
}

.article-topic {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 600;
    color: var(--crimson-mid);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: inline-block;
    margin-bottom: 18px;
    padding: 5px 12px;
    border: 1px solid var(--crimson-dark);
    background: var(--crimson-tint);
    transition: var(--transition);
}

.article-topic:hover {
    color: var(--text-primary);
    background: rgba(159, 18, 57, 0.12);
}

.article-headline {
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
    color: var(--text-primary);
}

.article-subhead {
    font-family: var(--serif);
    font-size: 21px;
    line-height: 1.55;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.article-byline {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
}

.byline-name {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-primary);
    display: block;
}

.byline-name:hover {
    color: var(--crimson-mid);
}

.byline-role {
    font-size: 13px;
    color: var(--text-muted);
    display: block;
}

.byline-date,
.byline-time {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    display: block;
}

/* Read time — more prominent */
.byline-readtime {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--crimson-mid);
    display: block;
    margin-top: 2px;
    letter-spacing: 0.5px;
}

.article-body {
    font-family: var(--serif);
    font-size: 20px;
    line-height: 1.85;
    margin-bottom: 64px;
    color: var(--text-primary);
}

.article-body h2 {
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 700;
    margin-top: 52px;
    margin-bottom: 20px;
    color: var(--text-primary);
    border-left: 3px solid var(--crimson);
    padding-left: 16px;
}

.article-body p {
    margin-bottom: 26px;
}

/* Pull quote styling */
.article-body blockquote,
.pull-quote {
    margin: 40px 0;
    padding: 24px 32px;
    border-left: 4px solid var(--crimson);
    background: var(--bg-dark);
    font-size: 22px;
    font-style: italic;
    line-height: 1.6;
    color: var(--text-primary);
    position: relative;
}

.article-body blockquote::before,
.pull-quote::before {
    content: '\201C';
    font-size: 64px;
    line-height: 1;
    color: var(--crimson);
    opacity: 0.4;
    position: absolute;
    top: 8px;
    left: 12px;
    font-family: var(--serif);
}

.article-share {
    margin-bottom: 64px;
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-left: 3px solid var(--crimson);
}

.article-share h3 {
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    color: var(--text-muted);
    font-family: var(--mono);
}

.share-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.share-btn {
    padding: 8px 18px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid var(--border-medium);
    transition: var(--transition);
}

.share-btn:hover {
    background: var(--crimson);
    border-color: var(--crimson);
    color: var(--text-primary);
}

.related-articles {
    margin-top: 64px;
    padding-top: 32px;
    border-top: 2px solid var(--border-subtle);
}

.related-articles h3 {
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2px;
    background: var(--border-subtle);
}

.related-article-card {
    padding: 20px;
    background: var(--bg-card);
    display: block;
    transition: var(--transition);
    border-top: 3px solid var(--topic-default);
}

.related-article-card[data-topic="homicide"]        { border-top-color: var(--topic-homicide); }
.related-article-card[data-topic="organized-crime"] { border-top-color: var(--topic-organized-crime); }
.related-article-card[data-topic="white-collar"]    { border-top-color: var(--topic-white-collar); }
.related-article-card[data-topic="cybercrime"]      { border-top-color: var(--topic-cybercrime); }
.related-article-card[data-topic="cold-cases"]      { border-top-color: var(--topic-cold-cases); }
.related-article-card[data-topic="missing-persons"] { border-top-color: var(--topic-missing-persons); }
.related-article-card[data-topic="trials"]          { border-top-color: var(--topic-trials); }

.related-article-card:hover {
    background: var(--bg-elevated);
}

.related-topic {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    display: block;
    margin-bottom: 8px;
}

.related-article-card h4 {
    font-family: var(--serif);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 12px;
    color: var(--text-primary);
    transition: color 0.2s;
}

.related-article-card:hover h4 {
    color: var(--crimson-mid);
}

.related-meta {
    font-size: 12px;
    color: var(--text-muted);
    font-family: var(--mono);
}

/* ═══════════════════════════════════════
   TOPIC PAGE
   ═══════════════════════════════════════ */

.topic-page {
    padding: 64px 0;
}

.topic-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--crimson);
}

.topic-title {
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.topic-description {
    font-size: 20px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.topic-meta {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════
   REPORTER PAGE
   ═══════════════════════════════════════ */

.reporter-page {
    padding: 64px 0;
}

.reporter-header {
    text-align: center;
    margin-bottom: 64px;
    padding-bottom: 48px;
    border-bottom: 2px solid var(--border-subtle);
}

.reporter-header .reporter-avatar {
    margin: 0 auto 24px;
}

.reporter-name {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.reporter-role {
    font-size: 14px;
    color: var(--crimson-mid);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: var(--mono);
}

.reporter-bio {
    font-size: 18px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 700px;
    margin: 0 auto;
}

.reporter-articles h2 {
    font-family: var(--serif);
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.article-count {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 32px;
}

/* ═══════════════════════════════════════
   SEARCH PAGE
   ═══════════════════════════════════════ */

.search-page {
    padding: 64px 0;
}

.search-header {
    margin-bottom: 48px;
}

.search-header h1 {
    font-family: var(--serif);
    font-size: 48px;
    font-weight: 900;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.search-box {
    max-width: 700px;
}

#search-input {
    width: 100%;
    padding: 14px 20px;
    font-size: 16px;
    font-family: var(--sans);
    background: var(--bg-card);
    border: 2px solid var(--border-medium);
    border-radius: 2px;
    color: var(--text-primary);
    transition: var(--transition);
}

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

#search-input:focus {
    outline: none;
    border-color: var(--crimson);
    background: var(--bg-elevated);
}

.results-count {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* ═══════════════════════════════════════
   STATIC PAGES (ABOUT, LEGAL, ERROR)
   ═══════════════════════════════════════ */

.about-page,
.legal-page,
.error-page {
    padding: 64px 0;
}

.page-header {
    margin-bottom: 48px;
    padding-bottom: 32px;
    border-bottom: 2px solid var(--crimson);
}

.page-header h1 {
    font-family: var(--serif);
    font-size: 52px;
    font-weight: 900;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.last-updated {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--text-muted);
}

.about-content,
.legal-content {
    max-width: 800px;
}

.about-section,
.legal-content section {
    margin-bottom: 40px;
}

.about-section h2,
.legal-content h2 {
    font-family: var(--serif);
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.about-section p,
.legal-content p {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.error-page {
    text-align: center;
    padding: 120px 0;
}

.error-code {
    font-size: 140px;
    font-weight: 900;
    color: var(--crimson);
    line-height: 1;
    margin-bottom: 24px;
    font-family: var(--serif);
}

.error-title {
    font-family: var(--serif);
    font-size: 42px;
    font-weight: 900;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.error-message {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.btn-home {
    display: inline-block;
    padding: 12px 32px;
    background: var(--crimson);
    color: var(--text-primary);
    font-weight: 700;
    font-family: var(--mono);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 12px;
    transition: var(--transition);
}

.btn-home:hover {
    background: var(--crimson-mid);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════
   FOOTER — Tighter, Cleaner
   ═══════════════════════════════════════ */

footer {
    background: var(--bg-dark);
    color: var(--text-secondary);
    padding: 48px 0 24px;
    margin-top: 80px;
    border-top: 2px solid var(--crimson);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 36px;
}

.footer-logo {
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 900;
    color: var(--text-primary);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.footer-logo span {
    font-weight: 400;
    color: var(--crimson-mid);
}

.footer-brand p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Reporters mini-list in footer */
.footer-reporters {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.footer-reporter-tag {
    font-family: var(--mono);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    border: 1px solid var(--border-subtle);
    padding: 3px 8px;
    transition: var(--transition);
}

.footer-reporter-tag:hover {
    color: var(--crimson-mid);
    border-color: var(--crimson-dark);
}

.footer-nav h4 {
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 14px;
}

.footer-nav a {
    display: block;
    font-size: 14px;
    margin-bottom: 10px;
    color: var(--text-secondary);
    transition: var(--transition);
}

.footer-nav a:hover {
    color: var(--crimson-mid);
    padding-left: 4px;
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
}

.footer-bottom p {
    margin-bottom: 6px;
}

.footer-ai-disclosure {
    margin-top: 10px;
    opacity: 0.65;
    font-size: 11px;
    font-family: var(--mono);
}

.footer-ai-disclosure a {
    text-decoration: underline;
    color: var(--crimson-mid);
}

.footer-ai-disclosure a:hover {
    color: var(--text-primary);
}

/* ═══════════════════════════════════════
   HERO IMAGES
   ═══════════════════════════════════════ */

/* Article card image (bleeds to card edges) */
.card-image {
    margin: -24px -26px 16px -26px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

/* Feature card image bleed adjustment */
.article-card.card-feature .card-image {
    margin: -32px -32px 18px -32px;
}

/* Article page hero image */
.article-hero-image-wrap {
    width: 100%;
    max-height: 500px;
    overflow: hidden;
    border-bottom: 3px solid var(--crimson, #9f1239);
}

.headline-hero-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    display: block;
}

/* Featured article hero on homepage */
.featured-hero-wrap {
    margin-bottom: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border-bottom: 3px solid var(--crimson, #9f1239);
}

.featured-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.featured-hero-wrap:hover .featured-hero-image {
    transform: scale(1.02);
}

/* ═══════════════════════════════════════
   RESPONSIVE DESIGN
   ═══════════════════════════════════════ */

@media (max-width: 1024px) {
    .editorial-row {
        grid-template-columns: 3fr 2fr;
    }

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

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

@media (max-width: 768px) {
    .masthead-crime,
    .masthead-bytes {
        font-size: 38px;
    }

    .headline-main h2 {
        font-size: 38px;
    }

    .article-headline {
        font-size: 34px;
    }

    .editorial-row {
        grid-template-columns: 1fr;
    }

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

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

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

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .nav-links {
        justify-content: flex-start;
    }

    .article-card.card-sidebar p {
        display: block; /* show excerpt on mobile since it stacks */
    }
}

@media (max-width: 480px) {
    .masthead-crime,
    .masthead-bytes {
        font-size: 30px;
    }

    .headline-main h2 {
        font-size: 28px;
    }

    .article-headline {
        font-size: 28px;
    }

    .topic-title,
    .page-header h1 {
        font-size: 36px;
    }

    .article-body {
        font-size: 18px;
    }
}
