/* Community voting site — the app's design language, extended to the web.
   (Design pass from Sean's side, 14 Aug — see spanish-app CLAUDE.md.)

   Identity rules carried over from the app:
   - warm paper ground, honey as the ONE control accent (never coral/teal)
   - coral (#FF6F61) and teal (#0E6E75) are the app's grammatical-gender
     surfaces: on this site they appear only in the header hairline and the
     logo dot as a brand nod — never as meaning on chrome, because the
     candidate IMAGES carry those surfaces themselves.
   - Spanish words are the heroes: big, serif, lowercase.
   - the empty-state mark is the app's wordless placeholder (rings + crossed
     square), not an emoji — same family, same honesty about missing images.
*/

:root {
  /* The app's own Palette (lib/theme/palette.dart), verbatim — Sean, 18 Aug:
     the site should match the app's colours. One standing exception from the
     14 Aug ruling survives: no pure white anywhere, so surfaces cap at the
     app's #FFFDF8. */
  --paper: #F7EACC;
  --surface: #FFFDF6;
  --ink: #241D14;
  --ink-soft: #6B5B44;
  --ink-faint: #99896E;
  --line: #E7D8B4;
  --line-strong: #CDB88C;
  --honey: #F3A712;
  --honey-deep: #9A5B0B;
  --honey-soft: rgba(243, 167, 18, 0.16);
  --coral: #FF6F61;
  --teal: #0E6E75;
  --good: #47805a;
  --good-bg: #e6eee3;
  --warn: #9A5B0B;
  --warn-bg: #F3E6CE;
  /* Errors: dark red, deliberately nothing like gender-coral #FF6F61. */
  --bad: #7F1D1D;
  --bad-bg: #F5DAD3;
  /* Page width. 66rem left ~740px of empty paper each side on a desktop
     monitor (Sean, 17 Aug: "very empty on the sides"). The grids fill the
     extra width; prose keeps its own narrower measure below, because a
     96rem-wide paragraph is unreadable. */
  --page: 96rem;
  --prose: 46rem;
  --radius: 14px;        /* 13 Oct: 18 → 14, DESIGN.md V12 */
  --radius-small: 10px;
  --shadow: 0 3px 0 var(--line-strong);   /* hard, no blur (docs/DESIGN.md V2); ink pieces use their own */
  --serif: "Archivo Black", "Bricolage Grotesque", Georgia, sans-serif;   /* 14 Oct: headings, single weight (DESIGN.md V22) */
  --sans: "Work Sans", -apple-system, "Segoe UI", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  /* A short page (account, sign-in) otherwise leaves the footer stranded
     mid-screen with dead paper under it. */
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; min-width: 0; width: 100%; }
/* ↑ 7 Oct: without min-width:0 a flex item grows to its widest child — the Community page's search
   box made main 407px on a 375px phone, and html{overflow-x:hidden} silently cut the right edge off. */
body > .site-footer { margin-top: auto; }

a { color: var(--honey-deep); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--ink); }

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

