/* kots.club — one stylesheet, no framework */

@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-ext-400-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-500-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-ext-500-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-700-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-ext-700-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-800-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 800; font-display: swap;
  src: url(fonts/schibsted-grotesk-latin-ext-800-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap;
  src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); }

:root {
  --ground: #F3F5F4;
  --band: #E7ECEA;
  --surface: #FFFFFF;
  --surface-2: #F7F9F8;
  --ink: #15201D;
  --muted: #4C5753;
  --line: #D3DAD7;
  /* Ring on the floating widgets (live pill, back to top): they share the footer's
     ink colour, so without it they vanish over the footer. */
  --float-ring: #B8C2BE;
  --line-soft: #E5EAE8;
  --accent: #4527A0;
  --accent-hover: #321A7C;
  --accent-soft: #ECE7FA;
  --live: #186B43;
  --partial: #8A5200;
  --unknown: #5B6662;
  --on-ink: #C9D2CF;

  --sans: "Schibsted Grotesk", "Helvetica Neue", Helvetica, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --radius: 6px;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; }
/* Links: no underlines. Text links are bold violet (weight is the non-color cue) and get a soft
   highlight on hover; action links carry an arrow; links that leave the site carry ↗. */
a { color: var(--accent); text-decoration: none; font-weight: 600;
  transition: color 0.15s, background-color 0.15s, box-shadow 0.15s; }
a:hover { color: var(--accent-hover); }
a:not([class]):hover, a.ext:hover { background: var(--accent-soft); box-shadow: 0 0 0 3px var(--accent-soft); border-radius: 3px; }
a.ext::after { content: "\2197"; display: inline-block; margin-left: 0.2em; font-size: 0.8em; opacity: 0.75;
  transition: transform 0.15s; }
a.ext:hover::after { transform: translate(1px, -1px); opacity: 1; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.015em; }
h3 { font-size: 1.125rem; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; }
code { font-family: var(--mono); font-size: 0.875em; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }
.narrow { max-width: 820px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.icon-sm { width: 0.95em; height: 0.95em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: #fff;
  padding: 10px 16px; border-radius: var(--radius); }
.skip:focus { top: 12px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  padding: 0 20px; border-radius: var(--radius); font: 600 1rem/1.2 var(--sans); text-decoration: none;
  border: 1.5px solid transparent; cursor: pointer; }
.btn:hover { text-decoration: none; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: #000; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* language suggestion */
.suggest { background: var(--accent-soft); border-bottom: 1px solid #D8CFF5; }
.suggest-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding-block: 10px; font-size: 0.9375rem; }
.suggest a { font-weight: 600; }
.suggest button { margin-left: auto; min-height: 44px; padding: 0 14px; background: none; border: 0;
  font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; }

/* header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; padding-block: 12px; }
.logo { font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; }
.logo span { color: var(--accent); }
.logo:hover { color: var(--ink); }
.logo-light { color: #fff; }
.logo-light span { color: #B9A8F0; }
.main-nav { display: flex; flex-wrap: wrap; gap: 0 4px; margin-right: auto; }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; color: var(--ink);
  text-decoration: none; font-weight: 500; border-bottom: 2px solid transparent; }
.main-nav a:hover { border-bottom-color: var(--line); color: var(--ink); }
.main-nav a[aria-current="page"] { border-bottom-color: var(--accent); font-weight: 700; }
.lang-switch { display: flex; align-items: center; gap: 2px; color: var(--muted); }
.lang-switch .icon { margin-right: 4px; }
.lang-switch a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; color: var(--muted);
  text-decoration: none; font-weight: 600; font-size: 0.875rem; letter-spacing: 0.04em; border-bottom: 2px solid transparent; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch a[aria-current="true"] { color: var(--ink); border-bottom-color: var(--accent); }

/* safety banner */
.banner { background: var(--band); border-bottom: 1px solid var(--line); }
.banner-inner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding-block: 12px; font-size: 0.9375rem; }
.banner-inner .icon { align-self: start; margin-top: 0.2em; }
.banner-inner a { font-weight: 600; }
@media (max-width: 760px) { .banner-inner { grid-template-columns: auto minmax(0, 1fr); } .banner-inner a { grid-column: 2; } }

/* hero */
.hero { display: grid; gap: 48px; padding-block: clamp(48px, 8vw, 104px) clamp(48px, 6vw, 80px); align-items: start; }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 72px; } }
.hero h1 { font-size: clamp(2.75rem, 4.6vw + 1.2rem, 5.25rem); font-weight: 800; letter-spacing: -0.04em;
  line-height: 0.98; max-width: 11ch; text-wrap: balance; }
