/* Governor race preview pages (governor-race/{state}-2026.html), built by
   scripts/build_governor_race_pages.py. Snapshot and summary styles mirror the
   expandable write-up on governors.html. */
.gr-crumbs { font-family: 'Work Sans', sans-serif; font-size: 13px; color: var(--ms-text-light); margin: 4px 0 6px; }
.gr-crumbs a { color: var(--ms-text-light); }
.gr-pills { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 18px; }
.gr-badge { font-family: 'Work Sans', sans-serif; font-weight: 700; font-size: 13px; padding: 4px 12px; border-radius: 4px; }
.gr-pill { font-family: 'Work Sans', sans-serif; font-weight: 600; font-size: 12px; padding: 4px 10px; border-radius: 4px;
  background: #eef3f6; color: #2b4a5e; text-transform: uppercase; letter-spacing: .03em; }
.gr-seat-note { font-family: 'Work Sans', sans-serif; color: #4a6272; margin: 0 0 8px; }
.article-body .gr-cands { list-style: none; padding: 0; margin: 8px 0 24px; font-family: 'Work Sans', sans-serif; }
.gr-cands li { padding: 10px 0; border-bottom: 1px solid #eee; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
.gr-cand-name { font-weight: 700; font-size: 16px; color: var(--ms-navy); }
.gr-cand-name a { color: inherit; }
.gr-cand-party { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #6b7f8c; }
.gr-p-d { color: #2e6e8a; }
.gr-p-r { color: #c4084f; }
.gr-cand-note { font-size: 13px; color: #6b7f8c; }
.gr-cand-won { font-size: 12px; font-weight: 700; color: #fff; background: #2b7a4b; padding: 1px 8px; border-radius: 3px; }
.gr-snapshot { font-family: 'Work Sans', sans-serif; font-size: 15px; font-weight: 600; color: #2b4a5e; background: #f7fafb;
  border-left: 3px solid #6cb3d2; padding: 12px 16px; border-radius: 0 4px 4px 0; margin: 8px 0 24px; line-height: 1.6; }
.gr-summary p { font-family: 'Merriweather', serif; font-weight: 300; font-size: 16px; line-height: 1.8; color: #233b4c; margin: 0 0 16px; }
.gr-method { font-size: 12.5px; color: #8295a3; line-height: 1.6; font-style: italic; margin: 28px 0 8px; }

/* Top row: candidates + snapshot beside the ratings map; stacks on narrow screens. */
.gr-top { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 8px 40px; align-items: start; }
.gr-top-main > h2:first-child, .gr-top-main > .gr-seat-note:first-child + h2 { margin-top: 0; }
@media (max-width: 900px) { .gr-top { grid-template-columns: minmax(0, 1fr); } }

.gr-map { margin: 4px 0 24px; padding: 14px 14px 12px; border: 1px solid #e3e9ed; border-radius: 6px; background: #fff; }
.gr-map figcaption { font-family: 'Work Sans', sans-serif; font-weight: 700; font-size: 13px; text-transform: uppercase;
  letter-spacing: .04em; color: #4a6272; margin: 0 0 6px; }
.gr-map svg { display: block; width: 100%; height: auto; }
.gr-map-states path { stroke: #fff; stroke-width: 2; }
.gr-map-states .gr-map-callout { stroke: none; }
.gr-map-states a:hover path, .gr-map-states a:focus path { opacity: .72; }
.gr-map-labels text { font-family: 'Work Sans', sans-serif; font-size: 40px; font-weight: 700; text-anchor: middle; pointer-events: none; }
.gr-map-current path { fill: none; stroke: var(--ms-navy, #043858); stroke-width: 12; stroke-linejoin: round; pointer-events: none; }
.article-body .gr-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 0; margin: 10px 0 12px;
  font-family: 'Work Sans', sans-serif; font-size: 12px; color: #4a6272; }
.article-body .gr-legend li { margin: 0; font-family: inherit; font-size: inherit; display: flex; align-items: center; gap: 5px; }
.gr-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 2px; }
.gr-jump-label { display: block; font-family: 'Work Sans', sans-serif; font-size: 12px; font-weight: 600; color: #4a6272; margin: 0 0 4px; }
.gr-jump { width: 100%; font-family: 'Work Sans', sans-serif; font-size: 14px; padding: 7px 8px; border: 1px solid #c9d5dc;
  border-radius: 4px; background: #fff; color: #233b4c; }

/* Governors since 1991: proportional party strip plus a plain list. */
.gr-hist-lede { font-family: 'Work Sans', sans-serif !important; font-weight: 600 !important; font-size: 15px !important; line-height: 1.5 !important; color: #2b4a5e; margin: 0 0 12px !important; }
.gr-strip { position: relative; height: 38px; background: #f1f4f6; border-radius: 4px; overflow: hidden; }
.article-body a.gr-seg { position: absolute; top: 0; bottom: 0; box-shadow: inset -2px 0 0 #fff; display: flex; align-items: center; overflow: hidden; text-decoration: none; }
.article-body a.gr-seg:hover, .article-body a.gr-seg:focus { filter: brightness(.88); text-decoration: none; }
.gr-seg i { position: absolute; top: 7px; bottom: 7px; border-left: 1px dashed rgba(255,255,255,.85); }
.gr-seg span { position: relative; font-family: 'Work Sans', sans-serif; font-size: 12px; font-weight: 700; color: #fff; padding: 0 6px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-shadow: 0 0 3px rgba(0,0,0,.35); }
.gr-axis { position: relative; height: 18px; margin: 2px 0 6px; font-family: 'Work Sans', sans-serif; font-size: 11px; color: #8295a3; }
.gr-axis span { position: absolute; transform: translateX(-50%); }
.gr-axis span.gr-tick-first { transform: none; }
.gr-axis span::before { content: ''; position: absolute; left: 50%; top: -4px; height: 4px; border-left: 1px solid #b8c5ce; }
.gr-axis span.gr-tick-first::before { left: 0; }
.article-body p.gr-hist-key { font-family: 'Work Sans', sans-serif; font-size: 12px; font-weight: 400; line-height: 1.5; color: #8295a3; margin: 0 0 14px; }
.article-body .gr-govs { list-style: none; padding: 0; margin: 0 0 16px; font-family: 'Work Sans', sans-serif; font-size: 14px; }
.article-body .gr-govs li { margin: 0; padding: 9px 0; border-bottom: 1px solid #f0f0f0; display: flex; align-items: baseline; gap: 10px; }
.gr-govs li > i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; flex: none; transform: translateY(1px); }
.gr-gov-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
.article-body a.gr-gov-name { font-weight: 700; color: var(--ms-navy); }
.gr-gov-meta { color: #6b7f8c; font-size: 13px; }
.gr-gov-desc { color: #4a6272; font-size: 13px; line-height: 1.5; margin-top: 2px; }
.article-body a.gr-hist-more { display: inline-block; font-family: 'Work Sans', sans-serif; font-weight: 700; font-size: 14px;
  color: var(--ms-navy); border: 1px solid #c9d5dc; border-radius: 6px; padding: 10px 16px; margin: 4px 0 0; }
.article-body a.gr-hist-more:hover { border-color: var(--ms-navy); text-decoration: none; background: #f7fafb; }
@media (max-width: 600px) { .gr-axis .gr-tick-minor { display: none; } }

/* Results box (from Election Night): status line, headline, one bar per candidate. */
.gr-result { border: 1px solid #dde4ea; border-radius: 8px; padding: 16px 20px 12px; margin: 0 0 28px; background: #fff;
  box-shadow: 0 1px 4px rgba(4,56,88,.06); }
.gr-result--won { border-top: 4px solid var(--ms-navy, #043858); }
.gr-result--counting { border-top: 4px solid #d0ac60; }
.gr-result--runoff { border-top: 4px solid #8b567f; }
.gr-result-status { font-family: 'Work Sans', sans-serif; font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .05em; color: #4a6272; }
.article-body h2.gr-result-head { margin: 4px 0 12px; font-size: 24px; }
.gr-result-table { width: 100%; border-collapse: collapse; font-family: 'Work Sans', sans-serif; font-size: 15px; }
.gr-result-table td { padding: 8px 6px; border-bottom: 1px solid #eef2f5; vertical-align: middle; }
.gr-r-name { width: 40%; font-weight: 700; color: var(--ms-navy); }
.gr-r-name a { color: inherit; }
.gr-r-bar { width: 34%; }
.gr-r-bar span { display: block; height: 14px; border-radius: 2px; min-width: 2px; }
.gr-r-pct { width: 10%; text-align: right; font-weight: 700; color: #233b4c; white-space: nowrap; }
.gr-r-votes { width: 16%; text-align: right; color: #6b7f8c; font-size: 13px; white-space: nowrap; }
.gr-runoff { background: #8b567f; }
.gr-result-links { font-family: 'Work Sans', sans-serif !important; font-size: 13px !important; margin: 10px 0 0 !important; }
@media (max-width: 600px) {
  .gr-r-bar { display: none; }
  .gr-r-name { width: auto; }
  .gr-r-votes { font-size: 12px; }
}
/* Other ballot-qualified candidates (minor parties, independents, write-ins) after the main contenders. */
.article-body .gr-cands li.gr-cand-minor { padding: 6px 0; }
.gr-cand-minor .gr-cand-name { font-size: 14px; font-weight: 600; }
