/* ==========================================================================
   Wireva — design system.

   Built on measurements taken from a reference site the owner gave as the
   donor (effortel.com, teardown 21.08.2026), not on impressions of it:
   graphite ground #22282A, no shadows anywhere, three radii (10 / 16 / 24),
   a mono face carrying every label in caps, a display face at weight 800 with
   −0.03em tracking, one saturated accent covering ~2 % of the surface, flat
   panels separated by 1px borders and background steps.

   What is ours: the colours (the wire red instead of the donor's cyan), the
   typefaces (Manrope + JetBrains Mono — the donor's Satoshi and Et Mono carry
   no Cyrillic, and this wire publishes in Ukrainian and Russian), and every
   word on the page.
   ========================================================================== */

:root {
  /* --- ground: the graphite stack ------------------------------------- */
  --ink-900: #171A1C;
  --ink-800: #22282A;   /* page ground, donor's exact value */
  --ink-750: #272E31;
  --ink-700: #2E3639;   /* raised card */
  --ink-600: #394247;   /* border / hairline on dark */
  --ink-500: #4A555A;

  /* --- mist: the light side ------------------------------------------- */
  --mist-500: #7C919B;
  --mist-400: #92A6B0;  /* mid panel on dark */
  --mist-300: #B1C5CE;  /* light panel */
  --mist-200: #D5E1E7;  /* text on dark */
  --mist-100: #E4EDF1;  /* light section ground */
  --paper: #F5FCFF;

  /* --- text ----------------------------------------------------------- */
  --text-strong: #E7F0F4;
  --text: #B7C6CD;
  --text-dim: #8496A0;
  --text-on-light: #2A3134;
  --text-on-light-dim: #5F6F77;

  /* --- accent: the wire red, lifted to live on graphite ---------------- */
  --accent: #FF4756;
  --accent-ink: #1A0F11;      /* text on the accent */
  --accent-soft: #FF8A93;
  --accent-glow: rgba(255, 71, 86, .16);
  --cool: #9BC7DE;            /* secondary, service graphics only */

  /* --- rights palette (semantic, never the accent) --------------------- */
  --owned: #6FD69B;
  --original: #8FC7EA;
  --licensed: #C4A6F0;
  --open: #7FD6CB;
  --linkonly: #E7C069;
  --restricted: #FF7A85;

  /* --- type ------------------------------------------------------------ */
  --display: "Manrope", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* --- geometry: three radii, nothing else ----------------------------- */
  --r-btn: 10px;
  --r-card: 16px;
  --r-panel: 24px;
  --r-chip: 6px;

  --gap: 24px;
  --pad-card: 32px;
  --maxw: 1400px;
  --measure: 970px;         /* donor's narrow container, 968.91px */

  --ease: cubic-bezier(.22, 1, .36, 1);
}

/* The donor is dark-only and commits to it; so do we. Light-scheme viewers get
   the same page rather than a washed-out inversion, so every colour below is
   painted explicitly and body carries its own ground. */
:root { color-scheme: dark; }

* { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  margin: 0;
  /* Fluid like the donor: 1.14vw at 1440 gives their 16.416px body. */
  font-size: clamp(15px, 1.14vw, 18px);
  font-family: var(--display);
  line-height: 1.5;
  color: var(--text);
  background: var(--ink-800);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

h1, h2, h3, h4 { font-family: var(--display); color: var(--text-strong); margin: 0; }
h1 { font-size: 4em; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
h2 { font-size: 3em; line-height: 1.08; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
h3 { font-size: 1.75em; line-height: 1.1; font-weight: 800; letter-spacing: -.04em; }
h4 { font-size: 1.25em; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 1em; }

.mono { font-family: var(--mono); font-size: .8em; letter-spacing: -.02em; }
.muted { color: var(--text-dim); }
.num { font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 999; background: var(--accent); color: var(--accent-ink); padding: 10px 16px; border-radius: var(--r-btn); }

/* --- the bracketed label: donor's [ RECOGNIZED AS … ] ------------------- */
.tag {
  font-family: var(--mono);
  font-size: .8em;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-dim);
  display: inline-flex;
  gap: .7em;
  align-items: center;
}
.tag::before { content: "["; color: var(--accent); }
.tag::after  { content: "]"; color: var(--accent); }
.tag--plain::before, .tag--plain::after { content: none; }

/* --- reading progress, pinned above the header ------------------------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-soft));
  transform-origin: 0 50%; transform: scaleX(0);
  will-change: transform;
}

/* --- header: fixed, graphite, blurred (donor: blur(30px), 65.66px) ----- */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(34, 40, 42, .82);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border-bottom: 1px solid rgba(57, 66, 71, .8);
}
.masthead__bar {
  max-width: var(--maxw); margin: 0 auto; height: 66px;
  padding: 0 24px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 8px; flex: none;
  background: var(--accent);
  display: grid; place-items: center;
  color: var(--accent-ink); font-family: var(--mono); font-weight: 700; font-size: 15px;
}
.brand__name { font-weight: 800; font-size: 1.15em; letter-spacing: -.03em; color: var(--text-strong); }
.brand__name em { font-style: normal; color: var(--accent); }

.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a {
  font-family: var(--mono); font-size: .8em; text-transform: uppercase; letter-spacing: .04em;
  color: var(--text); padding: 9px 14px; border-radius: var(--r-btn);
  transition: background .25s var(--ease), color .25s var(--ease);
}
.nav a:hover { background: var(--ink-700); color: var(--text-strong); }
.nav a.is-active { color: var(--accent); }
.masthead__right { margin-left: auto; display: flex; align-items: center; gap: 10px; }

/* --- buttons: pill + separate square with the arrow (donor pattern) ---- */
.btn {
  display: inline-flex; align-items: center; gap: 2px;
  font-family: var(--mono); font-size: .8em; text-transform: uppercase; letter-spacing: .05em;
  border: 0; background: none; cursor: pointer; color: var(--text-strong);
}
.btn__label {
  display: inline-flex; align-items: center; height: 42px; padding: 0 18px;
  background: var(--ink-700); border-radius: var(--r-btn);
  transition: background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn__icon {
  width: 42px; height: 42px; flex: none; display: grid; place-items: center;
  background: var(--ink-700); border-radius: var(--r-btn); overflow: hidden;
  transition: background .25s var(--ease), color .25s var(--ease);
}
.btn__icon svg { width: 16px; height: 16px; transition: transform .35s var(--ease); }
.btn:hover .btn__icon svg { transform: translate(3px, -3px); }
.btn:hover .btn__label { background: var(--ink-600); }
.btn:hover .btn__icon { background: var(--ink-600); }

.btn--accent .btn__label { background: var(--accent); color: var(--accent-ink); }
.btn--accent .btn__icon { background: var(--accent-ink); color: var(--accent); }
.btn--accent:hover .btn__label { background: var(--accent-soft); }
.btn--accent:hover .btn__icon { background: #000; }

.btn--ghost .btn__label, .btn--ghost .btn__icon {
  background: transparent; border: 1px solid var(--ink-600); color: var(--text);
}
.btn--ghost:hover .btn__label, .btn--ghost:hover .btn__icon { background: var(--ink-700); color: var(--text-strong); }
.btn--sm .btn__label { height: 34px; padding: 0 14px; }
.btn--sm .btn__icon { width: 34px; height: 34px; }

/* --- floating bottom navigation (donor's floating__nav) ---------------- */
.dock {
  position: fixed; left: 50%; bottom: 22px; z-index: 45;
  transform: translate(-50%, 130%);
  display: flex; align-items: center; gap: 4px;
  padding: 6px; border-radius: 14px;
  background: rgba(34, 40, 42, .86);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--ink-600);
  transition: transform .5s var(--ease);
}
.dock.is-on { transform: translate(-50%, 0); }
.dock a {
  font-family: var(--mono); font-size: .78em; text-transform: uppercase; letter-spacing: .04em;
  padding: 9px 14px; border-radius: var(--r-btn); color: var(--text);
  transition: background .25s var(--ease), color .25s var(--ease); white-space: nowrap;
}
.dock a:hover { background: var(--ink-700); color: var(--text-strong); }
.dock a.dock__cta { background: var(--accent); color: var(--accent-ink); font-weight: 700; }
.dock a.dock__cta:hover { background: var(--accent-soft); }
.dock__up {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--r-btn); border: 1px solid var(--ink-600); color: var(--text);
}
.dock__up:hover { background: var(--ink-700); }

/* --- layout ------------------------------------------------------------ */
main { padding-top: 66px; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: var(--measure); }
.section { padding: clamp(44px, 5.4vw, 84px) 0; }
.section--light { background: var(--mist-100); color: var(--text-on-light); }
.section--light h1, .section--light h2, .section--light h3, .section--light h4 { color: var(--text-on-light); }
.section--light .muted { color: var(--text-on-light-dim); }
.section--light .tag { color: var(--text-on-light-dim); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(28px, 3.4vw, 52px); max-width: 62ch; }
.section__head p { margin: 0; font-size: 1.1em; }

/* --- hero: centred, exactly the donor's rhythm ------------------------- */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(70px, 9vw, 130px) 0 clamp(50px, 6vw, 90px);
  text-align: center;
}
.hero__inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; display: grid; gap: 26px; justify-items: center; }
.hero h1 { font-size: clamp(38px, 4.7vw, 76px); }
.hero__sub { font-size: 1.14em; color: var(--text); max-width: 60ch; margin: 0; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__note { font-family: var(--mono); font-size: .78em; color: var(--text-dim); letter-spacing: .02em; }
/* thin arcs drifting behind the hero — the donor's faint curves */
.hero__arcs { position: absolute; inset: -20% -10% auto; height: 150%; z-index: 1; opacity: .5; pointer-events: none; }
.hero__arcs svg { width: 100%; height: 100%; display: block; }
.hero__arcs path { fill: none; stroke: var(--ink-600); stroke-width: 1; }

/* --- stat band --------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--ink-600); border: 1px solid var(--ink-600); border-radius: var(--r-card); overflow: hidden; }
.stat { background: var(--ink-800); padding: 22px 20px; }
.stat b { display: block; font-size: 2em; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); line-height: 1.1; }
.stat span { font-family: var(--mono); font-size: .72em; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.section--light .stats { background: rgba(42,49,52,.18); border-color: rgba(42,49,52,.18); }
.section--light .stat { background: var(--mist-100); }
.section--light .stat b { color: var(--text-on-light); }
.section--light .stat span { color: var(--text-on-light-dim); }

/* --- cards ------------------------------------------------------------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.card {
  position: relative; background: var(--ink-700); border: 1px solid var(--ink-600);
  border-radius: var(--r-card); padding: var(--pad-card);
  display: grid; gap: 10px; align-content: start;
  transition: border-color .3s var(--ease), transform .3s var(--ease), background .3s var(--ease);
}
.card:hover { border-color: var(--ink-500); transform: translateY(-2px); }
.card__n { position: absolute; right: 20px; bottom: 16px; font-family: var(--mono); font-size: .78em; color: var(--ink-500); }
.card h3, .card h4 { color: var(--text-strong); }
.card p { margin: 0; font-size: .95em; color: var(--text); }
.card--dots { background-image: radial-gradient(var(--ink-600) 1px, transparent 1px); background-size: 16px 16px; background-position: -1px -1px; }
.card--accent { border-color: rgba(255,71,86,.4); }

/* --- big light panel on the dark ground (donor's product panel) -------- */
.panel {
  background: var(--mist-300); color: var(--text-on-light);
  border-radius: var(--r-panel); padding: clamp(28px, 3.6vw, 56px);
  display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(24px, 3vw, 48px);
  align-items: center; overflow: hidden;
}
.panel h2, .panel h3 { color: var(--text-on-light); }
.panel p { color: var(--text-on-light-dim); }
.panel--dark { background: var(--ink-700); color: var(--text); border: 1px solid var(--ink-600); }
.panel--dark h2, .panel--dark h3 { color: var(--text-strong); }

/* the screenshot-like inner frame the donor pushes past the panel edge */
.screen {
  background: var(--paper); border-radius: var(--r-card); border: 1px solid rgba(42,49,52,.14);
  overflow: hidden; margin-right: clamp(-56px, -3vw, -16px);
}
.screen__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(42,49,52,.1); }
.screen__dot { width: 22px; height: 22px; border-radius: 6px; background: var(--accent); display: grid; place-items: center; color: var(--accent-ink); font-family: var(--mono); font-size: 11px; font-weight: 700; }
.screen__title { font-family: var(--mono); font-size: .78em; color: var(--text-on-light); text-transform: uppercase; letter-spacing: .05em; }
.screen__rows { display: grid; }
.screen__row { display: grid; grid-template-columns: 54px 34px 1fr auto; gap: 12px; align-items: baseline; padding: 11px 16px; border-bottom: 1px solid rgba(42,49,52,.07); }
.screen__row:last-child { border-bottom: 0; }
.screen__row time, .screen__row .lang { font-family: var(--mono); font-size: .74em; color: var(--text-on-light-dim); }
.screen__row .head { font-size: .92em; color: var(--text-on-light); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- sticky card stack (donor's sticky-card) --------------------------- */
.stack { display: grid; gap: 0; }
.stack__item { position: sticky; top: 110px; }
.stack__card {
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(20px, 3vw, 44px);
  background: var(--ink-750); border: 1px solid var(--ink-600); border-radius: var(--r-panel);
  padding: clamp(26px, 3vw, 48px); margin-bottom: 26px; align-items: center;
}
.stack__card h3 { margin-bottom: 10px; }
.stack__n { font-family: var(--mono); font-size: .8em; color: var(--accent); letter-spacing: .08em; }
.stack__body p { color: var(--text); margin: 0; }
.stack__aside { display: grid; gap: 10px; }
.kvrow { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: baseline; padding: 12px 16px; background: var(--ink-800); border: 1px solid var(--ink-600); border-radius: var(--r-card); }
.kvrow dt { font-family: var(--mono); font-size: .74em; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); }
.kvrow dd { margin: 0; font-size: .92em; color: var(--text-strong); }

/* --- chips ------------------------------------------------------------- */
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--mono); font-size: .7em; text-transform: uppercase; letter-spacing: .05em;
  padding: 3px 8px; border-radius: var(--r-chip);
  border: 1px solid var(--ink-600); color: var(--text-dim); white-space: nowrap;
}
.chip--lang { color: var(--text); border-color: var(--ink-500); }
.chip--type { background: var(--ink-700); border-color: transparent; color: var(--text); }
.chip--urgent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.chip--owned { color: var(--owned); border-color: color-mix(in srgb, var(--owned) 45%, transparent); }
.chip--agency_original { color: var(--original); border-color: color-mix(in srgb, var(--original) 45%, transparent); }
.chip--licensed { color: var(--licensed); border-color: color-mix(in srgb, var(--licensed) 45%, transparent); }
.chip--open_license { color: var(--open); border-color: color-mix(in srgb, var(--open) 45%, transparent); }
.chip--link_only { color: var(--linkonly); border-color: color-mix(in srgb, var(--linkonly) 45%, transparent); }
.chip--restricted { color: var(--restricted); border-color: color-mix(in srgb, var(--restricted) 45%, transparent); }
.chip--ai { border-style: dashed; }
.section--light .chip { border-color: rgba(42,49,52,.22); color: var(--text-on-light-dim); }
.section--light .chip--lang { color: var(--text-on-light); }

