/* FL — "The calendar" */
@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("/assets/fonts/public-sans.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --teal: #0b4a55;      /* deep gulf teal */
  --teal-deep: #073740;
  --ink: #0a2b31;       /* body text */
  --link: #0b5c69;      /* links on white */
  --muted: #3e5a60;
  --line: #c9dadd;
  --tint: #eef5f6;
  --sun: #ffc531;       /* the one accent */
  --paper: #ffffff;
  --display: "Unbounded", "Arial Black", sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --gut: clamp(16px, 4vw, 56px);
  --max: 1360px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; box-shadow: 0 0 0 5px var(--teal-deep); }
h1, h2, h3 { margin: 0; }

.skip { position: absolute; left: -999px; top: 0; background: var(--sun); color: var(--ink); padding: 12px 16px; z-index: 10; }
.skip:focus { left: 8px; }

/* ---------- masthead ---------- */
.masthead { background: var(--teal-deep); color: #fff; position: relative; z-index: 5; }
.bar { max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; }
.brand-link { color: #fff; text-decoration: none; display: inline-flex; }
.brand-link:hover .brand { color: var(--sun); }
.brand { color: #fff; font: 600 0.95rem/1 var(--display); letter-spacing: 0.01em; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; }
.brand-st { background: var(--sun); color: var(--ink); font-weight: 800; padding: 6px 7px; font-size: 0.8rem; }
.nav-wide ul, .menu ul { list-style: none; margin: 0; padding: 0; }
.nav-wide ul { display: flex; gap: 4px; }
.nav-wide a, .menu nav a { color: #fff; text-decoration: none; font-weight: 600; font-size: 0.9375rem; display: flex; align-items: center; min-height: 44px; padding: 0 12px; }
.nav-wide a:hover { color: var(--sun); }
.menu { display: none; }

/* ---------- hero: date is the headline ---------- */
.hero {
  background: var(--teal); color: #fff;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  max-width: none;
  --edge: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut)));
  padding: 0 0 0 var(--edge);
  column-gap: clamp(32px, 4vw, 72px);
}
.hero:has(#lt-next[hidden]) { padding-right: var(--edge); }
.hero:has(#lt-next[hidden]) { grid-template-columns: minmax(0, 1fr); }
.hero-text { padding: clamp(40px, 6vw, 88px) 0; align-self: center; }
.hero h1 { font: 600 clamp(1.5rem, 2.3vw, 2.1rem)/1.22 var(--display); letter-spacing: -0.01em; max-width: 24ch; }
.lede { margin: 20px 0 0; font-size: 1.125rem; line-height: 1.6; color: #e4f0f1; max-width: 46ch; }
.actions { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin-top: 32px; }
.btn, .btn-ghost {
  display: inline-flex; align-items: center; min-height: 52px; padding: 12px 22px;
  font: 700 1rem/1.25 var(--body); text-decoration: none;
}
.hero .btn { background: var(--sun); color: var(--ink); }
.hero .btn:hover { background: #fff; }
.hero .btn-ghost { color: #fff; border: 2px solid #fff; padding: 10px 20px; }
.hero .btn-ghost:hover { background: #fff; color: var(--teal); }

.next {
  display: flex; flex-direction: column; justify-content: center;
  background: var(--sun); color: var(--ink); text-decoration: none;
  padding: clamp(40px, 5vw, 80px) var(--edge) clamp(40px, 5vw, 80px) clamp(32px, 4vw, 64px);
  margin: 0;
}
.next[hidden] { display: none; }
.next [data-part="label"] { font: 700 0.875rem/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.12em; }
.next [data-part="date"] {
  display: block; margin: 0.18em 0 0.22em;
  font: 800 clamp(2.6rem, 5.9vw, 6rem)/0.98 var(--display);
  letter-spacing: -0.035em;
}
.next [data-part="type"] { font: 700 clamp(1.05rem, 1.6vw, 1.4rem)/1.3 var(--display); border-top: 3px solid var(--ink); padding-top: 18px; }
.next:hover [data-part="type"] { text-decoration: underline; text-underline-offset: 0.2em; }

.next--place {
  font: 800 clamp(2.2rem, 4.2vw, 4.4rem)/1.04 var(--display); letter-spacing: -0.03em;
  overflow-wrap: break-word;
}
.hero--county .hero-text h1 { font-size: clamp(1.75rem, 2.8vw, 2.6rem); }

/* ---------- shared rows: label column + content column ---------- */
.row, .pair { max-width: var(--max); margin: 0 auto; padding: clamp(48px, 7vw, 104px) var(--gut); }
.row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); column-gap: clamp(32px, 5vw, 96px); border-top: 1px solid var(--line); }
.hero + .row, .band + .row { border-top: 0; }
.row-head { align-self: start; position: sticky; top: 24px; }
.kicker { margin: 0 0 14px; font: 700 0.8125rem/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); display: flex; align-items: center; gap: 12px; }
.num { font: 700 0.8125rem/1 var(--display); background: var(--teal); color: #fff; padding: 6px 8px; letter-spacing: 0; }
h2 { font: 600 clamp(1.5rem, 2.4vw, 2.25rem)/1.18 var(--display); letter-spacing: -0.015em; color: var(--teal-deep); }
.row-head .note { margin-top: 20px; }
.note { color: var(--muted); font-size: 1rem; margin: 32px 0 0; max-width: 60ch; }

/* steps */
.steps { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--teal-deep); }
.step { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.step-n { font: 700 2.4rem/1 var(--display); color: var(--teal); letter-spacing: -0.04em; }
.step h3 { font: 600 1.25rem/1.3 var(--display); color: var(--teal-deep); }
.step p { margin: 8px 0 0; max-width: 62ch; }
.step-links { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.step-links a { font-weight: 700; display: inline-flex; align-items: center; min-height: 44px; }
.step--accent { background: var(--sun); border-bottom-color: var(--sun); padding-left: 20px; padding-right: 20px; margin: -1px -20px 0; grid-template-columns: 5.5rem minmax(0, 1fr); }
.step--accent .step-n, .step--accent h3, .step--accent a { color: var(--ink); }

/* capitol band */
.band { margin: 0; background: var(--teal-deep); }
.band img { width: 100%; height: clamp(240px, 36vw, 560px); object-fit: cover; object-position: 50% 45%; }
.band figcaption { max-width: var(--max); margin: 0 auto; padding: 12px var(--gut) 14px; font-size: 0.8125rem; color: #d7e6e8; }
.band figcaption a { color: #fff; }

/* elections | legislation */
.pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 0; }
.col { padding: 0 clamp(32px, 4vw, 64px); }
.col:first-child { padding-left: 0; border-right: 1px solid var(--line); }
.col:last-child { padding-right: 0; }
.col h2 { margin-bottom: 32px; }

.elections, .bills { border-top: 3px solid var(--teal-deep); }
.elections > p, .bills > p { margin: 20px 0 0; }
.election { display: grid; grid-template-columns: minmax(0, 1fr); padding: 20px 0; border-bottom: 1px solid var(--line); }
.election-date { margin: 0; font: 700 clamp(1.4rem, 2.2vw, 1.9rem)/1.15 var(--display); color: var(--teal-deep); letter-spacing: -0.02em; }
.election-type { margin: 6px 0 0; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; font-size: 0.8125rem; color: var(--muted); }
.uocava { margin-top: 20px; background: var(--tint); }
.uocava summary { cursor: pointer; min-height: 52px; display: flex; align-items: center; padding: 12px 16px; font-weight: 700; color: var(--teal-deep); }
.uocava summary:hover { text-decoration: underline; }
.uocava summary::-webkit-details-marker { display: none; }
.uocava summary { list-style: none; gap: 16px; }
.uocava summary::after { content: "+"; margin-left: auto; font: 700 1.25rem/1 var(--display); }
.uocava[open] summary::after { content: "\2212"; }
.uocava ul { margin: 0; padding: 0 16px 0 36px; font-size: 0.9375rem; }
.uocava li { margin: 6px 0; }
.fvap { margin: 0; padding: 12px 16px 16px; font-size: 0.9375rem; }
.fvap a { font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.credit { font-size: 0.875rem; color: var(--muted); margin: 24px 0 0; }

.bill { padding: 22px 0; border-bottom: 1px solid var(--line); }
.bill-meta { margin: 0 0 6px; font: 700 0.8125rem/1.3 var(--display); color: var(--teal); letter-spacing: 0.02em; }
.bill-title { font: 600 1.125rem/1.35 var(--body); color: var(--ink); }
.bill-action { margin: 8px 0 0; font-size: 0.9375rem; color: var(--muted); }
.bill a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.updated { margin: 14px 0 0; font-size: 0.8125rem; color: var(--muted); }
.cta { margin: 28px 0 0; }
.cta .btn-ghost { border: 2px solid var(--teal); color: var(--teal-deep); }
.cta .btn-ghost:hover { background: var(--teal); color: #fff; }

/* resources */
.lists { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; }
.links { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--teal-deep); }
.links li { border-bottom: 1px solid var(--line); }
.links a { display: flex; align-items: center; min-height: 52px; padding: 8px 0; font-weight: 600; text-decoration: none; }
.links a:hover { text-decoration: underline; }
.list-h { font: 700 0.8125rem/1.3 var(--body); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); margin: -2.2em 0 12px; height: 1.3em; }

/* counties */
.counties { list-style: none; margin: 0; padding: 12px 0 0; columns: 4 170px; column-gap: 32px; border-top: 3px solid var(--teal-deep); }
.counties li { break-inside: avoid; border-bottom: 1px solid var(--line); }
.counties a { display: flex; align-items: center; min-height: 44px; padding: 6px 0; font-weight: 600; text-decoration: none; line-height: 1.25; }
.counties a:hover { text-decoration: underline; }

/* county summary */
.summary { margin: 0; font-size: 1.1875rem; line-height: 1.6; max-width: 62ch; }
#about-county .credit { margin-top: 16px; }

/* about */
.about { background: var(--tint); max-width: none; padding-left: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); padding-right: max(var(--gut), calc((100vw - var(--max)) / 2 + var(--gut))); border-top: 0; }
.about .row-body p { margin: 0 0 16px; font-size: 1.125rem; max-width: 64ch; }

/* footer */
.foot { background: var(--teal-deep); color: #d7e6e8; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 40px var(--gut) 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; }
.foot-brand { margin: 0; font: 600 0.95rem/1.3 var(--display); color: #fff; }
.foot-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 24px; }
.foot-links a { color: #fff; display: inline-flex; align-items: center; min-height: 44px; }

/* ---------- narrow ---------- */
@media (max-width: 1080px) {
  .nav-wide { display: none; }
  .menu { display: block; position: relative; }
  .menu summary { list-style: none; cursor: pointer; min-height: 44px; min-width: 44px; display: flex; align-items: center; padding: 0 14px; border: 2px solid #fff; font-weight: 700; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { background: var(--sun); color: var(--ink); border-color: var(--sun); }
  .menu nav { position: absolute; right: 0; top: calc(100% + 10px); background: var(--teal-deep); min-width: 240px; padding: 8px 0; border-top: 3px solid var(--sun); }
  .menu nav a { padding: 0 20px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); padding-bottom: 0; }
  .hero-text { padding-bottom: 32px; }
  .hero { padding-right: var(--edge); }
  .next { margin: 0 calc(-1 * var(--edge)); order: -1; padding: 32px var(--edge) 28px; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-head { position: static; margin-bottom: 28px; }
  .pair { grid-template-columns: minmax(0, 1fr); row-gap: 64px; }
  .col, .col:first-child, .col:last-child { padding: 0; border: 0; }
  .lists { grid-template-columns: minmax(0, 1fr); row-gap: 40px; }
  .list-h { margin: 0 0 12px; height: auto; }
}
@media (max-width: 520px) {
  body { font-size: 1rem; }
  .brand { font-size: 0.8rem; }
  .step, .step--accent { grid-template-columns: 3rem minmax(0, 1fr); gap: 12px; }
  .step-n { font-size: 1.6rem; }
  .next [data-part="date"] { font-size: clamp(2.6rem, 13vw, 3.4rem); }
  .next--place { font-size: clamp(1.9rem, 9vw, 2.6rem); }
  .step--accent { margin: -1px calc(-1 * var(--gut)) 0; padding-left: var(--gut); padding-right: var(--gut); }
  .counties { columns: 2; column-gap: 16px; }
  .actions .btn, .actions .btn-ghost { width: 100%; }
}
