/* Shared styles: threat briefs, archive: exact same palette as index.html */
:root {
  color-scheme: dark;
  --bg:      #060b10;
  --bg1:     #0b1422;
  --bg2:     #0f1d2e;
  --text:    #e8f0f8;
  --muted:   #6a8ba5;
  --faint:   #3d5a72;
  --accent:  #4d9fd4;
  --rule:    rgba(77, 159, 212, 0.15);
  --border:  rgba(255,255,255,0.07);
  --crit:    #f07a72;
  --high:    #e9a25b;
  --med:     #d8c25c;
  --mono:    "JetBrains Mono", ui-monospace, Consolas, monospace;
}

body { background: var(--bg); color: var(--text); font: 15px/1.7 "Inter", system-ui, sans-serif; padding-inline: 20px; overflow-x: hidden; }
.circuit-bg { display: none; }
.wrap, .site-nav { position: relative; z-index: 1; }
h1, h2, h3 { color: var(--text); }
.wrap { max-width: 880px; margin: 0 auto; padding-block: 32px 64px; display: flex; flex-direction: column; gap: 40px; }
h1, h2, h3 { font-family: "Inter", system-ui, sans-serif; text-wrap: balance; margin: 0; line-height: 1.15; }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; letter-spacing: -.025em; }
h1 span { color: var(--accent); }
h2 { font-size: 1.25rem; font-weight: 700; letter-spacing: -.015em; padding-bottom: 10px; border-bottom: 1px solid var(--rule); }
h3 { font-size: 1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; max-width: 68ch; }
a { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: .82em; }
.label { font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }

.marking { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); border-block: 1px solid var(--rule); padding-block: 8px; }
.tlp { background: rgba(77,159,212,.1); border: 1px solid var(--rule); color: var(--accent); padding: 2px 8px; font-weight: 600; border-radius: 2px; }
header { display: flex; flex-direction: column; gap: 14px; }
.lede { font-size: 1rem; color: var(--muted); }

.sev { display: inline-block; font-family: var(--mono); font-size: .65rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 2px 8px; border: 1px solid currentColor; border-radius: 2px; white-space: nowrap; }
.sev.crit { color: var(--crit); } .sev.high { color: var(--high); } .sev.med { color: var(--med); }

