:root {
  --accent: #b45309;
  --accent-hover: #92400e;
  --accent-soft: #fef3c7;
  --text: #1c1917;
  --text-muted: #57534e;
  --border: #e7e5e4;
  --surface: #ffffff;
  --bg: #fafaf9;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
  --page-max-width: 72rem;
  --page-gutter: clamp(16px, 4vw, 24px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.wrap {
  width: 100%;
  max-width: var(--page-max-width);
  margin-inline: auto;
  padding-inline: var(--page-gutter);
}

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  font-size: 1.1875rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.03em;
}
.logo:hover {
  color: var(--text);
  text-decoration: none;
}
.logo-mark {
  flex: none;
  width: 2rem;
  height: 2rem;
  margin-block: -0.25rem;
  color: var(--accent);
  transition: transform 0.15s ease;
}
.logo:hover .logo-mark {
  color: var(--accent-hover);
  transform: translateY(-1px);
}
.logo-text-accent {
  color: var(--accent);
}
@media (prefers-reduced-motion: reduce) {
  .logo-mark {
    transition: none;
  }
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
  font-size: 0.9375rem;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
}
.nav-links a:hover {
  color: var(--accent);
}

.nav-links .nav-area {
  font-weight: 600;
  color: var(--text);
}

.nav-change-area {
  font-size: 0.875rem;
}

.nav-metros {
  flex: 1 1 100%;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.875rem;
  padding-bottom: 0.15rem;
}

.nav-metros a {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
}

.nav-metros a:hover {
  color: var(--accent);
  border-color: var(--accent-soft);
}

.header-search {
  flex: 1 1 12rem;
  min-width: 0;
  display: flex;
  gap: 0.35rem;
}
.header-search input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
}
.header-search button {
  padding: 0.45rem 0.85rem;
  border: none;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.header-search button:hover {
  background: var(--accent-hover);
}

main.wrap {
  padding-top: 1.25rem;
  padding-bottom: 2.5rem;
}

.page-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.lead {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  max-width: 40rem;
}

.section-title {
  font-size: 1.125rem;
  font-weight: 650;
  margin: 2rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.hero-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}

.hero-home .page-title {
  margin-bottom: 0.5rem;
}

.search-hero {
  margin-top: 1rem;
}
.search-hero-row {
  display: grid;
  grid-template-columns: minmax(7.5rem, 10rem) minmax(12rem, 1fr) auto;
  gap: 0.75rem 0.85rem;
  align-items: end;
}
.search-hero-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  min-width: 0;
}
.search-hero-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}
.search-hero-field select,
.search-hero-field input[type="search"] {
  width: 100%;
  height: 2.625rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  background: var(--surface);
  box-sizing: border-box;
}
.search-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.search-hero-actions .btn {
  height: 2.625rem;
  white-space: nowrap;
}
@media (max-width: 40rem) {
  .search-hero-row {
    grid-template-columns: 1fr;
  }
  .search-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .search-hero-actions .btn {
    width: 100%;
  }
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-top: 1rem;
  font-size: 0.9375rem;
}

.card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
  list-style: none;
  padding: 0;
  margin: 0;
}
@media (min-width: 480px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 900px) {
  .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  box-shadow: var(--shadow);
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}
.card-grid > li > .card,
.card-grid-item > .card {
  height: 100%;
}
/* Stretched title link: one real <a> covers the card via ::after. */
.stretched-link {
  color: inherit;
  text-decoration: none;
}
.stretched-link:hover {
  color: var(--accent);
  text-decoration: none;
}
.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
}
/* Keep secondary links/buttons above the overlay. */
.card a:not(.stretched-link),
.card button,
.card .card-action,
.state-tile a:not(.stretched-link),
.state-tile button {
  position: relative;
  z-index: 1;
}
.card:has(.stretched-link) {
  cursor: pointer;
}
.card:has(.stretched-link:hover),
.card:has(.stretched-link:focus-visible) {
  border-color: var(--accent);
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.08);
  transform: translateY(-1px);
}
.card:has(.stretched-link:hover) h2,
.card:has(.stretched-link:hover) h3,
.card:has(.stretched-link:focus-visible) h2,
.card:has(.stretched-link:focus-visible) h3 {
  color: var(--accent);
}
.card:has(.stretched-link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.stretched-link:focus {
  outline: none;
}
.stretched-link:focus-visible {
  outline: none;
  color: var(--accent);
}
/* Legacy whole-card anchors (map JS may still emit briefly); keep usable. */
a.card {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}
a.card:hover {
  border-color: var(--accent);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.08);
  transform: translateY(-1px);
}
a.card:hover h2,
a.card:hover h3 {
  color: var(--accent);
}
a.card:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.card h2,
.card h3 {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 650;
  line-height: 1.3;
  color: var(--text);
}
.card h2 a,
.card h3 a {
  color: var(--text);
  text-decoration: none;
}
.card h2 a:hover,
.card h3 a:hover {
  color: var(--accent);
}
.card-meta {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.25rem;
}
.badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: #78350f;
  border: 1px solid #fde68a;
}
.badge-muted {
  background: #f5f5f4;
  color: var(--text-muted);
  border-color: var(--border);
}

