:root {
  --bg: #000;
  --panel: #0b0b0b;
  --panel-2: #121212;
  --line: #2a0000;
  --line-soft: #1e1e1e;
  --red: #ea0000;
  --red-soft: #ea0000;  /* links and labels use the brand red too */
  --red-dim: #5a0000;
  --ok: #00d17f;
  --warn: #ffb020;
  --text: rgba(255, 255, 255, .86);
  --muted: rgba(255, 255, 255, .58);
  --faint: rgba(255, 255, 255, .38);
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --radius: 14px;
}

* { box-sizing: border-box; }
html { background: var(--bg); scrollbar-gutter: stable; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red-soft); text-decoration: none; }
a:hover, a:focus-visible { color: var(--ok); }
:focus-visible { outline: 2px solid var(--ok); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; color: #fff; }
h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); }
h1 em { color: var(--red); font-style: normal; }
h2 { font-size: 1.15rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 1rem; }
ul { margin: 0; padding-left: 1.1rem; }

.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; background: var(--red); color: #fff; padding: 6px 10px; z-index: 10; }

/* Header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(0, 0, 0, .92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-inner { max-width: 1280px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { color: #fff; font-weight: 700; display: flex; gap: 6px; align-items: baseline; }
.brand-mark { color: var(--red); }
.brand-sep { color: var(--faint); }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; }
.nav a { color: var(--muted); padding: 4px 10px; border-radius: 999px; }
.nav a:hover { color: #fff; }
.nav a[aria-current="page"] { color: #fff; background: var(--red-dim); }
.currency { display: inline-flex; border: 1px solid var(--red-dim); border-radius: 999px; overflow: hidden; }
.currency button { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--muted); padding: 4px 12px; cursor: pointer; }
.currency button[aria-pressed="true"] { background: var(--red); color: #fff; }

main { max-width: 1280px; margin: 0 auto; padding: 28px 16px 48px; outline: none; }
.loading { color: var(--muted); }
.foot { border-top: 1px solid var(--line); color: var(--faint); font-size: .85rem; text-align: center; padding: 18px 16px 28px; }
.foot p { margin: 0; }

/* Hero */
.hero { display: grid; gap: 18px; grid-template-columns: 1fr; margin-bottom: 26px; }
@media (min-width: 900px) { .hero { grid-template-columns: 1.6fr 1fr; align-items: end; } }
.hero p { color: var(--muted); max-width: 62ch; }
.meta { color: var(--faint); font-size: .85rem; }
.cta { display: block; border: 1px solid var(--red); border-radius: var(--radius); padding: 14px 16px; background: linear-gradient(135deg, rgba(234, 0, 0, .16), rgba(234, 0, 0, 0)); color: #fff; }
.cta strong { display: block; color: var(--red-soft); }
.cta:hover { color: #fff; border-color: var(--ok); }
.cta:hover strong { color: var(--ok); }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-bottom: 18px; }
.search, select {
  font: inherit; font-size: .9rem; color: #fff; background: var(--panel-2);
  border: 1px solid var(--line-soft); border-radius: 10px; padding: 7px 10px;
}
.search { min-width: 240px; flex: 1; max-width: 380px; }
.search:focus, select:focus { border-color: var(--red); outline: none; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: .8rem; color: var(--muted); align-items: center; }
.legend .chip { pointer-events: none; }

/* Chips: style shows how well known a cert is */
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; line-height: 1.2;
  padding: 4px 9px; border-radius: 999px; border: 1px solid transparent; white-space: nowrap;
  transition: opacity .15s, transform .15s, box-shadow .15s;
}
.chip.r-widely-requested { background: var(--red); color: #fff; }
.chip.r-respected { border-color: var(--red); color: var(--red-soft); }
.chip.r-niche { border-color: #555; color: var(--muted); }
.chip.r-little-known { border: 1px dashed #444; color: var(--faint); }
a.chip:hover, a.chip.hl { box-shadow: 0 0 0 2px var(--ok); color: #fff; }
.chip .pip { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.chip.r-widely-requested .pip { background: #fff; }
.dim { opacity: .18; }

/* Generic panels */
.crumbs { font-size: .85rem; color: var(--faint); margin-bottom: 14px; }
.crumbs a { color: var(--muted); }
.panel { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 16px; }
.grid-2 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 820px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.stack > * + * { margin-top: 16px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 14px; }
.tag { font-size: .75rem; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-soft); color: var(--muted); }
.tag.lvl { border-color: var(--red-dim); color: #fff; }
.roles { color: var(--muted); font-size: .88rem; }

/* Cert page */
.cert-head { display: grid; gap: 16px; grid-template-columns: 1fr; margin-bottom: 18px; }
@media (min-width: 900px) { .cert-head { grid-template-columns: 1.5fr 1fr; } }
.vendor { color: var(--red-soft); font-size: .85rem; margin-bottom: 4px; }
.price-big { font-size: 1.8rem; color: #fff; font-weight: 700; }
.price-sub { color: var(--muted); font-size: .85rem; }
dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: .9rem; }
dl.facts dt { color: var(--faint); }
dl.facts dd { margin: 0; }
.pros li::marker { content: "+  "; color: var(--ok); }
.cons li::marker { content: "–  "; color: var(--red-soft); }
.pros li, .cons li { margin-bottom: 6px; }
.pros h2 { color: var(--ok); }
.cons h2 { color: var(--red-soft); }
.sources { font-size: .8rem; color: var(--faint); word-break: break-all; }
.sources a { color: var(--muted); }
.stale { border: 1px solid var(--warn); color: var(--warn); border-radius: 10px; padding: 8px 12px; font-size: .85rem; margin-bottom: 14px; }
.btn { display: inline-block; border: 1px solid var(--red); color: #fff; border-radius: 999px; padding: 6px 14px; font-size: .88rem; }
.btn:hover { border-color: var(--ok); }
.approx { color: var(--faint); }

/* Table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line-soft); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: .86rem; }
th, td { text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
th { color: var(--faint); font-weight: 400; font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; background: var(--panel); position: sticky; top: 0; }
th button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-transform: inherit; letter-spacing: inherit; }
th button:hover { color: #fff; }
th[aria-sort] button { color: #fff; }
tbody tr:hover { background: var(--panel-2); }
td.num { white-space: nowrap; text-align: right; }
th.num { text-align: right; }
.count { color: var(--faint); font-size: .85rem; margin: 0 0 10px; }

/* Pathways */
.path-list { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.path-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; color: var(--text); }
.path-card:hover { border-color: var(--ok); color: var(--text); }
.path-card h2 { color: #fff; }
.path-card p { color: var(--muted); font-size: .88rem; margin: 0; }
.timeline { list-style: none; padding: 0; margin: 20px 0 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 13px; top: 6px; bottom: 6px; width: 2px; background: var(--red-dim); }
.step { position: relative; padding: 0 0 26px 44px; }
.step-num {
  position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%;
  background: #000; border: 2px solid var(--red); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.step h2 { margin-bottom: 2px; }
.step .when { color: var(--faint); font-size: .8rem; margin-bottom: 8px; }
.step p { color: var(--muted); }
.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin: 10px 0; }
.option { display: block; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; color: var(--text); }
.option:hover { border-color: var(--ok); color: var(--text); }
.option strong { color: #fff; display: block; }
.option span { font-size: .8rem; color: var(--muted); }
.pick { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--red-soft); }
.free { font-size: .85rem; color: var(--muted); }
.free strong { color: var(--ok); font-weight: 400; }
.total { border-top: 1px solid var(--line); padding-top: 14px; color: var(--muted); }
.total strong { color: #fff; }

.prose { max-width: 72ch; margin-inline: auto; }
.prose h2 { margin-top: 1.6rem; }
.prose li { margin-bottom: .4rem; }

/* Small utilities (the CSP blocks inline style attributes) */
.lede { color: var(--muted); max-width: 70ch; }
.lede.small { font-size: .88rem; }
.roles strong { color: #fff; }
.mt { margin-top: 16px; }
.mt-s { margin-top: 8px; }
.option .chip { margin-top: 6px; }

/* ---------- Header (matches Decode and the other DanSec tools) ---------- */
.top { position: sticky; top: 0; background: rgba(0, 0, 0, .94); border-bottom: 1px solid var(--line); }
.top-inner { max-width: none; padding: .85rem 1.5rem; gap: .25rem 1.2rem; align-items: center; }
.brand { color: var(--red); font-weight: 700; letter-spacing: .02em; display: inline; }
.brand:hover { color: #fff; }
.path { color: rgba(255, 255, 255, .64); margin-left: -.6rem; }
a.path:hover { color: #fff; }
.tagline { color: #8a8a8a; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 0 auto; }
.top .nav { flex: 0 1 auto; margin-left: .6rem; }
.top .nav a { font-size: .88rem; padding: 2px 10px; }
.top .currency { align-self: center; }
@media (max-width: 700px) { .tagline { display: none; } .top-inner { padding: .75rem 1rem; } .top .currency { margin-left: auto; } }
.more-tools { border-top: 1px solid var(--line); color: var(--faint); font-size: .8rem; text-align: center; padding: 16px 16px 26px; }
.more-tools p { margin: 0 0 6px; }
.more-tools a { color: var(--muted); }
.more-tools a:hover { color: var(--ok); }

/* ---------- Map page ---------- */
main.wide { max-width: none; padding: 12px 1.5rem 12px; }
.strip { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 6px; }
.strip-title h1 { font-size: 1.15rem; margin: 0; }
.strip-title .meta { margin: 0; font-size: .78rem; }
.strip .search { min-width: 200px; max-width: 260px; padding: 5px 10px; }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--muted); cursor: pointer; }
.switch input { accent-color: var(--red); width: 15px; height: 15px; }
.list-link { font-size: .82rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.cta-small { margin-left: auto; border: 1px solid var(--red); border-radius: 999px; padding: 5px 14px; font-size: .85rem; color: var(--text); background: rgba(234, 0, 0, .12); white-space: nowrap; }
.cta-small strong { color: var(--red-soft); }
.cta-small:hover { border-color: var(--ok); color: #fff; }
.cta-small:hover strong { color: var(--ok); }

.bubble-wrap { display: flex; justify-content: safe center; }
#bubbles { display: block; flex: none; max-width: none; user-select: none; -webkit-user-select: none; }
/* Level bands: expert at the top, entry at the bottom */
.band { stroke: #1a1a1a; stroke-width: 1; }
.band-entry { fill: #0b0b0b; }
.band-intermediate { fill: #0f0707; }
.band-advanced { fill: #140707; }
.band-expert { fill: #1a0606; }
.band-label { fill: #fff; font: 700 13px var(--mono); letter-spacing: .08em; }
.band-sub { fill: #9a9a9a; font: 11px var(--mono); }
.climb { stroke: #ea0000; stroke-width: 2.5; }
.divider { stroke: #222; stroke-width: 1; stroke-dasharray: 3 4; }
.group-line { stroke: #5a0000; stroke-width: 2; }
.group-name { fill: var(--red-soft); font: 700 11.5px var(--mono); letter-spacing: .16em; text-anchor: middle; }
.col-name { fill: #fff; font: 700 13.5px var(--mono); text-anchor: middle; }
.col-head-link:hover .col-name, .col-head-link:focus-visible .col-name { fill: var(--ok); }
.links line { stroke: var(--ok); stroke-width: 1.5; stroke-dasharray: 4 3; opacity: .8; pointer-events: none; }

.node { cursor: grab; touch-action: none; }
.node.dragging { cursor: grabbing; }
.node circle { stroke: #000; stroke-width: 1.2; transition: opacity .15s; }
.node text { fill: #fff; font-family: var(--mono); font-weight: 700; text-anchor: middle; pointer-events: none; }
.node.rec-little-known:not(.ghost) circle { stroke: #555; stroke-dasharray: 3 2; }
.node.ghost circle { stroke-width: 1.5; stroke-dasharray: 3 2; fill: rgba(0, 0, 0, .55); }
.node.ghost.rec-widely-requested circle { stroke: #ea0000; }
.node.ghost.rec-respected circle { stroke: #c42020; }
.node.ghost.rec-niche circle { stroke: #8a3030; }
.node.ghost.rec-little-known circle { stroke: #666; }
.node.ghost text { fill: rgba(255, 255, 255, .72); font-weight: 400; }
.node:hover circle, .node.hl circle { stroke: var(--ok) !important; stroke-width: 2.5; stroke-dasharray: none; }
.node.hl.ghost text { fill: #fff; }
#bubbles.searching .node:not(.match) { opacity: .13; }
.node.match circle { stroke: var(--ok) !important; stroke-width: 3; stroke-dasharray: none; }
.tip-areas { color: var(--ok); }
.bubble-wrap { overflow-x: auto; }

.map-key, .map-foot { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; margin-top: 8px; font-size: .78rem; color: var(--muted); }
.map-key .key, .map-foot .key { display: inline-flex; align-items: center; gap: 6px; }
.map-key .meta, .map-foot .meta { font-size: .76rem; }

.tip {
  position: fixed; z-index: 20; pointer-events: none; max-width: 300px;
  background: rgba(10, 10, 10, .96); border: 1px solid var(--red); border-radius: 10px; padding: 8px 11px;
  display: flex; flex-direction: column; gap: 1px; font-size: .78rem; color: var(--muted);
}
.tip strong { color: #fff; font-size: .84rem; }
.tip[hidden] { display: none; }

/* ---------- Area ladder ---------- */
.ladder { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0 26px; }
.rung { display: flex; flex-direction: column; gap: 8px; }
.rung-head { display: flex; align-items: center; gap: 6px; font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted);
  padding-bottom: 6px; border-bottom: 2px solid var(--red-dim); }
.ex-cert { display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 10px; padding: 8px 10px; color: var(--text); }
.ex-cert:hover { border-color: var(--ok); color: var(--text); }
.ex-cert strong { color: #fff; }
.ex-vendor { font-size: .74rem; color: var(--red-soft); }
.ex-meta { font-size: .74rem; color: var(--muted); }
.ex-cert .chip { align-self: flex-start; margin-top: 4px; font-size: .68rem; padding: 2px 8px; }
@media (max-width: 899px) {
  .ladder { grid-template-columns: 1fr 1fr; }
  .cta-small { margin-left: 0; }
  .strip .search { max-width: none; flex: 1; }
}
@media (max-width: 520px) { .ladder { grid-template-columns: 1fr; } }

/* Level badges: brighter as the level goes up */
.tier-label {
  display: inline-grid; place-items: center; width: 16px; height: 16px; padding: 0; border-radius: 4px;
  font-size: .62rem; font-weight: 700; letter-spacing: 0; text-transform: none; color: #fff;
}
.tier-label.lv-entry { background: #2b2b2b; }
.tier-label.lv-intermediate { background: #5a1a1a; }
.tier-label.lv-advanced { background: #8f0f0f; }
.tier-label.lv-expert { background: var(--red); }
main:focus, main:focus-visible { outline: none; }

.map-key { margin: 0 0 10px; padding: 8px 12px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel); }

/* Map scope: tabs on wider screens, an area picker on phones */
.scope { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.scope button { font: inherit; font-size: .85rem; background: none; color: var(--muted); border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 14px; cursor: pointer; }
.scope button:hover { color: #fff; border-color: var(--red); }
.scope button[aria-pressed="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.area-select { display: none; align-items: center; gap: 8px; margin: 0 0 10px; font-size: .9rem; color: var(--muted); }
.area-select select { flex: 1; min-width: 0; width: 100%; font-size: 1rem; padding: 8px 10px; }
@media (max-width: 699px) {
  .scope { display: none; }
  .area-select { display: flex; }
  .map-key { font-size: .74rem; }
  .strip .switch { display: none; }
}
@media (pointer: coarse) { .node { touch-action: manipulation; } }

.hint-touch { display: none; }
@media (pointer: coarse) { .hint-mouse { display: none; } .hint-touch { display: inline; } }

/* Bigger tap targets on touch screens */
@media (pointer: coarse) {
  .top .nav a { padding: 8px 12px; }
  .currency button { padding: 8px 14px; }
  .brand, .path { display: inline-block; padding: 6px 0; }
  .more-tools a, .crumbs a, .sources a, .list-link, .ex-hidden { display: inline-block; padding: 6px 2px; }
  .lede a, .prose a, .total a, .roles a, p a { display: inline-block; padding: 4px 0; }
  .chip { padding: 6px 10px; }
}

/* ---------- Career flowchart (Pathways page) ---------- */
.career { position: relative; margin: 22px 0 10px; }
.career-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 0; }
.career-lines path { fill: none; stroke: #a30d0d; stroke-width: 1.6; stroke-linejoin: round; }
.career-row { display: flex; justify-content: center; position: relative; z-index: 1; }
.career-branches { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; margin: 52px 0 0; position: relative; z-index: 1; }
.branch { display: flex; flex-direction: column; gap: 14px; }
.branch-next { display: flex; flex-direction: column; gap: 10px; margin-left: 34px; }
.career-node {
  display: flex; flex-direction: column; gap: 5px; position: relative; z-index: 1;
  background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; color: var(--text);
}
.career-node:hover, .career-node:focus-visible { border-color: var(--ok); color: var(--text); }
.career-node strong { color: #fff; font-size: 1.02rem; line-height: 1.25; }
.node-kicker { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--red-soft); font-weight: 700; }
.node-text { font-size: .82rem; color: var(--muted); }
.node-go { font-size: .8rem; color: var(--red-soft); margin-top: 2px; }
.career-node:hover .node-go { color: var(--ok); }
.career-node.start { max-width: 560px; width: 100%; border-color: var(--red); background: linear-gradient(135deg, rgba(234, 0, 0, .2), rgba(234, 0, 0, .03)), var(--panel); }
.career-node.job { border-color: #7a0000; }
.career-node.role { background: var(--panel-2); border-color: var(--line-soft); padding: 10px 12px; }
.career-node.role strong { font-size: .92rem; }
.career-node.end { border-color: #7a0000; background: linear-gradient(135deg, rgba(234, 0, 0, .12), rgba(234, 0, 0, .02)), var(--panel); }
.ends { position: relative; z-index: 1; margin-top: 40px; }
.ends-head { display: flex; justify-content: center; }
.ends-head span { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; font-weight: 700; }
.ends-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; max-width: 920px; margin: 36px auto 0; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 4px; }
.chain .chip { font-size: .7rem; padding: 2px 8px; }
.chain-arrow { color: var(--faint); font-size: .75rem; }

@media (max-width: 759px) {
  .career-branches { grid-template-columns: 1fr; gap: 34px; margin: 34px 0; }
  .branch { gap: 14px; }
  .branch-next { margin-left: 30px; gap: 10px; }
  .ends { margin-top: 30px; }
  .ends-head { justify-content: flex-start; }
  .ends-row { grid-template-columns: 1fr; margin-top: 26px; gap: 28px; }
  .ends-row .career-node + .career-node::before { content: "or"; position: absolute; top: -14px; left: 50%; transform: translate(-50%, -50%); color: var(--faint); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
  .branch + .branch::before { content: "or"; align-self: center; margin: -18px 0 -6px; color: var(--faint); font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; }
}
.next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin-top: 10px; }


/* ----- cert page actions, my certs, compare, changes ----- */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
button.btn { background: none; font: inherit; font-size: .88rem; cursor: pointer; }
.btn.ghost { border-color: var(--line-soft); color: var(--text); }
.btn.ghost:hover { border-color: var(--ok); }
.btn[aria-pressed="true"] { border-color: var(--ok); color: var(--ok); }
.dd-sub { display: block; font-size: .75rem; color: var(--faint); }
.ex-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 10px; }
h3 { margin: 1.4rem 0 .2rem; font-size: 1rem; color: #fff; }
.node.have:not(.ghost) circle { stroke: var(--ok); stroke-width: 3; stroke-dasharray: none; }
.node.have.ghost circle { stroke: var(--ok); }
.compare-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 14px 0; }
.compare-pick select { width: 100%; }
table.compare th[scope="row"] { color: var(--muted); font-weight: 400; white-space: nowrap; vertical-align: top; }
table.compare td { vertical-align: top; min-width: 180px; }
table.compare ul { margin: 0; padding-left: 1.1em; }
table.compare li { margin-bottom: .3rem; }
.change { border-top: 1px solid var(--line); padding-top: .4rem; }
.change h2 { font-size: 1.05rem; }
@media (max-width: 700px) { .compare-pick { grid-template-columns: 1fr; } }

/* ----- poster (scripts/poster.mjs takes a picture of /poster/) ----- */
body.poster-mode .top, body.poster-mode .more-tools, body.poster-mode .skip { display: none; }
body.poster-mode main { max-width: none; width: 2400px; padding: 40px 48px 32px; margin: 0; }
.poster-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 18px; }
.poster-head h1 { font-size: 2.6rem; margin: 0 0 6px; }
.poster-head .map-key { margin: 0; }
.poster-foot { margin-top: 18px; color: var(--muted); font-size: 1.05rem; text-align: center; }
.poster-foot strong { color: var(--red); }

/* ----- funding ----- */
.fund-toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 6px; }
.fund-toc a { border: 1px solid var(--line-soft); border-radius: 999px; padding: 4px 12px; font-size: .85rem; color: var(--text); }
.fund-toc a:hover { border-color: var(--ok); }
.fund-sec { margin-top: 2rem; scroll-margin-top: 16px; }
.fund-sec > p { max-width: 75ch; color: var(--muted); }
.fund-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 12px; }
.fund { background: var(--panel); border: 1px solid var(--line-soft); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.fund-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.fund h3 { margin: 0; }
.fund .facts { margin: 0; }
.fund .meta { margin: auto 0 0; }
@media (max-width: 700px) { .fund-grid { grid-template-columns: 1fr; } }
.fund-head .tag { flex: none; white-space: nowrap; text-align: center; }
@media (max-width: 700px) {
  .fund dl.facts { display: block; }
  .fund dl.facts dt { margin-top: 8px; }
  .fund dl.facts dd { margin: 2px 0 0; }
}

/* ----- share image (1200x630, rendered by scripts/poster.mjs) ----- */
body.share-mode main { width: 1200px; height: 630px; padding: 0; overflow: hidden; }
.share { position: relative; width: 1200px; height: 630px; background: #000; overflow: hidden; }
.share-map { position: absolute; top: -175px; left: 380px; width: 1500px; height: auto; opacity: .85; }
.share::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #000 0%, #000 34%, rgba(0, 0, 0, .75) 52%, rgba(0, 0, 0, 0) 75%); }
.share-text { position: absolute; z-index: 1; left: 64px; top: 0; bottom: 0; width: 560px; display: flex; flex-direction: column; justify-content: center; }
.share-brand { font-weight: 700; color: var(--red); margin: 0 0 18px; font-size: 1.4rem; }
.share-brand span { color: #fff; font-weight: 400; }
.share h1 { font-size: 3.6rem; line-height: 1.08; margin: 0 0 22px; }
.share-sub { font-size: 1.3rem; line-height: 1.5; color: var(--text); margin: 0 0 26px; }
.share-url { display: inline-block; align-self: flex-start; border: 1px solid var(--red); border-radius: 999px; padding: 8px 18px; font-size: 1.15rem; color: #fff; margin: 0; }
@media (max-width: 700px) {
  /* Phones: logo and currency on the first row, the menu on its own row below. */
  .top .currency { order: 1; }
  .top .nav { order: 2; flex-basis: 100%; margin-left: -10px; }
}
