/* Votestead design tokens. Palette from ballot stock, precinct ink and Washington evergreen. */
@font-face { font-family: "Public Sans"; src: url("/fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --stock: #F5F7F4; --paper: #FFFFFF; --ink: #152238; --ink-2: #3E4A5C; --muted: #5A6675;
  --mark: #1E6B52; --mark-dark: #16513E; --tint: #DDEBE3; --amber: #E3A72F; --amber-tint: #FBF0D9;
  --rule: #CBD3CE; --rule-soft: #E3E8E4; --error: #A4262C; --error-tint: #F8E6E7;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-sm: 4px; --r: 6px; --wrap: 1160px;
  --focus: 0 0 0 3px var(--paper), 0 0 0 6px var(--mark);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.55; color: var(--ink); background: var(--stock); font-feature-settings: "tnum" 0; }
a { color: var(--mark); text-underline-offset: 3px; }
a:hover { color: var(--mark-dark); }
:is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.skip { position: absolute; left: -999px; } .skip:focus { left: 16px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 50; }
[hidden] { display: none !important; }
img, svg { max-width: 100%; }

/* Type scale: 16, 18, 21, 24, 36, 48, 60 */
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: 36px; line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 24px; line-height: 1.25; font-weight: 750; }
h3 { font-size: 18px; line-height: 1.35; font-weight: 700; margin-top: 20px; }
p { margin: 0 0 14px; }
.lede { font-size: 21px; line-height: 1.5; color: var(--ink-2); max-width: 36em; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.mono, code { font-family: var(--mono); font-weight: 500; word-break: break-all; }
.mt { margin-top: 16px; }
.measure { max-width: 42rem; }

/* ---------- Shared components ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; background: var(--mark); color: #fff; border: 1px solid var(--mark); border-radius: var(--r); padding: 10px 18px; font: 600 16px/1.2 var(--sans); text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--mark-dark); border-color: var(--mark-dark); color: #fff; }
.btn.secondary { background: var(--paper); color: var(--ink); border-color: var(--ink); }
.btn.secondary:hover { background: var(--tint); color: var(--ink); }
.btn.green { background: var(--mark); }
.btn.danger { background: var(--error); border-color: var(--error); } .btn.danger:hover { background: #82191E; }
.btn.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.btn[disabled] { background: var(--rule-soft); border-color: var(--rule); color: var(--muted); cursor: not-allowed; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: var(--mark); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; align-items: center; }
.actions form { margin: 0; }

.card { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 24px; margin-bottom: 20px; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.split { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }

.stat { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px; }
.stat .label { color: var(--muted); font-size: 14px; }
.stat .value { font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.meter { height: 10px; background: var(--rule-soft); border-radius: 5px; position: relative; margin-top: 8px; }
.meter > span { display: block; height: 100%; background: var(--mark); border-radius: 5px; }
.meter .goal { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--ink); }

label { display: block; font-weight: 600; margin: 14px 0 6px; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: 16px/1.4 var(--sans); border: 1px solid #9AA6A0; border-radius: var(--r); background: var(--paper); color: var(--ink); }
input:hover, select:hover, textarea:hover { border-color: var(--ink-2); }
textarea { min-height: 110px; resize: vertical; }
input[type=file] { font: 15px var(--sans); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 12px 0; }
.check input { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--mark); }
.field-error { color: var(--error); font-size: 14px; margin-top: 4px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.alert { border-radius: var(--r); padding: 12px 16px; margin-bottom: 16px; border: 1px solid; border-left-width: 4px; }
.alert.success { background: var(--tint); border-color: var(--mark); }
.alert.error { background: var(--error-tint); border-color: var(--error); color: #6E1519; }
.alert.warn { background: var(--amber-tint); border-color: var(--amber); color: #4A3300; }
.alert.info { background: var(--paper); border-color: var(--ink-2); }

.badge { display: inline-block; vertical-align: middle; font-size: 13px; font-weight: 650; line-height: 1; padding: 5px 9px; border-radius: 999px; background: var(--rule-soft); color: var(--ink); border: 1px solid var(--rule); white-space: nowrap; }
.badge.open, .badge.live { background: var(--tint); color: var(--mark-dark); border-color: #A9CDB9; }
.badge.test { background: var(--amber-tint); color: #5C4000; border-color: #EBCB85; }
.badge.ready { background: var(--paper); border-color: var(--mark); color: var(--mark-dark); }
.badge.closed, .badge.tallied { background: #E6E9EF; color: var(--ink); }
.badge.certified { background: var(--ink); color: #fff; border-color: var(--ink); }
.badge.new { background: var(--amber); color: var(--ink); border-color: var(--amber); }

.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule-soft); vertical-align: top; }
thead th { font-size: 14px; color: var(--muted); font-weight: 600; border-bottom: 1px solid var(--rule); white-space: nowrap; }
tbody tr:hover { background: #FAFBFA; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.checklist { list-style: none; padding: 0; margin: 0; }
.checklist li { padding: 7px 0 7px 32px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 9px; width: 22px; height: 15px; border-radius: 50%; border: 2px solid #9AA6A0; }
.checklist li.ok::before { background: var(--mark); border-color: var(--mark); }
.share { font-size: 15px; background: var(--stock); border: 1px dashed var(--ink-2); border-radius: var(--r); padding: 14px; }

/* Voter ballot */
fieldset.question { border: 1px solid var(--rule); border-radius: var(--r); padding: 18px; margin: 0 0 16px; background: var(--paper); }
fieldset.question legend { font-weight: 750; font-size: 18px; padding: 0 6px; }
.choice { display: flex; gap: 14px; align-items: center; min-height: 52px; padding: 12px 14px; border: 1px solid var(--rule); border-radius: var(--r); margin: 8px 0; cursor: pointer; font-weight: 500; background: var(--paper); }
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 30px; height: 20px; border: 2px solid var(--ink); border-radius: 50%; margin: 0; background: var(--paper); cursor: pointer; }
.choice input:checked { background: var(--mark); border-color: var(--mark); }
.choice:has(input:checked) { border-color: var(--mark); background: var(--tint); }
.review-item { border-bottom: 1px solid var(--rule-soft); padding: 12px 0; } .review-q { font-weight: 700; margin: 0 0 4px; }
.tracker { font-family: var(--mono); font-size: 24px; font-weight: 500; letter-spacing: 1px; background: var(--amber-tint); border-left: 4px solid var(--amber); padding: 10px 14px; border-radius: var(--r-sm); }