.hub-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.65rem;
}
.hub-links a {
  display: block;
  padding: 0.85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
}
.hub-links a:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.range-hero-compact.hero-block {
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.65rem;
}
.range-hero-compact .page-title {
  margin: 0 0 0.15rem;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  line-height: 1.2;
}
.range-location-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.15rem 0.35rem;
  margin: 0 0 0.45rem;
  font-size: 0.9375rem;
  line-height: 1.35;
}
.range-location-line .range-location {
  color: var(--text-muted);
  margin: 0;
  font-size: inherit;
}
.range-meta-sep {
  color: var(--text-muted);
}
.range-hours-status {
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  display: inline-block;
  line-height: 1.35;
  vertical-align: baseline;
}
.range-hours-status.status-open {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}
.range-hours-status.status-closed {
  background: #f5f5f4;
  color: var(--text-muted);
  border: 1px solid var(--border);
}
.range-hours-status.status-soon {
  background: var(--accent-soft);
  color: #92400e;
  border: 1px solid #fde68a;
}
.range-hours-status.status-unknown {
  background: #f5f5f4;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-weight: 600;
}
.range-hero-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem 0.65rem;
}
.range-hero-row .badges {
  margin-top: 0;
  flex: 1 1 auto;
}
.range-hero-row .action-bar {
  flex: 0 1 auto;
  gap: 0.35rem;
}
.range-hero-row .btn {
  padding: 0.4rem 0.75rem;
  font-size: 0.875rem;
}
.range-about-lead {
  margin: 0 0 0.65rem;
  padding: 0.65rem 0.85rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.range-about-lead .section-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}