/* --- the wire register (list of items) --------------------------------- */
.register { border-top: 1px solid var(--ink-600); }
.entry { display: grid; grid-template-columns: 78px 1fr; gap: 18px; padding: 16px 0; border-bottom: 1px solid var(--ink-600); transition: background .25s var(--ease); }
.entry:hover { background: rgba(46,54,57,.5); }
.entry__time { font-family: var(--mono); font-size: .74em; color: var(--text-dim); padding-top: 3px; }
.entry__body { min-width: 0; }
.entry__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 6px; }
.entry__title { font-size: 1.14em; font-weight: 700; letter-spacing: -.02em; line-height: 1.25; margin: 0 0 4px; color: var(--text-strong); }
.entry__title a:hover { color: var(--accent); }
.entry__summary { margin: 0; font-size: .92em; color: var(--text-dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.entry--urgent .entry__title { color: var(--accent); }

/* --- language grid ------------------------------------------------------ */
.langs { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--ink-600); border: 1px solid var(--ink-600); border-radius: var(--r-card); overflow: hidden; }
.langs a { background: var(--ink-800); padding: 16px 18px; display: grid; gap: 4px; transition: background .25s var(--ease); }
.langs a:hover { background: var(--ink-700); }
.langs b { font-size: 1.05em; font-weight: 700; color: var(--text-strong); letter-spacing: -.02em; }
.langs span { font-family: var(--mono); font-size: .72em; color: var(--text-dim); }

/* --- plans -------------------------------------------------------------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--gap); }
.plan { background: var(--ink-700); border: 1px solid var(--ink-600); border-radius: var(--r-panel); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.plan--now { border-color: var(--accent); background: linear-gradient(180deg, var(--accent-glow), transparent 42%), var(--ink-700); }
.plan__price { font-size: 2.2em; font-weight: 800; letter-spacing: -.03em; color: var(--text-strong); line-height: 1; }
.plan__price small { font-family: var(--mono); font-size: .34em; font-weight: 400; letter-spacing: .04em; color: var(--text-dim); text-transform: uppercase; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: .92em; }
.plan li { display: grid; grid-template-columns: 16px 1fr; gap: 10px; color: var(--text); }
.plan li::before { content: "→"; color: var(--accent); font-family: var(--mono); font-size: .8em; }
.plan .btn { margin-top: auto; }

/* --- tables ------------------------------------------------------------- */
.scroll { overflow-x: auto; }
table.grid { width: 100%; border-collapse: collapse; font-size: .92em; min-width: 560px; }
table.grid th { text-align: left; font-family: var(--mono); font-size: .78em; text-transform: uppercase; letter-spacing: .05em; color: var(--text-dim); font-weight: 500; padding: 0 16px 12px 0; border-bottom: 1px solid var(--ink-600); }
table.grid td { padding: 13px 16px 13px 0; border-bottom: 1px solid var(--ink-600); vertical-align: top; color: var(--text); }
table.grid td strong { color: var(--text-strong); }
.section--light table.grid th { color: var(--text-on-light-dim); border-color: rgba(42,49,52,.16); }
.section--light table.grid td { color: var(--text-on-light-dim); border-color: rgba(42,49,52,.1); }
.section--light table.grid td strong { color: var(--text-on-light); }

/* --- prose (docs, rights, provenance) ---------------------------------- */
.prose { max-width: 76ch; }
.prose h1 { font-size: 2.6em; margin-bottom: .4em; }
.prose h2 { font-size: 1.6em; margin: 1.8em 0 .5em; }
.prose h3 { font-size: 1.2em; margin: 1.5em 0 .35em; }
.prose p, .prose li { color: var(--text); }
.prose code { font-family: var(--mono); font-size: .82em; background: var(--ink-700); border: 1px solid var(--ink-600); border-radius: var(--r-chip); padding: 1px 6px; color: var(--text-strong); }
.prose pre { background: var(--ink-900); border: 1px solid var(--ink-600); border-radius: var(--r-card); padding: 18px 20px; overflow-x: auto; font-family: var(--mono); font-size: .78em; line-height: 1.7; color: var(--text); }
.prose pre b { color: var(--accent); font-weight: 400; }
.prose table { width: 100%; border-collapse: collapse; font-size: .92em; margin: 1.2em 0; }
.prose th, .prose td { text-align: left; padding: 10px 14px 10px 0; border-bottom: 1px solid var(--ink-600); vertical-align: top; }
.prose a { color: var(--accent); }
.prose a:hover { color: var(--accent-soft); }

/* --- article ------------------------------------------------------------ */
.article { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(24px, 3.4vw, 56px); align-items: start; }
.article h1 { font-size: clamp(30px, 3.4vw, 52px); margin: 14px 0 12px; }
.article__standfirst { font-size: 1.15em; color: var(--text); }
.article__meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-bottom: 16px; border-bottom: 1px solid var(--ink-600); }
.article__body { font-size: 1.02em; line-height: 1.7; color: var(--text); }
.article__body p { margin: 0 0 1.1em; }
.article__body a { color: var(--accent); }
.article__figure { margin: 0 0 20px; }
.article__figure img { width: 100%; border-radius: var(--r-card); display: block; }
.article__figure figcaption { font-family: var(--mono); font-size: .74em; color: var(--text-dim); margin-top: 8px; }
.aside-panel { background: var(--ink-700); border: 1px solid var(--ink-600); border-radius: var(--r-card); overflow: hidden; margin-bottom: 16px; }
.aside-panel__head { padding: 12px 18px; border-bottom: 1px solid var(--ink-600); font-family: var(--mono); font-size: .76em; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
.aside-panel__body { padding: 16px 18px; font-size: .9em; }
.kv { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 7px 14px; }
.kv dt { font-family: var(--mono); font-size: .78em; color: var(--text-dim); }
.kv dd { margin: 0; color: var(--text); overflow-wrap: anywhere; }
.flag { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.flag--yes { background: var(--owned); }
.flag--no { background: var(--restricted); }
.sourcelist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.sourcelist li { font-size: .9em; padding-bottom: 10px; border-bottom: 1px solid var(--ink-600); }
.sourcelist li:last-child { border-bottom: 0; padding-bottom: 0; }
.disclosure { border-left: 2px solid var(--linkonly); background: rgba(231,192,105,.07); padding: 14px 18px; border-radius: 0 var(--r-card) var(--r-card) 0; font-size: .92em; margin: 20px 0; }
.notice { border-left: 2px solid var(--accent); background: var(--accent-glow); padding: 14px 18px; border-radius: 0 var(--r-card) var(--r-card) 0; margin: 0 0 18px; }

/* --- forms -------------------------------------------------------------- */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; padding: 20px; border: 1px solid var(--ink-600); border-radius: var(--r-card); background: var(--ink-750); margin-bottom: 28px; }
.field { display: grid; gap: 6px; }
.field label, .checkset legend { font-family: var(--mono); font-size: .72em; text-transform: uppercase; letter-spacing: .06em; color: var(--text-dim); }
input, select, textarea {
  font: inherit; font-size: .95em; padding: 11px 13px; color: var(--text-strong);
  background: var(--ink-800); border: 1px solid var(--ink-600); border-radius: var(--r-btn);
  min-width: 150px; transition: border-color .25s var(--ease);
}
input:hover, select:hover, textarea:hover { border-color: var(--ink-500); }
input::placeholder, textarea::placeholder { color: var(--text-dim); }
textarea { resize: vertical; width: 100%; }
.field--check { display: flex; flex-direction: row; align-items: center; gap: 8px; }
.contact { display: grid; grid-template-columns: minmax(0, 1.25fr) 340px; gap: clamp(24px, 3.4vw, 52px); align-items: start; }
.contact__form { display: grid; gap: 18px; }
.formrow { display: flex; gap: 14px; flex-wrap: wrap; }
.formrow .field { flex: 1 1 200px; }
.field--narrow { flex: 0 0 100px; }
.checkset { border: 1px solid var(--ink-600); border-radius: var(--r-card); padding: 16px 18px; margin: 0; background: var(--ink-750); }
.checkset__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px 16px; margin-top: 10px; }
.checkset__grid label { display: flex; gap: 8px; align-items: center; font-family: var(--display); font-size: .92em; text-transform: none; letter-spacing: 0; color: var(--text); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* --- messages, key banner ----------------------------------------------- */
.messages { max-width: var(--maxw); margin: 20px auto 0; padding: 0 24px; }
.message { padding: 13px 18px; border-radius: var(--r-card); border: 1px solid var(--ink-600); background: var(--ink-700); margin: 0 0 10px; font-size: .95em; }
.message--error { border-color: var(--restricted); color: var(--restricted); }
.message--success { border-color: var(--owned); color: var(--owned); }
.keybanner { max-width: var(--maxw); margin: 20px auto 0; padding: 16px 24px; border: 1px dashed var(--accent); border-radius: var(--r-card); display: flex; gap: 14px; align-items: center; flex-wrap: wrap; font-size: .92em; background: var(--accent-glow); }
.keybanner code { font-family: var(--mono); background: var(--ink-800); padding: 6px 10px; border-radius: var(--r-chip); border: 1px solid var(--ink-600); color: var(--accent); }

/* --- FAQ ---------------------------------------------------------------- */
.faq { display: grid; }
.faq details { border-bottom: 1px solid var(--ink-600); padding: 16px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.05em; letter-spacing: -.02em; color: var(--text-strong); list-style: none; display: flex; align-items: center; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: "+"; font-family: var(--mono); color: var(--accent); font-size: 1.1em; }
.faq details[open] summary::before { content: "–"; }
.faq p { margin: 12px 0 0 24px; font-size: .95em; }

/* --- pagination, footer -------------------------------------------------- */
.pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 34px; font-family: var(--mono); font-size: .8em; color: var(--text-dim); }
.pagination a { color: var(--text-strong); }