/* ── header ─────────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.site-header::before {
  /* The one place coral and teal exist on this site: a brand hairline. */
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--coral) 0 50%, var(--teal) 50% 100%);
}
.header-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.version-banner {
  order: 3;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.15rem 0.6rem;
}
.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}
.wordmark small {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  color: var(--ink-faint);
}
.wordmark .dot {
  align-self: center;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--coral) 0 49%, var(--teal) 51% 100%);
  flex: none;
}
.site-header nav { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.site-header nav a {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.site-header nav a:hover { color: var(--ink); background: var(--honey-soft); }
.site-header nav a.active { color: var(--ink); background: var(--honey-soft); }
.site-header nav .me { margin-left: 0.5rem; }
/* Sign out is a nav button, so it dresses like one — not an inline link. */
.site-header nav form button {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
}
.site-header nav form button:hover { color: var(--ink); background: var(--honey-soft); }

/* ── layout ─────────────────────────────────────────────────────────── */

main {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

.page-intro { max-width: var(--prose); margin: 0 0 2rem; }
.page-intro h1 {
  font-family: var(--serif);
  font-size: clamp(1.7rem, 4.5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
  text-wrap: balance;
}
.page-intro p { margin: 0.4rem 0; color: var(--ink-soft); }

.crumb { margin: 0 0 1.2rem; font-size: 0.9rem; }
.crumb a { color: var(--ink-faint); text-decoration: none; }
.crumb a:hover { color: var(--ink); }

.hero-band {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem 2.5rem;
  flex-wrap: wrap;
  max-width: 72rem;
  margin: 0 auto 1.4rem;
}
.hero-copy { max-width: 34rem; }
/* 7 Oct: the Community page's top is a card, like the word page header. */
.hero-card { background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1.1rem 1.3rem 1.2rem; align-items: center;
  max-width: 78rem; }   /* = .word-mapa, so the two boxes line up */
.hero-card .hero-copy { max-width: 40rem; }
.hero-steps { list-style: none; margin: 0.6rem 0 0; padding: 0; display: grid; gap: 0.35rem; color: var(--ink-soft); font-size: 0.95rem; }
.hero-steps li { display: flex; gap: 0.55rem; align-items: baseline; }
.step-n { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 1.45rem; height: 1.45rem;
  border-radius: 50%; background: var(--honey); color: var(--ink); font-weight: 800; font-size: 0.8rem; }
.mapa-head-copy { position: relative; }
.mapa-head .panel-gloss { font-size: 1rem; }
.hero-copy h1 {
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.4vw, 1.8rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 0.3rem;
  text-wrap: balance;
}
.hero-copy p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.word-search {
  display: flex;
  gap: 0.6rem;
  flex: 1 1 20rem;
  min-width: 0;   /* 7 Oct: else the input's natural width pushes it past a phone's edge */
  max-width: 26rem;
  margin: 0;
}
.word-search input[type="search"] {
  flex: 1;
  min-width: 0;
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.55rem 1.1rem;
}
.word-search input[type="search"]:focus { border-color: var(--line-strong); outline: none; }
.word-search button { margin-top: 0; padding: 0.55rem 1.2rem; }
/* ── the word browser: columns panning out to the right, Finder-style ──
   Rows are soft pills (macOS Sonoma manners), scrollbars whisper in the
   palette, and the words themselves wear the app's serif. */
/* El Mapa (26 Aug): the tree pinned left, the room's words on the right.
   Replaced the Finder columns once topics outgrew them. */
.word-mapa {
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: 78rem;
  height: min(66vh, 640px);
  background: var(--surface);
  border-radius: var(--radius);
  margin: 0 auto 0.8rem;
  overflow: hidden;
}
.mapa-rail {
  flex: 0 0 16.5rem;
  overflow-y: auto;
  border-right: 2px solid var(--line-strong);
  padding: 0.9rem 0.7rem;
}
.rail-label {
  margin: 0 0.5rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.scene-row, .kid-row {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font: inherit;
  text-align: left;
  background: none;
  border: 1.5px solid transparent;
  border-radius: 10px;
  padding: 0.42rem 0.65rem;
  cursor: pointer;
  color: var(--ink);
}
.scene-row .serif, .kid-row .serif { font-family: var(--serif); font-weight: 700; font-size: 1.02rem; }
.kid-row .serif { font-weight: 600; font-size: 0.94rem; }
.scene-row:hover, .kid-row:hover { background: var(--honey-soft); }
.scene-row.open { background: var(--honey-soft); }
.scene-row.current, .kid-row.current {
  background: var(--honey);
  border-color: var(--ink);
}
.scene-row.current .rail-count, .kid-row.current .rail-count { color: var(--ink); font-weight: 700; }
.rail-kids {
  margin: 0.15rem 0 0.35rem 0.9rem;
  padding-left: 0.55rem;
  border-left: 2px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.rail-count { font-size: 0.74rem; color: var(--ink-faint); flex: none; }
.mapa-pane {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}
.mapa-head {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.3rem 0.75rem;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.mapa-filters { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.filter-pill {
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.22rem 0.8rem;
  cursor: pointer;
}
.filter-pill:hover { background: var(--honey-soft); color: var(--ink); }
.filter-pill.active {
  background: var(--honey);
  border-color: var(--ink);
  color: var(--ink);
}
.mapa-words {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.8rem;
  padding: 0.9rem 1.3rem 1.2rem;
  align-content: start;
}
.mapa-words .row {
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}
.mapa-words .row:hover { border-color: var(--ink); background: var(--honey-soft); }
.mapa-words .notice-small { grid-column: 1 / -1; }
@media (max-width: 52rem) {
  .word-mapa { flex-direction: column; height: min(80vh, 700px); }
  .mapa-rail {
    flex: none;
    max-height: 15rem;
    border-right: none;
    border-bottom: 2px solid var(--line-strong);
  }
  .mapa-words { grid-template-columns: 1fr; }
}
.panel-head {
  padding: 1.05rem 1.2rem 0.65rem;
  border-bottom: 1px solid var(--line);
}
.panel-title { font-family: var(--serif); font-size: 1.45rem; margin: 0; letter-spacing: -0.01em; }
.panel-gloss { font-family: var(--sans); font-size: 0.88rem; font-weight: 400; color: var(--ink-soft); }
.panel-sub { margin: 0.15rem 0 0.2rem; font-size: 0.82rem; color: var(--ink-soft); }
.panel-learn {
  background: none;
  border: none;
  font: inherit;
  font-size: 0.82rem;
  color: var(--honey-deep);
  cursor: pointer;
  padding: 0.1rem 0 0.3rem;
}
.panel-learn:hover { color: var(--ink); }
.panel-rows {
  overflow-y: auto;
  flex: 1;
  padding: 0.45rem 0.45rem 1rem;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.panel-rows::-webkit-scrollbar { width: 6px; }
.panel-rows::-webkit-scrollbar-track { background: transparent; }
.panel-rows::-webkit-scrollbar-thumb {
  background: var(--line-strong);
  border-radius: 999px;
}
.panel-rows::-webkit-scrollbar-thumb:hover { background: var(--ink-faint); }
.row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  background: none;
  border: none;
  border-radius: 10px;
  font: inherit;
  text-align: left;
  padding: 0.5rem 0.65rem 0.5rem 0.55rem;
  margin: 0.06rem 0;
  cursor: pointer;
  transition: background 100ms ease;
}
.row:hover { background: var(--honey-soft); }
.row.selected { background: var(--honey); }
.row.selected .row-gloss { color: rgba(55, 41, 28, 0.75); }
.row.selected .row-tags { color: rgba(55, 41, 28, 0.65); background: rgba(255, 253, 248, 0.5); }
.row.selected .row-chev { color: var(--ink); }
.row-edge {
  flex: none;
  width: 4px;
  height: 1.7rem;
  border-radius: 2px;
}
.row-edge.g-f { background: var(--coral); }
.row-edge.g-m { background: var(--teal); }
.row-edge.g-x { background: #D8BC8A; }
.row-main { flex: 1; min-width: 0; display: grid; }
.row-head {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.06rem;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.row-head.serif { font-size: 1.12rem; }
.row-gloss {
  font-size: 0.78rem;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-tags {
  flex: none;
  font-size: 0.7rem;
  color: var(--ink-faint);
  background: var(--paper);
  border-radius: 999px;
  padding: 0.14rem 0.5rem;
}
.row-chev {
  flex: none;
  color: var(--ink-faint);
  font-size: 1.1rem;
  opacity: 0.55;
}
.row:hover .row-chev { opacity: 1; }
.row-dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--honey);
  border: 1.5px solid var(--surface);
}
.row-divider { height: 0.35rem; border-bottom: 1px solid var(--line); margin: 0 0.4rem 0.45rem; }
@media (prefers-reduced-motion: reduce) {
  .word-mapa { scroll-behavior: auto; }
}

.word-pop[hidden] { display: none; }
.word-pop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(55, 41, 28, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 160ms ease;
}
.word-pop.open { opacity: 1; }
.word-pop .pop-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  max-width: min(58rem, 94vw);
  width: 100%;
  max-height: 86vh;
  overflow-y: auto;
  padding: 1.3rem 1.5rem 1.1rem;
  position: relative;
  transform: translateY(10px) scale(0.97);
  transition: transform 180ms ease;
}
.word-pop.open .pop-card { transform: none; }
.pop-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--ink-faint);
  cursor: pointer;
  padding: 0.2rem 0.5rem;
}
.pop-close:hover { color: var(--ink); }
.pop-head { display: flex; align-items: baseline; gap: 0.7rem; }
.pop-head h2 { font-family: var(--serif); font-size: 2rem; margin: 0; }
.pop-pill {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
}
.pop-pill.g-f { background: var(--coral); color: #37291C; }
.pop-pill.g-m { background: var(--teal); color: #fff; }
.pop-pill.g-x { background: #D8BC8A; color: #37291C; }
.pop-gloss { margin: 0.2rem 0 0.9rem; color: var(--ink-soft); }
.pop-cands {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(21rem, 100%), 1fr));
  gap: 1rem;
}
.pop-cand {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
}
.pop-cand.ratified { border-color: var(--good); }
.pop-cand img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: contain;
  background: var(--paper);
  display: block;
}
.pop-cand figcaption {
  padding: 0.5rem 0.8rem 0.7rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.8rem;
}
.pop-cand figcaption span { color: var(--ink-soft); }
.pop-vote { display: inline-flex; gap: 0.4rem; margin-left: auto; }
.pop-vote button {
  font-size: 0.8rem;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
.pop-vote button.active { background: var(--honey); border-color: var(--honey); font-weight: 700; }
.pop-empty { color: var(--ink-soft); }
.pop-foot { margin: 1rem 0 0; font-size: 0.85rem; color: var(--ink-soft); }
.topic-grid.hero .topic-card { min-height: 7.5rem; }
.topic-gloss { font-size: 0.55em; font-weight: 400; color: var(--ink-soft); font-family: var(--sans); }
.topic-card .topic-blurb { font-style: italic; }
.topic-grid.hero .topic-name { font-size: 1.25rem; }

/* ── buttons: the app's honey pills ──────────────────────────────────── */

button, .button {
  font: inherit;
  cursor: pointer;
}
button.primary {
  background: var(--honey);
  color: var(--ink);
  font-weight: 700;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  min-height: 2.75rem;
  box-shadow: var(--shadow);
  transition: transform 120ms ease, box-shadow 120ms ease;
}
button.primary:hover { text-decoration: underline; }
button.primary:disabled { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }
button.primary:active { transform: translateY(3px); box-shadow: none; }
button.secondary.offline:disabled { opacity: 0.7; cursor: not-allowed; border-style: dashed; }
button.secondary {
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 0.7rem 1.5rem;
  min-height: 2.75rem;
  transition: transform 120ms ease, background 120ms ease;
}
button.secondary:hover { background: var(--honey-soft); }
button.secondary:active { transform: translateY(2px); }
button.link {
  background: none;
  border: none;
  padding: 0;
  color: var(--honey-deep);
  text-decoration: underline;
  text-underline-offset: 2px;
  font-size: 0.9rem;
}
button.link:hover { color: var(--ink); }

/* ── community pulse: the people ARE the front page ──────────────────── */

.button-link {
  display: inline-block;
  background: var(--honey);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  border-radius: 999px;
  padding: 0.55rem 1.3rem;
  box-shadow: var(--shadow);
}
.button-link:hover { color: var(--ink); text-decoration: underline; }
.button-link:active { transform: translateY(3px); box-shadow: none; }

.notice-small.centered { text-align: center; }
.community-band {
  max-width: 72rem;
  margin: 2.2rem auto 0;
}
.community-band .section-title {
  display: inline-block;
  font-size: 1.15rem;
  margin: 0 1rem 0.7rem 0;
  vertical-align: middle;
}
.community-band .pulse-stats {
  display: inline-flex;
  vertical-align: middle;
}
.pulse-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 0.9rem;
}
.pulse-stats .stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.88rem;
  color: var(--ink-soft);
}
.pulse-stats .stat strong {
  font-family: var(--mono);
  color: var(--ink);
  margin-right: 0.25rem;
}

.fresh-strip { margin: 0 0 1rem; }
.fresh-strip h2 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 0.6rem; }
.fresh-row { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.7rem; }
@media (max-width: 40rem) { .fresh-row { grid-template-columns: repeat(2, 1fr); } }
.fresh-how { margin: -0.3rem 0 0.7rem; font-size: 0.88rem; color: var(--ink-soft); max-width: var(--prose); }
.fresh-card .fresh-gloss { color: var(--ink-soft); }
.fresh-card .fresh-sounds { display: block; margin-top: 0.15rem; font-size: 0.8rem; color: var(--ink-soft); }
.fresh-card { display: block; color: inherit; text-decoration: none; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.fresh-card img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--paper); }
/* ↑ was aspect-ratio 1 + cover, which CROPPED every image (buzón's mailbox was cut off) — 7 Oct */
.fresh-card .fresh-meta { display: block; padding: 0.4rem 0.5rem 0.5rem; font-size: 0.85rem; line-height: 1.25; }
.fresh-card .fresh-meta em { color: var(--ink-soft, #5d5040); }
.fresh-card .fresh-meta .notice-small { display: block; }
.unseen { display: inline-block; min-width: 1.15rem; padding: 0 0.35rem; margin-left: 0.25rem; border-radius: 999px;
  background: var(--honey, #e0a12c); color: #2b241b; font-size: 0.72rem; font-weight: 700; text-align: center; line-height: 1.15rem; }
.activity-row.is-new > span:last-child::before { content: "new"; display: inline-block; margin-right: 0.4rem; padding: 0 0.35rem;
  border-radius: 999px; background: var(--honey, #e0a12c); font-size: 0.7rem; font-weight: 700; }
.pulse-columns {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 1rem;
  margin: 0 0 2.4rem;
}
@media (max-width: 40rem) { .pulse-columns { grid-template-columns: 1fr; } }
.pulse-activity, .pulse-contributors {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.1rem 1.3rem;
}
.pulse-activity h2, .pulse-contributors h2 {
  font-family: var(--serif);
  font-size: 1.05rem;
  margin: 0 0 0.7rem;
}
.activity-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.55rem;
  font-size: 0.9rem;
}
.activity-row a { color: inherit; }
.handle-chip {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 50%;
  background: var(--honey-soft);
  color: var(--honey-deep);
  font-weight: 700;
  font-size: 0.8rem;
  text-transform: uppercase;
}
.me {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 0.2rem 0.5rem;
}
.submitter {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--ink-faint);
}
.submitter .handle-chip { width: 1.25rem; height: 1.25rem; font-size: 0.68rem; }

.section-title {
  font-family: var(--serif);
  font-size: 1.4rem;
  margin: 0 0 0.9rem;
}

.about-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1rem;
  margin: 0 0 2rem;
}
.about-steps .panel { max-width: none; }
.about-steps h2 { font-family: var(--serif); font-size: 1.1rem; margin: 0 0 0.4rem; }
.about-steps p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

/* ── topics: the tree you walk "on and on" ───────────────────────────── */

.topic-grid {
  list-style: none;
  margin: 0 0 2.2rem;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.9rem;
}
.topic-card a {
  display: block;
  height: 100%;
  background: var(--honey-soft);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.05rem 1.15rem 0.95rem;
  text-decoration: none;
  color: inherit;
  transition: transform 140ms ease, background 140ms ease;
}
.topic-card a:hover { background: var(--surface); }
.topic-name {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.15;
  margin: 0;
}
.topic-blurb {
  margin: 0.2rem 0 0.65rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
}
.topic-card .meta { margin: 0; display: flex; gap: 0.35rem; flex-wrap: wrap; }

.topic-chips { margin: 0.55rem 0 0; display: flex; gap: 0.4rem; flex-wrap: wrap; }
.topic-chip {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--honey-deep);
  background: var(--honey-soft);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.15rem 0.7rem;
  text-decoration: none;
}
.topic-chip:hover { color: var(--ink); background: var(--surface); }

/* ── word grid: the words ARE the product ────────────────────────────── */

.lang-picker { display: flex; gap: 0.4rem; margin: 0 0 1.4rem; flex-wrap: wrap; }
.lang-picker a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.lang-picker a.active {
  background: var(--honey);
  border-color: var(--honey);
  color: var(--ink);
}

.lens-picker { display: flex; gap: 0.4rem; margin: 0 0 1.4rem; flex-wrap: wrap; }
.lens-picker a {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}
.lens-picker a.active {
  background: var(--honey);
  border-color: var(--honey);
  color: var(--ink);
}

.pager { margin-top: 1.8rem; justify-content: center; }

.lens-group {
  font-family: var(--serif);
  font-size: 1.3rem;
  margin: 1.6rem 0 0.7rem;
}
.lens-count {
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-faint);
  margin-left: 0.4rem;
}

.word-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
  gap: 0.9rem;
}
.word-card a {
  display: block;
  height: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1rem;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform 140ms ease, border-color 140ms ease;
}
.word-card a:hover { border-color: var(--line-strong); background: var(--surface); }
.word-card .headword {
  font-family: var(--serif);
  font-size: 1.75rem;
  line-height: 1.1;
  margin: 0;
  letter-spacing: -0.01em;
}
.word-card .gloss {
  margin: 0.15rem 0 0.7rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
}
.word-card .meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }

.badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}
.badge.chosen {
  color: var(--good);
  background: var(--good-bg);
  border-color: transparent;
}
.tag {
  font-size: 0.72rem;
  color: var(--ink-faint);
  background: var(--honey-soft);
  border-radius: 999px;
  padding: 0.12rem 0.55rem;
}

/* ── word detail / candidates ────────────────────────────────────────── */

.word-hero { margin: 0 0 1.6rem; }
.word-hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 8vw, 3.6rem);
  line-height: 1;
  margin: 0;
  letter-spacing: -0.015em;
}
.word-hero .gloss { margin: 0.35rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }

