/* Vibe Check — navy and logo blue on beige paper.
   Visual direction from kateebonner/personal-site (katebonner.ai): one ink, 1px rules, square corners,
   uppercase tracked lettering, a label column divided from the body, no shadows or tints.
   Fills are 45° ink hatching; the only solid fill is an ink inversion. */

:root {
  --paper: #F2ECE1;
  --paper-2: #EAE2D4;
  --on-ink: #FFFFFF;          /* lettering on an ink fill */
  --ink: #14264A;             /* logo navy: text, rules, fills (13:1 on paper) */
  --ink-soft: #33445F;
  --line: #14264A;
  --accent: #2A66B8;          /* logo blue: links, focus, active state (5:1 on paper) */
  --rule: 1px solid var(--line);
  --hatch: repeating-linear-gradient(45deg, var(--ink) 0 1px, transparent 1px 7px);

  --font: "Be Vietnam Pro", "Helvetica Neue", Arial, sans-serif;
  --fs-0: 0.6875rem;
  --fs-1: 0.8125rem;
  --fs-2: 1.0625rem;
  --fs-3: 1.375rem;
  --fs-display: clamp(1.9rem, 1rem + 1.8vw, 2.6rem);
  --label-w: 360px;
  --measure: 66ch;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; padding-inline: 24px; padding-block: 0 24px; background: var(--paper); color: var(--ink); font: 400 var(--fs-2)/1.55 var(--font); position: relative; isolation: isolate; }
