/* ═══════════════════════════════════════════════════════
   PANGEA EDITORIAL THEME - Shared Article Styles
   CI: Outfit body, Instrument Serif quotes, Outfit 600 labels
   Palette: White bg, Muted Blue accent, no Lora, no FT colors
   ═══════════════════════════════════════════════════════ */

/* ─── LIGHT THEME OVERRIDES ─── */

body:has(.ft-article) {
    background: #FFFFFF !important;
    color: #1A1A1A !important;
}

body:has(.ft-article) .ambient-glow {
    display: none !important;
}

/* ─── NAV: not fixed, scrolls away, fully opaque ─── */
body:has(.ft-article) {
    --topbar-border: transparent;
}
body:has(.ft-article) .topbar {
    position: absolute !important;
    background: var(--bg-dark, #0D1117) !important;
}

/* ─── FOOTER OVERRIDE ─── */
body:has(.ft-article) footer {
    background: var(--bg-dark, #0D1117) !important;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
body:has(.ft-article) footer.ft-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ─── HERO ─── */
.ft-article-hero {
    padding-top: 0;
    margin-top: 0;
    position: relative;
}
.ft-article-hero::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    height: 5px;
    background: var(--bg-dark, #0D1117);
    z-index: 1;
}


.ft-hero-image {
    position: relative;
    background-size: cover;
    background-position: center;
    min-height: 480px;
}

.ft-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(255,255,255,0.97) 0%,
        rgba(255,255,255,0.85) 35%,
        rgba(255,255,255,0.55) 60%,
        rgba(255,255,255,0.25) 80%,
        transparent 100%
    );
}

.ft-hero-content {
    position: relative;
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px 24px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 480px;
}

.ft-hero-category {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent, #6B8EAD);
    margin-bottom: 16px;
    font-weight: 700;
}

.ft-hero-content h1 {
    font-family: var(--heading, 'Outfit', sans-serif);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: var(--text, #1A1A1A);
    margin-bottom: 24px;
}

.ft-hero-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--text-muted, #888888);
    margin-bottom: 0;
}

.ft-meta-sep {
    margin: 0 10px;
    opacity: 0.5;
}

/* ─── AUTHOR BYLINE ─── */
.ft-author-byline {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    cursor: pointer;
    margin-top: 14px;
}

.ft-byline-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: none;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    flex-shrink: 0;
    transition: box-shadow 0.25s ease;
}

.ft-author-byline:hover .ft-byline-photo {
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
}

.ft-byline-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ft-byline-label {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 8px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(26,26,26,0.35);
}

