:root {
  --navy: #0d2240;
  --navy-deep: #08162b;
  --navy-soft: #1b355c;
  --gold: #b48a3c;
  --gold-soft: #d8b878;
  --red: #b0182b;
  --red-soft: #fbecee;
  --paper: #f5f1e8;
  --paper-2: #ece6d8;
  --ink: #1d232c;
  --muted: #5d6673;
  --line: #d9d2c2;
  --white: #ffffff;
  --serif: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --sans: 'Source Sans 3', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1120px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font: 400 1.0625rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy-soft); text-underline-offset: 3px; }
a:hover { color: var(--red); }
h1, h2, h3 { font-family: var(--serif); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.2rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
strong { color: var(--navy-deep); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 780px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--gold); color: var(--navy-deep); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy-deep); border-bottom: 1px solid rgba(216, 184, 120, .35); }
.header-inner { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--white); text-decoration: none; margin-right: auto; }
.brand:hover { color: var(--white); }
.brand span { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { color: var(--white); font-family: var(--serif); font-size: 1.05rem; letter-spacing: .02em; }
.brand small { color: var(--gold-soft); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; }
.site-nav { display: flex; align-items: center; gap: 2px; }
.site-nav > a, .nav-group > summary {
  color: #d6dbe4; text-decoration: none; font-size: .92rem; font-weight: 600; padding: 8px 10px; border-radius: var(--radius); cursor: pointer;
}
.site-nav > a:hover, .nav-group > summary:hover { color: var(--white); background: rgba(255, 255, 255, .07); }
.site-nav [aria-current="page"] { color: var(--gold-soft); }
.nav-group { position: relative; }
.nav-group > summary { list-style: none; }
.nav-group > summary::-webkit-details-marker { display: none; }
.nav-group > summary::after { content: ' \25BE'; font-size: .8em; }
.nav-menu { position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; background: var(--white); border-top: 3px solid var(--gold); box-shadow: 0 12px 30px rgba(8, 22, 43, .25); padding: 6px 0; }
.nav-menu a { display: flex; gap: 10px; padding: 9px 16px; color: var(--ink); text-decoration: none; font-size: .95rem; }
.nav-menu a b { color: var(--gold); font-family: var(--serif); width: 14px; }
.nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--paper); color: var(--navy); }
.nav-cta { background: var(--gold); color: var(--navy-deep) !important; margin-left: 6px; }
.nav-cta:hover { background: var(--gold-soft) !important; }
.nav-toggle { display: none; background: transparent; color: var(--white); border: 1px solid rgba(255, 255, 255, .35); padding: 7px 14px; border-radius: var(--radius); font: 600 .9rem var(--sans); }

@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--navy-deep); padding: 8px 16px 18px; max-height: calc(100vh - 64px); overflow-y: auto; }
  .site-nav.open { display: flex; }
  .site-nav > a, .nav-group > summary { padding: 12px 8px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav-menu { position: static; box-shadow: none; border-top: 0; background: var(--navy); min-width: 0; }
  .nav-menu a { color: #d6dbe4; }
  .nav-menu a:hover, .nav-menu a[aria-current="page"] { background: var(--navy-soft); color: var(--white); }
  .nav-cta { margin: 10px 0 0; text-align: center; }
}

/* Hero */
.hero { position: relative; background: var(--navy-deep) url('/assets/img/cover-map.jpg') center 70% / cover no-repeat; color: var(--white); overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 22, 43, .92) 0%, rgba(8, 22, 43, .55) 55%, rgba(8, 22, 43, .9) 100%); }
.hero .wrap { position: relative; padding-top: 72px; padding-bottom: 80px; text-align: center; }
.hero-emblem { width: 84px; margin: 0 auto 14px; }
.eyebrow { font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin-bottom: 10px; }
.hero h1 { color: var(--white); letter-spacing: .02em; text-transform: uppercase; margin-bottom: 14px; }
.hero .lede { font-family: var(--serif); font-style: italic; font-size: clamp(1.1rem, 2.2vw, 1.35rem); color: #e8e2d4; max-width: 720px; margin: 0 auto 26px; }
.hero .issuer { font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: #c7cfdb; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: var(--radius); font-weight: 700; text-decoration: none; font-size: .98rem; border: 1px solid transparent; }
.btn-gold { background: var(--gold); color: var(--navy-deep); }
.btn-gold:hover { background: var(--gold-soft); color: var(--navy-deep); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: var(--white); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); color: var(--white); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-soft); color: var(--white); }

