/* بلورة — the official gazette of things that will be crystallized.
   Newsprint paper, fountain-pen ink, one stamp red. RTL throughout. */

:root {
  --paper: oklch(0.965 0.014 85);
  --paper-2: oklch(0.935 0.02 83);
  --paper-3: oklch(0.9 0.025 82);
  --ink: oklch(0.25 0.035 262);
  --ink-2: oklch(0.42 0.03 262);
  --ink-3: oklch(0.5 0.025 262);
  --rule: oklch(0.8 0.025 80);
  --stamp: oklch(0.52 0.17 28);
  --stamp-ink: oklch(0.47 0.16 28);
  --stamp-soft: oklch(0.88 0.06 35);
  --plaque: oklch(0.42 0.09 155);
  --plaque-ink: oklch(0.97 0.02 150);
  --f1: oklch(0.97 0.012 230);
  --f2: oklch(0.92 0.025 232);
  --f3: oklch(0.86 0.04 235);
  --f4: oklch(0.78 0.055 238);
  --f5: oklch(0.68 0.065 245);

  /* Ruqaa only for the masthead and the stamp; Kufi only for big numbers.
     Everything people read is in Naskh (headings, quotes) or Plex (labels). */
  --display: "Aref Ruqaa", "Noto Naskh Arabic", serif;
  --head: "Noto Naskh Arabic", "Amiri", serif;
  --num: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  --naskh: "Noto Naskh Arabic", "Amiri", serif;
  --sans: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif;
  --ui: var(--sans);

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 20px; --s5: 32px; --s6: 52px; --s7: 84px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: oklch(0.2 0.018 262);
    --paper-2: oklch(0.24 0.022 262);
    --paper-3: oklch(0.29 0.025 262);
    --ink: oklch(0.93 0.018 85);
    --ink-2: oklch(0.8 0.02 85);
    --ink-3: oklch(0.72 0.02 85);
    --rule: oklch(0.38 0.025 262);
    --stamp: oklch(0.7 0.15 30);
    --stamp-ink: oklch(0.74 0.14 30);
    --stamp-soft: oklch(0.36 0.08 30);
    --plaque: oklch(0.45 0.08 155);
    --f1: oklch(0.32 0.03 245);
    --f2: oklch(0.37 0.04 242);
    --f3: oklch(0.43 0.05 240);
    --f4: oklch(0.5 0.06 238);
    --f5: oklch(0.58 0.07 235);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: oklch(0.2 0.018 262);
  --paper-2: oklch(0.24 0.022 262);
  --paper-3: oklch(0.29 0.025 262);
  --ink: oklch(0.93 0.018 85);
  --ink-2: oklch(0.8 0.02 85);
  --ink-3: oklch(0.72 0.02 85);
  --rule: oklch(0.38 0.025 262);
  --stamp: oklch(0.7 0.15 30);
  --stamp-ink: oklch(0.74 0.14 30);
  --stamp-soft: oklch(0.36 0.08 30);
  --plaque: oklch(0.45 0.08 155);
  --f1: oklch(0.32 0.03 245);
  --f2: oklch(0.37 0.04 242);
  --f3: oklch(0.43 0.05 240);
  --f4: oklch(0.5 0.06 238);
  --f5: oklch(0.58 0.07 235);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  /* newsprint grain */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.3 0 0 0 0 0.25 0 0 0 0 0.2 0 0 0 .05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: inherit; text-decoration-color: color-mix(in oklch, currentColor 35%, transparent); text-underline-offset: 0.25em; }
a:hover { color: var(--stamp-ink); text-decoration-color: currentColor; }
:focus-visible { outline: 2px solid var(--stamp); outline-offset: 3px; border-radius: 2px; }
img, svg { max-width: 100%; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the word, wherever it appears ---------- */
mark {
  color: var(--stamp-ink);
  background: linear-gradient(transparent 64%, var(--stamp-soft) 64%, var(--stamp-soft) 94%, transparent 94%);
  padding-inline: 0.08em;
  font-weight: 700;
}

/* ---------- dateline + masthead ---------- */
.dateline {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s3);
  align-items: center;
  font-size: 14px;
  color: var(--ink-2);
  padding-block: var(--s3);
  border-bottom: 1px solid var(--rule);
}
.dateline > :last-child { text-align: left; }
.dateline .issue { font-family: var(--ui); font-weight: 600; color: var(--ink); }