/* ---------- Plain layout (voter, sign in, key shares) ---------- */
header.site { background: var(--paper); border-bottom: 1px solid var(--rule); }
header.site .inner { max-width: var(--wrap); margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 64px; }
header.site nav { margin-left: auto; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
header.site nav form { margin: 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -0.02em; }
.brand:hover { color: var(--ink); }
.brand .oval { width: 26px; height: 17px; border-radius: 50%; background: var(--mark); box-shadow: inset 0 0 0 2px var(--mark), 0 0 0 2px var(--ink); flex: none; }
.brand .tag { font-weight: 500; font-size: 14px; color: var(--muted); letter-spacing: 0; }
main { max-width: var(--wrap); margin: 0 auto; padding: 28px 16px 56px; display: block; }
main.narrow { max-width: 660px; }
footer.plain { max-width: var(--wrap); margin: 0 auto; padding: 20px 16px 32px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--rule); }
footer.plain a { color: var(--muted); }

/* ---------- Marketing site ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.site-header { background: var(--paper); border-bottom: 1px solid var(--rule); position: relative; z-index: 20; }
.site-header .bar { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.site-nav { display: flex; align-items: center; gap: 22px; flex: 1; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 550; font-size: 16px; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--mark-dark); }
.site-nav a[aria-current="page"] { border-bottom-color: var(--mark); }
.site-nav .right { margin-left: auto; display: flex; align-items: center; gap: 20px; }
.site-nav .right .btn { color: #fff; border-bottom: 1px solid var(--mark); padding: 10px 16px; }
.site-nav .right .btn.secondary { color: var(--ink); border: 1px solid var(--ink); }
.soon-nav .btn.secondary { color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--ink); border-radius: var(--r); min-height: 44px; padding: 8px 14px; font: 600 16px var(--sans); color: var(--ink); cursor: pointer; }
@media (max-width: 1000px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  .site-nav a[aria-current="page"] { border-bottom-color: var(--rule-soft); color: var(--mark-dark); font-weight: 750; }
  .site-nav .right { margin: 12px 0 0; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav .right .btn { margin-top: 12px; }
}

.band { padding: 72px 0; }
.band.white { background: var(--paper); border-top: 1px solid var(--rule-soft); border-bottom: 1px solid var(--rule-soft); }
.band.ink { background: var(--ink); color: #E8ECF2; }
.band.ink h2, .band.ink h3 { color: #fff; }
.band.ink a { color: #BFE3D0; }
.band.tight { padding: 48px 0; }
.band h2 { font-size: 36px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; max-width: 22em; }
.band .intro { font-size: 18px; color: var(--ink-2); max-width: 40em; margin-bottom: 32px; }
.band.ink .intro { color: #C9D2DE; }
.page-head { padding: 64px 0 40px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.page-head h1 { font-size: 48px; max-width: 16em; }
@media (max-width: 700px) { .page-head h1 { font-size: 36px; } .band h2 { font-size: 30px; } .band { padding: 52px 0; } }
.crumb { font-size: 14px; margin-bottom: 10px; color: var(--muted); }
.crumb a { color: var(--muted); }

.cols-2 { display: grid; gap: 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .cols-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; } }
.cols-3 { display: grid; gap: 32px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.rule-top { border-top: 2px solid var(--ink); padding-top: 16px; }
.band.ink .rule-top { border-top-color: #BFE3D0; }
.rule-top h3 { margin-top: 0; }

/* Home hero */
.hero { background: var(--paper); border-bottom: 1px solid var(--rule); padding: 56px 0 64px; }
.hero .cols { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 920px) { .hero .cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; } }
.hero h1 { font-size: 60px; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 20px; }
@media (max-width: 700px) { .hero h1 { font-size: 44px; } .hero { padding: 36px 0 48px; } }
.hero .lede { margin-bottom: 28px; }
.hero .owner-line { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 15px; color: var(--muted); }