/* Page header */
.page-head { background: var(--navy-deep); color: var(--white); padding: 48px 0 40px; border-bottom: 3px solid var(--gold); }
.page-head h1 { color: var(--white); font-size: clamp(1.8rem, 4.2vw, 2.8rem); margin-bottom: 12px; }
.page-head .lede { font-family: var(--serif); font-size: clamp(1.05rem, 2vw, 1.25rem); color: #dfe4ec; max-width: 820px; margin: 0; }
.crumbs { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: 10px; font-weight: 600; }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--paper); }
.section h2 { padding-bottom: 12px; border-bottom: 2px solid var(--gold); margin-bottom: 22px; }
.section h3 { margin-top: 1.6em; }
.lead-para { font-family: var(--serif); font-size: 1.2rem; color: var(--navy); }
.alert { color: var(--red); font-weight: 700; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 820px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; border-left: 4px solid var(--gold); }
.stat { background: var(--paper); padding: 22px 16px; text-align: center; }
.stat .num { font-family: var(--serif); font-weight: 700; font-style: italic; font-size: clamp(2.2rem, 5vw, 3rem); color: var(--navy); line-height: 1; }
.stat .num.red { color: var(--red); }
.stat .lbl { font-size: .9rem; color: var(--muted); margin-top: 8px; font-style: italic; }
@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Findings list */
.findings { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: f; }
.findings li { display: grid; grid-template-columns: 64px 1fr; background: var(--paper); counter-increment: f; }
.findings li::before { content: counter(f); display: flex; align-items: center; justify-content: center; background: var(--navy); color: var(--white); font: 700 1.7rem var(--serif); }
.findings li > div { padding: 14px 18px; }
.findings a { font-weight: 600; font-size: .95rem; }