/* the sheet: generated paper grain and a soft uneven tone, no photograph */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 90% at 20% 30%, rgba(255,255,248,0.10), transparent 60%),
    radial-gradient(90% 80% at 85% 75%, rgba(120,95,60,0.05), transparent 65%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='420' height='420'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.55  0 0 0 0 0.45  0 0 0 0.12 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='900' height='900'><filter id='m'><feTurbulence type='fractalNoise' baseFrequency='0.012' numOctaves='4' seed='3'/><feColorMatrix values='0 0 0 0 0.9  0 0 0 0 0.9  0 0 0 0 0.86  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23m)'/></svg>");
  mix-blend-mode: multiply;
}
::selection { background: var(--ink); color: var(--on-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3, h4 { font-weight: 500; line-height: 1.12; margin: 0; text-wrap: balance; }
h1 { font-size: var(--fs-display); letter-spacing: 0.005em; margin: 6px 0 0; }
h2 { font-size: var(--fs-3); text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
h3 { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: 0.1em; margin: 20px 0 8px; }
h4 { font-size: var(--fs-1); text-transform: uppercase; letter-spacing: 0.1em; }
p { max-width: var(--measure); }
code, .mono { font-family: var(--font); font-variant-numeric: tabular-nums; font-size: 0.92em; }
code { border: var(--rule); padding: 0 4px; }
.muted, .fine { color: var(--ink-soft); }
.fine { font-size: var(--fs-1); line-height: 1.5; }
.pad { padding: 12px 16px; margin: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 24px; top: 8px; z-index: 2000; background: var(--paper); border: var(--rule); padding: 6px 10px; }
main, header .bar, footer.site { max-width: 1320px; margin-inline: auto; }
main:focus { outline: none; }

/* ---------- strip and top bar ---------- */
.helpstrip { margin-inline: -24px; background: var(--ink); text-align: center; padding: 8px 24px; }
.helpstrip a { color: var(--on-ink); text-decoration: none; font-size: var(--fs-1); letter-spacing: 0.08em; text-transform: uppercase; }
.helpstrip a strong { font-weight: 600; }
.helpstrip a:hover { text-decoration: underline; }
header.site { border-bottom: var(--rule); }
.bar { display: flex; align-items: center; gap: 28px; min-height: 64px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; white-space: nowrap; }
.brand img { display: block; width: 36px; height: 36px; }
.brand .wm { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; line-height: 1; }
.brand .wm-1 { color: var(--ink); }
.brand .wm-2 { color: var(--accent); }
.bar nav { display: flex; gap: 24px; flex-wrap: wrap; flex: 1; }
.bar nav a { color: var(--ink); font-size: var(--fs-1); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 6px 0; border-bottom: 1px solid transparent; }
.bar nav a:hover, .bar nav a.active { border-bottom-color: var(--accent); color: var(--accent); }
.bar-actions { display: flex; gap: 8px; align-items: center; }
.help-btn, .exit { font: 500 var(--fs-1)/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 10px 14px; border: var(--rule); cursor: pointer; }
.help-btn { background: var(--accent); color: var(--on-ink); border-color: var(--accent); }
.help-btn:hover, .help-btn.active { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.exit { background: var(--ink); color: var(--on-ink); }
.exit:hover { background: var(--paper); color: var(--ink); }

/* ---------- page head: label column, divider, body ---------- */
.hero { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); grid-template-rows: auto auto auto; border-bottom: var(--rule); margin-inline: -24px;
  background: linear-gradient(var(--line), var(--line)) no-repeat calc(var(--label-w) - 1px) 0 / 1px calc(100% - var(--stats-h, 0px)); }
.hero:has(> .stats) { --stats-h: 0px; }
.hero > .eyebrow, .hero > h1 { grid-column: 1; padding-inline: 24px; }
.hero > .eyebrow { padding-top: 40px; }
.hero > h1 { padding-bottom: 40px; }
.hero > .lede, .hero > p.muted { grid-column: 2; grid-row: 1 / span 2; padding: 40px 24px; align-self: end; }
.hero > .stats { grid-row: 3; grid-column: 1 / -1; border-top: var(--rule); padding: 16px 24px; margin: 0; background: var(--paper); }
.check-hero h1 { max-width: 14ch; }
.help-hero h1 { max-width: 12ch; }
.eyebrow { font-size: var(--fs-0); letter-spacing: 0.14em; text-transform: uppercase; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.lede { font-size: var(--fs-2); margin: 0; max-width: 60ch; }
.stats { display: flex; flex-wrap: wrap; }
.stats > div { padding-right: 32px; margin-right: 32px; border-right: var(--rule); }
.stats > div:last-child { border: 0; }
.stats b { display: block; font-size: var(--fs-display); font-weight: 500; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stats span { font-size: var(--fs-1); letter-spacing: 0.1em; text-transform: uppercase; }

.casehead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; padding-block: 24px; border-bottom: var(--rule); }
.casehead h1 { font-size: clamp(1.6rem, 1rem + 1.3vw, 2.2rem); }
.casehead h2 { margin-top: 6px; }
.casehead .lede { margin-top: 12px; }
.crumb { margin: 16px 0 0; font-size: var(--fs-1); letter-spacing: 0.1em; text-transform: uppercase; }
.crumb a { text-decoration: none; }

/* ---------- ruled areas, not cards ---------- */
.panel, .mapcard { background: transparent; border: var(--rule); }
.panel { padding: 20px 24px; }
.mapcard { margin: 24px 0 32px; overflow: hidden; }
.dash { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 24px 0 40px; border-top: var(--rule); border-left: var(--rule); }
.dash > .panel { border: 0; border-right: var(--rule); border-bottom: var(--rule); }
.span2 { grid-column: 1 / -1; }
.panel .map { margin: 0 -24px 16px; border-block: var(--rule); }
.maphead { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; padding: 16px 24px; border-bottom: var(--rule); }
.maphead h2 { margin: 0 0 6px; }

/* ---------- maps ---------- */
.map { height: 380px; background: transparent; }
.map.world { height: min(64vh, 560px); }
.leaflet-container { font: var(--fs-1) var(--font); background: transparent; }
.leaflet-tile-pane { filter: grayscale(0.6) saturate(0.7); mix-blend-mode: multiply; opacity: 0.75; }
.leaflet-bar, .leaflet-bar a, .leaflet-popup-content-wrapper, .leaflet-popup-tip, .leaflet-tooltip { border-radius: 0 !important; box-shadow: none !important; }
.leaflet-bar { border: var(--rule) !important; }
.leaflet-bar a { background: var(--paper) !important; color: var(--ink) !important; }
.leaflet-popup-content-wrapper, .leaflet-tooltip { background: var(--paper); color: var(--ink); border: var(--rule); }
.leaflet-popup-tip { background: var(--paper); }
.leaflet-control-attribution { background: #F2ECE1D9 !important; color: var(--ink); }
.leaflet-control-attribution a { color: var(--ink); }
.pin span { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--c); color: var(--on-ink); font: 500 11px var(--font); border: 1.5px solid var(--paper); }
.arrow span { display: block; color: var(--ink); font-size: 13px; line-height: 14px; text-align: center; }
.legend { display: flex; gap: 6px; flex-wrap: wrap; }
.lg { font: var(--fs-1) var(--font); color: var(--ink); background: transparent; border: var(--rule); padding: 4px 10px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.lg:not(.on) { opacity: 0.45; text-decoration: line-through; }
.lg i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.fllegend { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; border-top: var(--rule); font-size: var(--fs-1); }
.fllegend i { display: inline-block; width: 12px; height: 12px; margin-right: 6px; vertical-align: -1px; border: var(--rule); }
label.toggle { font-size: var(--fs-1); margin: 0; }

/* ---------- risk levels: outline, hatch, solid ink ---------- */
.scorebox { display: flex; gap: 16px; align-items: center; padding: 14px 18px; border: var(--rule); min-width: 250px; background: var(--paper); }
.scorebox .num { font-size: 38px; font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums; }
.scorebox small { font-size: var(--fs-1); }
.tierlabel { font-size: var(--fs-1); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.scorebox.t-high { background: var(--ink); color: var(--on-ink); }
.scorebox.t-high .fine, .scorebox.t-high small { color: var(--on-ink); }
.scorebox.t-caution { background: var(--hatch), var(--paper); }
.scorebox.t-caution > * { background: var(--paper); padding: 4px 8px; }
.scorebox.t-low { border-style: dashed; }
.mini { font: 500 var(--fs-1) var(--font); font-variant-numeric: tabular-nums; padding: 0 6px; border: var(--rule); }
.mini.t-high { background: var(--ink); color: var(--on-ink); }
.mini.t-caution { background: var(--hatch), var(--paper); }
.mini.t-low { border-style: dashed; }
.cov { font-size: var(--fs-0); letter-spacing: 0.12em; text-transform: uppercase; padding: 1px 6px; border: var(--rule); display: inline-block; margin-top: 6px; }
.t-high .cov { border-color: var(--on-ink); }
.c-uncovered { border-style: dashed; }
.c-partial { border-style: dotted; }

/* ---------- check: kinds as tiles ---------- */
.kinds { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); margin: 24px 0; border-top: var(--rule); border-left: var(--rule); }
.kind { display: flex; flex-direction: column; gap: 8px; min-height: 160px; padding: 16px; border-right: var(--rule); border-bottom: var(--rule); text-decoration: none; color: var(--ink); transition: background 140ms ease-out, color 140ms ease-out; }
.kind .ki { font-size: 22px; line-height: 1; }
.kind strong { font-weight: 500; font-size: var(--fs-1); letter-spacing: 0.12em; text-transform: uppercase; margin-top: auto; }
.kind .fine { font-size: var(--fs-1); text-transform: none; letter-spacing: 0; }
.kind:hover, .kind:focus-visible, .kind.on { background: var(--ink); color: var(--on-ink); }
.kind:hover .fine, .kind:focus-visible .fine, .kind.on .fine { color: var(--on-ink); }
@media (prefers-reduced-motion: reduce) { .kind, .card { transition: none; } }

/* ---------- forms ---------- */
form.panel { display: grid; gap: 4px; margin-bottom: 24px; }
form h2 { margin-top: 12px; }
form h2:first-child { margin-top: 0; }
label { display: block; font-size: var(--fs-1); letter-spacing: 0.04em; margin-bottom: 14px; }
label.short { max-width: 300px; }
input:not([type=checkbox]):not([type=file]), textarea, select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: 400 var(--fs-2) var(--font); color: var(--ink); background: rgba(255,255,248,0.12); border: var(--rule); border-radius: 0; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--ink) 50%), linear-gradient(135deg, var(--ink) 50%, transparent 50%); background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
textarea { resize: vertical; }
input::placeholder, textarea::placeholder { color: var(--ink-soft); }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ink); outline-offset: 1px; }
input[type=checkbox] { accent-color: var(--ink); width: 16px; height: 16px; }
input[type=file] { margin-top: 8px; font: var(--fs-1) var(--font); color: var(--ink); max-width: 100%; }
input[type=file]::file-selector-button { font: 500 var(--fs-0) var(--font); letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: var(--rule); padding: 7px 10px; margin-right: 10px; cursor: pointer; }
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 20px; }
.checkset { border: 0; padding: 0; margin: 4px 0 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 8px 20px; }
.checkset legend { font-size: var(--fs-1); margin-bottom: 10px; }
label.check { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: var(--fs-1); letter-spacing: 0; line-height: 1.45; }
label.check input { margin-top: 2px; flex: none; }
label.consent { margin: 14px 0; }
.drop { border: 1px dashed var(--line); padding: 12px 14px; margin-bottom: 14px; }
.drop label { margin: 0; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
button.primary, button.ghost, .chip-btn { font: 500 var(--fs-1)/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; padding: 12px 18px; border: var(--rule); border-radius: 0; cursor: pointer; }
button.primary { background: var(--ink); color: var(--on-ink); }
button.primary:hover { background: var(--paper); color: var(--ink); }
button.ghost, .chip-btn { background: transparent; color: var(--ink); }
button.ghost:hover, .chip-btn:hover { background: var(--ink); color: var(--on-ink); }
.chip-btn { padding: 8px 12px; }
button:disabled { opacity: 0.45; cursor: progress; }
pre.json { border: var(--rule); padding: 16px; overflow-x: auto; font: var(--fs-1)/1.5 ui-monospace, Menlo, Consolas, monospace; max-height: 420px; }
.linklike { font: inherit; background: none; border: 0; padding: 0; color: var(--ink); text-decoration: underline; text-underline-offset: 0.18em; cursor: pointer; text-align: left; }

/* ---------- rows, flags, lists ---------- */
.row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.meta { font-size: var(--fs-1); overflow-wrap: anywhere; color: var(--ink-soft); }
.why { font-size: var(--fs-1); }
ul.flags, ol.journey, .lures, .checks, .reglist, .sources, .records, .actions, .lineage, .corrlist, .articles, .corridors, .context, .contacts, .hbars { list-style: none; margin: 0; padding: 0; }
.flags li { padding: 12px 0 12px 20px; border-top: var(--rule); position: relative; }
.flags li:first-child { border-top: 0; }
.flags li::before { content: ""; position: absolute; left: 0; top: 16px; width: 8px; height: 8px; border: var(--rule); }
.flags li.w-hi::before { background: var(--ink); }
.flags li.w-md::before { background: var(--hatch); }
.flags strong { font-weight: 500; }
.pts { font-variant-numeric: tabular-nums; white-space: nowrap; font-size: var(--fs-1); }

.journey { display: grid; counter-reset: s; }
.journey li { display: grid; grid-template-columns: 30px 120px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: var(--rule); counter-increment: s; }
.journey li:first-child { border-top: 0; }
.journey li::before { content: counter(s); font: 500 var(--fs-0) var(--font); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--ink); }
.journey .stage { font-size: var(--fs-0); letter-spacing: 0.12em; text-transform: uppercase; padding-top: 4px; }
.journey p { margin: 2px 0; font-size: var(--fs-1); }
.journey strong { font-weight: 500; }
@media (max-width: 560px) { .journey li { grid-template-columns: 30px 1fr; } .journey .stage, .journey li > div { grid-column: 2; } }

