@import url("https://fonts.googleapis.com/css2?family=Alegreya:ital,wght@0,600;0,700;0,800;1,600&family=Inter:wght@400;500;600;700&display=swap");

:root {
    --bg: #faf8f5;
    --bg-warm: #f3ede4;
    --bg-dark: #1c1917;
    --text: #292524;
    --text-muted: #78716c;
    --heading: #1c1917;
    --gold: #b8860b;
    --gold-soft: #d4a843;
    --gold-bg: rgba(184, 134, 11, 0.07);
    --accent: #92400e;
    --link: #92400e;
    --card-bg: #ffffff;
    --border: #e7e5e4;
    --border-light: #f5f5f4;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
    --shadow: 0 4px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 12px 40px rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --max-w: 1200px;
    --reader-w: 700px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    font-family: "Inter", -apple-system, "Segoe UI", sans-serif;
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
}

h1, h2, h3, h4 {
    margin: 0;
    color: var(--heading);
    font-family: "Alegreya", Georgia, serif;
    line-height: 1.18;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }

/* ── Shell ──────────────────────────── */

.site-shell {
    width: min(var(--max-w), calc(100% - 32px));
    margin: 0 auto;
}

/* ── Header ─────────────────────────── */

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: var(--bg);
    z-index: 100;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--heading);
    flex-shrink: 0;
}

.site-brand-icon {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: -0.02em;
}

.site-brand-name {
    font-family: "Alegreya", Georgia, serif;
    font-size: 1.2rem;
    font-weight: 800;
}

/* Primary nav (categories) */
.site-nav-primary {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav-primary a {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.88rem;
    padding: 6px 14px;
    border-radius: 999px;
    transition: all 0.15s;
}

.site-nav-primary a:hover {
    color: var(--heading);
    background: var(--border-light);
    text-decoration: none;
}

.site-nav-primary a.active {
    color: var(--heading);
    background: var(--border-light);
    font-weight: 600;
}

/* Right-side controls */
.site-nav-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

/* Language switcher — globe + text */
.lang-switch {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 5px 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-muted);
    background: var(--card-bg);
}

.lang-switch a {
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.lang-switch a:hover {
    color: var(--heading);
    text-decoration: none;
}

.lang-switch a.active {
    color: var(--heading);
    background: var(--bg);
}

.lang-globe {
    font-size: 0.9rem;
    margin-right: 4px;
}

/* Telegram CTA in header */
.header-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 16px;
    border-radius: 999px;
    background: var(--bg-dark);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 600;
    transition: opacity 0.15s;
}

.header-cta:hover {
    opacity: 0.85;
    text-decoration: none;
    color: #fff;
}

/* Mobile hamburger */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--heading);
    font-size: 1.4rem;
    line-height: 1;
}

/* ── Front Page Hero ─────────────────── */

.front-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
    padding: 32px 0 24px;
}

.hero-main {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-warm);
    min-height: 420px;
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.hero-main-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 60%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 32px;
}

.hero-main-overlay .cat-label {
    background: var(--gold);
    color: #fff;
}

.hero-main-overlay h2 {
    color: #fff;
    font-size: clamp(1.6rem, 2.5vw, 2.2rem);
    margin: 10px 0 8px;
}

.hero-main-overlay h2 a { color: #fff; }
.hero-main-overlay h2 a:hover { text-decoration: underline; }

.hero-main-overlay p {
    color: rgba(255,255,255,0.8);
    font-size: 0.92rem;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-main-source {
    margin-top: 10px;
    font-size: 0.8rem;
    color: rgba(255,255,255,0.55);
    display: block;
}

.hero-main-timeline {
    display: block;
    margin-top: 4px;
    font-size: 0.76rem;
    color: rgba(255,255,255,0.72);
}

.hero-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hero-side-card {
    display: flex;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: box-shadow 0.15s;
    flex: 1;
}

.hero-side-card:hover {
    box-shadow: var(--shadow);
}

.hero-side-img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--bg-warm);
}

.hero-side-body h3 {
    font-size: 1rem;
    line-height: 1.3;
    margin-bottom: 6px;
}

