/* Wave 12, D6 and D15: the politics pages. Loaded only by the engine-rendered politics pages; the site's
   global.css (the header, the footer, the tokens) is loaded first. One column under 980 px, the rail parked
   below; three columns from 980 px: the levels or the drill on the left, the ladder or the detail in the middle,
   time and connection on the right. */

.civic-page { padding-block: 22px 56px; }
.civic-frame { display: grid; gap: 28px; min-width: 0; }
.civic-frame > * { min-width: 0; }
.civic-left, .civic-right { font-size: .92rem; }
.civic-left nav ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.civic-left a, .civic-right a, .civic-main a { color: var(--navy-soft); text-decoration: underline; text-underline-offset: 2px; }
.civic-left .current { font-weight: 700; }
.civic-left h2, .civic-right h2 { margin: 0 0 8px; font: 700 .78rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.civic-right section { padding: 14px 0; border-top: 1px solid var(--line); }
.civic-main h1 { margin: 0 0 6px; font: 600 clamp(1.7rem, 4vw, 2.5rem)/1.12 var(--serif); }
.civic-lede { margin: 0 0 18px; color: var(--muted); }
.civic-note { margin: 0 0 14px; padding: 10px 12px; background: var(--white); border-left: 3px solid var(--cyan); }
.civic-crumbs { margin: 0 0 10px; font-size: .85rem; color: var(--muted); }
.civic-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.civic-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--line); }
.civic-search { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 0 0 18px; }
.civic-search label { display: block; width: 100%; font-weight: 600; font-size: .9rem; }
.civic-search input { flex: 1 1 200px; min-width: 0; padding: 9px 10px; font: inherit; border: 1px solid var(--line); background: var(--white); }
.civic-search button { padding: 9px 14px; font: inherit; color: var(--white); background: var(--navy); border: 0; cursor: pointer; }

.rung { margin: 0 0 30px; }
.rung > h2 { margin: 0 0 4px; padding-top: 12px; border-top: 2px solid var(--ink); font: 600 1.35rem/1.2 var(--serif); }
.rung-label { margin: 0 0 10px; font: 700 .74rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.chamber-line { margin: 0 0 10px; font-size: .9rem; }
.office { margin: 0 0 16px; padding: 14px; background: var(--white); border: 1px solid var(--line); }
.office > h3 { margin: 0; font: 600 1.08rem/1.25 var(--serif); }
.office-code { margin: 2px 0 8px; font-size: .74rem; color: var(--muted); word-break: break-all; }
.decides { margin: 0 0 10px; font-size: .9rem; }
.decides span, .class-label { display: inline-block; margin-right: 6px; font: 700 .68rem/1.4 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 4px 12px; padding: 12px 0; border-top: 1px solid var(--paper-deep); }
.card:first-of-type { border-top: 0; }
.card-face { grid-row: span 6; width: 56px; height: 68px; object-fit: cover; background: var(--paper-deep); }
.monogram { display: grid; place-items: center; font: 700 1.2rem var(--serif); color: var(--navy-soft); }
.card-name { margin: 0; font-weight: 700; }
.card p { margin: 0; font-size: .9rem; overflow-wrap: anywhere; }
.card .meta { color: var(--muted); font-size: .8rem; }
.contact { list-style: none; margin: 4px 0; padding: 0; font-size: .9rem; overflow-wrap: anywhere; }
.ballot-box { margin: 10px 0 0; padding: 10px 12px; background: var(--paper); border: 1px dashed var(--line); }
.ballot-box h4, .contest h3 { margin: 0 0 6px; font-size: .95rem; }
.candidates { list-style: none; margin: 0; padding: 0; }
.candidates li { padding: 4px 0; border-top: 1px solid var(--paper-deep); overflow-wrap: anywhere; }
.candidates li:first-child { border-top: 0; }
.your-ballot { margin: 0 0 30px; padding: 16px; background: var(--white); border: 2px solid var(--navy); }
.your-ballot > h2 { margin: 0 0 8px; font: 600 1.4rem/1.2 var(--serif); }
.your-ballot ul.dates { margin: 0 0 10px; padding-left: 18px; font-size: .92rem; }
.ballot-group { margin: 14px 0 0; }
.ballot-group > h3 { margin: 0 0 6px; font: 700 .78rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
.contest { margin: 0 0 10px; padding: 8px 0; border-top: 1px solid var(--paper-deep); }
.question { margin: 0 0 6px; font-size: .92rem; }
.source-line { margin: 8px 0 0; font-size: .78rem; color: var(--muted); overflow-wrap: anywhere; }
.civic-unknown { margin: 14px 0; padding: 10px 12px; background: var(--paper); font-size: .9rem; }
.census-notice { margin: 26px 0 0; font-size: .76rem; color: var(--muted); }

@media (min-width: 980px) {
  .civic-frame { grid-template-columns: 210px minmax(0, 1fr) 260px; align-items: start; }
  .civic-left { position: sticky; top: 132px; }
  .civic-left nav ol { display: block; }
  .civic-left nav li { margin: 0 0 6px; }
}