.entity { border-top: var(--rule); padding-top: 12px; margin-top: 12px; }
.entity:first-of-type { border: 0; margin: 0; padding: 0; }
.entity strong { font-weight: 500; }
.lineage { border-left: var(--rule); margin: 8px 0 8px 4px; padding-left: 12px; font-size: var(--fs-1); }
.lineage .mono { font-size: var(--fs-0); letter-spacing: 0.12em; text-transform: uppercase; margin-right: 4px; }
.actions li { font-size: var(--fs-1); margin: 4px 0; }
.lures li { padding: 10px 0; border-top: var(--rule); }
.lures li:first-child { border: 0; }
.lures p { margin: 6px 0 0; font-size: var(--fs-1); }
.tag { font-size: var(--fs-0); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; border: var(--rule); padding: 2px 6px; display: inline-block; }
.acc { font-size: var(--fs-0); letter-spacing: 0.1em; text-transform: uppercase; padding: 1px 6px; border: var(--rule); white-space: nowrap; text-decoration: none; }
.a-live { background: var(--ink); color: var(--on-ink); }
a.a-live:hover { background: var(--paper); color: var(--ink); }
.a-plan { border-style: dashed; }
.reglist li, .sources li, .checks li, .corrlist li, .corridors li, .context li, .articles li { padding: 10px 0; border-top: var(--rule); font-size: var(--fs-1); }
.reglist li:first-child, .sources li:first-child, .checks li:first-child, .corrlist li:first-child, .corridors li:first-child, .context li:first-child, .articles li:first-child { border-top: 0; }
.reglist.cols { columns: 2 300px; column-gap: 32px; }
.reglist.cols li { break-inside: avoid; }
.verdict { font-size: var(--fs-0); letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; padding: 1px 6px; border: var(--rule); }
.v-hit { background: var(--ink); color: var(--on-ink); }
.v-skip { border-style: dashed; opacity: 0.7; }
.v-err { border-style: dotted; }
.records { margin: 6px 0; }
.records li { padding: 2px 0; border: 0; }
.callout { border: var(--rule); border-left-width: 6px; padding: 12px 16px; margin: 16px 0; font-size: var(--fs-1); }
.callout.red { border-left-style: double; border-left-width: 9px; }
.callout p { margin: 0; }