.candidate-grid {
  display: grid;
  /* Bounded tracks, not 1fr: on a wide page two candidates would otherwise
     stretch into billboards. Centring keeps a short row from hugging the
     left edge of a 96rem page. */
  grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 24rem));
  justify-content: center;
  gap: 1.1rem;
}
.candidate {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}
.candidate.ratified { border-color: var(--good); }
.candidate figure {
  margin: 0;
  aspect-ratio: 1;
  background: var(--paper);
}
.candidate figure img {
  /* The image is never cropped, rounded further, or overlaid — its full
     surface carries the gender colour, same rule as the app. */
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.candidate-meta { padding: 0.9rem 1.1rem 1.1rem; display: grid; gap: 0.5rem; }

/* ── focused candidate: image left, everything about it right ─────────
   (Sean, 18 Aug: the page should feel taken by the picture, like the app.) */
.thumb-strip {
  /* The switcher is the centrepiece: centred on the page, big enough to
     read at a glance (Sean, 18 Aug). */
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.8rem;
  margin: 0 0 1.2rem;
}
.thumb {
  position: relative;
  display: block;
  width: 5.6rem;
  height: 5.6rem;
  border: 2px solid var(--line);
  border-radius: var(--radius-small);
  overflow: hidden;
  background: var(--paper);
}
.thumb img { width: 100%; height: 100%; object-fit: contain; display: block; }
.thumb:hover { border-color: var(--line-strong); }
.thumb.active { border-color: var(--honey); box-shadow: var(--shadow); }
.thumb-n {
  position: absolute;
  left: 0.25rem;
  right: 0.25rem;
  bottom: 0.25rem;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 0.68rem;
  line-height: 1;
  color: var(--ink-soft);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.14rem 0.3rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.candidate-focus {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(20rem, 0.9fr);
  align-items: start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.candidate-focus.ratified { border-color: var(--good); }
.candidate-focus > figure {
  /* Same rule as everywhere: the image is never cropped or overlaid. */
  margin: 0;
  aspect-ratio: 1;
  background: var(--paper);
  position: sticky;
  top: 4.2rem;
}
.candidate-focus > figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.focus-meta { padding: 1.2rem 1.4rem 1.4rem; align-content: start; }
.comments-panel { border-top: 1px solid var(--line); margin-top: 0.6rem; padding-top: 0.9rem; }
.comments-panel h2 {
  font-family: var(--serif);
  font-size: 1.02rem;
  margin: 0 0 0.6rem;
}
@media (max-width: 46rem) {
  .candidate-focus { grid-template-columns: 1fr; }
  /* the image at its own shape, full width — no beige bands above and below it (7 Oct) */
  .candidate-focus > figure { position: static; aspect-ratio: auto; }
  .candidate-focus > figure img { height: auto; }
  .vote-row button { min-height: 3rem; font-size: 1rem; }
  .join-to-vote .button-link { display: block; text-align: center; padding: 0.8rem 1rem; }
  .thumb { width: 4.6rem; height: 4.6rem; }
}

/* The whole detail view fits the screen, like an app screen (Sean, 18 Aug):
   the page itself never scrolls on desktop — long comment threads scroll
   inside the right-hand panel instead. Phones keep the normal flow. */
@media (min-width: 46.01rem) {
  body:has(main.fullpage) {
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }
  body:has(main.fullpage) .site-header { flex: none; }
  body:has(main.fullpage) .site-footer { display: none; }
  main.fullpage {
    flex: 1;
    min-height: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    padding-top: 1.1rem;
    padding-bottom: 1.2rem;
    /* The body is a fixed 100vh so the picture viewer can own its scroll —
       but a word with NO pictures has no viewer, only the empty state and
       the contribute panels, and they were clipping at the fold. main
       scrolls its own overflow; a page that fits shows no bar. */
    overflow-y: auto;
  }
  /* Chrome does not count a flex scroll container's padding-bottom as
     scrollable overflow, so the last panel's border and shadow — and the
     breathing room under it — were unreachable. A real flex item is. */
  main.fullpage::after {
    content: "";
    display: block;
    flex: none;
    height: 2rem;
  }
  main.fullpage .crumb { margin: 0 0 0.5rem; }
  main.fullpage .word-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.4rem 1.6rem;
    margin: 0 0 0.9rem;
    flex: none;
  }
  main.fullpage .word-hero .vote-intro { flex: 1 0 100%; }
  main.fullpage .word-hero h1 { font-size: 2.1rem; }
  main.fullpage .word-facts { margin: 0; }
  main.fullpage .thumb-strip { flex: none; margin: 0 0 0.9rem; }
  main.fullpage .candidate-focus {
    flex: 1 0 auto;
    /* keeps the image card at screen height; the word's discussions sit below it, one scroll away (8 Oct) */
    min-height: max(24rem, calc(100vh - 17rem));
    height: calc(100vh - 17rem);
    align-items: stretch;
  }
  main.fullpage .candidate-focus > figure {
    aspect-ratio: auto;
    height: 100%;
    min-height: 0;
    position: static;
  }
  main.fullpage .focus-meta {
    height: 100%;
    min-height: 0;
    overflow-y: auto;
  }
  main.fullpage .submit-image { margin-top: 1.2rem; }
}
.candidate-meta .keyword {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  margin: 0;
}
.candidate-meta .why { margin: 0; font-size: 0.85rem; color: var(--ink-faint); }
/* Vote page, 7 Oct (Chas: "no explanation and not clear titles"): every line says what it is. */
/* Word header (7 Oct): word → "means …" → labelled facts, each with a tap-or-hover ⓘ. */
/* 7 Oct (Sean: "it should be on a box like the title area … it still looks separated"): the header is a
   card like the image card below it — word, meaning, facts and the purpose line together. */
.word-hero { margin: 0 0 1rem; background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.2rem 1.1rem; }
.word-hero .vote-intro { margin: 0.8rem 0 0; padding-top: 0.75rem; border-top: 1px solid var(--line); max-width: none; }
.word-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.8rem; }
.word-title h1 { margin: 0; }
.word-means { margin: 0; font-size: 1.1rem; color: var(--ink-soft); }
.word-means b { color: var(--ink); }
.word-facts { list-style: none; margin: 0.5rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem;
  font-size: 0.88rem; color: var(--ink-soft); }
.word-facts li { position: relative; display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
.word-facts .topic-chip { margin: 0; }
.fact-dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; flex: none; }
.fact-dot.g-m { background: var(--teal); }
.fact-dot.g-f { background: var(--coral); }
.tip { position: static; display: inline-flex; }
.tip-btn { all: unset; cursor: pointer; display: inline-flex; padding: 0.35rem; margin: -0.35rem; border-radius: 50%; }
.tip-btn:focus-visible { outline: 2px solid var(--honey); }
.tip-bubble { display: none; position: absolute; left: 0; top: calc(100% + 0.4rem); z-index: 30;
  width: min(19rem, calc(100vw - 2.5rem)); padding: 0.6rem 0.75rem; border-radius: var(--radius-small);
  background: var(--ink); color: var(--paper); font-size: 0.84rem; line-height: 1.45; box-shadow: var(--shadow); }
.tip-btn:hover + .tip-bubble, .tip-btn:focus + .tip-bubble { display: block; }
.vote-intro { max-width: var(--prose); margin: 0 0 1rem; color: var(--ink-soft); font-size: 0.95rem; }
.meta-label { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-faint); }
.sounds-like { background: var(--honey-soft); border-radius: var(--radius-small); padding: 0.8rem 1rem 0.9rem; margin: 0 0 0.4rem; }
.sounds-like .keyword { font-size: 1.9rem; line-height: 1.15; margin: 0.15rem 0 0.35rem; color: var(--ink); }
.sounds-like .why { font-size: 1.02rem; line-height: 1.5; color: var(--ink-soft); }
.candidate-meta .why-missing { font-style: italic; }
.vote-status { margin: 0.7rem 0 0.2rem; font-weight: 700; font-size: 0.92rem; }
.vote-status.is-leading { color: var(--honey-deep); }
.vote-status.is-chosen { color: var(--good); }
.vote-counts { margin: 0.2rem 0 0.6rem; font-size: 0.88rem; color: var(--ink-soft); }
.join-to-vote { margin: 0.8rem 0; }
.join-to-vote .notice-small { margin: 0.4rem 0 0; }
/* The image standard on the upload forms (8 Oct, #17). */
.image-standard { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-small);
  padding: 0.6rem 0.9rem; margin: 0.6rem 0; font-size: 0.88rem; }
.image-standard summary { cursor: pointer; font-weight: 700; }
.image-standard ol { margin: 0.5rem 0 0.4rem; padding-left: 1.3rem; display: grid; gap: 0.3rem; }
.std-swatch { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 3px; vertical-align: -0.12rem;
  border: 1px solid var(--line-strong); }
.how-votes summary { cursor: pointer; color: var(--ink-faint); font-size: 0.85rem; }
.how-votes p { font-size: 0.88rem; color: var(--ink-soft); margin: 0.4rem 0 0.6rem; }

.tally-row { display: flex; align-items: center; gap: 0.5rem; }
.tally {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
}
.ratified-chip {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--good);
  background: var(--good-bg);
  border-radius: 999px;
  padding: 0.12rem 0.6rem;
}

.vote-form { margin: 0; }
.vote-row { display: flex; gap: 0.5rem; }
.vote-row button {
  flex: 1;
  border: 1.5px solid var(--line-strong);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.86rem;
  border-radius: 999px;
  padding: 0.5rem 0.6rem;
  min-height: 2.5rem;
  transition: background 120ms ease, border-color 120ms ease;
}
.vote-row button:hover { border-color: var(--honey); background: var(--honey-soft); }
.vote-row button.active {
  background: var(--honey);
  border-color: var(--honey);
  font-weight: 700;
}

