/* Ballot Page product chrome — brand kit applied */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wdth,wght@62..125,300..900&family=IBM+Plex+Mono:wght@400;500;600&display=swap');
:root {
  --bp-navy: #0C1C33; --bp-paper: #F7F5F0; --bp-red: #C4162B; --bp-blue: #1B4AA0;
  --bp-graphite: #5C6473; --bp-rule: #E3DFD6; --bp-chalk: #FFFFFF;
  --slate: #8A97AE; --navy-2: #33445F;
  /* legacy aliases used across app pages */
  --navy: #0C1C33; --navy2: #16294a; --blue: #1B4AA0; --sky: #eef1f7;
  --ink: #0C1C33; --mut: #5C6473; --paper: #F7F5F0; --line: #E3DFD6;
  --good: #1d8a4e; --radius: 5px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Archivo', -apple-system, sans-serif; color: var(--ink); background: var(--paper); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-stretch: 75%; font-weight: 800; letter-spacing: .005em; }
a { color: var(--bp-blue); text-decoration: none; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.topnav { background: var(--navy); color: #fff; }
.topnav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: inline-flex; align-items: baseline; gap: .2em; color: #fff; font-stretch: 75%; font-size: 1.15rem; font-weight: 300; text-transform: lowercase; }
.logo b, .logo .bold { font-weight: 800; text-transform: uppercase; }
.logo span { font-weight: 300; color: #fff; }
.btn { display: inline-block; border: 0; cursor: pointer; font: inherit; font-family: 'Archivo'; font-stretch: 85%; font-weight: 800; border-radius: var(--radius); padding: 11px 22px; transition: transform .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--bp-red); color: var(--bp-paper); }
.btn.primary:hover { background: #a91226; }
.btn.ghost { background: transparent; color: var(--bp-navy); border: 1.5px solid var(--bp-navy); }
.btn.small { padding: 7px 14px; font-size: .88rem; }
.btn:disabled { opacity: .5; cursor: default; }
.card { background: var(--bp-chalk); border: 1px solid var(--line); border-radius: 6px; padding: 24px; }
.pill { display: inline-block; font-family: 'IBM Plex Mono', monospace; font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; padding: 4px 10px; border-radius: 3px; background: var(--sky); color: var(--bp-blue); }
.pill.live { background: #e2f4e9; color: var(--good); }
.muted { color: var(--mut); }
input, select, textarea { font: inherit; font-family: 'Archivo'; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 4px; width: 100%; background: var(--bp-chalk); }
label { font-family: 'IBM Plex Mono', monospace; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; display: block; margin: 14px 0 6px; color: var(--bp-graphite); }
.modal-bg { position: fixed; inset: 0; background: rgba(12,28,51,.6); display: none; align-items: center; justify-content: center; z-index: 50; }
.modal-bg.open { display: flex; }
.modal { background: var(--bp-paper); border-radius: 8px; padding: 30px; width: min(560px, 92vw); max-height: 88vh; overflow: auto; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tpl-swatch { height: 86px; border-radius: 5px 5px 0 0; position: relative; overflow: hidden; }
.tpl-swatch .bar { position: absolute; left: 14px; right: 40%; top: 18px; height: 12px; border-radius: 2px; background: rgba(255,255,255,.92); }
.tpl-swatch .bar.b2 { top: 40px; right: 55%; height: 8px; opacity: .7; }
.tpl-swatch .dot { position: absolute; right: 14px; top: 18px; width: 34px; height: 34px; border-radius: 50%; }
.tpl-card { border: 2px solid var(--line); border-radius: 6px; background: var(--bp-chalk); cursor: pointer; overflow: hidden; }
.tpl-card.sel { border-color: var(--bp-navy); box-shadow: 0 0 0 3px var(--sky); }
.tpl-card .body { padding: 12px 14px; }
.tpl-card h4 { font-size: .98rem; }
.tpl-card p { font-size: .8rem; color: var(--mut); margin-top: 3px; }