.hero .lede { margin-top: 28px; }
.hero .actions { margin-top: 32px; }
.lede { font-size: 1.1875rem; line-height: 1.55; color: var(--muted); max-width: 36em; }

.checklist { background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--ink); border-radius: var(--radius); }
.checklist h2 { font-size: 1.125rem; padding: 18px 24px; border-bottom: 1px solid var(--line); }
.checklist dl, .panel-list, .facts { margin: 0; }
.checklist dl > div, .panel-list > div { padding: 16px 24px; border-bottom: 1px solid var(--line-soft); }
.checklist dl > div:last-child { border-bottom: 0; }
.checklist dt, .panel-list dt, .facts dt { font-size: 0.875rem; color: var(--muted); margin-bottom: 6px; }
.checklist dd, .panel-list dd, .facts dd { margin: 0; }
.figure { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.01em; }
.note { display: block; font-size: 0.875rem; color: var(--muted); margin-top: 4px; }
.read-at { font-size: 0.8125rem; color: var(--muted); padding: 12px 24px 16px; }
.page-head .read-at { padding: 16px 0 0; }

/* addresses */
.addr { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 100%; }
td .addr { flex-wrap: nowrap; }
/* address chip: the address and its Copy button as one control */
.addr { gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); overflow: hidden; vertical-align: middle; }
.addr-link { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; color: var(--ink); font-weight: 500; overflow-wrap: anywhere; }
.addr-link:hover { background: var(--accent-soft); color: var(--accent-hover); }
.addr-link code { font-size: 0.8125rem; }
.addr .copy { min-height: 34px; min-width: 0; border: 0; border-left: 1px solid var(--line); border-radius: 0;
  padding: 0 10px; font-size: 0.75rem; color: var(--muted); }
