/* ==========================================
   Gas & Electricity Guide — Main Stylesheet
   ========================================== */

:root {
  --blue:       #1a56db;
  --blue-dark:  #1341b0;
  --blue-light: #e8f0fe;
  --green:      #057a55;
  --green-light:#def7ec;
  --orange:     #d03801;
  --orange-light:#fde8d8;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-300:   #d1d5db;
  --gray-400:   #9ca3af;
  --gray-500:   #6b7280;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-800:   #1f2937;
  --gray-900:   #111827;
  --white:      #ffffff;
  --radius:     8px;
  --shadow:     0 1px 3px rgba(0,0,0,.12), 0 1px 2px rgba(0,0,0,.08);
  --shadow-md:  0 4px 6px rgba(0,0,0,.07), 0 2px 4px rgba(0,0,0,.06);
  --shadow-lg:  0 10px 15px rgba(0,0,0,.08), 0 4px 6px rgba(0,0,0,.05);
  --font:       'Inter', system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--gray-800);
  background: var(--white);
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ── Layout ────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; }

@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 769px) and (max-width: 992px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2,1fr); }
}

/* ── Header ────────────────────────────── */
.site-header {
  background: var(--gray-900);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-md);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
}

/* The base `text-decoration: none` above is (0,1,0) and loses to the global
   `a:hover { text-decoration: underline }` at (0,1,1); this (0,2,0) rule wins.
   Same approach .main-nav a:hover already uses. */
.site-logo:hover { text-decoration: none; }

/* Same ring as the nav links. Wider offset and an explicit radius because the
   logo has no padding of its own for the outline to trace. */
.site-logo:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 4px;
  border-radius: 4px;
  text-decoration: none;
}

.logo-icon { font-size: 1.4rem; }
.amp { color: #facc15; }
.logo-tld { color: var(--gray-400); font-size: .85em; }

/* Direct child only: `.main-nav ul` also matched the nested .dropdown, and at
   (0,1,1) it outranked `.dropdown { display: none }` at (0,1,0) — which left the
   dropdown permanently open as a flex row. */
.main-nav > ul { display: flex; gap: 8px; list-style: none; }
.main-nav a {
  color: var(--gray-200);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-size: .9rem;
  transition: background .2s, color .2s;
}
.main-nav a:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }

/* Keyboard focus ring, matching the hover treatment. :focus-visible rather than
   :focus so a mouse click doesn't leave a ring behind. Two variants are needed —
   the top-level links sit on the dark header, the dropdown items on a white
   panel — and the .dropdown rule must stay after this one: both are (0,2,1), so
   source order is what makes it win for links inside the panel. */
.main-nav a:focus-visible,
.nav-toggle:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
  background: rgba(255,255,255,.1);
  color: var(--white);
  text-decoration: none;
}

/* Dropdown */
.has-dropdown { position: relative; }
.dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  min-width: 220px;
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  z-index: 200;
}
/* :focus-within keeps the menu open while focus is on the trigger or any link
   inside it, so the list is reachable by keyboard, not just by pointer. */
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown { display: block; }
.dropdown li { list-style: none; }
.dropdown a {
  display: block;
  color: var(--gray-700) !important;
  padding: 8px 16px;
  font-size: .875rem;
}
.dropdown a:hover { background: var(--gray-100); color: var(--blue) !important; text-decoration: none; }
/* Inset offset keeps the ring inside the panel; !important is needed to beat
   `.dropdown a { color: ... !important }` above. */
.dropdown a:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
  background: var(--gray-100);
  color: var(--blue) !important;
  text-decoration: none;
}
.dropdown .dropdown-all { color: var(--blue) !important; font-weight: 600; border-top: 1px solid var(--gray-200); margin-top: 4px; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--gray-600);
  color: var(--white);
  padding: 6px 10px;
  border-radius: var(--radius);
  font-size: 1.2rem;
  cursor: pointer;
}

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--gray-900);
    padding: 16px 20px;
    border-top: 1px solid var(--gray-700);
  }
  .main-nav.open { display: block; }
  .main-nav > ul { flex-direction: column; gap: 4px; }
  /* !important defeats .has-dropdown:hover (0,2,0), which a media query does not
     outrank on its own — hover is meaningless on touch, so keep it closed. */
  .dropdown { position: static; box-shadow: none; border: none; background: var(--gray-800); display: none !important; }
}

/* ── Breadcrumbs ───────────────────────── */
.breadcrumbs {
  background: var(--gray-100);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
  font-size: .85rem;
}
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; }
.breadcrumbs li { display: flex; align-items: center; gap: 4px; }
.breadcrumbs a { color: var(--blue); }
.breadcrumbs .sep { color: var(--gray-400); }
.breadcrumbs [aria-current="page"] { color: var(--gray-600); }

