/* ═══════════════════════════════════════════════════════════════════════════════════════════
   THE PAGE IS A ПОДПИСКА — a signature sheet.

   Two inks, and the rule between them is the whole design:

     PRINT  (blue-black)       everything the sheet says: the statement, the numbers, the rules.
     PEN    (ballpoint blue)   everything a HAND does: what you type, the signatures, the one
                               button that signs.

   So blue never decorates. If something on the page is blue, a person did it or is about to.

   The steel of the top bar and the cool grey "desk" are the platform's own colours, so that
   clicking from this page to the platform feels like turning a page, not changing sites. And as
   on the platform, RED IS THE ALARM: it appears only when something is wrong.

   One typeface: Sofia Sans — drawn in Sofia, for Sofia, with Bulgarian letterforms as its native
   shapes. One script, Bad Script, for the pen. Both bundled; nothing is fetched from anywhere.
   ═══════════════════════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-cyrillic.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Sofia Sans";
  src: url("../fonts/sofia-sans-latin.woff2") format("woff2");
  font-weight: 1 1000;
  font-display: swap;
  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: "Bad Script";
  src: url("../fonts/bad-script-cyrillic.woff2") format("woff2");
  font-display: swap;
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Bad Script";
  src: url("../fonts/bad-script-latin.woff2") format("woff2");
  font-display: swap;
  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;
}

:root {
  --desk: #e9edf2;
  --sheet: #ffffff;
  --field: #f3f6f9;

  --print: #121a24;
  --print-soft: #3b4a5c;
  --faint: #56667a;

  --rule: #b9c4d1;
  --rule-soft: #dbe2ea;

  --steel: #1b3a54;

  --pen: #1f3fae;
  --pen-dark: #17318a;
  --pen-wash: #edf1fc;

  --stamp: #4a3aa3;

  --alarm: #c4162b;
  --alarm-wash: #fdeced;

  --amber: #7a4400;
  --amber-wash: #fdf1dc;

  --text: "Sofia Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hand: "Bad Script", "Segoe Script", "Bradley Hand", cursive;

  --small: 0.875rem;
  --body: 1.0625rem;
  --large: 1.25rem;
  --h3: 1.25rem;
  --h2: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem);
  --h1: clamp(2.125rem, 1.25rem + 3.7vw, 3.75rem);

  --gutter: clamp(1.125rem, 4vw, 2.5rem);
  --band: clamp(2.75rem, 7vw, 5rem);
  --radius: 3px;

  color-scheme: light;
}

/* ── Bulgarian letterforms: on, because <html lang="bg"> is set and the font honours it.
   в, д, т, и, п are drawn the way Bulgarian readers write them rather than the Russian way most
   sites default to. You are the native reader and get the last word: uncomment the next line
   and every page switches to the international forms. */
/* * { font-feature-settings: "locl" 0; } */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* The bar is sticky; without this, "#podpis" lands with its heading underneath it. */
  scroll-padding-top: 4.75rem;
}

