:root {
  color-scheme: light;
  --navy: #003a5f;
  --blue: #0f76d7;
  --link: #0b63b6;
  --burgundy: #852438;
  --gold: #c79624;
  --light-blue: #a7e2fc;
  --pale-blue: #e0f6ff;
  --ink: #07151e;
  --muted: #586873;
  --page: #f8f8f8;
  --surface: #ffffff;
  --subtle: #f2f1f0;
  --border: #c9d3da;
  --focus: #0f76d7;
  --shadow: 0 16px 44px rgba(0, 58, 95, .09);
  --header: rgba(248, 248, 248, .94);
  --content: 1280px;
  --reading: 72ch;
  --radius: 12px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --navy: #a7e2fc;
  --blue: #7dcfff;
  --link: #7dcfff;
  --burgundy: #e38a9d;
  --gold: #e4bf58;
  --light-blue: #164a66;
  --pale-blue: #15374a;
  --ink: #f8f8f8;
  --muted: #c5d2da;
  --page: #071a27;
  --surface: #0d2737;
  --subtle: #15374a;
  --border: #718c9b;
  --focus: #a7e2fc;
  --shadow: 0 16px 44px rgba(0, 0, 0, .3);
  --header: rgba(7, 26, 39, .94);
}

@media (prefers-color-scheme: dark) {
  html[data-theme="system"] {
    color-scheme: dark;
    --navy: #a7e2fc;
    --blue: #7dcfff;
    --link: #7dcfff;
    --burgundy: #e38a9d;
    --gold: #e4bf58;
    --light-blue: #164a66;
    --pale-blue: #15374a;
    --ink: #f8f8f8;
    --muted: #c5d2da;
    --page: #071a27;
    --surface: #0d2737;
    --subtle: #15374a;
    --border: #718c9b;
    --focus: #a7e2fc;
    --shadow: 0 16px 44px rgba(0, 0, 0, .3);
    --header: rgba(7, 26, 39, .94);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: Inter, "Atkinson Hyperlegible", Arial, Helvetica, sans-serif; font-size: 16px; line-height: 1.55; }
a { color: var(--link); text-underline-offset: .2em; }
a:hover { color: var(--blue); }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.skip-link { position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--surface); border: 2px solid var(--focus); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.section-shell { width: min(calc(100% - 40px), var(--content)); margin-inline: auto; }
.eyebrow, .card-kicker { margin: 0 0 10px; color: var(--link); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 22px; font-size: clamp(2.35rem, 5vw, 4.7rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { margin-bottom: 14px; font-size: clamp(1.75rem, 3vw, 2.7rem); line-height: 1.12; letter-spacing: -.025em; }
h3 { font-size: 1.18rem; line-height: 1.25; }

.site-header { position: sticky; top: 0; z-index: 50; background: var(--header); border-bottom: 1px solid color-mix(in srgb, var(--border) 74%, transparent); backdrop-filter: blur(14px); }
.header-inner, .header-main { width: min(calc(100% - 32px), var(--content)); min-height: 68px; margin: auto; display: flex; align-items: center; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 46px; height: 38px; background: #003a5f; color: white; border-radius: 7px; font-size: .9rem; font-weight: 900; letter-spacing: .1em; }
.brand-text { display: grid; line-height: 1.1; }
.brand-text strong { font-size: .9rem; }
.brand-text span { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.primary-nav { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.programme-nav { width: min(calc(100% - 32px), var(--content)); margin: 0 auto; padding-bottom: 10px; display: grid; grid-template-columns: repeat(8,minmax(0,1fr)); gap: 3px; }
.nav-link, .nav-group summary { min-height: 44px; display: flex; align-items: center; padding: 0 11px; border-radius: 7px; color: var(--ink); font-size: .88rem; font-weight: 700; text-decoration: none; cursor: pointer; list-style: none; }
.programme-nav .nav-link { min-height: 38px; justify-content: center; padding: 5px 8px; border: 1px solid transparent; font-size: .76rem; line-height: 1.15; text-align: center; }
.programme-nav .nav-link:hover, .programme-nav .nav-link.is-active, .programme-nav .nav-link.is-section-parent { border-color: var(--border); }
.nav-group summary::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-link.is-active, .nav-group summary:hover, .nav-group[open] summary { background: var(--subtle); color: var(--navy); }
.nav-group { position: relative; }
.nav-group summary::after { content: "⌄"; margin-left: 6px; color: var(--muted); }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px; padding: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.nav-menu a { display: block; padding: 10px 12px; border-radius: 6px; color: var(--ink); font-size: .88rem; text-decoration: none; }
.nav-menu a:hover { background: var(--subtle); color: var(--navy); }
.theme-toggle, .menu-toggle { min-height: 44px; padding: 0 12px; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.theme-toggle { margin-left: auto; display: inline-flex; gap: 7px; align-items: center; }
.menu-toggle { display: none; }

.hero { min-height: 740px; padding-block: clamp(70px, 9vw, 128px); display: grid; grid-template-columns: minmax(0, 1.16fr) minmax(350px, .72fr); align-items: center; gap: clamp(42px, 6vw, 84px); }
.hero-copy { max-width: 780px; }
.hero-deck { max-width: 30ch; margin: -7px 0 22px; color: var(--navy); font-size: clamp(1.2rem, 2.2vw, 1.65rem); font-weight: 800; line-height: 1.28; letter-spacing: -.015em; }
.hero-lead { max-width: 66ch; margin-bottom: 22px; color: var(--muted); font-size: clamp(1.02rem, 1.5vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 14px; padding: 0 18px; border: 1px solid var(--navy); border-radius: 8px; font-weight: 800; text-decoration: none; }
.button-primary { background: #003a5f; color: white; }
.button-primary:hover { background: #0f76d7; color: white; }
.button-secondary { background: transparent; color: var(--navy); }
.safeguard { max-width: 65ch; margin: 28px 0 0; padding-left: 14px; border-left: 3px solid var(--light-blue); color: var(--muted); font-size: .92rem; }
.safeguard strong { color: var(--ink); }
.five-eyes-flags { margin: 0 0 24px; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; list-style: none; }
.five-eyes-flags li { min-height: 32px; padding: 4px 9px; display: inline-flex; gap: 7px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: .72rem; font-weight: 750; white-space: nowrap; }
.five-eyes-flags li > span:first-child { font-size: 1rem; line-height: 1; }
.home-path-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
.home-path-card { min-height: 132px; padding: 17px; display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 13px; align-items: start; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 9px; text-decoration: none; transition: transform .18s ease,border-color .18s ease,box-shadow .18s ease; }
.home-path-card:hover { transform: translateY(-2px); color: var(--ink); border-color: var(--blue); box-shadow: var(--shadow); }
.home-path-explore,
.home-path-insights { background: #003a5f; color: white; border-color: #003a5f; }
.home-path-explore:hover,
.home-path-insights:hover { color: white; background: #07517f; }
.home-path-explore .card-arrow,
.home-path-insights .card-arrow { color: #a7e2fc; }
.home-path-card > span:nth-child(2) { min-width: 0; display: grid; gap: 6px; }
.home-path-card strong { font-size: .95rem; line-height: 1.25; }
.home-path-card small { color: var(--muted); font-size: .74rem; line-height: 1.45; }
.home-path-explore small,
.home-path-insights small { color: #dceef6; }
.path-icon { width: 34px; height: 34px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.hero-evidence { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.evidence-heading { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.evidence-heading h2 { margin: 0; font-size: 1.35rem; }
.release-badge { padding: 5px 8px; background: var(--pale-blue); color: var(--navy); border-radius: 5px; font-size: .72rem; font-weight: 900; }
.total-row { margin: 26px 0 24px; padding-bottom: 20px; display: flex; justify-content: space-between; align-items: end; border-bottom: 1px solid var(--border); color: var(--muted); }
.total-row strong { color: var(--ink); font-size: 2.3rem; line-height: .9; }
.bar-row + .bar-row { margin-top: 18px; }
.bar-label { margin-bottom: 7px; display: flex; justify-content: space-between; gap: 12px; font-size: .86rem; }
.bar-track { height: 10px; background: var(--subtle); border-radius: 999px; overflow: hidden; }
.bar-fill { display: block; width: var(--bar-size); height: 100%; border-radius: inherit; }
.bar-civm { background: #0f76d7; }
.bar-attack { background: #003a5f; }
.bar-plot { background: #78bfdc; }
.card-note { margin: 24px 0 0; color: var(--muted); font-size: .79rem; }

.scope-band { background: #003a5f; color: white; }
.scope-inner { padding-block: 32px; display: grid; grid-template-columns: .75fr 2fr; gap: 40px; align-items: center; }
.scope-band .eyebrow { color: #a7e2fc; }
.scope-intro h2 { margin: 0; font-size: 1.5rem; }
.scope-stats { margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); }
.scope-stats div { min-height: 76px; padding: 5px 18px; border-left: 1px solid rgba(255,255,255,.23); }
.scope-stats dt { color: #c9e7f4; font-size: .74rem; }
.scope-stats dd { margin: 8px 0 0; font-size: 1.35rem; font-weight: 900; line-height: 1.05; }
.scope-stats dd span { display: block; margin-top: 5px; color: #c9e7f4; font-size: .68rem; font-weight: 600; }
.scope-stats dd .scope-stat-value { margin-top: 0; color: inherit; font-size: inherit; font-weight: inherit; }

.content-section { padding-block: clamp(68px, 8vw, 110px); }
.section-heading { margin-bottom: 34px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 50px; align-items: end; }
.section-heading h2 { margin-bottom: 0; }
.section-heading > p { max-width: 55ch; margin-bottom: 5px; color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-card { min-height: 154px; padding: 25px; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: start; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.feature-card:hover { transform: translateY(-3px); border-color: var(--blue); box-shadow: var(--shadow); color: var(--ink); }
.feature-primary { background: var(--pale-blue); }
.feature-icon { display: grid; place-items: center; width: 42px; height: 42px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; color: var(--navy); font-size: 1.4rem; }
.feature-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature-content { display: grid; gap: 8px; }
.feature-content strong { font-size: 1.16rem; }
.feature-content span { max-width: 52ch; color: var(--muted); font-size: .9rem; }
.card-arrow { color: var(--blue); font-size: 1.35rem; }
.feature-digital-use { grid-column: 1 / -1; }

.evidence-section { background: var(--subtle); }
.evidence-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; list-style: none; }
.evidence-card { min-height: 210px; padding: 22px; background: var(--surface); border-top: 5px solid; border-radius: 5px var(--radius) var(--radius) var(--radius); }
.evidence-card > span { color: var(--muted); font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.evidence-card strong { display: block; margin: 30px 0 10px; }
.evidence-card p { color: var(--muted); font-size: .88rem; }
.observed { border-color: #003a5f; }
.statistical { border-color: #0f76d7; }
.interpretation { border-color: #6f767f; }
.question { border-color: #a7e2fc; }

.definition-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.definition-card { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.definition-code { color: var(--blue); font-size: .72rem; font-weight: 900; letter-spacing: .12em; }
.definition-card p:not(.definition-code) { min-height: 75px; color: var(--muted); }
.definition-card a { font-weight: 800; }

.trust-section { padding-block: clamp(62px, 7vw, 90px); background: var(--pale-blue); }
.trust-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(45px, 8vw, 100px); }
.trust-layout > div:first-child > p:last-child { max-width: 60ch; color: var(--muted); }
.trust-links { border-top: 1px solid var(--border); }
.trust-links a { padding: 18px 4px; display: grid; gap: 4px; color: var(--ink); border-bottom: 1px solid var(--border); text-decoration: none; }
.trust-links a:hover strong { color: var(--blue); }
.trust-links span { color: var(--muted); font-size: .85rem; }

.site-footer { padding-block: 44px; background: #002c48; color: white; }
.footer-grid { display: grid; grid-template-columns: .8fr 1fr 1.5fr; gap: 36px; align-items: start; }
.footer-grid p { margin: 5px 0 0; color: #c9e7f4; font-size: .82rem; }
.footer-release { display: flex; flex-wrap: wrap; gap: 7px; }
.footer-release span { padding: 4px 7px; border: 1px solid rgba(255,255,255,.25); border-radius: 4px; color: #dceef6; font-size: .7rem; }
.site-footer .citation { margin: 0; line-height: 1.55; }
.site-footer a { color: #a7e2fc; }

/* Programme article pages */
.programme-hero { padding-block: clamp(58px,7vw,92px) 42px; display: grid; grid-template-columns: minmax(0,1.2fr) minmax(350px,.65fr); gap: clamp(40px,7vw,90px); align-items: end; }
.programme-hero h1 { max-width: 850px; }
.programme-standfirst { max-width: 72ch; margin: 0; color: var(--muted); font-size: clamp(1.08rem,1.8vw,1.3rem); line-height: 1.65; }
.programme-status { margin: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.programme-status > div { min-height: 96px; padding: 16px; display: grid; align-content: center; background: var(--surface); }
.programme-status dt { color: var(--muted); font-size: .7rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.programme-status dd { margin: 7px 0 0; font-size: .96rem; font-weight: 850; }
.programme-status dd span { display: block; margin-top: 3px; color: var(--muted); font-size: .7rem; font-weight: 650; }
.article-shell { padding-block: 26px 100px; display: grid; grid-template-columns: 220px minmax(0,850px); justify-content: center; gap: clamp(46px,7vw,90px); align-items: start; }
.reading-nav { position: sticky; top: 178px; padding: 18px 0; display: grid; gap: 2px; border-top: 3px solid var(--navy); border-bottom: 1px solid var(--border); }
.reading-nav strong { padding: 0 10px 10px; font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.reading-nav a { padding: 7px 10px; color: var(--muted); border-radius: 5px; font-size: .79rem; font-weight: 700; text-decoration: none; }
.reading-nav a:hover { background: var(--subtle); color: var(--navy); }
.article-copy { min-width: 0; }
.article-copy > section { padding-block: 44px; border-top: 1px solid var(--border); scroll-margin-top: 175px; }
.article-copy > section:first-child { padding-top: 0; border-top: 0; }
.article-copy h2 { max-width: 22ch; font-size: clamp(1.85rem,3.2vw,2.7rem); }
.article-copy > section > p:not(.article-label):not(.article-link-row):not(.citation-note) { max-width: var(--reading); color: var(--muted); font-size: 1.02rem; line-height: 1.75; }
.article-label { margin: 0 0 9px; color: var(--link); font-size: .76rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.method-note { max-width: var(--reading); margin-top: 28px; padding: 18px 20px; background: var(--pale-blue); border-left: 4px solid var(--blue); border-radius: 6px; }
.method-note strong { display: block; margin-bottom: 5px; font-size: .76rem; letter-spacing: .07em; text-transform: uppercase; }
.method-note p { margin: 0; color: var(--muted); }
.research-question-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; }
.research-question-grid article { min-height: 205px; padding: 21px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.research-question-grid article > span { color: var(--link); font-size: .72rem; font-weight: 900; letter-spacing: .08em; }
.research-question-grid h3 { margin: 25px 0 9px; }
.research-question-grid p { margin: 0; color: var(--muted); font-size: .88rem; }
.about-figure { margin: 30px 0 12px; padding: 14px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.historical-figure-badge { margin: 0 0 10px; padding: 8px 10px; display: block; background: #fff4d6; color: #5a3a00; border-left: 4px solid #b5861b; border-radius: 4px; font-size: .72rem; font-weight: 850; letter-spacing: .02em; }
.about-figure img { width: 100%; height: auto; display: block; background: #fff; border-radius: 6px; }
.about-figure figcaption { padding: 14px 6px 3px; color: #43545f; font-size: .84rem; line-height: 1.55; }
.portrait-figure { max-width: 690px; margin-inline: auto; }
.timeline-figure { width: min(1120px,calc(100vw - 56px)); margin-left: min(0px,calc((850px - min(1120px,calc(100vw - 56px))) / 2)); }
.figure-description { margin-top: 10px; padding: 10px 13px; background: var(--subtle); border: 1px solid var(--border); border-radius: 6px; }
.figure-description summary { color: var(--navy); font-size: .8rem; font-weight: 800; cursor: pointer; }
.figure-description p { margin: 12px 0 3px; color: var(--muted); font-size: .84rem; }
.article-link-row { margin: 22px 0 0; }
.article-link-row a { font-weight: 850; }
.programme-stat-grid { margin: 28px 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 8px; }
.programme-stat-grid > div { min-height: 125px; padding: 16px; background: var(--surface); border-top: 4px solid var(--navy); border-radius: 5px; }
.programme-stat-grid dt { color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; }
.programme-stat-grid dd { margin: 13px 0 5px; font-size: 2rem; font-weight: 900; line-height: 1; }
.programme-stat-grid span { color: var(--muted); font-size: .7rem; }
.article-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 9px; }
.evidence-key-list { margin: 26px 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: 8px; }
.evidence-key-list > div { min-height: 132px; padding: 18px; background: var(--surface); }
.evidence-key-list strong { color: var(--navy); }
.evidence-key-list p { margin: 8px 0 0; color: var(--muted); font-size: .85rem; }
.article-copy > .citation-panel { margin-top: 20px; padding: 32px; background: var(--pale-blue); border: 0; border-radius: var(--radius); }
.citation-panel > p { color: var(--ink) !important; }
.citation-note { margin-bottom: 0; color: var(--muted) !important; font-size: .84rem; }

/* Dual analytical experience */
.laboratory-hero,.insights-hero { padding-block: clamp(62px,8vw,108px) 56px; display: grid; grid-template-columns: minmax(0,1.15fr) minmax(350px,.65fr); gap: clamp(40px,7vw,90px); align-items: end; }
.laboratory-hero h1,.insights-hero h1 { max-width: 760px; }
.laboratory-status,.insight-release-card { padding: 25px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.laboratory-status h2,.insight-release-card h2 { font-size: 1.35rem; }
.laboratory-status p:not(.card-kicker),.insight-release-card > p:last-child { color: var(--muted); font-size: .84rem; }
.laboratory-status a { font-size: .82rem; font-weight: 850; }
.laboratory-principles { padding-block: 21px; background: #003a5f; color: white; }
.laboratory-principles .section-shell { display: grid; grid-template-columns: repeat(2,1fr); gap: 34px; }
.laboratory-principles p { margin: 0; color: #dceef6; font-size: .86rem; }
.laboratory-principles strong { color: white; }
.comparison-mode-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 13px; }
.comparison-mode-card { min-height: 300px; padding: 25px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-top: 5px solid var(--border); border-radius: 6px var(--radius) var(--radius) var(--radius); }
.comparison-mode-card.is-live { border-top-color: var(--blue); background: var(--pale-blue); }
.mode-number { width: 36px; height: 36px; display: grid; place-items: center; background: var(--subtle); color: var(--navy); border-radius: 7px; font-size: .8rem; font-weight: 900; }
.comparison-mode-card h3 { margin: 28px 0 12px; }
.comparison-mode-card > p:not(.mode-status) { color: var(--muted); font-size: .9rem; }
.comparison-mode-card .mode-status,.comparison-mode-card > a { margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--border); font-size: .76rem; font-weight: 850; }
.comparison-mode-card .mode-status { color: var(--muted); }
.laboratory-workspace-section { background: var(--subtle); }
.laboratory-workspace-preview { padding: 1px; display: grid; grid-template-columns: minmax(300px,.62fr) minmax(0,1.38fr); gap: 1px; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.workspace-controls { padding: 20px; display: grid; gap: 9px; background: var(--surface); }
.workspace-control { min-height: 67px; padding: 12px 13px; display: grid; align-content: center; background: var(--page); border: 1px solid var(--border); border-radius: 6px; }
.workspace-control span,.workspace-output-heading span,.workspace-metadata dt { color: var(--muted); font-size: .66rem; font-weight: 850; text-transform: uppercase; letter-spacing: .06em; }
.workspace-control strong { margin-top: 4px; font-size: .78rem; }
.workspace-output { min-width: 0; padding: 25px; background: var(--surface); }
.workspace-output-heading { display: flex; justify-content: space-between; gap: 20px; }
.workspace-output-heading > div { display: grid; gap: 5px; }
.preview-badge { padding: 5px 8px; align-self: start; background: var(--subtle); border: 1px solid var(--border); border-radius: 5px; }
.workspace-placeholder { min-height: 285px; margin: 24px 0 18px; padding: 28px; display: flex; align-items: end; gap: 7%; background: linear-gradient(to top,var(--border) 1px,transparent 1px) 0 0/100% 25%,var(--page); border: 1px solid var(--border); border-radius: 7px; }
.workspace-placeholder span { width: 14%; height: var(--height); background: color-mix(in srgb,var(--blue) 70%,var(--surface)); border: 1px solid var(--navy); border-radius: 4px 4px 0 0; }
.workspace-placeholder span:nth-child(1) { --height:34%; }.workspace-placeholder span:nth-child(2) { --height:62%; }.workspace-placeholder span:nth-child(3) { --height:47%; }.workspace-placeholder span:nth-child(4) { --height:83%; }.workspace-placeholder span:nth-child(5) { --height:69%; }
.workspace-metadata { margin: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 1px; background: var(--border); }
.workspace-metadata div { min-height: 80px; padding: 11px; background: var(--surface); }
.workspace-metadata dd { margin: 6px 0 0; font-size: .72rem; font-weight: 750; }
.boundary-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.boundary-grid article { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.boundary-grid article > strong { color: var(--navy); font-size: 1.1rem; }
.boundary-grid ul { margin: 17px 0 0; padding-left: 20px; color: var(--muted); }
.boundary-grid li + li { margin-top: 8px; }

.insights-hero-actions { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 10px; }
.insight-release-card dl { margin: 22px 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 1px; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: 7px; }
.insight-release-card dl div { min-height: 71px; padding: 10px; display: grid; align-content: center; background: var(--surface); }
.insight-release-card dt { color: var(--muted); font-size: .64rem; font-weight: 850; text-transform: uppercase; }
.insight-release-card dd { margin: 4px 0 0; font-size: .8rem; font-weight: 850; }
.insight-history { margin-top: 15px; padding-top: 13px; border-top: 1px solid var(--border); }
.insight-history summary { color: var(--navy); font-size: .75rem; font-weight: 850; cursor: pointer; }
.insight-history p { margin: 10px 0 0; color: var(--muted); font-size: .74rem; }
.evidence-classification-band { padding-block: 27px; background: var(--subtle); border-block: 1px solid var(--border); }
.evidence-classification-band .section-shell { display: grid; grid-template-columns: .85fr 1.15fr; gap: 35px; align-items: center; }
.evidence-classification-band h2 { margin: 0; font-size: 1.45rem; }
.evidence-classification-band ul { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2,1fr); gap: 9px 14px; list-style: none; }
.evidence-classification-band li { display: flex; gap: 8px; align-items: center; font-size: .76rem; font-weight: 800; }
.classification-dot { width: 13px; height: 13px; flex: 0 0 auto; border: 3px solid; border-radius: 999px; }
.classification-dot.observed { border-color: #003a5f; }.classification-dot.statistical { border-color: #0f76d7; }.classification-dot.interpretation { border-color: #6f767f; }.classification-dot.question { border-color: #a7e2fc; }
.programme-insights { display: grid; gap: 24px; }
#programme-insights,#analysis-lab { scroll-margin-top: 180px; }
.programme-insights > .section-heading { margin-bottom: 8px; }
.insight-card { padding: 26px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.programme-insights > .insight-card + .insight-card { margin-top: 32px; }
.insight-card-header { margin-bottom: 24px; padding-bottom: 19px; display: flex; justify-content: space-between; gap: 25px; border-bottom: 1px solid var(--border); }
.insight-card-header h3 { margin: 10px 0 0; font-size: 1.45rem; }
.insight-classification { padding: 4px 7px; display: inline-flex; border-left: 4px solid; background: var(--subtle); color: var(--ink); font-size: .68rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
.insight-classification.observed { border-color: #003a5f; }
.figure-version { flex: 0 0 auto; display: grid; justify-items: end; color: var(--muted); font-size: .66rem; }
.figure-version strong { color: var(--ink); font-size: .8rem; }
.insight-figure-layout { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(315px,.8fr); gap: 30px; }
.fixed-figure { min-width: 0; margin: 0; }
.fixed-figure > figcaption { margin-bottom: 24px; display: flex; justify-content: space-between; gap: 20px; }
.fixed-figure > figcaption span { color: var(--muted); font-size: .72rem; }
.fixed-bars { display: grid; gap: 21px; }
.fixed-bar-row > div { margin-bottom: 7px; display: flex; justify-content: space-between; gap: 15px; }
.fixed-bar-row > div span { font-size: .84rem; font-weight: 800; }
.fixed-bar-row > div strong { font-size: .83rem; }.fixed-bar-row > div small { color: var(--muted); font-weight: 650; }
.fixed-track { height: 30px; display: block; background: var(--subtle); border-radius: 4px; overflow: hidden; }
.fixed-fill { width: var(--value); height: 100%; display: block; border-right: 1px solid var(--ink); }
.insight-civm { background: #0f76d7; }.insight-attack { background: #7d3042; }.insight-plot { background: #c79624; }
.figure-rounding-note { margin: 17px 0 0; color: var(--muted); font-size: .7rem; }
.fixed-figure-actions { margin-top: 12px; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 3px 7px; align-items: center; border-top: 1px solid var(--border); }
.fixed-figure-actions .text-button { font-size: .7rem; }
.fixed-figure-actions [role="status"] { color: var(--muted); font-size: .7rem; }
.table-note { color: var(--muted); font-size: .75rem; font-weight: 500; }
.insight-explanation { display: grid; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 7px; overflow: hidden; }
.insight-explanation div { padding: 13px 15px; background: var(--surface); }
.insight-explanation strong { font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.insight-explanation p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.55; }
.context-insight-card { border-top: 5px solid var(--navy); }
.context-insight-kpis { margin-top: 0; }
.context-insight-kpis .context-insight-population { font-size: 1.02rem; line-height: 1.2; }
.context-insight-chart { min-height: 420px; overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 7px; }
.context-insight-chart svg { width: 100%; min-width: 720px; height: auto; display: block; }
.context-insight-chart [tabindex]:focus { outline: 3px solid #0f76d7; outline-offset: 3px; }
.context-insight-source-list ul { margin: 0; padding-left: 19px; }
.context-insight-source-list li + li { margin-top: 8px; }
.context-insight-source-list small { color: var(--muted); }
.insight-roadmap-heading { margin-top: 18px; padding-top: 28px; border-top: 1px solid var(--border); }
.insight-roadmap-heading h3 { margin-bottom: 8px; font-size: 1.35rem; }
.insight-roadmap-heading > p:last-child { max-width: 80ch; margin: 0; color: var(--muted); }
.insight-quarterly-note { margin-top: 22px; }
.air-stacked { height: 72px; display: flex; overflow: hidden; background: var(--subtle); border: 1px solid var(--border); border-radius: 6px; }
.air-segment { width: var(--value); min-width: 2px; display: grid; place-items: center; color: white; border-right: 1px solid rgba(255,255,255,.5); font-size: .7rem; font-weight: 900; }
.air-higher-fill { background: #852438; }.air-moderate-fill { background: #c79624; color: #202020; }.air-nil-fill { background: #003a5f; }.air-lower-fill { background: #dbc974; color: #202020; }.air-unknown-fill { background: #87949c; }
.air-legend { margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 7px; list-style: none; }
.air-legend li { min-width: 0; padding: 8px; display: grid; grid-template-columns: 12px 1fr; gap: 2px 7px; align-items: center; background: var(--page); border: 1px solid var(--border); border-radius: 5px; }
.air-legend li > span { width: 12px; height: 12px; display: block; border-radius: 2px; }
.air-legend strong { min-width: 0; overflow-wrap: anywhere; font-size: .68rem; }
.air-legend small { grid-column: 2; color: var(--muted); font-size: .62rem; }
.insights-development-note { margin-top: 16px; padding: 27px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; background: var(--pale-blue); border-left: 5px solid var(--blue); border-radius: 6px; }
.insights-development-note h3 { margin-bottom: 8px; }
.insights-development-note p:not(.eyebrow) { margin: 0; max-width: 76ch; color: var(--muted); font-size: .86rem; }

/* Case Explorer */
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }
.nav-current > summary { background: var(--subtle); color: var(--navy); }
.nav-menu a[aria-current="page"] { background: var(--pale-blue); color: var(--navy); font-weight: 800; }
.explorer-page { background: var(--page); }
.explorer-intro { padding-block: 58px 34px; display: grid; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); gap: 34px; align-items: end; }
.explorer-title-block h1 { margin-bottom: 16px; font-size: clamp(2.7rem, 6vw, 5.4rem); }
.explorer-title-block > p:last-child { max-width: 68ch; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.release-panel { padding: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.release-panel div { min-height: 74px; padding: 12px; display: grid; align-content: center; background: var(--surface); }
.release-panel span { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.release-panel strong { margin-top: 5px; font-size: .94rem; }
.page-safeguard { grid-column: 1 / -1; padding: 13px 16px; display: flex; gap: 9px; background: var(--pale-blue); border-left: 4px solid var(--blue); border-radius: 5px; color: var(--muted); font-size: .86rem; }
.page-safeguard strong { color: var(--ink); white-space: nowrap; }

.explorer-workspace { padding-bottom: 34px; }
.filter-panel { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.filter-heading { margin-bottom: 18px; display: flex; justify-content: space-between; gap: 20px; align-items: end; }
.filter-heading h2 { margin: 0; font-size: 1.45rem; }
.filter-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.text-button { min-height: 38px; padding: 5px 9px; background: transparent; color: var(--navy); border: 0; border-radius: 5px; font-weight: 800; cursor: pointer; }
.text-button:hover { background: var(--subtle); color: var(--blue); }
.filter-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.filter-grid-primary { grid-template-columns: minmax(250px,1.65fr) repeat(5,minmax(125px,1fr)); }
.filter-field { display: grid; gap: 6px; color: var(--muted); font-size: .74rem; font-weight: 800; }
.filter-field input, .filter-field select, .results-actions select { width: 100%; min-height: 45px; padding: 8px 11px; background: var(--page); color: var(--ink); border: 1px solid var(--border); border-radius: 7px; font-weight: 600; }
.filter-field input::placeholder { color: color-mix(in srgb,var(--muted) 78%, transparent); font-weight: 500; }
.advanced-filters { margin-top: 16px; border-top: 1px solid var(--border); }
.advanced-filters > summary { min-height: 48px; display: flex; align-items: center; gap: 8px; color: var(--navy); font-size: .86rem; font-weight: 800; cursor: pointer; }
.advanced-filters > summary span:not(:empty) { min-width: 22px; height: 22px; display: inline-grid; place-items: center; background: var(--navy); color: var(--surface); border-radius: 999px; font-size: .68rem; }
.sensitive-characteristics { margin-top: 16px; padding: 0 14px 14px; background: var(--subtle); border: 1px solid var(--border); border-radius: 8px; }
.sensitive-characteristics > summary { min-height: 46px; display: flex; align-items: center; color: var(--navy); font-size: .86rem; font-weight: 800; cursor: pointer; }
.sensitive-filter-note { margin: 15px 0 0; padding: 11px 13px; background: var(--subtle); border-radius: 6px; color: var(--muted); font-size: .78rem; }
.sensitive-filter-note strong { color: var(--ink); }
.active-filter-chips { margin-top: 15px; display: flex; flex-wrap: wrap; gap: 7px; }
.active-filter-chips:empty { display: none; }
.filter-chip { min-height: 34px; padding: 5px 9px; display: inline-flex; align-items: center; gap: 7px; background: var(--pale-blue); color: var(--ink); border: 1px solid var(--border); border-radius: 999px; font-size: .75rem; font-weight: 750; cursor: pointer; }
.filter-chip::after { content: "×"; color: var(--link); font-size: 1rem; line-height: 1; }
.filter-status { margin: 17px 0 0; color: var(--muted); font-size: .8rem; }

.case-summary { padding-block: 36px 24px; }
.compact-heading { margin-bottom: 22px; }
.compact-heading h2 { font-size: 1.7rem; }
.metric-grid { margin: 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.metric-grid > div { min-height: 138px; padding: 19px; display: grid; align-content: start; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; }
.metric-grid dt { color: var(--muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.metric-grid dd { margin: 13px 0 6px; font-size: clamp(1.6rem,3vw,2.35rem); font-weight: 900; line-height: 1; }
.metric-grid span { color: var(--muted); font-size: .7rem; }
.small-cell-warning { margin: 12px 0 0; padding: 12px 14px; background: #fff4d6; color: #5a3a00; border-left: 4px solid #b5861b; border-radius: 5px; font-size: .86rem; }
html[data-theme="dark"] .small-cell-warning { background: #3d3014; color: #ffe4a1; }
@media (prefers-color-scheme: dark) { html[data-theme="system"] .small-cell-warning { background: #3d3014; color: #ffe4a1; } }
.release-review-notice {
  margin: 18px 0 0;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--gold) 55%, var(--border));
  border-left: 5px solid var(--gold);
  border-radius: 8px;
  background: color-mix(in srgb, var(--gold) 10%, var(--surface));
  color: var(--ink);
  font-size: .9rem;
  line-height: 1.55;
}
.release-review-notice strong { color: var(--ink); }
.release-review-notice a { font-weight: 700; }

.visual-section { padding-block: 16px 48px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(350px,.65fr); gap: 14px; }
.visual-card { padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.visual-heading { min-height: 50px; margin-bottom: 12px; display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.visual-heading h2 { margin: 0; font-size: 1.22rem; }
.visual-heading h3 { margin: 0; font-size: 1.15rem; }
.visual-heading a { font-size: .75rem; font-weight: 800; }
.visual-heading-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; align-items: end; }
.compact-control { min-width: 132px; display: grid; gap: 4px; color: var(--muted); font-size: .66rem; font-weight: 800; }
.compact-control select { width: 100%; min-height: 38px; padding: 6px 28px 6px 9px; background: var(--page); color: var(--ink); border: 1px solid var(--border); border-radius: 6px; font-size: .76rem; font-weight: 700; }
.chart-legend { margin: -3px 0 8px; display: flex; flex-wrap: wrap; gap: 11px; color: var(--muted); font-size: .76rem; font-weight: 750; }
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend span::before { content: ""; width: 12px; height: 12px; display: inline-block; border: 2px solid var(--ink); border-radius: 2px; }
.legend-civm::before { background: #0b63b6; }
.legend-attack::before { background: #7d3042; }
.legend-plot::before { background: #b5861b; }
.temporal-controls { margin: 8px 0 5px; padding: 9px 11px; display: flex; flex-wrap: wrap; gap: 9px 14px; align-items: end; background: var(--subtle); border: 1px solid var(--border); border-radius: 7px; }
.temporal-controls legend { padding-inline: 4px; color: var(--muted); font-size: .68rem; font-weight: 850; text-transform: uppercase; letter-spacing: .05em; }
.temporal-controls .compact-control { min-width: 200px; }
.temporal-controls a { min-height: 38px; display: inline-flex; align-items: center; font-size: .72rem; font-weight: 800; }
.check-control { min-height: 38px; display: inline-flex; gap: 7px; align-items: center; color: var(--ink); font-size: .75rem; font-weight: 750; }
.check-control input { width: 17px; height: 17px; accent-color: var(--blue); }
.visual-meta { padding: 4px 7px; background: var(--subtle); color: var(--muted); border-radius: 4px; font-size: .68rem; font-weight: 800; }
.chart-frame { min-height: 315px; }
.trend-chart { width: 100%; height: 315px; overflow: visible; }
.chart-grid-line { stroke: var(--border); stroke-width: 1; }
.chart-axis-label { fill: var(--muted); font-size: 11px; }
.trend-bar { stroke: var(--ink); stroke-width: .6; }
.trend-bar-civm { fill: #0b63b6; }
.trend-bar-attack { fill: #7d3042; }
.trend-bar-plot { fill: #b5861b; }
.trend-bar:focus { outline: none; stroke: var(--focus); stroke-width: 3; }
.trend-line { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.trend-line.rolling-line { stroke: var(--burgundy); }
.trend-point { fill: var(--surface); stroke: var(--blue); stroke-width: 2.5; cursor: pointer; }
.trend-point.rolling-point { stroke: var(--burgundy); }
.trend-point:hover,.trend-point:focus { outline: none; fill: var(--focus); stroke-width: 4; }
.era-band { fill: color-mix(in srgb,var(--light-blue) 9%,transparent); stroke: color-mix(in srgb,var(--light-blue) 22%,transparent); stroke-width: .5; }
.era-band:nth-of-type(even) { fill: color-mix(in srgb,var(--gold) 6%,transparent); }
.era-label { fill: var(--muted); font-size: 8.5px; font-weight: 800; letter-spacing: .02em; }
.event-line { stroke: color-mix(in srgb,var(--burgundy) 54%,transparent); stroke-width: 1; stroke-dasharray: 3 3; }
.event-hit { fill: transparent; cursor: help; }
.event-hit:focus { outline: none; fill: color-mix(in srgb,var(--focus) 12%,transparent); }
.event-label { fill: var(--muted); font-size: 8px; font-weight: 750; }
.chart-empty-panel { fill: var(--subtle); stroke: var(--border); stroke-dasharray: 5 5; }
.chart-empty-text, .map-empty-text { fill: var(--muted); font-size: 13px; font-weight: 700; }
.partial-year-zone { fill: color-mix(in srgb,var(--muted) 9%, transparent); }
.partial-year-label { fill: var(--muted); font-size: 10px; }
.data-alternative { margin-top: 6px; }
.data-alternative summary { color: var(--navy); font-size: .78rem; font-weight: 800; cursor: pointer; }
.temporal-notes { margin-top: 7px; padding-top: 7px; border-top: 1px solid var(--border); }
.temporal-notes summary { color: var(--navy); font-size: .78rem; font-weight: 800; cursor: pointer; }
.temporal-notes [data-temporal-list] { margin-top: 11px; display: grid; gap: 7px; }
.temporal-note-item { padding: 10px 12px; background: var(--subtle); border-radius: 6px; }
.temporal-note-item strong { display: block; font-size: .8rem; }
.temporal-note-item span { display: block; margin-top: 4px; color: var(--muted); font-size: .72rem; }
.temporal-note-item a { display: inline-flex; margin-top: 5px; font-size: .7rem; font-weight: 800; }
.temporal-notes > p { margin: 10px 0 0; color: var(--muted); font-size: .73rem; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-alternative table { width: 100%; margin-top: 10px; border-collapse: collapse; font-size: .78rem; }
.data-alternative th, .data-alternative td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: left; }
.chart-actions { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; color: var(--muted); font-size: .72rem; }
.chart-actions .text-button { min-height: 34px; padding-block: 3px; font-size: .72rem; }
.map-ocean { fill: var(--pale-blue); stroke: var(--border); }
.map-grid path { fill: none; stroke: color-mix(in srgb,var(--border) 60%,transparent); stroke-dasharray: 3 5; }
.map-land { fill: color-mix(in srgb,var(--muted) 16%,var(--surface)); stroke: color-mix(in srgb,var(--muted) 38%,transparent); stroke-width: 1.2; }
.country-marker { cursor: pointer; }
.country-marker circle { fill: color-mix(in srgb,var(--blue) 70%,transparent); stroke: var(--surface); stroke-width: 3; transition: fill .15s ease,stroke-width .15s ease; }
.country-marker:hover circle, .country-marker:focus circle, .country-marker.is-active circle { fill: var(--navy); stroke: var(--focus); stroke-width: 5; }
.country-marker text { fill: var(--ink); font-size: 13px; font-weight: 900; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.country-marker .marker-count { font-size: 11px; font-weight: 700; }
.country-map { width: 100%; height: auto; }
.visual-footnote { margin: 8px 0 0; color: var(--muted); font-size: .82rem; }
.country-list { margin-top: 13px; display: grid; grid-template-columns: repeat(5,1fr); gap: 5px; }
.country-list button { min-height: 42px; padding: 6px; background: var(--page); color: var(--ink); border: 1px solid var(--border); border-radius: 5px; font-size: .7rem; cursor: pointer; }
.country-list button strong { display: block; font-size: .9rem; }
.country-list button.is-active { background: var(--navy); color: var(--surface); border-color: var(--navy); }
.distribution-card { grid-column: 1 / -1; }
.distribution-bars { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.distribution-item { padding: 14px; background: var(--page); color: var(--ink); border: 1px solid transparent; border-radius: 7px; text-align: left; cursor: pointer; }
.distribution-item:hover,.distribution-item:focus { outline: none; border-color: var(--focus); }
.distribution-item .bar-label { margin-bottom: 10px; }
.distribution-item .bar-track { height: 8px; }
.distribution-item .bar-fill { background: var(--blue); }
.distribution-item span:last-child { display: block; margin-top: 7px; color: var(--muted); font-size: .78rem; }
.aggregate-empty { grid-column: 1 / -1; margin: 0; padding: 24px; background: var(--subtle); color: var(--muted); border: 1px dashed var(--border); border-radius: 7px; text-align: center; }

.analysis-lab { padding-block: 8px 56px; }
.analysis-lab > .section-heading { align-items: end; }
.analysis-safeguard { margin: -5px 0 15px; padding: 12px 14px; display: flex; gap: 8px; background: var(--pale-blue); border-left: 4px solid var(--blue); border-radius: 5px; color: var(--muted); font-size: .8rem; }
.analysis-safeguard strong { flex: 0 0 auto; color: var(--ink); }
.analysis-grid { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,.95fr); gap: 14px; }
.profile-card,.crosstab-card { min-width: 0; }
.chart-context { min-height: 36px; margin: -3px 0 9px; color: var(--muted); font-size: .77rem; }
.profile-chart-frame { max-height: 520px; min-height: 320px; overflow: auto; border-radius: 6px; }
.profile-chart { width: 100%; min-width: 520px; height: auto; display: block; }
.profile-bar { fill: var(--blue); stroke: var(--navy); stroke-width: .5; cursor: pointer; }
.profile-bar:hover,.profile-bar:focus { outline: none; fill: var(--navy); stroke: var(--focus); stroke-width: 2; }
.profile-axis { fill: var(--muted); font-size: 10px; }
.profile-value { fill: var(--ink); font-size: 11px; font-weight: 850; }
.donut-segment { cursor: pointer; stroke: var(--surface); stroke-width: 2; }
.donut-segment:hover,.donut-segment:focus { outline: none; stroke: var(--focus); stroke-width: 5; }
.donut-centre-value { fill: var(--ink); font-size: 27px; font-weight: 900; }
.donut-centre-label { fill: var(--muted); font-size: 10px; }
.donut-legend-label { fill: var(--ink); font-size: 11px; font-weight: 750; }
.donut-legend-value { fill: var(--muted); font-size: 10px; }
.crosstab-scroll { min-height: 320px; max-height: 520px; overflow: auto; border: 1px solid var(--border); border-radius: 7px; }
.heatmap-grid { min-width: max-content; display: grid; gap: 1px; padding: 1px; background: var(--border); }
.heatmap-corner,.heatmap-column-label,.heatmap-row-label,.heatmap-cell { min-height: 48px; padding: 7px; display: grid; place-items: center; background: var(--surface); color: var(--ink); border: 0; font-size: .7rem; }
.heatmap-column-label,.heatmap-row-label { font-weight: 800; }
.heatmap-column-label { min-width: 84px; writing-mode: vertical-rl; transform: rotate(180deg); text-align: left; }
.heatmap-row-label { min-width: 145px; place-items: center start; text-align: left; }
.heatmap-cell { min-width: 84px; background: color-mix(in srgb,var(--blue) var(--heat,0%),var(--surface)); font-weight: 900; cursor: pointer; }
.heatmap-cell:hover,.heatmap-cell:focus { outline: 3px solid var(--focus); outline-offset: -3px; }
.heatmap-cell.is-zero { color: var(--muted); cursor: default; }
.heatmap-cell.is-suppressed { background: repeating-linear-gradient(135deg,var(--subtle),var(--subtle) 5px,var(--surface) 5px,var(--surface) 10px); color: var(--muted); cursor: not-allowed; }
.crosstab-table { min-width: 660px; }
.variable-availability-note { margin: 14px 0 0; padding: 13px 15px; background: var(--subtle); color: var(--muted); border: 1px solid var(--border); border-radius: 7px; font-size: .78rem; }
.variable-availability-note strong { color: var(--ink); }

.results-section { padding-block: 32px 85px; }
.results-heading { margin-bottom: 20px; display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.results-heading h2 { margin-bottom: 5px; font-size: 1.7rem; }
.results-heading p { margin: 0; color: var(--muted); font-size: .8rem; }
.results-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.results-actions label { display: grid; gap: 4px; color: var(--muted); font-size: .7rem; font-weight: 800; }
.results-actions select { min-width: 150px; }
.button-small { min-height: 45px; font-size: .8rem; }
.case-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.case-table { width: 100%; border-collapse: collapse; font-size: .84rem; }
.case-table th { padding: 12px 14px; background: var(--subtle); color: var(--muted); text-align: left; font-size: .68rem; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.case-table td { padding: 15px 14px; border-top: 1px solid var(--border); vertical-align: top; }
.case-table tbody tr:hover { background: color-mix(in srgb,var(--pale-blue) 38%,transparent); }
.case-table .case-name-cell { min-width: 270px; }
.case-name-button { padding: 0; background: transparent; color: var(--navy); border: 0; text-align: left; font-weight: 850; cursor: pointer; }
.case-name-button:hover { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.case-id-inline { display: block; margin-top: 4px; color: var(--muted); font-size: .68rem; font-weight: 600; }
.case-exclusion-note { display: inline-flex; margin-top: 7px; padding: 2px 6px; background: var(--subtle); color: var(--muted); border: 1px solid var(--border); border-radius: 4px; font-size: .67rem; font-weight: 750; }
.table-badge { display: inline-flex; padding: 3px 6px; background: var(--subtle); border: 1px solid var(--border); border-radius: 4px; font-size: .68rem; font-weight: 800; white-space: nowrap; }
.air-higher { background: color-mix(in srgb,#8b2335 14%,var(--surface)); border-color: color-mix(in srgb,#8b2335 38%,var(--border)); }
.air-moderate { background: color-mix(in srgb,#c79624 18%,var(--surface)); border-color: color-mix(in srgb,#c79624 45%,var(--border)); }
.air-lower { background: color-mix(in srgb,#dbc974 20%,var(--surface)); }
.air-nil { background: color-mix(in srgb,#003a5f 10%,var(--surface)); }
.air-unknown_not_established { background: var(--subtle); border-style: dashed; }
.details-button { min-height: 38px; padding: 5px 9px; background: transparent; color: var(--navy); border: 1px solid var(--border); border-radius: 5px; font-size: .73rem; font-weight: 800; cursor: pointer; }
.details-button:hover { border-color: var(--blue); color: var(--blue); }
.empty-state { padding: 45px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }
.empty-state p { margin: 7px 0 0; color: var(--muted); }
.load-more-wrap { margin-top: 18px; display: flex; align-items: center; justify-content: center; gap: 14px; }
.load-more-wrap span { color: var(--muted); font-size: .75rem; }

.case-dialog { width: min(920px,calc(100% - 30px)); max-height: min(88vh,900px); padding: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 24px 80px rgba(0,0,0,.35); }
.case-dialog::backdrop { background: rgba(3,18,27,.7); backdrop-filter: blur(3px); }
.dialog-header { position: sticky; top: 0; z-index: 2; padding: 20px 22px 16px; display: flex; justify-content: space-between; gap: 20px; background: var(--surface); border-bottom: 1px solid var(--border); }
.dialog-header h2 { margin: 0; font-size: 1.55rem; }
.dialog-close { width: 44px; height: 44px; flex: 0 0 auto; background: var(--subtle); color: var(--ink); border: 1px solid var(--border); border-radius: 999px; font-size: 1.5rem; cursor: pointer; }
.dialog-body { padding: 22px; }
.dialog-meta { display: flex; flex-wrap: wrap; gap: 7px; }
.dialog-summary { margin: 22px 0; font-size: 1.02rem; line-height: 1.65; }
.detail-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.detail-grid > div { min-height: 80px; padding: 12px; background: var(--surface); }
.detail-grid dt { color: var(--muted); font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.detail-grid dd { margin: 7px 0 0; font-size: .83rem; font-weight: 700; }
.detail-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.detail-section h3 { margin-bottom: 10px; }
.detail-section p { color: var(--muted); font-size: .86rem; }
.detail-note { padding: 12px 14px; background: var(--pale-blue); border-left: 4px solid var(--blue); border-radius: 5px; }
.source-list { margin: 0; padding-left: 22px; }
.source-list li + li { margin-top: 8px; }
.source-list a { overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .menu-toggle { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; }
  .theme-toggle { margin-left: 0; }
  .programme-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; width: 100%; max-height: calc(100vh - 68px); margin: 0; padding: 14px 20px 24px; display: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 4px; overflow: auto; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .programme-nav.is-open { display: grid; }
  .programme-nav .nav-link { min-height: 44px; justify-content: flex-start; padding: 8px 12px; font-size: .86rem; text-align: left; }
  .reading-nav { top: 88px; }
  .article-copy > section { scroll-margin-top: 90px; }
  #programme-insights,#analysis-lab { scroll-margin-top: 88px; }
}

@media (max-width: 1120px) {
  .filter-grid-primary { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .filter-search { grid-column: span 2; }
  .metric-grid { grid-template-columns: repeat(3,1fr); }
  .analysis-grid { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .brand-text { display: none; }
  .nav-link, .nav-group summary { padding-inline: 8px; }
  .hero { grid-template-columns: 1fr .72fr; gap: 42px; }
  .scope-inner { grid-template-columns: 1fr; }
  .scope-stats { margin-left: -18px; }
}

@media (max-width: 820px) {
  .header-inner, .header-main { min-height: 68px; }
  .brand-text { display: grid; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; }
  .primary-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; max-height: calc(100vh - 68px); padding: 14px 20px 24px; display: none; overflow: auto; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
  .primary-nav.is-open { display: grid; }
  .nav-link, .nav-group summary { width: 100%; justify-content: space-between; padding: 0 12px; }
  .nav-group { position: static; }
  .nav-menu { position: static; min-width: 0; margin: 2px 0 10px 12px; padding: 0 0 0 10px; background: transparent; border: 0; border-left: 2px solid var(--light-blue); border-radius: 0; box-shadow: none; }
  .theme-toggle [data-theme-label] { display: none; }
  .hero { min-height: 0; padding-block: 72px; grid-template-columns: 1fr; }
  .hero-evidence { max-width: 620px; }
  .scope-stats { grid-template-columns: repeat(3, 1fr); row-gap: 24px; }
  .section-heading { grid-template-columns: 1fr; gap: 12px; }
  .evidence-grid { grid-template-columns: repeat(2, 1fr); }
  .definition-grid { grid-template-columns: 1fr; }
  .definition-card p:not(.definition-code) { min-height: 0; }
  .trust-layout, .footer-grid { grid-template-columns: 1fr; }
  .explorer-intro { grid-template-columns: 1fr; }
  .release-panel { max-width: 620px; }
  .page-safeguard { display: grid; }
  .page-safeguard strong { white-space: normal; }
  .filter-grid, .filter-grid-primary { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .filter-search { grid-column: span 2; }
  .visual-section { grid-template-columns: 1fr; }
  .distribution-card { grid-column: auto; }
  .distribution-bars { grid-template-columns: repeat(2,1fr); }
  .country-list { grid-template-columns: repeat(3,1fr); }
  .results-heading { align-items: start; flex-direction: column; }
  .case-table th:nth-child(3),.case-table td:nth-child(3),.case-table th:nth-child(4),.case-table td:nth-child(4) { display: none; }
  .detail-grid { grid-template-columns: repeat(2,1fr); }
  .visual-heading-actions { width: 100%; justify-content: flex-start; }
  .compact-control { flex: 1 1 150px; }
  .programme-hero { grid-template-columns: 1fr; }
  .programme-status { max-width: 620px; }
  .article-shell { grid-template-columns: 1fr; gap: 25px; }
  .reading-nav { position: static; grid-template-columns: repeat(2,1fr); }
  .reading-nav strong { grid-column: 1 / -1; }
  .timeline-figure { width: 100%; margin-left: 0; }
  .programme-stat-grid { grid-template-columns: repeat(2,1fr); }
  .laboratory-hero,.insights-hero { grid-template-columns: 1fr; }
  .laboratory-status,.insight-release-card { max-width: 620px; }
  .laboratory-principles .section-shell,.evidence-classification-band .section-shell { grid-template-columns: 1fr; gap: 17px; }
  .comparison-mode-grid { grid-template-columns: 1fr; }
  .comparison-mode-card { min-height: 235px; }
  .laboratory-workspace-preview { grid-template-columns: 1fr; }
  .workspace-controls { grid-template-columns: repeat(2,1fr); }
  .insight-figure-layout { grid-template-columns: 1fr; }
  .air-legend { grid-template-columns: repeat(3,1fr); }
  .insights-development-note { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 560px) {
  .section-shell { width: min(calc(100% - 28px), var(--content)); }
  .brand-text { display: none; }
  .programme-nav { grid-template-columns: 1fr; }
  h1 { font-size: clamp(2.25rem, 12vw, 3.3rem); }
  .hero { padding-block: 55px 64px; gap: 34px; }
  .hero-actions { display: grid; }
  .home-path-grid { grid-template-columns: 1fr; }
  .home-path-card { min-height: 0; }
  .five-eyes-flags { gap: 5px; }
  .five-eyes-flags li { padding-inline: 7px; font-size: .67rem; }
  .button { width: 100%; }
  .hero-evidence { padding: 21px; }
  .scope-stats { margin-left: 0; grid-template-columns: repeat(2, 1fr); }
  .scope-stats div { padding-left: 12px; }
  .feature-grid, .evidence-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; padding: 21px; }
  .evidence-card { min-height: 178px; }
  .footer-grid { gap: 24px; }
  .explorer-intro { padding-block: 42px 25px; }
  .explorer-title-block h1 { font-size: 3rem; }
  .release-panel { grid-template-columns: 1fr; }
  .release-panel div { min-height: 58px; }
  .filter-panel { padding: 18px; }
  .filter-heading { align-items: start; flex-direction: column; }
  .filter-grid, .filter-grid-primary { grid-template-columns: 1fr; }
  .filter-search { grid-column: auto; }
  .metric-grid { grid-template-columns: repeat(2,1fr); }
  .metric-grid > div { min-height: 122px; }
  .metric-grid > div:first-child { grid-column: 1 / -1; }
  .distribution-bars { grid-template-columns: 1fr; }
  .country-list { grid-template-columns: repeat(2,1fr); }
  .case-table th:nth-child(1),.case-table td:nth-child(1),.case-table th:nth-child(5),.case-table td:nth-child(5) { display: none; }
  .case-table .case-name-cell { min-width: 220px; }
  .detail-grid { grid-template-columns: 1fr; }
  .analysis-safeguard { display: grid; }
  .visual-heading { flex-direction: column; }
  .visual-heading-actions { display: grid; grid-template-columns: 1fr; }
  .profile-chart-frame,.crosstab-scroll { max-height: 460px; }
  .dialog-header,.dialog-body { padding-inline: 17px; }
  .programme-status, .research-question-grid, .evidence-key-list { grid-template-columns: 1fr; }
  .reading-nav { grid-template-columns: 1fr; }
  .article-copy > section { padding-block: 36px; }
  .about-figure { padding: 8px; }
  .programme-stat-grid { grid-template-columns: repeat(2,1fr); }
  .programme-stat-grid > div { min-height: 112px; }
  .article-copy > .citation-panel { padding: 23px; }
  .workspace-controls { grid-template-columns: 1fr; }
  .workspace-output { padding: 18px; }
  .workspace-output-heading { display: grid; }
  .preview-badge { justify-self: start; }
  .workspace-placeholder { min-height: 230px; padding: 20px; }
  .workspace-metadata { grid-template-columns: repeat(2,1fr); }
  .boundary-grid { grid-template-columns: 1fr; }
  .insights-hero-actions { display: grid; }
  .insight-card { padding: 19px; }
  .insight-card-header { display: grid; }
  .figure-version { justify-items: start; }
  .fixed-figure > figcaption { display: grid; gap: 4px; }
  .context-insight-kpis { grid-template-columns: 1fr; }
  .context-insight-chart { min-height: 320px; }
  .context-insight-chart svg { min-width: 660px; }
  .air-stacked { height: 58px; }
  .air-segment span:not(.visually-hidden) { display: none; }
  .air-legend,.evidence-classification-band ul { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; }
}

/* Social Context Explorer */
.context-explorer [hidden] { display: none !important; }
.context-intro { padding-bottom: 28px; }
.context-release-panel dt { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; }
.context-release-panel dd { margin: 5px 0 0; font-size: .94rem; font-weight: 850; }
.context-release-strip { margin-bottom: 34px; padding-block: 18px; background: #003a5f; color: white; }
.context-release-facts { margin-block: 0; display: grid; grid-template-columns: repeat(4,1fr); }
.context-release-facts div { min-height: 66px; padding: 5px 22px; display: grid; align-content: center; border-left: 1px solid rgba(255,255,255,.25); }
.context-release-facts div:first-child { border-left: 0; }
.context-release-facts dt { color: #c9e7f4; font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.context-release-facts dd { margin: 5px 0 0; color: white; font-size: 1.45rem; font-weight: 900; line-height: 1; }

.context-workspace { padding-bottom: 30px; }
.context-control-grid { display: grid; grid-template-columns: repeat(6,minmax(120px,1fr)); gap: 14px; }
.context-theme-field { grid-column: span 2; }
.context-indicator-field { grid-column: span 3; }
.context-transformation-field { grid-column: span 2; }
.context-explorer .filter-field select:disabled,
.context-explorer button:disabled { cursor: not-allowed; opacity: .68; }
.context-control-note { margin: 17px 0 0; padding: 11px 13px; background: var(--subtle); color: var(--muted); border-radius: 6px; font-size: .78rem; }
.context-status { min-height: 24px; display: flex; gap: 8px; align-items: center; }
.context-status::before { content: ""; width: 9px; height: 9px; flex: 0 0 auto; background: var(--blue); border-radius: 999px; box-shadow: 0 0 0 4px color-mix(in srgb,var(--blue) 13%,transparent); }
.context-error-state,.context-noscript { margin: 14px 0 0; padding: 13px 15px; background: color-mix(in srgb,var(--burgundy) 10%,var(--surface)); border-left: 4px solid var(--burgundy); border-radius: 6px; color: var(--muted); font-size: .82rem; }
.context-error-state strong,.context-error-state span { display: block; }
.context-error-state strong,.context-noscript strong { color: var(--ink); }
.context-error-state span { margin-top: 3px; }

.context-indicator-section { padding-block: 8px 26px; }
.context-metadata-card { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.context-metadata-heading { margin-bottom: 19px; display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.context-metadata-heading h2 { margin-bottom: 8px; font-size: 1.65rem; }
.context-metadata-heading p:last-child { max-width: 80ch; margin: 0; color: var(--muted); font-size: .88rem; }
.context-class-badge { flex: 0 0 auto; padding: 5px 8px; background: var(--subtle); color: var(--muted); border: 1px dashed var(--border); border-radius: 5px; font-size: .68rem; font-weight: 850; }
.context-metadata-grid { margin: 0; display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; overflow: hidden; background: var(--border); border: 1px solid var(--border); border-radius: 7px; }
.context-metadata-grid div { min-height: 78px; padding: 12px; background: var(--surface); }
.context-metadata-grid dt,.context-comparison-notes dt { color: var(--muted); font-size: .66rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.context-metadata-grid dd { margin: 7px 0 0; font-size: .8rem; font-weight: 750; overflow-wrap: anywhere; }
.context-caveat { margin-top: 14px; padding: 13px 15px; background: var(--pale-blue); border-left: 4px solid var(--blue); border-radius: 5px; }
.context-caveat strong { font-size: .75rem; letter-spacing: .05em; text-transform: uppercase; }
.context-caveat p { margin: 4px 0 0; color: var(--muted); font-size: .82rem; }

.context-summary { padding-block: 22px 28px; }
.context-kpi-grid { margin: 0; display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.context-kpi-grid > div { min-height: 132px; padding: 18px; background: var(--surface); border: 1px solid var(--border); border-top: 4px solid var(--navy); border-radius: 5px 5px 9px 9px; }
.context-kpi-grid dt { color: var(--muted); font-size: .7rem; font-weight: 850; letter-spacing: .04em; text-transform: uppercase; }
.context-kpi-grid dd { margin: 14px 0 5px; font-size: clamp(1.55rem,3vw,2.15rem); font-weight: 900; line-height: 1; }
.context-kpi-grid span { display: block; color: var(--muted); font-size: .68rem; line-height: 1.35; }

.context-visuals { padding-block: 12px 28px; display: grid; grid-template-columns: minmax(0,1.35fr) minmax(340px,.65fr); gap: 14px; }
.context-trend-card,.context-availability-card,.context-comparison-card { min-width: 0; }
.context-chart-legend { min-height: 24px; display: flex; flex-wrap: wrap; gap: 8px; color: var(--muted); font-size: .72rem; }
.context-chart-frame { min-height: 380px; overflow: hidden; border-radius: 7px; }
.context-trend-chart { width: 100%; height: auto; display: block; }
.context-placeholder-grid { fill: none; stroke: var(--border); stroke-width: 1; }
.context-placeholder-axis { fill: none; stroke: var(--muted); stroke-width: 1.2; }
.context-placeholder-note { fill: var(--muted); font-size: 11px; }
.context-availability-key { margin-bottom: 16px; display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; }
.context-availability-key span { display: flex; gap: 7px; align-items: center; color: var(--muted); font-size: .68rem; font-weight: 750; }
.context-availability-key span::before { content: ""; width: 14px; height: 14px; flex: 0 0 auto; border: 1px solid var(--border); border-radius: 3px; }
.context-availability-key .is-available::before { background: var(--blue); }
.context-availability-key .is-partial::before { background: repeating-linear-gradient(135deg,var(--gold),var(--gold) 4px,var(--surface) 4px,var(--surface) 7px); }
.context-availability-key .is-unavailable::before { background: var(--surface); border-style: dashed; }
.context-availability-key .is-outside::before { background: var(--subtle); opacity: .55; }
.context-availability-frame { min-height: 284px; padding: 18px; display: grid; align-content: center; background: var(--page); border: 1px solid var(--border); border-radius: 7px; }
.context-loading-grid { display: grid; grid-template-columns: repeat(6,1fr); gap: 5px; }
.context-loading-grid span { aspect-ratio: 1.25; background: var(--subtle); border: 1px solid var(--border); border-radius: 3px; }
.context-availability-frame > p { margin: 16px 0 0; color: var(--muted); font-size: .75rem; text-align: center; }

.context-comparison-section { padding-block: 0 34px; }
.context-comparison-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(280px,.65fr); gap: 15px; }
.context-comparison-placeholder { min-height: 285px; padding: 34px; display: grid; place-content: center; background: var(--page); border: 1px dashed var(--border); border-radius: 7px; text-align: center; }
.context-comparison-placeholder strong { color: var(--ink); }
.context-comparison-placeholder p { max-width: 58ch; margin: 8px auto 0; color: var(--muted); font-size: .84rem; }
.context-comparison-notes { padding: 18px; background: var(--subtle); border-radius: 7px; }
.context-comparison-notes h3 { margin-bottom: 13px; font-size: 1rem; }
.context-comparison-notes dl { margin: 0; display: grid; gap: 1px; background: var(--border); }
.context-comparison-notes dl div { padding: 10px; background: var(--surface); }
.context-comparison-notes dd { margin: 4px 0 0; font-size: .76rem; font-weight: 800; }
.context-comparison-notes > p { margin: 14px 0 0; color: var(--muted); font-size: .75rem; }

.context-results { padding-block: 24px 68px; }
.context-table-wrap { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.context-data-table { width: 100%; min-width: 900px; border-collapse: collapse; font-size: .78rem; }
.context-data-table th { padding: 11px 12px; background: var(--subtle); color: var(--muted); text-align: left; font-size: .66rem; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.context-data-table td { padding: 15px 12px; color: var(--muted); border-top: 1px solid var(--border); }
.context-empty-state { margin-top: 13px; padding: 32px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius); text-align: center; }
.context-empty-state p { margin: 6px 0 0; color: var(--muted); font-size: .84rem; }

.context-boundaries { padding-block: 62px 72px; background: var(--subtle); border-top: 1px solid var(--border); }
.context-boundary-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.context-boundary-grid article { padding: 23px; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.context-boundary-grid h3 { margin-bottom: 9px; color: var(--navy); }
.context-boundary-grid p { margin: 0; color: var(--muted); font-size: .86rem; }
.context-boundary-grid p strong { color: var(--ink); }
.context-methodology-link { margin: 22px 0 0; font-weight: 850; }

@media (max-width: 1120px) {
  .context-control-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .context-theme-field,.context-indicator-field,.context-transformation-field { grid-column: span 1; }
  .context-kpi-grid { grid-template-columns: repeat(3,1fr); }
  .context-kpi-grid > div:first-child { grid-column: span 1; }
}

@media (max-width: 820px) {
  .context-release-facts { grid-template-columns: repeat(2,1fr); }
  .context-release-facts div:nth-child(3) { border-left: 0; }
  .context-control-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .context-indicator-field { grid-column: span 2; }
  .context-metadata-heading { display: grid; }
  .context-class-badge { justify-self: start; }
  .context-metadata-grid { grid-template-columns: repeat(2,1fr); }
  .context-kpi-grid { grid-template-columns: repeat(2,1fr); }
  .context-visuals { grid-template-columns: 1fr; }
  .context-comparison-layout { grid-template-columns: 1fr; }
  .context-boundary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .context-release-strip { margin-bottom: 26px; }
  .context-release-facts div { padding-inline: 13px; }
  .context-release-facts dt { font-size: .61rem; }
  .context-release-facts dd { font-size: 1.25rem; }
  .context-control-grid { grid-template-columns: 1fr; }
  .context-theme-field,.context-indicator-field,.context-transformation-field { grid-column: auto; }
  .context-metadata-card { padding: 18px; }
  .context-metadata-grid { grid-template-columns: 1fr; }
  .context-kpi-grid { grid-template-columns: repeat(2,1fr); }
  .context-kpi-grid > div { min-height: 118px; padding: 15px; }
  .context-kpi-grid > div:first-child { grid-column: 1 / -1; }
  .context-chart-frame { min-height: 270px; }
  .context-trend-chart { width: 100%; max-width: 100%; }
  .context-availability-key { grid-template-columns: 1fr; }
  .context-comparison-placeholder { min-height: 230px; padding: 22px; }
  .context-boundaries { padding-block: 48px 56px; }
}