.masthead {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: var(--s4);
  padding-block: var(--s4) var(--s3);
  border-bottom: 3px double var(--ink);
}
.brand {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(64px, 13vw, 168px);
  line-height: 0.9;
  text-decoration: none;
  color: var(--ink);
  display: inline-block;
  padding-block-start: 0.12em;
}
.brand:hover { color: var(--ink); }
.masthead.compact .brand { font-size: clamp(46px, 7vw, 72px); }
.tagline { margin: var(--s2) 0 0; font-family: var(--naskh); font-size: clamp(16px, 1.6vw, 20px); color: var(--ink-2); max-width: 34ch; }
.masthead.compact .tagline { display: none; }

.stamp {
  --r: -9deg;
  justify-self: end;
  transform: rotate(var(--r));
  font-family: var(--display);
  font-weight: 700;
  color: var(--stamp);
  border: 3px double var(--stamp);
  border-radius: 6px;
  padding: 6px 16px 10px;
  font-size: clamp(18px, 2.2vw, 26px);
  line-height: 1.2;
  text-align: center;
  opacity: 0.88;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='g'%3E%3CfeTurbulence baseFrequency='.7' numOctaves='3'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E");
  user-select: none;
}
.stamp small { display: block; font-family: var(--ui); font-size: 0.5em; font-weight: 500; }
.masthead.compact .stamp { display: none; }

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s4);
  padding-block: var(--s2);
  border-bottom: 1px solid var(--ink);
  font-family: var(--ui);
  font-size: 16px;
  font-weight: 500;
}
.nav a { text-decoration: none; color: var(--ink-2); padding-block: 2px; }
.nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -2px var(--stamp); }
.nav .report { margin-inline-start: auto; color: var(--stamp-ink); font-weight: 600; }
.theme {
  display: inline-grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid var(--rule); border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
}
.theme:hover { border-color: var(--ink); }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
:root[data-theme="dark"] .theme .sun { display: block; }
:root[data-theme="dark"] .theme .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme .sun { display: block; }
  :root:not([data-theme="light"]) .theme .moon { display: none; }
}

