@import url("https://fonts.googleapis.com/css2?family=UnifrakturMaguntia&family=Old+Standard+TT:ital,wght@0,400;0,700;1,400&display=swap");

:root {
  --ink: #0e0b08;
  --muted: #4a3f32;
  --paper: #e8dcc4;
  --rule: #1a1510;
  --accent: #6b3e1f;
  --accent-2: #3d2a1a;
  --paper-tint: #f0e6d4;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: #1c1814;
  color: var(--ink);
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  line-height: 1.65;
}
.paper {
  max-width: 820px;
  margin: 1.5rem auto;
  padding: 1.75rem 1.5rem 2.5rem;
  background: var(--paper);
  border: 1px solid #8a7a5c;
  box-shadow: 0 8px 24px rgba(14,11,8,0.35), 4px 6px 0 rgba(10,8,6,0.45);
}
.masthead {
  text-align: center;
  border-top: 4px double var(--rule);
  border-bottom: 4px double var(--rule);
  padding: 0.85rem 0 1rem;
  margin-bottom: 1.5rem;
}
.folio {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.masthead h1 {
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  font-weight: 700;
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0.2rem 0;
  letter-spacing: 0.02em;
}
.masthead h1.site-flag {
  font-family: "UnifrakturMaguntia", serif;
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 3rem);
  letter-spacing: 0.01em;
  line-height: 1.05;
}
h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0.2rem 0; letter-spacing: 0.02em; }
.tagline { font-style: italic; color: var(--muted); margin: 0.4rem 0 1rem; }
nav a { color: var(--accent); text-decoration: none; margin: 0 0.65rem; font-size: 0.95rem; }
nav a:hover { text-decoration: underline; }
h2, h3 { color: var(--accent-2); margin-top: 0; }
.lead { margin-bottom: 1.5rem; }
.lead-tease {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  border-top: 2px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: rgba(14,11,8,0.03);
}
.lead-tease .hed {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
  line-height: 1.25;
}
.lead-tease .hed a { color: var(--ink); text-decoration: none; }
.lead-tease .hed a:hover { text-decoration: underline; }
.lead-tease .deck {
  font-style: italic;
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
}
.muted { color: var(--muted); }
.grid-2 { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin: 1.5rem 0; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
article { border-top: 1px solid var(--rule); padding-top: 0.85rem; }
ul { padding-left: 1.2rem; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.75rem 0 1.25rem; }
.btn {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  border-radius: 2px;
  text-decoration: none;
  font-size: 1.05rem;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
}
.btn.primary { background: var(--ink); color: #f0e6d4; border: 1px solid var(--ink); }
.btn.primary:hover { background: #2a2218; color: #fffef8; }
.btn.ghost { border: 1px solid var(--ink); color: var(--ink); background: transparent; }
.btn.ghost:hover { background: rgba(14,11,8,0.06); }
.text-link { color: var(--accent); }
.underwrite-strip {
  margin-top: 1.5rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--rule);
  background: rgba(14,11,8,0.04);
  font-size: 0.95rem;
}
.underwrite-strip a { color: var(--accent); }
footer { margin-top: 2.5rem; padding-top: 1rem; border-top: 2px solid var(--rule); color: var(--muted); font-size: 0.9rem; }
.tiny { font-size: 0.8rem; }
.tier {
  border: 1px solid var(--rule);
  padding: 1rem;
  margin: 0.75rem 0;
  background: var(--paper-tint);
}
.tier h3 { margin: 0 0 0.35rem; }
.price { font-size: 1.25rem; color: var(--ink); }
.note { font-size: 0.88rem; color: var(--muted); }
.badge { display: inline-block; font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; border: 1px solid var(--rule); padding: 0.15rem 0.4rem; color: var(--muted); }

.changed-strip {
  border: 1px solid var(--rule);
  background: var(--paper-tint);
  padding: 0.9rem 1rem;
  margin-bottom: 1.5rem;
}
.changed-strip ul { margin: 0.4rem 0 0.5rem; }
.desk-card {
  border: 1px solid var(--rule);
  padding: 1rem;
  background: var(--paper-tint);
}
.desk-card h3 { margin: 0.35rem 0 0.5rem; }
.src { font-size: 0.85rem; color: var(--muted); }
.src a { color: var(--accent); }
.status-map {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
  margin: 0.75rem 0 1.5rem;
}
@media (min-width: 640px) {
  .status-map { grid-template-columns: repeat(4, 1fr); }
}
.map-cell {
  border: 1px solid var(--rule);
  padding: 0.75rem;
  text-align: center;
  background: var(--paper-tint);
}
.map-cell strong { display: block; font-size: 1.1rem; }
.map-cell span { font-size: 0.85rem; color: var(--muted); }
.map-cell.on { border-color: #3d6b3a; background: #eef5ec; }
.map-cell.soon { border-color: #8b6914; background: #f8f3e4; }

table.dates { width: 100%; border-collapse: collapse; font-size: 0.92rem; margin: 0.5rem 0 1.25rem; }
table.dates th, table.dates td { border-top: 1px solid var(--rule); padding: 0.55rem 0.35rem; text-align: left; vertical-align: top; }
table.dates th { color: var(--muted); font-weight: normal; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }
ul.watch { padding-left: 1.1rem; margin: 0.4rem 0 1rem; }
ul.watch li { margin: 0.35rem 0; }

ul.watch.tight { font-size: 0.95rem; line-height: 1.45; }
/* .masthead .tagline { display: none; } -- ops-pass 2026-09-12: show taglines */

.howto {
  border: 1px solid var(--rule);
  background: var(--paper-tint);
  padding: 1rem 1.1rem;
  margin: 1rem 0 1.5rem;
}
.howto h2 { margin-top: 0; font-size: 1.15rem; }
.howto ol { margin: 0.4rem 0 0; padding-left: 1.2rem; }
.howto.edit { border-style: dashed; }
.zip-steps { margin: 0.5rem 0 0.75rem; }
.zip-field { display: block; margin: 0.75rem 0 0.25rem; font-size: 0.95rem; color: var(--muted); }
.zip-field input {
  display: block;
  margin-top: 0.35rem;
  padding: 0.55rem 0.7rem;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  border: 1px solid var(--rule);
  background: #fffef8;
  width: 8rem;
  font-family: "Old Standard TT", Georgia, "Times New Roman", serif;
  border-radius: 2px;
}
.table-wrap { overflow-x: auto; margin-bottom: 1rem; }

/* Ballot Desk: clickable status chips */
button.map-cell {
  font: inherit;
  text-align: left;
  cursor: pointer;
  width: 100%;
  border-radius: 2px;
}
button.map-cell:focus-visible {
  outline: 2px solid #3d6b3a;
  outline-offset: 2px;
}
#ballot-table tr.row-flash {
  background: #f8f3e4;
  transition: background 0.3s ease;
}
/* Zero-PII share row */
.share-sheet {
  margin: 1.25rem 0 0.5rem;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--rule, #1a1510);
}
.share-k {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #4a3f32);
}
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}
.share-row .btn {
  font-size: 0.9rem;
  padding: 0.35rem 0.7rem;
}
.share-toast {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  color: var(--muted, #4a3f32);
}
.share-note {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
  color: var(--muted, #4a3f32);
  max-width: 36rem;
}
.share-print {
  margin: 0.4rem 0 0;
  font-size: 0.88rem;
}