/* ── Hero ──────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 60%, #064e3b 100%);
  color: var(--white);
  padding: 60px 0 50px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-block;
  background: rgba(250,204,21,.15);
  color: #facc15;
  border: 1px solid rgba(250,204,21,.3);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.hero p {
  font-size: 1.1rem;
  color: rgba(255,255,255,.8);
  max-width: 640px;
  margin-bottom: 28px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.hero-stat {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius);
  padding: 16px 24px;
  text-align: center;
  min-width: 140px;
}
.hero-stat .value { font-size: 1.6rem; font-weight: 700; color: #facc15; }
.hero-stat .label { font-size: .8rem; color: rgba(255,255,255,.7); margin-top: 2px; }

/* ── Rate Cards ────────────────────────── */
.rate-cards { display: flex; flex-wrap: wrap; gap: 16px; margin: 24px 0; }

.rate-card {
  flex: 1;
  min-width: 180px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  text-align: center;
}
.rate-card .rc-icon { font-size: 2rem; margin-bottom: 8px; }
.rate-card .rc-label { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--gray-600); }
.rate-card .rc-value { font-size: 1.8rem; font-weight: 700; color: var(--gray-900); margin: 4px 0; }
.rate-card .rc-sub { font-size: .8rem; color: var(--gray-400); }
.rate-card.rc-electric { border-top: 3px solid var(--blue); }
.rate-card.rc-gas       { border-top: 3px solid var(--orange); }
.rate-card.rc-bill-e    { border-top: 3px solid var(--green); }
.rate-card.rc-bill-g    { border-top: 3px solid #7c3aed; }

/* ── Sections ──────────────────────────── */
.section {
  padding: 48px 0;
}
.section-alt { background: var(--gray-50); }

.section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}
.section-lead {
  color: var(--gray-600);
  font-size: 1rem;
  margin-bottom: 28px;
  max-width: 720px;
}

/* ── Cards ─────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--gray-900); }
.card p  { font-size: .9rem; color: var(--gray-600); }

/* State/City Link Cards */
.location-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .2s, box-shadow .2s;
  text-decoration: none;
  color: var(--gray-800);
}
.location-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(26,86,219,.08);
  text-decoration: none;
  color: var(--gray-900);
}
.location-card .lc-name { font-weight: 600; font-size: .95rem; }
.location-card .lc-rate { font-size: .85rem; color: var(--gray-500); }
.location-card .lc-arrow { color: var(--blue); font-size: 1.1rem; }

/* ── Tips List ─────────────────────────── */
.tips-list { list-style: none; }
.tips-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .95rem;
  color: var(--gray-700);
}
.tips-list li:last-child { border-bottom: none; }
.tips-list .tip-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  background: var(--green-light);
  color: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  margin-top: 2px;
}

/* ── Utility List ──────────────────────── */
.utility-list { list-style: none; }
.utility-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .95rem;
}
.utility-item:last-child { border-bottom: none; }
.utility-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.utility-dot.electric { background: var(--blue); }
.utility-dot.gas { background: var(--orange); }

/* ── FAQ ───────────────────────────────── */
.faq-list { list-style: none; }
.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  margin-bottom: 8px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--gray-50);
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  color: var(--gray-800);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.faq-question:hover { background: var(--gray-100); }
.faq-question .fq-icon { flex-shrink: 0; transition: transform .3s; }
.faq-item.open .fq-icon { transform: rotate(180deg); }
.faq-answer {
  display: none;
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--gray-700);
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  line-height: 1.7;
}
.faq-item.open .faq-answer { display: block; }

/* ── Programs ──────────────────────────── */
.programs-list { list-style: none; }
.programs-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--gray-100);
  font-size: .9rem;
  color: var(--gray-700);
}
.programs-list li:last-child { border-bottom: none; }
.programs-list .prog-icon { color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ── Alert / Info Banner ───────────────── */
.info-banner {
  background: var(--blue-light);
  border: 1px solid rgba(26,86,219,.2);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: .9rem;
  color: var(--blue-dark);
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.info-banner .ib-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }

/* ── Ad Units ──────────────────────────── */
.ad-unit {
  text-align: center;
  padding: 16px 0;
}
/* ad_unit() emits nothing when a slot id is still a placeholder. Collapse the
   wrapper in that case so its "Advertisement" label and padding don't leave a
   gap. Browsers without :has() just show the label, i.e. the old behaviour. */
.ad-unit:not(:has(ins, .ad-banner)) { display: none; }
.ad-unit-label {
  font-size: .7rem;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 4px;
}
.ad-banner {
  background: var(--gray-100);
  border: 1px dashed var(--gray-300);
  border-radius: var(--radius);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-400);
  font-size: .85rem;
}

/* ── Page Layout (with sidebar) ─────────── */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: flex-start;
}
.page-sidebar { position: sticky; top: 80px; }
.sidebar-widget {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.sidebar-widget h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--blue);
  color: var(--gray-900);
}

@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .page-sidebar { position: static; }
}

/* ── City Grid ─────────────────────────── */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

