/* SDEN Facts – single stylesheet, no external fonts or scripts */
:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --ink: #1a2226;
  --ink-2: #3c474e;
  --muted: #5f6b73;
  --line: #e3dfd6;
  --line-2: #d3cec2;
  --brand: #164a5b;
  --brand-2: #0f3642;
  --brand-tint: #e7f0f2;
  --link: #0e5c86;
  --focus: #f2b632;
  --v-bg: #dcefe1; --v-ink: #175c2b;
  --l-bg: #fbedc8; --l-ink: #6e4e05;
  --u-bg: #f5dfdc; --u-ink: #8c2a20;
  --o-bg: #e6e2f5; --o-ink: #45357d;
  /* outcome colours */
  --st-nd: #b4532a;
  --st-mm: #9b2c4a;
  --st-pm: #c4901c;
  --st-pe: #3f6f9e;
  --st-cc: #7d878e;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(20, 30, 35, .05), 0 2px 8px rgba(20, 30, 35, .04);
  --serif: "Iowan Old Style", "Charter", "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #11171a; --surface: #182024; --ink: #e8ecee; --ink-2: #c6ced3; --muted: #9aa6ad;
    --line: #283238; --line-2: #34404a; --brand: #1b5a6e; --brand-2: #123f4d; --brand-tint: #1a2c33;
    --link: #82c4ea;
    --v-bg: #1d3b27; --v-ink: #a3e2b5; --l-bg: #3b3115; --l-ink: #f1d488;
    --u-bg: #432421; --u-ink: #f2b1a8; --o-bg: #2c2748; --o-ink: #cbc0f6;
    --st-nd: #e0815a; --st-mm: #e0708f; --st-pm: #e6b84e; --st-pe: #7fb0e0; --st-cc: #9aa6ad;
    --shadow: none;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.65 var(--sans); }
