/* ===========================
   Sage's Boilerplate - Styles
   =========================== */

/* CSS Reset */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Root Variables */
:root {
  --font-primary: "Figtree", "Helvetica", "Segoe UI", sans-serif;
  --font-heading: 'Syne', sans-serif;
  --font-accent: 'IBM Plex Mono', monospace;

  --color-bg: #FAFAF8;
  --color-text: #333333;
  --accent-color-text: #7a8fa3;
  --expand-bar-bg: #f5f8fc;
  --card-bg: #f5f8fc;

  --color-drought-dark: #18150F;
  --color-drought-light: #a81828;
  --color-normal-dark: #0f1923;
  --color-normal-light: #185FA5;

  --color-scale-normal: #E8E6E2;
  --color-scale-D0: #FFE680;
  --color-scale-D1: #FFCC33;
  --color-scale-D2: #FF8C00;
  --color-scale-D3: #CC0000;
  --color-scale-D4: #660000;

  /* Theme aliases — swapped by JS via body[data-theme] */
  --color-primary-dark: var(--color-drought-dark);
  --color-primary-light: var(--color-drought-light);
}

/* Normal (low/no drought) theme */
body[data-theme="normal"] {
  --color-primary-dark: var(--color-normal-dark);
  --color-primary-light: var(--color-normal-light);
}

/* Base Styles */
html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-primary);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

img, video {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}


/* HEADER */

header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--color-bg);
  height: 60px;
  padding: 0 2rem;
  display: flex;
  align-items: center;
  width: 100%;
  border-bottom: 2px solid var(--color-primary-light);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

/* LOGO */

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 25px;
  color: var(--color-primary-light);
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  margin-left: -20px;
  transition: background-color 0.15s, color 0.15s;
}

.logo:hover {
  background-color: var(--color-primary-light);
  color: var(--color-bg);
}

/* NAV LINKS */

.nav-links {
  display: flex;
  gap: 25px;
  justify-content: center;
  font-weight: 600;
}

.nav-links a {
  font-size: 13px;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.15s;
}

.nav-links a:hover {
  color: var(--color-primary-light);
}

/* SEARCH */

.nav-search {
  flex: 1;
  max-width: 240px;
  position: relative;
}

.nav-search svg {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  color: var(--color-primary-light);
  z-index: 1;
}

.nav-search-input {
  width: 100%;
  height: 36px;
  background: #F3F4ED;
  border: 1px solid #E0DDD8;
  border-radius: 8px;
  padding: 0 12px 0 34px;
  color: var(--color-primary-light);
  font-size: 13px;
  outline: none;
  transition: border-color 0.15s;
}

.nav-search-input:focus {
  border-color: var(--color-primary-light);
}

.nav-search-input::placeholder {
  color: #B9B5B0;
}

/* SEARCH DROPDOWN */

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid #E0DDD8;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  z-index: 1100;
  overflow: hidden;
  max-height: 320px;
  overflow-y: auto;
}

.search-dropdown.open {
  display: block;
}

.search-group-label {
  font-family: var(--font-accent);
  font-size: 9px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #9a9690;
  padding: 10px 14px 4px;
}

.search-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.1s;
}

.search-item:hover {
  background: #f5f8fc;
}

.search-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
  flex: 1;
}

.search-item-meta {
  font-size: 11px;
  color: var(--accent-color-text);
}

.search-item-badge {
  font-family: var(--font-accent);
  font-size: 9px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 600;
}

.search-no-results {
  padding: 14px;
  font-size: 13px;
  color: var(--accent-color-text);
  text-align: center;
}


/* HERO */

.hero {
  background: var(--color-primary-dark);
  color: #fff;
  padding: 72px 80px 56px;
  width: 100%;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  transition: min-height 0.3s;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(255,255,255,.018) 40px, rgba(255,255,255,.018) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(255,255,255,.018) 40px, rgba(255,255,255,.018) 41px);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-left {
  max-width: 900px;
}

.hero-info {
  font-family: var(--font-accent);
  font-size: 11px;
  letter-spacing: 2px;
  color: rgba(255,255,255,.45);
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(20px, 3vw, 40px);
  line-height: 1.05;
  margin-bottom: 24px;
  color: var(--color-bg);
}

.hero h1 span {
  color: var(--color-primary-light);
}

.hero-drought-label {
  /* color set inline per drought level */
}

.hero-stats {
  display: flex;
  gap: 3rem;
  flex-wrap: wrap;
}

.hstat-num {
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 600;
  color: var(--color-bg);
  line-height: 1;
}

.hstat-num.hero-restriction-val {
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font-primary);
  color: rgba(255,255,255,0.85);
  line-height: 1.3;
  max-width: 180px;
}