.report summary,
.submit-word summary,
.submit-image summary {
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.report summary:hover,
.submit-word summary:hover,
.submit-image summary:hover { color: var(--ink); }

/* ── comments: conversation under a picture, quieter than the picture ── */

.comments { border-top: 1px solid var(--line); padding-top: 0.6rem; }
.comments > summary {
  cursor: pointer;
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.comments > summary:hover { color: var(--ink); }

.comment {
  border-left: 2px solid var(--honey-soft);
  padding: 0.1rem 0 0.1rem 0.7rem;
  margin: 0.7rem 0;
}
.comment-head {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.comment-head .handle-chip { width: 1.25rem; height: 1.25rem; font-size: 0.68rem; }
.comment-body {
  margin: 0.2rem 0 0.3rem;
  font-size: 0.92rem;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.comment-tombstone {
  margin: 0.7rem 0;
  padding-left: 0.7rem;
  border-left: 2px solid var(--line);
  font-size: 0.85rem;
  font-style: italic;
  color: var(--ink-faint);
}
.comment form { display: inline; }
.comment .report summary { font-size: 0.78rem; }
.comment-form { margin-top: 0.8rem; }
.comment-form button { margin-top: 0.5rem; }

textarea {
  font: inherit;
  width: 100%;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  padding: 0.55rem 0.8rem;
  resize: vertical;
}
textarea:focus { border-color: var(--honey); outline: none; }

/* ── forms ───────────────────────────────────────────────────────────── */

form label { display: block; font-weight: 600; font-size: 0.9rem; margin: 0.7rem 0 0.25rem; }
input[type="text"], input:not([type]), input[type="file"], select,
input[type="email"], input[type="password"] {
  font: inherit;
  width: 100%;
  max-width: 26rem;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: var(--radius-small);
  padding: 0.55rem 0.8rem;
}
input:focus, select:focus { border-color: var(--honey); outline: none; }
form button { margin-top: 0.9rem; }
/* ...but a form used as an inline control (Sign out in the nav, delete under
   a comment) is not a form with fields — the 0.9rem gap dropped Sign out
   13px below the rest of the nav (Sean, 17 Aug). */
.site-header nav form button,
.comment form button { margin-top: 0; }
.stack { display: grid; gap: 0.2rem; }

.ratify-form {
  border: 2.5px solid var(--good);
  border-radius: 14px;
  background: var(--good-bg);
  padding: 12px 16px;
  margin: 6px 0;
}
.ratify-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ratify-form input {
  display: block;
  width: 100%;
  font: inherit;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 4px;
  background: var(--surface);
}
.ratify-form button { width: 100%; }
.ratify-form .notice-small { margin: 8px 0 0; }

.submit-word, .submit-image {
  margin-top: 2.2rem;
  background: var(--surface);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1rem 1.3rem;
}
.submit-word[open], .submit-image[open] { border-style: solid; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  max-width: 30rem;
  box-shadow: var(--shadow);
}

.notice-small { font-size: 0.82rem; color: var(--ink-faint); }

/* ── narrow settings column ───────────────────────────────────────── */
/* A page of short panels reads as abandoned inside the full-width main:
   three 30rem cards pinned left of a 2000px screen. Constrain the column
   instead of stretching the cards — a settings page is a column. */
main.narrow { max-width: 34rem; }
main.narrow .page-intro { max-width: none; text-align: center; }
main.narrow .panel { max-width: none; }

/* Sign-in: two cards side by side on desktop, stacked on a phone. */
main.auth { max-width: 56rem; }
main.auth .page-intro { max-width: 40rem; margin: 0 auto; text-align: center; }
.auth-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: 1.2rem;
  align-items: start;
}
.auth-grid .panel { max-width: none; margin: 0; }
/* Sign-up guard (7 Oct): the honeypot is off-screen, not display:none (some fillers skip hidden
   fields); the agreement line wraps at 320px. */
.hp-field { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.age-line { display: flex; align-items: center; gap: 0.6rem; font-size: 0.9rem; margin: 0.3rem 0; }
.age-line input { width: 5.5rem; }
.agree-line { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; margin: 0.4rem 0; }
.agree-line input { flex: none; margin-top: 0.2rem; }
.agreement-text { max-width: var(--prose); margin: 0 auto 1rem; line-height: 1.6; }

/* Account: the same answer as .auth above, for the same reason. `narrow` was
   itself a fix — short panels pinned left of a wide screen read as abandoned —
   but a single 34rem column of seven panels is the other extreme: a phone
   layout on a desktop. Two columns of cards, stacked on a phone, is neither. */
/* A panel that is telling you something is wrong. Was an inline border-color. */
.panel.is-warn { border-color: #7a1f1f; }

main.account { max-width: 72rem; }
/* Discussions (8 Oct, #21). Calmer on the eyes (Sean: "tiring"): one bold box per page section, thin lines
   inside, a picture or a coloured initial to anchor every row, short meta, readable line length. */
main.disc-page { max-width: 52rem; }
.legal-doc { line-height: 1.65; }
.legal-doc h2 { font-family: var(--serif); font-size: 1.2rem; margin: 1.4rem 0 0.4rem; }
.legal-doc h2:first-child { margin-top: 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; display: block; overflow-x: auto; }
.legal-table th, .legal-table td { text-align: left; padding: 0.4rem 0.5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
mark.legal-gap { background: var(--warn-bg); color: var(--warn); font-weight: 700; border-radius: 4px; padding: 0 0.25rem; }
.disc-hero { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; margin: 0 0 1rem; }
.disc-hero h1 { margin: 0; font-family: var(--serif); }
.disc-hero p { margin: 0.2rem 0 0; }
.disc-cats { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0 0 0.6rem; }
.disc-cats a { text-decoration: none; color: var(--ink); background: var(--surface); border: 1.5px solid var(--line-strong);
  border-radius: 999px; padding: 0.3rem 0.8rem; font-size: 0.88rem; font-weight: 600; }
.disc-cats a.active { background: var(--honey); border-color: var(--honey); }
.disc-cats small { color: var(--ink-soft); font-weight: 400; }
.disc-cat-blurb { margin: 0 0 0.8rem; }
.disc-list { padding: 0.25rem 0; }
.disc-pager { display: flex; justify-content: space-between; margin: 0.8rem 0; }

/* a row: [picture] title / one short line [count] */
.disc-row { display: flex; align-items: center; gap: 0.85rem; padding: 0.7rem 1.1rem; text-decoration: none;
  color: var(--ink); border-top: 1px solid var(--line); }
.disc-row:first-child, .home-disc h2 + .disc-row, .word-discuss h2 + .disc-row { border-top: 0; }
.disc-row:hover { background: var(--honey-soft); }
.disc-thumb { flex: none; width: 3rem; height: 3rem; border-radius: 0.6rem; object-fit: contain; background: var(--paper);
  border: 1px solid var(--line); }
.disc-av { flex: none; width: 2.4rem; height: 2.4rem; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; font-weight: 800; font-size: 1rem; color: var(--ink); }
.disc-row .disc-av { width: 3rem; height: 3rem; font-size: 1.15rem; }
.av-0 { background: var(--honey); } .av-1 { background: var(--coral); } .av-2 { background: var(--teal); color: var(--paper); }
.av-3 { background: var(--good-bg); } .av-4 { background: var(--warn-bg); } .av-5 { background: var(--bad-bg); }
.disc-main { flex: 1; min-width: 0; display: grid; gap: 0.15rem; }
.disc-title { font-weight: 700; font-size: 1rem; line-height: 1.3; overflow-wrap: anywhere; }
.disc-meta { font-size: 0.8rem; color: var(--ink-faint); display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.45rem; }
.disc-tag { display: inline-block; font-size: 0.7rem; font-weight: 700; border-radius: 999px; padding: 0.05rem 0.5rem; color: var(--ink); }
.tag-general { background: var(--paper); border: 1px solid var(--line-strong); }
.tag-sound-alikes { background: var(--honey-soft); }
.tag-help { background: var(--good-bg); }
.tag-feedback { background: var(--warn-bg); }
.disc-count { flex: none; min-width: 2rem; text-align: center; font-weight: 800; font-size: 0.85rem; padding: 0.2rem 0.5rem;
  border-radius: 999px; background: var(--honey-soft); color: var(--ink); }
.disc-count.is-zero { background: transparent; color: var(--ink-faint); font-weight: 600; }

/* a discussion: header card, then ONE box holding the conversation and the reply (Sean, 8 Oct) */
.disc-head { margin: 0 0 1rem; display: flex; flex-wrap: wrap; gap: 0.9rem 1.2rem; align-items: center; }
.disc-head-img img { width: 6.5rem; height: 6.5rem; object-fit: contain; border-radius: 0.8rem; background: var(--paper);
  border: 1px solid var(--line); display: block; }
.disc-head-text { flex: 1 1 16rem; min-width: 0; }
.disc-head h1 { font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.75rem); line-height: 1.2; margin: 0.25rem 0 0.2rem; overflow-wrap: anywhere; }
.disc-about { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }
.disc-mod { flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; align-items: center; font-size: 0.85rem;
  border-top: 1px solid var(--line); padding-top: 0.5rem; }
.disc-mod details input { margin: 0.4rem 0.4rem 0 0; }
.acct-card.disc-thread { padding: 0; overflow: hidden; }   /* the posts carry their own padding */
.disc-posts { list-style: none; margin: 0; padding: 0; }
.disc-post { display: flex; gap: 0.7rem; padding: 1rem 1rem; border-top: 1px solid var(--line); }
.disc-post:first-child { border-top: 0; }
.disc-post-main { flex: 1; min-width: 0; }
.disc-post-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.5rem; margin: 0 0 0.25rem; font-size: 0.9rem; }
.disc-post-head a { font-weight: 700; color: var(--ink); text-decoration: none; }
.disc-when { color: var(--ink-faint); font-size: 0.8rem; }
.disc-op { font-size: 0.68rem; font-weight: 700; background: var(--honey-soft); border-radius: 999px; padding: 0 0.45rem; }
.disc-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; line-height: 1.65; max-width: 65ch; color: var(--ink); }
.disc-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.9rem; margin-top: 0.4rem; font-size: 0.82rem; color: var(--ink-faint); }
.disc-actions form { margin: 0; display: inline; }
.disc-actions button.link { font-size: 0.9rem; padding: 0.15rem 0.3rem; color: var(--ink-soft); text-decoration: none; }
.disc-actions button.is-on { background: var(--honey-soft); border-radius: 6px; }
.disc-actions .report summary { font-size: 0.8rem; }
.disc-ups { color: var(--ink-soft); }
.disc-reply { border-top: 1px solid var(--line); background: var(--paper); padding: 0.9rem 1.2rem; }
.disc-reply-form { display: flex; gap: 0.6rem; align-items: flex-end; flex-wrap: wrap; }
.disc-reply-form textarea { flex: 1 1 18rem; min-width: 0; }
.disc-reply-form button { margin-top: 0; }
.disc-join { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0; }
.disc-form h1 { font-family: var(--serif); font-size: clamp(1.3rem, 4vw, 1.8rem); margin: 0 0 0.6rem; }
.disc-form select, .disc-form input, .disc-form textarea { width: 100%; }
.home-disc { margin: 0 0 1.2rem; padding: 0.9rem 0 0.4rem; }
.home-disc h2 { padding: 0 1.2rem; margin: 0 0 0.3rem; }
.home-disc .acct-more, .home-disc > .notice-small { padding: 0 1.2rem 0.5rem; }
.word-discuss { margin-top: 1.4rem; background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 0.9rem 0 0.4rem; flex: none; }
.word-discuss h2 { font-family: var(--serif); font-size: 1.1rem; margin: 0 1.2rem 0.3rem; }
.word-discuss > .notice-small, .word-discuss .acct-more { margin-left: 1.2rem; margin-right: 1.2rem; }
/* Account page (8 Oct, Sean: "ugly … not organized … on desktop"): a profile card across the top, then
   two columns on desktop (what you did | plan, phone, leave); one column on phones in the same order. */
.acct { display: grid; gap: 1rem; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 52rem) {
  .acct { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .acct-profile { grid-column: 1 / -1; }
}
.acct-main, .acct-side { display: grid; gap: 1rem; min-width: 0; }
.acct-card { background: var(--surface); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 1rem 1.2rem 1.1rem; min-width: 0; }
.acct-card h2 { font-family: var(--serif); font-size: 1.15rem; margin: 0 0 0.6rem; }
.acct-card.is-warn { border-color: var(--warn); background: var(--warn-bg); }
.acct-profile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; }
.acct-who { display: flex; align-items: center; gap: 0.9rem; min-width: 0; }
.acct-who > div { min-width: 0; }
.acct-avatar { flex: none; width: 3.2rem; height: 3.2rem; border-radius: 50%; display: inline-flex; align-items: center;
  justify-content: center; background: var(--honey); font-weight: 800; font-size: 1.4rem; }
.acct-handle { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 700; overflow-wrap: anywhere; }
.acct-sub { margin: 0.15rem 0 0; color: var(--ink-soft); font-size: 0.9rem; overflow-wrap: anywhere; }
.acct-plan-pill { display: inline-block; background: var(--honey-soft); border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 0 0.55rem; font-weight: 700; font-size: 0.78rem; color: var(--ink); margin-right: 0.4rem; }
.acct-ok { color: var(--good); font-weight: 600; }
.acct-warn { color: var(--warn); font-weight: 600; }
.acct-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 1.2rem; font-size: 0.92rem; }
.acct-actions form { margin: 0; }
.acct-email { flex: 1 0 100%; border-top: 1px solid var(--line); padding-top: 0.8rem; }
.acct-inline { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.5rem; }
.acct-inline input { flex: 1 1 14rem; min-width: 0; }
.acct-inline button { margin-top: 0; }
.acct-newcomer { background: var(--honey-soft); }
.acct-newcomer p { margin: 0; }
.acct-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.6rem; }
.acct-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-small); padding: 0.7rem 0.6rem; text-align: center; }
.acct-stat strong { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1.1; }
.acct-stat span { font-size: 0.8rem; color: var(--ink-soft); }
.acct-blurb { margin: -0.3rem 0 0.8rem; }
.acct-meter-label { margin: 0.6rem 0 0.3rem; font-size: 0.88rem; color: var(--ink-soft); display: flex; justify-content: space-between; gap: 0.6rem; }
.acct-meter-label b { color: var(--ink); white-space: nowrap; }
.acct-meter { height: 0.6rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.acct-meter span { display: block; height: 100%; background: var(--honey); }
.acct-more { margin: 0.7rem 0 0; font-size: 0.9rem; }
.acct-side .leave { margin-top: 0; padding-top: 1rem; border-top: 3px solid var(--ink); }
.acct-actions button.link { padding: 0; margin: 0; font: inherit; font-size: 0.92rem; line-height: inherit; }
main.account .page-intro { max-width: 40rem; }
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr));
  gap: 1.2rem;
  align-items: start;
}
.account-grid .panel { max-width: none; margin: 0; }