.hero-side-body h3 a { color: var(--heading); }
.hero-side-body h3 a:hover { color: var(--gold); text-decoration: none; }

.hero-side-meta {
    font-size: 0.78rem;
    color: var(--text-muted);
    display: block;
}

.hero-side-timeline {
    display: block;
    margin-top: 4px;
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ── Category Label ──────────────────── */

.cat-label {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: var(--bg-warm);
    color: var(--accent);
}

/* ── Section Dividers ────────────────── */

.section-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0 16px;
    border-bottom: 2px solid var(--heading);
    margin-bottom: 24px;
}

.section-bar h2 {
    font-size: 1.3rem;
}

.section-bar a {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.section-bar a:hover {
    color: var(--heading);
}

/* ── Article Cards ───────────────────── */

.article-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 48px;
}

.article-card {
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
}

.article-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.article-card-img {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    background: var(--bg-warm);
}

.article-card-body {
    padding: 18px 20px 20px;
}

.article-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.article-card h3 {
    font-size: 1.12rem;
    line-height: 1.3;
    margin-bottom: 8px;
}

.article-card h3 a { color: var(--heading); }
.article-card h3 a:hover { color: var(--gold); text-decoration: none; }

.article-card-excerpt {
    color: var(--text-muted);
    font-size: 0.88rem;
    line-height: 1.55;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.article-card-source {
    margin-top: 12px;
    font-size: 0.78rem;
    color: var(--text-muted);
}

.article-card-timeline,
.article-card-event {
    margin-top: 6px;
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--text-muted);
}

.article-card-timeline strong,
.article-card-event strong {
    color: var(--heading);
}

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

/* ── Magazine Layout (feed hero) ────── */

.feed-hero {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 24px;
    margin-bottom: 40px;
}

.feed-hero-main {
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: box-shadow 0.2s;
}

.feed-hero-main:hover {
    box-shadow: var(--shadow-lg);
}

.feed-hero-main .article-card-img {
    aspect-ratio: 16/10;
}

.feed-hero-main .article-card-body {
    padding: 24px;
}

.feed-hero-main h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.feed-hero-stack {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.feed-stack-item {
    display: flex;
    gap: 14px;
    padding: 14px;
    border-radius: var(--radius);
    background: var(--card-bg);
    border: 1px solid var(--border);
    transition: box-shadow 0.15s;
}

.feed-stack-item:hover {
    box-shadow: var(--shadow);
}

.feed-stack-img {
    width: 96px;
    min-height: 72px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
    background: var(--bg-warm);
}

.feed-stack-body h3 {
    font-size: 0.95rem;
    line-height: 1.35;
    margin-bottom: 6px;
}

.feed-stack-body h3 a { color: var(--heading); }
.feed-stack-body h3 a:hover { color: var(--gold); text-decoration: none; }

.feed-stack-meta {
    font-size: 0.76rem;
    color: var(--text-muted);
    display: block;
}

.feed-stack-timeline {
    display: block;
    margin-top: 4px;
    font-size: 0.72rem;
    color: var(--text-muted);
}

/* ── Feed Header ─────────────────────── */

.feed-header {
    padding: 32px 0 0;
}

.feed-header h1 {
    font-size: 2rem;
    margin-bottom: 6px;
}

.feed-header p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* ── Pagination ──────────────────────── */

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    padding: 16px 0 60px;
}

.pagination a,
.pagination span {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

.pagination a {
    background: var(--card-bg);
    border: 1px solid var(--border);
    color: var(--heading);
}

.pagination a:hover {
    border-color: var(--gold);
    color: var(--gold);
    text-decoration: none;
}

.pagination .current {
    background: var(--bg-dark);
    color: #fff;
}

/* ── Article Reader ──────────────────── */

.reader-header {
    max-width: var(--reader-w);
    margin: 0 auto;
    padding: 40px 0 24px;
}

.reader-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 24px;
}

.reader-back:hover { color: var(--gold); text-decoration: none; }

.reader-cat {
    margin-bottom: 12px;
}

.reader-header h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 16px;
}

.reader-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.reader-meta-dot::before {
    content: "·";
    margin: 0 2px;
}