a { color: var(--link); text-underline-offset: 2px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.content { max-width: 780px; padding-top: 8px; padding-bottom: 56px; }
.content.wide { max-width: 1080px; }
.muted { color: var(--muted); font-weight: 400; }

/* skip link */
.skip { position: absolute; left: 12px; top: -60px; background: var(--focus); color: #000; padding: 8px 14px; border-radius: 6px; z-index: 10; font-weight: 700; }
.skip:focus { top: 12px; }

/* independence strip */
.indep { background: #20272b; color: #eef1f2; font-size: 13.5px; line-height: 1.4; padding: 7px 0; text-align: center; }

/* header */
.masthead { background: var(--brand); color: #fff; position: relative; }
.bar-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; min-width: 0; }
.brand strong { display: block; font-size: 20px; letter-spacing: -.01em; line-height: 1.2; }
.brand small { display: block; font-size: 12.5px; opacity: .8; line-height: 1.3; }
.logo { width: 36px; height: 36px; flex: none; }
.logo rect { fill: #fff; }
.logo path { stroke: var(--brand); stroke-width: 3.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.desk { display: flex; gap: 2px; }
.desk a, .menu nav a { color: #fff; text-decoration: none; font-size: 15px; padding: 8px 11px; border-radius: 8px; white-space: nowrap; }
.desk a:hover, .menu nav a:hover { background: rgba(255, 255, 255, .12); }
.desk a[aria-current], .menu nav a[aria-current] { background: rgba(255, 255, 255, .18); font-weight: 600; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .35); border-radius: 8px; font-weight: 600; font-size: 15px; }
.menu summary::-webkit-details-marker { display: none; }
.burger, .burger::before, .burger::after { display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px; position: relative; }
.burger::before, .burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; } .burger::after { top: 6px; }
.menu[open] .burger { background: transparent; }
.menu[open] .burger::before { top: 0; transform: rotate(45deg); }
.menu[open] .burger::after { top: 0; transform: rotate(-45deg); }
.menu nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--brand-2); padding: 8px 12px 14px; z-index: 5;
  display: grid; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.menu nav a { padding: 12px; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
@media (max-width: 960px) {
  .desk { display: none; }
  .menu { display: block; }
}
@media (max-width: 520px) { .brand small { display: none; } }

/* page heads and hero */
.page-head { background: var(--surface); border-bottom: 1px solid var(--line); padding: 36px 0 28px; margin-bottom: 28px; }
.page-head .wrap > * { max-width: 780px; }
h1, h2, h3 { line-height: 1.22; letter-spacing: -.012em; }
h1 { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 44px); margin: 0 0 12px; font-weight: 700; }
h2 { font-size: 22px; margin: 40px 0 12px; }
.section-h { font-size: 22px; margin: 48px 0 16px; }
.lede { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); margin: 0; max-width: 70ch; }
.hero { background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%); color: #fff; padding: 48px 0 56px; }
.hero h1 { font-size: clamp(32px, 5vw, 54px); max-width: 18ch; color: #fff; }
.hero .lede { color: #d6e6ea; max-width: 62ch; }
.eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: 13px; font-weight: 700; color: #a9cdd6; margin: 0 0 10px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }
.btn { display: inline-flex; align-items: center; gap: 6px; padding: 11px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 16px; }
.btn-primary { background: #fff; color: var(--brand-2); }
.btn-primary:hover { background: #eaf3f5; }
.btn-ghost { color: #fff; border: 1px solid rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.btn-small { border: 1px solid var(--line-2); color: var(--link); padding: 7px 13px; font-size: 15px; background: var(--surface); }
.btn-small:hover { border-color: var(--link); }
.content > :first-child { margin-top: 0; }
.hero + .content { padding-top: 0; }

/* tags */
.tag { display: inline-block; font: 700 12px/1 var(--sans); padding: 4px 8px; border-radius: 999px; vertical-align: 2px;
  white-space: nowrap; text-decoration: none; letter-spacing: .01em; }
.tag:hover { text-decoration: none; filter: brightness(.96); }
.tag-v { background: var(--v-bg); color: var(--v-ink); }
.tag-l { background: var(--l-bg); color: var(--l-ink); }
.tag-u { background: var(--u-bg); color: var(--u-ink); }
.tag-o { background: var(--o-bg); color: var(--o-ink); }
.src { font-size: 14px; color: var(--muted); margin: 6px 0 0; }

/* stat tiles */
.stats { list-style: none; padding: 0; margin: -28px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; position: relative; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 18px 14px; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 6px; }
.stat-v { font-family: var(--serif); font-size: 34px; font-weight: 700; line-height: 1.05; color: var(--brand); letter-spacing: -.02em; }
.stat-l { font-size: 15px; color: var(--ink-2); line-height: 1.4; flex: 1; }
.stat-m { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.stat-m .src { margin: 0; font-size: 13px; }
@media (prefers-color-scheme: dark) { .stat-v { color: #9fd3e3; } }
#glance-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 420px) { .stat-v { font-size: 28px; } .stat { padding: 14px; } }

/* outcome summary bar */
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); }
.summary.compact { margin-bottom: 20px; }
.summary-head { margin: 0 0 12px; }
.bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--line); }
.seg { display: block; }
.legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 15px; color: var(--ink-2); }
.legend li { display: flex; align-items: center; gap: 7px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; flex: none; }
.st-nd { background: var(--st-nd); } .st-mm { background: var(--st-mm); } .st-pm { background: var(--st-pm); }
.st-pe { background: var(--st-pe); } .st-cc { background: var(--st-cc); }
.more { font-weight: 600; text-decoration: none; display: inline-block; margin-top: 12px; }
.more:hover { text-decoration: underline; }

/* in brief / cards / panels */
.brief { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.brief li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.brief li p { margin: 0; }
.brief li .src { margin-top: 4px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.cards.two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); margin-bottom: 24px; }
.card { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; color: var(--ink);
  transition: border-color .15s, transform .15s; }
.card:hover { border-color: var(--brand); transform: translateY(-1px); }
.card strong { display: block; color: var(--link); margin-bottom: 6px; font-size: 17px; }
.card span { font-size: 15px; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 20px 8px; }
.panel h2 { font-size: 18px; margin-top: 16px; }
.callout { background: var(--brand-tint); border-left: 4px solid var(--brand); padding: 14px 20px; border-radius: 0 var(--radius) var(--radius) 0; margin: 0 0 24px; }
.callout.warn { border-left-color: var(--u-ink); background: var(--u-bg); }
.callout p { margin: 6px 0; }
.notice { border-top: 1px solid var(--line); margin-top: 48px; }
.notice h2 { margin-top: 32px; }
.how { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 4px 22px 16px; margin-top: 48px; }
.how h2 { margin-top: 18px; }
.tag-legend { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 20px; font-size: 15px; }
.tag-legend li { display: flex; gap: 10px; align-items: baseline; }
.tag-legend .tag { min-width: 82px; text-align: center; }

/* said v happened */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 6px; }
.chip { font: 600 14px/1 var(--sans); display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; }
.chip span:last-child { color: var(--muted); font-weight: 700; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.chip[aria-pressed="true"] span:last-child { color: inherit; opacity: .75; }
.filter-note { font-size: 14px; color: var(--muted); min-height: 1.2em; margin: 4px 0 8px; }
.entries { display: grid; gap: 16px; }
.entry { background: var(--surface); border: 1px solid var(--line); border-left: 5px solid var(--st-cc); border-radius: var(--radius);
  padding: 18px 22px; box-shadow: var(--shadow); scroll-margin-top: 16px; }
.entry:target { outline: 3px solid var(--focus); }
.st-border-nd { border-left-color: var(--st-nd); } .st-border-mm { border-left-color: var(--st-mm); }
.st-border-pm { border-left-color: var(--st-pm); } .st-border-pe { border-left-color: var(--st-pe); }
.entry-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 14px; }
.pid { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); letter-spacing: .01em; }
@media (prefers-color-scheme: dark) { .pid { color: #9fd3e3; } }
.date { color: var(--muted); font-size: 15px; }
.status { color: #fff; font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 6px; line-height: 1.3; }
@media (prefers-color-scheme: dark) { .status { color: #111; } }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.vs > div { padding: 14px 16px; }
.vs p { margin: 0; }
.vs .src { margin-top: 8px; font-size: 13px; }
.said { background: var(--bg); border-right: 1px solid var(--line); }
.said > p:nth-child(2) { font-family: var(--serif); font-size: 17.5px; }
.k { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px !important; }
.entry-f { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; margin-top: 12px; font-size: 14.5px; color: var(--ink-2); }
.entry-f .src { margin: 0; }
.k-inline { font-weight: 700; }
.totop { text-align: right; margin-top: 24px; font-size: 15px; }
@media (max-width: 720px) {
  .vs { grid-template-columns: 1fr; }
  .said { border-right: 0; border-bottom: 1px solid var(--line); }
  .entry { padding: 16px; }
}

/* timeline */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 150px; top: 8px; bottom: 8px; width: 2px; background: var(--line-2); }
.timeline li { display: grid; grid-template-columns: 150px 1fr; gap: 0 28px; padding: 10px 0; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 144px; top: 19px; width: 14px; height: 14px; border-radius: 50%; background: var(--brand); border: 3px solid var(--bg); box-sizing: content-box; transform: translate(-3px, -3px); }
.timeline li.is-forecast::after { background: var(--bg); border: 2px dashed var(--brand); transform: translate(-1px, -1px); }
.timeline time { font-weight: 700; text-align: right; padding-right: 8px; font-variant-numeric: tabular-nums; }
.tl-body { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; }
.is-forecast .tl-body { border-style: dashed; background: transparent; }
.tl-body p { margin: 0; }
.badge { display: inline-block; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--st-pe);
  border: 1px solid currentColor; border-radius: 4px; padding: 1px 6px; margin-right: 8px; vertical-align: 1px; }
@media (max-width: 640px) {
  .timeline::before { left: 7px; }
  .timeline li { grid-template-columns: 1fr; padding-left: 30px; }
  .timeline li::after { left: 1px; top: 15px; }
  .timeline time { text-align: left; padding: 0 0 4px; }
}

/* tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 15.5px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
tr:last-child > * { border-bottom: 0; }
thead th { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); }
thead th:first-child { border-top-left-radius: var(--radius); } thead th:last-child { border-top-right-radius: var(--radius); }
@media (max-width: 720px) {
  table.stack, table.stack tbody, table.stack tr, table.stack td, table.stack th { display: block; width: 100%; }
  table.stack thead { display: none; }
  table.stack tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
  table.stack tr:last-child { border-bottom: 0; }
  table.stack td, table.stack tbody th { border: 0; padding: 3px 16px; }
  table.stack tbody th { font-size: 17px; padding-bottom: 6px; }
  table.stack td::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
}

/* facts */
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.fact { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.fact h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; color: var(--brand); margin: 0 0 8px; }
@media (prefers-color-scheme: dark) { .fact h2 { color: #9fd3e3; } }
.fact p { margin: 0; }
.fact > p:first-of-type { flex: 1; }
.fact-m { margin-top: 12px !important; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fact-m .src { margin: 0; font-size: 13px; }

/* documents */
.docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.doc { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; }
.doc h2 { font-size: 18px; margin: 0 0 10px; }
.meta { margin: 0 0 6px; flex: 1; font-size: 15px; }
.meta div { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 4px 0; border-top: 1px solid var(--line); }
.meta dt { color: var(--muted); font-size: 13px; font-weight: 700; padding-top: 2px; }
.meta dd { margin: 0; }
.doc p { margin: 8px 0 0; }
.links { padding-left: 20px; }
.links li { margin-bottom: 8px; }
.links .muted { display: block; font-size: 15px; }

/* faq */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { cursor: pointer; font-weight: 700; padding: 15px 48px 15px 18px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 22px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 18px 16px; color: var(--ink-2); }
.faq details p { margin: 0; }

/* how to comment steps */
.steps { list-style: none; counter-reset: step; padding: 0; margin: 24px 0 0; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 8px 56px; border-left: 2px solid var(--line-2); margin-left: 18px; }
.steps > li:last-child { border-left-color: transparent; }
.steps > li::before { content: counter(step); position: absolute; left: -19px; top: 0; width: 36px; height: 36px; border-radius: 50%;
  background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; }
.steps h2 { margin: 4px 0 8px; font-size: 20px; }
.steps ul { padding-left: 20px; }
.steps li li { margin-bottom: 6px; }

/* sources */
.sources { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sources > li { display: grid; grid-template-columns: 56px 1fr; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; scroll-margin-top: 16px; }
.sources > li:target { outline: 3px solid var(--focus); }
.sources p { margin: 0; }
.sources .src { margin-top: 4px; }
.sources .btn-small { margin-top: 8px; }

ul.plain { padding-left: 20px; }
ul.plain li, .content > ul li { margin-bottom: 8px; }
.note { font-size: 15px; color: var(--muted); }

/* independence box */
.indep-box { margin: 56px 0 0; padding: 14px 18px; border: 1px solid var(--line-2); border-radius: var(--radius); font-size: 15px; font-weight: 600; text-align: center; color: var(--ink-2); background: var(--surface); }

/* footer */
body > footer { background: #1b2226; color: #c9d1d5; font-size: 14.5px; padding: 40px 0 0; }
body > footer a { color: #e7eef1; }
body > footer .tag { vertical-align: 1px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 32px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; }
.foot-grid li { margin-bottom: 6px; }
.foot-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; color: #fff; margin-top: 0; }
.foot-brand .logo { width: 28px; height: 28px; }
.foot-brand .logo path { stroke: #1b2226; }
.foot-h { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; font-weight: 800; color: #8fa0a8; margin: 0 0 8px; }
.foot-grid p { margin: 0 0 12px; }
.imprint { color: #fff; }
.foot-base { border-top: 1px solid #2f383d; margin-top: 24px; padding: 16px 20px 28px; color: #93a2a9; font-size: 13.5px; }
.foot-base p { margin: 0; }
@media (max-width: 800px) { .foot-grid { grid-template-columns: 1fr; gap: 8px; } }

/* print */
@media print {
  .indep, .masthead, .filters, .filter-note, .totop, .skip, footer nav { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .hero { background: none; color: #000; padding: 0; }
  .hero h1, .hero .lede { color: #000; }
  .cta { display: none; }
  .entry, .fact, .doc, .stat, .summary { box-shadow: none; break-inside: avoid; }
  body > footer { background: none; color: #000; }
  body > footer a { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
}
