/*
Theme Name: The Evidence Project
Template: generatepress
Description: Child theme for The Evidence Project — dark, investigative timeline archive.
Version: 1.2
*/

* { box-sizing: border-box; }

/* Override any spacing the parent (GeneratePress) or its Customizer
   settings inject above the page — this theme owns the full layout
   from the top of <body> down, nothing should push the header/banner
   further from the top of the browser. */
html, body {
    margin: 0 !important;
    padding: 0 !important;
}

body {
    background: #0a0a0a;
    color: #fff;
    font-family: Arial, Helvetica, sans-serif;
}

a { color: inherit; }

/* ------------------------------------------------------------------
 * Header / Banner
 * ---------------------------------------------------------------- */
.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    border-bottom: 1px solid #1c1c1c;
    position: relative;
    z-index: 10;
    background: #0a0a0a;
}
.site-logo {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 2px;
    font-weight: bold;
    color: #fff;
    text-decoration: none;
}
.site-logo span { color: #f5e400; }

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 14px;
    margin: 0;
    padding: 0;
}
.site-nav a {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.05);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #eee;
    padding: 9px 18px;
    text-decoration: none;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-nav a:hover {
    background: #f5e400;
    border-color: #f5e400;
    color: #0a0a0a;
    box-shadow: 0 0 18px 2px rgba(245,228,0,0.35);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 32px;
    height: 32px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    z-index: 20;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: #fff;
    transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-header.nav-open .nav-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.site-header.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ------------------------------------------------------------------
 * Mobile header: collapse the nav behind a hamburger toggle instead
 * of cramming it in next to the logo.
 * ---------------------------------------------------------------- */
@media (max-width: 768px) {
    .site-header { padding: 16px 20px; flex-wrap: wrap; }
    .nav-toggle { display: flex; }

    .site-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 16px;
    }
    .site-header.nav-open .site-nav { display: block; }

    .site-nav ul {
        flex-direction: column;
        gap: 10px;
    }
    .site-nav a { display: block; text-align: center; padding: 12px 18px; font-size: 13px; }
}

.hero {
    position: relative;
    height: auto;
    min-height: 0;
    padding: 30px 20px 78px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background:
        radial-gradient(ellipse at center, rgba(20,20,20,0.2) 0%, rgba(10,10,10,0.95) 70%),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.02) 0px, rgba(255,255,255,0.02) 1px, transparent 1px, transparent 3px);
    background-color: #0a0a0a;
}

/* Permanent nav strip pinned to the bottom edge of the hero banner —
   homepage only. Other templates have no hero, so the header's own
   nav (unchanged) keeps serving them; on mobile the hamburger menu
   in the header also stays as the fallback, this bar hides there. */