.range-about-lead p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.range-card-before-you-go {
  margin-bottom: 0.65rem;
}
.before-you-go-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.before-you-go-list li {
  margin-bottom: 0.35rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.checklist-label {
  font-weight: 650;
  color: var(--text);
}
.checklist-jump {
  font-weight: 600;
  white-space: nowrap;
}
.range-map-banner {
  grid-column: 1 / -1;
}
.range-map-embed {
  position: relative;
  width: 100%;
  height: 200px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #e7e5e4;
}
.range-map-iframe {
  display: block;
  width: 100%;
  height: 200px;
  border: 0;
  pointer-events: none;
}
.range-map-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: transparent;
  cursor: pointer;
}
.range-map-footer-link {
  margin: 0.3rem 0 0;
  font-size: 0.8125rem;
  font-weight: 600;
}
.range-detail-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-bottom: 1rem;
}
.range-detail-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.range-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem 0.85rem;
}
.range-card .section-title {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}
.fee-subtitle {
  margin: 0.65rem 0 0.35rem;
  font-size: 0.875rem;
  font-weight: 650;
  color: var(--text-muted);
}
.range-card-ammo {
  border-color: #fcd34d;
  background: #fffbeb;
}
.hours-compact,
.compact-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9375rem;
  line-height: 1.4;
}
.hours-compact li,
.compact-list li {
  margin-bottom: 0.2rem;
}
.hours-line.hours-today {
  font-weight: 650;
  color: var(--text);
}
.ammo-rule-list {
  margin: 0;
  padding-left: 1.1rem;
}
.ammo-rule-list li {
  margin-bottom: 0.25rem;
}
.contact-line {
  margin: 0 0 0.25rem;
  font-size: 0.9375rem;
}
.range-about {
  margin-top: 0.5rem;
}
@media (min-width: 900px) {
  .range-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "stack prices"
      "map map"
      "ammo ammo"
      "rules amenities";
    gap: 0.65rem;
    align-items: start;
  }
  .range-detail-stack {
    grid-area: stack;
  }
  .range-card-prices {
    grid-area: prices;
  }
  .range-map-banner {
    grid-area: map;
  }
  .range-card-ammo {
    grid-area: ammo;
  }
  .range-card-rules {
    grid-area: rules;
  }
  .range-card-amenities {
    grid-area: amenities;
  }
  .range-hero-row {
    align-items: flex-end;
  }
}
.range-location {
  color: var(--text-muted);
  margin: 0 0 1rem;
  font-size: 1.0625rem;
}
.action-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.badge-open {
  background: #dcfce7;
  color: #166534;
}
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin: 1rem 0;
}
.chip-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}
.chip {
  display: inline-block;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 0.875rem;
  text-decoration: none;
}
.chip:hover {
  border-color: var(--accent);
}
.near-me-results {
  margin: 0.75rem 0;
  font-size: 0.9375rem;
}
.fee-list {
  margin: 0;
  padding-left: 1.25rem;
}
.fee-list li {
  margin-bottom: 0.5rem;
}
.fee-label {
  font-weight: 600;
}
.muted,
.fine-print {
  color: var(--text-muted);
  font-size: 0.875rem;
}
.map-list {
  display: grid;
  gap: 1rem;
}
.filter-label {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0.75rem 0 0.25rem;
}
.range-footer-links {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}
.breadcrumbs {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.breadcrumb-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb-item:not(:last-child)::after {
  content: ">";
  margin-left: 0.35rem;
  color: var(--text-muted);
  speak: never;
}
.breadcrumb-item a {
  color: var(--accent);
}
.range-city-hub {
  margin: 0.35rem 0 0;
  font-size: 0.9375rem;
}
.related-ranges,
.guide-related {
  margin-top: 1.75rem;
}
.map-crawl-section {
  margin-top: 1.5rem;
}
.map-crawl-list {
  columns: 1;
}
@media (min-width: 40rem) {
  .map-crawl-list {
    columns: 2;
  }
}
@media (min-width: 64rem) {
  .map-crawl-list {
    columns: 3;
  }
}
.home-value-props {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin: 1rem 0 0.5rem;
  line-height: 1.45;
}
.home-strip {
  margin-top: 2rem;
}
.home-card-row {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.geo-lead {
  margin: 0.5rem 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  text-decoration: none;
}
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.content-section {
  margin-bottom: 1.75rem;
}
.content-section h2 {
  font-size: 1.125rem;
  margin: 0 0 0.65rem;
  font-weight: 650;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th,
.data-table td {
  padding: 0.55rem 0.75rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  background: #f5f5f4;
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.data-table tr:last-child td {
  border-bottom: none;
}

.rule-list {
  margin: 0;
  padding-left: 1.15rem;
}
.rule-list li {
  margin-bottom: 0.45rem;
}
.rule-groups {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}
.rule-group-title {
  margin: 0 0 0.25rem;
  font-size: 0.8125rem;
  font-weight: 650;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.rule-more {
  margin-top: 0.15rem;
  font-size: 0.9375rem;
}
.rule-more summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.rule-source-link {
  margin: 0.5rem 0 0;
}

.feature-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.25rem 0 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.site-footer p {
  margin: 0.35rem 0;
}
.site-footer a {
  color: var(--text-muted);
}
.site-footer-guides {
  line-height: 1.45;
}
.range-guides {
  margin-top: 1.25rem;
}

.search-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: 1.25rem;
}
.search-panel label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}
.search-panel input[type="search"],
.search-panel input[type="text"] {
  width: 100%;
  max-width: 24rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  margin-bottom: 0.65rem;
}
.search-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}
.search-filters label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 500;
  color: var(--text);
  margin: 0;
}

.empty-note {
  color: var(--text-muted);
  font-style: italic;
}

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

.coverage-note {
  color: var(--text-muted);
  font-size: 0.9375rem;
  max-width: 40rem;
}

.search-panel select {
  display: block;
  width: 100%;
  max-width: 24rem;
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  margin-bottom: 0.65rem;
  background: var(--surface);
}

.state-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.75rem;
}

.state-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--text);
  text-decoration: none;
  height: 100%;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  cursor: pointer;
}
a.state-tile:hover,
.state-tile:has(.stretched-link:hover),
.state-tile:has(.stretched-link:focus-visible) {
  border-color: var(--accent);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(28, 25, 23, 0.08);
  transform: translateY(-1px);
}
a.state-tile:focus-visible,
.state-tile:has(.stretched-link:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.state-tile-name {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}
.state-tile:has(.stretched-link:hover) .state-tile-name,
.state-tile:has(.stretched-link:focus-visible) .state-tile-name,
a.state-tile:hover .state-tile-name {
  color: var(--accent);
}
.state-tile-count {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.state-map-page {
  margin-top: 1rem;
}

.state-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.state-map-view-btn.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent-hover);
}

.state-map-layout {
  display: grid;
  gap: 1rem;
}

.state-map-layout.state-map-view-map {
  grid-template-columns: 1fr;
}

.state-map-layout.state-map-view-map .state-map-list-panel {
  display: none;
}

.state-map-layout.state-map-view-list .state-map-canvas {
  display: none;
}

