body[data-area-kind="state"] {
  --state-boundary-mask: url("/assets/ca-state-approved/v1/assets/maps/california-statewide.png");
}

body[data-area-kind="state"][data-state-code="oh"] {
  --state-boundary-mask: url("/assets/state-pages/al/assets/ca-state-approved/v1/assets/maps/ohio-state-boundary.svg?v=1");
}

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);
}

.state-hero .area-lede {
  max-width: 720px;
}

.state-hero-facts {
  display: grid;
  width: min(680px, 100%);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 29px 0 0;
  border-block: 1px solid rgba(255, 255, 255, 0.18);
}

.state-hero-fact {
  min-width: 0;
  padding: 15px 18px 15px 0;
}

.state-hero-fact + .state-hero-fact {
  border-left: 1px solid rgba(255, 255, 255, 0.18);
  padding-left: 18px;
}

.state-hero-fact dt,
.state-hero-fact dd {
  margin: 0;
}

.state-hero-fact dt {
  margin-bottom: 5px;
  color: #9fb9c4;
  font-size: 0.61rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.state-hero-fact dd {
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(0.95rem, 1.6vw, 1.08rem);
  line-height: 1.25;
}

.state-atlas-link {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  padding: 9px 1px 7px;
  color: #d7e4e8;
  font-size: 0.76rem;
  font-weight: 800;
}

.state-atlas-link:hover,
.state-atlas-link:focus-visible {
  border-bottom-color: var(--area-gold-light);
  color: var(--area-gold-light);
  outline: none;
}

.state-atlas-link span {
  transition: transform 150ms ease;
}

.state-atlas-link:hover span,
.state-atlas-link:focus-visible span {
  transform: translateX(3px);
}

.state-hero-reviewed {
  margin: 16px 0 0;
  color: #9fb9c4;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

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;
}

.state-snapshot-grid .snapshot-metric > span {
  min-height: 3.9em;
  line-height: 1.3;
}

.state-officeholders-section {
  border-bottom: 1px solid rgba(8, 47, 73, 0.16);
  background:
    radial-gradient(circle at 91% 8%, rgba(224, 189, 104, 0.16), transparent 25%),
    linear-gradient(135deg, rgba(22, 118, 111, 0.055), transparent 42%),
    #f8f4ea;
}

.state-officeholders-heading {
  margin-bottom: 32px;
}

.state-officeholders-heading .section-kicker {
  color: var(--area-teal-dark);
}

.state-officeholder-groups {
  display: grid;
  gap: 42px;
}

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

.state-officeholder-group.is-judiciary .state-officeholder-group-heading {
  border-left-color: var(--area-teal);
}

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

.state-officeholder-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-officeholder-group.is-judiciary .state-officeholder-group-heading span {
  color: var(--area-teal);
}

.state-officeholder-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-officeholder-group-heading small {
  flex: 0 0 auto;
  color: var(--area-muted);
  font-size: 0.62rem;
  font-weight: 750;
}

.state-officeholder-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

.state-officeholder-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 310px;
  flex: 0 1 calc((100% - 45px) / 4);
  align-items: center;
  flex-direction: column;
  border: 1px solid var(--area-line);
  padding: 22px 17px 17px;
  color: inherit;
  text-align: center;
  background: var(--area-surface);
  text-decoration: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}

.state-officeholder-card::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: var(--area-gold-light);
  content: "";
}

.state-officeholder-card:hover,
.state-officeholder-card:focus-visible {
  border-color: var(--area-teal);
  box-shadow: var(--area-shadow);
  outline: none;
  transform: translateY(-2px);
}

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

.state-officeholder-portrait {
  display: block;
  width: 90px;
  height: 90px;
  flex: 0 0 90px;
  margin-bottom: 17px;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #dce8e7;
  box-shadow:
    0 0 0 1px var(--area-line),
    0 3px 0 rgba(8, 47, 73, 0.34),
    0 10px 20px rgba(8, 47, 73, 0.2);
}

.state-officeholder-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transition: transform 180ms ease;
}

.state-officeholder-card:hover .state-officeholder-portrait img,
.state-officeholder-card:focus-visible .state-officeholder-portrait img {
  transform: scale(1.025);
}

.state-officeholder-card-body {
  display: flex;
  width: 100%;
  min-width: 0;
  flex: 1;
  align-items: center;
  flex-direction: column;
}