.addr .copy:hover { background: var(--ink); color: #fff; }
.copy { min-height: 44px; min-width: 44px; padding: 0 12px; border: 1px solid var(--line); background: var(--surface);
  border-radius: var(--radius); font: 600 0.8125rem var(--sans); color: var(--ink); cursor: pointer; }
.copy:hover { border-color: var(--ink); }
.pending { color: var(--unknown); font-size: 0.9375rem; }
.live { font-variant-numeric: normal; }
.num .live { font-variant-numeric: tabular-nums; }
.hash { overflow-wrap: anywhere; }
.live-error { margin-top: 16px; padding: 12px 16px; background: #FBF1E6; color: #6B3F00; border-radius: var(--radius); font-size: 0.9375rem; }

/* sections */
.block { padding-block: clamp(40px, 6vw, 72px) 0; }
.block-tight { padding-top: 40px; }
.block h2 + .muted, .block h2 + p { margin-top: 10px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px 24px; margin-bottom: 24px; }
.section-head .muted { margin-top: 8px; }
.section-head a { font-weight: 600; }
.band { background: var(--band); border-block: 1px solid var(--line); padding-block: clamp(48px, 6vw, 72px); }
.tiles { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
  display: flex; flex-direction: column; gap: 8px; }
.tile-label { color: var(--muted); font-size: 0.9375rem; }
.tile-value { font-size: clamp(1.25rem, 0.8vw + 0.85rem, 1.5rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.tile-value .unit { display: inline-block; white-space: nowrap; font-size: 0.6em; font-weight: 600; color: var(--muted); letter-spacing: 0.02em; margin-left: 0.35em; }
.tile-link { font-size: 0.875rem; margin-top: auto; }
.two-col { display: grid; gap: 48px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); padding-block: clamp(48px, 6vw, 72px) 0; }
.page-head { padding-block: clamp(40px, 6vw, 72px) 0; }
.page-head h1 { font-size: clamp(2.25rem, 3vw + 1.2rem, 3.5rem); font-weight: 800; letter-spacing: -0.03em; max-width: 18ch; text-wrap: balance; }
.page-head .lede { margin-top: 18px; }
.split { display: grid; gap: 32px 56px; }
.split-even { display: grid; gap: 24px; }
@media (min-width: 900px) {
  .split { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: start; }
  .split-even { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
.empty { margin-top: 20px; padding: 20px 24px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.notice { margin-top: 20px; padding: 14px 18px; border-left: 0; background: var(--accent-soft); border-radius: var(--radius); }
.bullets { margin-top: 20px; padding-left: 1.2em; display: grid; gap: 10px; }
.page-head h2 { margin-top: 40px; }
.plain { list-style: none; padding: 0; display: grid; gap: 8px; }

/* table of contents */
.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.toc a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1px solid var(--line);
  border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.9375rem; }
.toc a:hover { border-color: var(--ink); }

/* tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); margin-top: 24px; }
table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 0.9375rem; }
th, td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
thead th { background: var(--surface-2); font-size: 0.8125rem; font-weight: 600; color: var(--muted); border-bottom-color: var(--line); }
tbody th { font-weight: 600; }
tbody tr:last-child > * { border-bottom: 0; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.total > * { border-top: 1px solid var(--line); font-weight: 700; }

.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.state::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; flex: none; }
.state-live { color: var(--live); }
.state-partial { color: var(--partial); }
.state-planned, .state-unknown { color: var(--unknown); }
.state-planned::before, .state-unknown::before { background: transparent; border: 2px solid currentColor; }

/* allocation bar */
.alloc-bar { display: flex; height: 18px; margin-top: 28px; border-radius: 3px; overflow: hidden; border: 1px solid var(--ink); }
.seg-dex { flex: 31.95; background: var(--ink); }
.seg-reserve { flex: 66.07; background: #8E9A96; }
.seg-ops { flex: 1.98; background: var(--accent); }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 2px; margin-right: 10px; vertical-align: -1px; }
.swatch-dex { background: var(--ink); }
.swatch-reserve { background: #8E9A96; }
.swatch-ops { background: var(--accent); }

/* facts grid */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 24px; }
.facts > div { background: var(--surface); padding: 18px 22px; }
.facts dd { font-size: 1.0625rem; font-variant-numeric: tabular-nums; }
@media (min-width: 840px) { .facts .span-2 { grid-column: span 2; } }

/* panels */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel > h2 { font-size: 1.25rem; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.panel > .muted { padding: 16px 24px 20px; }
.split .panel-list, .split > dl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.panel-list > div:last-child { border-bottom: 0; }
.report-item { padding: 18px 24px; border-bottom: 1px solid var(--line-soft); }
.report-item:last-child { border-bottom: 0; }
.report-item h3 { font-size: 1rem; margin-bottom: 6px; }
.never { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 28px 30px 32px; }
.never h2 { font-size: 1.5rem; }
.never ul { margin-top: 18px; padding-left: 1.2em; display: grid; gap: 12px; font-size: 1.0625rem; }
.never li::marker { color: #B9A8F0; }

/* home: feeds, risk */
.feed ul { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.feed li a { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line);
  color: var(--ink); text-decoration: none; }
.feed li a:hover .feed-title { color: var(--accent); }
.feed-title { font-weight: 600; }
.feed-meta { color: var(--muted); font-size: 0.875rem; white-space: nowrap; }
.feed-msg:empty { display: none; }
.feed-msg { padding: 18px 20px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); }
.table-wrap .feed-msg { border: 0; border-radius: 0; }
.riskbox { display: grid; gap: 24px 48px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); padding: clamp(24px, 4vw, 40px); }
@media (min-width: 860px) { .riskbox { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); } }
.riskbox h2 { font-size: 1.5rem; }
.riskbox p { margin-top: 12px; color: var(--muted); }
.riskbox a { display: inline-block; margin-top: 16px; font-weight: 600; }
.riskbox ul { padding-left: 1.2em; display: grid; gap: 10px; }
main > .block:last-child, main > section:last-child { padding-bottom: clamp(56px, 8vw, 96px); }

/* transparency extras */
.changelog { list-style: none; padding: 0; margin-top: 24px; border-top: 1px solid var(--line); }
.changelog li { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.changelog time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* forum */
.forum-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; }
.forum-layout { display: grid; gap: 40px; padding-top: 24px; padding-bottom: clamp(56px, 8vw, 96px); }
@media (min-width: 980px) { .forum-layout { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.search { padding-top: 24px; }
.search label { display: block; font-size: 0.875rem; color: var(--muted); margin-bottom: 6px; }
.search-row { display: flex; gap: 8px; max-width: 560px; }
.search input { flex: 1; min-width: 0; min-height: 44px; padding: 0 14px; border: 1.5px solid var(--line); border-radius: var(--radius);
  font: inherit; background: var(--surface); color: var(--ink); }
.search input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.cats { list-style: none; padding: 0; margin-top: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.cats li + li { border-top: 1px solid var(--line-soft); }
.cat { display: flex; flex-direction: column; gap: 4px; padding: 18px 22px; color: var(--ink); text-decoration: none; }
a.cat:hover .cat-name { color: var(--accent); }
.cat-name { font-weight: 700; font-size: 1.0625rem; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.cat-desc { color: var(--muted); font-size: 0.9375rem; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 0.75rem; font-weight: 600; color: var(--muted);
  border: 1px solid var(--line); border-radius: 999px; padding: 2px 8px; }
.feed-table a { color: var(--ink); font-weight: 600; }
.forum-side { display: grid; gap: 16px; }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; }
.side-card-strong { border: 2px solid var(--ink); }
.side-card h2 { font-size: 1.125rem; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.side-card ol { padding-left: 1.2em; display: grid; gap: 10px; font-size: 0.9375rem; margin-bottom: 16px; }
.side-card > a { font-weight: 600; font-size: 0.9375rem; }
.badge-row { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; margin-bottom: 10px; }
.badge { font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; padding: 3px 7px; border-radius: 3px; flex: none; }
.badge-team { background: var(--ink); color: #fff; }
.badge-mod { border: 1.5px solid var(--ink); }

/* safety */
.risks { margin-top: 24px; border-top: 1px solid var(--line); }
.risk { padding: 22px 0; border-bottom: 1px solid var(--line-soft); }
.risk p { margin-top: 8px; color: var(--muted); max-width: 66ch; }
.risk p.legalq-end { color: var(--ink); }

/* footer */
.site-footer { background: var(--ink); color: var(--on-ink); margin-top: 0; }
.site-footer .wrap { padding-block: 56px 32px; }
.footer-grid { display: grid; gap: 32px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); font-size: 0.9375rem; }
.footer-brand { display: grid; gap: 10px; align-content: start; }
.site-footer h2 { font-size: 0.9375rem; color: #fff; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; display: grid; gap: 4px; }
.site-footer a { color: var(--on-ink); display: inline-block; padding-block: 6px; font-weight: 500; }
.site-footer a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08); }
.footer-notes { margin-top: 40px; padding-top: 24px; border-top: 1px solid #34413D; font-size: 0.8125rem; line-height: 1.6; color: #A9B4B0; display: grid; gap: 6px; }

@media (max-width: 640px) {
  .header-inner { gap: 4px 12px; }
  .header-cta { display: none; }
  .main-nav { margin-right: 0; width: calc(100% + 24px); order: 3; margin-inline: -12px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .main-nav a { padding: 0 10px; white-space: nowrap; }
  .lang-switch { margin-left: auto; }
  .changelog li { grid-template-columns: 1fr; gap: 4px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  .site-header, .banner, .suggest, .copy, .site-footer, .to-top { display: none; }
  body { background: #fff; }
}
.tile-note { font-size: 0.8125rem; margin-top: 4px; }

/* how decisions are made */
.gov-grid { display: grid; gap: 16px; margin-top: 24px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.gov-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.gov-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.gov-head h4, .gov-head h3 { margin: 0; font-size: 1.0625rem; line-height: 1.25; }
/* Four cards: two by two on desktop, one column on phones (not three plus an orphan). */
.why-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.why-not { margin-top: 24px; }
.why-not h3 { font-size: 1.25rem; }
.gov-group { margin-top: 32px; font-size: 1.25rem; }
.gov-group + .gov-grid { margin-top: 14px; }
.gov-head .state { white-space: nowrap; font-size: 0.875rem; }
.gov-item > p { color: var(--muted); font-size: 0.9375rem; }
.gov-addr { margin-top: auto; padding-top: 4px; }
.limits { margin-top: 24px; padding: 22px 24px; border-left: 4px solid var(--partial); background: #FBF5EC; border-radius: var(--radius); }
.limits h3 { font-size: 1.125rem; }
.limits > p { margin-top: 6px; }
.limits ul { margin-top: 12px; padding-left: 1.2em; display: grid; gap: 8px; }
.panel-note { padding: 14px 24px 18px; border-top: 1px solid var(--line-soft); }
.sub-h { margin-top: 36px; font-size: 1.25rem; }
.sub-h + .muted { margin-top: 8px; }
td .addr-link { overflow-wrap: normal; white-space: nowrap; }

/* live vs fixed markers */
.kind { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-left: 6px; vertical-align: 0.05em; flex: none; }
.kind-live { background: var(--live); box-shadow: 0 0 0 3px rgba(24, 107, 67, 0.16); }
.kind-static { border: 1.5px solid var(--unknown); background: transparent; }
th .kind, dt .kind, .tile-label .kind { margin-left: 5px; }
.state .kind { margin-left: 8px; }
.legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 14px; font-size: 0.875rem; color: var(--muted); }
.legend .kind { margin: 0 2px 0 0; }
.legend-gap { width: 14px; }
.livebar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-top: 16px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.875rem; color: var(--muted); }
.livebar .kind { margin: 0; }
.livebar [data-livebar-text] { flex: 1 1 240px; }
.livebar-btn { min-height: 44px; padding: 0 14px; border: 1px solid var(--ink); background: var(--surface); color: var(--ink);
  border-radius: var(--radius); font: 600 0.8125rem var(--sans); cursor: pointer; }
.livebar-btn:hover:not(:disabled) { background: var(--ink); color: #fff; }
.livebar-btn:disabled { opacity: 0.55; cursor: progress; }
.checklist-foot { padding: 0 16px 16px; }
.checklist-foot .livebar { margin-top: 0; }
@media (prefers-reduced-motion: no-preference) {
  .livebar.is-loading .kind-live { animation: kots-pulse 1.2s ease-in-out infinite; }
  @keyframes kots-pulse { 50% { box-shadow: 0 0 0 6px rgba(24, 107, 67, 0.08); } }
}
.livepill { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 2px solid var(--float-ring); border-radius: 999px;
  background: var(--ink); color: #fff; font: 600 0.8125rem var(--sans); font-variant-numeric: tabular-nums;
  box-shadow: 0 6px 18px rgba(21, 32, 29, 0.22); cursor: pointer; }
.livepill:hover:not(:disabled) { background: #000; }
.to-top { position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 20;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 2px solid var(--float-ring); border-radius: 50%;
  background: var(--ink); color: #fff; box-shadow: 0 6px 18px rgba(21, 32, 29, 0.22); cursor: pointer;
  opacity: 0; transform: translateY(8px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: #000; }
.to-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .to-top { transition: none; } }
.livepill:disabled { opacity: 0.7; cursor: progress; }
.livepill .kind { margin: 0; box-shadow: none; }
.livepill[hidden] { display: none; }
@media print { .livepill, .livebar-btn { display: none; } }

/* links that are navigation or lists keep their own hover treatment, not the text highlight */
.main-nav a:hover, .lang-switch a:hover, .toc a:hover, .feed li a:hover { background: none; box-shadow: none; }

/* action links: an arrow that moves forward on hover */
.section-head a, a.tile-link, .riskbox a, .side-card > a, .banner-inner a, .suggest a { white-space: nowrap; }
.section-head a::after, a.tile-link::after, .riskbox a::after, .side-card > a::after, .banner-inner a::after, .suggest a::after {
  content: "\2192"; display: inline-block; margin-left: 0.35em; font-size: 1em; opacity: 1; transition: transform 0.15s; }
.section-head a:hover, a.tile-link:hover, .riskbox a:hover, .side-card > a:hover, .banner-inner a:hover, .suggest a:hover {
  background: none; box-shadow: none; }
.section-head a:hover::after, a.tile-link:hover::after, .riskbox a:hover::after, .side-card > a:hover::after,
.banner-inner a:hover::after, .suggest a:hover::after { transform: translateX(3px); }
/* action links that leave the site: the arrow points out */
a.tile-link.ext::after, .section-head a.ext::after, .side-card > a.ext::after { content: "\2197"; }
a.tile-link.ext:hover::after, .section-head a.ext:hover::after, .side-card > a.ext:hover::after { transform: translate(2px, -2px); }
@media (prefers-reduced-motion: reduce) { a::after { transition: none; } }
:not(.addr) > .addr-link { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.addr { flex-wrap: nowrap; align-items: stretch; }
.addr-link { flex: 1 1 auto; min-width: 0; }
.addr .copy { flex: none; }
.checklist .addr-link code { font-size: 0.75rem; letter-spacing: -0.01em; }
thead th { white-space: nowrap; }

/* legal documents */
.legal h2 { margin-top: 36px; font-size: 1.25rem; }
.legal p { margin-top: 12px; max-width: 70ch; }
.legal p:first-of-type { color: var(--muted); }
.legal .bullets { margin-top: 12px; }
.unit-inline { font-weight: 600; color: var(--muted); font-size: 0.875rem; }
.whale-rules li { margin-top: 6px; }
.whale-facts .muted { font-family: var(--sans); font-variant-numeric: normal; }
.whale-rules + .muted { margin-top: 16px; }
/* reproduce-it-yourself recipe */
.repro { margin-top: 18px; }
.repro summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.repro summary:hover { color: var(--accent-hover); }
.repro pre { margin-top: 10px; padding: 12px 14px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.repro code { font-size: 0.8125rem; line-height: 1.6; white-space: pre; }

/* live markers: a discreet, continuous ping (a halo expands and fades; the dot stays still) */
.kind-live { position: relative; }
.kind-live::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: var(--live); opacity: 0; pointer-events: none;
  animation: kots-ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes kots-ping {
  0%   { transform: scale(1);   opacity: 0.45; }
  70%  { transform: scale(2.6); opacity: 0; }
  100% { transform: scale(2.6); opacity: 0; }
}
/* on the dark refresh pill, a lighter halo */
.livepill .kind-live::after { background: #6FD3A0; }
/* respect the reader's "reduce motion" setting */
@media (prefers-reduced-motion: reduce) {
  .kind-live::after { animation: none; }
}
/* status chips that say Live (or Verified): the same discreet pulse as the live markers */
.state-live::before { animation: kots-ring 2.4s cubic-bezier(0, 0, 0.2, 1) infinite; }
@keyframes kots-ring {
  0%   { box-shadow: 0 0 0 0 rgba(24, 107, 67, 0.45); }
  70%  { box-shadow: 0 0 0 7px rgba(24, 107, 67, 0); }
  100% { box-shadow: 0 0 0 7px rgba(24, 107, 67, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .state-live::before { animation: none; }
}
/* audit fund progress */
.fund-bar { margin-top: 10px; height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; max-width: 260px; }
.fund-bar span { display: block; height: 100%; width: 0; background: var(--live); border-radius: 999px; transition: width 0.6s ease; }
#audit-fund .whale-rules + p { margin-top: 18px; }
#audit-fund .facts + .muted { margin-top: 10px; }
.fund-table code { font-size: 0.8125rem; }
.fund-table td.cover { min-width: 140px; }
.fund-table .fund-bar { display: inline-block; vertical-align: middle; width: 90px; margin: 0 8px 0 0; }
.fund-table code { white-space: nowrap; }
.fund-table td.cover { white-space: nowrap; }
