/* ============================================================
   THE LOOKOUT REGISTER — design system
   "survey field register": archival, editorial, restrained.
   ============================================================ */

:root {
  /* paper / ink */
  --paper:        #f1ead9;
  --paper-light:  #f6f1e6;
  --card:         #fbf8f0;
  --ink:          #22251d;
  --ink-soft:     #4a4d40;
  --muted:        #8d8775;

  /* forest (primary) + ember (sole accent) */
  --forest:       #33503c;
  --forest-mid:   #456049;
  --ember:        #a8481f;
  --ember-soft:   #c2683f;

  /* hairlines */
  --hair:         #ddd3bf;
  --hair-strong:  #cabd9f;

  /* status */
  --st-standing:    #33503c;
  --st-removed:     #a8481f;
  --st-moved:       #b9842a;
  --st-historical:  #9c8a64;

  /* type — site-wide Times New Roman (both display and "mono" roles) */
  --serif: "Times New Roman", Times, serif;
  --mono:  "Times New Roman", Times, serif;

  /* shape */
  --r-sm: 2px;
  --r-md: 4px;
  --r-lg: 6px;

  /* one reserved soft lift (modals only) */
  --lift: 0 24px 60px -24px rgba(34, 37, 29, 0.38), 0 2px 8px -2px rgba(34, 37, 29, 0.12);
  --lift-sm: 0 8px 24px -12px rgba(34, 37, 29, 0.25);

  /* texture intensity (tweakable) */
  --contour-opacity: 0.40;

  /* layout */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-optical-sizing: auto;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: url("assets/contour.svg") center / 860px repeat;
  opacity: calc(var(--contour-opacity) * 0.12);
  pointer-events: none;
  z-index: 0;
}

::selection { background: rgba(168, 72, 31, 0.18); }

/* faint topographic contour — near-subliminal */
.contour-bg {
  position: relative;
}
.contour-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("assets/contour.svg");
  background-size: 720px;
  opacity: var(--contour-opacity);
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}
.contour-bg > * { position: relative; z-index: 1; }

/* ---------- typographic primitives ---------- */
.kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.serif-display {
  font-family: var(--serif);
  font-weight: 350;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

/* ---------- buttons ---------- */
.btn {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 12px 20px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .08s ease;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1;
}
.btn:active { transform: translateY(1px); }
.btn-forest {
  background: var(--ember);
  color: #fbf3ec;
  border-color: var(--ember);
}
.btn-forest:hover { background: var(--ember-soft); border-color: var(--ember-soft); }
.btn-ember {
  background: var(--ember);
  color: #fbf3ec;
  border-color: var(--ember);
}
.btn-ember:hover { background: var(--ember-soft); border-color: var(--ember-soft); }
/* Donate — restrained ember accent (clear call to action, not a loud fill): ember
   text + outline over a faint ember wash, deepening on hover. */
.btn-donate {
  background: color-mix(in oklab, var(--ember) 7%, transparent);
  color: var(--ember);
  border-color: color-mix(in oklab, var(--ember) 55%, var(--hair));
}
.btn-donate:hover { background: color-mix(in oklab, var(--ember) 14%, transparent); border-color: var(--ember); }
/* Focused choice popover, anchored under the Donate button in the modal toolbar
   (next to the check-in). Two options, minimal chrome. */
.donate-wrap { position: relative; display: flex; align-items: center; flex: none; }
.donate-choice {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 6;
  display: flex; flex-direction: column; gap: 8px;
  width: 244px; padding: 14px;
  border: 1px solid color-mix(in oklab, var(--ember) 30%, var(--hair));
  border-radius: 10px;
  background: color-mix(in oklab, var(--ember) 4%, #fff);
  box-shadow: 0 12px 30px rgba(35, 33, 28, 0.16);
}
/* Closed by default — the display:flex above otherwise overrides the [hidden] attribute
   (author class beats the UA rule), which would leave the panel permanently open. */
.donate-choice[hidden] { display: none; }
.donate-choice-h { display: block; margin: 0 0 2px; color: var(--ember) !important; letter-spacing: 0.06em; }
.donate-opt {
  font-family: var(--serif); font-size: 14.5px; text-align: left;
  padding: 11px 14px; cursor: pointer;
  color: var(--ink); background: var(--card, #fff);
  border: 1px solid color-mix(in oklab, var(--ember) 35%, var(--hair));
  border-radius: 8px; transition: border-color 0.14s, background 0.14s, color 0.14s;
}
.donate-opt:hover { border-color: var(--ember); background: color-mix(in oklab, var(--ember) 8%, transparent); color: var(--ember); }
.donate-opt strong { font-weight: 600; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--hair-strong);
}
.btn-ghost:hover { border-color: var(--ink-soft); background: rgba(34,37,29,0.03); }
.btn-sm { padding: 9px 14px; font-size: 11px; }
.btn-lg { padding: 15px 26px; font-size: 13px; }

.linkish {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 2px;
  cursor: pointer;
  transition: color .15s, border-color .15s;
}
.linkish:hover { color: var(--ember); border-color: var(--ember); }

/* ---------- status tag ---------- */
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--ink-soft);
}
.status-tag .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--st);
  flex: none;
}
.status-tag.solid {
  background: color-mix(in oklab, var(--st) 12%, transparent);
  color: color-mix(in oklab, var(--st) 78%, #2a2a22);
  padding: 5px 10px 5px 9px;
  border-radius: var(--r-sm);
}

/* ---------- completeness dots ---------- */
.richness {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.richness .rdot {
  width: 5px; height: 5px;
  border-radius: 50%;
  border: 1px solid var(--hair-strong);
  background: transparent;
}
.richness .rdot.on { background: var(--muted); border-color: var(--muted); }
.richness.admin .rdot.on { background: var(--forest); border-color: var(--forest); }

/* ---------- badges ---------- */
/* Modal badge icons live in the toolbar (see .rec-badge-icons / .badge-ico below). */
.tcard-badge { margin-left: auto; font-size: 13px; line-height: 1; }

/* ---------- form fields ---------- */
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.input, .select {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--hair-strong);
  border-radius: var(--r-sm);
  padding: 11px 13px;
  width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder { color: var(--muted); }
.input:focus, .select:focus {
  outline: none;
  border-color: var(--forest-mid);
  box-shadow: 0 0 0 3px rgba(69, 96, 73, 0.12);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='7' viewBox='0 0 10 7'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%238d8775' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-right: 32px;
  cursor: pointer;
}

/* utility */
.sheet-scroll::-webkit-scrollbar { width: 10px; }
.sheet-scroll::-webkit-scrollbar-thumb { background: var(--hair-strong); border-radius: 10px; border: 3px solid var(--card); }
.sheet-scroll::-webkit-scrollbar-track { background: transparent; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes veil { from { opacity: 0; } to { opacity: 1; } }
@keyframes sheetIn { from { transform: translateY(16px); } to { transform: none; } }
@keyframes cardIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ============================================================
   CHROME — topbar / wordmark / footer
   ============================================================ */
/* Unified site header (matches the admin pages' .site-head). */
.site-head { position: sticky; top: 0; z-index: 40; background: color-mix(in oklab, var(--paper-light) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--hair); }
.site-head-in { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); height: 60px; display: flex; align-items: center; gap: 28px; }
.site-actions { display: flex; align-items: center; gap: 18px; margin-left: auto; }
.head-link { font-family: var(--serif); font-size: 14px; color: var(--forest); text-decoration: none; }
.head-link:hover { text-decoration: underline; }
.head-link.admin { border: 1px solid color-mix(in oklab, var(--ember) 40%, var(--hair)); color: var(--ember); border-radius: 8px; padding: 6px 12px; font-size: 13px; }
.head-link.admin:hover { background: color-mix(in oklab, var(--ember) 12%, transparent); text-decoration: none; }
.head-link.name { color: var(--ink-soft); }
.head-link.name:hover { color: var(--ink); }

.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--paper-light) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--hair);
}
.topbar-in {
  max-width: var(--maxw); margin: 0 auto;
  padding: 0 var(--gutter);
  height: 60px; display: flex; align-items: center; gap: 28px;
}
.wordmark {
  background: none; border: 0; cursor: pointer; padding: 0; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px; color: var(--ink);
}
.wordmark:hover { text-decoration: none; }
.wm-mark { color: var(--ember); display: inline-flex; }
.wm-text { font-family: var(--serif); font-size: 18px; font-weight: 450; letter-spacing: -0.01em; white-space: nowrap; color: var(--forest); }
.wm-tn { color: var(--ember); }
.wm-the { font-style: italic; font-weight: 400; color: var(--muted); margin-right: 1px; }
.topnav { display: flex; gap: 24px; margin-left: auto; }
.topnav-link {
  background: none; border: 0; cursor: pointer;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); padding: 6px 0; position: relative;
}
.topnav-link:hover { color: var(--ink); }
.topnav-link.active { color: var(--ink); }
.topnav-link.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px; background: var(--ember);
}
.topbar-actions { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.account-chip { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.06em; color: var(--ink-soft); padding: 6px 4px; text-decoration: none; cursor: pointer; }
.account-chip:hover { color: var(--ink); }
.account-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--forest-mid); box-shadow: 0 0 0 3px color-mix(in oklab, var(--forest) 16%, transparent); flex: none; }
/* Admin pill — privileged nav seam into the back office; ember-tinted so it
   reads as emphasis. Rendered only for admin-role sessions (ui.js mountTopbar). */