body {
  margin: 0;
  background: var(--desk);
  color: var(--print);
  font-family: var(--text);
  font-size: var(--body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure,
blockquote,
fieldset {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

fieldset {
  border: 0;
  min-width: 0;
}

legend {
  padding: 0;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

strong {
  font-weight: 700;
}

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

.visually-hidden,
.skip:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip:focus {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--sheet);
  color: var(--print);
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A narrow section limits how far its text runs; it does not move to the middle of the page.
   Every heading on the site starts on the same left edge as the name in the bar. */
.narrow > * {
  max-width: 46rem;
}

.nowrap {
  white-space: nowrap;
}

.small {
  font-size: var(--small);
  color: var(--faint);
}

/* ── Demo banner ─────────────────────────────────────────────────────────────────────────────
   Only ever on screen while fictional signatures exist. Amber, like the platform's "demo values"
   badge: a statement about the data, not an error. */
.demo-banner {
  padding: 0.6rem var(--gutter);
  background: var(--amber-wash);
  color: var(--amber);
  border-bottom: 1px solid #e9c98e;
  font-size: var(--small);
  text-align: center;
}

/* ── The bar ─────────────────────────────────────────────────────────────────────────────── */
.bar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--steel);
  color: #fff;
}

.bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.75rem;
}

.mark {
  display: flex;
  flex-direction: column;
  padding-block: 0.5rem;
  line-height: 1.2;
  text-decoration: none;
}

.mark-name {
  font-size: 1.0625rem;
  font-weight: 700;
}

.mark-sub {
  font-size: 0.8125rem;
  color: rgb(255 255 255 / 0.72);
}

.bar-cta {
  flex: none;
  padding: 0.45rem 0.95rem;
  border: 1px solid rgb(255 255 255 / 0.5);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.bar-cta:hover {
  background: rgb(255 255 255 / 0.12);
}

.bar :focus-visible {
  outline-color: #fff;
}

@media (max-width: 26rem) {
  .mark-sub {
    display: none;
  }
}

/* ── Bands ───────────────────────────────────────────────────────────────────────────────── */
.band {
  padding-block: var(--band);
}

.band-sheet {
  background: var(--sheet);
}

.band-steel {
  background: var(--steel);
  color: #fff;
}

.band-sources {
  padding-top: 0;
}

h2 {
  font-size: var(--h2);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h3 {
  font-size: var(--h3);
  font-weight: 700;
  line-height: 1.25;
}

.section-intro {
  max-width: 40em;
  margin-top: 0.75rem;
  font-size: var(--large);
  line-height: 1.45;
  color: var(--print-soft);
}

.page-title {
  font-size: var(--h2);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin-bottom: 1rem;
}

.lead {
  max-width: 36em;
  font-size: var(--large);
  line-height: 1.5;
  color: var(--print-soft);
}

/* ── Hero ────────────────────────────────────────────────────────────────────────────────── */
.hero {
  padding-block: clamp(2rem, 5.5vw, 4.25rem) var(--band);
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
}

@media (min-width: 62rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(23rem, 0.88fr);
    align-items: start;
  }

  /* The form is taller than the statement. Rather than leave the statement stranded at the top,
     it stays in view while the form is filled in — what you are signing remains beside where
     you sign it. */
  .hero-text {
    position: sticky;
    top: 6.25rem;
  }
}

.hero h1 {
  font-size: var(--h1);
  font-weight: 800;
  line-height: 1.03;
  letter-spacing: -0.024em;
  text-wrap: balance;
}

.hero .lead {
  margin-top: 1.5rem;
}

/* The petition's own words. Heavier than the paragraph above it because this — not the
   statistic — is the sentence a person is putting their name to. */
.pledge {
  max-width: 30em;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid var(--print);
  font-size: var(--large);
  font-weight: 700;
  line-height: 1.4;
}

.hero-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.5rem;
  margin-top: 1.75rem;
}

.text-link {
  font-weight: 600;
}

/* ── Buttons ─────────────────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  border: 2px solid transparent;
  border-radius: var(--radius);
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}

/* The only solid blue on the page: pressing it is the act of signing. */
.btn-pen {
  background: var(--pen);
  color: #fff;
}

.btn-pen:hover {
  background: var(--pen-dark);
}

.btn-outline {
  border-color: var(--steel);
  color: var(--steel);
}

.btn-outline:hover {
  background: var(--steel);
  color: #fff;
}

.btn-light {
  background: #fff;
  color: var(--steel);
}

.btn-light:hover {
  background: var(--desk);
}

.btn-alarm {
  background: var(--alarm);
  color: #fff;
}

.btn-alarm:hover {
  background: #a31124;
}

.btn-plain {
  padding-inline: 0.5rem;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.btn-small {
  padding-block: 0.25rem;
  font-size: var(--small);
}

.btn-wide {
  width: 100%;
  padding-block: 0.9rem;
  font-size: 1.125rem;
}

/* ── The sheet you sign ──────────────────────────────────────────────────────────────────── */
.sign {
  padding: clamp(1.25rem, 3.4vw, 2rem);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 1px 0 rgb(18 26 36 / 0.05), 0 18px 40px -24px rgb(18 26 36 / 0.45);
}

.sign h2 {
  font-size: 1.625rem;
}

.sign-count {
  margin-top: 0.25rem;
  color: var(--faint);
}

.form {
  display: grid;
  gap: 1.1rem;
  margin-top: 1.25rem;
}

.field-pair {
  display: grid;
  gap: 1.1rem;
}

@media (min-width: 30rem) {
  .field-pair {
    grid-template-columns: 1fr 1fr;
  }
}

/* align-content: start keeps the label, the line and the message at the top of the field. Two
   fields share a row (Име, Фамилия), and the row is as tall as the taller of the two; without it,
   the field with no message under it spread its rows over that height, and its line dropped and
   grew the moment the neighbour showed an error — or it stopped showing one. */
.field {
  display: grid;
  align-content: start;
  gap: 0.25rem;
  min-width: 0;
}

.field label,
.choice legend,
.copy label {
  font-size: var(--small);
  font-weight: 700;
  color: var(--print-soft);
}

/* A form line, not a box: a dotted rule to write on, as on the paper form this replaces. What is
   typed on it is in pen. */
.field input,
.field textarea,
.field select,
.copy input {
  width: 100%;
  padding: 0.5rem 0.6rem 0.4rem;
  border: 0;
  border-bottom: 2px dotted var(--rule);
  border-radius: var(--radius) var(--radius) 0 0;
  background: var(--field);
  color: var(--pen);
  font: inherit;
  font-size: 1.125rem;
  font-weight: 500;
}

.field textarea {
  resize: vertical;
  line-height: 1.45;
}

.field input:focus-visible,
.field textarea:focus-visible,
.field select:focus-visible {
  outline: none;
  border-bottom: 2px solid var(--pen);
  background: var(--pen-wash);
  box-shadow: 0 0 0 3px var(--pen-wash);
}

.hint {
  font-size: var(--small);
  color: var(--faint);
}

/* Red is the alarm, and this is the only place a visitor ever meets it. */
.field-error {
  font-size: var(--small);
  font-weight: 600;
  color: var(--alarm);
}

.field-error:empty {
  display: none;
}

.field:has(.field-error:not(:empty)) input:not([type="checkbox"]):not([type="radio"]),
.field:has(.field-error:not(:empty)) textarea {
  border-bottom: 2px solid var(--alarm);
  background: var(--alarm-wash);
}

.form-alert {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  border-left: 4px solid var(--alarm);
  background: var(--alarm-wash);
  color: #8f0f1f;
  font-weight: 600;
}

/* The thank-you that replaces the questions once they are answered. */
.answered {
  margin-top: 2rem;
  padding: 1.5rem 1.5rem 1.25rem;
  border-left: 4px solid var(--pen);
  background: var(--pen-wash);
}

.answered p {
  max-width: 38em;
  margin-top: 0.6rem;
  color: var(--print-soft);
}

.answered .actions {
  margin-top: 1.25rem;
}

.saved {
  margin-top: 1rem;
  padding: 0.65rem 0.85rem;
  border-left: 4px solid var(--pen);
  background: var(--pen-wash);
  font-weight: 600;
}

/* ── "Mark with an X" ────────────────────────────────────────────────────────────────────────
   Radio buttons and tick boxes are both drawn as the square a paper form gives you, crossed in
   pen. They are still real inputs underneath: keyboard, screen reader and browser validation
   all behave as usual. */
.choice {
  display: grid;
  gap: 0.15rem;
}

.choice legend {
  margin-bottom: 0.3rem;
}

.choice .hint {
  margin-top: 0.3rem;
}

.box {
  display: grid;
  grid-template-columns: 1.375rem minmax(0, 1fr);
  gap: 0.65rem;
  align-items: start;
  padding-block: 0.3rem;
  cursor: pointer;
}

.box input {
  appearance: none;
  display: grid;
  place-content: center;
  width: 1.375rem;
  height: 1.375rem;
  margin: 0.1rem 0 0;
  border: 1.5px solid var(--print-soft);
  border-radius: 2px;
  background: var(--sheet);
  cursor: pointer;
}

.box input::before {
  content: "";
  width: 0.95rem;
  height: 0.95rem;
  background: var(--pen);
  clip-path: polygon(14% 0, 50% 36%, 86% 0, 100% 14%, 64% 50%, 100% 86%, 86% 100%, 50% 64%, 14% 100%, 0 86%, 36% 50%, 0 14%);
  transform: scale(0);
  transition: transform 90ms ease-out;
}

.box input:checked::before {
  transform: scale(1);
}

.box input:checked {
  border-color: var(--pen);
}

.box input:disabled,
.box:has(input:disabled) {
  cursor: default;
}

.box:has(input:disabled) span {
  color: var(--faint);
}

.box input:checked + span {
  color: var(--pen);
  font-weight: 600;
}

.abroad {
  margin-top: 0.2rem;
  font-size: var(--small);
}

.field input:disabled {
  opacity: 0.5;
}

.consent span {
  font-size: var(--small);
  line-height: 1.45;
  color: var(--print-soft);
}

.box.consent input:checked + span {
  color: var(--print-soft);
  font-weight: 400;
}

/* For software that fills in every field it finds. Off the page rather than display:none,
   because the cleverer bots skip fields that are plainly hidden. */
.hp {
  position: absolute;
  left: -200vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* ── The signature line ──────────────────────────────────────────────────────────────────── */
.sigline {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  min-height: 3.25rem;
  padding-bottom: 0.2rem;
  border-bottom: 2px dotted var(--rule);
}

.sigline-label {
  flex: none;
  padding-bottom: 0.1rem;
  font-size: var(--small);
  font-weight: 700;
  color: var(--print-soft);
}

/* Clipped sideways only. A long name stops at the edge of its column, but the tops of the
   letters must survive: in this script the bar of a П, Г or Т is a stroke ABOVE the line, and
   overflow:hidden quietly cut it off — "Павлина" was signing as "||авлина". */
.sigline-ink,
.sheet-ink {
  font-family: var(--hand);
  color: var(--pen);
  white-space: nowrap;
  overflow-x: clip;
  overflow-y: visible;
  line-height: 1.5;
}

/* A long name runs out of room the way a long signature runs off the line: it trails away. */
.sheet-ink {
  -webkit-mask-image: linear-gradient(to right, #000 82%, transparent);
  mask-image: linear-gradient(to right, #000 82%, transparent);
}

.sigline-ink {
  flex: 1;
  min-width: 0;
  font-size: 1.75rem;
  transform: rotate(-1.5deg);
  transform-origin: left bottom;
}

.form-note {
  margin-top: -0.4rem;
  text-align: center;
}

.sent h2 {
  margin-bottom: 0.75rem;
}

.sent p + p {
  margin-top: 0.75rem;
}

.sent strong {
  color: var(--pen);
  overflow-wrap: anywhere;
}

/* ── Today / we want ─────────────────────────────────────────────────────────────────────── */
.ledger {
  margin-top: 2rem;
  border-top: 2px solid var(--print);
}

.ledger-head {
  display: none;
}

.ledger-row {
  display: grid;
  gap: 0.6rem;
  padding-block: 1.4rem;
  border-bottom: 1px solid var(--rule-soft);
}

.ledger-today {
  color: var(--print-soft);
}

.ledger-wanted {
  font-weight: 500;
}

.ledger-label {
  display: block;
  font-size: var(--small);
  font-weight: 700;
  color: var(--faint);
}

@media (min-width: 54rem) {
  .ledger-head,
  .ledger-row {
    display: grid;
    grid-template-columns: 12.5rem minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.25rem;
  }

  .ledger-head {
    padding-block: 0.6rem;
    border-bottom: 1px solid var(--rule);
    font-size: var(--small);
    font-weight: 700;
    color: var(--faint);
  }

  /* The column heading says it once; the per-row labels are for narrow screens and screen readers. */
  .ledger-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
}

/* ── What the numbers show ───────────────────────────────────────────────────────────────── */
.facts {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 58rem) {
  .facts {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
    align-items: start;
  }
}

.facts p {
  max-width: 34em;
  margin-top: 0.6rem;
  color: var(--print-soft);
}

/* The figures sit inside a sentence, at the sentence's size. They are evidence, not ornaments. */
.facts .fact {
  margin-top: 1.75rem;
  font-size: 1.5rem;
  line-height: 1.32;
  color: var(--print);
}

.fact strong {
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.quote {
  padding: 1.5rem 0 0 1.5rem;
  border-left: 3px solid var(--print);
}

.quote blockquote p {
  margin: 0;
  font-size: var(--large);
  line-height: 1.5;
  color: var(--print);
}

.quote figcaption {
  margin-top: 1rem;
  font-size: var(--small);
  color: var(--faint);
}

/* ── The platform ────────────────────────────────────────────────────────────────────────── */
.platform {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 58rem) {
  .platform {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 4rem;
  }
}

.platform-lead {
  max-width: 34em;
  margin-block: 1rem 1.75rem;
  font-size: var(--large);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.88);
}

.platform-soon {
  font-weight: 600;
}

.honest {
  padding-left: 1.5rem;
  border-left: 3px solid rgb(255 255 255 / 0.35);
}

.honest ul {
  display: grid;
  gap: 0.9rem;
  margin-top: 0.9rem;
  color: rgb(255 255 255 / 0.84);
}

.band-steel :focus-visible {
  outline-color: #fff;
}

/* ── For the people at the desk ──────────────────────────────────────────────────────────── */
.points {
  display: grid;
  gap: 2rem 3rem;
  margin-top: 2rem;
}

@media (min-width: 46rem) {
  .points {
    grid-template-columns: 1fr 1fr;
  }
}

.points div {
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
}

.points p {
  max-width: 32em;
  margin-top: 0.4rem;
  color: var(--print-soft);
}

/* ── The signature sheet ─────────────────────────────────────────────────────────────────── */
.signers {
  display: grid;
  gap: 2.5rem;
  margin-top: 2rem;
}

@media (min-width: 60rem) {
  .signers {
    grid-template-columns: minmax(0, 1fr) 16rem;
    gap: 3.5rem;
    align-items: start;
  }
}

.sheet {
  border-top: 2px solid var(--print);
}

.sheet-head,
.sheet-row {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1.25fr) minmax(0, 0.9fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: baseline;
}

.sheet-head {
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
  font-size: var(--small);
  font-weight: 700;
  color: var(--faint);
}

.sheet-row {
  padding-block: 0.7rem 0.6rem;
  border-bottom: 1px dotted var(--rule);
}

.sheet-no {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
}

.sheet-name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.sheet-role {
  display: block;
  font-size: var(--small);
  font-weight: 400;
  color: var(--faint);
}

.sheet-ink {
  font-size: 1.6rem;
  transform-origin: left bottom;
}

/* Nobody signs twice at the same angle. */
.tilt-0 { transform: rotate(-3deg); }
.tilt-1 { transform: rotate(-1deg) translateY(2px); }
.tilt-2 { transform: rotate(-4deg) translateY(-1px); }
.tilt-3 { transform: rotate(-2deg) translateY(3px); }
.tilt-4 { transform: rotate(0.5deg); }

.sheet-foot {
  margin-top: 0.9rem;
  font-size: var(--small);
  color: var(--faint);
}

@media (max-width: 40rem) {
  .sheet-head {
    display: none;
  }

  .sheet-row {
    grid-template-columns: 2.25rem minmax(0, 1.1fr) minmax(0, 0.9fr);
    grid-template-areas: "no name ink" "no city ink";
    gap: 0 0.75rem;
  }

  .sheet-no { grid-area: no; }
  .sheet-name { grid-area: name; }
  .sheet-city { grid-area: city; font-size: var(--small); color: var(--print-soft); }
  .sheet-ink { grid-area: ink; align-self: center; font-size: 1.3rem; }
}

.city-list {
  margin-top: 0.75rem;
  border-top: 2px solid var(--print);
}

.city-list li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.45rem;
  border-bottom: 1px dotted var(--rule);
}

.city-count {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.cities .small {
  margin-top: 0.6rem;
}

/* ── What signers want most ──────────────────────────────────────────────────────────────── */
.bars {
  display: grid;
  gap: 1rem;
  max-width: 52rem;
  margin-top: 2rem;
}

.bars-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.25rem;
  grid-template-areas: "label value" "bar bar";
  gap: 0.35rem 1rem;
  align-items: baseline;
}

.bars-label { grid-area: label; font-weight: 600; }
.bars-value { grid-area: value; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.bars-svg { grid-area: bar; display: block; width: 100%; height: 0.5rem; }
.bars-track { fill: var(--rule-soft); }
.bars-fill { fill: var(--pen); }

/* ── Questions ───────────────────────────────────────────────────────────────────────────── */
details {
  border-bottom: 1px solid var(--rule);
}

details:first-of-type {
  margin-top: 1.5rem;
  border-top: 2px solid var(--print);
}

summary {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1rem;
  font-size: var(--large);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary::after {
  content: "+";
  flex: none;
  font-weight: 400;
  color: var(--faint);
}

details[open] summary::after {
  content: "−";
}

details p {
  max-width: 38em;
  padding-bottom: 1.25rem;
  color: var(--print-soft);
}

/* ── Sources ─────────────────────────────────────────────────────────────────────────────── */
.band-sources h2 {
  font-size: 1.375rem;
}

.band-sources p {
  margin-top: 0.75rem;
  font-size: var(--small);
  color: var(--print-soft);
}

.sources {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.9rem;
  font-size: var(--small);
}

.sources li {
  padding-left: 1rem;
  text-indent: -1rem;
}

.sources li::before {
  content: "– ";
  color: var(--faint);
}

/* ── Footer ──────────────────────────────────────────────────────────────────────────────── */
.foot {
  padding-block: 2.25rem 2.75rem;
  border-top: 1px solid var(--rule);
  font-size: var(--small);
  color: var(--print-soft);
}

.foot-inner {
  display: grid;
  gap: 0.5rem;
}

.foot p {
  max-width: 52em;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.5rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

/* ── Confirm ─────────────────────────────────────────────────────────────────────────────── */
.slip {
  display: grid;
  gap: 1.5rem;
  margin-block: 1.5rem;
  padding: clamp(1.25rem, 3.4vw, 2rem);
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.slip-list {
  display: grid;
}

.slip-list div {
  display: grid;
  gap: 0.1rem;
  padding-block: 0.6rem;
  border-bottom: 1px dotted var(--rule);
}

.slip-list dt {
  font-size: var(--small);
  font-weight: 700;
  color: var(--print-soft);
}

.slip-list dd {
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--pen);
  overflow-wrap: anywhere;
}

@media (min-width: 34rem) {
  .slip-list div {
    grid-template-columns: 13rem minmax(0, 1fr);
    align-items: baseline;
    gap: 1rem;
  }
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.5rem;
  margin-top: 1.75rem;
}

/* ── Thank you ───────────────────────────────────────────────────────────────────────────── */
.thanks-head {
  display: grid;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 40rem) {
  .thanks-head {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
  }
}

/* The rubber stamp. The one moment on the whole site that moves by itself — it comes down once,
   when the page a person has just earned opens. */
.stamp {
  display: inline-grid;
  justify-items: center;
  justify-self: start;
  gap: 0.1rem;
  padding: 0.7rem 1.3rem 0.6rem;
  border: 4px double var(--stamp);
  border-radius: 6px;
  color: var(--stamp);
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  opacity: 0.86;
  transform: rotate(-6deg);
  animation: stamp-down 260ms cubic-bezier(0.2, 0.9, 0.3, 1.25) 180ms both;
}

.stamp-line {
  font-size: var(--small);
  font-weight: 700;
  letter-spacing: 0.06em;
}

@keyframes stamp-down {
  from {
    opacity: 0;
    transform: rotate(-6deg) scale(1.8);
  }
  to {
    opacity: 0.86;
    transform: rotate(-6deg) scale(1);
  }
}

.share {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 2rem;
}

.copy {
  display: grid;
  gap: 0.3rem;
  max-width: 32rem;
  margin-top: 1.5rem;
}

.copy-row {
  display: flex;
  gap: 0.6rem;
}

.copy input {
  min-width: 0;
  background: var(--sheet);
  font-size: 1rem;
}

.survey {
  gap: 1.75rem;
  max-width: 38rem;
  margin-top: 2rem;
}

.survey .btn {
  justify-self: start;
}

/* On this page the questions ARE the content, so they are set as questions, not as field labels. */
.survey .field > label,
.survey .choice legend {
  font-size: var(--body);
  color: var(--print);
}

.withdraw-link {
  margin-top: 2.5rem;
}

.login {
  max-width: 22rem;
}

.login .btn {
  justify-self: start;
}

/* ── Privacy ─────────────────────────────────────────────────────────────────────────────── */
.prose h2 {
  margin-top: 2.25rem;
  font-size: 1.375rem;
}

.prose p,
.prose ul {
  margin-top: 0.75rem;
  color: var(--print-soft);
}

.prose ul {
  display: grid;
  gap: 0.5rem;
  padding-left: 1.25rem;
  list-style: disc;
}

.prose strong {
  color: var(--print);
}

/* ── The organizer's page ────────────────────────────────────────────────────────────────── */
.admin h2 {
  margin-top: 3rem;
  font-size: 1.5rem;
}

.admin-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-top .page-title {
  margin: 0;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tally {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0 2rem;
  margin-top: 1.5rem;
  border-top: 2px solid var(--print);
}

.tally div {
  display: flex;
  flex-direction: column-reverse;
  padding-block: 0.8rem;
  border-bottom: 1px dotted var(--rule);
}

.tally dt {
  font-size: var(--small);
  color: var(--faint);
}

.tally dd {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.tally-alarm dd {
  color: var(--alarm);
}

.demo-clear {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  background: var(--amber-wash);
  color: var(--amber);
  border-left: 4px solid var(--amber);
}

.table-scroll {
  margin-top: 1rem;
  overflow-x: auto;
  background: var(--sheet);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.grid {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--small);
}

.grid th,
.grid td {
  padding: 0.55rem 0.85rem;
  border-bottom: 1px solid var(--rule-soft);
  text-align: left;
  vertical-align: top;
}

.grid thead th {
  border-bottom: 2px solid var(--print);
  color: var(--faint);
  white-space: nowrap;
}

.grid tbody th {
  font-weight: 600;
}

.grid .num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.grid tr:last-child > * {
  border-bottom: 0;
}

.tag {
  margin-left: 0.4rem;
  padding: 0.05rem 0.4rem;
  background: var(--amber-wash);
  color: var(--amber);
  border-radius: 2px;
  font-size: 0.75rem;
  font-weight: 700;
}

.feedback {
  display: grid;
  gap: 1rem;
  margin-top: 1rem;
}

.feedback li {
  padding: 1rem 1.15rem;
  background: var(--sheet);
  border-left: 3px solid var(--pen);
}

.feedback-text {
  white-space: pre-line;
  overflow-wrap: anywhere;
}

.feedback .small {
  margin-top: 0.5rem;
}

/* ── Motion ──────────────────────────────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
}
