/* act.cnliberalism.org: direction A, Blueprint (Tobin's pick, 2026-11-05).
   Navy grid paper, cream line work, gold callouts. Phone first (the boards are
   390 wide); from 900px the page opens out to the desktop boards' two columns. */

@font-face { font-family: "Space Grotesk"; font-weight: 400; font-display: swap; src: url(/fonts/space-grotesk-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-display: swap; src: url(/fonts/space-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 600 700; font-display: swap; src: url(/fonts/space-grotesk-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 400; font-display: swap; src: url(/fonts/space-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Space Mono"; font-weight: 700; font-display: swap; src: url(/fonts/space-mono-latin-700-normal.woff2) format("woff2"); }

:root {
  --navy: #24305E;
  --navy-2: #2F3B68;
  --cream: #FDFBE9;
  --gold: #D9A94E;
  --line: rgba(253, 251, 233, .7);
  --line-2: rgba(253, 251, 233, .5);
  --line-3: rgba(253, 251, 233, .3);
  --soft: rgba(253, 251, 233, .85);
  --mono: "Space Mono", ui-monospace, monospace;
  --sans: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { background: var(--navy); }
body {
  margin: 0; min-height: 100vh; padding: 12px;
  background-color: var(--navy);
  background-image:
    linear-gradient(rgba(207,222,237,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(207,222,237,.07) 1px, transparent 1px),
    linear-gradient(rgba(207,222,237,.10) 1px, transparent 1px), linear-gradient(90deg, rgba(207,222,237,.10) 1px, transparent 1px);
  background-size: 100px 100px, 100px 100px, 20px 20px, 20px 20px;
  color: var(--cream); font: 500 16px/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--cream); }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--gold); color: var(--navy); padding: 10px 14px; font-weight: 700; z-index: 5; }
.skip:focus { top: 16px; }

.frame { max-width: 1180px; margin: 0 auto; border: 1.5px solid var(--line); display: flex; flex-direction: column; }
.pad { padding: 0 16px; }

/* ---------- top bar ---------- */
.top { padding: 14px 16px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.top img { display: block; width: 106px; height: 50px; }
.is-land .top img { width: 148px; height: 70px; }
.top .step { font: 12px/16px var(--mono); }
.is-land .top .step { display: none; }
.top + section { border-top: 0; }
.has-bar .top { border-bottom: 1px solid var(--line-2); }

/* ---------- type ---------- */
h1, h2, h3 { margin: 0; }
.h1 { font-size: 40px; line-height: 42px; font-weight: 700; letter-spacing: -.02em; }
.h1 em, .gold { color: var(--gold); font-style: normal; }
.h2 { font-size: 26px; line-height: 30px; font-weight: 600; letter-spacing: -.01em; }
.h3 { font-size: 21px; line-height: 26px; font-weight: 600; }
.lede { margin: 0; font-size: 17px; line-height: 25px; color: rgba(253,251,233,.88); }
.small { margin: 0; font-size: 13px; line-height: 19px; color: rgba(253,251,233,.78); }
.mono { font-family: var(--mono); }
.label { font: 12px/16px var(--mono); color: var(--soft); }
.dash { border: 1.5px dashed var(--gold); padding: 12px 14px; }
.box { border: 1.5px solid var(--line); }
.stack { display: flex; flex-direction: column; gap: 14px; }
p { margin: 0; }

/* ---------- landing ---------- */
.hero-art { display: block; width: 100%; max-width: 363px; height: auto; margin: 6px auto 0; }
.hero { position: relative; padding: 22px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.bill { font: 13px/20px var(--mono); color: var(--soft); white-space: pre-line; }
.bill strong { color: var(--cream); }
.bill a { color: var(--gold); }

.count { margin: 22px 16px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.count > div { padding: 10px 12px 8px; }
.count > div + div { border-left: 1px solid var(--line-2); }
.count .n { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.02em; }
.count .n.gold { color: var(--gold); }
.count .bar { grid-column: 1 / -1; border-top: 1px solid var(--line-2); border-left: 0 !important; padding: 8px 8px 4px; }
.count .bar svg { display: block; width: 100%; height: auto; max-height: 96px; }
.chapter-count { margin: 22px 16px 0; padding: 10px 12px; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.chapter-count + .count { margin-top: 10px; }

.pick { position: relative; margin-top: 30px; padding: 0 16px; display: flex; flex-direction: column; gap: 12px; }
fieldset { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.issue { position: relative; display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 10px 12px; border: 1.5px solid var(--line); background: var(--navy); cursor: pointer; }
.issue input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.issue .num { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--cream); display: flex; align-items: center; justify-content: center; font: 700 13px var(--mono); }
.issue .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.issue .name { font-size: 19px; line-height: 23px; font-weight: 600; }
.issue .blurb { font-size: 14px; line-height: 19px; color: rgba(253,251,233,.82); }
.issue svg { flex: none; width: 40px; height: 44px; stroke: var(--cream); }
.issue:has(input:checked), .issue.on { border: 2px solid var(--gold); background: var(--navy-2); }
.issue:has(input:checked) .num, .issue.on .num { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.issue:has(input:checked) svg, .issue.on svg { stroke: var(--gold); }
.issue:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 2px; }

.go { margin-top: 8px; min-height: 56px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; background: var(--gold); color: var(--navy); border: 0; border-radius: 0; text-decoration: none; font: 700 19px var(--sans); cursor: pointer; padding: 0 16px; }
.go:hover { color: var(--navy); background: #e4b85f; }
.go svg { width: 20px; height: 14px; }
.ob { min-height: 48px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid var(--cream); background: transparent; color: var(--cream); text-decoration: none; font: 600 16px var(--sans); padding: 0 12px; cursor: pointer; border-radius: 0; text-align: center; }
.ob:hover { border-color: var(--gold); color: var(--gold); }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }

/* ---------- title block ---------- */
.titleblock { margin: 34px 16px 16px; align-self: flex-end; width: 240px; max-width: calc(100% - 32px); font-size: 13px; line-height: 17px; }
.titleblock > div { padding: 7px 9px; }
.titleblock > div + div { border-top: 1px solid var(--line-2); }
.titleblock .row { display: flex; justify-content: space-between; gap: 8px; }

/* ---------- write ---------- */
.write { padding: 20px 16px 0; display: flex; flex-direction: column; gap: 14px; }
.write > .side, .write > .main { display: flex; flex-direction: column; gap: 14px; }
.picked { display: flex; align-items: center; gap: 10px; }
.picked .num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--navy); display: flex; align-items: center; justify-content: center; font: 700 13px var(--mono); }
.picked .name { flex: 1; font-size: 19px; line-height: 23px; font-weight: 600; }
.linkbtn { background: none; border: 0; padding: 8px 0; color: var(--cream); text-decoration: underline; font: 500 15px var(--sans); cursor: pointer; min-height: 44px; }
.linkbtn:hover { color: var(--gold); }
.preview p { font-size: 15px; line-height: 23px; color: rgba(253,251,233,.9); white-space: pre-line; }
.goes-to .hd { padding: 8px 10px; border-bottom: 1px solid var(--line-2); }
.goes-to .m { padding: 10px; display: flex; align-items: center; gap: 10px; }
.goes-to .m + .m { border-top: 1px solid rgba(253,251,233,.35); }
.goes-to .tag { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--gold); color: var(--gold); display: flex; align-items: center; justify-content: center; font: 700 12px var(--mono); }
.goes-to .who { flex: 1; font-size: 17px; line-height: 22px; font-weight: 600; }
.goes-to .what { font-size: 14px; color: rgba(253,251,233,.8); white-space: nowrap; }
.goes-to .left-out { padding: 9px 10px 10px; border-top: 1px dashed var(--line-2); font-size: 14px; line-height: 20px; color: rgba(253,251,233,.8); }
.tip { display: flex; gap: 12px; align-items: flex-start; }
.tip svg { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.notice { border: 1.5px solid var(--gold); background: var(--navy-2); padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.loading { font: 13px/20px var(--mono); color: var(--soft); padding: 16px 0; }

/* Action Network's form, embedded with no styles and dressed here. Its markup
   isn't ours: these rules lean on plain elements, not AN's class names, where
   they can. Checked against the Springfield test campaign. */
.an { color: var(--cream); font: 500 17px/1.45 var(--sans); }
.an h1, .an h2, .an h3, .an h4 { font-family: var(--sans); color: var(--cream); }
.an #action_info, .an .action_info, .an #can_embed_form_inner > h2, .an #can_embed_form_inner > h4, .an .action_description, .an #logo_wrap, .an .can_embed_logo, .an #action_summary { display: none !important; }
.an form { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.an label, .an .control-label { display: block; font: 12px/16px var(--mono); color: var(--soft); margin: 0 0 6px; }
.an input[type="text"], .an input[type="email"], .an input[type="tel"], .an input[type="number"], .an input:not([type]), .an select, .an textarea {
  display: block; width: 100%; min-height: 48px; padding: 0 12px; margin: 0;
  background: var(--navy); color: var(--cream); border: 1.5px solid var(--line); border-radius: 0;
  font: 500 17px var(--sans); -webkit-appearance: none; appearance: none;
}
.an textarea { padding: 12px; line-height: 25px; min-height: 280px; resize: vertical; }
.an input::placeholder, .an textarea::placeholder { color: rgba(253,251,233,.5); }
.an input:focus, .an select:focus, .an textarea:focus { outline: 3px solid var(--gold); outline-offset: 0; border-color: var(--gold); }
.an input[type="checkbox"], .an input[type="radio"] { width: 22px; height: 22px; accent-color: var(--gold); vertical-align: middle; margin-right: 8px; }
.an input[type="submit"], .an button[type="submit"], .an .button, .an button.btn {
  min-height: 56px; width: 100%; background: var(--gold); color: var(--navy); border: 0; border-radius: 0; cursor: pointer;
  font: 700 19px var(--sans); padding: 0 16px; -webkit-appearance: none; appearance: none;
}
.an input[type="submit"]:hover, .an button[type="submit"]:hover { background: #e4b85f; }
.an a { color: var(--gold); }
.an ul, .an ol { padding-left: 20px; }
.an .error, .an .alert, .an .can_error, .an [class*="error"] { color: #F4C7A1; font-size: 14px; }
.an small, .an .help-block, .an .disclaimer, .an #can_embed_form .smaller { font-size: 13px; line-height: 19px; color: rgba(253,251,233,.78); }
.an #can_thank_you { display: none; }
.an-holder { min-height: 120px; }

/* ---------- sent ---------- */
.sent { position: relative; padding: 26px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.sent .h1 { max-width: 200px; }
.stamp { position: absolute; right: 18px; top: 26px; transform: rotate(-8deg); border: 3px solid var(--gold); padding: 3px; }
.stamp div { border: 1.5px solid var(--gold); padding: 6px 12px 4px; color: var(--gold); font: 700 22px/24px var(--mono); letter-spacing: .12em; text-align: center; }
.stamp small { display: block; font-size: 10px; line-height: 14px; letter-spacing: .08em; }
.todo { padding: 24px 16px 0; display: flex; flex-direction: column; gap: 12px; }
.todo + .todo { padding-top: 30px; }
.todo .hd { display: flex; align-items: center; gap: 10px; }
.bn { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--cream); display: flex; align-items: center; justify-content: center; font: 700 13px var(--mono); }
.bn.on { background: var(--gold); color: var(--navy); border-color: var(--gold); }
.script { font-size: 15px; line-height: 23px; white-space: pre-line; }
.share { padding: 12px; display: flex; flex-direction: column; gap: 12px; }
.share svg.towers { display: block; width: 100%; height: 64px; }
.mylink { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line-2); padding: 0 0 0 10px; }
.mylink span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 13px var(--mono); }
.mylink button { min-height: 44px; padding: 0 14px; background: var(--gold); color: var(--navy); border: 0; font: 700 15px var(--sans); cursor: pointer; }
.card-img { display: block; width: 100%; height: auto; border: 1.5px solid var(--cream); }
.board .r { display: grid; grid-template-columns: 26px minmax(0, 1fr) 52px; gap: 8px; align-items: center; padding: 7px 10px; font-size: 15px; line-height: 20px; }
.board .r + .r { border-top: 1px solid var(--line-3); }
.board .r .k { font: 700 15px var(--mono); }
.board .r:first-child .k { color: var(--gold); }
.board .r .v { text-align: right; font-weight: 700; }
.board .r.me { background: var(--navy-2); border-top: 1.5px dashed var(--gold); }
.board .r.me .yours { color: var(--gold); }

/* ---------- no Democrats ---------- */
.delegation .m { padding: 10px; display: flex; align-items: center; gap: 10px; }
.delegation .m + .m { border-top: 1px solid var(--line-3); }
.delegation .tag { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; font: 700 12px var(--mono); }
.delegation .who { flex: 1; font-size: 17px; font-weight: 600; }

/* ---------- desktop ---------- */
@media (min-width: 900px) {
  body { padding: 24px; }
  .top { padding: 18px 28px; }
  .landing { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 8px 40px; padding: 0 28px; align-items: start; }
  .landing .hero { padding: 28px 0 0; grid-column: 1; grid-row: 1; }
  .landing .hero-art { grid-column: 2; grid-row: 1 / span 2; max-width: 520px; margin-top: 0; }
  .landing .counts { grid-column: 1; grid-row: 2; }
  .landing .count, .landing .chapter-count { margin-left: 0; margin-right: 0; }
  .landing .pick { grid-column: 1 / -1; padding: 0; margin-top: 40px; }
  .landing fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .landing .go { max-width: 420px; }
  .h1 { font-size: 56px; line-height: 58px; }
  .write { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px 40px; padding: 28px 28px 0; align-items: start; }
  .write > .side { grid-column: 1; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 24px; }
  .write > .main { grid-column: 2; display: flex; flex-direction: column; gap: 14px; }
  .sent { padding: 32px 28px 0; }
  .sent .h1 { max-width: none; }
  .stamp { right: 40px; }
  .todos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding: 8px 28px 0; }
  .todos .todo { padding: 24px 0 0 !important; }
  .board-wrap { padding: 36px 28px 0 !important; max-width: 640px; }
  .nodems { max-width: 760px; }
  .titleblock { margin-right: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .count .bar .done { transition: width .6s ease; }
}

/* The demo campaign's stand-in form (act.js standIn). */
.an .demo-note { font: 12px/18px var(--mono); color: var(--gold); border: 1px dashed currentColor; padding: 8px 10px; margin: 0 0 14px; }