.state-officeholder-role {
  min-height: 2.7em;
  color: var(--area-gold);
  font-size: 0.56rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.35;
  text-transform: uppercase;
}

.state-officeholder-group.is-judiciary .state-officeholder-role {
  color: var(--area-teal);
}

.state-officeholder-card-body > strong {
  margin-top: 7px;
  color: var(--area-navy);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.18;
}

.state-officeholder-details {
  display: grid;
  width: 100%;
  min-height: 6.1em;
  align-content: start;
  gap: 3px;
  margin-top: 10px;
  font-size: 0.65rem;
  line-height: 1.42;
}

.state-officeholder-details small {
  display: block;
  color: var(--area-muted);
  font-size: inherit;
  font-weight: 500;
  line-height: inherit;
}

.state-officeholder-details small:first-child {
  color: var(--area-navy);
  font-weight: 700;
}

.state-officeholder-details small.state-officeholder-party {
  color: var(--area-teal);
  font-weight: 800;
  letter-spacing: 0.025em;
}

.state-officeholder-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-top: auto;
  padding-top: 16px;
  color: var(--area-teal);
  font-size: 0.61rem;
  font-weight: 800;
  line-height: 1.3;
}

.state-officeholder-link.has-page-mark {
  gap: 6px;
}

.state-officeholder-link.has-page-mark .ptp-inline-page-mark {
  margin-right: 0;
}

.state-officeholder-link > span {
  transition: transform 150ms ease;
}

.state-officeholder-card:hover .state-officeholder-link > span,
.state-officeholder-card:focus-visible .state-officeholder-link > span {
  transform: translate(2px, -2px);
}

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;
}

.state-boundary-silhouette.area-outline-mark {
  position: relative;
  background: transparent;
  filter: var(--area-outline-mark-shadow);
}

.state-boundary-silhouette.area-outline-mark::before,
.state-boundary-silhouette.area-outline-mark::after {
  position: absolute;
  inset: 0;
  content: "";
  -webkit-mask: var(--state-boundary-mask) center / auto 82% no-repeat;
  mask: var(--state-boundary-mask) center / auto 82% no-repeat;
}

.state-boundary-silhouette.area-outline-mark::before {
  transform: scale(1.008);
  background: #07385f;
}

.state-boundary-silhouette.area-outline-mark::after {
  background: var(--area-gold-light);
}

.state-boundary-card {
  background:
    radial-gradient(circle at 50% 46%, rgba(224, 189, 104, 0.12), transparent 48%),
    #eaf0ef;
}

.state-boundary-card .state-boundary-caption {
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.state-boundary-caption > div:first-child {
  min-width: 0;
}

.state-boundary-caption strong,
.state-boundary-hierarchy {
  display: block;
}

.state-boundary-hierarchy {
  margin-top: 4px;
  color: var(--area-muted);
  font-size: 0.65rem;
  font-weight: 700;
}

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

.state-boundary-meta .boundary-details {
  margin-left: 0;
  text-transform: none;
}

.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 article:not(.is-text) strong {
  font-family: var(--area-numeral-font);
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-variant-numeric: lining-nums tabular-nums;
}

.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;
}

.elections-section .race-card-link-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.elections-section .race-card-link-label .ptp-inline-page-mark {
  margin-right: 0;
}

.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: var(--state-boundary-mask) center / auto 112% no-repeat;
  mask: var(--state-boundary-mask) 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-result {
  order: 3;
  margin: 0 0 10px;
  color: var(--area-muted);
  font-size: 0.58rem;
  line-height: 1.45;
}

.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: 4;
  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-election-result-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 16px;
  border: 1px solid var(--area-line);
  background: #fff;
}

.state-election-result-summary > div {
  padding: 16px 18px;
}

.state-election-result-summary > div + div {
  border-left: 1px solid var(--area-line);
}

.state-election-result-summary span,
.state-election-result-summary strong,
.state-election-result-summary small {
  display: block;
}

.state-election-result-summary span {
  color: var(--area-gold);
  font-size: 0.55rem;
  font-weight: 900;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.state-election-result-summary strong {
  margin-top: 5px;
  color: var(--area-navy);
  font-family: var(--area-numeral-font);
  font-feature-settings: "lnum" 1, "tnum" 1;
  font-size: clamp(1.45rem, 3vw, 2.15rem);
  font-variant-numeric: lining-nums tabular-nums;
  font-weight: 500;
  line-height: 1;
}

.state-election-result-summary small {
  margin-top: 5px;
  color: var(--area-muted);
  font-size: 0.58rem;
  line-height: 1.35;
}

.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;
}

