.ec-masthead { margin: 0 0 26px; padding: 0; background: var(--navy); border-bottom: 0; color: #fff; }
.ec-masthead .ec-banner { margin: 0; line-height: 0; }
.ec-masthead .ec-banner img { display: block; width: 100%; height: auto; }
.ec-masthead .ec-rules { height: 7px; margin: 12px 22px 0; border-top: 1px solid var(--gold); border-bottom: 1px solid var(--gold); }
.ec-ways { display: flex; flex-wrap: wrap; align-items: center; gap: 0 22px; padding: 6px 22px 10px; background: var(--navy-2); font-family: var(--cond); font-weight: 600; font-size: 17px; }
.ec-ways b { color: var(--gold); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; font-size: 14px; margin-right: 4px; }
.ec-ways a { display: inline-block; min-height: 44px; line-height: 44px; color: #fff; text-decoration: none; border-bottom: 2px solid transparent; }
.ec-ways a:hover, .ec-ways a:focus-visible { border-bottom-color: var(--gold); }
.ec-masthead a:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

.ec-status { border-top: 0; border-bottom: 0; padding: 0; margin: 0 0 10px; }
.ec-status h2 { color: var(--navy); }
.ec-status p { font-family: var(--serif); font-weight: 500; font-size: 24px; line-height: 1.35; color: var(--ink); max-width: 820px; }

.ec-jumpbar { position: sticky; top: 0; z-index: 5; background: var(--paper); border-top: 3px solid var(--navy); border-bottom: 1px solid var(--rule); margin: 0 0 30px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ec-jumpbar .ec-jump { flex-wrap: nowrap; white-space: nowrap; gap: 0; }
.ec-jumpbar .ec-jump a { padding: 0 16px 0 0; margin-right: 6px; color: var(--navy); }
.ec-jumpbar .ec-jump a:focus-visible { outline: 3px solid var(--gold-deep); outline-offset: -3px; }
.ec-contest, .ec-town, .ec-group { scroll-margin-top: 64px; }

.ec-group > h2 { font-size: 34px; padding-top: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--gold-deep); margin-bottom: 10px; }

.ec-race { border-left: 4px solid var(--navy); padding-left: 18px; }
.ec-contest h3 { font-size: 27px; line-height: 1.2; }
.ec-contest > p { font-size: 15px; }
.article-body table.ec-cands caption { border-bottom-width: 2px; }
.article-body table.ec-cands tbody th { font-size: 20px; padding-top: 12px; padding-bottom: 12px; }
.article-body table.ec-cands tbody td:nth-child(2) { font-family: var(--cond); font-weight: 600; letter-spacing: .02em; color: var(--ink); }

.ec-question { margin: 14px 0 16px; padding: 12px 0 0; border-top: 1px solid var(--rule); }
.ec-question h3 { font-family: var(--cond); font-weight: 700; font-size: 23px; letter-spacing: .01em; color: var(--navy); }

.article-body table.ec-table td.ec-pending { color: var(--ink-3); font-family: var(--sans); font-size: 14px; font-style: italic; }

.ec-oneline ul.plain li { padding: 4px 0 0; }
.ec-oneline ul.plain .ec-district { display: block; font-family: var(--sans); font-size: 14px; color: var(--ink-3); }

.ec-town { border-top: 6px solid var(--navy); padding-top: 14px; }
.ec-town h3 { font-size: 34px; margin-bottom: 8px; }
.ec-town > p.ec-print-link { margin: 4px 0 2px; font-family: var(--cond); font-weight: 600; font-size: 17px; letter-spacing: .02em; }
.ec-town > p.ec-print-link a { display: inline-block; min-height: 44px; line-height: 44px; color: var(--link); }
@media (min-width: 900px) {
  .ec-town > p:nth-of-type(1), .ec-town > p:nth-of-type(2) { display: inline-block; vertical-align: top; width: 48%; margin-right: 2%; }
}

p.ec-official-langs { margin: 0; padding-top: 0; }

.ec-contest > h3 + ul.plain { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 28px; margin: 6px 0 14px;
  padding: 12px 16px; list-style: none; background: var(--mist); border-left: 4px solid var(--navy); font-family: var(--cond); font-weight: 600;
  font-size: 19px; color: var(--ink); }
.ec-contest > h3 + ul.plain li { margin: 0; padding: 0; border: 0; }
.ec-contest > h3 + ul.plain li::before { content: none; }
.ec-contest > h3 + ul.plain strong { display: block; font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--ink-2, #3c4a57); }

.ec-how { background: var(--mist); border-top: 6px solid var(--navy); }

@media (max-width: 640px) {
  .ec-masthead .ec-rules { margin: 8px 16px 0; }
  .ec-ways { padding: 4px 16px 8px; gap: 0 16px; }
  .ec-status p { font-size: 20px; }
  .ec-race { padding-left: 12px; }
  .ec-jumpbar { position: static; }
  .ec-contest, .ec-town, .ec-group { scroll-margin-top: 104px; }
  .ec-group > h2 { font-size: 27px; }
  .ec-town h3 { font-size: 27px; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media print {
  header.site-header, .site-header, nav.primary, .ticker, .wx-strip, footer, .ec-jumpbar, .ec-ways, .ec-print-link { display: none !important; }
  .ec-masthead { background: none; color: var(--navy); border-bottom: 3px solid var(--navy); }
  .ec-masthead .ec-banner img { max-height: 1.6in; width: auto; max-width: 100%; }
  .ec-contest, .ec-town { break-inside: avoid; }
}
