/* irgendöppis — Bundesamt für Irgendöppis (BAFI)
   Visual language inspired by the Swiss Confederation web style (admin.ch):
   white, federal red, Frutiger-like sans, thin rules, lots of whitespace.
   The content stays absurd; the chrome is deadpan-official. */

/* ---------------------------------------------------------------- web font
   The Swiss Confederation uses Frutiger®, a proprietary Monotype typeface that
   may NOT be embedded without a licence. Bundled here is Open Sans (variable,
   OFL) as a self-hosted, privacy-friendly humanist substitute occupying the
   "Frutiger" slot in --sans. To use the REAL Frutiger: drop your *licensed*
   woff2 into assets/fonts/ and add an @font-face { font-family:"Frutiger"; … }
   below — it is first in the stack, so it takes precedence automatically. */
@font-face {
  font-family: "Open Sans";
  font-style: normal;
  font-weight: 300 800;            /* variable weight axis */
  font-display: swap;
  src: url("/assets/fonts/opensans-var-latin.woff2") format("woff2");
}
/* @font-face { font-family:"Frutiger"; font-weight:400; font-display:swap;
     src:url("/assets/fonts/frutiger-regular.woff2") format("woff2"); }
   @font-face { font-family:"Frutiger"; font-weight:700; font-display:swap;
     src:url("/assets/fonts/frutiger-bold.woff2") format("woff2"); } */