/* ---------- catalog ---------- */
.gridhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.gridhead h2 { margin: 0; }
.gridhead input[type=search] { max-width: 360px; margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); margin-bottom: 40px; border-top: var(--rule); border-left: var(--rule); }
.card { padding: 16px 18px; border-right: var(--rule); border-bottom: var(--rule); color: var(--ink); text-decoration: none; display: flex; flex-direction: column; gap: 8px; min-height: 190px; transition: background 140ms ease-out, color 140ms ease-out; }
.card h3 { margin: 2px 0 0; font-size: var(--fs-2); letter-spacing: 0.01em; text-transform: none; }
.card:hover, .card:focus-visible { background: var(--ink); color: var(--on-ink); }
.card:hover *, .card:focus-visible * { color: var(--on-ink) !important; border-color: var(--on-ink) !important; }
.card:hover .typ::before { background: var(--on-ink); }
.cardtop, .cardfoot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-1); }
.cardfoot { margin-top: auto; }
.route { margin: 0; font-size: var(--fs-1); }
.typ { font-size: var(--fs-0); letter-spacing: 0.12em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; }
.typ::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.status { font-size: var(--fs-1); }

/* ---------- tables, meters ---------- */
.tblwrap { overflow-x: auto; border: var(--rule); margin-bottom: 14px; }
table { border-collapse: collapse; width: 100%; font-size: var(--fs-1); }
th { font-size: var(--fs-0); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; text-align: left; padding: 10px 12px; border-bottom: var(--rule); }
td { padding: 10px 12px; border-bottom: var(--rule); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.fltable td { white-space: nowrap; }
.fltable td.focus { box-shadow: inset 3px 0 0 var(--ink); }
.meter { display: inline-block; width: 72px; height: 8px; border: var(--rule); margin-right: 8px; vertical-align: middle; }
.meter i { display: block; height: 100%; }
.fltier { font-size: var(--fs-0); letter-spacing: 0.12em; text-transform: uppercase; padding: 1px 6px; border: var(--rule); }
.corridors li { display: flex; justify-content: space-between; gap: 12px; }

/* ---------- news ---------- */
.hbars li { display: grid; grid-template-columns: minmax(110px, 38%) 1fr 34px; gap: 12px; align-items: center; padding: 4px 0; font-size: var(--fs-1); }
.hb { height: 10px; border: var(--rule); display: flex; overflow: hidden; }
.hb i { display: block; height: 100%; background: var(--ink); }
.hb.split i { opacity: 1 !important; }
.weeks { display: flex; gap: 8px; align-items: flex-end; height: 120px; padding-top: 6px; border-bottom: var(--rule); }
.weeks div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; gap: 4px; }
.weeks i { width: 100%; background: var(--hatch); border: var(--rule); border-bottom: 0; min-height: 2px; }
.weeks span { font-size: var(--fs-0); }
.articles h3 { margin: 6px 0; font-size: var(--fs-2); letter-spacing: 0.01em; text-transform: none; }
.articles p { margin: 4px 0 10px; font-size: var(--fs-1); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .acc { white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.pchip { font-size: var(--fs-0); letter-spacing: 0.06em; border: 1px solid var(--c); color: var(--c); padding: 1px 8px; border-radius: 99px; }
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filters select { width: auto; margin: 0; }

/* ---------- help ---------- */
.emergency { outline: 1px solid var(--ink); outline-offset: 4px; margin: 28px 5px 36px; }
.emerg-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.emerg-head h2 { margin: 0; }
.emerg-head p { margin: 6px 0 0; }
.emerg-num { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 14px 0; border-block: var(--rule); margin: 14px 0 18px; font-size: var(--fs-1); letter-spacing: 0.12em; text-transform: uppercase; }
.dial { font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dial.big { font-size: 46px; letter-spacing: 0.04em; text-decoration: none; line-height: 1; }
.lines, .partners { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: var(--rule); border-left: var(--rule); }
.line, .partner { border-right: var(--rule); border-bottom: var(--rule); padding: 14px 16px; }
.line h3, .partner h3 { margin: 4px 0 8px; font-size: var(--fs-2); letter-spacing: 0.01em; text-transform: none; }
.for { font-size: var(--fs-0); letter-spacing: 0.12em; text-transform: uppercase; }
.contacts li { padding: 4px 0; font-size: var(--fs-1); overflow-wrap: anywhere; }
.ctype { font-size: var(--fs-0); letter-spacing: 0.12em; text-transform: uppercase; display: inline-block; min-width: 64px; }
h2.sec { margin: 8px 0 14px; }
.situations { display: grid; margin-bottom: 32px; border-top: var(--rule); }
.situation { border-bottom: var(--rule); padding: 0 4px; }
.situation summary { cursor: pointer; font-weight: 500; font-size: var(--fs-2); padding: 16px 0; list-style: none; display: flex; gap: 12px; align-items: center; }
.situation summary::-webkit-details-marker { display: none; }
.situation summary::before { content: "+"; width: 24px; height: 24px; border: var(--rule); display: grid; place-items: center; flex: none; font-weight: 400; }
.situation[open] summary::before { content: "−"; background: var(--ink); color: var(--on-ink); }
.situation.urgent summary::after { content: "Urgent"; margin-left: auto; font-size: var(--fs-0); letter-spacing: 0.12em; text-transform: uppercase; border: var(--rule); padding: 1px 6px; }
.situation ol { margin: 0 0 18px 36px; padding-left: 18px; }
.situation li { margin-bottom: 8px; max-width: 72ch; }
.global { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.global h3 { margin: 0 0 6px; font-size: var(--fs-2); text-transform: none; letter-spacing: 0.01em; }
.pfilter { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 14px; }
.pfilter label { margin: 0; }
.next ul { margin: 0 0 14px; padding-left: 1.2em; }
.submitbox { border-top: var(--rule); padding-top: 14px; }
.submitbox h3 { margin-top: 0; }

/* ---------- methodology ---------- */
.doc { max-width: 900px; padding-block: 32px 48px; }
.doc h2 { margin-top: 44px; }
.doc li { margin-bottom: 6px; }
.toc { display: flex; flex-wrap: wrap; margin: 24px 0 8px; border-top: var(--rule); border-left: var(--rule); }
.toc a { font-size: var(--fs-0); letter-spacing: 0.12em; text-transform: uppercase; border-right: var(--rule); border-bottom: var(--rule); padding: 8px 12px; text-decoration: none; }
.toc a:hover { background: var(--ink); color: var(--on-ink); }

/* ---------- footer ---------- */
footer.site { border-top: var(--rule); padding-block: 20px 8px; font-size: var(--fs-1); }
footer.site p { max-width: 90ch; }

/* ---------- narrow ---------- */
@media (max-width: 1100px) { :root { --label-w: 300px; } }
@media (max-width: 860px) {
  body { padding-inline: 16px; }
  .helpstrip { margin-inline: -16px; }
  .hero { grid-template-columns: minmax(0, 1fr); margin-inline: -16px; background: none; }
  .hero > .eyebrow, .hero > h1 { border-right: 0; padding-inline: 16px; }
  .hero > .eyebrow { padding-top: 24px; }
  .hero > h1 { padding-bottom: 12px; }
  .hero > .lede, .hero > p.muted { grid-column: 1; grid-row: auto; padding: 0 16px 24px; }
  .hero > .stats { grid-column: 1; grid-row: auto; padding-inline: 16px; }
  .stats > div { padding-right: 16px; margin-right: 16px; }
  .casehead { grid-template-columns: minmax(0, 1fr); }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .panel { padding: 16px; }
  .panel .map { margin-inline: -16px; }
  .maphead { padding: 14px 16px; }
  .bar { gap: 10px 16px; }
  .brand { flex: 1; }
  .bar-actions { order: 2; }
  .bar nav { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; gap: 18px; }
  .bar nav a { white-space: nowrap; }
  .dial.big { font-size: 38px; }
}

/* CTDC corridors */
.ctdc-grid { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr); gap: 24px; margin: 12px 0; }
.ctdc-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ctdc-corridor h3 { margin: 0; font-size: var(--fs-2); letter-spacing: 0.01em; text-transform: none; }
.ctdc-corridor h4 { margin: 14px 0 6px; }
.ctdc-corridor h4 .fine { text-transform: none; letter-spacing: 0; }
.credit { margin-top: 12px; font-style: italic; }
@media (max-width: 860px) { .ctdc-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- home: the sheet with one drawing ---------- */
.home { display: flex; flex-direction: column; min-height: calc(100vh - 150px); }
.figure-band { position: relative; flex: 1 1 auto; min-height: 46vh; border-bottom: var(--rule); margin-inline: -24px; }
.figure-band canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.figure-caption { position: absolute; right: 24px; bottom: 14px; font-size: var(--fs-0); letter-spacing: 0.14em; text-transform: uppercase; }
.story { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; padding: 28px 0 8px; }
.story h1 { max-width: 16ch; margin: 0; }
.story .sub { margin-top: 12px; max-width: 46ch; }
.story.hero-full { grid-template-columns: minmax(0, 1fr); gap: 20px; align-items: center; justify-items: center; padding: 60px 24px; min-height: 60vh; text-align: center; }
.story.hero-full > div { display: flex; flex-direction: column; gap: 20px; align-items: center; max-width: 90ch; }
.hero-logo { display: flex; align-items: center; gap: 12px; justify-content: center; }
.hero-logo img { width: 48px; height: 48px; }
.hero-logo .eyebrow { margin: 0; }
.story.hero-full h1.hero-text { max-width: none; font-size: clamp(2.4rem, 2rem + 4vw, 4.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.story.hero-full .sub { max-width: 70ch; margin-top: 0; }
.check-blue { color: var(--accent); }
.home .kinds { margin-top: 20px; }
.home .kind { min-height: 138px; }
@media (max-width: 860px) {
  .figure-band { margin-inline: -16px; min-height: 0; aspect-ratio: 16 / 10; flex: none; }
  .story { grid-template-columns: minmax(0, 1fr); gap: 12px; }
}

/* What we're seeing */
.seeing { margin: 40px 0 16px; border-top: var(--rule); padding-top: 28px; }
.seeing-head { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); align-items: end; gap: 0; margin-bottom: 20px; }
.seeing-head h2 { margin: 0; }
.seeing-head .sub { margin: 0; max-width: 64ch; }
.seeing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule); border-left: var(--rule); margin-bottom: 12px; }
.seeing-col { border-right: var(--rule); border-bottom: var(--rule); padding: 16px 18px; }
.seeing-col h3 { margin: 0 0 10px; }
.seeing-list { list-style: none; margin: 0; padding: 0; }
.seeing-list li { border-top: var(--rule); }
.seeing-list li:first-child { border-top: 0; }
.seeing-list a { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 8px; padding: 10px 0; text-decoration: none; }
.seeing-list .rank { grid-row: 1 / span 2; font-size: var(--fs-1); font-variant-numeric: tabular-nums; padding-top: 2px; }
.seeing-list .what { font-size: var(--fs-2); line-height: 1.3; }
.seeing-list .fine { grid-column: 2; }
.seeing-list a:hover .what { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.kinds.compact .kind { min-height: 96px; }
@media (max-width: 860px) {
  .seeing-head { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .seeing-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Things to consider */
.consider { border: var(--rule); padding: 22px 24px; margin: 20px 0; }
.consider.t-high { border-width: 1px; outline: 1px solid var(--line); outline-offset: 4px; margin: 24px 5px; }
.consider h2 { margin: 0 0 4px; }
.consider .count { margin: 0 0 12px; font-size: var(--fs-1); letter-spacing: 0.12em; text-transform: uppercase; }
.considerations { margin: 0 0 16px; padding-left: 1.4em; }
.considerations li { margin-bottom: 10px; max-width: 80ch; }
.considerations strong { font-weight: 600; }
.nextstep { border-top: var(--rule); padding-top: 12px; margin: 0 0 8px; }
.helpline { margin: 0 0 10px; }
.kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .kinds { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.posting { grid-column: 1 / -1; }
.posting .inline { display: flex; gap: 8px; align-items: stretch; margin-top: 6px; }
.posting .inline input { margin-top: 0 !important; flex: 1; }
.posting .inline button { white-space: nowrap; padding-block: 0; }

/* logo palette: navy structure, logo blue for action and state */
.kind:hover, .kind:focus-visible, .kind.on, .card:hover, .card:focus-visible, .toc a:hover { background: var(--accent) !important; }
button.primary { background: var(--accent); border-color: var(--accent); }
button.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
button.ghost, .chip-btn { color: var(--accent); border-color: var(--accent); }
button.ghost:hover, .chip-btn:hover { background: var(--accent); color: var(--on-ink); }
.kind .ki, .seeing-list .rank { color: var(--accent); }
.kind:hover .ki, .kind.on .ki { color: var(--on-ink); }
.situation[open] summary::before { background: var(--accent); border-color: var(--accent); }
.helpstrip { background: var(--ink); }
input[type=checkbox] { accent-color: var(--accent); }
.meter i, .hb i { background: var(--accent); }
.seeing-list a, .corrlist a, .articles h3 a, .card { color: var(--ink); }
.seeing-list a:hover .what { color: var(--accent); }
@media (max-width: 480px) { .brand .wm { font-size: 1rem; } .brand img { width: 30px; height: 30px; } }
.ghostlink { display: inline-block; font: 500 var(--fs-1)/1 var(--font); letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none; padding: 12px 16px; border: 1px solid var(--accent); color: var(--accent); }
.ghostlink:hover { background: var(--accent); color: var(--on-ink); }

/* Unverified and verification checklist */
.scorebox.t-unverified { border: 1px dashed var(--ink); background: repeating-linear-gradient(-45deg, transparent 0 6px, rgba(20,38,74,0.06) 6px 7px), var(--paper); }
.scorebox.t-unverified .num::after { content: " ?"; color: var(--accent); }
.consider.t-unverified { border-style: dashed; }
.verify { border-top: var(--rule); margin-top: 14px; padding-top: 12px; }
.verify h3 { margin: 0 0 8px; }
.verify ul { list-style: none; margin: 0 0 8px; padding: 0; }
.verify li { display: grid; grid-template-columns: 26px 1fr; gap: 8px; padding: 6px 0; border-top: var(--rule); }
.verify li:first-child { border-top: 0; }
.verify .mark { width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--ink); font-size: 13px; }
.verify li.ok .mark { background: var(--accent); border-color: var(--accent); color: var(--on-ink); }
.verify li.no .mark { border-style: dashed; }
.verify .state { font-size: var(--fs-0); letter-spacing: 0.1em; text-transform: uppercase; border: 1px dashed var(--ink); padding: 0 5px; margin-left: 4px; }
.kinds-head { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin: 28px 0 -8px; }
.kinds-head h2 { margin: 0; }

/* Concern levels: red, yellow, green, always with a text label */
:root { --c-high: #B3261E; --c-high-bg: #F6D9D5; --c-med: #7A5A00; --c-med-bg: #F7E3A1; --c-med-bar: #E0A800; --c-low: #2E6B30; --c-low-bg: #D6EAD2; }
.concern-legend { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.clevel { font-size: var(--fs-0); font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; padding: 2px 8px; white-space: nowrap; border: 1px solid; }
.clevel.c-high { color: var(--c-high); background: var(--c-high-bg); border-color: var(--c-high); }
.clevel.c-med { color: var(--c-med); background: var(--c-med-bg); border-color: var(--c-med-bar); }
.clevel.c-low { color: var(--c-low); background: var(--c-low-bg); border-color: var(--c-low); }
.flags li.c-high::before { background: var(--c-high) !important; border-color: var(--c-high) !important; }
.flags li.c-med::before { background: var(--c-med-bar) !important; border-color: var(--c-med-bar) !important; }
.flags li.c-low::before { background: var(--c-low) !important; border-color: var(--c-low) !important; }
.flags li { padding-left: 22px; }
.flags li::before { width: 10px !important; height: 10px !important; border-radius: 50%; }
.flags li.c-high { box-shadow: inset 3px 0 0 var(--c-high); }
.flags li.c-med { box-shadow: inset 3px 0 0 var(--c-med-bar); }
.flags li.c-low { box-shadow: inset 3px 0 0 var(--c-low); }
.flags .row .clevel { margin-left: 12px; }

/* Scam types */
.scamtypes { margin: 24px 0 32px; }
.scamtypes-head { display: grid; grid-template-columns: var(--label-w) minmax(0, 1fr); align-items: end; margin-bottom: 14px; }
.scamtypes-head h2 { margin: 0; }
.scamtypes-head .fine { margin: 0; font-size: var(--fs-1); line-height: 1.4; }
.scamgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: var(--rule); border-left: var(--rule); }
.scamcard, .laundering { border-right: var(--rule); border-bottom: var(--rule); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; overflow-wrap: break-word; word-break: break-word; }
.scamcard h3, .laundering h3 { margin: 0; font-size: var(--fs-2); letter-spacing: 0; text-transform: none; line-height: 1.2; }
.scamcard p, .laundering p { margin: 0; font-size: var(--fs-1); line-height: 1.4; }
.tells { margin: 2px 0; padding-left: 1.1em; font-size: var(--fs-0); line-height: 1.3; }
.tells li { margin-bottom: 3px; }
.scamfoot { display: flex; flex-wrap: wrap; gap: 6px; align-items: flex-start; margin-top: auto; padding-top: 8px; font-size: var(--fs-0); line-height: 1.3; }
.acc { white-space: nowrap; }
.laundering { border-left: var(--rule); border-left-width: 6px; margin-top: 14px; }
@media (max-width: 1000px) { .scamgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .scamgrid { grid-template-columns: minmax(0, 1fr); } .scamtypes-head { grid-template-columns: minmax(0, 1fr); gap: 6px; } }

/* Exploitation phases */
.phase-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; margin: 24px 0; }
.phase-item { border: var(--rule); padding: 18px 20px; background: linear-gradient(45deg, transparent 0, rgba(20, 38, 74, 0.02) 100%); }
.phase-item h3 { margin-top: 0; margin-bottom: 12px; font-size: var(--fs-2); text-transform: none; letter-spacing: 0; }
.phase-item p { margin: 0; font-size: var(--fs-1); line-height: 1.5; }
