body[data-area-kind="state"] .state-hero .area-hero-inner {
  min-height: 500px;
}

body[data-area-kind="state"] .state-hero h1 {
  font-size: clamp(4.2rem, 8.8vw, 7.4rem);
}

body[data-area-kind="state"] .finance-section {
  padding-block: 41px;
}

.state-snapshot-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.state-snapshot-grid .snapshot-metric {
  padding-inline: 16px;
}

body[data-area-kind="state"] .elections-section {
  padding-top: 48px;
}

.state-coverage-link {
  display: inline-flex;
  min-height: 42px;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid rgba(255, 255, 255, 0.3);
  padding: 2px 0 2px 16px;
}

.state-coverage-link span {
  color: #9fb9c4;
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.state-coverage-link strong {
  margin-top: 4px;
  color: #fff;
  font-size: 0.78rem;
}

.state-coverage-link:hover strong,
.state-coverage-link:focus-visible strong {
  color: var(--area-gold-light);
}

.state-coverage-link:focus-visible {
  outline: 2px solid var(--area-gold-light);
  outline-offset: 5px;
}

.state-hero .area-identity-line {
  max-width: 310px;
}

.state-hero .area-layer {
  border-left: 0;
  padding-left: 0;
}

.state-boundary-silhouette {
  width: 100%;
  height: 310px;
  background: var(--area-gold-light);
  filter: drop-shadow(0 2px 0 rgba(8, 47, 73, 0.85));
  -webkit-mask: url("/assets/maps/california-statewide.png") center / auto 82% no-repeat;
  mask: url("/assets/maps/california-statewide.png") center / auto 82% no-repeat;
}

.state-data-center-section {
  border-top: 1px solid rgba(22, 118, 111, 0.18);
  border-bottom: 1px solid rgba(173, 125, 37, 0.2);
  padding-block: 42px;
  background:
    radial-gradient(circle at 88% 8%, rgba(224, 189, 104, 0.2), transparent 25%),
    linear-gradient(135deg, rgba(22, 118, 111, 0.08), transparent 38%),
    #f8f3e8;
}

.state-data-center-heading {
  margin-bottom: 18px;
  padding-bottom: 15px;
}

.state-data-center-heading .section-kicker {
  border-left: 4px solid var(--area-teal);
  padding-left: 9px;
  color: var(--area-teal-dark);
}

.state-stat-overview {
  display: grid;
  height: 276px;
  grid-template-columns: minmax(220px, 0.27fr) minmax(0, 0.73fr);
  overflow: hidden;
  border: 1px solid rgba(8, 47, 73, 0.22);
  background: #fffdf8;
  box-shadow: 0 14px 32px rgba(8, 47, 73, 0.13);
}

.state-stat-menu {
  display: grid;
  height: 100%;
  grid-template-rows: repeat(6, minmax(0, 1fr));
  background: linear-gradient(180deg, #f5eddd, #eaf3f0);
}

.state-stat-option {
  --stat-accent: var(--area-teal);
  --stat-wash: #edf8f5;
  --stat-line: #badbd4;
  display: flex;
  min-height: 0;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--area-line);
  border-bottom: 1px solid var(--area-line);
  padding: 0 18px;
  color: var(--area-navy);
  background: rgba(255, 255, 255, 0.22);
  font: inherit;
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color 130ms ease, background 130ms ease, border-color 130ms ease;
}

.state-stat-option::before {
  width: 4px;
  height: 18px;
  flex: 0 0 4px;
  margin-right: 11px;
  border-radius: 3px;
  background: var(--stat-accent);
  opacity: 0.48;
  content: "";
  transition: height 130ms ease, opacity 130ms ease;
}

.state-stat-option[data-stat-target="summary"],
.state-stat-panel[data-stat-panel="summary"] {
  --stat-accent: #a9781f;
  --stat-wash: #fff7df;
  --stat-line: #ead6a8;
}

.state-stat-option[data-stat-target="civic"],
.state-stat-panel[data-stat-panel="civic"] {
  --stat-accent: #16766f;
  --stat-wash: #eaf7f3;
  --stat-line: #badbd4;
}

.state-stat-option[data-stat-target="economy"],
.state-stat-panel[data-stat-panel="economy"] {
  --stat-accent: #a65f4c;
  --stat-wash: #fff0ea;
  --stat-line: #e6c1b6;
}

.state-stat-option[data-stat-target="demographics"],
.state-stat-panel[data-stat-panel="demographics"] {
  --stat-accent: #2c6f8c;
  --stat-wash: #edf6fa;
  --stat-line: #bed8e3;
}

.state-stat-option[data-stat-target="housing"],
.state-stat-panel[data-stat-panel="housing"] {
  --stat-accent: #8b5f7a;
  --stat-wash: #f8eff5;
  --stat-line: #dcc5d3;
}

.state-stat-option[data-stat-target="education"],
.state-stat-panel[data-stat-panel="education"] {
  --stat-accent: #47755b;
  --stat-wash: #eef7f0;
  --stat-line: #c5dccb;
}

.state-stat-option:last-child {
  border-bottom: 0;
}

.state-stat-option:hover,
.state-stat-option:focus-visible {
  color: var(--stat-accent);
  background: var(--stat-wash);
}

.state-stat-option:hover::before,
.state-stat-option:focus-visible::before,
.state-stat-option.is-active::before {
  height: 24px;
  opacity: 1;
}

.state-stat-option:focus-visible {
  outline: 2px solid var(--area-gold);
  outline-offset: -3px;
}

.state-stat-option.is-active {
  position: relative;
  z-index: 2;
  margin-right: -1px;
  border-right-color: var(--stat-wash);
  padding-right: 19px;
  color: var(--stat-accent);
  background: var(--stat-wash);
  box-shadow: inset 5px 0 0 var(--stat-accent);
}

.state-stat-panels {
  position: relative;
  min-width: 0;
  height: 100%;
  background: #fffdf8;
}

.state-stat-panel {
  --stat-accent: var(--area-teal);
  --stat-wash: #edf8f5;
  --stat-line: #badbd4;
  position: relative;
  height: 100%;
  padding: 14px 20px 13px;
  background: var(--stat-wash);
  box-shadow: inset 0 4px 0 var(--stat-accent);
}

.state-stat-panel[hidden] {
  display: none;
}

.state-stat-panel-heading {
  display: flex;
  height: 43px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.state-stat-panel-heading p,
.state-stat-panel-heading h3,
.state-stat-panel-heading small {
  margin: 0;
}

.state-stat-panel-heading p {
  color: var(--stat-accent);
  font-size: 0.52rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.state-stat-panel-heading h3 {
  margin-top: 2px;
  color: var(--stat-accent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
  line-height: 1;
}

.state-stat-panel-heading small {
  max-width: 180px;
  border: 1px solid var(--stat-line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--stat-accent);
  background: rgba(255, 255, 255, 0.68);
  font-size: 0.55rem;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.state-stat-category-grid {
  display: grid;
  height: calc(100% - 43px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--stat-line);
  border-left: 1px solid var(--stat-line);
}

.state-stat-category-grid article {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  border-right: 1px solid var(--stat-line);
  border-bottom: 1px solid var(--stat-line);
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.52);
  transition: background 130ms ease;
}

.state-stat-category-grid article:hover {
  background: rgba(255, 255, 255, 0.9);
}

.state-stat-category-grid article:nth-child(3n) {
  border-right: 0;
}

.state-stat-category-grid article:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.state-stat-category-grid span,
.state-stat-category-grid strong,
.state-stat-category-grid small {
  display: block;
}

.state-stat-category-grid span {
  color: var(--stat-accent);
  font-size: 0.5rem;
  font-weight: 850;
  letter-spacing: 0.055em;
  line-height: 1.2;
  text-transform: uppercase;
}

.state-stat-category-grid strong {
  overflow: hidden;
  margin-top: 4px;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.75vw, 1.4rem);
  font-weight: 500;
  line-height: 1;
  letter-spacing: -0.025em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.state-stat-category-grid small {
  margin-top: 4px;
  color: var(--area-muted);
  font-size: 0.49rem;
  font-weight: 680;
  line-height: 1.2;
}

.state-past-elections {
  margin-top: 24px;
  border: 1px solid var(--area-line);
  border-top: 4px solid var(--area-gold);
  background: #f8f4ea;
  box-shadow: 0 10px 24px rgba(8, 47, 73, 0.07);
}

.state-election-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin: -4px 0 16px;
  border-left: 4px solid var(--area-teal);
  padding-left: 12px;
}

.state-election-group-heading span,
.state-election-group-heading h3,
.state-election-group-heading small {
  display: block;
  margin: 0;
}

.state-election-group-heading span {
  margin-bottom: 4px;
  color: var(--area-gold);
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.state-election-group-heading h3 {
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.3rem, 2.3vw, 1.8rem);
  font-weight: 500;
  line-height: 1.15;
}

.state-election-group-heading small {
  flex: 0 0 auto;
  color: var(--area-muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.state-proposition-group {
  margin-top: 40px;
  border-top: 1px solid var(--area-line);
  padding-top: 24px;
}

.state-office-grid .race-card {
  min-height: 148px;
  padding: 16px 18px 14px;
}

.state-office-grid .race-card-topline {
  margin-bottom: 6px;
}

.state-office-grid .race-card h3 {
  margin-bottom: 7px;
  font-size: 1.12rem;
  line-height: 1.17;
}

.state-office-grid .race-card-meta {
  margin-top: 3px;
  font-size: 0.64rem;
  line-height: 1.35;
}

.state-office-grid .race-card-link {
  margin-top: 10px;
  padding-top: 9px;
}

.state-proposition-grid .proposition-card {
  position: relative;
  min-height: 148px;
  overflow: hidden;
  padding: 16px 18px 14px;
}

.state-proposition-grid .proposition-card .race-card-topline {
  min-height: 0;
  align-items: flex-start;
  margin-bottom: 6px;
  padding-right: 62px;
}

.state-proposition-grid .proposition-card .race-card-main {
  padding-right: 62px;
}

.state-proposition-number {
  position: absolute;
  z-index: 1;
  top: -3px;
  right: -1px;
  display: grid;
  width: 66px;
  height: 68px;
  align-content: center;
  justify-items: center;
  border-bottom: 4px solid var(--area-gold);
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
  background: var(--area-navy);
  box-shadow: -7px 7px 18px rgba(8, 47, 73, 0.12);
  transition: background 150ms ease;
}

.state-proposition-number small,
.state-proposition-number strong {
  display: block;
  line-height: 1;
}

.state-proposition-number small {
  margin-bottom: 3px;
  color: #dce9ec;
  font-size: 0.48rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.state-proposition-number strong {
  color: var(--area-gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.82rem;
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 600;
}

.state-proposition-grid .proposition-card:hover .state-proposition-number,
.state-proposition-grid .proposition-card:focus-visible .state-proposition-number {
  background: var(--area-teal-dark);
}

.state-proposition-grid .proposition-card:nth-child(3n + 1) {
  border-top: 3px solid var(--area-gold);
}

.state-proposition-grid .proposition-card:nth-child(3n + 2) {
  border-top: 3px solid var(--area-teal);
}

.state-proposition-grid .proposition-card:nth-child(3n) {
  border-top: 3px solid var(--area-rust);
}

.state-proposition-grid .proposition-card h3 {
  margin-bottom: 7px;
  font-size: 1.02rem;
  line-height: 1.17;
}

.state-proposition-grid .proposition-card .race-card-meta {
  margin-top: 3px;
  font-size: 0.64rem;
  line-height: 1.35;
}

.state-proposition-grid .proposition-card .race-card-link {
  margin-top: 10px;
  padding-top: 9px;
}

.state-past-elections > summary {
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px 20px;
  color: var(--area-navy);
  cursor: pointer;
  list-style: none;
}

.state-past-elections > summary::-webkit-details-marker {
  display: none;
}

.state-past-elections > summary:hover {
  background: rgba(224, 189, 104, 0.11);
}

.state-past-elections > summary:focus-visible {
  outline: 3px solid rgba(22, 118, 111, 0.24);
  outline-offset: -3px;
}

.state-past-elections-copy,
.state-past-elections-copy > span,
.state-past-elections-copy > strong {
  display: block;
}

.state-past-elections-copy > span {
  margin-bottom: 5px;
  color: var(--area-gold);
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.state-past-elections-copy > strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.2;
}

.state-past-elections-action {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--area-teal-dark);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.state-past-elections-action b {
  --ptp-disclosure-size: 28px;
  --ptp-disclosure-glyph-size: 0.94rem;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(22, 118, 111, 0.42);
  border-radius: 50%;
  background: #fff;
  font-size: 0.94rem;
  transition: color 150ms ease, background 150ms ease;
}

.state-past-elections-action b::before {
  content: "+";
}

.state-past-elections-action .is-open {
  display: none;
}

.state-past-elections[open] .state-past-elections-action .is-closed {
  display: none;
}

.state-past-elections[open] .state-past-elections-action .is-open {
  display: inline;
}

.state-past-elections[open] .state-past-elections-action b {
  color: #fff;
  background: var(--area-teal-dark);
}

.state-past-elections[open] .state-past-elections-action b::before {
  content: "\2212";
}

.state-past-elections-body {
  border-top: 1px solid var(--area-line);
  padding: 18px 20px 16px;
  background: #fffdf8;
}

.state-past-election-title {
  margin: 5px 0 0;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  font-weight: 500;
  line-height: 1.15;
}

.state-past-elections-body > .precinct-election-link {
  margin: 0 0 18px;
}

.state-past-state-mark,
.state-past-proposition-mark {
  overflow: hidden;
}

.state-past-state-mark::before {
  width: 30px;
  height: 30px;
  content: "";
  background: var(--area-gold);
  -webkit-mask: url("/assets/maps/california-statewide.png") center / auto 112% no-repeat;
  mask: url("/assets/maps/california-statewide.png") center / auto 112% no-repeat;
}

.state-past-proposition-mark {
  color: var(--area-gold);
  font-size: 1rem;
  font-weight: 900;
}

.state-past-offices-row {
  grid-template-columns: minmax(0, 1fr);
}

.state-past-offices-row .precinct-race-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.state-past-election-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 0.3fr) minmax(0, 0.7fr);
  border: 1px solid var(--area-line);
  background: #f7f1e3;
}

.state-past-election-picker {
  display: grid;
  align-content: center;
  gap: 8px;
  border-right: 1px solid var(--area-line);
  padding: 18px;
}

.state-past-election-picker > span,
.state-past-election-summary > div > span {
  color: var(--area-gold);
  font-size: 0.57rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.state-past-election-picker select {
  width: 100%;
  border: 1px solid rgba(8, 47, 73, 0.25);
  border-radius: 0;
  padding: 11px 34px 11px 12px;
  color: var(--area-navy);
  background: #fff;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
}

.state-past-election-picker select:focus-visible {
  border-color: var(--area-teal);
  outline: 3px solid rgba(22, 118, 111, 0.18);
  outline-offset: 2px;
}

.state-past-election-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 18px;
  background: #fff;
}

.state-past-election-summary h3 {
  margin: 5px 0 4px;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 500;
  line-height: 1.2;
}

.state-past-election-summary p {
  max-width: 670px;
  margin: 0;
  color: var(--area-muted);
  font-size: 0.61rem;
  line-height: 1.4;
}

.state-past-election-summary > a {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  color: var(--area-teal-dark);
  font-size: 0.64rem;
  font-weight: 850;
  white-space: nowrap;
}

.state-past-contest-group {
  margin-top: 22px;
}

.state-past-contest-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 11px;
  border-bottom: 1px solid var(--area-line);
  padding-bottom: 9px;
}

.state-past-contest-heading > div {
  display: flex;
  align-items: center;
  gap: 10px;
}

.state-past-contest-heading > div > span {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  color: #fff;
  background: var(--area-teal-dark);
  font-size: 0.55rem;
  font-weight: 900;
}

.state-past-contest-heading h3 {
  margin: 0;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.3rem;
  font-weight: 500;
}

.state-past-contest-heading > strong {
  color: var(--area-muted);
  font-size: 0.59rem;
}

.state-past-office-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.state-past-office-card {
  display: flex;
  min-height: 132px;
  flex-direction: column;
  border: 1px solid rgba(22, 118, 111, 0.32);
  border-top: 3px solid var(--area-teal);
  padding: 12px 13px 11px;
  background: #fff;
  transition: background 150ms ease, border-color 150ms ease;
}

.state-past-office-card > small {
  order: 1;
  margin-top: 9px;
  color: var(--area-gold);
  font-size: 0.5rem;
  font-weight: 900;
  letter-spacing: 0.065em;
  text-transform: uppercase;
}

.state-past-office-card h4 {
  order: 2;
  margin: 4px 0 8px;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.93rem;
  font-weight: 500;
  line-height: 1.15;
}

.state-past-office-status {
  order: 0;
  align-self: flex-start;
  color: var(--area-teal-dark);
  font-size: 0.49rem;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.state-past-office-card > a {
  display: inline-flex;
  order: 3;
  align-items: center;
  gap: 4px;
  margin-top: auto;
  border-top: 1px solid var(--area-line);
  padding-top: 8px;
  color: var(--area-teal-dark);
  font-size: 0.57rem;
  font-weight: 850;
}

.state-past-office-card > a[hidden] {
  display: none;
}

.state-past-office-card.is-inactive {
  border-color: #cdd5d8;
  border-top-color: #aeb9bd;
  background: #edf0f1;
}

.state-past-office-card.is-inactive .state-past-office-status,
.state-past-office-card.is-inactive > small,
.state-past-office-card.is-inactive h4 {
  color: #68777e;
}

.state-past-proposition-group {
  margin-top: 28px;
}

.state-past-proposition-group .state-past-contest-heading > div > span {
  background: var(--area-gold);
}

.state-past-proposition-grid .proposition-card {
  min-height: 138px;
}

.state-past-measure-card {
  overflow: hidden;
  border-top: 0;
}

.state-past-measure-result {
  display: block;
  margin: -15px -16px 13px;
  padding: 6px 16px;
  color: #fff;
  background: var(--area-teal);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.095em;
  line-height: 1.25;
}

.state-past-measure-card[data-result="rejected"] .state-past-measure-result {
  background: var(--area-rust);
}

.state-past-election-empty {
  border: 1px dashed #aeb9bd;
  padding: 18px;
  color: var(--area-muted);
  background: #f2f3f1;
}

.state-past-election-empty strong {
  display: block;
  margin-bottom: 4px;
  color: var(--area-navy);
  font-size: 0.69rem;
}

.state-past-election-empty p {
  margin: 0;
  font-size: 0.61rem;
  line-height: 1.4;
}

.state-election-archive-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--area-teal-dark);
  font-size: 0.64rem;
  font-weight: 850;
}

.state-election-archive-link:hover,
.state-election-archive-link:focus-visible {
  color: var(--area-gold);
}

.county-explorer-section {
  border-top: 1px solid var(--area-line);
  border-bottom: 1px solid var(--area-line);
  padding-top: 22px;
  background:
    linear-gradient(135deg, rgba(22, 118, 111, 0.055), transparent 36%),
    #f4efe3;
}

.county-explorer-heading {
  margin-bottom: 14px;
  background: var(--area-paper);
  box-shadow: 0 -22px 0 var(--area-paper);
}

.county-explorer-toolbar {
  display: grid;
  max-width: 760px;
  grid-template-columns: 120px minmax(0, 1fr);
  gap: 8px 14px;
  align-items: center;
  margin-bottom: 22px;
  border: 1px solid var(--area-line);
  padding: 15px;
  background: rgba(255, 255, 255, 0.72);
}

.county-explorer-toolbar > label {
  color: var(--area-navy);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.county-picker-control {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.county-picker-control select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #a9b9bb;
  border-radius: 0;
  padding: 0 38px 0 12px;
  color: var(--area-ink);
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 720;
}

.county-picker-control select:focus-visible {
  border-color: var(--area-teal);
  outline: 3px solid rgba(22, 118, 111, 0.18);
}

.county-picker-open {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  color: #fff;
  background: var(--area-navy);
  font-size: 0.75rem;
  font-weight: 850;
}

.county-picker-open:hover,
.county-picker-open:focus-visible {
  background: var(--area-teal);
  outline: 2px solid var(--area-navy);
  outline-offset: 2px;
}

.county-explorer-toolbar > p {
  grid-column: 2;
  margin: 0;
  color: var(--area-muted);
  font-size: 0.67rem;
}

.county-explorer-layout {
  --county-explorer-panel-height: 600px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: clamp(22px, 3.6vw, 46px);
  align-items: stretch;
}

.state-map-window {
  display: grid;
  height: var(--county-explorer-panel-height);
  min-width: 0;
  grid-template-rows: auto minmax(0, 1fr) auto;
  margin: 0;
  border: 1px solid rgba(8, 47, 73, 0.18);
  background: #fffdf8;
  box-shadow: 0 20px 52px rgba(8, 47, 73, 0.1);
}

.state-map-topline {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--area-line);
  padding: 12px 16px;
}

.state-map-topline > div:first-child {
  display: flex;
  flex-direction: column;
}

.state-map-topline > div:first-child span {
  color: var(--area-teal);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.state-map-topline > div:first-child strong {
  margin-top: 3px;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
  font-weight: 500;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 14px;
  color: var(--area-muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.map-legend i {
  display: inline-block;
  width: 11px;
  height: 11px;
  border: 1px solid rgba(8, 47, 73, 0.42);
  background: #d9e2df;
}

.map-legend i.is-published {
  border-color: #0d665f;
  background: #68bea9;
}

.state-map-stage {
  position: relative;
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: hidden;
  padding: 20px;
  background:
    radial-gradient(circle at 49% 46%, rgba(127, 212, 188, 0.12), transparent 43%),
    linear-gradient(rgba(8, 47, 73, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 47, 73, 0.025) 1px, transparent 1px),
    #f8f5ed;
  background-size: auto, 34px 34px, 34px 34px, auto;
}

.california-county-map {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: 100%;
  overflow: visible;
}

.county-shape {
  vector-effect: non-scaling-stroke;
  fill: #d9e2df;
  stroke: #fffdf8;
  stroke-width: 1;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 130ms ease, filter 130ms ease, stroke 130ms ease;
}

.county-link.is-published .county-shape {
  fill: #68bea9;
}

.county-link:hover .county-shape,
.county-link:focus .county-shape,
.county-link.is-selected .county-shape {
  fill: var(--area-gold-light);
  stroke: var(--area-navy);
  stroke-width: 1;
  filter: none;
}

.county-link:focus {
  outline: none;
}

.map-loading {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--area-muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.map-loading.is-error {
  max-width: 300px;
  color: #8f4334;
  line-height: 1.5;
  text-align: center;
  text-transform: none;
}

.map-tooltip {
  position: absolute;
  z-index: 5;
  max-width: 220px;
  transform: translate(12px, calc(-100% - 12px));
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 7px 9px;
  color: #fff;
  background: rgba(8, 47, 73, 0.96);
  box-shadow: 0 8px 20px rgba(8, 47, 73, 0.22);
  font-size: 0.67rem;
  font-weight: 800;
  pointer-events: none;
}

.state-map-window figcaption {
  border-top: 1px solid var(--area-line);
  padding: 12px 16px;
  color: var(--area-muted);
  font-size: 0.66rem;
  line-height: 1.5;
}

.county-preview-card {
  position: sticky;
  top: 88px;
  height: var(--county-explorer-panel-height);
  overflow: hidden;
  border: 1px solid rgba(8, 47, 73, 0.22);
  background: #fff;
  box-shadow: var(--area-shadow);
}

.county-preview-card::before {
  display: block;
  height: 6px;
  background: #9dadad;
  content: "";
}

.county-preview-card.is-published::before {
  background: var(--area-teal);
}

.county-preview-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--area-line);
  padding: 12px 16px;
  color: var(--area-muted);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.county-profile-status {
  border: 1px solid #aab9b8;
  padding: 4px 6px;
  color: #607477;
  background: #eef2f0;
  letter-spacing: 0;
  text-transform: none;
}

.county-preview-card.is-published .county-profile-status {
  border-color: #75b9aa;
  color: #0d615b;
  background: #e0f2eb;
}

.county-mini-map {
  display: grid;
  height: 160px;
  min-height: 160px;
  place-items: center;
  padding: 14px;
  background:
    linear-gradient(rgba(8, 47, 73, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 47, 73, 0.03) 1px, transparent 1px),
    #f7f3e9;
  background-size: 24px 24px, 24px 24px, auto;
}

.county-mini-map svg {
  display: block;
  width: 100%;
  max-width: 230px;
  height: 132px;
}

.county-mini-map path {
  fill: #aebdbc;
  stroke: var(--area-navy);
  stroke-width: 1.2;
}

.county-preview-card.is-published .county-mini-map path {
  fill: var(--area-teal-light);
}

.county-preview-copy {
  padding: 18px 18px 12px;
}

.county-preview-kicker {
  margin: 0 0 7px;
  color: var(--area-teal);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.county-preview-copy h3 {
  display: flex;
  min-height: 1.96em;
  align-items: center;
  margin: 0;
  color: var(--area-navy);
  font-family: var(--area-serif-with-lining-numerals);
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.025em;
}

.county-preview-copy > p:last-child {
  margin: 10px 0 0;
  color: var(--area-muted);
  font-size: 0.72rem;
  line-height: 1.45;
}

.county-preview-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
  border-top: 1px solid var(--area-line);
  border-bottom: 1px solid var(--area-line);
}

.county-preview-facts div {
  min-width: 0;
  padding: 9px 12px 10px 18px;
}

.county-preview-facts div:nth-child(even) {
  border-left: 1px solid #e7ecea;
}

.county-preview-facts div:nth-child(n + 3) {
  border-top: 1px solid #e7ecea;
}

.county-preview-facts dt {
  color: var(--area-muted);
  font-size: 0.65rem;
}

.county-preview-facts dd {
  margin: 3px 0 0;
  color: var(--area-ink);
  font-family: var(--area-numeral-font);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.1;
}

.county-preview-facts dd small {
  display: block;
  margin-top: 2px;
  color: var(--area-muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.58rem;
  font-weight: 650;
}

.county-preview-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 18px 0;
  padding: 11px 13px;
  color: #fff;
  background: var(--area-navy);
  font-size: 0.76rem;
  font-weight: 850;
}

.county-preview-link:hover,
.county-preview-link:focus-visible {
  background: var(--area-teal);
  outline: 2px solid var(--area-navy);
  outline-offset: 2px;
}

.county-preview-link span {
  font-size: 1rem;
}

.county-preview-note {
  margin: 8px 18px 16px;
  color: var(--area-muted);
  font-size: 0.64rem;
  line-height: 1.45;
}

.state-government-section {
  background: var(--area-paper);
}

.state-related-section {
  background: var(--area-paper);
}

.state-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--area-line);
  background: var(--area-line);
}

.state-related-grid article {
  position: relative;
  min-height: 245px;
  padding: 23px;
  background: var(--area-surface);
}

.state-related-grid article > span {
  display: block;
  margin-bottom: 28px;
  color: var(--area-gold);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.state-related-grid article > strong {
  position: absolute;
  top: 17px;
  right: 20px;
  color: #ccd6d3;
  font-family: var(--area-numeral-font);
  font-size: 2rem;
  font-weight: 500;
}

.state-related-grid h3 {
  margin: 0;
  color: var(--area-navy);
  font-family: var(--area-serif-with-lining-numerals);
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.14;
}

.state-related-grid p {
  margin: 15px 0 0;
  color: var(--area-muted);
  font-size: 0.72rem;
  line-height: 1.58;
}

.state-institution-groups {
  display: grid;
  gap: 30px;
}

.state-institution-group-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.65fr) minmax(280px, 0.55fr);
  gap: 32px;
  align-items: end;
  margin-bottom: 12px;
}

.state-institution-group-heading span {
  color: var(--area-teal);
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.state-institution-group.is-boards .state-institution-group-heading span {
  color: var(--area-gold);
}

.state-institution-group-heading h3 {
  margin: 3px 0 0;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
}

.state-institution-group-heading > p {
  margin: 0;
  color: var(--area-muted);
  font-size: 0.7rem;
  line-height: 1.5;
}

.state-institution-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border: 1px solid var(--area-line);
  background: var(--area-line);
}

.state-institution-card {
  position: relative;
  display: flex;
  min-height: 244px;
  flex-direction: column;
  padding: 20px;
  background: #fff;
}

.state-institution-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--area-teal);
  content: "";
}

.state-institution-group.is-boards .state-institution-card::before {
  background: var(--area-gold);
}

.state-institution-stat {
  display: flex;
  min-height: 52px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  padding-top: 5px;
}

.state-institution-stat > span {
  padding-top: 5px;
  color: var(--area-muted);
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.state-institution-stat strong {
  color: var(--area-navy);
  font-family: var(--area-numeral-font);
  font-size: 1.65rem;
  font-weight: 500;
  line-height: 0.9;
  text-align: right;
}

.state-institution-stat small {
  display: block;
  margin-top: 5px;
  color: var(--area-muted);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.52rem;
  font-weight: 700;
  line-height: 1;
}

.state-institution-card h4 {
  margin: 0;
  color: var(--area-navy);
  font-family: var(--area-serif-with-lining-numerals);
  font-size: 1.18rem;
  font-weight: 500;
  line-height: 1.12;
}

.state-institution-card > p {
  margin: 11px 0 18px;
  color: var(--area-muted);
  font-size: 0.68rem;
  line-height: 1.48;
}

.state-institution-card a {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 4px;
  margin-top: auto;
  color: var(--area-teal);
  font-size: 0.66rem;
  font-weight: 850;
  text-decoration: none;
}

.state-institution-link-label {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.state-institution-card a:hover,
.state-institution-card a:focus-visible {
  color: var(--area-navy);
}

.state-coverage-section {
  color: #fff;
  background: var(--area-navy);
}

.state-coverage-section .section-kicker {
  color: var(--area-gold-light);
}

.state-coverage-section .section-heading h2 {
  color: #fff;
}

.state-coverage-section .section-heading > p {
  color: #b7cad2;
}

.state-coverage-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.16);
}

.state-coverage-progress,
.state-source-list {
  background: rgba(255, 255, 255, 0.035);
}

.state-coverage-progress {
  padding: 28px;
}

.coverage-progress-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
}