/* ---------- section heads ---------- */
.kicker {
  font-family: var(--ui);
  font-weight: 600;
  font-size: 15px;
  color: var(--stamp-ink);
  margin: 0 0 var(--s2);
  display: flex;
  align-items: center;
  gap: var(--s2);
}
.kicker::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
h2.title {
  font-family: var(--head);
  font-weight: 700;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.25;
  margin: 0 0 var(--s4);
}
section { padding-block: var(--s6); }
section + section { border-top: 1px solid var(--rule); }

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 0 var(--s6);
  padding-block: var(--s5) var(--s6);
  align-items: start;
}
.counter-label { font-family: var(--ui); font-size: 15px; color: var(--ink-2); margin: var(--s4) 0 0; }
.count {
  display: block;
  font-family: var(--num);
  font-weight: 700;
  font-size: clamp(96px, 17vw, 228px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  text-align: right;
  margin-block: var(--s2) var(--s3);
}
.count-sentence { font-family: var(--naskh); font-size: clamp(19px, 2vw, 24px); line-height: 1.6; margin: 0; max-width: 30ch; }
.count-facts { list-style: none; padding: 0; margin: var(--s4) 0 0; display: flex; flex-wrap: wrap; gap: var(--s1) var(--s4); font-size: 15px; color: var(--ink-2); }
.count-facts b { font-family: var(--ui); color: var(--ink); font-weight: 600; }

.plaque {
  margin-top: var(--s5);
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  gap: var(--s3);
  background: var(--plaque);
  color: var(--plaque-ink);
  border-radius: 6px;
  padding: var(--s3) var(--s4);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 4px var(--plaque);
}
.plaque .days {
  font-family: var(--num);
  font-weight: 700;
  font-size: 54px;
  line-height: 1;
  background: var(--plaque-ink);
  color: var(--plaque);
  border-radius: 4px;
  padding: 6px 14px 2px;
  min-width: 1.6em;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.plaque .label { font-family: var(--ui); font-weight: 600; font-size: 18px; line-height: 1.3; }
.plaque .label small { display: block; font-weight: 400; font-size: 13px; opacity: 0.85; }

.crystal-figure { margin: 0; position: relative; }
.crystal-figure svg { display: block; width: 100%; height: auto; overflow: visible; }
.crystal-figure figcaption { font-family: var(--naskh); font-size: 15px; color: var(--ink-2); text-align: center; margin-top: var(--s2); }
#crystal .facet { stroke: color-mix(in oklch, var(--ink) 32%, transparent); stroke-width: 0.35; stroke-linejoin: round; transition: fill 0.2s; }
#crystal .facet.t1 { fill: var(--f1); } #crystal .facet.t2 { fill: var(--f2); } #crystal .facet.t3 { fill: var(--f3); }
#crystal .facet.t4 { fill: var(--f4); } #crystal .facet.t5 { fill: var(--f5); }
#crystal .facet.newest { fill: var(--stamp); animation: pulse 2.4s var(--ease) infinite; }
#crystal .facet:hover, #crystal .facet.active { fill: var(--stamp-soft); cursor: pointer; }
#crystal .edge { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linejoin: round; }
#crystal .ground { stroke: var(--ink-3); stroke-width: 0.8; }
#crystal .grow { opacity: 0; }
@keyframes pulse { 50% { opacity: 0.55; } }
.facet-tip {
  position: absolute;
  inset-inline: 0;
  bottom: 2.2em;
  margin-inline: auto;
  width: min(92%, 360px);
  background: var(--paper);
  border: 1px solid var(--ink);
  padding: var(--s2) var(--s3);
  font-size: 14px;
  line-height: 1.5;
  box-shadow: 4px 4px 0 var(--paper-3);
  pointer-events: none;
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.facet-tip.on { opacity: 1; transform: none; }
.facet-tip b { font-family: var(--ui); }
.facet-tip q { font-family: var(--naskh); display: block; color: var(--ink-2); }

/* ---------- quotes ---------- */
.lead-quote { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s6); }
.lead-quote blockquote {
  margin: 0;
  font-family: var(--naskh);
  font-size: clamp(24px, 2.9vw, 38px);
  line-height: 1.65;
  font-weight: 500;
  text-wrap: pretty;
}
.lead-quote blockquote::before { content: "«"; color: var(--stamp); margin-inline-end: 0.1em; }
.lead-quote blockquote::after { content: "»"; color: var(--stamp); margin-inline-start: 0.1em; }
.attrib { margin-top: var(--s4); display: grid; gap: 2px; }
.attrib .who { font-family: var(--ui); font-weight: 700; font-size: 23px; text-decoration: none; }
.attrib .role { color: var(--ink-2); font-size: 15px; }
.attrib .meta { color: var(--ink-3); font-size: 15px; }
.seq {
  font-family: var(--ui);
  border-inline-start: 1px solid var(--rule);
  padding-inline-start: var(--s5);
  display: grid;
  align-content: start;
  gap: var(--s4);
}
.seq .big { font-family: var(--num); font-size: 64px; font-weight: 700; line-height: 1; color: var(--stamp-ink); font-variant-numeric: tabular-nums; }
.seq p { margin: 0; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.seq p b { color: var(--ink); }

.as-reported { font-family: var(--ui); font-size: 15px; color: var(--ink-3); margin: 0 0 var(--s1); }
.single .as-reported { margin-top: var(--s6); }
.single .as-reported + blockquote { margin-top: var(--s2); }

/* the register: numbered entries, like a decree log */
.register { list-style: none; margin: 0; padding: 0; }
.register > li {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: var(--s4);
  padding-block: var(--s4);
  border-top: 1px solid var(--rule);
}
.register > li:first-child { border-top: 0; }
.register .when { font-family: var(--ui); font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.register .when a { text-decoration: none; display: block; color: var(--ink-3); font-size: 12px; margin-top: 4px; }
.register q { font-family: var(--naskh); font-size: 20px; line-height: 1.85; quotes: "«" "»"; display: block; }
.register .by { margin-top: var(--s2); font-size: 15px; color: var(--ink-2); }
.register .by a.name { font-family: var(--ui); font-weight: 600; color: var(--ink); text-decoration: none; }
.register .by .src { color: var(--ink-3); }
.tag { display: inline-block; font-size: 13px; font-family: var(--ui); border: 1px solid var(--rule); border-radius: 999px; padding: 0 8px; margin-inline-start: 6px; color: var(--ink-2); }

/* ---------- leaderboard ---------- */
.board { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: var(--s6); }
.ranks { list-style: none; margin: 0; padding: 0; counter-reset: r; }
.ranks li {
  counter-increment: r;
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr) auto;
  gap: var(--s3);
  align-items: center;
  padding-block: var(--s3);
  border-bottom: 1px solid var(--rule);
}
.ranks li::before { content: counter(r); font-family: var(--num); font-weight: 700; font-size: 26px; color: var(--ink-3); }
.ranks li:nth-child(-n + 3)::before { color: var(--stamp-ink); }
.ranks .name { font-family: var(--ui); font-weight: 600; font-size: 18px; text-decoration: none; line-height: 1.35; }
.ranks .role { display: block; font-size: 14px; color: var(--ink-2); line-height: 1.4; }
.ranks .tally { display: flex; align-items: center; gap: var(--s2); direction: ltr; }
.ranks .tally svg { height: 22px; width: auto; color: var(--ink); }
.ranks .tally b { font-family: var(--ui); font-size: 20px; min-width: 2.2ch; text-align: right; }

.parties { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.parties a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px var(--s3); text-decoration: none; }
.parties .pname { font-family: var(--ui); font-size: 15px; }
.parties .pn { font-family: var(--ui); font-weight: 700; }
.parties .bar { grid-column: 1 / -1; height: 9px; background: var(--paper-3); position: relative; }
.parties .bar i { position: absolute; inset-block: 0; inset-inline-start: 0; background: var(--ink); width: var(--w); }
.parties a:hover .bar i { background: var(--stamp); }

/* ---------- timeline ---------- */
.timeline { position: relative; }
.years {
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  align-items: end;
  height: 240px;
  gap: 2px;
  border-bottom: 1.5px solid var(--ink);
  direction: ltr;
}
.years a { display: block; height: 100%; position: relative; text-decoration: none; }
.years a i { position: absolute; bottom: 0; left: 0; right: 0; height: var(--h); background: var(--ink); min-height: 1px; transition: background 0.15s; }
.years a.empty i { background: transparent; }
.years a.dark { background: repeating-linear-gradient(-45deg, transparent 0 4px, color-mix(in oklch, var(--ink) 13%, transparent) 4px 5px); }
.years a:hover i { background: var(--stamp); }
.years a .tip {
  position: absolute; bottom: calc(var(--h) + 6px); left: 50%; translate: -50% 0;
  background: var(--ink); color: var(--paper); font-family: var(--ui); font-size: 12px; padding: 1px 6px; border-radius: 3px;
  white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s; z-index: 2;
}
.years a:hover .tip { opacity: 1; }
.axis { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); direction: ltr; font-family: var(--ui); font-size: 13px; color: var(--ink-3); margin-top: 4px; }
.axis span { text-align: center; white-space: nowrap; }
.dark-note {
  position: absolute; top: 30%; left: 2%; width: 66%; text-align: center;
  font-family: var(--naskh); color: var(--ink-2); font-size: 15px; line-height: 1.5; pointer-events: none;
}
.dark-note b { font-family: var(--ui); color: var(--ink); display: block; font-size: 17px; }
.govs { position: relative; height: 54px; margin-top: var(--s3); direction: ltr; }
.govs span {
  position: absolute; top: 0; height: 100%; left: var(--l); width: var(--w);
  border-left: 1px solid var(--ink-3); padding-inline: 4px; font-size: 11.5px; line-height: 1.25;
  color: var(--ink-2); direction: rtl; text-align: right; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 12.5px;
}
.govs span:nth-child(even) { top: 26px; height: 28px; }
.govs span:nth-child(odd) { height: 26px; }

/* ---------- map ---------- */
.mapgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s6); align-items: start; }
.map svg { width: 100%; height: auto; display: block; }
.map .land { fill: var(--paper-2); stroke: var(--ink); stroke-width: 1.2; stroke-linejoin: round; }
.map .dot { fill: color-mix(in oklch, var(--stamp) 70%, transparent); stroke: var(--paper); stroke-width: 1; transition: fill 0.15s; }
.map .dot:hover, .map .dot.active { fill: var(--stamp-ink); }
.map .city { font-family: var(--ui); font-size: 13px; fill: var(--ink); paint-order: stroke; stroke: var(--paper); stroke-width: 4px; }
.places { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: var(--s5); }
.places li { display: flex; justify-content: space-between; gap: var(--s2); border-bottom: 1px dotted var(--rule); padding-block: 6px; break-inside: avoid; }
.places b { font-family: var(--ui); }