.ft-byline-name {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 11px;
    font-weight: 700;
    color: var(--text, #1A1A1A);
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

/* ─── AUTHOR POPOVER ─── */
.ft-byline-popover {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    width: 300px;
    background: var(--bg-dark-secondary, #253749);
    border-radius: 3px;
    padding: 22px;
    z-index: 200;
    box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

.ft-byline-popover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 22px;
    border: 7px solid transparent;
    border-bottom-color: var(--bg-dark-secondary, #253749);
}

.ft-author-byline.ft-byline-active .ft-byline-popover {
    display: block;
}

.ft-popover-name {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    display: block;
    margin-bottom: 2px;
}

.ft-popover-location {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 9px;
    letter-spacing: 0.06em;
    color: rgba(255,255,255,0.4);
    display: block;
    margin-bottom: 12px;
}

.ft-popover-bio {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

.ft-popover-link {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    transition: opacity 0.2s ease;
}

.ft-popover-link:hover {
    opacity: 0.7;
}

/* ─── ARTICLE FIGURES ─── */
.ft-figure {
    margin: 32px 0;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
}

.ft-figure img {
    width: 100%;
    height: auto;
    display: block;
}

.ft-figure figcaption {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 10px;
    letter-spacing: 0.04em;
    line-height: 1.6;
    color: var(--text-muted, #888888);
    margin-top: 10px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

/* ─── PULL QUOTE ─── */
.ft-pull-quote {
    border-left: 2px solid var(--accent, #6B8EAD);
    padding: 8px 0 8px 32px;
    margin: 16px 0 24px;
}

.ft-pull-quote-location {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted, #888888);
    display: block;
    margin-bottom: 16px;
}

.ft-pull-quote-text {
    font-family: var(--serif, 'Instrument Serif', serif);
    font-size: clamp(26px, 4.5vw, 38px);
    font-style: italic;
    font-weight: 400;
    color: var(--text, #1A1A1A);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.ft-pull-quote-persian {
    font-size: clamp(22px, 3.5vw, 30px);
    font-weight: 400;
    color: var(--bg-dark-secondary, #253749);
    line-height: 1.3;
    margin-bottom: 8px;
    direction: rtl;
    text-align: left;
}

.ft-pull-quote-transliteration {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 11px;
    letter-spacing: 0.1em;
    color: var(--text-muted, #888888);
}

/* ─── ARTICLE BODY ─── */
.ft-article {
    max-width: 720px;
    margin: 0 auto;
    padding: 20px 24px 0;
}

.ft-article-lead {
    margin-top: 24px;
}

.ft-article-lead p {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 20px;
    line-height: 1.7;
    color: var(--text, #1A1A1A);
    margin-bottom: 0;
}

.ft-article p {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 18px;
    line-height: 1.7;
    color: var(--text-secondary, #555555);
    margin-bottom: 0;
    text-indent: 1.5em;
}

.ft-article p:first-of-type,
.ft-article h2 + p,
.ft-article h3 + p,
.ft-article h4 + p,
.ft-article blockquote + p,
.ft-article .ft-callout-box + p,
.ft-article .ft-driver-block + p,
.ft-article .ft-info-grid + p,
.ft-article .ft-stat-highlight + p,
.ft-article .ft-section-divider + p,
.ft-article-lead + p {
    text-indent: 0;
}

.ft-article-lead p::first-letter {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 3.4em;
    float: left;
    line-height: 0.8;
    margin: 0.05em 0.12em 0 0;
    color: var(--bg-dark-secondary, #253749);
    font-weight: 700;
}

.ft-article p strong {
    color: var(--text, #1A1A1A);
    font-weight: 600;
}

.ft-article p sup {
    font-size: 10px;
    color: var(--text-muted, #888888);
}

.ft-article blockquote {
    border-left: 2px solid var(--accent, #6B8EAD);
    padding: 8px 0 8px 28px;
    margin: 40px 0;
    font-family: var(--serif, 'Instrument Serif', serif);
    font-style: italic;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.5;
    color: var(--text, #1A1A1A);
}

.ft-article h2 {
    font-family: var(--heading, 'Outfit', sans-serif);
    font-size: 28px;
    font-weight: 600;
    color: var(--text, #1A1A1A);
    margin: 16px 0 28px;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.ft-article h3 {
    font-family: var(--heading, 'Outfit', sans-serif);
    font-size: 20px;
    font-weight: 600;
    color: var(--text, #1A1A1A);
    margin: 40px 0 16px;
    line-height: 1.3;
}

.ft-article h4 {
    font-family: var(--heading, 'Outfit', sans-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--text-secondary, #555555);
    margin: 32px 0 12px;
    line-height: 1.3;
}

/* ─── SECTION DIVIDER ─── */
.ft-section-divider {
    height: 1px;
    background: var(--border, rgba(0,0,0,0.08));
    margin: 56px 0 48px;
}

/* ─── DRIVER BLOCKS ─── */
.ft-driver-block {
    display: flex;
    gap: 24px;
    margin: 32px 0;
    padding: 28px;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 3px;
    background: var(--bg-card, #FFFFFF);
}

.ft-driver-number {
    font-family: var(--mono, 'Space Mono', monospace);
    font-size: 32px;
    font-weight: 700;
    color: var(--accent, #6B8EAD);
    line-height: 1;
    flex-shrink: 0;
    width: 48px;
}

.ft-driver-content h4 {
    font-family: var(--heading, 'Outfit', sans-serif);
    font-size: 16px;
    font-weight: 600;
    color: var(--text, #1A1A1A);
    margin: 0 0 12px;
}

.ft-driver-content p {
    margin-bottom: 0;
}

/* ─── CALLOUT BOX ─── */
.ft-callout-box {
    border-left: 2px solid var(--accent, #6B8EAD);
    padding: 24px 28px;
    margin: 36px 0;
    background: var(--accent-light, #E0E7EE);
    border-radius: 0 3px 3px 0;
}

.ft-callout-box p {
    font-size: 15px;
    color: var(--text, #1A1A1A);
    margin-bottom: 0;
}

/* ─── STAT HIGHLIGHTS ─── */
.ft-stat-highlight {
    display: flex;
    gap: 32px;
    margin: 36px 0;
    padding: 28px 32px;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 3px;
    background: var(--bg-card, #FFFFFF);
}

.ft-stat-item {
    flex: 1;
}

.ft-stat-number {
    font-family: var(--heading, 'Outfit', sans-serif);
    font-size: 38px;
    font-weight: 700;
    color: var(--accent, #6B8EAD);
    line-height: 1;
    margin-bottom: 8px;
}

.ft-stat-desc {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text-muted, #888888);
    line-height: 1.5;
    text-transform: uppercase;
}

.ft-stat-desc sup {
    font-size: 8px;
}

/* ─── INFO GRID ─── */
.ft-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 28px 0 32px;
}

.ft-info-card {
    padding: 24px;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 3px;
    background: var(--bg-card, #FFFFFF);
}

.ft-info-label {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent, #6B8EAD);
    margin-bottom: 10px;
    font-weight: 700;
}

.ft-info-card p {
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 0;
    color: var(--text-secondary, #555555);
}

/* ─── CASE SECTIONS ─── */
.ft-case-section {
    display: flex;
    align-items: baseline;
    gap: 16px;
    margin-top: 44px;
}

.ft-case-number {
    font-family: var(--mono, 'Space Mono', monospace);
    font-size: 18px;
    letter-spacing: 0.1em;
    color: var(--accent, #6B8EAD);
    flex-shrink: 0;
    font-weight: 700;
}

.ft-case-section h3 {
    margin: 0;
}

/* ─── TACTICS LIST ─── */
.ft-tactics-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 24px 0 32px;
}

.ft-tactic {
    padding: 20px 24px;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 3px;
    background: var(--bg-card, #FFFFFF);
}

.ft-tactic-label {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent, #6B8EAD);
    margin-bottom: 8px;
    font-weight: 700;
}

.ft-tactic p {
    font-size: 14px;
    margin-bottom: 0;
    color: var(--text-secondary, #555555);
}

/* ─── ACTOR GRID ─── */
.ft-actor-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 24px 0 32px;
}

.ft-actor-block {
    padding: 24px;
    border: 1px solid var(--border, rgba(0,0,0,0.08));
    border-radius: 3px;
    background: var(--bg-card, #FFFFFF);
}

.ft-actor-name {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text, #1A1A1A);
    margin-bottom: 12px;
    font-weight: 700;
}

.ft-actor-block p {
    font-size: 13px;
    line-height: 1.65;
    margin-bottom: 0;
    color: var(--text-secondary, #555555);
}

/* ─── SOURCES ─── */
.ft-sources h3 {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted, #888888);
    margin-bottom: 20px;
}

.ft-sources ol {
    list-style: none;
    counter-reset: source;
    padding: 0;
}

.ft-sources ol li {
    counter-increment: source;
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 12px;
    line-height: 1.6;
    color: var(--text-muted, #888888);
    padding: 6px 0;
    border-bottom: 1px solid var(--border, rgba(0,0,0,0.08));
}

.ft-sources ol li::before {
    content: counter(source) ".";
    font-family: var(--mono, 'Space Mono', monospace);
    font-size: 10px;
    color: var(--text-muted, #888888);
    margin-right: 10px;
}

/* ─── AUTHOR SECTION (end of article) ─── */
body:has(.ft-article) .author-section {
    border-top-color: var(--border, rgba(0,0,0,0.08));
}

body:has(.ft-article) .author-info .author-label {
    color: var(--text-muted, #888888);
}

body:has(.ft-article) .author-info .author-name {
    color: var(--text, #1A1A1A);
}

body:has(.ft-article) .author-icon {
    border-color: var(--border, rgba(0,0,0,0.08));
    color: var(--text-muted, #888888);
}

body:has(.ft-article) .author-icon:hover {
    color: var(--text, #1A1A1A);
    border-color: rgba(0,0,0,0.15);
    background: rgba(0,0,0,0.03);
}

/* ─── BACK LINK ─── */
.ft-back-wrap {
    max-width: 720px;
    margin: 0 auto;
    padding: 32px 24px 80px;
}

.ft-back-link {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--accent, #6B8EAD);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    transition: opacity 0.2s;
}

.ft-back-link:hover {
    opacity: 0.7;
}

/* ─── FULL-WIDTH FIGURE (inside article) ─── */
.ft-figure-full {
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: 32px;
    margin-bottom: 32px;
}

.ft-figure-full img {
    width: 100%;
    height: auto;
    display: block;
}

.ft-figure-full .figure-caption {
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 10px;
    letter-spacing: 0.04em;
    line-height: 1.6;
    color: var(--text-muted, #888888);
    margin-top: 10px;
    max-width: 720px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 24px;
}

/* ─── RESPONSIVE: 768px ─── */
@media (max-width: 768px) {
    .ft-hero-image {
        min-height: 380px;
    }
    .ft-hero-content {
        padding: 40px 24px;
        min-height: 380px;
    }
    .ft-hero-content h1 {
        font-size: 26px;
    }
    .ft-article {
        padding: 40px 20px 0;
    }
    .ft-article-lead p {
        font-size: 17px;
    }
    .ft-article h2 {
        font-size: 24px;
    }
    .ft-driver-block {
        flex-direction: column;
        gap: 8px;
        padding: 20px;
    }
    .ft-driver-number {
        width: auto;
        font-size: 24px;
    }
    .ft-stat-highlight {
        flex-direction: column;
        gap: 20px;
        padding: 24px;
    }
    .ft-info-grid,
    .ft-actor-grid {
        grid-template-columns: 1fr;
    }
    .ft-case-section {
        flex-direction: column;
        gap: 4px;
    }
}

/* ─── RESPONSIVE: 480px ─── */
@media (max-width: 480px) {
    .ft-hero-image {
        min-height: 320px;
    }
    .ft-hero-content {
        padding: 28px 20px;
        min-height: 320px;
    }
    .ft-hero-content h1 {
        font-size: 22px;
    }
    .ft-hero-meta {
        font-size: 10px;
    }
    .ft-byline-photo {
        width: 60px;
        height: 60px;
    }
    .ft-byline-name {
        font-size: 13px;
    }
    .ft-byline-popover {
        width: 260px;
        left: -10px;
        padding: 18px;
    }
    .ft-article {
        padding: 32px 16px 0;
    }
    .ft-article-lead p {
        font-size: 16px;
    }
    .ft-article p {
        font-size: 15px;
    }
    .ft-article blockquote {
        font-size: 18px;
        padding-left: 20px;
        margin: 28px 0;
    }
    .ft-article h2 {
        font-size: 21px;
    }
    .ft-article h3 {
        font-size: 17px;
    }
    .ft-driver-block {
        padding: 16px;
    }
    .ft-stat-highlight {
        padding: 20px;
    }
    .ft-stat-number {
        font-size: 28px;
    }
    .ft-info-card,
    .ft-actor-block {
        padding: 16px;
    }
    .ft-callout-box {
        padding: 16px 20px;
    }
    .ft-pull-quote {
        padding-left: 20px;
        margin: 36px 0;
    }
}

/* ═══════════════════════════════════════════════════════
   PRINT / PDF EXPORT
   ═══════════════════════════════════════════════════════ */

/* ─── PDF BUTTON (screen) ─── */
.ft-pdf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: var(--sans, 'Outfit', sans-serif);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--accent, #6B8EAD);
    background: none;
    border: 1px solid var(--accent, #6B8EAD);
    border-radius: 2px;
    padding: 5px 12px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
    min-width: 90px;
}
.ft-pdf-btn + .ft-pdf-btn {
    margin-left: 8px;
}

.ft-pdf-btn:hover {
    background: var(--accent, #6B8EAD);
    color: #ffffff;
}

.ft-pdf-btn svg {
    width: 12px;
    height: 12px;
    flex-shrink: 0;
}

@media print {
    @page {
        size: A4;
        margin: 18mm 16mm 22mm 16mm;
    }

    @page :first {
        margin-top: 0;
    }

    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        color-adjust: exact !important;
    }

    body {
        background: #ffffff !important;
    }

    body:has(.ft-article) .topbar,
    body:has(.ft-article) footer,
    .ft-pdf-btn,
    .ft-back-wrap,
    .ft-byline-popover,
    .beta-banner,
    .offline-bar,
    .cookie-banner,
    .ambient-glow,
    #hotspot-map,
    .leaflet-container,
    #auth-gate,
    #share-btn {
        display: none !important;
    }

    #auth-content {
        display: block !important;
    }

    .ft-print-only {
        display: block !important;
    }

    .ft-article-hero {
        margin-top: 0 !important;
        break-after: avoid;
    }

    .ft-hero-image {
        min-height: 280px !important;
    }

    .ft-hero-content {
        min-height: 280px !important;
        padding-top: 60px !important;
    }

    .ft-hero-overlay {
        background: linear-gradient(
            to top,
            rgba(255,255,255,0.97) 0%,
            rgba(255,255,255,0.8) 50%,
            rgba(255,255,255,0.3) 80%,
            transparent 100%
        ) !important;
    }

    .ft-article {
        max-width: 100% !important;
        padding: 16px 0 0 !important;
    }

    .ft-article p {
        font-size: 11pt !important;
        line-height: 1.7 !important;
        orphans: 3;
        widows: 3;
    }

    .ft-article-lead p {
        font-size: 12.5pt !important;
    }

    .ft-article h2 {
        font-size: 18pt !important;
        break-before: auto;
        break-after: avoid;
        margin-top: 1.5em !important;
        padding-top: 8px;
    }

    .ft-article h3 {
        font-size: 13pt !important;
        break-after: avoid;
    }

    .ft-article h4 {
        font-size: 11.5pt !important;
        break-after: avoid;
    }

    .ft-article blockquote {
        font-size: 14pt !important;
        break-inside: avoid;
    }

    .ft-driver-block,
    .ft-callout-box,
    .ft-stat-highlight,
    .ft-tactic,
    .ft-info-card,
    .ft-actor-block,
    .ft-case-section,
    .ft-figure,
    .ft-figure-full,
    .ft-pull-quote,
    .risk-cost-matrix,
    .matrix-comparison,
    .wage-chart,
    .projection-table-wrap,
    figure,
    table,
    .author-section {
        break-inside: avoid !important;
    }

    .ft-info-grid {
        break-inside: auto !important;
    }

    thead {
        display: table-header-group;
    }

    tr {
        break-inside: avoid;
    }

    svg {
        max-width: 100% !important;
        height: auto !important;
        break-inside: avoid !important;
        page-break-inside: avoid !important;
    }

    article.ft-article + div {
        break-inside: avoid !important;
        max-width: 100% !important;
        padding: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    .ft-section-divider {
        display: none !important;
    }

    /* Interactive elements: maps, embeds, placeholders */
    .hotspot-map-wrap,
    .interactive-map,
    .map-placeholder,
    [data-interactive],
    .ft-article .leaflet-container,
    .ft-article iframe {
        display: none !important;
    }

    .ft-sources {
        break-before: auto;
        break-inside: avoid;
        margin-top: 2em;
    }

    .ft-article a[href^="http"]::after {
        content: " (" attr(href) ")";
        font-size: 8pt;
        color: #888;
        word-break: break-all;
    }

    .ft-article::after {
        content: "pangea-intelligence.eu";
        display: block;
        text-align: center;
        font-family: 'Space Mono', monospace;
        font-size: 8pt;
        letter-spacing: 0.1em;
        color: #aaa;
        margin-top: 48px;
        padding-top: 16px;
        border-top: 1px solid rgba(0,0,0,0.08);
    }
}