/* Callouts */
.callout { background: var(--paper); border-left: 6px solid var(--navy); padding: 20px 24px; margin: 28px 0; }
.callout .label { font-size: .85rem; letter-spacing: .2em; font-weight: 700; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.callout p:last-child { margin-bottom: 0; }
.callout-dark { background: var(--navy); border-left-color: var(--gold); color: #e7ebf1; }
.callout-dark .label { color: var(--gold-soft); }
.callout-dark strong { color: var(--white); }
.callout-gold { background: #f7f0e1; border-left-color: var(--gold); }
.callout-gold .label { color: var(--gold); }
.callout-red { background: var(--red-soft); border-left-color: var(--red); }
.callout-red .label { color: var(--red); }

ul.bullets { padding-left: 1.2em; }
ul.bullets li { margin-bottom: .5em; }
ul.bullets li::marker { color: var(--gold); }

/* Tables */
.table-wrap { overflow-x: auto; margin: 20px 0 28px; border-bottom: 2px solid var(--navy); }
table { width: 100%; border-collapse: collapse; font-size: .95rem; }
caption { text-align: left; font-size: .88rem; color: var(--muted); padding: 0 0 8px; caption-side: top; }
caption b { color: var(--navy); }
th { background: var(--navy); color: var(--white); text-align: left; font-weight: 600; padding: 10px 12px; vertical-align: bottom; }
td { padding: 10px 12px; border-top: 1px solid var(--line); vertical-align: top; }
tbody tr:nth-child(even) td { background: #faf8f3; }
tr.hl td { background: #f7f0e1 !important; font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Figures */
figure { margin: 26px 0; }
figure img { border: 1px solid var(--line); background: var(--white); }
figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
figcaption b { color: var(--navy); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; height: 200px; object-fit: cover; cursor: zoom-in; }
.gallery figcaption { font-style: italic; font-size: .85rem; }
.zoomable { cursor: zoom-in; }

/* Sensitive images */
.sensitive { position: relative; overflow: hidden; }
.sensitive img { filter: blur(22px) grayscale(.6); transform: scale(1.05); transition: filter .3s; }
.sensitive.revealed img { filter: none; transform: none; }
.sensitive-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 12px; text-align: center; background: rgba(8, 22, 43, .55); color: var(--white); padding: 60px 20px 20px; }
.sensitive.revealed .sensitive-cover { display: none; }
.sensitive-cover p { margin: 0; max-width: 420px; font-size: .95rem; }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(5, 12, 24, .92); display: none; align-items: center; justify-content: center; z-index: 200; padding: 24px; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 90vh; max-width: 100%; border: 0; }

/* Cards / next links */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.card { display: block; background: var(--white); border: 1px solid var(--line); border-top: 4px solid var(--navy); padding: 20px; text-decoration: none; color: var(--ink); transition: transform .15s, box-shadow .15s; }
.card:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(13, 34, 64, .12); color: var(--ink); }
.card .tag { font-size: .75rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.card h3 { margin: 6px 0 8px; font-size: 1.15rem; }
.card p { font-size: .95rem; color: var(--muted); margin: 0; }
.pager { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); }

/* Timeline */
.timeline { position: relative; margin: 30px 0; padding: 0; list-style: none; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: var(--line); transform: translateX(-1px); }
.timeline li { position: relative; width: 50%; padding: 6px 30px 18px; }
.timeline li.left { text-align: right; }
.timeline li.right { margin-left: 50%; }
.timeline li::before { content: ''; position: absolute; top: 12px; width: 14px; height: 14px; border-radius: 50%; background: var(--c); border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); }
.timeline li.left::before { right: -7px; }
.timeline li.right::before { left: -7px; }
.timeline .date { font-size: .78rem; letter-spacing: .1em; font-weight: 700; color: var(--c); text-transform: uppercase; }
.timeline .ev { font-weight: 700; color: var(--navy-deep); }
.timeline .sub { font-size: .9rem; color: var(--muted); }
.t-build { --c: #7a2e1f; } .t-attack { --c: var(--red); } .t-evidence { --c: var(--gold); } .t-independent { --c: #3b6e95; } .t-diplomatic { --c: var(--navy); }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: var(--muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--c); margin-right: 6px; }
@media (max-width: 720px) {
  .timeline::before { left: 7px; }
  .timeline li, .timeline li.right { width: auto; margin-left: 0; text-align: left; padding: 6px 0 16px 30px; }
  .timeline li.left::before, .timeline li.right::before { left: 0; right: auto; }
}

/* Incident log */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; background: var(--paper); padding: 16px; margin: 20px 0 8px; }
.filters label { display: flex; flex-direction: column; gap: 4px; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--navy); }
.filters select, .filters input { font: 400 .95rem var(--sans); padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); min-width: 150px; }
.filters button { font: 600 .9rem var(--sans); padding: 9px 14px; border: 1px solid var(--navy); background: var(--white); color: var(--navy); border-radius: var(--radius); cursor: pointer; }
.result-count { font-size: .92rem; color: var(--muted); margin: 6px 0 0; }
.pill { display: inline-block; font-size: .78rem; font-weight: 700; padding: 2px 8px; border-radius: 10px; white-space: nowrap; }
.pill-strategic { background: #e3ebf5; color: #1f4b85; }
.pill-suicide { background: #fde6dc; color: #a2401b; }
.pill-unknown { background: #ebebeb; color: #555; }
.empty-state { padding: 30px; text-align: center; color: var(--muted); background: var(--paper); }

/* Charts */
.chart { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; align-items: end; height: 240px; padding: 10px 0 0; border-bottom: 1px solid var(--muted); }
.chart .col { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; text-align: center; }
.chart .bar { display: flex; flex-direction: column-reverse; }
.chart .seg { width: 100%; }
.chart .val { font-size: .85rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.chart-x { display: grid; grid-template-columns: repeat(9, 1fr); gap: 8px; text-align: center; font-size: .82rem; color: var(--muted); padding-top: 6px; }
.seg-strategic { background: #2f6fd1; } .seg-suicide { background: #ea6a2f; } .seg-unknown { background: #a5a5a5; }
.chart-legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-bottom: 8px; }
.chart-legend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; }

/* Map */
#map { height: min(72vh, 680px); min-height: 420px; border: 1px solid var(--line); background: #dfe6ee; }
.map-layout { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.map-side { font-size: .95rem; }
.map-side .key { list-style: none; padding: 0; }
.map-side .key li { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.map-side .sw { width: 22px; height: 4px; flex: none; }
.map-side .dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.map-error { padding: 40px; text-align: center; }
@media (max-width: 900px) { .map-layout { grid-template-columns: 1fr; } }

/* Q&A */
.qa details { border-bottom: 1px solid var(--line); padding: 16px 0; }
.qa summary { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; color: var(--navy); cursor: pointer; list-style: none; display: flex; gap: 12px; }
.qa summary::before { content: 'Q.'; color: var(--gold); }
.qa summary::-webkit-details-marker { display: none; }
.qa details p { margin: 12px 0 0 34px; }

/* Glossary */
dl.glossary { display: grid; grid-template-columns: 180px 1fr; gap: 0; }
dl.glossary dt, dl.glossary dd { margin: 0; padding: 10px 12px; border-top: 1px solid var(--line); }
dl.glossary dt { font-weight: 700; color: var(--navy); }
@media (max-width: 600px) { dl.glossary { grid-template-columns: 1fr; } dl.glossary dd { border-top: 0; padding-top: 0; } }

ol.sources { font-size: .92rem; color: var(--muted); padding-left: 1.6em; }
ol.sources li { margin-bottom: .5em; }
sup.fn a { color: var(--gold); text-decoration: none; font-weight: 700; font-size: .8em; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #b9c2cf; padding: 44px 0 30px; margin-top: 0; font-size: .92rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; }
.footer-title { color: var(--gold-soft); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; font-size: .78rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: #dde3ec; text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr; } }

@media print {
  .site-header, .site-footer, .filters, .pager { display: none; }
  .sensitive img { filter: none; }
}