/* ---------- forms, buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--ui); font-weight: 600; font-size: 16px;
  background: var(--ink); color: var(--paper); border: 0; border-radius: 4px;
  padding: 10px 20px; cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--stamp-ink); color: var(--paper); }
.btn.ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.ghost:hover { color: var(--stamp-ink); box-shadow: inset 0 0 0 1.5px var(--stamp-ink); }
.btn.small { padding: 5px 12px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }

.form { display: grid; gap: var(--s4); max-width: 640px; }
.form label { display: grid; gap: 4px; font-family: var(--ui); font-size: 15px; }
.form label small { font-family: var(--sans); color: var(--ink-3); font-size: 13px; }
.form input, .form textarea, .form select, .filters input, .filters select {
  font: inherit; font-family: var(--sans); color: var(--ink); background: var(--paper);
  border: 1px solid var(--ink-3); border-radius: 3px; padding: 9px 12px; width: 100%;
}
.form textarea { min-height: 110px; resize: vertical; font-family: var(--naskh); }
.form input:focus, .form textarea:focus, .filters input:focus, .filters select:focus { outline: 2px solid var(--stamp); outline-offset: 0; border-color: transparent; }

.hp { position: absolute; inset-inline-start: -10000px; width: 1px; height: 1px; overflow: hidden; }
.notice { font-family: var(--ui); font-size: 17px; border: 1.5px solid var(--ink); background: var(--paper-2); padding: var(--s3) var(--s4); margin: 0 0 var(--s4); max-width: 640px; }
.notice.bad { border-color: var(--stamp); color: var(--stamp-ink); }
.cf-turnstile { min-height: 65px; }
.filters { display: grid; grid-template-columns: 2fr repeat(3, 1fr) auto; gap: var(--s2); margin-bottom: var(--s5); align-items: end; }
.filters label { display: grid; gap: 2px; font-family: var(--ui); font-size: 13px; color: var(--ink-2); }
.filters[role="search"] { grid-template-columns: minmax(0, 1fr); max-width: 640px; margin-bottom: var(--s3); }
.filters[role="search"] input { font-size: 18px; padding: 12px 14px; }
.yearnav { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 var(--s5); font-family: var(--ui); font-size: 14px; }
.yearnav a { padding: 2px 11px; border: 1px solid var(--rule); border-radius: 999px; text-decoration: none; color: var(--ink-2); }
.yearnav a:hover { border-color: var(--ink); color: var(--ink); }
.yearnav a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.pager { display: flex; justify-content: space-between; gap: var(--s3); margin-top: var(--s5); font-family: var(--ui); }
.result-count { font-family: var(--ui); color: var(--ink-2); margin: 0 0 var(--s3); }

.callout {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s4); align-items: center;
  border: 1.5px solid var(--ink); padding: var(--s5); background: var(--paper-2);
}
.callout h3 { font-family: var(--head); font-weight: 700; font-size: clamp(26px, 3vw, 36px); margin: 0; line-height: 1.3; }
.callout p { margin: var(--s1) 0 0; color: var(--ink-2); }

/* ---------- inner pages ---------- */
.page-head { padding-block: var(--s6) var(--s4); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--s5); align-items: end; border-bottom: 1px solid var(--rule); }
.page-head h1 { font-family: var(--head); font-weight: 700; font-size: clamp(36px, 5.2vw, 64px); line-height: 1.3; margin: 0; }
.page-head .sub { color: var(--ink-2); font-size: 17px; margin: var(--s2) 0 0; }
.page-head .figure { text-align: left; font-family: var(--ui); }
.page-head .figure b { font-family: var(--num); display: block; font-size: clamp(56px, 8vw, 104px); line-height: 1; color: var(--stamp-ink); font-variant-numeric: tabular-nums; }
.page-head .figure span { color: var(--ink-2); font-size: 15px; }
.facts { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); padding-block: var(--s4); font-size: 15px; color: var(--ink-2); border-bottom: 1px solid var(--rule); }
.facts b { font-family: var(--ui); color: var(--ink); }