@media (min-width: 48rem) {
  .state-map-layout.state-map-view-both {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: start;
  }
}

.state-map-canvas {
  min-height: 16rem;
  height: min(55vh, 28rem);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  z-index: 0;
}

.state-map-list-panel .map-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.rangeyard-map-pin .leaflet-div-icon {
  background: var(--accent);
  border: 2px solid #fff;
  border-radius: 50%;
  width: 12px !important;
  height: 12px !important;
  margin-left: -6px !important;
  margin-top: -6px !important;
  box-shadow: var(--shadow);
}

/* --- Guides --- */
.guides-index-header {
  margin-bottom: 1.25rem;
}

.guide-index-grid > li {
  min-width: 0;
}

.guide-index-grid .guide-card {
  padding: 0;
  overflow: hidden;
  max-width: 100%;
  min-width: 0;
}

.guide-card-media {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  max-height: var(--guide-hero-max-height, 13.75rem);
  background: #e7e5e4;
  overflow: hidden;
}

.guide-card-thumb {
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

.guide-card-icon {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.4rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(28, 25, 23, 0.08);
  color: var(--accent);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
}

.guide-card-icon svg {
  width: 100%;
  height: 100%;
}

.guide-card-body {
  padding: 0.85rem 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.guide-topic-badge {
  align-self: flex-start;
}

.guide-page {
  max-width: 100%;
  min-width: 0;
}

.guide-page img {
  max-width: 100%;
}

.guide-hero {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  margin-bottom: 1.25rem;
  background: #292524;
  max-width: 100%;
  min-width: 0;
}

.guide-hero-banner {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  aspect-ratio: 16 / 9;
  max-height: var(--guide-hero-max-height, 13.75rem);
  overflow: hidden;
  background: #292524;
}

.guide-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  display: block;
}

@media (min-width: 40rem) {
  :root {
    --guide-hero-max-height: min(40vh, 22rem);
  }

  .guide-hero {
    margin-bottom: 1.5rem;
  }
}

.guide-hero-panel {
  padding: 1.1rem 1.25rem 1.25rem;
  background: linear-gradient(135deg, #fffbeb 0%, #fafaf9 55%, #fff 100%);
  border-top: 3px solid var(--accent);
}

.guide-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.guide-hero-icon {
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  color: var(--accent);
}

.guide-hero-icon svg {
  width: 100%;
  height: 100%;
}

.guide-title {
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 0.35rem;
  line-height: 1.2;
}

.guide-dek {
  margin: 0;
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 42rem;
}

.prose.guide-prose {
  max-width: 42rem;
}

.prose.guide-prose h2 {
  font-size: 1.2rem;
  font-weight: 650;
  margin: 1.75rem 0 0.65rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.prose.guide-prose h3 {
  font-size: 1.05rem;
  font-weight: 650;
  margin: 1.35rem 0 0.5rem;
}

.prose.guide-prose p {
  margin: 0 0 0.85rem;
}

.prose.guide-prose ul {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.prose.guide-prose li {
  margin-bottom: 0.35rem;
}

.prose.guide-prose li::marker {
  color: var(--accent);
}

.prose.guide-prose strong {
  font-weight: 650;
}

.prose.guide-prose code {
  font-size: 0.9em;
  background: #f5f5f4;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.guide-callout {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
}

.guide-callout-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.35rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent);
}

.guide-callout-safety {
  background: #fff7ed;
  border-color: #fed7aa;
}

.guide-callout-before {
  background: #fffbeb;
  border-color: #fde68a;
}

.guide-callout-tip {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.guide-callout-tip .guide-callout-label {
  color: #15803d;
}

.guide-callout-icon {
  display: inline-flex;
  flex: none;
  width: 1.25rem;
  height: 1.25rem;
}

.guide-callout-icon svg {
  width: 100%;
  height: 100%;
}

.guide-callout p:last-child {
  margin: 0;
}

.guide-quote {
  margin: 1rem 0;
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--text-muted);
}

.home-guides-strip .btn {
  margin-top: 0.25rem;
}

.changes-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.changes-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}

.changes-item:first-child {
  border-top: 1px solid var(--border);
}

.changes-range-link {
  grid-column: 1;
  font-weight: 650;
  text-decoration: none;
  color: var(--text);
}

.changes-range-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.changes-summary {
  grid-column: 1;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.changes-date {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  color: var(--text-muted);
  font-size: 0.875rem;
  white-space: nowrap;
}

.changes-empty {
  color: var(--text-muted);
  max-width: 40rem;
}

@media (max-width: 36rem) {
  .changes-item {
    grid-template-columns: 1fr;
  }

  .changes-date {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0.15rem;
  }
}