/* Language tabs */
.lang-tabs {
    display: flex;
    gap: 6px;
    margin-top: 20px;
}

.lang-tab {
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: all 0.15s;
}

.lang-tab:hover {
    border-color: var(--gold);
    color: var(--gold);
    text-decoration: none;
}

.lang-tab.active {
    background: var(--bg-dark);
    border-color: var(--bg-dark);
    color: #fff;
}

/* Hero image */
.reader-hero-img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0 auto 40px;
    display: block;
}

/* Content body */
.reader-body {
    max-width: var(--reader-w);
    margin: 0 auto;
    padding-bottom: 48px;
}

.reader-standfirst {
    font-size: 1.08rem;
    line-height: 1.75;
    color: var(--text-muted);
    border-left: 3px solid var(--gold);
    padding-left: 18px;
    margin: 28px 0 32px;
}

.reader-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text);
}

.reader-content p {
    margin: 0 0 1.4em;
}

/* Source attribution */
.reader-source-box {
    margin-top: 48px;
    padding: 24px;
    border-radius: var(--radius);
    border-left: 3px solid var(--gold);
    background: var(--bg-warm);
}

.reader-source-box h4 {
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 10px;
}

.source-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--heading);
    margin-bottom: 4px;
}

.source-bias,
.source-factual {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    padding: 8px 18px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--heading);
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: all 0.15s;
}

.source-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    text-decoration: none;
}

/* Share */
.share-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.share-label {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    margin-right: 4px;
}

.share-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-muted);
    border: 1px solid var(--border);
    background: var(--card-bg);
    cursor: pointer;
    transition: all 0.15s;
    text-decoration: none;
}

.share-btn:hover {
    border-color: var(--heading);
    color: var(--heading);
    text-decoration: none;
}

/* Reading progress bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: var(--gold);
    z-index: 200;
    transition: width 0.1s linear;
    width: 0%;
}

/* Related articles */
.related-section {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 48px 0 60px;
    border-top: 1px solid var(--border);
}

.related-section h2 {
    font-size: 1.3rem;
    margin-bottom: 24px;
}

/* ── Footer ──────────────────────────── */

.site-footer {
    background: var(--bg-dark);
    color: rgba(255,255,255,0.7);
    margin-top: 0;
}

.footer-inner {
    width: min(var(--max-w), calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0 40px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 48px;
}

.footer-brand h3 {
    color: #fff;
    font-size: 1.2rem;
    margin-bottom: 12px;
}

.footer-brand p {
    font-size: 0.88rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.55);
}

.footer-col h4 {
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    padding: 4px 0;
}

.footer-col p {
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 0 0 8px;
}

.footer-col p a {
    display: inline;
    padding: 0;
}

.footer-col a:hover {
    color: var(--gold);
    text-decoration: none;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    text-align: center;
    padding: 20px 0;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.35);
    width: min(var(--max-w), calc(100% - 32px));
    margin: 0 auto;
}

/* ── Empty State ─────────────────────── */

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-muted);
}

.empty-state h2 {
    color: var(--heading);
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.empty-state p {
    font-size: 0.95rem;
    margin-bottom: 24px;
}

/* ── Buttons ─────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
}

.btn:hover { text-decoration: none; }

.btn-gold {
    color: #fff;
    background: var(--bg-dark);
}

.btn-gold:hover {
    opacity: 0.85;
    color: #fff;
}

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

.btn-outline:hover {
    border-color: var(--heading);
}

/* ── Responsive ──────────────────────── */

@media (max-width: 900px) {
    .front-hero {
        grid-template-columns: 1fr;
    }

    .hero-main { min-height: 300px; }

    .hero-sidebar {
        flex-direction: row;
        overflow-x: auto;
        gap: 12px;
        padding-bottom: 4px;
    }

    .hero-side-card { min-width: 280px; }

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

    .feed-hero {
        grid-template-columns: 1fr;
    }

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

@media (max-width: 640px) {
    .site-nav-primary { display: none; }
    .mobile-toggle { display: block; }

    .site-nav-primary.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 12px 16px;
        gap: 4px;
        box-shadow: var(--shadow);
    }

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

    .hero-main { min-height: 260px; }

    .hero-sidebar {
        flex-direction: column;
    }

    .hero-side-card { min-width: auto; }

    .header-cta span { display: none; }

    .reader-header h1 { font-size: 1.6rem; }
}


/* ── Skip Navigation (Accessibility) ── */

.skip-nav {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 999;
    padding: 12px 24px;
    background: var(--bg-dark);
    color: #fff;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: top 0.2s;
}

.skip-nav:focus {
    top: 12px;
}

/* ── About Page ─────────────────────── */

.about-page {
    max-width: var(--reader-w);
    margin: 0 auto;
    padding: 40px 0 60px;
}

.about-section {
    margin-bottom: 48px;
}

.about-section h1 {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    margin-bottom: 20px;
}

.about-section h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    padding-top: 24px;
    border-top: 2px solid var(--heading);
}