.footer { border-top: 1px solid var(--ink-600); background: var(--ink-900); margin-top: 0; }
.footer__grid { max-width: var(--maxw); margin: 0 auto; padding: clamp(40px, 5vw, 72px) 24px 40px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer__brand { font-weight: 800; font-size: 1.5em; letter-spacing: -.03em; color: var(--text-strong); margin: 0 0 10px; }
.footer__brand em { font-style: normal; color: var(--accent); }
.footer__head { font-family: var(--mono); font-size: .74em; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); margin: 0 0 12px; }
.footer__grid a { display: block; padding: 4px 0; color: var(--text); font-size: .95em; }
.footer__grid a:hover { color: var(--accent); }
.footer__langs { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.footer__langs a { font-family: var(--mono); font-size: .74em; border: 1px solid var(--ink-600); border-radius: var(--r-chip); padding: 3px 7px; }
.footer__base { border-top: 1px solid var(--ink-600); }
.footer__base div { max-width: var(--maxw); margin: 0 auto; padding: 18px 24px; display: flex; gap: 20px; flex-wrap: wrap; font-family: var(--mono); font-size: .74em; color: var(--text-dim); }

/* --- scroll reveal ------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

/* --- cursor label (donor keeps a small floating cursor plate) ----------- */
.cursorplate {
  position: fixed; top: 0; left: 0; z-index: 200; pointer-events: none;
  font-family: var(--mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em;
  background: var(--accent); color: var(--accent-ink); padding: 5px 9px; border-radius: var(--r-chip);
  opacity: 0; transform: translate(-50%, -160%) scale(.9);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.cursorplate.is-on { opacity: 1; transform: translate(-50%, -140%) scale(1); }

@media (hover: none), (max-width: 900px) { .cursorplate { display: none; } }

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .panel, .stack__card { grid-template-columns: 1fr; }
  .screen { margin-right: 0; }
  .article, .contact { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .nav { display: none; }
  .stats { grid-template-columns: 1fr 1fr; }
  .entry { grid-template-columns: 60px 1fr; gap: 12px; }
  .footer__grid { grid-template-columns: 1fr; }
  .dock a:not(.dock__cta) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --- wire pages: register plus a facet rail ---------------------------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: clamp(28px, 3.4vw, 56px); align-items: start; }
.rail { display: grid; gap: 26px; position: sticky; top: 92px; }
.rail__block h3 { font-family: var(--mono); font-size: .74em; text-transform: uppercase; letter-spacing: .07em; color: var(--text-dim); font-weight: 500; margin: 0 0 12px; }
.rail__list { display: grid; }
.rail__row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 8px 0; border-bottom: 1px solid var(--ink-600); font-size: .92em; color: var(--text); }
.rail__row:hover { color: var(--accent); }
.rail__row span { font-family: var(--mono); font-size: .74em; color: var(--text-dim); }
.section-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px; padding-bottom: 12px; border-bottom: 1px solid var(--ink-600); flex-wrap: wrap; }
.section-head h1, .section-head h2 { font-size: 1.5em; letter-spacing: -.03em; margin: 0; }
.section-head .muted { font-family: var(--mono); font-size: .76em; }
.section-head a { margin-left: auto; font-family: var(--mono); font-size: .76em; color: var(--accent); }
.pagehead { padding: 44px 0 30px; border-bottom: 1px solid var(--ink-600); margin-bottom: 8px; }
.pagehead h1 { font-size: clamp(32px, 3.8vw, 56px); margin: 14px 0 14px; }
.pagehead p { max-width: 62ch; font-size: 1.08em; color: var(--text); margin: 0; }
.cluster { background: var(--ink-700); border: 1px solid var(--ink-600); border-radius: var(--r-card); padding: 18px 20px; margin-bottom: 12px; }
.cluster__head { display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; flex-wrap: wrap; }
.cluster__head h3 { font-size: 1.1em; margin: 0; }
.cluster__langs { display: flex; gap: 5px; margin-left: auto; flex-wrap: wrap; }
.cluster__line { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--ink-600); font-size: .92em; }
.cluster__line b { font-family: var(--mono); font-size: .74em; color: var(--accent); text-transform: uppercase; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } .rail { position: static; grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px) { .rail { grid-template-columns: 1fr; } }

/* Wire and account pages sit inside the full-width main; this is their gutter. */
.wrap.page { padding-top: clamp(30px, 3.4vw, 52px); padding-bottom: clamp(50px, 6vw, 90px); }

/* Plain buttons (form submits) get the pill without the arrow square. */
.btn:not(:has(.btn__label)) {
  height: 42px; padding: 0 18px; background: var(--ink-700);
  border-radius: var(--r-btn); color: var(--text-strong);
}
.btn:not(:has(.btn__label)):hover { background: var(--ink-600); }
.btn--accent:not(:has(.btn__label)) { background: var(--accent); color: var(--accent-ink); }
.btn--accent:not(:has(.btn__label)):hover { background: var(--accent-soft); }
.btn--ghost:not(:has(.btn__label)) { background: transparent; border: 1px solid var(--ink-600); color: var(--text); }
.btn--ghost:not(:has(.btn__label)):hover { background: var(--ink-700); }
.btn--sm:not(:has(.btn__label)) { height: 34px; padding: 0 14px; }