:root {
  --red:     #DC0018;   /* federal red */
  --red-d:   #B30014;
  --ink:     #1a1a1a;
  --ink-2:   #454545;
  --muted:   #6b6b6b;
  --line:    #cfcfcf;
  --line-2:  #e6e6e6;
  --bg:      #ffffff;
  --surface: #f5f5f5;
  --surface-2:#ebebeb;
  --info-bg: #eef2f7;
  --ok-bg:   #edf6ed;
  --ok-bd:   #2e7d32;
  --focus:   #1f6feb;
  --maxw: 1180px;
  --sans: "Frutiger", "Frutiger Neue", "Open Sans", "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Code", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { line-height: 1.2; font-weight: 700; }
a { color: var(--red); text-underline-offset: 2px; }
a:hover { color: var(--red-d); }
p { margin: 0 0 .8rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
abbr { text-decoration: none; }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.skip {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: #fff; padding: .6rem .9rem;
}
.skip:focus { left: .5rem; top: .5rem; }

/* ----------------------------------------------------------- satire strip */
.satire-strip {
  background: var(--surface); border-bottom: 1px solid var(--line-2);
  color: var(--ink-2); font-size: .78rem;
}
.satire-inner {
  display: block; max-width: var(--maxw); margin: 0 auto;
  padding: .35rem 1.25rem; text-align: center; letter-spacing: .01em;
}
.satire-strip strong { color: var(--red-d); }

/* --------------------------------------------------------------- header */
.site-header { background: #fff; }
.header-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.25rem .9rem;
  display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem;
}
.confed { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.cross-svg { display: block; flex: none; }
.confed-name { font-size: .92rem; font-weight: 700; line-height: 1.15; letter-spacing: .01em; }
.confed-sub { display: block; font-size: .68rem; font-weight: 400; color: var(--muted); margin-top: 2px; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.langbar { display: flex; gap: .15rem; font-size: .72rem; letter-spacing: .04em; }
.langbar .lang {
  padding: .12rem .38rem; color: var(--muted); border-radius: 2px; cursor: default;
  text-transform: uppercase; font-weight: 600;
}
.langbar .lang.is-active { background: var(--ink); color: #fff; }
.hsearch { display: flex; }
.hsearch input {
  font: inherit; font-size: .9rem; border: 1px solid var(--line); border-right: 0;
  padding: .35rem .6rem; width: 14rem; max-width: 46vw; border-radius: 2px 0 0 2px; background: #fff; color: var(--ink);
}
.hsearch button {
  border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer;
  padding: 0 .7rem; font-size: 1.1rem; border-radius: 0 2px 2px 0;
}
.hsearch button:hover { background: var(--red); border-color: var(--red); }

.redrule { height: 3px; background: var(--red); }

.office { background: #fff; }
.office-inner { max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.25rem 1.2rem; }
.office-name { font-size: clamp(1.5rem, 3.4vw, 2.1rem); font-weight: 700; margin: 0; letter-spacing: -.01em; }
.office-name abbr { color: var(--red); font-weight: 700; margin-left: .25rem; }
.office-dept { margin: .15rem 0 0; color: var(--muted); font-size: .98rem; }

/* ----------------------------------------------------------------- nav */
.mainnav { background: #fff; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.mainnav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem;
  display: flex; flex-wrap: wrap; gap: .2rem;
}
.mainnav a {
  display: inline-block; text-decoration: none; color: var(--ink);
  padding: .8rem .9rem; font-weight: 600; font-size: .95rem;
  border-bottom: 3px solid transparent; margin-bottom: -1px;
}
.mainnav a:hover { color: var(--red); background: var(--surface); }
.mainnav a.is-active { border-bottom-color: var(--red); color: var(--red); }

/* ----------------------------------------------------------- breadcrumb */
.breadcrumb { background: var(--surface); border-bottom: 1px solid var(--line-2); }
.breadcrumb-inner {
  max-width: var(--maxw); margin: 0 auto; padding: .5rem 1.25rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  font-size: .82rem; color: var(--muted);
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--red); }
.breadcrumb .sep { margin: 0 .35rem; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }
.bc-ref { font-family: var(--mono); font-size: .76rem; white-space: nowrap; }

/* ---------------------------------------------------------------- layout */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 1.4rem 1.25rem 3.5rem; }
.pagehead { margin: .6rem 0 1.4rem; }
.pagehead h1 { font-size: clamp(1.7rem, 4vw, 2.6rem); margin: 0 0 .25rem; letter-spacing: -.015em; }
.pagehead .sub { color: var(--ink-2); margin: 0; font-size: 1.05rem; max-width: 60ch; }
section { margin: 1.8rem 0; }
h2 { font-size: 1.4rem; margin: 0 0 .8rem; }
.bignum { font-size: 1.5rem; font-weight: 800; }

/* shared "official document" panel look */
.card, .numcard, .gb-entry, .creature-card, .ballot, .tally, .oracle, .machine,
.colormachine, .beamteli, .finetext, .gb-form, .oracle-recent, .menagerie,
.hero-main, .button-zone, .machine-output, .bestiary-new, .legal-toc, .notice,
.voted-note, .gb-form-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
}

/* ----------------------------------------------------------- notices */
.notice { padding: .85rem 1.1rem; border-left: 4px solid var(--red); background: var(--info-bg); margin: 1rem 0; }
.notice-info { border-left-color: var(--red); }
.flash {
  padding: .8rem 1.1rem; margin: .8rem 0; border: 1px solid var(--ok-bd);
  border-left-width: 4px; background: var(--ok-bg); color: #1b4d20; border-radius: 2px; font-weight: 600;
}

/* ----------------------------------------------------------------- buttons */
.btn {
  display: inline-block; cursor: pointer; font-family: inherit; font-weight: 600;
  font-size: .95rem; text-decoration: none; text-align: center;
  background: #fff; color: var(--ink); border: 1px solid var(--ink);
  padding: .55rem 1.05rem; border-radius: 2px; transition: background .12s, color .12s, border-color .12s;
}
.btn:hover { background: var(--surface); border-color: var(--red); color: var(--red); }
.btn-big { background: var(--red); border-color: var(--red); color: #fff; font-size: 1.02rem; padding: .68rem 1.4rem; }
.btn-big:hover { background: var(--red-d); border-color: var(--red-d); color: #fff; }
.btn-accent { background: var(--red); border-color: var(--red); color: #fff; }
.btn-accent:hover { background: var(--red-d); border-color: var(--red-d); color: #fff; }
.btn-sm { font-size: .82rem; padding: .35rem .7rem; }
.btn-ghost { background: transparent; }

/* --------------------------------------------------------------- hero */
.hero { display: grid; grid-template-columns: 1.7fr 1fr; gap: 1.2rem; align-items: stretch; margin-top: 0; }
.hero-main { padding: 1.3rem 1.4rem; position: relative; }
.hero-main::before {
  content: "Amtlichi Verlautbarig"; display: inline-block;
  font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: #fff;
  background: var(--red); padding: .2rem .55rem; border-radius: 2px; margin-bottom: .7rem;
}
.kicker { font-family: var(--mono); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); display: block; margin-bottom: .3rem; }
.decree {
  margin: .2rem 0 .9rem; font-size: 1.28rem; line-height: 1.45; font-weight: 600;
  border-left: 4px solid var(--red); padding-left: 1rem; color: var(--ink);
}
.decree-actions { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; margin: 0; }

.hero-side { display: flex; }
.numcard { flex: 1; padding: 1.2rem; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.numcard-n { font-size: 3rem; font-weight: 800; line-height: 1; font-family: var(--mono); color: var(--red); }
.numcard-l { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; margin-top: .35rem; color: var(--muted); }
.numcard-m { font-size: .92rem; margin: .6rem 0 0; color: var(--ink-2); }

/* ------------------------------------------------------------ counters */
.grid-counters { display: grid; grid-template-columns: repeat(6, 1fr); gap: .7rem; }
.counter {
  text-decoration: none; color: var(--ink); text-align: center;
  background: #fff; border: 1px solid var(--line); border-radius: 2px;
  padding: .85rem .4rem; display: flex; flex-direction: column; gap: .2rem;
  transition: border-color .12s, background .12s;
}
.counter:hover { border-color: var(--red); background: var(--surface); }
.counter-ic { font-size: 1.25rem; }
.counter-v { font-size: 1.3rem; font-weight: 800; font-family: var(--mono); color: var(--red); }
.counter-l { font-size: .68rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }

/* --------------------------------------------------------------- cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.card { padding: 1.2rem; display: flex; flex-direction: column; border-top: 3px solid var(--ink); }
.card h2 { font-size: 1.15rem; }
.card p { flex: 1; color: var(--ink-2); }
.card-button { border-top-color: var(--red); }
.card .btn { align-self: flex-start; margin-top: .5rem; }

/* --------------------------------------------------------------- beamteli */
.beamteli { padding: 1.2rem 1.4rem; }
.beamteli-body { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.beamteli-name { margin: 0 0 .3rem; }
.ascii {
  font-family: var(--mono); white-space: pre; line-height: 1.2; margin: 0;
  background: var(--surface); color: var(--ink); padding: 1rem 1.2rem;
  border: 1px solid var(--line); border-radius: 2px; font-size: 1rem;
}
.ascii-big { font-size: 1.1rem; }
.traits { list-style: none; padding: 0; margin: .4rem 0; }
.traits li { padding-left: 1.2rem; position: relative; margin: .15rem 0; }
.traits li::before { content: "—"; position: absolute; left: 0; color: var(--red); }

/* ------------------------------------------------------------- statbars */
.statbars { display: grid; gap: .4rem; margin-top: .6rem; max-width: 32rem; }
.statbar { display: grid; grid-template-columns: 6.5rem 1fr 2.2rem; align-items: center; gap: .55rem; font-size: .85rem; }
.statbar-l { font-weight: 600; }
.statbar-track { background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px; height: .8rem; overflow: hidden; }
.statbar-fill { display: block; height: 100%; background: var(--red); }
.statbar-v { font-family: var(--mono); text-align: right; font-weight: 700; }

/* --------------------------------------------------------------- red button */
.button-zone { padding: 1.8rem; text-align: center; }
.bigcount { margin-bottom: 1.2rem; }
.bigcount-n { display: block; font-family: var(--mono); font-size: clamp(2.6rem, 9vw, 4.6rem); font-weight: 800; color: var(--red); line-height: 1; }
.bigcount-l { color: var(--ink-2); }
.press-form { margin: 1.2rem 0; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.redbutton {
  width: 180px; height: 180px; border-radius: 50%; border: 5px solid var(--red-d); cursor: pointer;
  background: radial-gradient(circle at 38% 32%, #ff5a4d, var(--red) 56%, var(--red-d));
  color: #fff; font-weight: 800; font-size: 1.5rem; letter-spacing: .1em;
  box-shadow: 0 8px 0 var(--red-d), 0 12px 16px rgba(0,0,0,.25);
  transition: transform .06s, box-shadow .06s;
}
.redbutton:hover { transform: translateY(2px); }
.redbutton:active, .redbutton.pressed { transform: translateY(7px); box-shadow: 0 1px 0 var(--red-d), 0 3px 6px rgba(0,0,0,.3); }
.press-feedback { min-height: 2.4rem; margin-top: .8rem; }
.consequence { font-size: 1.12rem; font-weight: 600; }
.mypresses { margin-top: 1.1rem; }
.badge { display: inline-block; background: var(--ink); color: #fff; border-radius: 2px; padding: .12rem .55rem; font-size: .76rem; margin-left: .3rem; }

/* ----------------------------------------------------------------- faq */
.finetext { padding: 1.2rem 1.4rem; }
.faq dt { font-weight: 700; margin-top: .7rem; }
.faq dd { margin: 0 0 .2rem; color: var(--ink-2); }

/* ------------------------------------------------------------- guestbook */
.gb-form-wrap { padding: 0; border: none; }
.gb-form { padding: 1.3rem 1.4rem; }
.field { display: block; margin: .6rem 0; }
.field > span { display: block; font-weight: 600; font-size: .85rem; margin-bottom: .3rem; }
.field input, .field select, .field textarea {
  width: 100%; font-family: inherit; font-size: 1rem; color: var(--ink); background: #fff;
  border: 1px solid var(--line); border-radius: 2px; padding: .6rem .7rem;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); outline: 2px solid rgba(220,0,24,.25); }
.field textarea { resize: vertical; }
.field-row { display: flex; gap: .8rem; flex-wrap: wrap; }
.field-row .field { flex: 1; }
.field-mood { flex: 0 0 7rem; }
.field-mood select { font-size: 1.2rem; }

.gb-list h2 { margin-top: 1.6rem; }
.gb-entry { padding: .9rem 1.1rem; margin: .8rem 0; }
.gb-head { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.gb-mood { font-size: 1.4rem; }
.gb-name { font-weight: 700; }
.gb-time { margin-left: auto; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.gb-msg { margin: .4rem 0; }
.gb-ruling { margin: .3rem 0 0; font-size: .82rem; color: var(--muted); font-style: italic; padding-top: .4rem; border-top: 1px dashed var(--line-2); }
.empty { padding: 1rem 0; }
.pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.2rem; }
.pager-pos { font-family: var(--mono); font-size: .85rem; }

/* --------------------------------------------------------------- oracle */
.oracle { padding: 1.6rem; text-align: center; }
.oracle-eye { font-size: 3rem; }
.oracle-answer { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--red); border-radius: 2px; padding: 1.1rem 1.2rem; margin: 1.1rem auto; max-width: 42rem; text-align: left; }
.oracle-q { font-style: italic; color: var(--muted); margin: 0 0 .5rem; }
.oracle-verdict { font-size: 1.9rem; font-weight: 800; margin: .2rem 0; color: var(--red); }
.oracle-reason { margin: .3rem 0; }
.oracle-conf { margin: .4rem 0 0; }
.oracle-form { max-width: 42rem; margin: 1.2rem auto 0; text-align: left; }
.oracle-recent { margin-top: 1.6rem; padding: 1.2rem 1.4rem; }
.oracle-loglist { list-style: none; padding: 0; margin: 0; }
.oracle-loglist li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem .1rem; border-bottom: 1px solid var(--line-2); }
.ol-q { color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ol-a { font-weight: 700; white-space: nowrap; }

/* ------------------------------------------------------------ referendum */
.referendum { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.ballot, .tally { padding: 1.3rem 1.4rem; }
.ballot-key { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.ballot-q { font-size: 1.35rem; margin: .35rem 0 1.1rem; }
.vote-buttons { display: flex; flex-direction: column; gap: .6rem; }
.vote { font-size: 1.05rem; font-weight: 600; font-family: inherit; cursor: pointer; text-align: left;
  border: 1px solid var(--ink); border-radius: 2px; padding: .7rem 1rem; background: #fff; color: var(--ink); }
.vote:hover { border-color: var(--red); color: var(--red); }
.vote-ja:hover { background: #fbeceb; }
.voted-note { padding: 1.1rem; background: var(--surface); }
.tally-row { display: grid; grid-template-columns: 5rem 1fr auto; align-items: center; gap: .6rem; margin: .55rem 0; }
.tally-lbl { font-weight: 700; }
.tally-track { background: var(--surface-2); border: 1px solid var(--line); border-radius: 2px; height: 1.25rem; overflow: hidden; }
.tally-fill { display: block; height: 100%; transition: width .5s ease; }
.tally-ja  .tally-fill { background: var(--red); }
.tally-nei .tally-fill { background: #5a5a5a; }
.tally-enthaltig .tally-fill { background: #a8a8a8; }
.tally-val { font-family: var(--mono); font-weight: 700; white-space: nowrap; }

/* ------------------------------------------------------- referendum archive */
.archive { padding: 1.3rem 1.4rem; }
.archive-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .9rem; }
.archive-item { border: 1px solid var(--line); border-radius: 2px; padding: .8rem 1rem; background: #fff; box-shadow: 2px 2px 0 var(--ink); }
.archive-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.archive-date { font-family: var(--mono); font-weight: 700; }
.archive-total { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.archive-q { margin: .3rem 0 .6rem; font-weight: 600; }
.archive-res { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.archive-res li { display: grid; grid-template-columns: 7.5rem 1fr 2.8rem; align-items: center; gap: .6rem; font-size: .85rem; }
.res-lbl { font-weight: 600; }
.res-bar { background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; height: .7rem; overflow: hidden; }
.res-fill { display: block; height: 100%; background: #b8b8b8; }
.archive-res .tally-ja .res-fill { background: var(--red); }
.archive-res .tally-nei .res-fill { background: #5a5a5a; }
.archive-res .tally-enthaltig .res-fill { background: #a8a8a8; }
.res-val { font-family: var(--mono); text-align: right; font-weight: 700; }
.archive-res li.is-win .res-lbl { color: var(--red); }

/* ------------------------------------------------------------- bestiarium */
.bestiary-new { padding: 1.3rem 1.4rem; }
.creature-card { padding: 1.1rem; }
.creature-big { display: flex; gap: 1.6rem; flex-wrap: wrap; align-items: center; }
.creature-info { flex: 1; min-width: 16rem; }
.creature-name { font-size: 1.2rem; margin: .2rem 0 0; }
.creature-species { color: var(--red); font-weight: 600; margin: .1rem 0 .4rem; }
.adopt-row { display: flex; gap: 1rem; align-items: flex-end; flex-wrap: wrap; margin-top: 1.2rem; }
.adopt-form { flex: 1; display: grid; grid-template-columns: 1fr 1fr auto; gap: .8rem; align-items: end; min-width: 18rem; }
.adopt-form .btn { height: fit-content; }
.menagerie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.menagerie-grid .creature-card { display: flex; flex-direction: column; }
.menagerie-grid .ascii { font-size: .8rem; }
.creature-meta, .creature-traits { margin: .25rem 0 0; }

/* --------------------------------------------------------------- machine */
.machine { padding: 1.3rem 1.4rem; }
.machine-controls { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.1rem; }
.machine-btn { font-size: .82rem; padding: .42rem .7rem; }
.machine-output { min-height: 6rem; padding: 1.3rem; display: flex; align-items: center; justify-content: center; text-align: center; background: var(--surface); }
.thing-label { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--red); margin-bottom: .4rem; }
.thing-text { font-size: 1.25rem; font-weight: 600; margin: 0; }
.placeholder { font-size: 1.02rem; }
.machine-counter { text-align: center; }

.colormachine { padding: 1.3rem 1.4rem; }
.color-row { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.swatch { flex: 1; min-width: 14rem; min-height: 5rem; border: 1px solid var(--line); border-radius: 2px;
  display: flex; flex-direction: column; justify-content: center; align-items: center; color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.6); font-weight: 700; }
.swatch-name { font-size: 1.15rem; }
.swatch-hex { font-family: var(--mono); font-size: .85rem; }

/* ----------------------------------------------------------------- legal */
.legal { display: grid; grid-template-columns: 16rem 1fr; gap: 1.6rem; align-items: start; }
.legal-toc { padding: 1.1rem 1.2rem; position: sticky; top: 1rem; }
.legal-toc h2 { font-size: 1rem; margin: 0 0 .5rem; }
.legal-toc ul { list-style: none; padding: 0; margin: 0; }
.legal-toc li { margin: .3rem 0; }
.legal-body section { scroll-margin-top: 1rem; }
.legal-body h2 { border-bottom: 2px solid var(--red); padding-bottom: .3rem; }
.deflist > div, .figures > div { display: flex; gap: .6rem; padding: .35rem 0; border-bottom: 1px solid var(--line-2); }
.deflist dt, .figures dt { flex: 0 0 11rem; font-weight: 600; color: var(--ink-2); margin: 0; }
.deflist dd, .figures dd { margin: 0; }
.ticklist { list-style: none; padding: 0; margin: .5rem 0; }
.ticklist li { padding-left: 1.5rem; position: relative; margin: .35rem 0; }
.ticklist li::before { content: "✓"; position: absolute; left: 0; color: var(--ok-bd); font-weight: 700; }
code { font-family: var(--mono); background: var(--surface); padding: .05rem .35rem; border-radius: 2px; font-size: .9em; }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 2.5rem; border-top: 3px solid var(--red); background: var(--surface); }
.footer-top { border-bottom: 1px solid var(--line); }
.footer-cols {
  max-width: var(--maxw); margin: 0 auto; padding: 2rem 1.25rem;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem;
}
.fcol h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); margin: 0 0 .7rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.fcol ul { list-style: none; padding: 0; margin: 0; }
.fcol li { margin: .35rem 0; }
.fcol a { color: var(--ink-2); text-decoration: none; }
.fcol a:hover { color: var(--red); text-decoration: underline; }
.fcol address { font-style: normal; color: var(--ink-2); font-size: .92rem; line-height: 1.7; }
.figures { margin: 0; }
.figures dt { flex: 1; font-weight: 400; color: var(--ink-2); font-size: .9rem; }
.figures dd { font-family: var(--mono); font-weight: 700; }

.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 1.1rem 1.25rem 1.6rem; }
.footer-bottom-inner { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: .85rem; color: var(--ink-2); }
.confed-mark { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; }
.confed-mark em { color: var(--muted); font-weight: 400; }
.copy { color: var(--muted); }
.ft-stamp {
  margin-left: auto; border: 2px solid var(--red); color: var(--red); font-weight: 800;
  padding: .15rem .6rem; border-radius: 3px; letter-spacing: .1em; transform: rotate(-4deg); font-size: .82rem;
}
.finework { margin: .8rem 0 0; font-size: .76rem; color: var(--muted); }

/* ---------------------------------------------------------------- motion */
.pop { animation: pop .3s ease; }
@keyframes pop { 0% { transform: scale(.85); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.consequence.pop, .thing { animation: pop .3s ease; }

/* ---------------------------------------------------------------- mobile */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .cards { grid-template-columns: 1fr 1fr; }
  .grid-counters { grid-template-columns: repeat(3, 1fr); }
  .referendum { grid-template-columns: 1fr; }
  .adopt-form { grid-template-columns: 1fr; }
  .legal { grid-template-columns: 1fr; }
  .legal-toc { position: static; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  body { font-size: 16px; }
  .header-inner { flex-direction: column; align-items: flex-start; }
  .header-right { align-items: flex-start; width: 100%; }
  .hsearch input { width: 100%; max-width: none; flex: 1; }
  .hsearch { width: 100%; }
  .cards { grid-template-columns: 1fr; }
  .grid-counters { grid-template-columns: repeat(2, 1fr); }
  .footer-cols { grid-template-columns: 1fr; }
  .breadcrumb-inner { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .oracle-loglist li { flex-direction: column; gap: .1rem; }
  .ol-q { white-space: normal; }
  .mainnav-inner { overflow-x: auto; flex-wrap: nowrap; }
  .mainnav a { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