.hstat-label {
  font-size: 11px;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
}

/* HERO BACK BUTTON */

.hero-back-btn {
  margin-top: 20px;
  background: none;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 6px;
  color: rgba(255,255,255,0.6);
  font-size: 12px;
  padding: 6px 14px;
  cursor: pointer;
  font-family: var(--font-accent);
  letter-spacing: 0.5px;
  transition: border-color 0.15s, color 0.15s;
}

.hero-back-btn:hover {
  border-color: rgba(255,255,255,0.5);
  color: rgba(255,255,255,0.9);
}


/* SCALE BAR */

.scale-bar {
  background: var(--color-primary-dark);
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding: 12px 80px;
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
}

.scale-bar-inner {
  display: flex;
  align-items: center;
  gap: 0;
}

.scale-label {
  font-family: var(--font-accent);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-right: 20px;
  white-space: nowrap;
}

.scale-items {
  display: flex;
  gap: 0;
  flex: 1;
}

.scale-item {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px 6px 0;
  margin-right: 14px;
  font-size: 12px;
  color: rgba(255,255,255,.7);
  font-family: var(--font-accent);
  white-space: nowrap;
}

.scale-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,.15);
}

.scale-item span {
  font-size: 10px;
  color: rgba(255,255,255,.4);
  margin-left: 2px;
}


/* EXPAND BAR */

.expand-bar {
  background: var(--expand-bar-bg);
  border-bottom: 0.5px solid rgba(24,95,165,0.13);
  padding: 0.6rem 2rem;
}

.expand-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.expand-button-outer {
  display: flex;
  align-items: center;
  gap: 10px;
}

.expand-bar .expand-bar-updated {
  font-size: 12px;
  color: #7a8fa3;
}

.expand-bar .expand-button {
  display: flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: 1px solid #185FA540;
  border-radius: 6px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 500;
  color: #185FA5;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.expand-bar .expand-button:hover {
  background: rgba(24,95,165,0.06);
  border-color: #185FA5;
}

.map-toggle-hint {
  font-size: 10px;
  color: var(--accent-color-text);
  font-family: var(--font-accent);
}


/* MAP PANEL */

/* Keep Leaflet zoom controls below header/nav */
.leaflet-control-container .leaflet-top,
.leaflet-control-container .leaflet-bottom {
  z-index: 500;
}

.full-map-panel {
  display: none;
  background: #edf1f6;
  border-bottom: 1px solid #185FA521;
}

.full-map-panel.open {
  display: block;
}

#leafletMap {
  height: 480px;
  width: 100%;
}

.county-label {
  background: none;
  border: none;
  pointer-events: none;
}

.county-label span {
  font-family: var(--font-accent);
  font-size: 9px;
  color: rgba(24,21,15,0.55);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(255,255,255,0.8);
}

.map-tooltip {
  font-family: var(--font-primary);
  font-size: 12px;
  border: 1px solid rgba(24,21,15,0.12) !important;
  border-radius: 6px !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1) !important;
  padding: 6px 10px !important;
}

.map-tooltip strong {
  display: block;
  font-size: 13px;
  margin-bottom: 2px;
}

.map-error {
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--accent-color-text);
  font-family: var(--font-accent);
}


/* PLACES */

#places {
  padding: 2rem;
}

#places section {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

#places #cities {
  margin-bottom: 50px;
}

#places .section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 1.75rem;
}

#places .section-header h2 {
  font-family: 'Syne', sans-serif;
}

#places .section-header h2 span {
  color: var(--color-primary-light);
}

#places .section-header .section-info {
  color: var(--accent-color-text);
}

.places-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}


/* CITY CARDS */

.city-card {
  background: var(--card-bg);
  border: 1px solid #185FA540;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.city-card:hover {
  border-color: var(--color-primary-light);
}

.city-card.active {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(168,24,40,0.12);
}