.state-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-highlight-outline {
  fill: none;
  stroke: var(--area-map-interaction-stroke);
  stroke-width: 1;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}

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

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

.county-link.is-selected .county-shape {
  fill: var(--area-map-selected);
  stroke: var(--area-map-interaction-stroke);
  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;
  display: flex;
  height: var(--county-explorer-panel-height);
  flex-direction: column;
  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;
  flex: 0 0 6px;
  background: #9dadad;
  content: "";
}

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

.county-preview-topline {
  display: flex;
  height: 42px;
  min-height: 42px;
  flex: 0 0 42px;
  align-items: center;
  box-sizing: border-box;
  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-mini-map {
  display: grid;
  height: 160px;
  min-height: 160px;
  flex: 0 0 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;
  filter: var(--area-outline-mark-shadow);
}

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

.county-preview-copy {
  height: 142px;
  flex: 0 0 142px;
  box-sizing: border-box;
  overflow: hidden;
  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 {
  display: -webkit-box;
  overflow: hidden;
  margin: 10px 0 0;
  color: var(--area-muted);
  font-size: 0.72rem;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.county-preview-facts {
  display: grid;
  height: 132px;
  min-height: 132px;
  flex: 0 0 132px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  box-sizing: border-box;
  margin: auto 0 0;
  border-top: 1px solid var(--area-line);
  border-bottom: 1px solid var(--area-line);
}

.county-preview-facts div {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  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;
  min-height: 42px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 18px 18px;
  box-sizing: border-box;
  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-link.is-foundation,
.county-picker-open.is-foundation {
  color: #eef1ef;
  background: #7a8788;
  cursor: not-allowed;
  opacity: 0.78;
  pointer-events: none;
}

.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-judicial-authority {
  border: 1px solid var(--area-line);
  border-top: 4px solid var(--area-gold);
  padding: 24px;
  background: linear-gradient(135deg, #fff 0%, #fbf8ee 100%);
}

.state-judicial-authority-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(280px, 0.65fr);
  gap: 32px;
  align-items: end;
}

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

.state-judicial-authority-heading h3 {
  margin: 4px 0 0;
  color: var(--area-navy);
  font-family: var(--area-serif-with-lining-numerals);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 500;
  line-height: 1.08;
}

.state-judicial-authority-heading > p {
  margin: 0;
  color: var(--area-muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.state-judicial-authority-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 22px 0 18px;
  border: 1px solid var(--area-line);
  background: var(--area-line);
}

.state-judicial-authority-steps div {
  min-width: 0;
  padding: 17px;
  background: #fff;
}

.state-judicial-authority-steps dt,
.state-judicial-authority-steps dd {
  margin: 0;
}

.state-judicial-authority-steps dt {
  margin-bottom: 8px;
  color: var(--area-teal);
  font-size: 0.58rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.state-judicial-authority-steps dd {
  color: var(--area-navy);
  font-size: 0.72rem;
  line-height: 1.52;
}

.state-judicial-authority > a {
  color: var(--area-teal);
  font-size: 0.67rem;
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.state-judicial-authority > a:hover,
.state-judicial-authority > a:focus-visible {
  color: var(--area-navy);
}

.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-officeholder-card {
    flex-basis: calc((100% - 30px) / 3);
  }

  .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-officeholder-card {
    flex-basis: calc((100% - 15px) / 2);
  }

  .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);
    grid-template-rows: 6px 42px minmax(210px, 1fr) 132px auto;
  }

  .county-preview-card::before,
  .county-preview-topline,
  .county-preview-facts,
  .county-preview-link {
    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-judicial-authority-heading,
  .state-judicial-authority-steps {
    grid-template-columns: minmax(0, 1fr);
  }

  .state-judicial-authority-heading {
    gap: 10px;
  }

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

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

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

  .state-officeholder-card {
    flex-basis: 100%;
  }

  .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;
  }

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

  .state-election-result-summary > div + div {
    border-top: 1px solid var(--area-line);
    border-left: 0;
  }

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

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

  .state-hero-fact {
    padding: 12px 0;
  }

  .state-hero-fact + .state-hero-fact {
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    border-left: 0;
    padding-left: 0;
  }

  .state-boundary-card .state-boundary-caption {
    align-items: flex-start;
  }

  .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: flex;
  }

  .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);
}