/* Specimen ballot, the signature element */
.specimen { background: #FDFEFD; border: 2px solid var(--ink); border-radius: 3px; position: relative; box-shadow: 10px 10px 0 #C9DFD3; max-width: 460px; justify-self: center; width: 100%; }
.specimen-head { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 18px; border-bottom: 2px solid var(--ink); }
.specimen-head strong { font-size: 15px; font-weight: 800; }
.specimen-head span { font-size: 13px; color: var(--muted); }
.specimen-body { padding: 16px 18px 20px; overflow: hidden; transition: max-height 520ms cubic-bezier(.2,.7,.2,1), opacity 320ms ease, padding 520ms ease; max-height: 520px; }
.specimen-body .q { font-weight: 750; font-size: 18px; margin: 0 0 2px; }
.specimen-body .instr { font-size: 14px; color: var(--muted); margin: 0 0 10px; }
.oval-row { display: flex; align-items: center; gap: 14px; padding: 9px 4px; border-bottom: 1px dotted var(--rule); cursor: pointer; font-weight: 550; }
.oval-row:last-of-type { border-bottom: 0; }
.oval-row input { appearance: none; -webkit-appearance: none; width: 34px; height: 21px; border: 2px solid var(--ink); border-radius: 50%; margin: 0; flex: none; cursor: pointer; background: #fff; }
.oval-row input:checked { background: var(--mark); border-color: var(--mark); }
.oval-row .who { flex: 1; }
.oval-row .who small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; }
.specimen .seal { margin-top: 14px; width: 100%; }
.specimen .note { font-size: 13px; color: var(--muted); margin: 10px 0 0; min-height: 20px; }
.perf { position: relative; height: 0; border-top: 2px dashed var(--ink-2); margin: 0 14px; }
.perf::before, .perf::after { content: ""; position: absolute; top: -11px; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); }
.perf::before { left: -26px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -26px; clip-path: inset(0 50% 0 0); }
.stub { padding: 14px 18px 16px; }
.stub .label { font-size: 13px; color: var(--muted); margin: 0 0 4px; }
.stub .code { font-family: var(--mono); font-weight: 500; font-size: 22px; letter-spacing: 1.5px; background: var(--amber-tint); border-left: 4px solid var(--amber); padding: 6px 10px; min-height: 44px; display: flex; align-items: center; color: var(--ink); }
.stub .code.empty { color: #D9C9A3; }
.stub .said { font-size: 14px; margin: 8px 0 0; min-height: 22px; font-weight: 600; }
.specimen.sealed .specimen-body { max-height: 0; opacity: 0; padding-top: 0; padding-bottom: 0; }
.specimen .sealed-line { display: none; padding: 16px 18px; font-weight: 650; border-bottom: 0; }
.specimen.sealed .sealed-line { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.stamp { font-size: 13px; font-weight: 800; color: var(--mark-dark); border: 2px solid var(--mark); padding: 3px 8px; border-radius: 3px; transform: rotate(-4deg); }

/* Steps and tables on marketing pages */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 0; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .steps.four { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; } }
.steps li { counter-increment: step; position: relative; padding: 18px 0 18px 56px; border-top: 1px solid var(--rule); }
.steps.four li { padding: 58px 0 0; border-top: 2px solid var(--ink); }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 18px; width: 38px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; font-variant-numeric: tabular-nums; }
.steps.four li::before { top: 18px; }
.steps li h3 { margin: 0 0 6px; }
.steps li p { margin: 0; color: var(--ink-2); }
.band.ink .steps li { border-color: #3A4A63; } .band.ink .steps li::before { border-color: #BFE3D0; color: #fff; } .band.ink .steps li p { color: #C9D2DE; }

.compare th[scope=row] { font-weight: 600; color: var(--ink); width: 34%; }
.compare td, .compare th { padding: 14px 12px; }
.compare thead th { color: var(--ink); font-size: 16px; font-weight: 750; }
.yes::before { content: ""; display: inline-block; width: 16px; height: 11px; border-radius: 50%; background: var(--mark); margin-right: 8px; vertical-align: 0; }
.no::before { content: ""; display: inline-block; width: 16px; height: 11px; border-radius: 50%; border: 2px solid #9AA6A0; margin-right: 8px; box-sizing: border-box; vertical-align: 0; }

.statement { font-size: 36px; line-height: 1.2; font-weight: 800; letter-spacing: -0.02em; max-width: 20em; margin: 0 0 20px; }
@media (max-width: 700px) { .statement { font-size: 28px; } }
.cite { font-family: var(--sans); font-size: 14px; font-weight: 650; color: var(--mark-dark); background: var(--tint); padding: 2px 8px; border-radius: 3px; white-space: nowrap; }
.band.ink .cite { background: #22365A; color: #BFE3D0; }
.law { border-top: 1px solid var(--rule); padding: 24px 0; display: grid; gap: 12px 40px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .law { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.law h3 { margin: 0 0 6px; }
.law .does { background: var(--paper); border-left: 4px solid var(--mark); padding: 12px 16px; }
.law .does p:last-child { margin: 0; }

.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 18px; padding: 14px 32px 14px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 10px; font-size: 24px; font-weight: 500; color: var(--mark); }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 16px; max-width: 44em; color: var(--ink-2); }

.cta-band { background: var(--mark); color: #fff; padding: 56px 0; }
.cta-band h2 { color: #fff; font-size: 36px; margin-bottom: 8px; }
.cta-band p { color: #D9EDE2; font-size: 18px; margin: 0; }
.cta-band .row { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.cta-band .btn { background: #fff; color: var(--ink); border-color: #fff; }
.cta-band .btn:hover { background: var(--tint); }
.cta-band .cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-band .btn.secondary { background: transparent; color: #fff; border-color: #BFE3D0; }
.cta-band .btn.secondary:hover { background: rgba(255, 255, 255, .12); }

.doc { max-width: 46rem; }
.doc h2 { font-size: 24px; margin-top: 40px; }
.doc ul { padding-left: 22px; } .doc li { margin-bottom: 6px; }
.doc .version { font-size: 14px; color: var(--muted); border-left: 4px solid var(--rule); padding-left: 12px; }
.toc { position: sticky; top: 24px; font-size: 15px; }
.toc a { display: block; padding: 5px 0; color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--mark); }
.doc-layout { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) { .doc-layout { grid-template-columns: 220px minmax(0, 1fr); } }
@media (max-width: 959px) { .toc { position: static; } }

.form-panel { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 28px; }
.form-grid { display: grid; gap: 0 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .form-grid .full { grid-column: 1 / -1; } }
.result { border: 2px solid var(--mark); background: var(--tint); padding: 18px 20px; border-radius: var(--r); margin: 20px 0; }
.result.miss { border-color: var(--error); background: var(--error-tint); }
.result.wait { border-color: var(--amber); background: var(--amber-tint); }
.result h2 { font-size: 21px; margin: 0 0 6px; }
.result p:last-child { margin: 0; }

.site-footer { background: var(--ink); color: #C9D2DE; padding: 56px 0 32px; font-size: 15px; }
.site-footer a { color: #E8ECF2; text-decoration: none; } .site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; gap: 32px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.site-footer h2 { color: #fff; font-size: 16px; margin: 0 0 12px; letter-spacing: 0; }
.site-footer ul { list-style: none; margin: 0; padding: 0; } .site-footer li { margin: 0 0 8px; }
.site-footer .brand { color: #fff; } .site-footer .brand .oval { box-shadow: inset 0 0 0 2px var(--mark), 0 0 0 2px #fff; }
.site-footer .legal { border-top: 1px solid #2E3D55; margin-top: 40px; padding-top: 20px; font-size: 14px; color: #9FAABB; }

/* ---------- Admin console ---------- */
.console { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--paper); border-right: 1px solid var(--rule); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.sidebar .brand { font-size: 19px; padding: 4px 8px; }
.sidebar .search input { min-height: 40px; font-size: 15px; padding: 8px 10px; }
.sidebar .search label { position: absolute; left: -9999px; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 10px; border-radius: var(--r); color: var(--ink); text-decoration: none; font-weight: 550; }
.side-nav a:hover { background: var(--stock); }
.side-nav a[aria-current="page"] { background: var(--tint); color: var(--mark-dark); font-weight: 700; }
.side-nav .count { font-size: 12px; font-weight: 700; background: var(--amber); color: var(--ink); border-radius: 999px; padding: 2px 7px; }
.side-foot { margin-top: auto; border-top: 1px solid var(--rule-soft); padding-top: 14px; font-size: 14px; }
.side-foot .who { font-weight: 650; } .side-foot .role { color: var(--muted); margin-bottom: 8px; }
.console-main { padding: 28px 36px 64px; max-width: 1240px; width: 100%; }
.console-main h1 { font-size: 30px; }
.page-title { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; }
.page-title h1 { margin: 0; }
.page-title .sub { color: var(--muted); margin: 6px 0 0; }
.topbar { display: none; }
@media (max-width: 900px) {
  .console { grid-template-columns: minmax(0, 1fr); }
  .topbar { display: flex; align-items: center; gap: 12px; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 10px 16px; position: sticky; top: 0; z-index: 30; }
  .sidebar { display: none; position: fixed; inset: 61px 0 0 0; height: auto; z-index: 29; border-right: 0; }
  .sidebar.open { display: flex; }
  .sidebar > .brand { display: none; }
  .console-main { padding: 20px 16px 48px; }
}

.attention { list-style: none; margin: 0; padding: 0; background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); }
.attention li { display: flex; gap: 16px; align-items: center; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid var(--rule-soft); border-left: 4px solid var(--amber); flex-wrap: wrap; }
.attention li:last-child { border-bottom: 0; }
.attention li.urgent { border-left-color: var(--error); }
.attention .what { font-weight: 650; } .attention .where { color: var(--muted); font-size: 14px; }
.all-clear { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--mark); border-radius: var(--r); padding: 16px 18px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 32px 0 12px; }
.section-head h2 { margin: 0; font-size: 21px; }

.live-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 2fr) auto; gap: 20px; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--rule-soft); }
.live-row:last-child { border-bottom: 0; }
@media (max-width: 760px) { .live-row { grid-template-columns: minmax(0, 1fr); gap: 8px; } }
.live-row .meter { margin: 6px 0 4px; }

.stepper { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); counter-reset: st; }
.stepper li { counter-increment: st; padding: 12px 10px 12px; font-size: 14px; border-right: 1px solid var(--rule-soft); position: relative; color: var(--muted); }
.stepper li:last-child { border-right: 0; }
.stepper li .n { display: inline-flex; width: 28px; height: 19px; border-radius: 50%; border: 2px solid #9AA6A0; font-size: 12px; font-weight: 800; align-items: center; justify-content: center; margin-right: 6px; color: var(--muted); vertical-align: -3px; }
.stepper li .t { font-weight: 650; }
.stepper li .d { display: block; font-size: 13px; margin-top: 4px; }
.stepper li.done { color: var(--ink); } .stepper li.done .n { background: var(--mark); border-color: var(--mark); color: #fff; }
.stepper li.current { color: var(--ink); background: var(--tint); box-shadow: inset 0 -3px 0 var(--mark); }
.stepper li.current .n { border-color: var(--ink); color: var(--ink); }
@media (max-width: 1100px) { .stepper { grid-template-columns: repeat(4, minmax(0, 1fr)); } .stepper li { border-bottom: 1px solid var(--rule-soft); } }
@media (max-width: 560px) { .stepper { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.next-step { background: var(--paper); border: 1px solid var(--rule); border-left: 4px solid var(--mark); border-radius: var(--r); padding: 14px 18px; margin-bottom: 24px; }
.next-step strong { display: block; }

.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 12px; }
.filters input[type=search] { max-width: 320px; }
.filters select { max-width: 200px; }
.empty { padding: 28px; text-align: left; color: var(--ink-2); }
.empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }
th button.sort { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }
th button.sort::after { content: ""; margin-left: 4px; }
th[aria-sort=ascending] button.sort::after { content: "\2191"; } th[aria-sort=descending] button.sort::after { content: "\2193"; }

dialog.confirm { border: 1px solid var(--ink); border-radius: var(--r); padding: 0; max-width: 480px; width: calc(100% - 32px); color: var(--ink); }
dialog.confirm::backdrop { background: rgba(21, 34, 56, 0.55); }
dialog.confirm .in { padding: 22px 24px; }
dialog.confirm h2 { font-size: 21px; }
kbd { font-family: var(--mono); font-size: 12px; border: 1px solid var(--rule); border-bottom-width: 2px; border-radius: 3px; padding: 1px 5px; background: var(--stock); }

@media print {
  header.site, footer.plain, .site-header, .site-footer, .sidebar, .topbar, .actions, .no-print { display: none !important; }
  body { background: #fff; } .card { border: 0; } .console { display: block; }
}
main.site-main { max-width: none; padding: 0; }
.flush { margin-bottom: 0 !important; }
.preview-bar { background: var(--amber); color: var(--ink); font-size: 14px; font-weight: 600; text-align: center; padding: 6px 16px; }
.soon-nav { margin-left: auto; display: flex; gap: 20px; align-items: center; }
.soon-nav a { color: var(--ink); font-weight: 550; text-decoration: none; }
.soon-nav a:hover { color: var(--mark-dark); text-decoration: underline; }
@media (max-width: 520px) { .soon-nav { gap: 14px; font-size: 15px; } }
.soon-foot { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.soon-foot ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.soon-foot li { margin: 0; }
.soon-hero { background: var(--paper); padding: 64px 0 72px; border-bottom: 1px solid var(--rule); position: relative; overflow: hidden; }
.soon-hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(var(--rule-soft) 1.2px, transparent 1.2px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent 0%, transparent 45%, #000 75%); -webkit-mask-image: linear-gradient(90deg, transparent 0%, transparent 45%, #000 75%); pointer-events: none; }
.soon-hero .cols { position: relative; }
.status-pill { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 650; color: var(--mark-dark); background: var(--tint); border-radius: 999px; padding: 6px 14px 6px 10px; margin-bottom: 22px; }
.status-pill .dot { width: 18px; height: 12px; border-radius: 50%; border: 2px solid var(--mark); position: relative; overflow: hidden; }
.status-pill .dot::after { content: ""; position: absolute; inset: 0; background: var(--mark); transform-origin: left; animation: fillOval 2.4s ease-in-out infinite alternate; }
@keyframes fillOval { from { transform: scaleX(0.1); } to { transform: scaleX(1); } }
.early { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--rule); max-width: 34rem; }
.early h2 { font-size: 21px; margin-bottom: 4px; }
.early .row { display: grid; gap: 0 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 560px) { .early .row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.early label { margin-top: 12px; font-size: 15px; }
.soon-points { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 860px) { .soon-points { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.soon-hero .cols { display: grid; gap: 48px; grid-template-columns: minmax(0, 1fr); align-items: center; }
@media (min-width: 920px) { .soon-hero .cols { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 72px; } }
.soon-title { font-size: 60px; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 20px; }
@media (max-width: 700px) { .soon-title { font-size: 44px; } .soon-hero { padding: 36px 0 48px; } }
fieldset.slots { border: 1px solid var(--rule); border-radius: var(--r); padding: 4px 16px 16px; margin: 20px 0 4px; }
fieldset.slots legend { font-weight: 700; padding: 0 6px; }
.flush-card { padding: 0 !important; }
.m0 { margin: 0 !important; }
.nowrap { white-space: nowrap; }
details.msg summary { cursor: pointer; font-weight: 600; }
.msg-body { white-space: pre-wrap; font-size: 14px; background: var(--stock); border: 1px solid var(--rule-soft); border-radius: var(--r); padding: 12px; margin-top: 8px; max-width: 70ch; overflow-wrap: anywhere; }
.crumb a { color: var(--muted); }
.mail-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .mail-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mail-item { display: flex; flex-direction: column; margin: 0; }
.mail-item form { margin-top: auto; }
fieldset.choices { border: 0; padding: 0; margin: 8px 0 0; }
fieldset.choices legend { font-weight: 650; margin-bottom: 2px; }
fieldset.choices .check input { width: 18px; height: 18px; }
.mail-art { height: 120px; border-radius: var(--r); background: var(--stock); border: 1px solid var(--rule-soft); margin-bottom: 16px; position: relative; }
.mail-art.notice::before { content: ""; position: absolute; left: 50%; top: 12px; width: 76px; height: 98px; margin-left: -38px; background: #fff; border: 1px solid var(--rule); box-shadow: 0 1px 0 var(--rule); }
.mail-art.notice .win1, .mail-art.notice .win2, .mail-art.notice .code { position: absolute; left: 50%; background: var(--rule-soft); border-radius: 2px; }
.mail-art.notice .win1 { top: 20px; width: 30px; height: 7px; margin-left: -31px; }
.mail-art.notice .win2 { top: 36px; width: 38px; height: 12px; margin-left: -25px; }
.mail-art.notice .code { top: 70px; width: 30px; height: 20px; margin-left: 0; background: var(--tint); border: 1px solid var(--mark); }
.mail-art.card4 { display: grid; grid-template-columns: repeat(2, 58px); grid-template-rows: repeat(2, 40px); gap: 4px; place-content: center; }
.mail-art.card4 span { background: #fff; border: 1px dashed #9AA6A0; position: relative; }
.mail-art.card4 span::after { content: ""; position: absolute; right: 5px; top: 5px; width: 9px; height: 11px; border: 1px solid var(--rule); }
.mail-art.labels { display: grid; grid-template-columns: repeat(3, 34px); grid-auto-rows: 14px; gap: 5px 4px; place-content: center; }
.mail-art.labels span { background: #fff; border: 1px solid var(--rule); border-radius: 3px; }
.form-narrow { max-width: 760px; }
.day-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.chip { margin: 0; font-weight: 500; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 14px; border: 1px solid #9AA6A0; border-radius: 999px; background: var(--paper); }
.chip input:checked + span { background: var(--tint); border-color: var(--mark); color: var(--mark-dark); font-weight: 650; }
.chip input:focus-visible + span { box-shadow: var(--focus); }
.stepper .step-link { display: block; color: inherit; text-decoration: none; }
.stepper .step-link:hover .t { text-decoration: underline; }
.stepper li.done .n::after { content: ""; display: inline-block; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); margin-top: -2px; }
.next-step strong { margin-bottom: 2px; }
.next-step a { margin-left: 4px; }
details.add-q { margin-top: 16px; border-top: 1px solid var(--rule-soft); padding-top: 12px; }
details.add-q summary { cursor: pointer; font-weight: 650; color: var(--mark-dark); }
.meter.slim { height: 6px; margin-top: 6px; max-width: 360px; }
table.results td { vertical-align: middle; }
.live-panel { scroll-margin-top: 16px; }
.site-nav a, .soon-nav a, .site-nav .btn { white-space: nowrap; }
.site-nav { gap: 18px; }
.site-nav .right { gap: 14px; }
@media (max-width: 1240px) and (min-width: 1001px) { .site-header .bar { gap: 18px; } .site-nav { gap: 14px; } .site-nav a { font-size: 15px; } }
@media (max-width: 1240px) {
  .menu-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; background: var(--paper); border-bottom: 1px solid var(--rule); flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 20px; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); }
  .site-nav .right { margin: 12px 0 0; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav .right .btn { margin-top: 12px; }
}
@media (max-width: 600px) { .soon-nav .hide-sm { display: none; } .stub .code { font-size: 16px; letter-spacing: 0.5px; } }
.site-header .bar { gap: 20px; }

/* State law pages */
.law-map-head { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: baseline; justify-content: space-between; margin-bottom: 20px; }
.law-map-head h2 { margin: 0; }
.legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 15px; }
.legend li { display: flex; align-items: center; gap: 8px; }
.swatch { width: 18px; height: 18px; border-radius: 4px; display: inline-block; }
.g-express { background: var(--mark); color: #fff; }
.g-nonprofit { background: #9FC9B2; color: var(--ink); }
.g-documents { background: var(--amber); color: var(--ink); }
.g-unclear { background: #D5DAD6; color: var(--ink); }
.tile-map { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: repeat(8, auto); gap: 6px; max-width: 900px; }
.tile-map li { margin: 0; }
.tile { display: flex; align-items: center; justify-content: center; aspect-ratio: 1 / 1; border-radius: 6px; font-weight: 750; font-size: 15px; text-decoration: none; letter-spacing: 0.02em; transition: transform 120ms ease; }
.tile:hover { transform: translateY(-2px); color: inherit; }
.tile.g-express:hover { color: #fff; }
.tile.live { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink); }
@media (max-width: 640px) { .tile-map { gap: 3px; } .tile { font-size: 10px; border-radius: 4px; } }
.status-dot { display: inline-block; width: 14px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 0; }
.section-row { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.section-row h2 { margin: 0; }
.section-row .filters { margin: 0; }
.state-table th[scope=row] { width: 22%; }
.verdict { border-left: 6px solid var(--mark); background: var(--paper); padding: 18px 22px; border-radius: var(--r); margin: 20px 0 0; max-width: 46rem; }
.verdict.g-border-documents { border-left-color: var(--amber); } .verdict.g-border-nonprofit { border-left-color: #6FAE8C; } .verdict.g-border-unclear { border-left-color: #9AA6A0; }
.verdict .v { font-size: 24px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 4px; }
.verdict p:last-child { margin: 0; }
.facts th[scope=row] { width: 30%; }
.avail { display: inline-flex; align-items: center; gap: 8px; font-weight: 650; padding: 6px 12px; border-radius: 999px; background: var(--tint); color: var(--mark-dark); }
.avail.soon { background: var(--amber-tint); color: #5C4000; }
.related { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.related a { display: block; padding: 14px 16px; border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper); text-decoration: none; color: var(--ink); }
.related a:hover { border-color: var(--mark); }
.related .small { display: block; color: var(--muted); margin-top: 2px; }
.tile-map .r1 { grid-row: 1; }
.tile-map .r2 { grid-row: 2; }
.tile-map .r3 { grid-row: 3; }
.tile-map .r4 { grid-row: 4; }
.tile-map .r5 { grid-row: 5; }
.tile-map .r6 { grid-row: 6; }
.tile-map .r7 { grid-row: 7; }
.tile-map .r8 { grid-row: 8; }
.tile-map .c1 { grid-column: 1; }
.tile-map .c2 { grid-column: 2; }
.tile-map .c3 { grid-column: 3; }
.tile-map .c4 { grid-column: 4; }
.tile-map .c5 { grid-column: 5; }
.tile-map .c6 { grid-column: 6; }
.tile-map .c7 { grid-column: 7; }
.tile-map .c8 { grid-column: 8; }
.tile-map .c9 { grid-column: 9; }
.tile-map .c10 { grid-column: 10; }
.tile-map .c11 { grid-column: 11; }
.tile-map .c12 { grid-column: 12; }
fieldset.bare { border: 0; padding: 0; margin: 0; min-width: 0; }
.law-notes { margin: 12px 0 0; padding: 12px 16px 12px 32px; background: var(--amber-tint); border-left: 4px solid var(--amber); border-radius: var(--r); font-size: 15px; }
.law-notes li { margin: 4px 0; }
.law-block { margin: 16px 0; padding: 14px 16px; background: var(--stock); border: 1px solid var(--rule); border-radius: var(--r); }
.law-list { list-style: none; margin: 0; padding: 0; }
.law-list li { padding: 12px 0; border-bottom: 1px solid var(--rule-soft); display: flex; gap: 12px; align-items: flex-start; }
.law-list li:last-child { border-bottom: 0; }
.law-list .check { margin: 0; }
.law-list .cite { margin-left: 6px; }
.law-list .state { flex: none; width: 22px; height: 15px; border-radius: 50%; border: 2px solid #9AA6A0; margin-top: 4px; }
.law-list .state.ok { background: var(--mark); border-color: var(--mark); }
.law-list .state.no { background: var(--error); border-color: var(--error); }
.feature-off { color: var(--muted); }
.feature-off strong { color: var(--ink); }
details.edit-q { margin-top: 8px; }
details.edit-q summary, details.peek summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--mark-dark); }
.template-list { list-style: none; margin: 12px 0 0; padding: 0; }
.template-list li { display: flex; gap: 20px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--rule-soft); }
.template-list li:last-child { border-bottom: 0; }
.template-list form { flex: none; }
.template-list ol { margin: 8px 0 0 18px; padding: 0; }
.template-list ol ul { margin: 4px 0 8px 18px; }

/* Association branding and the celebration screen */
.co-brand { width: 1px; height: 26px; background: var(--rule); display: inline-block; margin: 0 4px; }
.assoc-logo { max-height: 34px; max-width: 150px; width: auto; object-fit: contain; }
.brand-on .btn, .brand-on .btn.green { background: var(--brand, var(--mark)); border-color: var(--brand, var(--mark)); }
.brand-on .choice:has(input:checked) { border-color: var(--brand, var(--mark)); }
.cheer { border-color: var(--brand, var(--mark)); border-top: 6px solid var(--brand, var(--mark)); text-align: left; }
.cheer-top { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.cheer-logo { max-height: 56px; max-width: 180px; width: auto; }
.cheer-title { font-size: 34px; letter-spacing: -0.03em; }
.stamp-pop { font-size: 13px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand, var(--mark)); border: 2px solid var(--brand, var(--mark)); border-radius: 4px; padding: 5px 10px; transform: rotate(-5deg); animation: stampIn 420ms cubic-bezier(.2,1.5,.4,1) both; }
@keyframes stampIn { from { transform: rotate(-16deg) scale(2.4); opacity: 0; } to { transform: rotate(-5deg) scale(1); opacity: 1; } }
.celebrate { position: fixed; inset: 0 0 auto 0; height: 60vh; pointer-events: none; overflow: hidden; z-index: 5; }
.celebrate span { position: absolute; top: -24px; width: 11px; height: 16px; border-radius: 2px; opacity: 0; animation: fall 2.8s ease-in forwards; }
.celebrate span:nth-child(odd) { border-radius: 50%; width: 10px; height: 10px; }
.celebrate .c1 { background: var(--brand, var(--mark)); } .celebrate .c2 { background: var(--amber); }
.celebrate .c3 { background: var(--ink); } .celebrate .c4 { background: var(--mark); }
.celebrate .c5 { background: #7FB79B; } .celebrate .c6 { background: #E3A72F; }
.celebrate span:nth-child(1) { left: 4%; animation-delay: 0ms; } .celebrate span:nth-child(2) { left: 11%; animation-delay: 120ms; }
.celebrate span:nth-child(3) { left: 18%; animation-delay: 260ms; } .celebrate span:nth-child(4) { left: 25%; animation-delay: 60ms; }
.celebrate span:nth-child(5) { left: 32%; animation-delay: 340ms; } .celebrate span:nth-child(6) { left: 39%; animation-delay: 180ms; }
.celebrate span:nth-child(7) { left: 46%; animation-delay: 420ms; } .celebrate span:nth-child(8) { left: 53%; animation-delay: 90ms; }
.celebrate span:nth-child(9) { left: 60%; animation-delay: 300ms; } .celebrate span:nth-child(10) { left: 67%; animation-delay: 200ms; }
.celebrate span:nth-child(11) { left: 74%; animation-delay: 380ms; } .celebrate span:nth-child(12) { left: 81%; animation-delay: 140ms; }
.celebrate span:nth-child(13) { left: 88%; animation-delay: 460ms; } .celebrate span:nth-child(14) { left: 95%; animation-delay: 40ms; }
.celebrate span:nth-child(15) { left: 8%; animation-delay: 520ms; } .celebrate span:nth-child(16) { left: 36%; animation-delay: 600ms; }
.celebrate span:nth-child(17) { left: 64%; animation-delay: 560ms; } .celebrate span:nth-child(18) { left: 92%; animation-delay: 640ms; }
@keyframes fall { 0% { transform: translateY(0) rotate(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(70vh) rotate(540deg); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .celebrate { display: none; } .stamp-pop { animation: none; } }
@media print { .celebrate { display: none; } }
.logo-preview { background: var(--stock); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px; display: inline-block; }
.logo-preview img { max-height: 70px; max-width: 260px; }

/* Pricing */
.price-cards { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .price-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; } }
.price-card { background: #fff; border: 1px solid var(--rule); border-radius: var(--r); padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 14px; }
.price-card.featured { border: 2px solid var(--mark); box-shadow: 0 10px 30px rgba(21, 34, 56, .07); }
.price-card h2 { margin: 0; font-size: 22px; }
.price-card .price { margin: 0; line-height: 1.25; }
.price-card .amount { font-size: 42px; font-weight: 800; letter-spacing: -.02em; }
.price-card .per { color: var(--ink-2); font-size: 15px; }
.price-card .plus { color: var(--ink-2); font-size: 15px; }
.price-card p { margin: 0; }
.price-card .checklist { margin: 0; flex: 1; }
.price-card .checklist li { padding: 5px 0 5px 32px; font-size: 15px; }
.price-card .btn { align-self: flex-start; }
.estimator { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px; }
.estimator fieldset.choices { border: 0; padding: 0; margin: 10px 0; }
.estimator legend { font-weight: 650; padding: 0; }
.est-out { display: block; margin-top: 16px; border-top: 1px solid var(--rule); padding-top: 14px; }
.est-rows { display: grid; gap: 6px; }
.est-rows span:nth-child(even), .est-total span:last-child { font-variant-numeric: tabular-nums; }
.est-rows > span { display: inline-block; }
.est-rows { grid-template-columns: 1fr auto; }
.est-total { display: grid; grid-template-columns: 1fr auto; margin-top: 12px; padding-top: 12px; border-top: 2px solid var(--ink); font-weight: 800; font-size: 20px; }
.addons { list-style: none; margin: 10px 0 0; padding: 0; }
.addons li { padding: 10px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink-2); }
.addons li strong { color: var(--ink); }
.two-forms { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.stat .small, .stat .value.small { overflow-wrap: anywhere; }
.stat .value.small { font-size: 18px; line-height: 1.3; }
.build { color: var(--ink-2); font-size: 12px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.site-footer .build { opacity: .8; margin-left: 6px; }
.side-foot .build { margin-top: 6px; opacity: .75; }

/* The picture on the thank-you screen. Colours follow the association accent where one is set. */
.cheer-art { display: block; width: 100%; max-width: 320px; height: auto; margin: 4px auto 10px; }
.cheer-art .art-wall, .cheer-art .art-box-body { fill: var(--stock, #F1F4F1); stroke: var(--ink, #152238); stroke-width: 2.5; }
.cheer-art .art-roof { fill: var(--brand, #1E6B52); }
.cheer-art .art-door { fill: var(--brand, #1E6B52); opacity: .35; }
.cheer-art .art-card { fill: #fff; stroke: var(--ink, #152238); stroke-width: 2.5; }
.cheer-art .art-line { stroke: var(--ink-2, #5A6675); stroke-width: 2.5; stroke-linecap: round; }
.cheer-art .art-tick { fill: none; stroke: var(--brand, #1E6B52); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.cheer-art .art-slot { fill: var(--ink, #152238); }
.cheer-art .art-band { stroke: var(--brand, #1E6B52); stroke-width: 6; }
.cheer-art .art-ground path { stroke: var(--rule, #D7DDD9); stroke-width: 2.5; stroke-linecap: round; fill: none; }
.cheer-art .art-ballot { animation: drop-in 900ms cubic-bezier(.2, .8, .3, 1) both; }
.cheer-art .art-tick { animation: tick-in 500ms ease-out 700ms both; stroke-dasharray: 34; stroke-dashoffset: 34; }
.cheer-art .art-box { animation: box-settle 700ms ease-out both; }
@keyframes drop-in { from { transform: translateY(-18px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes tick-in { to { stroke-dashoffset: 0; } }
@keyframes box-settle { from { transform: scale(.96); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .cheer-art .art-ballot, .cheer-art .art-box { animation: none; }
  .cheer-art .art-tick { animation: none; stroke-dashoffset: 0; }
}

/* Portfolio and partner summary tiles. Four numbers a manager reads in one glance, then the table. */
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 0 0 20px; }
@media (max-width: 860px) { .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px) { .stat-row { grid-template-columns: minmax(0, 1fr); } }
.stat { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; }
.stat-n { display: block; font-size: 30px; line-height: 1.1; font-weight: 700; font-variant-numeric: tabular-nums; }
.stat-l { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
.stat-warn { border-color: var(--amber); background: var(--amber-tint); }
.stat-warn .stat-n { color: #5C4000; }

/* A community whose vote is short of quorum with under a week left. */
tr.row-warn > td { background: var(--amber-tint); }

/* A label, one control and a button on one line, wrapping on a narrow screen. */
.inline-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-top: 16px; }
.inline-form label { margin: 0; }
.inline-form select { width: auto; min-width: 240px; flex: 1 1 240px; }

/* A rendered email body in the template editor. Monospace so the line breaks a recipient sees are
   the line breaks shown here. */
.preview-body { white-space: pre-wrap; word-wrap: break-word; font: 14px/1.6 var(--mono); background: var(--stock); border: 1px solid var(--rule-soft); border-radius: var(--r); padding: 16px; margin: 12px 0 0; max-height: 640px; overflow: auto; }

/* Standalone pages with no site chrome, reached straight from an email. */
.plain-page { background: var(--stock); }
.plain-page .wrap.narrow { max-width: 640px; margin: 0 auto; padding: 64px 20px; }
.plain-page h1 { margin-top: 0; }