.account-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--line);
}
.account-row:first-of-type { border-top: 0; padding-top: 0; }
.account-row:last-of-type { padding-bottom: 0; }
.account-row dt {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.account-row dd { margin: 0; font-weight: 600; }
.account-row dd small { font-weight: 400; color: var(--ink-faint); }
/* ── plans ────────────────────────────────────────────────────────── */
main.plans-page { max-width: 62rem; }   /* intro, cards and panels centre as one column */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  max-width: 62rem;
  align-items: start;
}
@media (max-width: 52rem) { .plan-grid { grid-template-columns: 1fr; } }

.plan-card {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  box-shadow: 0 4px 0 var(--ink);
}
.plan-card.is-current { background: var(--honey-soft); }
.plan-flag {
  position: absolute;
  top: -0.7rem; left: 1.2rem;
  background: var(--honey-deep);
  color: var(--paper);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.plan-card h2 { margin: 0 0 0.15rem; }
.plan-price { margin: 0 0 0.6rem; font-weight: 700; color: var(--honey-deep); }
.plan-blurb { margin: 0 0 0.9rem; font-size: 0.9rem; color: var(--ink-soft); }
.plan-points { margin: 0; padding-left: 1.1rem; font-size: 0.88rem; }
.plan-points li { margin: 0.35rem 0; }
.plan-points small { color: var(--ink-faint); }
.plan-no { color: var(--ink-faint); }
.plan-foot { margin-top: 1.4rem; max-width: none; }
.plan-foot .notice-small { color: var(--ink); font-size: 0.92rem; }
.tier-note { margin-top: 0.8rem; }
.contribute-off { opacity: 0.7; }

.pair-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-align: center;
  margin: 0.9rem 0;
  color: var(--ink);
  background: var(--paper);
  border: 1px dashed var(--line-strong, var(--line));
  border-radius: var(--radius);
  padding: 0.7rem 0.4rem;
}

/* ── badges + people ─────────────────────────────────────────────── */
.badge {
  display: inline-block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  border: 1.5px solid var(--ink);
  vertical-align: middle;
  white-space: nowrap;
}
.badge-honey { background: var(--honey); color: var(--ink); }
.badge-ink   { background: var(--ink); color: var(--paper); }
.badge-paper { background: var(--paper); color: var(--ink-soft); border-color: var(--line-strong, var(--line)); }
.badge-warn  { background: #f4d7d3; color: #7a1f1f; border-color: #7a1f1f; }
table.people { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
table.people th, table.people td { padding: 0.5rem 0.5rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.people th { font-size: 0.68rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-faint); }
table.people .num { text-align: right; font-variant-numeric: tabular-nums; }
table.people .rank { color: var(--ink-faint); width: 2rem; }
table.people .good { color: #2f7d4f; }
table.people .bad { color: #b23b3b; }
table.people .credit { color: var(--honey-deep); font-weight: 600; }
table.people .me-row { background: #fbf3dc; }
.comment-helpful { margin: 0.2rem 0 0.3rem; font-size: 0.82rem; color: var(--ink-faint); display: flex; align-items: center; gap: 0.35rem; }
.comment-helpful .net { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; }
.comment-helpful button.link { padding: 0 0.25rem; font-size: 0.9rem; color: var(--ink-faint); }
.comment-helpful button.link.is-on { color: var(--honey-deep); }
.badge-key dt { margin-top: 0.7rem; }
.badge-key dd { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--ink-soft); }

.quiet-actions {
  margin: 1.6rem 0 0;
  text-align: center;
  font-size: 0.85rem;
}
.quiet-actions button.link { color: var(--ink-faint); }

/* ── the weekly round ─────────────────────────────────────────────── */
.round-band {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  max-width: 72rem;
  margin: 0 auto 1.4rem;
}
.round-col {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.5rem;
}
.round-title { font-family: var(--serif); font-size: 1.5rem; margin: 0; }
.round-sub { margin: 0.2rem 0 0.9rem; font-size: 0.86rem; color: var(--ink-soft); }
.round-list { list-style: none; margin: 0; padding: 0; }
.round-list li + li { border-top: 1px solid var(--line); }
.round-list a {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0 0.7rem;
  padding: 0.6rem 0.2rem;
  text-decoration: none;
  color: var(--ink);
}
.round-list a:hover { background: var(--honey-soft); }
.round-word { font-family: var(--serif); font-weight: 700; font-size: 1.15rem; }
.round-gloss { color: var(--ink-soft); font-size: 0.88rem; align-self: baseline; }
.round-meta { grid-column: 1 / -1; font-size: 0.76rem; color: var(--ink-faint); }
.round-empty { padding: 0.6rem 0.2rem; color: var(--ink-faint); font-size: 0.88rem; }
@media (max-width: 52rem) { .round-band { grid-template-columns: 1fr; } }

/* ── the contribute fork (words with no pictures yet) ─────────────── */
.contribute-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr));
  gap: 1.4rem;
  max-width: 62rem;
  margin: 0 auto 1.4rem;
}
.contribute-col {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem 1.5rem;
}
.contribute-col form { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.5rem; }
.contribute-col label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); }
.contribute-col input {
  font: inherit;
  color: var(--ink);
  background: var(--surface);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.45rem 0.8rem;
}
.contribute-col button { align-self: flex-start; }
/* guest images (30 Oct): a visitor's own image beside "keep it" */
.guest-made { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(14rem, 100%), 1fr)); gap: 1rem;
  margin-bottom: 1.2rem; }
.guest-made img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border: 2.5px solid var(--ink);
  border-radius: var(--radius); }
.guest-make .stack { display: flex; flex-direction: column; gap: 0.7rem; margin-top: 0.5rem; }

.prompt-peek summary {
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.prompt-peek summary::-webkit-details-marker { display: none; }
.info-i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.05rem;
  height: 1.05rem;
  border: 1.5px solid var(--ink-soft);
  border-radius: 50%;
  font-family: var(--serif);
  font-style: italic;
  font-size: 0.72rem;
  flex: none;
}
.prompt-text {
  margin: 0.5rem 0 0.3rem;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.55;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
}
.kw-slot {
  background: var(--honey);
  color: var(--ink);
  border-radius: 4px;
  padding: 0 0.25rem;
  font-weight: 700;
}
.swatch {
  display: inline-block;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 3px;
  border: 1px solid var(--ink-soft);
  vertical-align: -0.08rem;
}

/* ── the podium (5+ candidates) ───────────────────────────────────── */
.podium {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.9rem;
  max-width: 58rem;
  margin: 0 auto 0.9rem;
}
.podium-step {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 2.5px solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
  overflow: hidden;
  width: 30%;
}
.podium-step img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: var(--paper); display: block; }  /* never crop (7 Oct) */
.podium-step.place-1 { width: 36%; order: 2; }
.podium-step.place-2 { order: 1; }
.podium-step.place-3 { order: 3; }
.podium-step.active { outline: 3px solid var(--honey); outline-offset: 2px; }
.podium-rank {
  font-family: var(--serif);
  font-weight: 800;
  font-size: 1rem;
  padding: 0.3rem 0.7rem 0;
}
.place-1 .podium-rank { color: var(--honey-deep); font-size: 1.15rem; }
.podium-info {
  padding: 0 0.7rem 0.5rem;
  font-size: 0.76rem;
  color: var(--ink-soft);
}
.podium-rest { justify-content: center; }
@media (max-width: 40rem) { .podium { gap: 0.5rem; } .podium-rank { font-size: 0.85rem; } }