/* ── Search Box ────────────────────────── */
.search-box {
  display: flex;
  gap: 0;
  max-width: 480px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 2px solid var(--blue);
}
.search-box input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  font-family: var(--font);
  font-size: .95rem;
  outline: none;
}
.search-box button {
  background: var(--blue);
  color: var(--white);
  border: none;
  padding: 0 20px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  font-size: .9rem;
  transition: background .2s;
}
.search-box button:hover { background: var(--blue-dark); }

/* ── State Index ───────────────────────── */
.state-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

/* ── Tag Pills ─────────────────────────── */
.tag-pill {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
}
.tag-pill.orange { background: var(--orange-light); color: var(--orange); }
.tag-pill.green  { background: var(--green-light); color: var(--green); }

/* ── Footer ────────────────────────────── */
.site-footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 48px 0 24px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--gray-700);
  margin-bottom: 24px;
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-col h3 { color: var(--white); font-size: 1.1rem; margin-bottom: 12px; }
.footer-col h4 { color: var(--gray-200); font-size: .9rem; margin-bottom: 12px; text-transform: uppercase; letter-spacing: .06em; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col a { color: var(--gray-400); font-size: .9rem; transition: color .2s; }
.footer-col a:hover { color: var(--white); text-decoration: none; }
.footer-about p { font-size: .88rem; line-height: 1.6; margin-bottom: 8px; }
.footer-disclaimer { font-size: .78rem !important; color: var(--gray-600) !important; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .85rem;
}
.footer-bottom a { color: var(--gray-500); }
.footer-bottom a:hover { color: var(--gray-300); text-decoration: none; }

/* ── Deregulation Banner ───────────────── */
.deregulation-banner {
  background: linear-gradient(135deg, #eff6ff, #ecfdf5);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 20px 24px;
  font-size: .9rem;
  color: var(--gray-700);
}
.deregulation-banner h3 { font-size: 1rem; color: var(--gray-900); margin-bottom: 8px; }

/* ── Homepage Hero Search ──────────────── */
.hero-search { max-width: 540px; }
.hero-search label { display: block; font-size: .85rem; color: rgba(255,255,255,.7); margin-bottom: 8px; }
#state-search-results {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
  max-height: 240px;
  overflow-y: auto;
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  top: 100%;
}
.search-wrapper { position: relative; }
#state-search-results a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  color: var(--gray-800);
  font-size: .9rem;
  border-bottom: 1px solid var(--gray-100);
}
#state-search-results a:hover { background: var(--gray-50); text-decoration: none; }
#state-search-results .sr-rate { font-size: .8rem; color: var(--gray-500); }
/* Last row of the dropdown: hands the query off to the full server-side search */
#state-search-results a.sr-all {
  color: var(--blue);
  font-weight: 600;
  border-bottom: none;
  border-top: 1px solid var(--gray-200);
  background: var(--gray-50);
}
#state-search-results a.sr-all:hover { background: var(--blue-light); }

/* ── Utilities ─────────────────────────── */
.text-center { text-align: center; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .9rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .2s;
  border: 2px solid transparent;
}
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-dark); color: var(--white); text-decoration: none; }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,.4); }
.btn-outline:hover { background: rgba(255,255,255,.1); color: var(--white); text-decoration: none; }

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ── Content Prose ─────────────────────── */
.prose { max-width: 720px; }
.prose p { margin-bottom: 16px; color: var(--gray-700); line-height: 1.75; }
.prose h2 { font-size: 1.4rem; color: var(--gray-900); margin: 28px 0 12px; }
.prose h3 { font-size: 1.1rem; color: var(--gray-800); margin: 20px 0 8px; }
.prose ul { margin: 0 0 16px 20px; color: var(--gray-700); }
.prose li { margin-bottom: 6px; }

/* ── All-Cities Index ──────────────────── */
.city-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
}
.city-alpha-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 34px;
  padding: 0 8px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  font-size: .85rem;
  font-weight: 600;
  color: var(--blue);
  transition: background .2s, border-color .2s;
}
.city-alpha-nav a:hover {
  background: var(--blue-light);
  border-color: var(--blue);
  text-decoration: none;
}

.city-alpha-group {
  margin-bottom: 24px;
  scroll-margin-top: 80px; /* clears the sticky header on anchor jumps */
}
.city-alpha-heading {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  border-bottom: 2px solid var(--gray-100);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

.city-index-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0 16px;
}
.city-index-list a {
  display: block;
  padding: 4px 0;
  font-size: .87rem;
  color: var(--gray-700);
}
.city-index-list a:hover { color: var(--blue); }
/* Cities with hand-written rate data, not derived from the state average */
.city-index-list a.ci-detailed { font-weight: 600; color: var(--gray-900); }

@media (max-width: 480px) {
  .city-index-list { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
  .city-alpha-nav a { min-width: 30px; height: 30px; font-size: .8rem; }
}

/* ── Responsive tweaks ─────────────────── */
@media (max-width: 480px) {
  .hero { padding: 40px 0 32px; }
  .section { padding: 32px 0; }
  .rate-cards { gap: 12px; }
  .rate-card { min-width: calc(50% - 6px); }
}