.coverage-progress-heading span {
  color: #b7cad2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.coverage-progress-heading strong {
  color: #fff;
  font-family: var(--area-numeral-font);
  font-size: 1.4rem;
}

.coverage-progress-track {
  height: 12px;
  margin-top: 15px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  padding: 2px;
}

.coverage-progress-track i {
  display: block;
  width: 13.793%;
  height: 100%;
  background: var(--area-gold-light);
}

.state-coverage-progress p {
  margin: 22px 0 0;
  color: #bfd0d6;
  font-size: 0.76rem;
  line-height: 1.65;
}

.state-source-list {
  display: grid;
}

.state-source-list a {
  display: flex;
  min-height: 82px;
  flex-direction: column;
  justify-content: center;
  padding: 14px 24px;
}

.state-source-list a + a {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.state-source-list strong {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 500;
}

.state-source-list span {
  margin-top: 4px;
  color: #9fb9c4;
  font-size: 0.65rem;
}

.state-source-list a:hover,
.state-source-list a:focus-visible {
  background: rgba(127, 212, 188, 0.1);
  outline: none;
}

@media (max-width: 1000px) {
  .state-snapshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .state-snapshot-grid .snapshot-metric,
  .state-snapshot-grid .snapshot-metric:nth-child(2) {
    border-right: 1px solid rgba(255, 255, 255, 0.17);
    border-bottom: 0;
  }

  .state-snapshot-grid .snapshot-metric:nth-child(3n) {
    border-right: 0;
  }

  .state-snapshot-grid .snapshot-metric:nth-child(-n + 3) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  }

  .state-stat-overview {
    height: 288px;
    grid-template-columns: minmax(195px, 0.27fr) minmax(0, 0.73fr);
  }

  .state-stat-option {
    padding-inline: 14px;
  }

  .state-stat-option.is-active {
    padding-right: 15px;
  }

  .state-stat-category-grid article {
    padding-inline: 9px;
  }

  .county-explorer-layout {
    grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
    gap: 22px;
  }

  .state-map-stage {
    min-height: 0;
  }

  .california-county-map {
    min-height: 0;
  }

  .state-institution-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .state-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .state-past-offices-row .precinct-race-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 800px) {
  .state-stat-overview {
    height: 380px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 92px minmax(0, 1fr);
  }

  .state-stat-menu {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .state-stat-option {
    border-right: 1px solid var(--area-line);
  }

  .state-stat-option:nth-child(3n) {
    border-right: 0;
  }

  .state-stat-option:nth-last-child(-n + 3) {
    border-bottom: 0;
  }

  .state-stat-option.is-active {
    margin-right: 0;
    border-right-color: var(--area-line);
    padding-right: 14px;
  }

  .state-past-election-toolbar {
    grid-template-columns: minmax(190px, 0.38fr) minmax(0, 0.62fr);
  }

  .state-past-election-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .state-past-office-grid,
  .state-past-proposition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .county-explorer-layout,
  .state-coverage-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .county-preview-card {
    position: static;
    display: grid;
    grid-template-columns: minmax(180px, 0.42fr) minmax(0, 0.58fr);
  }

  .county-preview-card::before,
  .county-preview-topline,
  .county-preview-facts,
  .county-preview-link,
  .county-preview-note {
    grid-column: 1 / -1;
  }

  .county-mini-map {
    min-height: 210px;
  }

  .county-preview-copy {
    align-self: center;
  }

  .state-institution-group-heading {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .state-institution-card {
    min-height: 220px;
  }
}

@media (max-width: 620px) {
  .state-snapshot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .state-snapshot-grid .snapshot-metric,
  .state-snapshot-grid .snapshot-metric:nth-child(3n) {
    border-right: 1px solid rgba(255, 255, 255, 0.17);
    border-bottom: 1px solid rgba(255, 255, 255, 0.17);
  }

  .state-snapshot-grid .snapshot-metric:nth-child(even) {
    border-right: 0;
  }

  .state-snapshot-grid .snapshot-metric:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .state-data-center-section {
    padding-block: 36px;
  }

  .state-past-offices-row .precinct-race-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .county-explorer-layout {
    --county-explorer-panel-height: 650px;
  }

  .state-stat-overview {
    height: 456px;
    grid-template-rows: 126px minmax(0, 1fr);
  }

  .state-stat-menu {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .state-stat-option,
  .state-stat-option:nth-child(3n),
  .state-stat-option:nth-last-child(-n + 3) {
    border-right: 1px solid var(--area-line);
    border-bottom: 1px solid var(--area-line);
  }

  .state-stat-option:nth-child(2n) {
    border-right: 0;
  }

  .state-stat-option:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .state-stat-option.is-active {
    border-right-color: var(--area-line);
  }

  .state-stat-panel {
    padding: 12px 12px 11px;
  }

  .state-stat-panel-heading {
    height: 48px;
  }

  .state-stat-panel-heading small {
    max-width: 125px;
  }

  .state-stat-category-grid {
    height: calc(100% - 48px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
  }

  .state-stat-category-grid article,
  .state-stat-category-grid article:nth-child(3n),
  .state-stat-category-grid article:nth-last-child(-n + 3) {
    border-right: 1px solid var(--area-line);
    border-bottom: 1px solid var(--area-line);
  }

  .state-stat-category-grid article:nth-child(2n) {
    border-right: 0;
  }

  .state-stat-category-grid article:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .state-stat-category-grid strong {
    font-size: clamp(0.92rem, 4.4vw, 1.18rem);
  }

  .state-past-elections > summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .state-election-group-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .state-past-elections-action {
    width: 100%;
    justify-content: space-between;
  }

  .state-past-elections-body {
    padding: 14px;
  }

  .state-past-election-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .state-past-election-picker {
    border-right: 0;
    border-bottom: 1px solid var(--area-line);
  }

  .state-past-contest-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .state-past-office-grid,
  .state-past-proposition-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .state-past-office-card {
    min-height: 122px;
  }

  body[data-area-kind="state"] .state-hero h1 {
    font-size: clamp(3.5rem, 21vw, 5rem);
  }

  .state-coverage-link {
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    border-left: 0;
    padding: 12px 0 0;
  }

  .county-explorer-toolbar {
    grid-template-columns: minmax(0, 1fr);
  }

  .county-explorer-toolbar > p {
    grid-column: 1;
  }

  .county-picker-control {
    grid-template-columns: minmax(0, 1fr);
  }

  .state-map-topline {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-legend {
    justify-content: flex-start;
  }

  .state-map-stage {
    min-height: 0;
    padding: 10px;
  }

  .california-county-map {
    height: 100%;
    min-height: 0;
  }

  .county-preview-card {
    display: block;
  }

  .county-mini-map {
    min-height: 180px;
  }

  .state-institution-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .state-institution-card {
    min-height: 205px;
  }

  .state-related-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .state-related-grid article {
    min-height: 210px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .county-shape {
    transition: none;
  }
}

.pending-county-map-card svg {
  display: block;
  width: 100%;
  height: 310px;
  padding: 24px;
}

.pending-county-map-card path {
  fill: var(--area-teal-light);
  stroke: var(--area-navy);
  stroke-width: 1.2;
}

.pending-county-map-card figcaption span {
  color: var(--area-muted);
  font-size: 0.7rem;
}

.pending-county-status {
  min-height: 430px;
}

body[data-area-kind="county-pending"] .glance-fact strong {
  font-size: clamp(1.65rem, 3vw, 2.6rem);
}