.flash {
  max-width: var(--prose);
  margin: 14px auto 0;
  padding: 10px 16px;
  font-weight: 600;
  border: 2px solid var(--ink);
  border-radius: var(--radius-small);
  box-shadow: var(--shadow);
}
.flash-warn { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.flash-good { background: var(--good-bg); color: var(--good); }

/* ── empty states: the app's wordless placeholder, not an emoji ──────── */

.empty-state {
  margin: 3rem auto;
  max-width: 26rem;
  text-align: center;
}
.empty-state .glyph {
  width: 108px;
  height: 108px;
  margin: 0 auto 1.1rem;
  border-radius: var(--radius);
  background-color: var(--honey-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' fill='none' stroke='%238a5f14' stroke-opacity='0.45' stroke-width='1.6'%3E%3Ccircle cx='50' cy='50' r='9'/%3E%3Ccircle cx='50' cy='50' r='18'/%3E%3Ccircle cx='50' cy='50' r='27'/%3E%3Crect x='25' y='25' width='50' height='50'/%3E%3Cpath d='M25 25 L75 75 M75 25 L25 75'/%3E%3C/svg%3E");
  background-size: 74px 74px;
  background-position: center;
  background-repeat: no-repeat;
  font-size: 0;                /* hides any legacy emoji content */
}
.empty-state .example-es {
  font-family: var(--serif);
  font-size: 1.5rem;
  font-style: italic;
  margin: 0 0 0.6rem;
}
.empty-state h2 {
  font-family: var(--serif);
  font-size: 1.35rem;
  margin: 0 0 0.4rem;
}
.empty-state p { margin: 0.3rem 0; color: var(--ink-soft); font-size: 0.95rem; }

/* ── moderation (functional, quiet) ──────────────────────────────────── */

.mod-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  padding: 0.9rem 1.1rem;
  margin: 0 0 0.7rem;
}
.mod-item img { max-width: 9rem; border-radius: 8px; display: block; margin: 0.5rem 0; }

/* ── footer ──────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.footer-inner {
  max-width: var(--page);
  margin: 0 auto;
  padding: 1.4rem 1.25rem 2rem;
  font-size: 0.85rem;
  color: var(--ink-faint);
  max-width: var(--prose);
}

/* ── small screens & preferences ─────────────────────────────────────── */

@media (max-width: 560px) {
  .header-inner { flex-wrap: wrap; gap: 0.5rem; }
  .wordmark small { display: none; }
  main { padding-top: 1.4rem; }
}

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


/* ── the altered-C skin (Sean picked direction C, 19 Aug): poster energy
   at the top - honey band, thick ink borders, hard offset shadows,
   Bricolage display type - while the word lists inside stay calm. ── */
.site-header { background: var(--honey); border-bottom: 4px solid var(--ink); }
.site-header .wordmark { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.02em; }
.site-header .wordmark small { color: rgba(36, 29, 20, 0.65); font-weight: 600; }
.site-header nav a, .site-header nav form button { color: rgba(36, 29, 20, 0.75); }
.site-header nav a.active {
  background: var(--surface);
  border: 2.5px solid var(--ink);
  box-shadow: 2.5px 2.5px 0 var(--ink);
  color: var(--ink);
}
.site-header nav a:hover, .site-header nav form button:hover {
  background: rgba(255, 253, 246, 0.6);
  color: var(--ink);
}
.version-banner { border: 2px solid var(--ink); color: var(--ink-soft); }
.hero-copy h1 { font-family: var(--serif); font-weight: 800; font-size: clamp(1.5rem, 2.6vw, 2rem); }
button.primary, .button-link {
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 var(--ink);   /* a sticker, like the images (docs/DESIGN.md) */
  font-weight: 700;
}
button.primary:hover, .button-link:hover { text-decoration: underline; }
button.primary:active, .button-link:active { transform: translateY(3px); box-shadow: none; }
.word-search input[type="search"] {
  border: 3px solid var(--ink);
  background: var(--surface);
  font-weight: 500;
}
.word-search input[type="search"]:focus { border-color: var(--ink); box-shadow: 3px 3px 0 rgba(36, 29, 20, 0.25); }
.word-mapa { border: 4px solid var(--ink); box-shadow: 9px 9px 0 rgba(36, 29, 20, 0.9); }
.panel-title { font-weight: 800; }
.branch-row .row-head.serif { font-weight: 800; }
.row-edge { width: 6px; }
.row.selected { background: var(--honey); box-shadow: inset 0 0 0 2.5px var(--ink); }
.row.selected .row-head { color: var(--ink); }
.row-tags { border: 1.5px solid var(--line-strong); background: var(--surface); font-weight: 700; }
.row-dot { border-color: var(--ink); }
.pulse-stats .stat, .community-band .pulse-stats .stat {
  border: 2.5px solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  background: var(--surface);
  font-weight: 600;
}
.pulse-activity, .pulse-contributors { border: 3px solid var(--ink); box-shadow: 6px 6px 0 rgba(36, 29, 20, 0.9); }
.pulse-activity h2, .pulse-contributors h2 { font-weight: 800; }
.site-footer { background: var(--ink); border-top: 4px solid var(--ink); }
.site-footer .footer-inner { color: #F7EACC; }
.site-footer em { color: var(--honey); font-style: normal; font-weight: 700; }
.word-pop .pop-card { border: 4px solid var(--ink); box-shadow: 12px 12px 0 rgba(36, 29, 20, 0.9); }
.pop-head h2 { font-weight: 800; }
.pop-vote button { border: 2px solid var(--ink); box-shadow: 2.5px 2.5px 0 var(--ink); font-weight: 700; }
.pop-vote button.active { background: var(--honey); }
.pop-cand { border: 2.5px solid var(--ink); }
.pop-cand.ratified { border-color: var(--good); }
.candidate-focus, .candidate { border-width: 3px; border-color: var(--ink); }
.ratify-form {
  border: 2.5px solid var(--good);
  border-radius: 14px;
  background: var(--good-bg);
  padding: 12px 16px;
  margin: 6px 0;
}
.ratify-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.ratify-form input {
  display: block;
  width: 100%;
  font: inherit;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 7px 10px;
  margin-top: 4px;
  background: var(--surface);
}
.ratify-form button { width: 100%; }
.ratify-form .notice-small { margin: 8px 0 0; }

.submit-word, .submit-image { border: 2.5px dashed var(--ink-faint); }
.topic-card, .word-card { border: 2.5px solid var(--ink); box-shadow: 5px 5px 0 rgba(36, 29, 20, 0.9); }

/* ── People: podium, filters, cards; member page ─────────────────────── */
.member-avatar { display: inline-flex; align-items: center; justify-content: center; width: 2.6rem; height: 2.6rem;
  border-radius: 50%; background: var(--honey); color: var(--ink); font-family: var(--serif); font-weight: 700;
  font-size: 1.2rem; text-transform: uppercase; box-shadow: var(--shadow); flex: none; }
.top3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.9rem; max-width: 60rem; margin: 0 auto 1.4rem; align-items: end; }
@media (max-width: 40rem) { .top3 { grid-template-columns: 1fr; align-items: stretch; } }
.top3-card { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 1.1rem 0.9rem 0;
  color: inherit; text-decoration: none; text-align: center; position: relative; }
.top3-card.place-1 { order: 2; } .top3-card.place-2 { order: 1; } .top3-card.place-3 { order: 3; }
.top3-card .member-avatar { width: 3.6rem; height: 3.6rem; font-size: 1.6rem; border: 3px solid var(--surface); box-shadow: 0 0 0 3px var(--step, var(--honey)), var(--shadow); }
.top3-card.place-1 .member-avatar { width: 4.6rem; height: 4.6rem; font-size: 2.1rem; }
.top3-card.place-1::before { content: "\2605"; position: absolute; top: -0.2rem; left: 50%; transform: translateX(-50%);
  font-size: 1.4rem; color: #c58a12; line-height: 1; }
.top3-card.place-1 { --step: #e0a12c; }
.top3-card.place-2 { --step: #b9b9b9; }
.top3-card.place-3 { --step: #c9895a; }
.top3-card strong { font-size: 1.05rem; }
.top3-badges .badge { margin: 0.1rem; }
.top3-why { font-size: 0.85rem; color: var(--ink-soft, #5d5040); }
.top3-trust { font-size: 0.8rem; font-weight: 700; margin-bottom: 0.5rem; }
.top3-step { display: flex; align-items: flex-start; justify-content: center; width: 100%; margin-top: auto;
  border-radius: var(--radius) var(--radius) 0 0; background: var(--step, var(--honey)); color: var(--ink);
  font-family: var(--serif); font-weight: 700; font-size: 1.6rem; padding-top: 0.35rem; box-shadow: var(--shadow); }
.top3-card.place-1 .top3-step { height: 6.5rem; }
.top3-card.place-2 .top3-step { height: 4.6rem; }
.top3-card.place-3 .top3-step { height: 3.4rem; }
@media (max-width: 40rem) { .top3-card .top3-step { height: 2.4rem !important; } }
.people-filters { display: flex; flex-wrap: wrap; gap: 0.4rem; max-width: 72rem; margin: 0 auto 0.9rem; }
.people-filters .chip { border: 1px solid var(--line-strong, var(--line)); background: var(--paper); color: var(--ink);
  border-radius: 999px; padding: 0.3rem 0.8rem; font: inherit; font-size: 0.9rem; cursor: pointer; }
.people-filters .chip.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.people-filters .chip small { opacity: 0.7; margin-left: 0.25rem; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(21rem, 100%), 1fr)); gap: 0.8rem; max-width: 72rem; margin: 0 auto; }
.person-card { display: grid; grid-template-columns: auto auto 1fr; gap: 0.7rem; align-items: start; padding: 0.85rem 0.95rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
  color: inherit; text-decoration: none; }
.person-card:hover { border-color: var(--honey); }
.person-card.me { background: var(--honey-soft); }
.person-rank { font-family: var(--serif); font-weight: 700; color: var(--ink-soft, #5d5040); padding-top: 0.35rem; min-width: 1.8rem; }
.person-main { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.person-badges .badge { margin-right: 0.15rem; }
.person-stats { display: flex; flex-wrap: wrap; gap: 0.25rem 0.75rem; font-size: 0.82rem; color: var(--ink-soft, #5d5040); }
.person-stats b { color: var(--ink); font-weight: 700; }
.trust-bar { display: block; height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 0.15rem; }
.trust-bar i { display: block; height: 100%; background: var(--honey); }
.member-hero { display: grid; grid-template-columns: auto 1fr auto; gap: 1rem; align-items: center; max-width: 44rem; margin: 0 auto 1rem;
  padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
@media (max-width: 40rem) { .member-hero { grid-template-columns: auto 1fr; } .member-trust { grid-column: 1 / -1; } }
.member-hero .member-avatar { width: 4rem; height: 4rem; font-size: 1.8rem; }
.member-head h1 { margin: 0 0 0.2rem; font-size: 1.6rem; }
.member-badges { margin: 0 0 0.25rem; }
.member-trust { text-align: center; min-width: 6rem; }
.member-trust strong { display: block; font-family: var(--serif); font-size: 1.7rem; line-height: 1; }
.member-trust span { font-size: 0.8rem; color: var(--ink-soft, #5d5040); }
.member-trust .trust-bar { margin-top: 0.4rem; }
.member-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; max-width: 44rem; margin: 0 auto 1rem; }
@media (max-width: 40rem) { .member-stats { grid-template-columns: repeat(2, 1fr); } }
.stat-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.7rem 0.5rem; text-align: center; }
.stat-tile strong { display: block; font-family: var(--serif); font-size: 1.35rem; line-height: 1.1; }
.stat-tile span { font-size: 0.78rem; color: var(--ink-soft, #5d5040); }
.member-section { max-width: 44rem; margin: 0 auto 1rem; }
.member-pictures { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 40rem) { .member-pictures { grid-template-columns: repeat(2, 1fr); } }

/* ── Header: primary / secondary / account ───────────────────────────── */
.site-header nav { gap: 0; }
.site-header nav .nav-primary, .site-header nav .nav-secondary, .site-header nav .nav-account { display: flex; align-items: center; gap: 0.15rem; }
.site-header nav .nav-secondary { margin-left: 0.9rem; padding-left: 0.9rem; border-left: 1px solid rgba(36, 29, 20, 0.25); }
.site-header nav .nav-secondary a { font-size: 0.86rem; color: rgba(36, 29, 20, 0.6); }
.site-header nav .nav-account { margin-left: 1rem; }
.site-header nav .join { border: 2px solid var(--ink); border-radius: 999px; padding: 0.3rem 0.9rem; font-weight: 700; color: var(--ink); }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.3rem 0.7rem 0.3rem 0.35rem; border-radius: 999px; border: 2px solid transparent; font-weight: 700; color: var(--ink); }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu[open] summary, .account-menu summary:hover { background: var(--honey-soft); border-color: var(--ink); }
.account-menu .menu { position: absolute; right: 0; top: calc(100% + 0.5rem); min-width: 13rem; z-index: 30;
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--radius); box-shadow: var(--shadow); padding: 0.35rem; display: flex; flex-direction: column; }
.account-menu .menu a, .account-menu .menu form button { display: block; width: 100%; text-align: left; padding: 0.5rem 0.7rem; border-radius: 0.5rem;
  color: var(--ink); font: inherit; font-size: 0.95rem; background: none; border: 0; cursor: pointer; text-decoration: none; }
.account-menu .menu a:hover, .account-menu .menu form button:hover { background: var(--honey-soft); }
.account-menu .menu form { margin: 0; border-top: 1px solid var(--line); padding-top: 0.25rem; margin-top: 0.25rem; }
.account-menu .menu .menu-label { margin: 0.25rem 0 0; padding: 0.55rem 0.7rem 0.2rem; border-top: 1px solid var(--line); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); font-weight: 700; }
@media (max-width: 52rem) {
  .site-header nav .nav-secondary { margin-left: 0.4rem; padding-left: 0.4rem; }
  .site-header nav .nav-secondary a { display: none; }
}

/* Phones: the header is one non-wrapping row of wordmark + version + links +
   Join in, which overflows a narrow screen and drags the whole page sideways.
   Let it wrap onto a second line and shed the parts that do not earn the room. */
@media (max-width: 40rem) {
  html, body { overflow-x: hidden; }
  .header-inner { flex-wrap: wrap; gap: 0.3rem 0.6rem; padding: 0.55rem 1rem; }
  .version-banner { display: none; }
  .wordmark { font-size: 1.05rem; }
  .wordmark small { display: none; }
  .site-header nav { margin-left: 0; width: 100%; flex-wrap: wrap; }
  .site-header nav .nav-primary { flex-wrap: wrap; gap: 0.1rem 0.15rem; }
  .site-header nav .nav-account { margin-left: auto; }
  .site-header nav a { padding: 0.3rem 0.55rem; font-size: 0.9rem; }
}

.leave { margin-top: 2.5rem; border-top: 1px solid var(--line, #e6dcc6); padding-top: 1rem; }
.leave summary { cursor: pointer; color: var(--ink-faint); font-size: 0.95rem; }
.leave p { color: var(--ink-soft); font-size: 0.95rem; max-width: 60ch; }
.leave form { display: grid; gap: 0.6rem; max-width: 24rem; margin-top: 0.6rem; }
button.danger { background: #fff; color: #8a1f1f; border: 2px solid #8a1f1f; border-radius: 999px; padding: 0.55rem 1.2rem; font-weight: 700; cursor: pointer; }
button.danger:hover { background: #8a1f1f; color: #fff; }
.footer-links { display: block; margin-top: 0.5rem; }
.footer-app { display: block; margin-top: 0.5rem; font-weight: 600; }

/* ── moderator dashboard (/moderation/dashboard) ─────────────────────────
   One question first ("does anything need me?"), then six cards. Status
   colours are the site's own --good/--warn/--bad pairs. */
/* body is a flex column, and a flex item will not shrink below its widest table: let it. */
main.dash-page { min-width: 0; width: 100%; max-width: 72rem; }
.dash-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.6rem 1.5rem; margin: 0 0 1.4rem; }
.dash-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.6rem); line-height: 1.05; }
.dash-head p { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: 0.95rem; }
.dash-links { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.dash-links a { border: 1.5px solid var(--ink); border-radius: 999px; padding: 0.35rem 0.9rem; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.92rem; background: var(--surface); }
.dash-links a:hover { background: var(--honey-soft); }

.dash-needs { border-radius: var(--radius); padding: 1.1rem 1.4rem 1.2rem; margin: 0 0 1.4rem; border: 2px solid; }
.dash-needs h2 { margin: 0 0 0.5rem; font-family: var(--serif); font-size: 1.45rem; }
.dash-needs p { margin: 0; font-size: 1.05rem; }
.dash-needs.is-good { background: var(--good-bg); border-color: var(--good); }
.dash-needs.is-good h2 { color: var(--good); }
.dash-needs.is-warn { background: var(--warn-bg); border-color: var(--warn); }
.dash-needs.is-bad { background: var(--bad-bg); border-color: var(--bad); }
.dash-needs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.dash-needs li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 0.2rem 1rem; font-size: 1.05rem; padding: 0.45rem 0.8rem; background: var(--surface); border: 2px solid var(--warn); border-radius: var(--radius-small); }
.dash-needs li.lvl-bad { border-color: var(--bad); }
.dash-needs li a { font-weight: 700; color: var(--ink); white-space: nowrap; }

.dash-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(20rem, 100%), 1fr)); gap: 1rem; }
.dash-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.35rem 1.3rem; box-shadow: var(--shadow); min-width: 0; }
.dash-card h2 { margin: 0 0 0.9rem; font-family: var(--serif); font-size: 1.2rem; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.dash-wide { margin-top: 1rem; }
.dash-big { display: grid; grid-template-columns: repeat(auto-fit, minmax(7rem, 1fr)); gap: 0.8rem; margin-bottom: 0.9rem; }
.dash-big strong { display: block; font-family: var(--serif); font-size: 2.3rem; line-height: 1; font-weight: 800; }
.dash-big span { display: block; margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.95rem; }
.dash-list { margin: 0; border-top: 1px solid var(--line); }
.dash-list div { display: flex; justify-content: space-between; gap: 1rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line); font-size: 0.97rem; }
.dash-list dt { color: var(--ink-soft); }
.dash-list dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.dash-note { margin: 0.8rem 0 0; color: var(--ink-soft); font-size: 0.92rem; }
.dash-empty { margin: 0; color: var(--good); font-weight: 600; }
.dash-pill { font-family: var(--sans); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 999px; padding: 0.12rem 0.6rem; }
.dash-pill.good { background: var(--good-bg); color: var(--good); }
.dash-pill.bad { background: var(--bad-bg); color: var(--bad); }
.dash-meter { height: 0.55rem; background: var(--paper); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; margin: -0.2rem 0 0.9rem; }
.dash-meter i { display: block; height: 100%; background: var(--teal); border-radius: 999px; min-width: 2px; }
.dash-status { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.1rem; }
.dash-status li { display: grid; grid-template-columns: 0.8rem 1fr auto; column-gap: 0.6rem; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px solid var(--line); }
.dash-status li:last-child { border-bottom: 0; }
.dash-status .dot { width: 0.65rem; height: 0.65rem; border-radius: 50%; align-self: center; }
.dash-status small { grid-column: 2 / -1; color: var(--ink-soft); font-size: 0.85rem; overflow-wrap: anywhere; }
.dash-status .when, .dash-table .when { color: var(--ink-soft); font-size: 0.9rem; white-space: nowrap; }
.dot.good { background: var(--good); } .dot.warn { background: var(--honey); } .dot.bad { background: #b23b3b; }
.dash-cta { margin-left: auto; font-family: var(--sans); font-size: 0.92rem; font-weight: 700; color: var(--ink); }
.dash-scroll { overflow-x: auto; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 0.97rem; }
.dash-table th { text-align: left; font-size: 0.78rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); padding: 0 0.7rem 0.5rem 0; }
.dash-table td { padding: 0.65rem 0.7rem 0.65rem 0; border-top: 1px solid var(--line); vertical-align: top; }
.dash-table td small { display: block; color: var(--ink-soft); font-size: 0.85rem; }
.dash-card .good, .dash-list .good { color: var(--good); }
.dash-card .warn, .dash-list .warn { color: var(--warn); }
.dash-card .bad, .dash-list .bad { color: #b23b3b; }

/* ── reports page (/moderation): the dashboard's frame, one wide card per report ── */
.mod-jump { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.6rem; }
.mod-jump a { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0.4rem 1rem; color: var(--ink-soft); text-decoration: none; }
.mod-jump a b { color: var(--ink); font-size: 1.05rem; margin-right: 0.15rem; }
.mod-jump a:hover { border-color: var(--ink); }
.mod-section { margin: 0 0 2.2rem; scroll-margin-top: 1rem; }
.mod-section > h2 { font-family: var(--serif); font-size: 1.35rem; margin: 0 0 0.8rem; }
.mod-card { display: grid; grid-template-columns: 13rem 1fr; gap: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; box-shadow: var(--shadow); margin: 0 0 1rem; }
.mod-card.no-image { grid-template-columns: 1fr; }
.mod-card > img { width: 100%; aspect-ratio: 1; object-fit: contain; background: var(--surface); border-radius: var(--radius-small); border: 1px solid var(--line); }
.mod-body { display: grid; gap: 0.8rem; align-content: start; min-width: 0; }
.mod-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.mod-title h3 { margin: 0; font-family: var(--serif); font-size: 1.45rem; line-height: 1.15; margin-right: 0.3rem; }
.mod-title h3 a { color: var(--ink); text-decoration: none; }
.mod-title h3 a:hover { text-decoration: underline; }
.mod-title h3 span { color: var(--ink-soft); font-weight: 500; font-size: 1.1rem; }
.mod-quote { margin: 0; padding: 0.7rem 1rem; background: var(--warn-bg); border: 2px solid var(--warn); border-radius: var(--radius-small); font-size: 1.08rem; }
.mod-quote footer { margin-top: 0.3rem; font-size: 0.88rem; color: var(--ink-soft); }
.mod-comment { margin: 0; padding: 0.7rem 1rem; border: 1px dashed var(--line-strong); border-radius: var(--radius-small); }
.mod-form { display: grid; gap: 0.7rem; }
.mod-form label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; }
.mod-form label em { font-style: normal; font-weight: 400; color: var(--ink-faint); }
.mod-form input { width: 100%; }
.mod-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.mod-actions button { width: auto; }
button.mod-danger { background: var(--surface); color: #b23b3b; border: 2px solid #b23b3b; border-radius: 999px; padding: 0.7rem 1.5rem; min-height: 2.75rem; font-weight: 700; cursor: pointer; }
button.mod-danger:hover { background: var(--bad-bg); }
.mod-actions button.link { margin-left: auto; font-size: 0.9rem; }
.mod-empty { margin: 0; padding: 0.9rem 1.2rem; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); color: var(--ink-soft); }
.mod-inline { display: flex; flex-wrap: wrap; align-items: end; gap: 0.8rem; }
.mod-inline label { display: grid; gap: 0.3rem; font-weight: 600; font-size: 0.95rem; flex: 1 1 12rem; }
.mod-inline button { flex: 0 0 auto; width: auto; }
.dash-pill.warn { background: var(--warn-bg); color: var(--warn); }
.dash-pill.neutral { background: var(--paper); color: var(--ink-soft); }
@media (max-width: 40rem) {
  .mod-card { grid-template-columns: 1fr; }
  .mod-card > img { max-width: 14rem; }
  .mod-actions button.link { margin-left: 0; }
}
/* section titles with a tap-to-open "what is this?" (a <details>, so it works on touch and without JS) */
.mod-head { position: relative; display: flex; align-items: center; gap: 0.55rem; margin: 0 0 0.8rem; }
.mod-head h2 { font-family: var(--serif); font-size: 1.35rem; margin: 0; }
.mod-info summary { list-style: none; cursor: pointer; display: inline-flex; padding: 0.3rem; margin: -0.3rem; border-radius: 50%; }
.mod-info summary::-webkit-details-marker { display: none; }
.mod-info summary .info-i { width: 1.35rem; height: 1.35rem; font-size: 0.85rem; }
.mod-info summary:hover .info-i, .mod-info[open] summary .info-i { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.mod-info-panel { position: absolute; z-index: 5; left: 0; top: calc(100% + 0.4rem); width: min(36rem, 100%); background: var(--surface); border: 1.5px solid var(--ink); border-radius: var(--radius-small); box-shadow: var(--shadow); padding: 0.9rem 1.1rem; font-size: 0.97rem; line-height: 1.55; }
.mod-info-panel p { margin: 0 0 0.6rem; }
.mod-info-panel p:last-child, .mod-info-panel ul:last-child { margin-bottom: 0; }
.mod-info-panel ul { margin: 0 0 0.6rem; padding-left: 1.2rem; }
.mod-info-panel li { margin: 0.25rem 0; }
/* dashboard: clickable problems, scan history, problem detail */
.dash-status li.is-link a { color: var(--ink); text-decoration: none; }
.dash-status li.is-link a:hover { text-decoration: underline; }
.dash-filter { margin-left: auto; display: inline-flex; gap: 0.3rem; font-family: var(--sans); font-size: 0.88rem; }
.dash-filter a { border: 1px solid var(--line-strong); border-radius: 999px; padding: 0.2rem 0.75rem; color: var(--ink-soft); text-decoration: none; font-weight: 600; }
.dash-filter a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.dash-scans td.scan-thumb { width: 3.4rem; }
.dash-scans td.scan-thumb img { width: 3rem; height: 3rem; object-fit: contain; background: var(--surface); border-radius: 0.5rem; border: 1px solid var(--line); display: block; }
.dash-table a { color: var(--ink); }
.dash-table small.bad { color: #b23b3b; }
.prob-message { margin: 0 0 0.9rem; font-family: var(--mono); font-size: 0.92rem; overflow-wrap: anywhere; background: var(--paper); border-radius: var(--radius-small); padding: 0.7rem 0.9rem; }
.prob-trace { margin-top: 1rem; }
.prob-trace summary { cursor: pointer; font-weight: 600; color: var(--ink-soft); }
.prob-trace pre { margin: 0.6rem 0 0; max-height: 28rem; overflow: auto; background: var(--ink); color: var(--paper); border-radius: var(--radius-small); padding: 0.9rem; font-size: 0.8rem; line-height: 1.45; white-space: pre; }
.dash-list dd code { font-size: 0.88rem; overflow-wrap: anywhere; }
.mod-inline label em { font-style: normal; font-weight: 400; color: var(--ink-faint); }
/* a problem is one clickable row, and says so */
.dash-status li.prob-item { display: block; padding: 0; }
.prob-row { display: grid; grid-template-columns: 0.8rem 1fr auto; column-gap: 0.6rem; align-items: baseline; padding: 0.55rem 0.5rem; margin: 0 -0.5rem; border-radius: var(--radius-small); color: var(--ink); text-decoration: none; }
.prob-row:hover, .prob-row:focus-visible { background: var(--honey-soft); }
.prob-row .dot { align-self: center; }
.prob-row small { grid-column: 2 / -1; color: var(--ink-soft); font-size: 0.85rem; overflow-wrap: anywhere; }
.prob-row .prob-open { grid-column: 2 / -1; font-size: 0.85rem; font-weight: 700; color: var(--honey-deep); text-decoration: underline; text-underline-offset: 2px; margin-top: 0.15rem; }
/* word page: a moderator sees each image's scan record (Chas, 30 Sep) */
.scan-record { margin: 0.4rem 0 0.2rem; font-size: 0.88rem; color: var(--ink-soft); }
.scan-record summary { cursor: pointer; }
.scan-record .scan-ok { color: var(--good); }
.scan-record .scan-bad { color: #b23b3b; }
.scan-scores { margin: 0.4rem 0 0; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.scan-scores td { padding: 0.15rem 1.2rem 0.15rem 0; border-bottom: 1px solid var(--line); }

/* ── topics (/topics, /topics/{slug}) — rebuilt 1 Oct in the Community page's language:
   white cards on thin borders, the gender colours, real images. ── */
.topics-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 0.8rem 1.5rem; margin: 0 0 1.6rem; }
.topics-head h1 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 4vw, 2.7rem); line-height: 1.05; }
.topics-head p { margin: 0.45rem 0 0; color: var(--ink-soft); max-width: 44rem; }
.topics-head .crumb { margin: 0 0 0.5rem; }
.topics-gloss { font-family: var(--sans); font-weight: 400; font-size: 0.5em; color: var(--ink-soft); margin-left: 0.4rem; }
.topics-section { font-family: var(--serif); font-size: 1.3rem; margin: 2rem 0 0.8rem; display: flex; align-items: baseline; gap: 0.5rem; }
.topics-section small { font-family: var(--sans); font-size: 0.85rem; font-weight: 600; color: var(--ink-faint); }

.topic-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(15rem, 100%), 1fr)); gap: 1rem; }
.tcard { display: flex; flex-direction: column; height: 100%; background: var(--surface); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink); text-decoration: none; transition: border-color 120ms ease, box-shadow 120ms ease; }
.tcard:hover, .tcard:focus-visible { border-color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.tcard-band { display: flex; align-items: center; gap: 0.45rem; height: 5.2rem; padding: 0 1rem; }
.tcard-band.g-f { background: var(--coral); }
.tcard-band.g-m { background: var(--teal); }
.tcard-band.g-x { background: #D8BC8A; }
.tcard-band img { width: 3.6rem; height: 3.6rem; object-fit: contain; background: var(--surface); border-radius: 0.6rem; border: 2px solid var(--ink); }
.tcard-initial { font-family: var(--serif); font-weight: 800; font-size: 2.6rem; line-height: 1; color: rgba(255, 253, 246, 0.85); }
.tcard-body { display: grid; gap: 0.2rem; padding: 0.85rem 1rem 1rem; }
.tcard-name { font-family: var(--serif); font-weight: 700; font-size: 1.35rem; line-height: 1.15; }
.tcard-gloss { color: var(--ink-soft); font-size: 0.95rem; }
.tcard-stats { display: flex; flex-wrap: wrap; gap: 0.3rem 0.9rem; margin-top: 0.45rem; font-size: 0.85rem; color: var(--ink-soft); }
.tcard-stats b { color: var(--ink); font-weight: 700; }
.tcard-stats .has-images { color: var(--good); }
.tcard-stats .has-images b { color: var(--good); }

.topic-words { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(19rem, 100%), 1fr)); gap: 0.45rem 0.8rem; }
.topic-words .row { border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); text-decoration: none; min-height: 3.4rem; }
.topic-words .row:hover { border-color: var(--ink); background: var(--honey-soft); }
.tword-thumb { flex: none; width: 2.4rem; height: 2.4rem; object-fit: contain; background: var(--surface); border-radius: 0.5rem; border: 1px solid var(--line); }
.tword-needs { flex: none; font-size: 0.7rem; color: var(--ink-faint); border: 1px dashed var(--line-strong); border-radius: 999px; padding: 0.12rem 0.5rem; white-space: nowrap; }
main.topics-page { width: 100%; min-width: 0; }
.tcard-initial { text-transform: uppercase; }

/* ── 14 Oct 2026: the community site on the same rules as the front door (DESIGN.md V13–V24) ── */
/* Archivo Black has one weight; a synthesised bold on top of it looks smeared. */
h1, h2, h3, .wordmark, .panel-title, .section-title, .topic-name, .word-card .headword, .round-title,
.round-word, .tcard-name, .acct-handle, .acct-stat strong, .dash-big strong, .podium-rank, .top3-step,
.person-rank, .member-trust strong, .stat-tile strong, .candidate-meta .keyword, .info-i, .row-head,
.pop-head h2, .fresh-strip h2, .lens-group, .word-hero h1, .page-intro h1, .hero-copy h1, .topics-head h1,
.topics-section, .disc-hero h1, .disc-head h1, .disc-form h1, .dash-head h1, .mod-head h2, .scene-row .serif,
.kid-row .serif, .empty-state h2, .member-avatar { font-weight: 400; }
.hero-copy h1, .page-intro h1, .word-hero h1, .topics-head h1, .disc-hero h1, .dash-head h1 { letter-spacing: 0; }
/* Buttons and links: squared stickers, not pills (V16). */
.site-header nav a, .site-header nav form button, .site-header nav .join, .account-menu summary,
button.primary, button.secondary, button.danger, button.mod-danger, .button-link, .filter-pill,
.lens-picker a, .lang-picker a, .disc-cats a, .dash-links a, .dash-filter a, .mod-jump a,
.people-filters .chip, .pop-vote button, .vote-row button, .word-search input[type="search"] { border-radius: 8px; }
/* Chips and badges: small square corners; counters stay round. */
.badge, .tag, .topic-chip, .row-tags, .pop-pill, .ratified-chip, .disc-tag, .acct-plan-pill, .plan-flag,
.dash-pill, .version-banner, .tally, .thumb-n, .tword-needs, .disc-op { border-radius: 5px; }
.acct-meter, .trust-bar, .dash-meter, .dash-meter i { border-radius: 3px; }
/* Initials: a square tile, not the circle avatar every generated site has. */
.handle-chip, .member-avatar, .disc-av, .tcard-initial { border-radius: 6px; }
/* Home page (pass 2) */
.hero-one { font-size: 1.12rem; color: var(--ink); max-width: 34rem; margin: 0.6rem 0 0; }
.latest-list { list-style: none; padding: 0; margin: 0.6rem 0 0; display: grid; gap: 0.5rem; }
.latest-list li { padding: 0.35rem 0; border-bottom: 1px solid var(--line); }
.latest-list li:last-child { border-bottom: 0; }
/* People (pass 3): words for visitors, numbers for moderators. */
.person-card .person-words { color: var(--ink-soft); font-size: 0.95rem; }
/* Every page heading in the heading face, including the ones no component rule names (14 Oct). */
h1, h2 { font-family: var(--serif); }

/* Guest voting (27 Oct, app/guest.py): the thanks line, the 1-2-3 dots, and the "Keep your votes" sheet. */
.guest-thanks { margin: 0.7rem 0 0.5rem; padding: 0.6rem 0.8rem; background: var(--good-bg);
  border: 2px solid var(--good); border-radius: var(--radius-small); color: var(--good); }
.guest-thanks p { margin: 0; }
.guest-thanks-head { font-weight: 700; }
.guest-thanks .guest-app { margin-top: 0.3rem; font-size: 0.9rem; }
.guest-progress { display: flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600;
  color: var(--good); margin: 0.3rem 0 0; }
.guest-progress .dot { width: 0.75rem; height: 0.75rem; border-radius: 50%; border: 2px solid var(--good);
  box-sizing: border-box; display: inline-block; }
.guest-progress .dot.on { background: var(--good); }
.guest-next { margin-top: 0.3rem; }
.guest-sheet-backdrop { position: fixed; inset: 0; background: rgba(36, 29, 20, 0.55); z-index: 40; }
.guest-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-height: 92vh; overflow-y: auto;
  box-sizing: border-box; background: var(--surface); border-top: 3px solid var(--ink);
  border-radius: 18px 18px 0 0; padding: 1.3rem 1.25rem 1.6rem; display: flex; flex-direction: column; gap: 0.8rem; }
.guest-sheet h2 { margin: 0; font-size: 1.6rem; line-height: 1.15; }
.guest-sheet > p { margin: 0; }
.guest-later { align-self: center; display: inline-flex; align-items: center; min-height: 44px; color: var(--ink-soft); }
@media (min-width: 46.01rem) {
  .guest-sheet { left: 50%; right: auto; bottom: auto; top: 50%; transform: translate(-50%, -50%);
    width: min(30rem, calc(100vw - 2rem)); border: 3px solid var(--ink); border-radius: var(--radius);
    box-shadow: 0 6px 0 var(--ink); }
}