.lead { display: flex; flex-direction: column; gap: 16px; }
.item { background: var(--bg1); border: 1px solid var(--border); border-radius: 2px; padding: 22px 24px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s; }
.item:hover { border-color: var(--rule); }
.item-head { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: baseline; justify-content: space-between; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 20px; margin: 4px 0 0; padding-top: 10px; border-top: 1px dashed var(--rule); }
.facts div { display: flex; flex-direction: column; gap: 2px; }
.facts dt { font-family: var(--mono); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.facts dd { margin: 0; font-size: .9rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.action { font-size: .92rem; }
.action b { font-weight: 700; color: var(--accent); }

section { display: flex; flex-direction: column; gap: 14px; }
.tbl { overflow-x: auto; background: var(--bg1); border: 1px solid var(--border); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .88rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { font-family: var(--mono); font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 500; background: var(--bg2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
td .mono { color: var(--muted); }

.list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; list-style: none; }
.list li { display: grid; grid-template-columns: 150px 1fr; gap: 4px 16px; }
@media (max-width: 560px) { .list li { grid-template-columns: 1fr; } h1 { font-size: 1.9rem; } }

ol.todo { margin: 0; padding-left: 1.3em; display: flex; flex-direction: column; gap: 8px; max-width: 72ch; }
.sources { font-size: .82rem; color: var(--faint); columns: 2 280px; gap: 24px; margin: 0; padding-left: 1.1em; }
.sources li { break-inside: avoid; margin-bottom: 4px; }
footer { font-size: .8rem; color: var(--faint); }

/* Nav: matches homepage exactly */
.site-nav {
  position: sticky; top: 0; z-index: 100;
  margin-inline: -20px; padding: 1rem 2.5rem;
  background: rgba(6, 11, 16, 0.92);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.site-nav-inner { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; justify-content: space-between; }
.site-brand { display: flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--text); font-family: "Inter", sans-serif; font-weight: 700; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; }
.site-brand img { height: 32px; width: auto; }
.site-links { display: flex; gap: 2rem; list-style: none; margin: 0; padding: 0; font-size: .78rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.site-links a { color: var(--muted); text-decoration: none; transition: color .2s; white-space: nowrap; }
.site-links a:hover, .site-links a[aria-current="page"] { color: var(--text); }
@media (max-width: 768px) { .site-nav { padding: .9rem 1.25rem; } .site-links { gap: 1.25rem; font-size: .75rem; } }
@media (max-width: 420px) { .site-links { gap: .9rem; font-size: .7rem; letter-spacing: .06em; } .site-brand { font-size: .74rem; letter-spacing: .1em; } .site-brand img { height: 26px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Data: figures and charts built by tools/build_brief.py (plain HTML, no scripts) */
:root { --bar: #4a98cc; --track: #163352; --sev-crit: #f58078; --sev-high: #cc655c; --sev-med: #a3554f; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); }
.kpi { background: var(--bg1); padding: 16px 18px 14px; min-width: 0; }
.kpi-v { font-size: 1.85rem; font-weight: 600; letter-spacing: -.025em; line-height: 1.05; color: var(--text); }
.kpi-l { margin-top: 6px; font-size: .78rem; color: var(--muted); line-height: 1.3; }
.kpi-s { margin-top: 2px; font-size: .72rem; color: var(--faint); line-height: 1.3; }
.viz-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 40px; }
.viz { margin: 0; min-width: 0; }
.viz figcaption { font-size: .8rem; color: var(--muted); margin-bottom: 10px; }
.seg { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; background: var(--bg2); }
.seg-part { display: block; height: 100%; }
.sev-crit { background: var(--sev-crit); } .sev-high { background: var(--sev-high); } .sev-med { background: var(--sev-med); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; font-size: .8rem; color: var(--muted); }
.legend b { color: var(--text); font-weight: 600; margin-left: 2px; }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.meter { height: 8px; border-radius: 4px; background: var(--track); overflow: hidden; }
.meter > span { display: block; height: 100%; background: var(--bar); border-radius: 4px; }
.meter-t { margin-top: 10px; font-size: .8rem; color: var(--muted); }
.meter-t b { color: var(--text); font-weight: 600; }
.bars-body { display: flex; flex-direction: column; gap: 8px; border-left: 1px solid var(--rule); padding-left: 0; }
.bar-row { display: grid; grid-template-columns: minmax(150px, 34%) 1fr 56px; align-items: center; gap: 12px; min-width: 0; }
.bar-n { font-size: .82rem; color: var(--text); line-height: 1.25; padding-left: 10px; min-width: 0; overflow-wrap: anywhere; }
.bar-t { min-width: 0; }
.bar { display: block; height: 14px; background: var(--bar); border-radius: 0 4px 4px 0; min-width: 2px; }
.bar-v { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.viz-note { margin-top: 12px; font-size: .78rem; color: var(--faint); }
.cols { display: flex; align-items: flex-end; gap: 6px; height: 110px; border-bottom: 1px solid var(--rule); padding: 18px 2px 0; }
.col { flex: 1 1 0; height: 100%; display: flex; align-items: flex-end; min-width: 0; }
.col-bar { position: relative; display: block; width: 100%; max-width: 24px; margin: 0 auto; background: var(--bar); border-radius: 4px 4px 0 0; min-height: 0; }
.col-v { position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); padding-bottom: 4px; font-size: .74rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cols-axis { display: flex; justify-content: space-between; margin-top: 6px; font-size: .72rem; color: var(--faint); }
@media (max-width: 560px) {
  .kpi-v { font-size: 1.5rem; }
  .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .bars-body { gap: 12px; }
  .bar-row { grid-template-columns: 1fr 48px; gap: 4px 8px; }
  .bar-n { grid-column: 1 / -1; font-size: .78rem; }
}