.hero-nav {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    padding: 16px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.55) 65%, transparent 100%);
}
.hero-nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 14px;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.hero-nav a {
    display: inline-block !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    background: rgba(255,255,255,0.05) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #eee !important;
    padding: 9px 18px !important;
    text-decoration: none !important;
    font-size: 12px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border-radius: 3px !important;
    transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.hero-nav a:hover {
    background: #f5e400 !important;
    border-color: #f5e400 !important;
    color: #0a0a0a !important;
    box-shadow: 0 0 18px 2px rgba(245,228,0,0.35);
}
@media (max-width: 768px) {
    .hero-nav { display: none; }
    /* .hero's bottom padding exists to reserve room for .hero-nav, which
       is hidden here — without reducing it too, that space sits empty
       between the share row and the threat meter below it. */
    .hero { padding-bottom: 10px; }
    .hero .ep-share-bar { margin-bottom: 6px; }
}
@media (min-width: 769px) {
    body.home .site-header .site-nav { display: none; }
}
.hero-content { position: relative; z-index: 2; padding: 0 20px; }
.hero-eyebrow { color: #f5e400; font-size: 13px; letter-spacing: 3px; margin-bottom: 14px; }
.hero h1 {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-weight: normal;
    font-size: 44px;
    letter-spacing: 2px;
    margin: 0 0 10px;
}
.hero h2 { font-family: 'Special Elite', 'Courier New', monospace; font-size: 20px; font-weight: normal; color: #999; letter-spacing: 2px; margin: 0 0 30px; }
.hero-cta {
    display: inline-block;
    border: 1px solid #f5e400;
    color: #f5e400;
    padding: 12px 28px;
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s ease, color 0.2s ease;
}
.hero-cta:hover { background: #f5e400; color: #0a0a0a; }

/* ------------------------------------------------------------------
 * Intro copy above the timeline
 * ---------------------------------------------------------------- */
.intro {
    max-width: 600px;
    margin: 0 auto;
    padding: 15px 20px 20px;
    text-align: center;
}
.intro h2 { font-size: 26px; letter-spacing: 2px; margin-bottom: 12px; }
.intro p { color: #999; }

/* ------------------------------------------------------------------
 * Timeline — vertical spine, branch-line + circular image callout
 * (adapted from the horizontal reference: same grammar, rotated to
 * a vertical, scroll-driven layout since we travel backwards in time
 * as the page scrolls down)
 * ---------------------------------------------------------------- */
.timeline-wrap {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 0 220px;
}
.line-base {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 100%;
    transform: translateX(-50%);
    background: #1e1e1e;
}
.line-progress {
    position: absolute;
    left: 50%;
    top: 0;
    width: 4px;
    height: 0%;
    transform: translateX(-50%);
    background: #f5e400;
    box-shadow: 0 0 12px 2px rgba(245,228,0,0.7);
    transition: height 0.1s linear;
    z-index: 1;
}

.node {
    position: relative;
    min-height: 140px;
    opacity: 0.2;
    transition: opacity 0.4s ease;
}
.node.in-view { opacity: 1; }

.node .dot {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 3px solid #666;
    background: #0a0a0a;
    z-index: 3;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.node.in-view .dot {
    border-color: #f5e400;
    box-shadow: 0 0 14px 3px rgba(245,228,0,0.6);
}
.node.coming-soon-node .dot { border-color: #444; }
.node.coming-soon-node.in-view .dot { border-color: #666; box-shadow: none; }

/* branch connector: a horizontal bar from the spine out to the callout */
.node .branch {
    position: absolute;
    top: 50%;
    height: 2px;
    background: #555;
    z-index: 2;
}
.node.in-view .branch { background: #f5e400; }
.node.left .branch { right: 50%; width: 180px; margin-right: 10px; }
.node.right .branch { left: 50%; width: 180px; margin-left: 10px; }

/* clickable callout (image circle) link cursor + focus styles */
.callout-link { display: inline-block; text-decoration: none; }
.callout-link .callout { cursor: pointer; }
.callout-link:focus { outline: none; }

/* circular image callout */
.node .callout {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 130px;
    height: 130px;
    border-radius: 50%;
    border: 3px solid #666;
    overflow: hidden;
    background: #111;
    z-index: 3;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.node.in-view .callout { border-color: #f5e400; }
.node.left .callout { right: calc(50% + 190px); }
.node.right .callout { left: calc(50% + 190px); }

.callout-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    filter: grayscale(1) contrast(1.15);
}
.callout-img.placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    font-size: 11px;
    letter-spacing: 1px;
}

/* Coming-soon overlay on image callouts */
.coming-soon-callout { position: relative; }
.coming-soon-callout .coming-soon-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.55);
    color: #f5e400;
    padding: 6px 10px;
    border-radius: 14px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    z-index: 4;
    pointer-events: none;
}

/* Verified stamp — small corner badge on a timeline tile's photo circle */
.callout .verified-badge {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f5e400;
    color: #0a0a0a;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #0a0a0a;
    z-index: 5;
}
.callout .verified-badge svg { width: 14px; height: 14px; }

/* Verification Standards section on the subject detail page */
.subject-verified {
    max-width: 700px;
    margin: 18px auto 0;
    text-align: center;
}
.subject-verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #171a0a;
    border: 1px solid #3a3a1a;
    color: #f5e400;
    padding: 8px 16px;
    border-radius: 20px;
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 13px;
    letter-spacing: 0.5px;
}
.subject-verified-badge svg { width: 16px; height: 16px; flex-shrink: 0; }
/* Fact-checked rubber stamp (05.10.26) - date sits in the stamp's blank strip, rotated to match it */
/* negative bottom margin lets the year + title ride up beside the stamp instead of under a gap */
.subject-verified-stamp { position: relative; display: block; width: 120px; height: 120px; margin: 0 0 -48px 150px; }
.subject-verified-stamp img { width: 100%; height: 100%; display: block; }
.subject-verified-stamp .stamp-date {
    position: absolute; left: 51.5%; top: 54.5%;
    transform: translate(-50%, -50%) rotate(-9.2deg);
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 11px; letter-spacing: 1px; white-space: nowrap;
}
@media (max-width: 700px) { .subject-verified-stamp { margin: 0 auto 4px; } }
.stamp-green .stamp-date { color: #3fa34d; }
.stamp-grey .stamp-date { color: #ededed; }
.stamp-yellow .stamp-date { color: #f5d90a; }
.subject-verified-details {
    margin-top: 10px;
    color: #999;
    font-size: 13px;
}
.subject-verified-details summary {
    cursor: pointer;
    color: #ccc;
    letter-spacing: 0.5px;
}
.subject-verified-details ul {
    text-align: left;
    max-width: 500px;
    margin: 10px auto 0;
    padding-left: 20px;
    line-height: 1.7;
}

/* callout hover: raise + glow for linked (published) callouts */
.callout-link .callout {
    will-change: transform, box-shadow;
}
.callout-link:hover .callout,
.callout-link:focus .callout {
    box-shadow: 0 10px 30px rgba(255,255,255,0.14), 0 0 18px rgba(245,228,0,0.24);
    border-color: #f5e400;
}

/* year + title + of-note list, sat just past the callout.
   One positioned block so the list can flow under the title. */
.node .node-text {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    max-width: 260px;
}
.node.left .node-text { right: calc(50% + 340px); text-align: right; }
.node.right .node-text { left: calc(50% + 340px); text-align: left; }

.node .year-label {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    color: #f5e400;
}

.node .node-title {
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    color: #fff;
    display: block;
    margin-top: 2px;
    position: relative;
    z-index: 2;
}
.node .node-title:hover { color: #f5e400; }

/* Make the title area easier to click by expanding the hit target */
.node-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.node .node-text:hover .node-title {
    color: #f5c518;
}

.node .node-text:hover {
    /* no translate: titles should not shift on hover */
}
.node-title.coming-soon { color: #f5e400; letter-spacing: 1px; font-size: 12px; text-transform: uppercase; }

/* the "of note" short-form list */
.node .node-events {
    list-style: disc;
    list-style-position: inside;
    margin: 6px 0 0;
    padding: 0;
}
.node .node-events li {
    font-size: 12px;
    line-height: 1.45;
    color: #999;
    margin-bottom: 3px;
}

/* phone through tablet/narrow-laptop: keep the branch + alternating
   left/right zigzag exactly as on desktop — just move the year/title so
   it sits ABOVE the photo, at the same left/right offset, instead of
   beside it. That's what actually frees up width: the photo and the
   text no longer both need their own horizontal lane, they share one,
   stacked. Photo + branch positioning is otherwise unchanged from the
   base desktop rules; only .node-text moves. */
@media (max-width: 1100px) {
    .node {
        --tile-branch: clamp(35px, 12vw, 100px);
        --tile-circle: clamp(85px, 32vw, 165px);
        --tile-gap: 6px;
        --tile-center-offset: calc(var(--tile-branch) + var(--tile-gap) + (var(--tile-circle) / 2));
        min-height: calc(var(--tile-circle) + 70px);
    }
    .node .branch { width: var(--tile-branch) !important; margin-right: var(--tile-gap); margin-left: var(--tile-gap); }
    .node .callout {
        width: var(--tile-circle) !important; height: var(--tile-circle) !important;
    }
    .node.left .callout { right: calc(50% + var(--tile-branch) + var(--tile-gap)); }
    .node.right .callout { left: calc(50% + var(--tile-branch) + var(--tile-gap)); }

    /* text sits above the photo, centered on the same horizontal midpoint
       as the circle (not sharing its edge — its own middle), instead of
       out to the side of it */
    .node .node-text {
        top: auto;
        bottom: calc(50% + (var(--tile-circle) / 2) + var(--tile-gap));
        transform: translateX(-50%);
        text-align: center !important;
        width: max-content;
        max-width: 160px;
    }
    .node.left .node-text { right: auto; left: calc(50% - var(--tile-center-offset)); }
    .node.right .node-text { left: calc(50% + var(--tile-center-offset)); }

    .node .year-label { white-space: normal; font-size: 14px; }
    .node .node-title { font-size: 15px; }
    .node .node-events { text-align: center; list-style-position: inside; }
    .node .node-events li { font-size: 12px; }
}

/* ------------------------------------------------------------------
 * Timeline minimap — fixed vertical strip on the opposite edge from
 * the browser scrollbar, one tick per node, tracking scroll progress
 * in real time. Desktop-only: there isn't clean room for it once the
 * layout starts folding at the tablet/mobile breakpoints.
 * ---------------------------------------------------------------- */
.ep-minimap {
    position: fixed;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    height: 70vh;
    max-height: 640px;
    width: 20px;
    z-index: 40;
}
.ep-minimap-track {
    position: relative;
    height: 100%;
    width: 4px;
    margin: 0 auto;
    background: #1e1e1e;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.ep-minimap-fill {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 0%;
    background: #f5e400;
    box-shadow: 0 0 8px 1px rgba(245,228,0,0.6);
    border-radius: 3px;
    transition: height 0.1s linear;
}
.ep-minimap-tick {
    position: relative;
    z-index: 1;
    display: block;
    width: 22px;
    height: 14px;
    margin-left: -10px;
    outline: none;
    flex: 0 0 auto;
}
/* Detail-page minimap is an actual navigation control (its main job),
   unlike the homepage one (a bearing/progress indicator where clicking
   is a bonus) - give it a much more generous, obviously-clickable hit
   area rather than sharing the homepage's more subtle sizing. */
.ep-minimap--nav .ep-minimap-tick {
    width: 36px;
    height: 26px;
    margin-left: -17px;
}
.ep-minimap-tick::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #444;
    border: 1px solid #0a0a0a;
    transition: background 0.25s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.ep-minimap-tick.in-view::before {
    background: #f5e400;
    box-shadow: 0 0 8px 2px rgba(245,228,0,0.6);
}
.ep-minimap-tick.current::before {
    transform: translate(-50%, -50%) scale(1.6);
}
.ep-minimap-label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%) translateX(-6px);
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.5px;
    color: #ccc;
    background: #111;
    border: 1px solid #333;
    padding: 3px 8px;
    border-radius: 3px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease, transform 0.15s ease;
}
.ep-minimap-tick:hover .ep-minimap-label,
.ep-minimap-tick.current .ep-minimap-label {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
}
.ep-minimap-tick.current .ep-minimap-label {
    color: #f5e400;
    border-color: #f5e400;
}

/* Hide below ~1300px — no clean gap left of the timeline content once
   the two-column callout layout starts tightening at 1100px. */
@media (max-width: 1300px) {
    .ep-minimap { display: none; }
}

/* ------------------------------------------------------------------
 * Single subject page
 * (.subject-hero and .subject-downloads button styles used to live here
 * too, but both are fully redefined in the "Single subject page" section
 * further down — kept those definitions there rather than here so the two
 * rule sets wouldn't fight over borders/backgrounds via the cascade.)
 * ---------------------------------------------------------------- */
.subject-also-in-year {
    max-width: 700px;
    margin: 30px auto 0;
    padding: 0 20px;
}
.subject-also-in-year h2 {
    font-family: 'Special Elite', 'Courier New', monospace;
    color: #f5e400;
    font-size: 20px;
    margin: 0 0 14px;
    border-bottom: 1px solid #262600;
    padding-bottom: 8px;
}
.subject-also-in-year ul { list-style: none; margin: 0; padding: 0; }
.subject-also-in-year li { margin-bottom: 6px; }
.subject-also-in-year a { color: #ccc; text-decoration: none; font-size: 15px; }
.subject-also-in-year a:hover { color: #f5e400; text-decoration: underline; }
.subject-also-in-year li.note { color: #888; font-size: 15px; font-style: italic; }
.subject-of-note {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    text-align: left;
}
.subject-of-note li {
    border: 1px solid #333;
    color: #999;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 12px;
}

.subject-featured-img { max-width: 900px; margin: 30px auto; padding: 0 20px; }
.subject-featured-img img { width: 100%; height: auto; display: block; filter: grayscale(0.3); border: 1px solid #222; }

.subject-content {
    max-width: 700px;
    margin: 30px auto;
    padding: 0 20px;
    line-height: 1.8;
    color: #ddd;
    font-size: 16px;
}
.subject-content img { max-width: 100%; height: auto; }
.subject-content h2, .subject-content h3 { color: #fff; letter-spacing: 1px; }


.back-link {
    display: block;
    max-width: 700px;
    margin: 20px auto 80px;
    padding: 0 20px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
}
.back-link:hover { color: #f5e400; }

/* ------------------------------------------------------------------
 * About / Contact sections (homepage)
 * ---------------------------------------------------------------- */
.about-section, .contact-section {
    max-width: 650px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
    border-top: 1px solid #1c1c1c;
}
.about-section h2, .contact-section h2 {
    font-size: 24px;
    letter-spacing: 2px;
    margin: 0 0 18px;
}
.about-section p, .contact-section p {
    color: #999;
    line-height: 1.8;
    margin: 0 0 18px;
}
.contact-email {
    display: inline-block;
    border: 1px solid #f5e400;
    color: #f5e400;
    text-decoration: none;
    padding: 10px 24px;
    font-size: 14px;
    letter-spacing: 1px;
    transition: background 0.2s ease, color 0.2s ease;
}
.contact-email:hover { background: #f5e400; color: #0a0a0a; }

/* ------------------------------------------------------------------
 * Auth forms (Register / Login) — [ep_register_form] / [ep_login_form]
 * ---------------------------------------------------------------- */
.auth-links {
    display: flex;
    align-items: center;
    gap: 18px;
}
.auth-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 14px;
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: color 0.2s ease;
}
.auth-links a:hover { color: #f5e400; }
.auth-username {
    color: #f5e400;
    font-size: 13px;
    letter-spacing: 1px;
}
@media (max-width: 768px) {
    .auth-links { display: none; }
}

.auth-wrap {
    max-width: 420px;
    margin: 60px auto 100px;
    padding: 0 20px;
}
.auth-card {
    background: #0f0f0f;
    border: 1px solid #1c1c1c;
    border-radius: 6px;
    padding: 36px 30px;
}
.auth-card h1 {
    font-size: 24px;
    letter-spacing: 2px;
    margin: 0 0 8px;
    text-align: center;
}
.auth-sub {
    color: #999;
    font-size: 14px;
    text-align: center;
    margin: 0 0 26px;
}
.auth-field { margin-bottom: 18px; }
.auth-field label {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 6px;
}
.auth-field input {
    width: 100%;
    background: #111;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 4px;
    box-sizing: border-box;
}
.auth-field input:focus {
    outline: none;
    border-color: #f5e400;
}
.auth-submit {
    display: block;
    width: 100%;
    background: transparent;
    border: 1px solid #f5e400;
    color: #f5e400;
    padding: 12px;
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}
.auth-submit:hover { background: #f5e400; color: #0a0a0a; }
.auth-errors {
    background: rgba(220,50,50,0.12);
    border: 1px solid #a33;
    color: #f88;
    padding: 12px 14px;
    font-size: 13px;
    border-radius: 4px;
    margin-bottom: 20px;
}
.auth-errors ul { margin: 0; padding-left: 18px; }
.auth-switch {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}
.auth-switch a { color: #f5e400; }

/* ------------------------------------------------------------------
 * Comments (single subject page)
 * ---------------------------------------------------------------- */
.subject-comments {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 30px 20px 0;
    border-top: 1px solid #1c1c1c;
}
.subject-comments h3 {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f5e400;
    margin: 0 0 20px;
}
.comment-list {
    list-style: none;
    margin: 0 0 20px;
    padding: 0;
}
.comment-list .comment,
.comment-list .pingback,
.comment-list .trackback {
    background: #0f0f0f;
    border: 1px solid #1c1c1c;
    border-radius: 6px;
    padding: 16px 18px;
    margin-bottom: 14px;
}
.comment-list ol.children {
    list-style: none;
    margin: 14px 0 0 24px;
    padding: 0;
    border-left: 2px solid #1c1c1c;
    padding-left: 16px;
}
.comment-author .fn { font-style: normal; }
.comment-author {
    font-size: 14px;
    font-weight: bold;
    color: #fff;
}
.comment-author img { border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.comment-metadata {
    font-size: 12px;
    color: #666;
    margin-bottom: 8px;
}
.comment-metadata a { color: #666; text-decoration: none; }
.comment-content { color: #ccc; font-size: 14px; line-height: 1.7; }
.comment-content p { margin: 0 0 10px; }
.comment-reply-link {
    color: #f5e400;
    font-size: 12px;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.comment-awaiting-moderation {
    color: #f5e400;
    font-size: 12px;
    font-style: italic;
}

#respond { margin-top: 10px; }
.comment-reply-title {
    font-size: 16px;
    letter-spacing: 1px;
    margin: 0 0 16px;
}
.logged-in-as { color: #999; font-size: 13px; margin-bottom: 16px; }
.logged-in-as a { color: #f5e400; }
.comment-notes { color: #999; font-size: 13px; margin-bottom: 16px; }
#commentform textarea {
    width: 100%;
    background: #111;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}
#commentform textarea:focus { outline: none; border-color: #f5e400; }
#commentform input[type="text"],
#commentform input[type="email"],
#commentform input[type="url"] {
    background: #111;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    margin-bottom: 12px;
}
#commentform input[type="text"]:focus,
#commentform input[type="email"]:focus,
#commentform input[type="url"]:focus { outline: none; border-color: #f5e400; }
#commentform input[type="submit"] {
    display: inline-block;
    border: 1px solid #f5e400;
    background: transparent;
    color: #f5e400;
    padding: 10px 24px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
    transition: background 0.2s ease, color 0.2s ease;
}
#commentform input[type="submit"]:hover { background: #f5e400; color: #0a0a0a; }
.must-log-in, .comments-closed {
    color: #999;
    font-size: 14px;
}
.must-log-in a { color: #f5e400; }

/* ------------------------------------------------------------------
 * Similar Cases (single subject page, below comments)
 * ---------------------------------------------------------------- */
.subject-similar {
    max-width: 700px;
    margin: 40px auto 0;
    padding: 30px 20px 0;
    border-top: 1px solid #1c1c1c;
}
.subject-similar h3 {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #f5e400;
    margin: 0 0 20px;
}
.similar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}
.similar-item {
    display: block;
    text-decoration: none;
    border: 1px solid #1c1c1c;
    background: #0f0f0f;
    padding: 10px;
    transition: border-color 0.2s ease;
}
.similar-item:hover { border-color: #f5e400; }
.similar-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-bottom: 10px;
}
.similar-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(1) contrast(1.15);
    display: block;
}
.similar-title {
    color: #ccc;
    font-size: 13px;
    line-height: 1.4;
}
.similar-item:hover .similar-title { color: #f5e400; }

/* ------------------------------------------------------------------
 * Footer
 * ---------------------------------------------------------------- */
.site-footer {
    padding: 30px 40px;
    border-top: 1px solid #1c1c1c;
    text-align: center;
    color: #555;
    font-size: 13px;
}


/* ==================================================================
 * Single subject page (evidence_subject) — "landscape sections"
 * order: hero -> (verified) -> (also in year) -> section nav ->
 * introduction -> government response -> summary -> evidence
 * ================================================================== */
.subject-article {
    color: #ddd;
    line-height: 1.7;
    padding-bottom: 60px;
}

/* Hero: photo beside the title, not stacked above it */
.subject-hero {
    max-width: 1320px;
    margin: 0 auto;
    padding: 40px 24px 28px;
    text-align: left;
    border-bottom: none;
    display: flex;
    align-items: center;
    gap: 40px;
}
.subject-photo { flex: 0 0 400px; }
.subject-photo img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
}
.subject-photo.force-bw img {
    filter: grayscale(100%);
}
.subject-hero-text { flex: 1 1 auto; min-width: 0; text-align: left; }
.subject-year {
    color: #f5e400;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 8px;
}
.subject-hero h1 {
    font-family: 'Special Elite', 'Courier New', monospace;
    font-weight: normal;
    color: #fff;
    font-size: 32px;
    line-height: 1.25;
    margin: 0 0 14px;
}
.subject-of-note { text-align: left; }
.subject-hero-also-in {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 18px;
}
.subject-hero-also-in-label {
    color: #999;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.subject-hero-badges {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.subject-hero-badges li {
    border: 1px solid #333;
    color: #999;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 5px 10px;
    border-radius: 12px;
}
.subject-hero-badges li a { color: #999; text-decoration: none; }
.subject-hero-badges li a:hover { color: #f5e400; }
.subject-hero-notes {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}
.subject-hero-notes li {
    color: #999;
    font-size: 13px;
    line-height: 1.6;
    padding-left: 14px;
    position: relative;
    margin-bottom: 4px;
}
.subject-hero-notes li::before {
    content: "\2022";
    color: #f5e400;
    position: absolute;
    left: 0;
}

/* Share buttons — moved out of the hero column and placed as their own
   full-width bar right above the section nav, so centering is relative
   to the whole page rather than the (much narrower) title column. */
.subject-share-above-nav {
    text-align: center;
    padding: 8px 24px 24px;
}
.subject-share-above-nav .ep-share-bar {
    display: inline-flex;
    width: auto;
    max-width: none;
    margin: 0;
}
.subject-share-above-nav .ep-share-label {
    display: none;
}

@media (max-width: 768px) {
    .subject-hero { flex-direction: column; text-align: center; padding: 32px 20px 20px; }
    .subject-photo { flex: none; max-width: 320px; margin: 0 auto; }
    .subject-hero-text { text-align: center; }
    .subject-of-note,
    .subject-hero-badges { justify-content: center; }
}

/* Sticky "landscape sections" nav — only rendered when 2+ sections exist */
.subject-section-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    background: #0a0a0a;
    border-top: 1px solid #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
    display: flex;
    /* flex-start + auto margins on the end tabs = centred when it fits, but still scrollable from the
       first tab when it doesn't (justify-content:center pushed "Introduction" off-screen on phones) */
    justify-content: flex-start;
    gap: 32px;
    padding: 0 24px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
}
.subject-section-nav::-webkit-scrollbar { display: none; }
.subject-section-nav a:first-child { margin-left: auto; }
.subject-section-nav a:last-child { margin-right: auto; }
.subject-section-nav a {
    padding: 15px 0;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #999;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    white-space: nowrap;
}
.subject-section-nav a:hover { color: #f5e400; }
@media (max-width: 600px) {
    .subject-section-nav { gap: 20px; padding: 0 16px; }
    .subject-section-nav a { font-size: 11px; letter-spacing: 1px; flex-shrink: 0; }
}

/* Full-width, alternating-shade section bands */
.subject-section { background: #0a0a0a; }
.subject-section--alt {
    background: #0e0e0e;
    border-top: 1px solid #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
}
.subject-section-inner { max-width: 760px; margin: 0 auto; padding: 48px 24px; }
.subject-section-inner h2 {
    font-family: 'Special Elite', 'Courier New', monospace;
    color: #f5e400;
    font-size: 22px;
    margin: 0 0 20px;
    border-bottom: 1px solid #262600;
    padding-bottom: 10px;
}
.subject-section-inner h3 {
    font-family: 'Special Elite', 'Courier New', monospace;
    color: #f5e400;
    font-size: 22px;
    margin: 28px 0 12px;
}
#introduction .subject-section-inner p:first-of-type { font-size: 18px; color: #eee; }
#you-decide .subject-section-inner p:last-child { color: #fff; font-weight: 600; }

/* evidence clips */
.evidence-clip { margin: 0 0 28px; }
.clip-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #000;
}
.clip-embed iframe,
.clip-embed video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}
.evidence-clip figcaption {
    font-size: 13px;
    color: #999;
    margin-top: 8px;
}

/* Documents & downloads — icon + label rows, no boxed buttons */
.subject-downloads {
    border: 1px solid #262626;
    padding: 22px 24px;
    background: #0a0a0a;
    margin-top: 8px;
}
.subject-downloads-label {
    color: #f5e400;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1.5px;
    margin-bottom: 16px;
}
.subject-downloads ul { list-style: none; padding: 0; margin: 0; }
.subject-downloads li { margin: 0; }
.subject-downloads a {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 13px 4px;
    border: none;
    border-bottom: 1px solid #1c1c1c;
    color: #ddd;
    font-size: 13.5px;
    line-height: 1.5;
    text-decoration: none;
}
.subject-downloads li:last-child a { border-bottom: none; }
.subject-downloads a:hover { color: #f5e400; background: transparent; }
.subject-downloads .doc-icon { flex: 0 0 22px; margin-top: 1px; color: #f5e400; }

/* Optional per-section image/video — framed, auto-resized to fit */
.ep-section-media { margin-top: 24px; }
.ep-section-media-frame {
    border: 1px solid #333;
    background: #111;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-height: 420px;
    overflow: hidden;
}
.ep-section-media-frame img,
.ep-section-media-frame video {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    display: block;
}
.ep-section-media-frame img.ep-media-bw { filter: grayscale(100%); }
.ep-section-media-frame iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}
.ep-section-media-caption {
    font-size: 11px;
    color: #777;
    margin-top: 8px;
    letter-spacing: 0.3px;
}

.back-link {
    display: block;   /* was inline-block - cancelled the centred 700px column above, so the link hugged the left edge (owner 05.10.26) */
    margin-top: 40px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
}
.back-link:hover { color: #f5e400; }

/* ------------------------------------------------------------------
 * Previous Edits page — hero, two-column top row (request form +
 * currently-working-on), and the video grid below.
 * ---------------------------------------------------------------- */
.auth-field textarea {
    width: 100%;
    background: #111;
    border: 1px solid #2a2a2a;
    color: #fff;
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}
.auth-field textarea:focus { outline: none; border-color: #f5e400; }

.pe-hero { max-width: 700px; margin: 0 auto; padding: 50px 20px 10px; text-align: center; }
.pe-hero h1 { font-size: 34px; letter-spacing: 2px; margin: 0 0 12px; }
.pe-intro { color: #999; }

.pe-top-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
    align-items: start;
}
.pe-request h2, .pe-in-production h2 {
    font-size: 20px; letter-spacing: 1px; margin: 0 0 12px;
    color: #f5e400;
}
.pe-request p { color: #999; margin: 0 0 20px; }
.pe-in-production-text p { color: #ccc; }
.pe-empty { color: #666; }

.pe-edits-section {
    max-width: 1100px;
    margin: 50px auto 60px;
    padding: 0 20px;
}
.pe-edits-section h2 {
    text-align: center; font-size: 26px; letter-spacing: 2px; margin: 0 0 30px;
}
.pe-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}
.pe-video-item { margin: 0; }
.pe-video-embed {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #111;
    border: 1px solid #1e1e1e;
    overflow: hidden;
}
.pe-video-embed iframe {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: 0;
}
.pe-video-item figcaption {
    margin-top: 10px; color: #ccc; font-size: 14px; line-height: 1.4;
}
.pe-video-link {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9; background: #111; border: 1px solid #1e1e1e;
    color: #f5e400; text-decoration: none; font-size: 13px; letter-spacing: 1px;
}

@media (max-width: 780px) {
    .pe-top-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ------------------------------------------------------------------
 * Evidence-matrix breakout — lets a wide table (e.g. the Qaradawi
 * controversies matrix) ignore .subject-content's 700px column and
 * center at its own natural width instead. Two layers, not one: the
 * outer section goes genuinely full-bleed (100vw, no cap), then each
 * direct child gets its own max-width + auto centering. Putting the
 * cap and the viewport-based negative margins on the SAME element
 * over-shifts it left once the cap engages below full viewport width
 * — that was the original bug. Scoped to .subject-content so it only
 * applies on subject/person pages, not anywhere .ep-evidence-matrix
 * might get reused elsewhere.
 * ---------------------------------------------------------------- */
.subject-content .ep-evidence-matrix {
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.subject-content .ep-evidence-matrix > * {
    max-width: 1200px;
    margin-inline: auto;
}
@media (max-width: 780px) {
    .subject-content .ep-evidence-matrix { padding: 18px 16px; }
}


/* ------------------------------------------------------------------
   Relationships button while the section is not public yet
   (see EP_RELATIONSHIPS_PUBLIC in the plugin). Looks like the other
   nav buttons but greyed out and not clickable. Only visitors see it -
   logged-in editors get the normal working link.
   ------------------------------------------------------------------ */
.site-nav .nav-coming-soon span,
.hero-nav .nav-coming-soon span {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #777;
    padding: 9px 18px;
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 3px;
    cursor: default;
    user-select: none;
}
.site-nav .nav-coming-soon > a,
.hero-nav .nav-coming-soon > a {
    pointer-events: none;
    cursor: default;
    opacity: 0.45;
}
@media (max-width: 768px) {
    .site-nav .nav-coming-soon span { display: block; text-align: center; padding: 12px 18px; font-size: 13px; }
}

/* ------------------------------------------------------------------
   National Terrorism Threat Level meter (homepage). Markup comes from
   the plugin (threat-meter.php); the level is set in one place there.
   ------------------------------------------------------------------ */
.ep-threat {
    max-width: 860px;
    margin: 0 auto;
    padding: 34px 20px 8px;
    text-align: center;
    color: #eee;
}
.ep-threat-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.ep-threat-title {
    font-size: 12px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #999;
}
/* Colour of each step: calm to serious. The current step and the big word
   both take the colour of the CURRENT level; Certain is red. */
.ep-threat {
    --c-not-expected: #3f9b64;
    --c-possible:     #f5e400;
    --c-probable:     #ff9f1a;
    --c-expected:     #ff5a1f;
    --c-certain:      #e5141c;
    --now:            #f5e400;
}
.ep-threat--not-expected { --now: var(--c-not-expected); }
.ep-threat--possible     { --now: var(--c-possible); }
.ep-threat--probable     { --now: var(--c-probable); }
.ep-threat--expected     { --now: var(--c-expected); }
.ep-threat--certain      { --now: var(--c-certain); }
.ep-threat-scale li.lv-not-expected { --c: var(--c-not-expected); }
.ep-threat-scale li.lv-possible     { --c: var(--c-possible); }
.ep-threat-scale li.lv-probable     { --c: var(--c-probable); }
.ep-threat-scale li.lv-expected     { --c: var(--c-expected); }
.ep-threat-scale li.lv-certain      { --c: var(--c-certain); }

.ep-threat-now {
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 6px;
    color: var(--now);
    text-shadow: 0 0 16px var(--now);
}
.ep-threat-scale-row {
    display: flex;
    align-items: center;
    gap: 16px;
}
.ep-threat-scale {
    list-style: none;
    display: flex;
    flex: 1 1 auto;
    gap: 6px;
    margin: 0;
    padding: 0;
}
.ep-threat-scale li {
    flex: 1 1 0;
    min-width: 0;
}
.ep-threat-bar {
    display: block;
    height: 10px;
    border-radius: 3px;
    background: #1c1c1c;
    border: 1px solid #2a2a2a;
}
.ep-threat-scale li.passed .ep-threat-bar { background: var(--c); border-color: var(--c); opacity: 0.4; }
.ep-threat-scale li.current .ep-threat-bar {
    background: var(--c);
    border-color: var(--c);
    box-shadow: 0 0 14px 2px var(--c);
}
.ep-threat-name {
    display: block;
    margin-top: 8px;
    font-size: 11px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #666;
}
.ep-threat-scale li.current .ep-threat-name { color: var(--c); font-weight: 700; }
.ep-threat-meaning {
    margin: 16px auto 0;
    max-width: 640px;
    font-size: 14px;
    line-height: 1.6;
    color: #bbb;
}
.ep-threat-source {
    margin: 10px 0 0;
    font-size: 12px;
    color: #777;
}
.ep-threat-source a { color: #999; text-decoration: underline; }
.ep-threat-source a:hover { color: #f5e400; }

/* ?/! icons — replace the always-visible meaning/source paragraphs with
   two small buttons; the explanation shows on hover (desktop) or tap
   (touch, via ep-threat-icons-js toggling .open). */
.ep-threat-icons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 0 0 auto;
}
.ep-threat-icon-btn {
    position: relative;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 1px solid #444;
    background: transparent;
    color: #999;
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}
.ep-threat-icon-btn:hover,
.ep-threat-icon-btn:focus,
.ep-threat-icon-btn.open {
    border-color: #f5e400;
    color: #f5e400;
}
.ep-threat-tooltip {
    display: none;
    position: absolute;
    top: 0;
    right: calc(100% + 10px);
    width: 260px;
    max-width: 80vw;
    background: #111;
    border: 1px solid #333;
    color: #bbb;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.6;
    text-align: left;
    padding: 10px 12px;
    border-radius: 4px;
    z-index: 20;
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
}
.ep-threat-tooltip a { color: #999; text-decoration: underline; }
.ep-threat-tooltip a:hover { color: #f5e400; }
.ep-threat-icon-btn:hover .ep-threat-tooltip,
.ep-threat-icon-btn:focus .ep-threat-tooltip,
.ep-threat-icon-btn.open .ep-threat-tooltip {
    display: block;
}

@media (max-width: 600px) {
    .ep-threat { padding-top: 6px; }
    .ep-threat-now { font-size: 24px; letter-spacing: 4px; }
    .ep-threat-name { font-size: 9px; letter-spacing: 0.5px; }
    .ep-threat-scale-row { gap: 8px; }
    .ep-threat-icon-btn { width: 18px; height: 18px; font-size: 11px; }
}

/* Override legacy Customizer "Additional CSS" (DB-only, not in any theme
   file) which force-fills .site-nav buttons with solid amber (#E9B949).
   That rule pre-dates the newer .hero-nav glass-pill look (homepage top
   banner) and only targets .site-nav — since .site-nav is hidden on the
   homepage (body.home .site-header .site-nav { display:none }) but is the
   ONLY nav on every other page, every non-homepage page was stuck with the
   old filled-pill look. !important is required: the Customizer CSS carries
   no !important itself, but WordPress injects it into <head> after this
   stylesheet, so normal specificity/source-order loses to it otherwise. */
.site-nav ul li a {
    background: rgba(255,255,255,0.05) !important;
    border: 1px solid rgba(255,255,255,0.12) !important;
    color: #eee !important;
    padding: 9px 18px !important;
    font-size: 12px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
}
.site-nav ul li a:hover {
    background: #f5e400 !important;
    border-color: #f5e400 !important;
    color: #0a0a0a !important;
    box-shadow: 0 0 18px 2px rgba(245,228,0,0.35) !important;
}
.site-nav ul li a::before {
    display: none !important;
}

/* ==================================================================
 * Event page (evidence_event) — the lightweight tier: date, title,
 * write-up, source. No tabs, no hero photo-beside-title layout, no
 * Government Response/Summary/Evidence sections.
 * ================================================================== */
.event-article {
    color: #ddd;
    line-height: 1.7;
    padding: 40px 24px 60px;
}
.event-inner { max-width: 700px; margin: 0 auto; }
.event-back-link {
    display: inline-block;
    margin-bottom: 24px;
    color: #999;
    text-decoration: none;
    font-size: 14px;
}
.event-back-link:hover { color: #f5e400; }
.event-photo { margin-bottom: 24px; }
.event-photo img { width: 100%; height: auto; display: block; }
.event-date {
    color: #f5e400;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.event-article h1 {
    font-family: 'Special Elite', 'Courier New', monospace;
    color: #fff;
    font-size: 28px;
    margin: 0 0 24px;
}
.event-body p { font-size: 16px; line-height: 1.8; margin: 0 0 16px; color: #ddd; }
.event-source {
    border: 1px solid #333;
    background: #111;
    padding: 14px 18px;
    margin-top: 24px;
    font-size: 13px;
    color: #999;
}
.event-source-label-tag { color: #f5e400; font-weight: bold; margin-right: 6px; }
.event-source a { color: #ccc; text-decoration: underline; }
.event-source a:hover { color: #f5e400; }

/* ==================================================================
 * Event overlay — clicking an "Also in [Year]" event stays on the
 * tile page instead of navigating away, so the whole year's context
 * stays visible; this floats above it instead.
 * ================================================================== */
.ep-event-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(0,0,0,0.75);
    padding: 40px 20px;
    overflow-y: auto;
}
.ep-event-modal-backdrop.open { display: block; }
.ep-event-modal-box {
    position: relative;
    max-width: 680px;
    margin: 0 auto;
    background: #0a0a0a;
    border: 1px solid #333;
    padding: 40px 32px;
    color: #ddd;
}
.ep-event-modal-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    color: #999;
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    padding: 6px;
}
.ep-event-modal-close:hover { color: #f5e400; }
.ep-event-modal-photo { margin: 0 0 20px; }
.ep-event-modal-photo img { width: 100%; height: auto; display: block; }
.ep-event-modal-date {
    color: #f5e400;
    font-size: 13px;
    font-weight: bold;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.ep-event-modal-content h2 {
    font-family: 'Special Elite', 'Courier New', monospace;
    color: #fff;
    font-size: 24px;
    margin: 0 0 20px;
}
.ep-event-modal-body p { font-size: 15px; line-height: 1.8; margin: 0 0 14px; color: #ddd; }
.ep-event-modal-source {
    border: 1px solid #333;
    background: #111;
    padding: 12px 16px;
    margin-top: 20px;
    font-size: 12px;
    color: #999;
}
.ep-event-modal-source-tag { color: #f5e400; font-weight: bold; margin-right: 6px; }
.ep-event-modal-source a { color: #ccc; text-decoration: underline; }
.ep-event-modal-source a:hover { color: #f5e400; }
@media (max-width: 600px) {
    .ep-event-modal-box { padding: 32px 20px; }
}
/* Fact-checked stamp ON the photo, bottom-right corner (owner's option A, 05.10.26) */
.subject-photo.has-stamp { position: relative; }
.subject-photo .subject-verified-stamp { position: absolute; right: -40px; bottom: -40px; width: 170px; height: 170px; margin: 0; z-index: 2; filter: drop-shadow(0 0 1px #000); }
.subject-photo .subject-verified-stamp img,
.subject-photo.force-bw .subject-verified-stamp img { width: 100%; height: 100%; filter: none !important; } /* keep the stamp green on black-and-white photos */
.subject-photo .subject-verified-stamp .stamp-date { font-size: 16px; padding: 2px 8px; background: rgba(8, 8, 8, 0.85); color: #5fd06f; }
@media (max-width: 700px) {
    .subject-photo .subject-verified-stamp { width: 120px; height: 120px; right: -10px; bottom: -20px; }
    .subject-photo .subject-verified-stamp .stamp-date { font-size: 12px; }
}

/* ==================================================================
   "[Year] around this event" (owner 07.10.26) - plugin evidence-events.php
   ep_render_year_strip() (top section, replaces the "Also in" pills) +
   ep_render_year_list() (after the Summary). Site yellow #f5e400; green = Australia.
   ================================================================== */
.ep-year-strip { display: block; text-decoration: none; color: #999; border: 1px solid #262626; border-radius: 8px; padding: 10px 14px 8px; margin: 0 0 18px; background: #0e0e0e; max-width: 640px; }
.ep-ys-top { color: #999; text-decoration: none; }
.ep-ys-top:hover .ep-ys-go, .ep-ys-top:focus-visible .ep-ys-go { color: #f5e400; }
.ep-ys-top:focus-visible { outline: 2px solid #f5e400; outline-offset: 3px; }
.ep-ys-top { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; }
.ep-ys-top b { color: #f5e400; }
.ep-ys-track { position: relative; display: block; height: 34px; margin: 12px 6px 2px; }
.ep-ys-track::before { content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 2px; background: #2a2a2a; }
.ep-ys-dot { position: absolute; top: 12px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #0e0e0e; border: 2px solid #777; box-sizing: content-box; cursor: pointer; transition: transform .12s, border-color .12s, background .12s; z-index: 1; }
/* bigger invisible hit area so the small dots are easy to catch */
.ep-ys-dot::after { content: ""; position: absolute; left: -7px; right: -7px; top: -10px; bottom: -10px; }
a.ep-ys-dot:hover, a.ep-ys-dot:focus-visible { transform: scale(1.5); border-color: #f5e400; background: #f5e400; outline: none; z-index: 5; }
/* hover bubble: date, title, call to action */
.ep-ys-tip { position: absolute; bottom: calc(100% + 12px); left: 50%; transform: translateX(-50%) scale(.6667); transform-origin: bottom center; width: max-content; max-width: 260px; padding: 10px 13px 9px; background: #151515; border: 1px solid #f5e400; border-radius: 8px; box-shadow: 0 8px 24px rgba(0,0,0,.6); text-align: left; text-transform: none; letter-spacing: 0; pointer-events: none; opacity: 0; visibility: hidden; transition: opacity .12s; }
.ep-ys-tip::after { content: ""; position: absolute; top: 100%; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top-color: #f5e400; }
.ep-ys-dot.tip-l .ep-ys-tip { left: -6px; transform: scale(.6667); transform-origin: bottom left; }
.ep-ys-dot.tip-l .ep-ys-tip::after { left: 10px; margin-left: 0; }
.ep-ys-dot.tip-r .ep-ys-tip { left: auto; right: -6px; transform: scale(.6667); transform-origin: bottom right; }
.ep-ys-dot.tip-r .ep-ys-tip::after { left: auto; right: 10px; margin-left: 0; }
a.ep-ys-dot:hover .ep-ys-tip, a.ep-ys-dot:focus-visible .ep-ys-tip { opacity: 1; visibility: visible; }
.ep-ys-tip-date { display: block; font-family: 'Courier New', monospace; font-size: 12px; color: #f5e400; }
.ep-ys-tip-title { display: block; margin-top: 3px; font-size: 14px; font-weight: 700; line-height: 1.3; color: #fff; white-space: normal; }
.ep-ys-tip-go { display: block; margin-top: 6px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #999; }
.ep-ys-dot.au { border-color: #5fbf8a; }
.ep-ys-dot.ep-node { border-radius: 2px; }
.ep-ys-dot.here { top: 8px; width: 18px; height: 18px; margin-left: -9px; background: #f5e400; border: 0; box-shadow: 0 0 0 4px rgba(245,228,0,.22); }
.ep-ys-here { position: absolute; top: -8px; transform: translateX(-100%); margin-left: -13px; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: #f5e400; white-space: nowrap; }
.ep-ys-here.right { transform: none; margin-left: 13px; }
.ep-ys-months { display: flex; justify-content: space-between; margin: 0 6px; font-size: 10px; letter-spacing: 1px; color: #555; }

.ep-yl-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 16px; border-bottom: 1px solid #262600; margin: 0 0 18px; }
.ep-the-year .subject-section-inner .ep-yl-head h2 { border: 0; margin: 0 0 10px; padding: 0; }
.ep-yl-head h2 span { color: #ddd; }
.ep-yl-controls { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.ep-yl-seg { display: inline-flex; border: 1px solid #333; border-radius: 6px; overflow: hidden; }
.ep-yl-seg button { background: transparent; border: 0; color: #999; font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; padding: 7px 10px; cursor: pointer; }
.ep-yl-seg button[aria-pressed="true"] { background: rgba(245,228,0,.12); color: #f5e400; }
.ep-yl-seg button:focus-visible, .ep-yl-item:focus-visible { outline: 2px solid #f5e400; outline-offset: 2px; }
.ep-yl-list { position: relative; padding-left: 86px; }
.ep-yl-list::before { content: ""; position: absolute; left: 66px; top: 6px; bottom: 6px; width: 2px; background: #262626; }
.ep-yl-month { margin: 18px 0 8px -86px; width: 58px; text-align: right; font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: #777; }
.ep-yl-month:first-child { margin-top: 2px; }
.ep-yl-item { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 8px 12px 9px; margin: 0 0 3px; border-radius: 6px; color: #ddd; text-decoration: none; }
.ep-yl-item:hover { background: rgba(255,255,255,.04); color: #fff; }
.ep-yl-item::before { content: ""; position: absolute; left: -25px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: #0e0e0e; border: 2px solid #777; }
.ep-yl-item.au::before { border-color: #5fbf8a; }
.ep-yl-item.ep-node::before { border-radius: 2px; }
.ep-yl-date { min-width: 10.5em; font-family: 'Courier New', monospace; font-size: 13px; color: #888; font-variant-numeric: tabular-nums; }
.ep-yl-approx { color: #666; }
.ep-yl-title { flex: 1 1 240px; min-width: 0; font-weight: 600; }
.ep-yl-rel { font-family: 'Courier New', monospace; font-size: 12px; color: #888; white-space: nowrap; }
.ep-yl-rel b { color: #ccc; font-weight: normal; }
.ep-yl-tag { font-size: 10px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; border-radius: 3px; padding: 3px 5px 2px; }
.ep-yl-tag.au { color: #5fbf8a; border: 1px solid rgba(95,191,138,.45); }
.ep-yl-tag.ep-node { color: #f5e400; border: 1px solid rgba(245,228,0,.4); }
.ep-yl-here { position: relative; margin: 6px 0 10px; padding: 11px 14px; border: 1px solid #f5e400; border-radius: 8px; background: rgba(245,228,0,.08); }
.ep-yl-here::before { content: ""; position: absolute; left: -29px; top: 15px; width: 16px; height: 16px; border-radius: 50%; background: #f5e400; box-shadow: 0 0 0 4px rgba(245,228,0,.22); }
.ep-yl-you { display: block; font-size: 11px; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: #f5e400; }
.ep-yl-here .ep-yl-title { display: block; color: #fff; font-size: 18px; margin-top: 4px; }
.ep-yl-here .ep-yl-date { min-width: 0; color: #bbb; }
.ep-yl-gap { display: none; }
.ep-the-year.to-scale .ep-yl-gap { display: block; height: var(--gap); padding: 2px 12px 0; font-family: 'Courier New', monospace; font-size: 11px; color: #555; }
.ep-the-year.only-au .ep-yl-item:not(.au) { display: none; }
.ep-yl-note { margin: 18px 0 0; padding-top: 10px; border-top: 1px solid #1c1c1c; font-size: 13px; color: #777; }
@media (max-width: 768px) {
    .ep-year-strip { margin-left: auto; margin-right: auto; }
}
@media (max-width: 560px) {
    .ep-ys-track, .ep-ys-months, .ep-ys-key { display: none; }
    .ep-year-strip { padding: 10px 12px; }
    .ep-yl-list { padding-left: 30px; }
    .ep-yl-list::before { left: 10px; }
    .ep-yl-month { margin-left: 0; width: auto; text-align: left; color: #f5e400; }
    .ep-yl-item::before { left: -26px; } .ep-yl-here::before { left: -28px; }
    .ep-yl-date { min-width: 0; }
}

/* Back to the Timeline now sits under the comments (07.10.26) */
.subject-backlink { max-width: 700px; margin: 0 auto 50px; padding: 0 20px; }


/* Node-page minimap: 37+ dots no longer fit at 26px each, so they ran off the bottom of the track and the yellow line stopped short. Let the dots shrink to fit (07.10.26) */
.ep-minimap--nav .ep-minimap-tick { flex: 0 1 26px; min-height: 10px; }


/* Event pop-up: small Fact Checked stamp, top right, clear of the close button (07.10.26) */
.ep-event-stamp { position: relative; float: right; width: 96px; height: 96px; margin: 14px 20px 6px 14px; transform: rotate(4deg); filter: drop-shadow(0 0 1px #000); }
.ep-event-stamp img { width: 100%; height: 100%; display: block; }
.ep-event-stamp .stamp-date { position: absolute; left: 51.5%; top: 54.5%; transform: translate(-50%, -50%) rotate(-9.2deg); font-family: 'Special Elite', 'Courier New', monospace; font-size: 9px; letter-spacing: .5px; white-space: nowrap; padding: 1px 4px; background: rgba(8,8,8,.85); color: #5fd06f; }
@media (max-width: 560px) { .ep-event-stamp { width: 72px; height: 72px; margin: 6px 6px 4px 10px; } .ep-event-stamp .stamp-date { font-size: 7px; } }

/* "[Year] around this event" as a pop-up window (07.10.26). Sits under the event pop-up (z 200) so events open on top of it. */
.ep-year-overlay { position: fixed; inset: 0; z-index: 150; background: rgba(0,0,0,.78); padding: 40px 20px; overflow-y: auto; }
.ep-year-overlay[hidden] { display: none; }
html.ep-year-open { overflow: hidden; }
.ep-year-overlay-box { position: relative; max-width: 760px; margin: 0 auto; background: #0e0e0e; border: 1px solid #333; border-radius: 8px; padding: 34px 30px 24px; color: #ddd; }
.ep-year-overlay-close { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #999; font-size: 28px; line-height: 1; cursor: pointer; padding: 6px; }
.ep-year-overlay-close:hover, .ep-year-overlay-close:focus-visible { color: #f5e400; outline: none; }
.ep-year-overlay .ep-yl-head { padding-right: 34px; }
.ep-year-overlay .ep-yl-head h2 { margin: 0 0 10px; padding: 0; border: 0; font-family: 'Special Elite', 'Courier New', monospace; font-size: 24px; font-weight: normal; color: #f5e400; }
@media (max-width: 560px) { .ep-year-overlay { padding: 12px 8px; } .ep-year-overlay-box { padding: 30px 14px 18px; } .ep-year-overlay .ep-yl-head h2 { font-size: 20px; } }

/* end of the year list: next year on its own, yellow, with a dot closing the line (07.10.26) */
.ep-yl-nextyear { position: relative; margin: 22px 0 0 -86px; width: 58px; text-align: right; font-family: 'Special Elite', 'Courier New', monospace; font-size: 20px; color: #f5e400; }
.ep-yl-nextyear::after { content: ""; position: absolute; left: 63px; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: #f5e400; }
.ep-year-overlay-close { background: transparent !important; box-shadow: none !important; }
@media (max-width: 560px) { .ep-yl-nextyear { margin-left: -30px; width: auto; padding-left: 30px; text-align: left; } .ep-yl-nextyear::after { left: 6px; } }

/* Homepage tile 'Verified' dot removed (owner 07.10.26) - the green stamp on each page does this job */
.callout .verified-badge { display: none !important; }

/* year list key: green = in Australia (owner 17.10.26) */
.ep-yl-key { display: flex; gap: 18px; margin: -8px 0 14px; font-size: 13px; color: #aaa; }
.ep-yl-key span { display: inline-flex; align-items: center; gap: 7px; }
.ep-yl-key span::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #0e0e0e; border: 2px solid #777; }
.ep-yl-key .ep-yl-key-au::before { border-color: #5fbf8a; }

/* affiliation that has its own tree page -> link (owner 17.10.26) */
.np-links li.note a.np-aff-link { color: #f5e400; text-decoration: underline; text-underline-offset: 3px; }
.np-links li.note a.np-aff-link:hover { color: #fff; }

/* strip key under the dots + square = full page (18.10.26) */
.ep-ys-key { margin: 8px 6px 0; font-size: 12px; }
.ep-yl-key .ep-yl-key-node::before { border-radius: 2px; }

/* PERSON TIMELINE MOMENTS (18.10.26) - reuses the node year-strip look; unlike the node strip it stays visible on phones */
.np-moments-wrap { max-width: 900px; margin: 0 auto 28px; padding: 0 20px; }
.np-moments-wrap .np-moments { max-width: none; margin: 0; }
.np-moments .ep-ys-key { white-space: nowrap; }
.ep-year-strip.np-moments .ep-ys-track { display: block; }
.ep-year-strip.np-moments .ep-ys-months { display: flex; }
.ep-year-strip.np-moments .ep-ys-key { display: flex; }
.np-moments span.ep-ys-dot { cursor: default; }
.np-moments span.ep-ys-dot:hover .ep-ys-tip, .np-moments span.ep-ys-dot:focus .ep-ys-tip { opacity: 1; visibility: visible; }
.ep-pm-date { color: #f5e400; font-family: 'Special Elite', 'Courier New', monospace; letter-spacing: 1px; margin: 0 0 4px; }
.ep-pm-media { display: block; width: 100%; height: auto; margin: 12px 0; border: 1px solid #1e1e1e; }
.ep-pm-link { display: inline-block; margin-top: 8px; padding: 8px 14px; border: 1px solid #f5e400; color: #f5e400; text-decoration: none; font-weight: 700; letter-spacing: 1px; }
.ep-pm-link:hover { background: #f5e400; color: #0a0a0a; }
.ep-year-strip.np-moments .ep-ys-months.np-years { display: block; position: relative; height: 14px; margin: 0 6px; }
.np-years span { position: absolute; transform: translateX(-50%); }
.np-years span:first-child { transform: none; }

/* Name links in tree write-ups - every tile named in the text = bold yellow link (owner 18.10.26) */
a.np-autolink, .subject-content a.np-autolink, .event-body a.np-autolink, .ep-event-modal-body a.np-autolink, .np-intro a.np-autolink { color: #f5e400; font-weight: 700; text-decoration: none; }
a.np-autolink:hover, a.np-autolink:focus { text-decoration: underline; }

/* PERSON PAGE HEADER - share buttons clustered on the right (owner 03.11.26, Samir Mohtadi page)
   Cause: .subject-hero was ONE row that couldn't wrap (photo + name + aliases + role + share bar). With a long name
   and a long role everything squeezed - name 157px wide, share bar 114px so its 7 buttons folded into a 2-wide block.
   Fix (desktop only, phones already stack fine): photo on the left, then name / aliases / role / share row stacked
   beside it. Tested on the live Mohtadi + Alsuleiman pages before use.
   UNDO: delete this block from Additional CSS. */
@media (min-width:901px){
  .subject-hero{display:grid!important;grid-template-columns:400px minmax(0,1fr);grid-template-rows:1fr auto auto auto auto 1fr;column-gap:40px;row-gap:10px;align-items:start}
  .subject-hero>.eps-photo-col{grid-column:1;grid-row:1 / -1;width:400px!important;max-width:400px!important}
  .subject-hero>.eps-photo-col+div{grid-column:2;grid-row:2}
  .subject-hero>.eps-photo-col+div>*{margin-bottom:0!important}
  .subject-hero>.subject-aliases{grid-column:2;grid-row:3;max-width:none!important;width:auto!important;margin:0!important}
  .subject-hero>.subject-year{grid-column:2;grid-row:4;max-width:none!important;width:auto!important;margin:0!important}
  .subject-hero>.ep-share-bar{grid-column:2;grid-row:5;width:auto!important;max-width:none!important;flex-wrap:nowrap!important;justify-content:flex-start!important;margin:6px 0 0!important}
  .subject-hero>.ep-share-bar>*:not(.ep-share-btn){margin-left:12px!important;flex:0 0 auto!important;width:auto!important}
}