.city-card-inner {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.city-card .city-card-top {
  padding: 10px 20px;
  border-bottom: 1px solid #185FA540;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}

.city-card .city-card-top .city-card-city {
  font-family: var(--font-heading);
  font-size: 16px;
  font-weight: 600;
}

.city-card .city-card-top .city-card-region {
  font-size: 12px;
  font-weight: 400;
  color: #7a8fa3;
}

.city-card .city-card-body {
  padding: 14px 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

/* CITY STATS ROW */

.city-stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
}

.city-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.city-stat-label {
  font-family: var(--font-accent);
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(51,51,51,0.4);
}

.city-stat-value {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1.3;
}

/* RESTRICTION TAG */

.restriction-tag {
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 3px;
  font-family: var(--font-accent);
  border-left: 3px solid;
  line-height: 1.4;
  margin-top: auto;
}

.restriction-tag-none {
  background: rgb(235, 245, 236);
  color: rgb(45, 122, 54);
  border-color: rgb(45, 122, 54);
}

.restriction-tag-one {
  background: rgb(255, 248, 230);
  color: rgb(184, 134, 11);
  border-color: rgb(184, 134, 11);
}

.restriction-tag-two {
  background: rgb(255, 240, 236);
  color: rgb(192, 64, 0);
  border-color: rgb(192, 64, 0);
}

.restriction-tag-three {
  background: rgb(255, 235, 235);
  color: rgb(168, 24, 40);
  border-color: rgb(168, 24, 40);
}

/* DROUGHT BADGE */

.drought-badge {
  font-family: var(--font-accent);
  border-radius: 3px;
  padding: 3px 9px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.drought-badge .drought-badge-info {
  opacity: 0.6;
}

.drought-badge-normal { background-color: #e2e6e8; }
.drought-badge-D0     { background-color: var(--color-scale-D0); }
.drought-badge-D1     { background-color: var(--color-scale-D1); }
.drought-badge-D2     { background-color: var(--color-scale-D2); }
.drought-badge-D3     { background-color: var(--color-scale-D3); color: #fff; }
.drought-badge-D4     { background-color: var(--color-scale-D4); color: #fff; }


/* WEATHER BADGE */

.weather-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-accent);
  font-size: 11px;
  border-radius: 4px;
  padding: 6px 10px;
  border-left: 3px solid currentColor;
  flex-wrap: wrap;
  line-height: 1.3;
}

.weather-badge-unknown {
  background: #f0f0ee;
  color: #9a9690;
  border-color: #9a9690;
}

.weather-dot {
  opacity: 0.4;
  font-size: 10px;
}

.weather-temp {
  font-weight: 700;
  font-size: 12px;
}

.weather-condition {
  flex: 1;
}

.weather-precip {
  opacity: 0.75;
}

/* Temperature color scale */
.temp-freezing  { background: #e8f0fb; color: #1a4a8a; border-color: #1a4a8a; }
.temp-cold      { background: #e8f4fb; color: #1a6a9a; border-color: #1a6a9a; }
.temp-cool      { background: #e8f8f4; color: #1a7a5a; border-color: #1a7a5a; }
.temp-warm      { background: #fff8e8; color: #a06010; border-color: #a06010; }
.temp-hot       { background: #fff0e0; color: #c04010; border-color: #c04010; }
.temp-scorching { background: #ffe8e8; color: #a01818; border-color: #a01818; }

.drought-area-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.drought-area-header {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  font-family: var(--font-accent);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(51,51,51,0.45);
}

.drought-area-pct {
  font-weight: 700;
}

.drought-area-track {
  height: 4px;
  background: #E8E6E0;
  border-radius: 2px;
  overflow: hidden;
}

.drought-area-fill {
  height: 100%;
  border-radius: 2px;
  transition: width 0.4s ease;
}


/* COUNTY CARDS */

.counties-grid {
  grid-template-columns: repeat(4, 1fr);
}

.county-card {
  background: var(--card-bg);
  border: 1px solid #185FA540;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.county-card:hover {
  border-color: var(--color-primary-light);
}

.county-card.active {
  border-color: var(--color-primary-light);
  box-shadow: 0 0 0 3px rgba(168,24,40,0.12);
}

.county-card-inner {
  padding: 12px 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.county-card-top {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.county-card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.county-card-name {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
}

.county-card-region {
  font-size: 10px;
  font-weight: 400;
  color: var(--accent-color-text);
  font-family: var(--font-accent);
}

.county-card-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
}

.county-stat {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.county-stat-label {
  font-family: var(--font-accent);
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(51,51,51,0.4);
}

.county-stat-value {
  font-size: 12px;
  font-weight: 600;
  color: var(--color-text);
}

.county-stat-value.stat-ok   { color: #2B65B8; }
.county-stat-value.stat-warn { color: #ff8c00; }
.county-stat-value.stat-bad  { color: #cc0000; }


/* FOOTER */

footer {
  background: var(--color-primary-dark);
  padding: 1.5rem 2rem;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-logo {
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.5);
}

.footer-right {
  font-size: 11px;
  color: rgba(255,255,255,0.3);
}


/* RESPONSIVE */

@media (max-width: 1024px) {
  .hero {
    padding: 48px 40px 40px;
  }

  .scale-bar {
    padding: 12px 40px;
  }

  #places {
    padding: 2rem 1.5rem;
  }

  .counties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  /* HEADER */
  .header-inner {
    gap: 12px;
  }

  .nav-links {
    display: none;
  }

  .nav-search {
    max-width: 100%;
    flex: 1;
  }

  /* HERO */
  .hero {
    padding: 36px 24px 32px;
    min-height: unset;
  }

  .hero h1 {
    font-size: clamp(20px, 5vw, 32px);
    margin-bottom: 16px;
  }

  .hero-stats {
    gap: 1.5rem;
  }

  .hstat-num {
    font-size: 18px;
  }

  /* SCALE BAR */
  .scale-bar {
    padding: 10px 24px;
  }

  .scale-bar-inner {
    flex-wrap: wrap;
    gap: 4px;
  }

  .scale-label {
    width: 100%;
    margin-right: 0;
    margin-bottom: 4px;
  }

  .scale-items {
    flex-wrap: wrap;
    gap: 4px;
  }

  .scale-item {
    padding: 4px 8px 4px 0;
    margin-right: 0;
  }

  /* SEARCH DROPDOWN — prevent overflow on mobile */
  .search-dropdown {
    position: fixed;
    top: 54px;
    left: 1rem;
    right: 1rem;
    width: auto;
    max-width: none;
  }

  /* EXPAND BAR */
  .expand-bar {
    padding: 0.6rem 1.5rem;
  }

  .expand-bar-updated {
    display: none;
  }

  /* PLACES */
  #places {
    padding: 1.5rem 1rem;
  }

  .places-grid,
  .counties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* FOOTER */
  .footer-inner {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}

@media (max-width: 480px) {
  /* HEADER */
  header {
    padding: 0 1rem;
    height: 54px;
  }

  .logo {
    font-size: 18px;
    padding: 8px 12px;
    margin-left: -12px;
  }

  /* HERO */
  .hero {
    padding: 28px 20px 28px;
  }

  .hero h1 {
    font-size: 22px;
  }

  .hero-stats {
    gap: 1.25rem;
    flex-wrap: wrap;
  }

  .hstat-num {
    font-size: 16px;
  }

  .hero-back-btn {
    margin-top: 14px;
  }

  /* SCALE BAR */
  .scale-bar {
    padding: 8px 16px;
  }

  .scale-item span {
    display: none;
  }

  /* EXPAND BAR */
  .expand-bar {
    padding: 0.5rem 1rem;
  }

  /* PLACES */
  #places {
    padding: 1rem;
  }

  #places .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    margin-bottom: 1rem;
  }

  .places-grid,
  .counties-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  /* CITY CARDS */
  .city-stats-row {
    grid-template-columns: 1fr 1fr;
  }

  /* WEATHER BADGE */
  .weather-badge {
    font-size: 10px;
  }

  /* MAP */
  #leafletMap {
    height: 320px;
  }

  /* FOOTER */
  .footer-inner {
    padding: 0;
  }

  .footer-right {
    font-size: 10px;
  }
}

/* MOBILE NAV */

.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  color: var(--color-primary-light);
  cursor: pointer;
  padding: 4px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .nav-mobile-btn {
    display: flex;
    align-items: center;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 54px;
    left: 0;
    right: 0;
    background: var(--color-bg);
    border-bottom: 2px solid var(--color-primary-light);
    flex-direction: column;
    padding: 12px 1.5rem;
    gap: 0;
    z-index: 1050;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 10px 0;
    border-bottom: 1px solid rgba(0,0,0,0.06);
    font-size: 14px;
  }

  .nav-links a:last-child {
    border-bottom: none;
  }
}

/* BREAKDOWN BAR (county cards) */

.breakdown-wrap {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.breakdown-header {
  font-family: var(--font-accent);
  font-size: 9px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: rgba(51,51,51,0.45);
}

.breakdown-bar {
  display: flex;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: #E8E6E0;
  gap: 1px;
}

.breakdown-segment {
  height: 100%;
  transition: width 0.4s ease;
  min-width: 1px;
}

.breakdown-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
}

.breakdown-label-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-accent);
  font-size: 9px;
}

.breakdown-swatch {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.breakdown-key {
  font-weight: 600;
  color: var(--color-text);
}

.breakdown-val {
  color: rgba(51,51,51,0.55);
}

/* HERO BREAKDOWN (county hero) */

.hero-breakdown {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 480px;
}

.hero-breakdown-bar {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  background: rgba(255,255,255,0.1);
  gap: 1px;
}

.hero-breakdown-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
}

.hero-breakdown-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-accent);
  font-size: 10px;
}

.hero-breakdown-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-breakdown-key {
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

.hero-breakdown-val {
  color: rgba(255,255,255,0.5);
}