.admin-pill {
  border: 1px solid color-mix(in oklab, var(--ember) 55%, transparent);
  color: var(--ember);
  background: color-mix(in oklab, var(--ember) 8%, transparent);
  letter-spacing: 0.04em;
}
.admin-pill:hover { background: color-mix(in oklab, var(--ember) 15%, transparent); color: var(--ember); }
.admin-caret { font-size: 0.8em; opacity: 0.8; }
.admin-menu-wrap { position: relative; display: inline-block; }
.admin-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; min-width: 188px;
  background: var(--card, #fff); border: 1px solid var(--hair-strong, #e3ddcf); border-radius: 10px;
  box-shadow: 0 12px 30px rgba(35,33,28,0.16); padding: 6px; display: flex; flex-direction: column; }
.admin-menu[hidden] { display: none; } /* default closed (overrides display:flex) */
/* Admin-only source-provenance panel inside the record modal */
.admin-src-panel { margin: 6px 0 22px; padding: 14px 16px; border: 1px dashed color-mix(in oklab, var(--ember) 45%, var(--hair-strong)); border-radius: 10px; background: color-mix(in oklab, var(--ember) 4%, transparent); }
.admin-src-h { display: block; margin: 0 0 10px; color: var(--ember); letter-spacing: 0.08em; }
.src-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.src-col { text-align: center; padding: 10px 8px; border: 1px solid var(--hair); border-radius: 8px; background: var(--paper-light, #fff); opacity: 0.6; }
.src-col.present { opacity: 1; border-color: color-mix(in oklab, var(--forest) 30%, var(--hair)); }
.src-label { display: block; font-size: 10.5px; margin-bottom: 4px; }
.src-label a { color: var(--ink); text-decoration: underline; }
.src-mark { display: block; font-size: 18px; line-height: 1.1; }
.src-mark.on { color: var(--forest-mid, #2f4a3c); }
.src-mark.off { color: var(--muted); }
.src-note { display: block; font-family: var(--mono); font-size: 10px; color: var(--ink-soft); margin-top: 3px; word-break: break-word; }
.admin-rec-actions { display: flex; gap: 8px; margin-top: 12px; padding-top: 11px; border-top: 1px solid color-mix(in oklab, var(--ember) 18%, var(--hair)); }
.admin-del { color: var(--ember); border-color: color-mix(in oklab, var(--ember) 40%, var(--hair-strong)); }
.admin-del:hover { background: color-mix(in oklab, var(--ember) 10%, transparent); color: var(--ember); }
/* "See merged content" read-only comparison table (admin-only, in the modal) */
.merged-toggle-wrap { margin-top: 12px; }
.merged-panel[hidden] { display: none; }
.merged-panel { margin-top: 10px; }
.fc-table { width: 100%; table-layout: fixed; border-collapse: collapse; } /* equal-width columns */
.fc-table th, .fc-table td { vertical-align: top; white-space: normal; word-break: break-word; overflow-wrap: anywhere; font-size: 12px; text-align: left; padding: 7px 9px; border-bottom: 1px solid var(--hair); font-family: var(--mono); }
.fc-table th:first-child, .fc-table td:first-child { width: 84px; }
.fc-table thead th { position: sticky; top: 0; z-index: 2; background: var(--card, #fff); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.fc-table thead th.fc-result { background: color-mix(in oklab, var(--ember) 14%, var(--card, #fff)); color: var(--ink); }
.fc-table thead th.fc-off { color: var(--hair-strong); }
.fc-table td.fc-result { background: color-mix(in oklab, var(--ember) 6%, transparent); }
.fc-table td.fc-diff { outline: 2px solid var(--ember); outline-offset: -2px; background: color-mix(in oklab, var(--ember) 10%, transparent); }
.admin-menu a { font-family: var(--mono); font-size: 12.5px; color: var(--ink); text-decoration: none;
  padding: 8px 12px; border-radius: 7px; }
.admin-menu a:hover { background: var(--paper-light, #f3efe6); }
.admin-menu-sep { height: 1px; background: var(--hair, #ece7da); margin: 5px 4px; }
.topbar-burger {
  display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer;
  margin-left: auto; padding: 8px;
}
.topbar-burger span { width: 22px; height: 1.6px; background: var(--ink); display: block; }
.topbar-mobile { display: none; }

/* footer — forest close band */
.footer { background: var(--forest); color: color-mix(in oklab, var(--paper-light) 86%, var(--forest)); margin-top: 0; }
.footer-in {
  max-width: var(--maxw); margin: 0 auto; padding: clamp(24px, 3vw, 34px) var(--gutter);
  display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap;
}
.footer .wordmark, .footer .wm-text { color: var(--paper-light); }
.footer .wm-mark { color: var(--ember-soft); }
.footer .wm-the { color: color-mix(in oklab, var(--paper-light) 60%, var(--forest)); }
.footer .label { color: color-mix(in oklab, var(--paper-light) 60%, var(--forest)) !important; }
.footer-blurb { font-family: var(--serif); font-size: 15px; line-height: 1.5; max-width: 62ch; margin: 9px 0 0; color: color-mix(in oklab, var(--paper-light) 80%, var(--forest)); }
.footer-brand { flex: 1 1 360px; min-width: 0; }
.footer-textarea { resize: vertical; min-height: 70px; line-height: 1.5; }

/* contact modal */
.ms-contact { max-width: 460px; }
.contact-modal { padding: clamp(28px, 4vw, 40px); }
.contact-modal-title { font-size: clamp(26px, 3vw, 32px); margin: 10px 0 0; color: var(--ink); }
.contact-modal-dek { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 12px 0 22px; max-width: 42ch; }
.contact-form { display: grid; gap: 14px; }
.contact-form .field { gap: 6px; }
.contact-form .btn-ember { justify-self: start; margin-top: 4px; }
.contact-sent { text-align: center; padding: 6px 0 2px; }
.contact-sent .contact-modal-dek { margin: 12px auto 24px; max-width: none; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-h { color: color-mix(in oklab, var(--paper-light) 58%, var(--forest)) !important; margin: 0 0 14px; }
.footer-link { display: block; background: none; border: 0; text-align: left; cursor: pointer; padding: 6px 0;
  font-family: var(--serif); font-size: 15px; color: color-mix(in oklab, var(--paper-light) 84%, var(--forest)); }
.footer-link:hover { color: var(--paper-light); }
.footer-link.static { cursor: default; }
.footer-rule {
  max-width: var(--maxw); margin: 0 auto; padding: 18px var(--gutter);
  border-top: 1px solid color-mix(in oklab, var(--paper-light) 18%, var(--forest));
  display: flex; justify-content: space-between;
}
.footer-rule .label { color: color-mix(in oklab, var(--paper-light) 50%, var(--forest)) !important; }

/* ============================================================
   IMAGE PLATE
   ============================================================ */
.plate { margin: 0; position: relative; background: var(--paper-light); border: 1px solid var(--hair); border-radius: var(--r-sm); overflow: hidden; }
.plate img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; z-index: 1; }
.plate-ph {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background-color: var(--paper-light);
  background-image: repeating-linear-gradient(135deg, transparent 0 11px, color-mix(in oklab, var(--hair) 55%, transparent) 11px 12px);
}
.plate-ph .label { color: var(--muted); }
.plate-credit { position: absolute; left: 8px; bottom: 7px; color: var(--paper-light) !important;
  background: color-mix(in oklab, var(--ink) 62%, transparent); padding: 3px 7px; border-radius: 2px; backdrop-filter: blur(2px); }
.plate-ph + .plate-credit { color: var(--muted) !important; background: transparent; left: 10px; bottom: 8px; }

/* ============================================================
   LANDING
   ============================================================ */
.landing { display: block; }
.masthead { max-width: var(--maxw); margin: 0 auto; padding: 26px var(--gutter) 0; }
.mh-rule span { display: block; height: 1px; background: var(--hair-strong); }
.mh-rule.top span { height: 2px; background: var(--ink); }
.mh-meta { display: flex; justify-content: space-between; align-items: center; padding: 9px 2px; gap: 16px; }
.mh-mid { text-align: center; color: var(--ink-soft) !important; }

/* hero A — centered broadsheet */
.hero-a { max-width: var(--maxw); margin: 0 auto; padding: clamp(28px, 4.5vw, 56px) var(--gutter) clamp(32px, 4.5vw, 60px); position: relative; overflow: hidden; }
.hero-a-art { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -46%); width: min(560px, 80%); color: var(--ember); opacity: 0.10; z-index: 0; pointer-events: none; }
.hero-a-art svg { width: 100%; height: auto; }
.hero-a-in { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.hero-kick { display: inline-block; margin-bottom: 14px; }
.hero-a-title { font-size: clamp(40px, 7vw, 82px); margin: 0 0 24px; color: var(--ink); }
/* Hero headline line 2 — medium, distinctly smaller than line 1 so it sits on
   one line at desktop width while scaling responsively with the title. */
.hero-a-line2 { display: inline-block; font-size: 0.76em; line-height: 1.12; }
/* Hero headline line 3 — smallest, ember accent. */
.hero-a-sub { display: block; font-size: 0.525em; color: var(--ember); margin-top: 0.18em; line-height: 1.1; }
.hero-a-dek { font-size: clamp(17px, 2vw, 20px); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-a .hero-cta { justify-content: center; }

/* hero B — asymmetric editorial */
.hero-b { max-width: var(--maxw); margin: 0 auto; padding: clamp(28px, 4vw, 56px) var(--gutter) clamp(32px, 4vw, 60px);
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.hero-b-title { font-size: clamp(38px, 5.4vw, 72px); margin: 18px 0 24px; color: var(--ink); }
.hero-b-dek { font-size: clamp(16px, 1.7vw, 19px); line-height: 1.6; color: var(--ink-soft); max-width: 48ch; margin: 0 0 32px; }
.hero-b-art { position: relative; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 40px 32px 30px; display: flex; align-items: center; justify-content: center; min-height: 360px; }
.hero-b-art svg { width: min(260px, 70%); height: auto; color: var(--ember); }
.hero-b-cap { position: absolute; left: 16px; bottom: 14px; color: var(--muted) !important; }

/* stats */
.stats { border-top: 1px solid var(--forest); border-bottom: 1px solid var(--forest); background: var(--forest); }
.stats-in { max-width: var(--maxw); margin: 0 auto; padding: 22px var(--gutter); display: grid; grid-template-columns: repeat(4, auto) 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.stat-n { font-family: var(--mono); font-size: clamp(32px, 3.6vw, 44px); font-weight: 400; color: var(--paper-light); line-height: 1; letter-spacing: -0.02em; }
.stat-l { margin-top: 6px; }
.stats .label { color: color-mix(in oklab, var(--paper-light) 64%, var(--forest)) !important; }
.stat-note { border-left: 1px solid color-mix(in oklab, var(--paper-light) 24%, var(--forest)); padding-left: clamp(24px, 4vw, 48px); display: flex; align-items: center; }
.stat-note-txt { font-family: var(--serif); font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); margin: 0; max-width: 42ch; }

/* section head */
.section-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(32px, 5vw, 52px) var(--gutter) 18px; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-title { font-size: clamp(28px, 3.4vw, 40px); margin: 10px 0 0; color: var(--ink); }

/* dispatches */
.dispatch-grid { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter) clamp(32px, 5vw, 52px); display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(24px, 3vw, 40px); }
.dispatch { display: flex; flex-direction: column; }
.dispatch .plate { margin-bottom: 18px; }
.dispatch-cat { margin: 0 0 10px; color: var(--ember) !important; }
.dispatch-title { font-size: 22px; line-height: 1.15; margin: 0 0 10px; color: var(--ink); }
.dispatch-dek { font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 14px; }
.dispatch-by { color: var(--muted) !important; margin: auto 0 0; }

/* featured */
.featured { background: var(--paper-light); border-top: 1px solid var(--hair); }
.featured-in { max-width: var(--maxw); margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--gutter); display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(36px, 6vw, 72px); align-items: center; }
.featured-name { font-size: clamp(40px, 5vw, 64px); margin: 12px 0 8px; color: var(--ink); }
.featured-place { color: var(--muted) !important; margin: 0 0 22px; }
.featured-desc { font-size: 17px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 26px; max-width: 52ch; }
.featured-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-bottom: 30px; max-width: 520px; }
.ffield { display: flex; flex-direction: column; gap: 6px; }
.ffield-v { font-family: var(--serif); font-size: 18px; color: var(--ink); }

/* support band */
.support { max-width: var(--maxw); margin: 0 auto; padding: clamp(56px, 8vw, 88px) var(--gutter) clamp(64px, 9vw, 100px); }
.support-in { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.support-col { padding: 40px; border-radius: var(--r-md); border: 1px solid var(--hair); }
.support-col.donate { background: color-mix(in oklab, var(--ember) 6%, var(--card)); border-color: color-mix(in oklab, var(--ember) 22%, var(--hair)); }
.support-col.volunteer { background: var(--card); }
.support-title { font-size: clamp(26px, 3vw, 34px); margin: 12px 0 14px; color: var(--ink); }
.support-dek { font-size: 15.5px; line-height: 1.55; color: var(--ink-soft); margin: 0 0 24px; max-width: 40ch; }

/* ============================================================
   REGISTRY
   ============================================================ */
.registry-head { max-width: var(--maxw); margin: 0 auto; padding: clamp(36px, 5vw, 56px) var(--gutter) 28px; }
.registry-title { font-size: clamp(34px, 4.4vw, 56px); margin: 12px 0 14px; color: var(--ink); }
.registry-sub { font-size: 16.5px; line-height: 1.55; color: var(--ink-soft); max-width: 56ch; margin: 0; }

.filterbar { position: sticky; top: 60px; z-index: 30; background: color-mix(in oklab, var(--paper) 90%, transparent); backdrop-filter: blur(8px); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair-strong); }
.filterbar-in { max-width: var(--maxw); margin: 0 auto; padding: 16px var(--gutter) 0; display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 14px; align-items: start; }
.filter-search { position: relative; }
.search-ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search-input { padding-left: 36px; }
.filter-selects { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.filter-selects > .select { flex: 1 1 150px; min-width: 130px; }
.sort-group { display: inline-flex; align-items: center; gap: 8px; flex: 1 1 260px; }
.sort-group .select { flex: 1 1 auto; min-width: 120px; }
.sort-label { white-space: nowrap; color: var(--muted) !important; }
.sort-dir { flex: none; line-height: 1; }
.filter-chips-row { max-width: var(--maxw); margin: 0 auto; padding: 14px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-soft);
  background: transparent; border: 1px solid var(--hair-strong); border-radius: 100px; padding: 7px 14px; cursor: pointer; transition: all .14s; }
.chip:hover { border-color: var(--ink-soft); }
.chip.on { background: var(--forest); border-color: var(--forest); color: var(--paper-light); }

/* ---- Registry controls: ONE pill family ----
   The search box, the County/Type/Badge/Sort dropdowns, the sort-direction control,
   the Create/Donate buttons, and the List/Map toggle all share a fully-rounded shape
   and a single height so they read as one set (matching the chips). No new colors. */
.registry-head-actions .btn,
.registry-head-actions .view-toggle,
.filterbar .input,
.filterbar .select,
.filterbar .sort-dir { height: 40px; box-sizing: border-box; border-radius: 100px; }
/* Action row: Create + Donate stay left; the List/Map toggle is pushed to the right. */
.registry-head-actions #f-view { margin-left: auto; }
/* Sort-direction: a labeled, obviously-interactive pill (was a 38px square that read
   as a static label — the sort logic itself was already correct). */
.sort-dir { display: inline-flex; align-items: center; gap: 6px; }
/* List / Map segmented toggle — pill, matching the chips. */
.view-toggle { display: inline-flex; align-items: stretch; border: 1px solid var(--hair-strong); overflow: hidden; flex: none; }
.view-toggle .vt-btn { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
  line-height: 1; padding: 0 16px; background: transparent; color: var(--ink-soft); border: 0; cursor: pointer;
  display: inline-flex; align-items: center; transition: background .14s, color .14s; }
.view-toggle .vt-btn + .vt-btn { border-left: 1px solid var(--hair-strong); }
.view-toggle .vt-btn:hover { color: var(--ink); }
.view-toggle .vt-btn.on { background: var(--forest); color: var(--paper-light); }
.filter-meta { display: flex; align-items: center; gap: 16px; }
.result-count { color: var(--ink-soft) !important; }

.registry-body { max-width: var(--maxw); margin: 0 auto; padding: 32px var(--gutter) clamp(64px, 9vw, 100px); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(262px, 1fr)); gap: 16px; }

.tcard { text-align: left; background: var(--card); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 20px 20px 18px; cursor: pointer; display: flex; flex-direction: column; gap: 0; transition: border-color .16s, box-shadow .16s, transform .12s; }
.tcard:hover { border-color: var(--hair-strong); box-shadow: var(--lift-sm); transform: translateY(-2px); }
.tcard-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.tcard-bar { width: 26px; height: 3px; border-radius: 2px; display: block; }
.tcard-name { font-family: var(--serif); font-size: 25px; font-weight: 420; line-height: 1.05; margin: 0 0 6px; color: var(--ink); letter-spacing: -0.01em; }
.tcard-place { font-family: var(--serif); font-size: 14.5px; color: var(--muted); margin: 0 0 18px; }
.tcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; }
.tcard-meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.04em; color: var(--muted); text-align: right; }

.registry-empty { text-align: center; padding: 60px 20px; color: var(--ink-soft); }
.registry-empty svg { width: 70px; height: auto; color: var(--hair-strong); margin-bottom: 20px; }
.empty-title { font-size: 28px; margin: 0 0 8px; color: var(--ink); }
.empty-dek { color: var(--muted); margin: 0 0 20px; }

/* ============================================================
   MODAL — tower record
   ============================================================ */
.modal-scrim { position: fixed; inset: 0; z-index: 80; background: color-mix(in oklab, var(--ink) 52%, transparent); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: clamp(12px, 3vw, 40px); }
.modal-shell { position: relative; background: var(--card); border-radius: var(--r-lg); box-shadow: var(--lift); width: 100%; max-height: 92vh; overflow: hidden; animation: sheetIn .26s cubic-bezier(.2,.7,.3,1) both; }
.ms-A { max-width: 860px; }
.ms-B { max-width: 1080px; }
/* Top-right toolbar cluster: badge icons · check-in + count · print · close */
.modal-toolbar { position: absolute; top: 16px; right: 16px; z-index: 5; display: flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); }
.modal-close { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in oklab, var(--paper-light) 80%, transparent); border: 1px solid var(--hair); color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .14s; flex: none; }
.modal-close:hover { background: var(--paper-light); color: var(--ink); border-color: var(--hair-strong); }
.rec-print-btn { width: 36px; height: 36px; border-radius: 50%; background: color-mix(in oklab, var(--paper-light) 80%, transparent); border: 1px solid var(--hair); color: var(--ink-soft); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .14s; flex: none; }
.rec-print-btn:hover { background: var(--paper-light); color: var(--ink); border-color: var(--hair-strong); }

/* Badge grid — designed emblems, 3 columns, wraps to more rows / scrolls past 9. */
.rec-badge-block { margin: 0 0 22px; }
.rec-badge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 320px; max-height: 360px; overflow-y: auto; padding: 2px; }
.rbadge { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; cursor: default; border-radius: 12px; transition: transform .12s, box-shadow .12s; }
.rbadge:hover, .rbadge:focus { outline: none; transform: translateY(-1px); box-shadow: 0 4px 14px color-mix(in oklab, var(--ink) 14%, transparent); }
.rbadge > svg, .badge-emblem-img { width: 100%; height: 100%; object-fit: contain; display: block; }
.badge-emblem-fallback { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; border-radius: 50%; font-size: 28px; line-height: 1;
  border: 1px solid color-mix(in oklab, var(--badge, var(--forest)) 45%, var(--hair-strong));
  background: color-mix(in oklab, var(--badge, var(--forest)) 12%, var(--card)); }

.rec { max-height: 92vh; }
.rec-sec { padding: 0; }
.rec-sechead { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.rec-sectitle { font-size: 21px; margin: 0; color: var(--ink); }
.rec-secnote { color: var(--muted) !important; }

/* hero fields */
.kfield { display: flex; flex-direction: column; gap: 8px; }
.kfield-l { color: var(--muted) !important; }
.kfield-v { font-family: var(--serif); font-size: 21px; color: var(--ink); line-height: 1.15; }
.kfield-v.empty { color: var(--muted); font-style: italic; font-size: 16px; }
.kfield.row { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--hair); }
.kfield.row .kfield-l { flex: none; }
.kfield.row:last-child { border-bottom: 0; }
.kfield.row .kfield-v { font-size: 16px; text-align: right; }
.kfield.row .kfield-v.empty { white-space: nowrap; font-size: 14px; }

/* narrative + lineage */
.rec-narrative { display: grid; gap: 22px; }
.rec-desc { font-family: var(--serif); font-size: 17px; line-height: 1.62; color: var(--ink-soft); margin: 0; max-width: 60ch; }
.rec-desc-empty { color: var(--muted); }
.rec-desc-empty p:first-child { font-family: var(--serif); font-size: 17px; font-style: italic; color: var(--ink-soft); margin: 0 0 6px; }
.rec-desc-empty .label { color: var(--muted) !important; }
.lineage { background: var(--paper-light); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 18px 20px; }
.lineage-h { color: var(--forest-mid) !important; margin: 0 0 8px; }
.lineage-txt { font-family: var(--serif); font-size: 14.5px; color: var(--ink-soft); margin: 0 0 14px; }
.lineage-chips { display: flex; gap: 10px; flex-wrap: wrap; }
.lchip { font-family: var(--mono); font-size: 12px; letter-spacing: 0.03em; padding: 8px 12px; border-radius: var(--r-sm); border: 1px solid; cursor: default; display: inline-flex; align-items: center; gap: 7px; }
.lchip.resolved { background: var(--card); border-color: var(--hair-strong); color: var(--ink); cursor: pointer; transition: all .14s; }
.lchip.resolved:hover { border-color: var(--forest-mid); color: var(--forest); }
.lchip-ar { color: var(--muted); }
.lchip.unresolved { background: transparent; border-color: var(--hair); border-style: dashed; color: var(--muted); }

/* gallery */
.gallery { display: grid; gap: 12px; }
.gallery.g-1 { grid-template-columns: 1fr; max-width: 60%; }
.gallery.g-2 { grid-template-columns: 1fr 1fr; }
.gallery.g-3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery.g-3 .plate:first-child { grid-row: 1 / 3; }
/* uniform thumbnails + lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.gthumb { position: relative; padding: 0; border: 1px solid var(--hair); border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; background: var(--paper-light); aspect-ratio: 4 / 3; display: block; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gthumb-credit { position: absolute; left: 0; right: 0; bottom: 0; padding: 4px 6px; font-size: 9.5px; color: #fff; background: linear-gradient(transparent, rgba(0,0,0,0.6)); text-align: left; }
.lightbox-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(20,18,15,0.9); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; cursor: zoom-out; }
.lightbox-img { max-width: 92vw; max-height: 86vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0,0,0,0.5); background: #fff; }
.lightbox-cap { color: #f3efe6; max-width: 80vw; text-align: center; }
/* check-in — lives in the modal toolbar beside the print icon */
.checkin-bar { position: relative; display: flex; align-items: center; gap: 8px; flex: none; }
.checkin-bar:empty { display: none; }
.checkin-btn.on { color: var(--forest); border-color: color-mix(in oklab, var(--forest) 45%, var(--hair-strong)); background: color-mix(in oklab, var(--forest) 8%, transparent); }
.checkin-count { font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); white-space: nowrap; }
.checkin-names-toggle { font-family: var(--mono); font-size: 11px; }
.checkin-names { position: absolute; top: calc(100% + 6px); right: 0; z-index: 6; min-width: 180px; font-family: var(--mono); font-size: 11.5px; color: var(--ink-soft); max-height: 200px; overflow-y: auto; background: var(--card); border: 1px solid var(--hair-strong); border-radius: var(--r-md); box-shadow: var(--lift); padding: 8px 10px; }
.checkin-names div { padding: 2px 0; }
.gallery-empty { background: var(--paper-light); border: 1px dashed var(--hair-strong); border-radius: var(--r-md); padding: 28px; text-align: center; }
.gallery-empty .label { color: var(--muted) !important; }
.gallery-empty-dek { font-family: var(--serif); font-size: 14.5px; color: var(--muted); margin: 8px auto 0; max-width: 44ch; line-height: 1.5; }

/* Authoritative confirmations — citation ✓ "seals", visibly stronger than the
   muted "Listed in …" timeline lines below them. */
.rec-citations { margin: 0 0 18px; padding: 14px 16px; border: 1px solid color-mix(in oklab, var(--forest) 30%, var(--hair)); border-left: 4px solid var(--forest); border-radius: 10px; background: color-mix(in oklab, var(--forest) 7%, var(--card)); }
.rec-cite-h { margin: 0 0 10px; color: var(--forest) !important; letter-spacing: 0.08em; }
.rec-cite { display: flex; align-items: flex-start; gap: 10px; text-decoration: none; color: var(--ink); padding: 7px 0; border-top: 1px solid color-mix(in oklab, var(--forest) 14%, transparent); }
.rec-cite:first-of-type { border-top: 0; }
.rec-cite-mark { flex: none; width: 19px; height: 19px; margin-top: 1px; border-radius: 50%; background: var(--forest); color: #fff; font-size: 12px; line-height: 19px; text-align: center; font-weight: 700; }
.rec-cite-text { font-family: var(--serif); font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--ink); }
a.rec-cite:hover .rec-cite-text { text-decoration: underline; }
.rec-cite-go { margin-left: auto; color: var(--forest); font-size: 13px; flex: none; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; }
.tl-item { position: relative; padding: 0 0 22px 26px; }
.tl-item::before { content: ""; position: absolute; left: 4.5px; top: 14px; bottom: -4px; width: 1px; background: var(--hair-strong); }
.tl-item:last-child { padding-bottom: 0; }
.tl-item:last-child::before { display: none; }
.tl-node { position: absolute; left: 0; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--card); border: 1.5px solid var(--hair-strong); }
.tl-item.contrib .tl-node { background: var(--ember); border-color: var(--ember); }
.tl-actor { font-family: var(--serif); font-size: 15.5px; color: var(--ink); margin: 0 0 3px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.tl-credit { font-weight: 500; }
.tl-role { color: var(--muted) !important; }
.tl-action { font-family: var(--serif); font-size: 14px; color: var(--ink-soft); margin: 0; line-height: 1.45; }

/* drawer */
.drawer { border-top: 1px solid var(--hair); margin-top: 4px; }
.drawer-toggle { width: 100%; background: none; border: 0; cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.drawer-toggle .label { color: var(--ink-soft) !important; }
.drawer-caret { font-family: var(--mono); font-size: 18px; color: var(--muted); }
.drawer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; margin: 0 0 8px; }
.drow { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hair); }
.drow dt { color: var(--muted) !important; }
.drow dd { font-family: var(--mono); font-size: 12.5px; color: var(--ink); margin: 0; text-align: right; }
.drawer-empty { color: var(--muted) !important; }

/* Variant A — folio */
.rec-a { padding: clamp(30px, 4vw, 52px); padding-top: 56px; overflow-y: auto; }
.rec-a-head { margin-bottom: 30px; }
.rec-a-head-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.rec-a-head-top .label { color: var(--muted) !important; }
.rec-a-name { font-size: clamp(40px, 5.5vw, 60px); margin: 0 0 6px; color: var(--ink); }
.rec-a-place { font-family: var(--serif); font-size: 16px; color: var(--muted); margin: 0; }
.rec-a-fields { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; padding: 28px 0 36px; margin-bottom: 8px; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.rec-a .rec-sec { margin-bottom: 40px; }

/* Variant B — two-pane */
.rec-b { display: grid; grid-template-columns: 320px 1fr; max-height: 92vh; }
.rec-b-rail { background: var(--paper-light); border-right: 1px solid var(--hair); overflow-y: auto; }
.rec-b-rail-in { padding: 48px 28px 28px; }
.rec-b-name { font-size: clamp(32px, 4vw, 40px); margin: 16px 0 6px; color: var(--ink); }
.rec-b-fields { margin: 24px 0 0; }
.rec-b-main { padding: 52px clamp(28px, 3.5vw, 48px) 40px; overflow-y: auto; }
.rec-b-main .rec-sec { margin-bottom: 38px; }

/* ============================================================
   AUTH
   ============================================================ */
.auth { min-height: 100vh; position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-scene { position: absolute; inset: 0; z-index: 0; }
.auth-sky { position: absolute; inset: 0; background: linear-gradient(to bottom, #cfd3c4 0%, #e3ddca 42%, var(--paper) 78%); }
.auth-tower { position: absolute; left: 50%; bottom: 8%; transform: translateX(-50%); width: min(420px, 60vw); color: var(--ember); opacity: 0.26; }
.auth-tower svg { width: 100%; height: auto; }
.auth-veil { position: absolute; inset: 0; background: color-mix(in oklab, var(--paper) 58%, transparent); backdrop-filter: blur(1.5px); }
.auth-ridge { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(to top, color-mix(in oklab, var(--forest) 28%, var(--paper)), transparent); }
.auth-card-wrap { position: relative; z-index: 1; width: 100%; max-width: 432px; }
.auth-back { display: inline-block; margin-bottom: 18px; }
.auth-card { background: var(--card); border: 1px solid var(--hair-strong); border-radius: var(--r-lg); box-shadow: var(--lift); padding: 40px; animation: sheetIn .3s ease both; }
.auth-card-head { margin-bottom: 26px; }
.auth-title { font-size: 28px; line-height: 1.1; margin: 12px 0 0; color: var(--ink); }
.auth-fields { display: grid; gap: 16px; margin-bottom: 22px; }
.auth-note { display: flex; gap: 10px; font-family: var(--serif); font-size: 13.5px; line-height: 1.5; color: var(--ink-soft); background: var(--paper-light); border: 1px solid var(--hair); border-radius: var(--r-md); padding: 14px 16px; margin: 0 0 22px; }
.auth-note-mark { color: var(--ember); font-size: 14px; }
.auth-submit { width: 100%; justify-content: center; }
.auth-flip { text-align: center; margin-top: 20px; font-family: var(--serif); font-size: 14.5px; color: var(--ink-soft); }
.auth-foot { text-align: center; margin-top: 22px; color: var(--muted) !important; }
.auth-eyebrow { display: flex; align-items: center; gap: 8px; margin: 16px 0 0; color: var(--muted) !important; }
.auth-eyebrow::before { content: ""; width: 6px; height: 6px; border: 1px solid var(--ember); border-radius: 50%; display: inline-block; }
.auth-sub { font-family: var(--serif); font-size: 15px; line-height: 1.55; color: var(--ink-soft); margin: 14px 0 24px; }
.auth-confirm { text-align: center; padding: 8px 0; }
.auth-confirm-mark { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: color-mix(in oklab, var(--forest) 12%, var(--card)); color: var(--forest); font-size: 22px; margin-bottom: 18px; }
.auth-confirm .kicker { display: block; margin-bottom: 8px; }
.auth-confirm .auth-sub { margin: 12px 0 26px; }
.auth-confirm .auth-submit { width: 100%; justify-content: center; }

/* ============================================================
   REVIEW TOGGLE (variant switch — design review only)
   ============================================================ */
.vtoggle { position: fixed; bottom: 18px; right: 18px; z-index: 90; background: var(--card); border: 1px solid var(--hair-strong); border-radius: 100px; box-shadow: var(--lift-sm); display: flex; align-items: center; gap: 10px; padding: 7px 8px 7px 16px; }
.vtoggle-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.vtoggle-seg { display: flex; background: var(--paper-light); border: 1px solid var(--hair); border-radius: 100px; padding: 2px; }
.vtoggle-seg button { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; border: 0; background: none; cursor: pointer; padding: 5px 13px; border-radius: 100px; color: var(--ink-soft); }
.vtoggle-seg button.on { background: var(--forest); color: var(--paper-light); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .hero-b { grid-template-columns: 1fr; }
  .hero-b-art { min-height: 280px; order: -1; }
  .stats-in { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .stat-note { grid-column: 1 / -1; border-left: 0; padding-left: 0; border-top: 1px solid var(--hair-strong); padding-top: 20px; }
  .dispatch-grid { grid-template-columns: 1fr; gap: 36px; }
  .featured-in { grid-template-columns: 1fr; }
  .featured-fields { grid-template-columns: repeat(2, 1fr); }
  .filterbar-in { grid-template-columns: 1fr; }
  .filter-selects { grid-template-columns: 1fr 1fr; }
  .footer-in { gap: 20px; }
  .rec-b { grid-template-columns: 1fr; max-height: none; }
  .rec-b-rail { border-right: 0; border-bottom: 1px solid var(--hair); }
  .rec-b-main { max-height: none; }
  .rec-b { overflow-y: auto; max-height: 92vh; }
  .mh-mid { display: none; }
}
@media (max-width: 560px) {
  .rec-a-fields { grid-template-columns: 1fr 1fr; gap: 22px 18px; }
  .featured-fields { grid-template-columns: 1fr 1fr; }
  .filter-selects { grid-template-columns: 1fr; }
  .gallery.g-3 { grid-template-columns: 1fr; grid-template-rows: none; }
  .gallery.g-3 .plate:first-child { grid-row: auto; }
  .gallery.g-1 { max-width: 100%; }
  .drawer-grid { grid-template-columns: 1fr; }
  .vtoggle { bottom: 12px; right: 12px; }
  .modal-scrim { padding: 0; align-items: flex-end; }
  .modal-shell { max-height: 96vh; border-radius: var(--r-lg) var(--r-lg) 0 0; }
}

/* ============================================================
   CONTRIBUTOR ACTIONS + SUBMISSION FLOWS
   ============================================================ */
.registry-head-actions { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.registry-head-actions .plus { font-family: var(--mono); font-size: 14px; line-height: 0; }

/* in-record contribute block */
.rec-contribute { border-top: 1px solid var(--hair); padding-top: 26px; margin-bottom: 4px; }
.rec-contribute-h { color: var(--ink-soft) !important; margin: 0 0 14px; }
.rec-contribute-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.rec-contribute-note { font-family: var(--serif); font-size: 13.5px; color: var(--muted); margin: 16px 0 0; max-width: 56ch; line-height: 1.5; }

/* submission view */
.rec-sub { overflow-y: auto; max-height: 92vh; }
.sub-in { padding: clamp(30px, 4vw, 52px); padding-top: 56px; max-width: 760px; }
.sub-back { display: inline-block; margin-bottom: 22px; }
.sub-head { margin-bottom: 22px; }
.sub-title { font-size: clamp(28px, 3.6vw, 40px); margin: 10px 0 0; color: var(--ink); }
.sub-lead { font-family: var(--serif); font-size: 16px; line-height: 1.6; color: var(--ink-soft); margin: 0 0 28px; max-width: 60ch; }

.editrows { display: flex; flex-direction: column; }
.editrow { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: start; padding: 18px 0; border-bottom: 1px solid var(--hair); }
.editrow:first-child { border-top: 1px solid var(--hair); }
.editrow-label { display: flex; flex-direction: column; gap: 6px; padding-top: 2px; }
.editrow-current { font-family: var(--serif); font-size: 14px; color: var(--muted); }
.editrow-current .empty { font-style: italic; }
.sub-textarea { resize: vertical; min-height: 80px; line-height: 1.5; font-family: var(--serif); }

.sub-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--hair); flex-wrap: wrap; }
.sub-foot-donate { justify-content: flex-end; border-top: 0; }
.sub-credit { color: var(--muted) !important; }

/* dropzone */
.dropzone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center;
  border: 1.5px dashed var(--hair-strong); border-radius: var(--r-md); padding: 40px 24px; cursor: pointer; background: var(--paper-light);
  transition: border-color .15s, background .15s; margin-bottom: 20px; }
.dropzone:hover { border-color: var(--forest-mid); background: color-mix(in oklab, var(--forest) 4%, var(--paper-light)); }
.dropzone-mark { font-family: var(--mono); font-size: 28px; color: var(--muted); line-height: 1; }
.dropzone-txt { font-family: var(--serif); font-size: 15px; color: var(--ink-soft); }
.dropzone-txt u { text-decoration-color: var(--forest-mid); cursor: pointer; }
.dropzone-hint { color: var(--muted) !important; }

.sub-form .field { margin-bottom: 18px; }
.sub-check { display: flex; gap: 11px; align-items: flex-start; font-family: var(--serif); font-size: 14px; color: var(--ink-soft); line-height: 1.5; margin: 4px 0 0; cursor: pointer; }
.sub-check input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--forest); flex: none; }
.muted-inline { color: var(--muted); }

/* donate amounts */
.amt-grid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.amt { position: relative; }
.amt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.amt > span { display: inline-flex; align-items: center; justify-content: center; min-width: 72px; padding: 12px 18px;
  font-family: var(--mono); font-size: 15px; color: var(--ink); border: 1px solid var(--hair-strong); border-radius: var(--r-sm); background: var(--card); transition: all .14s; }
.amt input:checked + span { border-color: var(--ember); background: color-mix(in oklab, var(--ember) 8%, var(--card)); color: var(--ember); }
.amt-other { display: flex; }
.amt-input { width: 120px; }

/* new tower form */
.newtower-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.newtower-grid .span-2 { grid-column: 1 / -1; }

/* confirmation */
.sub-confirm { text-align: center; padding: 24px 0 16px; max-width: 52ch; margin: 0 auto; }
.sub-confirm-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%;
  background: color-mix(in oklab, var(--forest) 12%, var(--card)); color: var(--forest); font-size: 24px; margin-bottom: 20px; }
.sub-confirm-title { font-size: 28px; margin: 0 0 12px; color: var(--ink); }
.sub-confirm-msg { font-family: var(--serif); font-size: 17px; color: var(--ink-soft); margin: 0 0 10px; }
.sub-confirm-sub { font-family: var(--serif); font-size: 14.5px; color: var(--muted); line-height: 1.6; margin: 0 0 28px; }
.sub-confirm-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

@media (max-width: 560px) {
  .editrow { grid-template-columns: 1fr; gap: 10px; }
  .newtower-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   PRINT — the public-facing RECORD only. Triggered by the modal's
   print icon (a record modal is open). Hides the gate/nav/register
   background and ALL admin-only chrome; the record prints clean.
   ============================================================ */
@media print {
  body > header, body > main, body > footer { display: none !important; }
  #modal-root .modal-scrim { position: static; background: #fff; display: block; overflow: visible; padding: 0; }
  #modal-root .modal-shell { position: static; box-shadow: none; border: 0; border-radius: 0; width: 100%; max-width: none; max-height: none; height: auto; overflow: visible; animation: none; }
  .rec, .sheet-scroll, .rec-a, .rec-b-main, .rec-b-rail { overflow: visible !important; max-height: none !important; height: auto !important; }
  /* hide interactive + admin-only chrome */
  .modal-toolbar, .admin-src-panel, .rec-contribute, .lightbox-overlay { display: none !important; }
  /* force the archival drawer open so full registry detail prints */
  .drawer-toggle { display: none !important; }
  .drawer-grid, .drawer-grid[hidden] { display: grid !important; }
}