.prose { max-width: 68ch; font-family: var(--naskh); font-size: 19px; line-height: 1.9; }
.prose h2 { font-family: var(--head); font-weight: 700; font-size: 30px; line-height: 1.4; margin: var(--s6) 0 var(--s2); }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-inline-start: 1.2em; }
.prose li { margin-block: var(--s1); }

.single blockquote {
  font-family: var(--naskh); font-size: clamp(26px, 3.6vw, 46px); line-height: 1.6; margin: var(--s6) 0 var(--s4);
  text-wrap: pretty; max-width: 30em;
}
.single blockquote::before { content: "«"; color: var(--stamp); }
.single blockquote::after { content: "»"; color: var(--stamp); }
.sources { font-size: 15px; color: var(--ink-2); }
.sources a { color: var(--ink); }
.note { font-size: 15px; color: var(--ink-3); }

/* ---------- footer ---------- */
.foot { margin-top: var(--s7); border-top: 3px double var(--ink); padding-block: var(--s5) var(--s6); font-size: 14px; color: var(--ink-2); }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: var(--s5); }
.foot .brand { font-size: 52px; }
.foot p { margin: var(--s2) 0 0; max-width: 46ch; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.foot a { text-decoration: none; }

/* ---------- motion ---------- */
.rise { animation: rise 0.9s var(--ease) both; }
.rise.d1 { animation-delay: 0.08s; } .rise.d2 { animation-delay: 0.16s; } .rise.d3 { animation-delay: 0.24s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #crystal .grow { opacity: 1; }
}

/* ---------- small screens ---------- */
@media (max-width: 860px) {
  .hero, .lead-quote, .board, .mapgrid, .foot .cols { grid-template-columns: minmax(0, 1fr); }
  .hero .crystal-figure { max-width: 320px; margin: var(--s5) auto 0; width: 100%; }
  .count { font-size: clamp(88px, 27vw, 140px); }
  .seq { border-inline-start: 0; padding-inline-start: 0; border-top: 1px solid var(--rule); padding-top: var(--s4); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters label:first-child { grid-column: 1 / -1; }
  .callout { grid-template-columns: minmax(0, 1fr); }
  .page-head { grid-template-columns: minmax(0, 1fr); }
  .page-head .figure { text-align: right; }
  .masthead { grid-template-columns: minmax(0, 1fr); }
  .stamp { display: none; }
  .dateline { grid-template-columns: 1fr 1fr; font-size: 12px; }
  .dateline > :nth-child(2) { display: none; }
  .years { height: 180px; }
  .govs { display: none; }
  .dark-note { font-size: 13px; }
  .places { columns: 1; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .register > li { grid-template-columns: minmax(0, 1fr); gap: var(--s1); }
  .ranks li { grid-template-columns: 2em minmax(0, 1fr); }
  .ranks .tally { grid-column: 2; }
  .nav { gap: 2px var(--s3); font-size: 14px; }
  .nav .report { margin-inline-start: auto; }
  .plaque .days { font-size: 42px; }
}
