/* Mainblades market dashboard. Palette and type follow tools 03 and 06:
   navy #041c2c, lime #beee66, Albert Sans for text, IBM Plex Mono for numerals.
   Fonts and libraries are bundled; the only network requests are the live feeds. */
/* tokens:start */
:root {
  --navy: #041c2c;
  --navy-2: #072437;
  --navy-3: #0b2e44;
  --navy-4: #123a53;
  --line: rgba(242, 243, 244, 0.09);
  --line-2: rgba(242, 243, 244, 0.16);
  --lime: #beee66;
  --lime-dim: rgba(190, 238, 102, 0.55);
  --lime-faint: rgba(190, 238, 102, 0.12);
  --ink: #f2f3f4;
  --ink-2: #c9d2d8;
  --muted: #8199a8;
  --warn: #ffb86b;
  --font: "Albert Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --r: 22px;
}
/* tokens:end */
/* Series colours. Lime is always the first series; the rest are held to
   similar lightness so no vendor reads as "the important one". */
:root {
  --c1: #beee66;
  --c2: #6cc3ff;
  --c3: #ffb86b;
  --c4: #ff8fa3;
  --c5: #7fe0c1;
  --c6: #c9b3ff;
  --c7: #8199a8;
  --bad: #ff7a7a;
}
@font-face { font-family: "Albert Sans"; src: url('fonts/albert-sans.ttf') format('truetype'); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url('fonts/ibm-plex-mono.ttf') format('truetype'); font-weight: 400; font-display: swap; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
a { color: var(--lime); }
b, strong { font-weight: 500; }
.num, .mono, td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
h1, h2, h3, h4 { font-weight: 500; letter-spacing: -0.015em; margin: 0; }
h2 { font-size: 24px; font-weight: 400; }
h3 { font-size: 16.5px; }
p { margin: 0 0 10px; }
.sub { color: var(--muted); font-size: 13.5px; margin: 0 0 14px; max-width: 70ch; }
.small { font-size: 12.5px; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- scan grid: the one decorative texture. It is the dot grid a
   drone's flight plan lays over an airframe, and it appears behind the hero
   and the map only. ---------- */
.scan {
  background-image: radial-gradient(rgba(190, 238, 102, 0.16) 1px, transparent 1.2px);
  background-size: 22px 22px;
  background-position: 11px 11px;
}

/* ---------- top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 22px;
  padding: 14px 36px;
  background: rgba(4, 28, 44, 0.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); white-space: nowrap; }
.brand .word { font-size: 21px; font-weight: 500; letter-spacing: -0.01em; }
.brand .tool { color: var(--muted); font-size: 13px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.nav { display: flex; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav button {
  background: none; border: 0; cursor: pointer;
  padding: 8px 13px; border-radius: 999px;
  color: var(--ink-2); font-size: 14.5px;
}
.nav button:hover { color: var(--ink); background: rgba(255, 255, 255, 0.04); }
.nav button.on { color: var(--ink); background: var(--navy-3); }
.livedot {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11.5px; color: var(--muted); white-space: nowrap;
}
.livedot i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); display: inline-block; }
.livedot.ok i { background: var(--lime); box-shadow: 0 0 0 4px var(--lime-faint); }
.livedot.warn i { background: var(--warn); }
.livedot.bad i { background: var(--bad); }

main { padding: 0 36px 120px; max-width: 1480px; margin: 0 auto; }
.view { display: none; animation: rise .4s ease both; }
.view.on { display: block; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- view heading ---------- */
.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: end; padding: 48px 0 22px; }
.hero h1 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; font-weight: 500; margin: 0; letter-spacing: -0.025em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero p { color: var(--ink-2); max-width: 560px; margin: 0; font-size: 15.5px; }
.hero .aside { text-align: right; color: var(--muted); font-size: 13px; }

/* the curved lime rule from mainblades.com, as section frame */
.frame {
  position: relative;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
  border-top-left-radius: 44px;
  padding: 26px 0 10px 32px;
  margin-top: 30px;
}
.frame::before {
  content: ""; position: absolute; left: -1px; top: -1px; width: 120px; height: 60px;
  border-top: 1px solid var(--lime-dim); border-left: 1px solid var(--lime-dim);
  border-top-left-radius: 44px; pointer-events: none;
}
.frame > h2 { margin-bottom: 4px; }
.frame > .sub { margin-bottom: 18px; }

/* ---------- panels and grids ---------- */
.panel { background: var(--navy-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; min-width: 0; }
.panel.tight { padding: 14px 16px; }
.panel h3 { margin-bottom: 4px; }
.panel .sub { margin-bottom: 12px; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g21 { grid-template-columns: 2fr 1fr; }
.g12 { grid-template-columns: 1fr 2fr; }
.span2 { grid-column: span 2; }
@media (max-width: 1100px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g21, .g12 { grid-template-columns: 1fr; } .topbar { gap: 14px; padding-left: 20px; padding-right: 20px; } .brand .tool { display: none; } .nav button { padding: 7px 10px; font-size: 13.5px; } }
body { padding-bottom: env(safe-area-inset-bottom); }
.topbar { padding-top: calc(14px + env(safe-area-inset-top)); }
@media (max-width: 760px) {
  .topbar { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; gap: 10px; flex-wrap: wrap; }
  .brand .tool { display: none; }
  .livedot { order: 2; margin-left: auto; }
  .nav { order: 3; flex: 1 1 100%; margin-left: 0; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .nav::-webkit-scrollbar { display: none; }
  .nav button { flex: none; }
  .drawer { width: 100vw; padding: 22px 18px 40px; }
  .search { min-width: 0; width: 100%; font-size: 16px; }
  .hero h1 { font-size: 30px; }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: minmax(70px, 110px) 1fr 54px; }
  .tl .ev-item { grid-template-columns: 1fr; gap: 2px; }
  main { padding: 0 16px 80px; }
  .hero { grid-template-columns: 1fr; gap: 12px; padding-top: 28px; }
  .hero .aside { text-align: left; }
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .frame { padding-left: 18px; }
}

/* ---------- live strip: flat counts, no giant numerals ---------- */
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.strip > div { background: var(--navy-2); padding: 12px 14px; }
.strip .k { font-family: var(--mono); font-size: 22px; line-height: 1.1; color: var(--ink); }
.strip .k.pending { color: var(--muted); }
.strip .l { font-size: 12px; color: var(--muted); margin-top: 4px; }
.strip .s { font-size: 11px; color: var(--muted); font-family: var(--mono); margin-top: 2px; }
.strip .s.live { color: var(--lime); }
.strip .s.bad { color: var(--warn); }

/* ---------- feed notices: a failed live source says so, in place ---------- */
.notice { border: 1px solid rgba(255, 184, 107, 0.45); background: rgba(255, 184, 107, 0.08); color: var(--warn); border-radius: 12px; padding: 10px 14px; font-size: 13px; margin: 0 0 14px; }
.notice.ok { border-color: var(--lime-dim); background: var(--lime-faint); color: var(--lime); }

/* ---------- toolbar / segmented controls ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 4px 0 16px; }
.seg { display: inline-flex; background: var(--navy-2); border: 1px solid var(--line); border-radius: 12px; padding: 3px; flex-wrap: wrap; }
.seg button { background: none; border: 0; padding: 6px 12px; border-radius: 9px; cursor: pointer; color: var(--ink-2); font-size: 13.5px; }
.seg button.on { background: var(--navy-4); color: var(--ink); }
.seg button i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 0; }
.search { background: var(--navy-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; min-width: 220px; outline: none; }
.search:focus { border-color: var(--lime-dim); }
select.sel { background: var(--navy-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; outline: none; }
.cta { background: var(--lime); color: var(--navy); border: 0; cursor: pointer; padding: 8px 16px; border-radius: 10px; font-weight: 500; font-size: 14px; }
.cta.ghost { background: transparent; color: var(--lime); border: 1px solid var(--lime-dim); }
.cta.small { padding: 5px 11px; font-size: 12.5px; border-radius: 8px; }
.cta:disabled { opacity: .45; cursor: default; }

/* ---------- tables ---------- */
.tablewrap { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: 14px; }
table.grid th { text-align: left; font-weight: 400; color: var(--muted); font-size: 12.5px; padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; cursor: pointer; user-select: none; }
table.grid th.sorted { color: var(--lime); }
table.grid td { padding: 10px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.grid tr.row { cursor: pointer; transition: background .12s; }
table.grid tr.row:hover { background: rgba(255, 255, 255, 0.025); }
table.grid tr.row.sel { background: var(--lime-faint); }
td.n, th.n { text-align: right; }
.name-cell b { font-weight: 500; }
.name-cell .meta { display: block; color: var(--muted); font-size: 12px; }

/* ---------- chips ---------- */
.chip { display: inline-block; font-family: var(--mono); font-size: 11px; padding: 2px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.chip.lime { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.chip.warn { color: var(--warn); border-color: rgba(255, 184, 107, 0.5); }
.chip.bad { color: var(--bad); border-color: rgba(255, 122, 122, 0.5); }
.chip.dim { color: var(--muted); }
.chip.wrap { white-space: normal; line-height: 1.4; }
.chip.c1 { color: var(--c1); border-color: var(--c1); } .chip.c2 { color: var(--c2); border-color: var(--c2); }
.chip.c3 { color: var(--c3); border-color: var(--c3); } .chip.c4 { color: var(--c4); border-color: var(--c4); }
.chip.c5 { color: var(--c5); border-color: var(--c5); } .chip.c6 { color: var(--c6); border-color: var(--c6); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- evidence: any sourced number or claim is a button that opens
   the drawer. Dotted lime underline marks it. ---------- */
.ev { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; font: inherit;
  border-bottom: 1px dotted var(--lime-dim); }
.ev:hover { border-bottom-style: solid; color: var(--lime); }
.ev.num { font-family: var(--mono); }
.src { font-size: 12px; color: var(--muted); margin-top: 8px; }
.src .ev { color: var(--muted); }
.src .ev:hover { color: var(--lime); }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); z-index: 80;
  background: var(--navy-3); border-left: 1px solid var(--line-2);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.45);
  transform: translateX(105%); transition: transform .25s ease;
  overflow-y: auto; padding: 26px 28px 40px;
}
.drawer.open { transform: none; }
.drawer .close { position: absolute; top: 14px; right: 16px; background: none; border: 1px solid var(--line-2); border-radius: 999px; width: 32px; height: 32px; cursor: pointer; color: var(--ink-2); }
.drawer h3 { font-size: 18px; margin: 6px 40px 10px 0; }
.drawer .claim { font-size: 15px; color: var(--ink); margin-bottom: 14px; }
.drawer blockquote { margin: 0 0 14px; padding: 12px 16px; border-left: 3px solid var(--lime); background: var(--navy-2); border-radius: 0 12px 12px 0; color: var(--ink-2); font-size: 14px; }
.drawer dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; font-size: 13px; margin: 0 0 14px; }
.drawer dt { color: var(--muted); }
.drawer dd { margin: 0; word-break: break-word; }
.drawer .notes { font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 12px; }
.scrim { position: fixed; inset: 0; background: rgba(2, 14, 24, 0.5); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }

/* ---------- map ---------- */
.mapwrap { position: relative; border-radius: 28px; overflow: hidden; background: radial-gradient(120% 90% at 30% 20%, #0a2d44 0%, #041c2c 70%); border: 1px solid var(--line); }
.mapwrap svg { display: block; width: 100%; height: auto; }
.mapwrap .land { fill: #0f3247; stroke: rgba(242, 243, 244, 0.10); stroke-width: .5; }
.mapwrap .graticule { fill: none; stroke: rgba(190, 238, 102, 0.07); stroke-width: .5; }
.mapwrap .pt { cursor: pointer; stroke: var(--navy); stroke-width: 1; }
.mapwrap .pt.op { fill: none; stroke-width: 1.5; }
.map-legend { position: absolute; left: 20px; bottom: 16px; display: flex; gap: 16px; font-size: 12.5px; color: var(--ink-2); flex-wrap: wrap; }
.map-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.map-legend i.ring { background: none; border: 2px solid currentColor; box-sizing: border-box; }
.map-layers { position: absolute; right: 18px; top: 16px; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.map-layers button { background: rgba(4, 28, 44, 0.75); border: 1px solid var(--line-2); color: var(--ink-2); border-radius: 999px; padding: 5px 11px; font-size: 12.5px; cursor: pointer; }
.map-layers button.on { border-color: var(--lime); color: var(--lime); }
.map-stat { position: absolute; left: 20px; top: 16px; font-size: 12.5px; color: var(--muted); }
.tooltip {
  position: fixed; pointer-events: none; z-index: 90;
  background: #0d3550; border: 1px solid var(--line-2); border-radius: 12px;
  padding: 10px 12px; font-size: 12.5px; max-width: 280px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.4);
  opacity: 0; transition: opacity .12s;
}
.tooltip b { font-weight: 500; font-size: 13.5px; display: block; }
.tooltip .t-row { color: var(--ink-2); }

/* ---------- charts ---------- */
.chart { width: 100%; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); font-size: 11.5px; fill: var(--muted); font-weight: 300; }
.chart text.num, .chart .val { font-family: var(--mono); }
.chart .grid line { stroke: var(--line); }
.chart .axis line, .chart .axis path { stroke: var(--line-2); }
.chart .bar { fill: var(--lime); }
.chart .bar.soft { fill: var(--ink-2); opacity: .5; }
.chart .line { fill: none; stroke: var(--lime); stroke-width: 2; }
.chart .area { fill: var(--lime); opacity: .12; }
.chart .dot { fill: var(--lime); stroke: var(--navy); stroke-width: 1.5; }
.chart .lbl { fill: var(--ink-2); }
.chart .lbl.ink { fill: var(--ink); }
.hbars { display: grid; gap: 7px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) 1fr 62px; gap: 10px; align-items: center; font-size: 13px; }
.hbar .name { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hbar .track { height: 8px; background: rgba(255, 255, 255, 0.07); border-radius: 4px; position: relative; }
.hbar .track > span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--lime); }
.hbar .v { font-family: var(--mono); font-size: 12.5px; text-align: right; color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* ---------- news records ---------- */
.rec { display: block; text-decoration: none; color: inherit; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rec:last-child { border-bottom: 0; }
.rec b { font-weight: 500; display: block; line-height: 1.3; }
.rec:hover b { color: var(--lime); }
.rec.lead b { font-size: 17px; }
.rec .snip { display: block; color: var(--ink-2); font-size: 13px; margin-top: 4px; }
.rec .meta { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; margin-top: 5px; font-size: 12px; color: var(--muted); }
.rec.r0 { box-shadow: inset 3px 0 0 var(--lime); padding-left: 12px; }
.rec.r1 { box-shadow: inset 3px 0 0 var(--c2); padding-left: 12px; }
.rec.r2 { box-shadow: inset 2px 0 0 var(--line-2); padding-left: 12px; }
.ring0 { color: var(--lime); } .ring1 { color: var(--c2); } .ring2 { color: var(--muted); }
.more { display: block; width: 100%; padding: 10px 0; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); color: var(--lime); cursor: pointer; font-size: 13px; }
.empty { color: var(--muted); font-size: 13.5px; padding: 12px 0; }

/* ---------- timeline ---------- */
.tl { position: relative; padding-left: 26px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl .yr { position: relative; font-family: var(--mono); color: var(--lime); font-size: 12.5px; margin: 18px 0 8px; }
.tl .yr::before { content: ""; position: absolute; left: -23px; top: 5px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); }
.tl .yr:first-child { margin-top: 0; }
.tl .ev-item { position: relative; padding: 10px 0 10px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 82px 1fr; gap: 12px; align-items: baseline; }
.tl .ev-item::before { content: ""; position: absolute; left: -22px; top: 17px; width: 7px; height: 7px; border-radius: 50%; background: var(--navy); border: 1.5px solid var(--muted); }
.tl .ev-item.v-c1::before { border-color: var(--c1); } .tl .ev-item.v-c2::before { border-color: var(--c2); }
.tl .ev-item.v-c3::before { border-color: var(--c3); } .tl .ev-item.v-c4::before { border-color: var(--c4); }
.tl .ev-item.v-c5::before { border-color: var(--c5); } .tl .ev-item.v-c6::before { border-color: var(--c6); }
.tl .d { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.tl .t { font-size: 14px; }
.tl .t b { font-weight: 500; }
.tl .t .meta { display: block; margin-top: 4px; font-size: 12px; color: var(--muted); }

/* ---------- player detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px; }
.detail .facts { display: grid; gap: 8px; }
.fact { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; }
.fact .claim { display: block; }
.fact .meta { display: flex; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: 12px; margin-top: 4px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }

/* ---------- regulation cards ---------- */
.reg { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--navy-2); display: grid; gap: 6px; }
.reg .head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.reg .inst { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.reg .claim { font-size: 14.5px; }
.reg .effect { font-size: 13px; color: var(--ink-2); border-top: 1px solid var(--line); padding-top: 6px; }
.reg .effect span { color: var(--muted); font-size: 11.5px; font-family: var(--mono); margin-right: 6px; }
.reg .next { font-size: 12.5px; color: var(--warn); }
.st-inforce { background: var(--lime); color: var(--navy); border-color: var(--lime); }
.st-proposed { color: var(--c2); border-color: var(--c2); }
.st-pending { color: var(--c3); border-color: var(--c3); }
.st-guidance { color: var(--c5); border-color: var(--c5); }
.st-enacted { color: var(--c6); border-color: var(--c6); }
.st-other { color: var(--muted); }

/* ---------- figure cards ---------- */
.fig { display: grid; gap: 8px; }
.fig .head { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.fig .head h3 { font-size: 15px; }
.fig .big { font-family: var(--mono); font-size: 26px; line-height: 1.1; }
.fig .big small { font-family: var(--font); font-size: 13px; color: var(--muted); margin-left: 6px; }
.fig .period { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }

/* ---------- sources list ---------- */
.srcrow { display: grid; grid-template-columns: 90px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.srcrow .org { color: var(--muted); font-size: 12px; }
.srcrow a { color: var(--ink-2); word-break: break-all; font-size: 12px; }
.srcrow .q { color: var(--ink-2); font-size: 12.5px; margin-top: 2px; }

/* ---------- footer, caution ---------- */
footer { margin-top: 60px; border-top: 1px solid var(--line); padding: 22px 0; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; font-size: 12.5px; color: var(--muted); }
footer a { color: var(--ink-2); }
.caution-btn { background: #5a1f24; color: #f3d9dc; border: 0; border-radius: 8px; padding: 5px 10px; font-size: 12px; cursor: pointer; }
.caution { display: none; position: fixed; left: 50%; bottom: 60px; transform: translateX(-50%); width: min(640px, 92vw); background: var(--navy-3); color: var(--ink); border: 1px solid var(--line-2); border-radius: 14px; padding: 18px 20px; font-size: 13.5px; z-index: 95; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5); }
.caution.open { display: block; }
.method { max-width: 78ch; }
.method h3 { margin: 22px 0 6px; }
.method p, .method li { font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.method ul { padding-left: 1.1em; }
.method code { font-family: var(--mono); font-size: 12.5px; color: var(--ink); }