.about-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 1.2em;
}

.about-note {
    font-size: 0.9rem !important;
    color: var(--text-muted) !important;
    font-style: italic;
    margin-top: 24px !important;
}

/* Steps */
.about-steps {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

.about-step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.about-step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    color: var(--gold);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Alegreya", Georgia, serif;
    font-weight: 800;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.about-step-body h3 {
    font-size: 1.1rem;
    margin-bottom: 6px;
}

.about-step-body p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
}

/* Source grid */
.source-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin: 24px 0;
}

.source-item {
    padding: 16px;
    border-radius: var(--radius-sm);
    background: var(--card-bg);
    border: 1px solid var(--border);
}

.source-item strong {
    display: block;
    font-size: 0.95rem;
    color: var(--heading);
    margin-bottom: 4px;
}

.source-item span {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ── 404 Error Page ─────────────────── */

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

.error-code {
    font-family: "Alegreya", Georgia, serif;
    font-size: clamp(5rem, 12vw, 10rem);
    font-weight: 800;
    color: var(--bg-warm);
    line-height: 1;
    margin-bottom: 8px;
}

.error-page h1 {
    font-size: 1.8rem;
    margin-bottom: 12px;
}

.error-page p {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 32px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .about-step {
        flex-direction: column;
        gap: 12px;
    }

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

/* ── Redesigned Article Reader ─────── */

.reader-hero-wrap {
    position: relative;
    width: 100%;
    max-height: 520px;
    overflow: hidden;
    background: var(--bg-dark);
}

.reader-hero-wrap .reader-hero-img {
    width: 100%;
    height: 520px;
    object-fit: cover;
    display: block;
    border-radius: 0;
    margin: 0;
    filter: brightness(0.65);
}

.reader-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.82) 0%, rgba(0,0,0,0.15) 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 48px;
}

.reader-hero-overlay .reader-back {
    position: absolute;
    top: 24px;
    left: 24px;
    color: rgba(255,255,255,0.7);
    font-size: 0.85rem;
    font-weight: 500;
    background: rgba(0,0,0,0.35);
    padding: 6px 14px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.reader-hero-overlay .reader-back:hover {
    color: #fff;
    text-decoration: none;
}

.cat-label--hero {
    background: var(--gold);
    color: #fff;
    font-size: 0.72rem;
    padding: 4px 12px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 12px;
    width: fit-content;
}

.reader-hero-title {
    color: #fff;
    font-size: clamp(1.6rem, 3.5vw, 2.8rem);
    line-height: 1.15;
    margin-bottom: 12px;
    max-width: 800px;
}

.reader-hero-overlay .reader-meta {
    color: rgba(255,255,255,0.6);
    font-size: 0.85rem;
}

/* ── Source Card (Stage 3) ─────────── */

.source-card {
    margin-top: 48px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    overflow: hidden;
    background: var(--card-bg);
}

.source-card-header {
    padding: 16px 24px;
    background: var(--bg-warm);
    border-bottom: 1px solid var(--border);
}

.source-card-header h4 {
    font-family: "Inter", sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin: 0;
}

.source-card-body {
    padding: 24px;
}

.source-card-name {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.source-icon {
    font-size: 1.4rem;
}

.source-name-text {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--heading);
}

.source-timeline {
    margin-bottom: 18px;
}

.source-timeline p {
    margin: 0 0 8px;
    color: var(--text);
    font-size: 0.94rem;
    line-height: 1.6;
}

.source-timeline strong {
    color: var(--heading);
}

/* ── Bias Badges ───────────────────── */

.bias-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.bias-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    border: 1px solid var(--border);
    background: var(--card-bg);
}

/* Bias orientation colors */
.bias-badge--left { border-color: #3b82f6; color: #1d4ed8; background: #eff6ff; }
.bias-badge--left-center { border-color: #60a5fa; color: #2563eb; background: #eff6ff; }
.bias-badge--center { border-color: #a3a3a3; color: #525252; background: #f5f5f5; }
.bias-badge--right-center { border-color: #f97316; color: #c2410c; background: #fff7ed; }
.bias-badge--right { border-color: #ef4444; color: #b91c1c; background: #fef2f2; }
.bias-badge--pro-science { border-color: #10b981; color: #047857; background: #ecfdf5; }
.bias-badge--conspiracy-pseudoscience { border-color: #f59e0b; color: #92400e; background: #fffbeb; }
.bias-badge--questionable { border-color: #ef4444; color: #b91c1c; background: #fef2f2; }
.bias-badge--satire { border-color: #8b5cf6; color: #6d28d9; background: #f5f3ff; }

/* Factuality colors */
.bias-badge--fact-very-high { border-color: #10b981; color: #047857; background: #ecfdf5; }
.bias-badge--fact-high { border-color: #34d399; color: #059669; background: #ecfdf5; }
.bias-badge--fact-mostly-factual { border-color: #60a5fa; color: #2563eb; background: #eff6ff; }
.bias-badge--fact-mixed { border-color: #f59e0b; color: #92400e; background: #fffbeb; }
.bias-badge--fact-low { border-color: #ef4444; color: #b91c1c; background: #fef2f2; }
.bias-badge--fact-very-low { border-color: #dc2626; color: #991b1b; background: #fef2f2; }

/* Credibility colors */
.bias-badge--cred-high-credibility { border-color: #10b981; color: #047857; background: #ecfdf5; }
.bias-badge--cred-medium-credibility { border-color: #f59e0b; color: #92400e; background: #fffbeb; }
.bias-badge--cred-low-credibility { border-color: #ef4444; color: #b91c1c; background: #fef2f2; }

.bias-disclaimer {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
    margin-bottom: 16px;
}

.source-original-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--heading);
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: all 0.15s;
}

.source-original-link:hover {
    border-color: var(--gold);
    color: var(--gold);
    text-decoration: none;
}

/* ── CTA Banner ────────────────────── */

.cta-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 32px 40px;
    margin: 16px 0 48px;
    border-radius: var(--radius);
    background: var(--bg-dark);
    color: #fff;
}

.cta-banner-text h3 {
    color: #fff;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.cta-banner-text p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

.cta-banner .btn-gold {
    background: var(--gold);
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}

.cta-banner .btn-gold:hover {
    opacity: 0.9;
}

/* ── Category Label Variants ───────── */

.cat-label--sm {
    font-size: 0.62rem;
    padding: 2px 8px;
}

.cat-label--xs {
    font-size: 0.58rem;
    padding: 2px 6px;
}

/* ── Responsive: Reader Hero ───────── */

@media (max-width: 900px) {
    .reader-hero-wrap .reader-hero-img {
        height: 380px;
    }

    .reader-hero-overlay {
        padding: 32px 24px;
    }

    .reader-hero-title {
        font-size: clamp(1.4rem, 4vw, 2rem);
    }
}

@media (max-width: 640px) {
    .reader-hero-wrap .reader-hero-img {
        height: 280px;
    }

    .reader-hero-overlay {
        padding: 24px 16px;
    }

    .reader-hero-overlay .reader-back {
        top: 12px;
        left: 12px;
    }

    .source-card-body {
        padding: 16px;
    }

    .bias-badges {
        flex-direction: column;
    }

    .cta-banner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }

    .share-row {
        justify-content: center;
    }
}
