/* Drone Rules HQ - Main Stylesheet */

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

[hidden] { display: none !important; }

:root {
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --page-bg: radial-gradient(circle at top, rgba(96, 165, 250, 0.12), transparent 34%), linear-gradient(180deg, #f3f8fd 0%, #edf3f9 46%, #e8eff7 100%);
  --surface-bg: rgba(255, 255, 255, 0.82);
  --surface-elevated-bg: rgba(255, 255, 255, 0.94);
  --surface-muted-bg: rgba(241, 246, 252, 0.92);
  --text-primary: #223041;
  --text-strong: #07111f;
  --text-secondary: #536476;
  --text-muted: #708397;
  --link-color: #0a66c2;
  --accent-color: #0077ff;
  --accent-hover: #005fd1;
  --accent-strong: #0b1020;
  --accent-soft: rgba(0, 119, 255, 0.12);
  --accent-soft-strong: rgba(0, 119, 255, 0.18);
  --border-color: rgba(133, 157, 185, 0.32);
  --border-strong: rgba(133, 157, 185, 0.44);
  --nav-border: rgba(255, 255, 255, 0.52);
  --control-border: rgba(122, 146, 174, 0.38);
  --focus-ring: rgba(37, 99, 235, 0.24);
  --shadow-color: rgba(15, 23, 42, 0.08);
  --nav-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  --card-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
  --button-shadow: 0 14px 30px rgba(0, 90, 190, 0.18);
  --control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8), 0 10px 24px rgba(15, 23, 42, 0.05);
  --hero-bg: radial-gradient(circle at top left, rgba(0, 119, 255, 0.2), transparent 32%), linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(230, 240, 251, 0.95) 45%, rgba(216, 228, 244, 0.98) 100%);
  --nav-bg: rgba(248, 251, 255, 0.72);
  --footer-bg: linear-gradient(180deg, #0f1b2d 0%, #07111f 100%);
  --footer-text: #fff;
  --footer-text-secondary: #9eb0c7;
  --footer-border: rgba(138, 162, 191, 0.26);
  --notice-bg: linear-gradient(180deg, rgba(255, 248, 225, 0.96) 0%, rgba(255, 242, 204, 0.94) 100%);
  --notice-border: #ffb300;
  --table-row-hover: rgba(0, 119, 255, 0.08);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(84px + var(--safe-top));
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--page-bg);
  background-attachment: fixed;
  min-height: 100vh;
  overflow-x: hidden;
}

@media (hover: none), (pointer: coarse) {
  html {
    scroll-behavior: auto;
  }

  .site-nav a,
  .nav-links a,
  .sidebar-links a,
  .sidebar-section a,
  .location-tool-link,
  .city-card,
  .airport-card,
  .browse-card,
  .state-link,
  .btn,
  .site-search button,
  .airport-map-button,
  .site-theme-toggle,
  .site-nav-toggle {
    transition-duration: 0.12s;
  }

  .site-nav a:hover,
  .nav-links a:hover,
  .sidebar-links a:hover,
  .sidebar-section a:hover,
  .location-tool-link:hover,
  .city-card:hover,
  .airport-card:hover,
  .browse-card:hover,
  .state-link:hover,
  .btn:hover,
  .site-search button:hover,
  .airport-map-button:hover,
  .site-theme-toggle:hover,
  .site-nav-toggle:hover {
    transform: none;
    filter: none;
  }
}

a {
  color: var(--link-color);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

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

strong {
  font-weight: 600;
}

/* Container & Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: calc(20px + var(--safe-left));
  padding-right: calc(20px + var(--safe-right));
}

/* Header */
.site-header {
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--safe-top);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--nav-shadow);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 20px;
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  color: var(--text-strong);
}

.brand span {
  white-space: nowrap;
}

.brand i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #38bdf8 100%);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 14px 28px rgba(0, 119, 255, 0.2);
}

.site-nav {
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.site-nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-elevated-bg);
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 600;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: var(--control-shadow);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.site-nav-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--control-border);
  transform: translateY(-1px);
}

.site-nav-toggle-icon {
  font-size: 1rem;
}

.site-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  flex-shrink: 0;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: var(--surface-elevated-bg);
  color: var(--text-strong);
  font-size: 15px;
  font-weight: 600;
  padding: 0 14px;
  cursor: pointer;
  box-shadow: var(--control-shadow);
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.site-theme-toggle:hover {
  background: var(--accent-soft);
  border-color: var(--control-border);
  transform: translateY(-1px);
}

.site-theme-toggle-icon {
  font-size: 1rem;
}

.site-theme-toggle-label {
  white-space: nowrap;
}

.site-search input::placeholder,
.listing-filter-input::placeholder,
.airport-map-search-input::placeholder {
  color: var(--text-muted);
}

.site-nav a {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 999px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover {
  background: var(--accent-soft);
  border-color: var(--border-color);
  color: var(--accent-color);
  text-decoration: none;
  transform: translateY(-1px);
}

.site-search-wrap {
  flex: 0 1 340px;
  max-width: 340px;
  min-width: 280px;
  margin-left: auto;
}

.site-search {
  display: flex;
  gap: 8px;
  align-items: center;
  width: 100%;
  background: var(--surface-elevated-bg);
  border: 1px solid var(--control-border);
  border-radius: 16px;
  padding: 6px 8px 6px 14px;
  box-shadow: var(--control-shadow);
}

.site-search input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 500;
  outline: none;
}

.site-search button {
  background: linear-gradient(135deg, var(--accent-color) 0%, #38bdf8 100%);
  border: 0;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  box-shadow: var(--button-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.site-search button:hover {
  color: #fff;
  opacity: 0.96;
  transform: translateY(-1px);
}

/* Legacy Guide Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  padding-top: var(--safe-top);
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-border);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: var(--nav-shadow);
}

.navbar .container {
  display: flex;
  align-items: center;
  gap: 20px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.01em;
  color: var(--text-strong);
}

.navbar-brand i {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-right: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-color) 0%, #38bdf8 100%);
  color: #fff;
  font-size: 18px;
  box-shadow: 0 14px 28px rgba(0, 119, 255, 0.2);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  padding: 0;
  list-style: none;
}

.navbar .site-theme-toggle {
  margin-left: auto;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: var(--accent-soft);
  border-color: var(--border-color);
  color: var(--accent-color);
  text-decoration: none;
  transform: translateY(-1px);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Hero Section */
.hero {
  background: var(--hero-bg);
  position: relative;
  overflow: hidden;
  padding: 84px 20px 74px;
  border-bottom: 1px solid var(--border-color);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.35), transparent 78%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-color);
  margin-bottom: 12px;
}

h1 {
  font-size: clamp(2.75rem, 5vw, 4.25rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 22px;
  color: var(--text-strong);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 700;
  margin: 40px 0 20px;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 24px 0 16px;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.hero-text {
  max-width: 62ch;
  font-size: 17px;
  line-height: 1.85;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-capabilities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  max-width: 62ch;
}

.hero-capabilities li {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-bg);
  box-shadow: 0 10px 22px var(--shadow-color);
  color: var(--text-strong);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
}

.hero-meta {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-meta span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Location Lookup */
.location-tool {
  display: grid;
  gap: 18px;
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-bg) 0%, #f3f7ff 100%);
  box-shadow: 0 18px 42px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.location-tool-home {
  grid-template-columns: minmax(0, 1.35fr) minmax(260px, 0.8fr);
  align-items: start;
}

.location-tool-inline {
  margin-top: 0;
  margin-bottom: 28px;
}

.location-tool::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #38bdf8 48%, transparent 100%);
  opacity: 0.9;
}

.location-tool-copy h2 {
  margin: 8px 0 10px;
  font-size: 28px;
  line-height: 1.15;
}

.location-tool-eyebrow {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--accent-color);
  margin-bottom: 4px;
}

.location-tool-copy p:last-child {
  margin-bottom: 0;
  color: var(--text-secondary);
}

.location-tool-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  min-width: 0;
}

.location-tool-button {
  background: #111827;
  color: #fff;
  padding: 14px 20px;
  border-radius: 999px;
  box-shadow: 0 12px 28px rgba(17, 24, 39, 0.12);
}

.location-tool-button:hover {
  background: #0f172a;
}

.location-tool-button:disabled {
  opacity: 0.65;
  cursor: progress;
  transform: none;
  box-shadow: none;
}

.location-tool-status,
.location-tool-fallback {
  font-size: 14px;
  color: var(--text-secondary);
}

.location-tool-fallback a {
  font-weight: 600;
}

.location-tool-results {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
}

.location-tool-summary {
  margin-bottom: 0;
  font-size: 14px;
  color: var(--text-secondary);
}

.location-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.location-tool-group {
  background: var(--surface-bg);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 14px 30px var(--shadow-color);
}

.location-tool-group h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 18px;
}

.location-tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.location-tool-list li + li {
  margin-top: 10px;
}

.location-tool-link {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface-muted-bg);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  color: var(--text-primary);
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.location-tool-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent-color);
  box-shadow: 0 14px 24px var(--shadow-color);
  transform: translateY(-1px);
  text-decoration: none;
}

.location-tool-link-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-tool-link-distance {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent-color);
}

/* Main Layout */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
  padding: 40px 20px;
}

.main-column {
  min-width: 0;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

  .airport-info-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .frequency-card-grid {
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  }

  .location-tool-home,
  .location-tool-grid {
    grid-template-columns: 1fr;
  }

  .site-nav-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    margin-left: 0;
    margin-top: 8px;
    gap: 10px;
    flex-wrap: wrap;
  }

  .site-header.mobile-nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    width: 100%;
    justify-content: flex-start;
    font-size: 16px;
    padding: 12px 14px;
  }

  .site-search-wrap {
    width: 100%;
    order: 5;
    margin-left: 0;
    max-width: 100%;
    min-width: 0;
  }

  h1 {
    font-size: 32px;
  }
  
  h2 {
    font-size: 24px;
  }
}

/* Content Cards */
.content-card {
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 34px;
  margin-bottom: 24px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.sidebar-card {
  padding: 20px;
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-elevated-bg) 100%);
  box-shadow: 0 16px 34px var(--shadow-color);
}

.page-body {
  line-height: 1.8;
}

.page-body section {
  margin-bottom: 40px;
}

.page-body > section,
.guide-content > section {
  position: relative;
}

.page-body > section + section,
.guide-content > section + section {
  padding-top: 28px;
  border-top: 1px solid var(--border-color);
}

.page-body ul, .page-body ol {
  margin-left: 20px;
  margin-bottom: 20px;
}

.page-body li {
  margin-bottom: 10px;
}

.page-body p {
  margin-bottom: 16px;
}

.airport-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 16px;
  margin: 0 0 20px;
}

.airport-info-item {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--border-color);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-muted-bg) 100%);
  box-shadow: 0 12px 26px var(--shadow-color);
}

.airport-info-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.airport-info-value {
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.4;
  word-break: break-word;
}

.frequency-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.frequency-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--border-color);
  border-radius: 18px;
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-elevated-bg) 100%);
  box-shadow: 0 14px 30px var(--shadow-color);
}

.frequency-card-type {
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-color);
}

.frequency-card-value {
  margin-bottom: 0;
  color: var(--text-strong);
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.frequency-card-value span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}

.frequency-card-purpose {
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.5;
}

.guide-page {
  align-items: start;
}

.guide-article {
  margin-bottom: 0;
}

.guide-header {
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
}

.guide-header .eyebrow {
  margin-bottom: 10px;
}

.guide-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 14px;
}

.guide-meta .divider {
  color: var(--text-muted);
}

.guide-content > :first-child {
  margin-top: 0;
}

.guide-content > h1:first-child {
  display: none;
}

.guide-content > h2:first-child {
  margin-top: 0;
}

.compliance-checklist {
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-muted-bg) 100%);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 18px 34px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.compliance-checklist::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #38bdf8 60%, transparent 100%);
}

.compliance-checklist h2 {
  margin-top: 0;
}

.compliance-checklist p {
  color: var(--text-secondary);
}

.compliance-checklist ul {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.compliance-checklist li {
  margin-bottom: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-color);
  border-radius: 14px;
  background: var(--surface-bg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.guide-content h2,
.guide-content h3 {
  scroll-margin-top: calc(110px + var(--safe-top));
}

.guide-content ul,
.guide-content ol {
  padding-left: 1.2rem;
}

.guide-content table {
  margin-top: 24px;
}

.guide-footer {
  margin-top: 32px;
}

.guide-footer .page-disclaimer {
  margin-top: 0;
}

.guide-sidebar {
  position: sticky;
  top: calc(96px + var(--safe-top));
}

.sidebar-section {
  margin-bottom: 0;
}

.sidebar-section h3 {
  margin-top: 0;
}

.sidebar-section ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-section li + li {
  margin-top: 8px;
}

.sidebar-section a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--accent-color);
  font-weight: 600;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-section a:hover,
.sidebar-section a:focus-visible {
  background: var(--surface-muted-bg);
  color: var(--accent-color);
  border-color: var(--border-color);
  box-shadow: 0 14px 24px var(--shadow-color);
  text-decoration: none;
  transform: translateX(2px);
}

.statute-list {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.statute-card {
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-elevated-bg) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 18px 34px var(--shadow-color);
}

.statute-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.statute-citation {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-color);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.statute-category {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-muted-bg);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 700;
}

.statute-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: 10px;
}

.statute-summary,
.statute-effective,
.weather-note,
.tfr-note,
.map-note,
.airport-map-status {
  color: var(--text-secondary);
}

.statute-summary,
.statute-effective,
.weather-note,
.tfr-note {
  font-size: 14px;
  line-height: 1.7;
}

.statute-effective,
.weather-note,
.tfr-note {
  margin: 12px 0 0;
}

.statute-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: var(--surface-bg);
  color: var(--accent-color);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.statute-link:hover,
.statute-link:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-color);
  box-shadow: 0 14px 24px var(--shadow-color);
  transform: translateY(-1px);
  text-decoration: none;
}

.airspace-legend {
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-elevated-bg) 100%);
  border-radius: 18px;
}

.airspace-legend-title {
  color: var(--text-strong);
}
}

/* Browse Grid */
.browse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin: 30px 0;
}

/* Cities Grid */
.cities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.city-card {
  display: block;
  padding: 18px 18px 16px;
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-muted-bg) 100%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  text-align: left;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  box-shadow: 0 16px 28px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.city-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
  opacity: 0.85;
}

.city-card strong {
  display: block;
  color: var(--accent-color);
  font-weight: 700;
  margin-bottom: 6px;
  font-size: 1rem;
}

.city-card span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

.city-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent-color);
  box-shadow: 0 20px 34px var(--shadow-color);
  transform: translateY(-2px);
  text-decoration: none;
}

.browse-card {
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-elevated-bg) 100%);
  border: 1px solid var(--border-color);
  border-radius: 22px;
  padding: 26px 24px 24px;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 38px var(--shadow-color);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
  display: flex;
  flex-direction: column;
}

.browse-card h3 {
  margin: 0 0 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.22rem;
}

.browse-card p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 22px;
  line-height: 1.7;
  flex: 1;
}

.browse-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent-color) 0%, #38bdf8 55%, transparent 100%);
}

.browse-card .btn {
  align-self: flex-start;
}

.browse-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-color);
  box-shadow: 0 24px 40px var(--shadow-color);
}

/* Buttons */
.btn {
  display: inline-block;
  background: linear-gradient(135deg, var(--accent-color) 0%, #38bdf8 100%);
  color: #fff;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, background 0.2s ease;
  border: none;
  cursor: pointer;
  box-shadow: var(--button-shadow);
}

.btn:hover {
  background: var(--accent-hover);
  text-decoration: none;
  transform: translateY(-1px);
  filter: saturate(1.05);
}

.btn:focus-visible,
.site-search button:focus-visible,
.site-theme-toggle:focus-visible,
.site-nav-toggle:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

/* State List Grid */
.state-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.state-link {
  display: block;
  padding: 18px 16px;
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-muted-bg) 100%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  text-align: center;
  font-weight: 700;
  color: var(--accent-color);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
  box-shadow: 0 14px 24px var(--shadow-color);
}

.state-link:hover {
  background: var(--accent-soft);
  border-color: var(--accent-color);
  box-shadow: 0 18px 30px var(--shadow-color);
  transform: translateY(-2px);
  text-decoration: none;
}

/* Notice */
.notice {
  padding: 22px 24px;
  border-radius: 18px;
  margin-bottom: 24px;
  border-left: 4px solid;
  border: 1px solid transparent;
  font-size: 14px;
  line-height: 1.7;
  box-shadow: var(--card-shadow);
}

.notice-warning {
  background: var(--notice-bg);
  border-color: var(--notice-border);
  color: #664d00;
}

.notice strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text-strong);
}

.notice-success {
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.96) 0%, rgba(220, 252, 231, 0.94) 100%);
  border-color: #22c55e;
  color: #14532d;
}

.notice-error {
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.96) 0%, rgba(254, 226, 226, 0.94) 100%);
  border-color: #ef4444;
  color: #7f1d1d;
}

.notice-success strong,
.notice-error strong {
  color: inherit;
}

.feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.feedback-panel {
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-muted-bg) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 24px;
  box-shadow: var(--card-shadow);
}

.feedback-panel h2 {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
}

.feedback-panel p,
.feedback-panel li {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.feedback-panel ul {
  margin: 14px 0 0 20px;
}

.feedback-form {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.feedback-field {
  display: grid;
  gap: 8px;
}

.feedback-field label {
  font-weight: 700;
  color: var(--text-strong);
}

.feedback-input,
.feedback-form select,
.feedback-form textarea {
  width: 100%;
  border: 1px solid var(--control-border);
  border-radius: 16px;
  background: var(--surface-elevated-bg);
  color: var(--text-primary);
  padding: 14px 16px;
  font: inherit;
  box-shadow: var(--control-shadow);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.feedback-form textarea {
  min-height: 180px;
  resize: vertical;
}

.feedback-input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--focus-ring), var(--control-shadow);
}

.feedback-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.feedback-note {
  font-size: 13px;
  color: var(--text-muted);
}

.feedback-status {
  margin-bottom: 0;
}

/* Disclaimer */
.page-disclaimer {
  background: var(--surface-muted-bg);
  padding: 28px;
  border: 1px solid var(--border-color);
  border-radius: 20px;
  margin-top: 40px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.page-disclaimer::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--accent-color) 0%, #38bdf8 100%);
}

.page-disclaimer h2 {
  margin-top: 0;
  font-size: 20px;
}

.page-disclaimer p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

/* Sidebar Links */
.sidebar-links {
  list-style: none;
  margin-left: 0;
  padding: 0;
}

.sidebar-links li {
  margin-bottom: 8px;
}

.sidebar-links a {
  display: block;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--accent-color);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.sidebar-links a:hover {
  background: var(--surface-muted-bg);
  border-color: var(--border-color);
  box-shadow: 0 14px 24px var(--shadow-color);
  transform: translateX(2px);
  text-decoration: none;
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 20px calc(28px + var(--safe-bottom));
  margin-top: 60px;
  border-top: 1px solid var(--footer-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  margin-bottom: 20px;
}

.footer-brand {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-copy {
  font-size: 14px;
  color: var(--footer-text-secondary);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  color: var(--footer-text-secondary);
  transition: color 0.2s;
  min-height: 44px;
}

.footer-links a:hover {
  color: var(--accent-color);
  text-decoration: none;
}

/* Icons */
i {
  margin-right: 6px;
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface-bg);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
}

th {
  background: var(--surface-muted-bg);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--border-color);
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-color);
}

/* Airports Table */
.airports-table {
  margin: 30px 0;
  font-size: 14px;
}

.airports-table thead {
  background: var(--surface-muted-bg);
}

.airports-table thead th {
  padding: 16px 12px;
  font-weight: 600;
  color: var(--text-primary);
  border-bottom: 2px solid var(--border-color);
}

.airports-table tbody tr {
  transition: background-color 0.2s;
}

.airports-table tbody tr:hover {
  background-color: var(--surface-elevated-bg);
}

.airports-table tbody td {
  padding: 12px;
  border-bottom: 1px solid var(--border-color);
}

.airports-table strong {
  color: var(--accent-color);
  font-weight: 600;
}

/* Airports Grid */
.airports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin: 30px 0;
}

.airport-card {
  display: block;
  padding: 18px;
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-muted-bg) 100%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  text-align: left;
  color: var(--text-primary);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
  text-decoration: none;
  box-shadow: 0 16px 28px var(--shadow-color);
  position: relative;
  overflow: hidden;
}

.airport-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-color) 0%, transparent 100%);
}

.airport-card strong {
  display: block;
  color: var(--accent-color);
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 8px;
}

.airport-card span {
  display: block;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.airport-card .airport-city {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 6px;
}

.airport-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent-color);
  text-decoration: none;
  box-shadow: 0 20px 34px var(--shadow-color);
  transform: translateY(-2px);
}

/* Code blocks */
code {
  background: var(--surface-muted-bg);
  padding: 2px 6px;
  border-radius: 3px;
  font-family: 'Monaco', 'Courier New', monospace;
  font-size: 14px;
  color: #c41c00;
}

pre {
  background: var(--surface-muted-bg);
  padding: 16px;
  border-radius: 6px;
  overflow-x: auto;
  margin: 20px 0;
}

pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Weather Widget */
.weather-container {
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-elevated-bg) 100%);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 18px 34px var(--shadow-color);
}

.weather-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
}

.flight-category {
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

.weather-data {
  margin-bottom: 12px;
}

.weather-data p {
  margin-bottom: 8px;
  font-size: 14px;
}

.weather-time {
  font-size: 12px;
  color: var(--text-muted);
}

.weather-error {
  color: #c41c00;
  font-size: 14px;
}

/* TFR Widget */
.tfr-container {
  background: linear-gradient(180deg, #fffaf6 0%, #fdf5ee 100%);
  border: 1px solid #f0ddd0;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 18px 34px rgba(110, 72, 36, 0.08);
}

.tfr-list {
  display: grid;
  gap: 12px;
}

.tfr-summary {
  margin: 0 0 4px;
  font-size: 14px;
  color: #5f463a;
}

.tfr-item {
  background: #fff;
  border: 1px solid #f1d2c2;
  border-left: 4px solid #d9534f;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 12px 24px rgba(110, 72, 36, 0.08);
}

.tfr-item-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.tfr-item-header strong {
  font-size: 15px;
  line-height: 1.4;
}

.tfr-pill {
  background: #d9534f;
  color: #fff;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 2px 8px;
  white-space: nowrap;
}

.tfr-meta,
.tfr-distance,
.tfr-link,
.tfr-error,
.tfr-empty,
.tfr-loading {
  margin: 0;
  font-size: 14px;
}

.tfr-meta,
.tfr-distance {
  color: #6a564d;
  margin-top: 6px;
}

.tfr-link {
  margin-top: 8px;
}

.tfr-link a {
  color: #b63b31;
  font-weight: 700;
  text-decoration: none;
}

.tfr-link a:hover,
.tfr-link a:focus {
  text-decoration: underline;
}

.tfr-error {
  color: #c41c00;
}

.tfr-empty {
  color: #7a665c;
}

.tfr-loading {
  color: #7a665c;
}

.tfr-note {
  color: #7a665c;
}

/* Utility Classes */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}

/* Responsive */
@media (max-width: 768px) {
  html {
    scroll-padding-top: calc(76px + var(--safe-top));
  }

  body {
    background-attachment: scroll;
  }

  .site-header,
  .navbar {
    backdrop-filter: blur(10px) saturate(125%);
    -webkit-backdrop-filter: blur(10px) saturate(125%);
  }

  .container {
    padding-left: calc(16px + var(--safe-left));
    padding-right: calc(16px + var(--safe-right));
  }

  .header-inner {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px 16px;
    align-items: center;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    font-size: 16px;
  }

  .brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand i {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .navbar .container {
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .navbar-brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    font-size: 16px;
  }

  .navbar-brand span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .navbar-brand i {
    width: 34px;
    height: 34px;
    font-size: 16px;
  }

  .nav-links {
    width: 100%;
    order: 3;
    margin-left: 0;
    flex-wrap: wrap;
    gap: 8px;
  }

  .navbar .site-theme-toggle {
    order: 2;
    margin-left: auto;
  }

  .nav-links li {
    flex: 1 1 calc(50% - 4px);
  }

  .nav-links a {
    width: 100%;
    justify-content: center;
  }
  
  .site-nav {
    display: none;
    width: 100%;
    order: 4;
    gap: 10px;
    margin-left: 0;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .site-header.mobile-nav-open .site-nav {
    display: flex;
  }

  .site-nav-toggle {
    display: inline-flex;
    order: 2;
    margin-left: auto;
    min-width: 48px;
    min-height: 48px;
    padding: 0 12px;
  }

  .site-theme-toggle {
    order: 3;
    min-width: 48px;
    min-height: 48px;
    padding: 0 12px;
  }

  .site-theme-toggle-label {
    display: none;
  }
  
  .site-search-wrap {
    width: 100%;
    order: 5;
    margin-left: 0;
    max-width: 100%;
  }

  .site-search {
    border-radius: 14px;
  }

  .search-dropdown {
    top: calc(100% + 4px);
    border-radius: 14px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .search-result-item {
    align-items: flex-start;
    padding: 12px 14px;
  }

  .search-result-title {
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  .search-result-kind {
    margin-top: 1px;
  }

  .hero {
    padding: 56px 16px 48px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-copy {
    max-width: none;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.75;
  }

  .hero-capabilities {
    gap: 8px;
    margin-bottom: 18px;
  }

  .hero-capabilities li {
    padding: 9px 12px;
    font-size: 12px;
  }

  .hero-meta {
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .page-layout {
    gap: 24px;
    padding: 24px 16px;
  }

  .content-card {
    padding: 20px 18px;
    border-radius: 18px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .guide-header {
    margin-bottom: 22px;
    padding-bottom: 18px;
  }

  .guide-meta {
    gap: 8px 12px;
    font-size: 13px;
  }

  .guide-sidebar {
    position: static;
    top: auto;
  }

  .notice,
  .page-disclaimer {
    padding: 18px;
    border-radius: 16px;
  }

  .compliance-checklist {
    padding: 20px 18px;
    border-radius: 18px;
  }

  .statute-card {
    padding: 18px;
    border-radius: 18px;
  }

  .browse-card,
  .city-card,
  .airport-card,
  .state-link {
    border-radius: 14px;
  }

  .browse-card,
  .city-card,
  .airport-card,
  .state-link,
  .weather-container,
  .tfr-container,
  .airport-map-toolbar,
  .sidebar-card,
  .page-disclaimer,
  .compliance-checklist,
  .statute-card,
  .search-dropdown,
  .location-tool,
  .location-tool-group,
  .airspace-legend {
    box-shadow: 0 10px 18px var(--shadow-color);
  }

  .btn,
  .location-tool-button,
  .airport-map-button,
  .sidebar-links a,
  .footer-links a {
    min-height: 48px;
  }

  .location-tool {
    gap: 14px;
    padding: 18px;
  }

  .location-tool-actions {
    width: 100%;
    align-items: stretch;
  }

  .location-tool-button {
    width: 100%;
    justify-content: center;
  }

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

  .state-list-grid {
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  }
  
  .browse-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  
  .footer-links {
    flex-direction: column;
    gap: 8px;
  }

  .listing-filter-wrap {
    flex-direction: column;
    align-items: stretch;
  }

  .listing-filter-input {
    max-width: none;
    width: 100%;
  }

  .listing-filter-count {
    min-width: 0;
  }

  .location-tool-copy h2 {
    font-size: 24px;
  }

  th,
  td {
    padding: 12px 14px;
  }
}

@media (max-width: 480px) {
  .nav-links li {
    flex-basis: 100%;
  }

  .site-header,
  .navbar {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .site-nav a {
    padding: 12px 13px;
  }

  .hero {
    padding: 46px 16px 40px;
  }

  h1 {
    font-size: clamp(2rem, 10vw, 2.5rem);
    line-height: 1.08;
  }

  h2 {
    font-size: 1.55rem;
  }

  .hero-meta {
    font-size: 13px;
  }

  .location-tool-copy h2 {
    font-size: 22px;
  }

  .cities-grid,
  .airports-grid,
  .state-list-grid {
    grid-template-columns: 1fr;
  }

  .search-result-item {
    gap: 10px;
  }

  .search-result-kind {
    font-size: 10px;
  }

  .airport-map-toolbar {
    padding: 10px;
  }

  .compliance-checklist li {
    padding: 11px 12px;
  }

  .airport-map-search-input {
    min-width: 0;
  }
}

/* ─── Search dropdown ────────────────────────────────────────────────────── */

.search-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-elevated-bg) 100%);
  border: 1px solid var(--border-color);
  border-radius: 18px;
  box-shadow: var(--card-shadow);
  z-index: 200;
  overflow: hidden;
  max-height: min(60vh, 420px);
  overflow-y: auto;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  border-bottom: 1px solid var(--border-color);
  transition: background 0.15s ease, color 0.15s ease;
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover,
.search-result-active {
  background: var(--accent-soft);
  color: var(--accent-color);
  text-decoration: none;
}

.search-result-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.search-result-kind {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  letter-spacing: 0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}

.search-kind-state  { background: #e8f4e8; color: #2d7d2d; }
.search-kind-city   { background: #e8f0ff; color: #1a56cc; }
.search-kind-airport{ background: #fff3e0; color: #c26a00; }
.search-kind-guide  { background: #f3e8ff; color: #7b2fa8; }

/* ─── Listing-page filter ────────────────────────────────────────────────── */

.listing-filter-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.listing-filter-input {
  flex: 1;
  max-width: 360px;
  padding: 11px 15px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  background: var(--surface-elevated-bg);
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  box-shadow: var(--control-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.listing-filter-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--control-shadow);
}

.listing-filter-count {
  font-size: 13px;
  color: var(--text-secondary);
  min-width: 80px;
}

.airport-airspace-map {
  width: 100%;
  aspect-ratio: 3 / 2;
  min-height: 320px;
  margin-top: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  overflow: hidden;
}

.airport-airspace-map iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}



.airport-map-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 16px;
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-muted-bg) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  box-shadow: 0 18px 34px var(--shadow-color);
}

.airport-map-search-form {
  display: flex;
  flex: 1 1 320px;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.airport-map-search-input {
  flex: 1 1 auto;
  min-width: 180px;
  padding: 11px 13px;
  border: 1px solid var(--control-border);
  border-radius: 14px;
  background: var(--surface-elevated-bg);
  color: var(--text-primary);
  font-size: 16px;
  outline: none;
  box-shadow: var(--control-shadow);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.airport-map-search-input:focus {
  border-color: var(--accent-color);
  box-shadow: 0 0 0 4px var(--accent-soft), var(--control-shadow);
}

.airport-map-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
}

.airport-map-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 14px;
  min-height: 44px;
  border: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--button-shadow);
  transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.airport-map-button:hover {
  opacity: 0.98;
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.18);
  filter: saturate(1.04);
}

.airport-map-button:focus-visible {
  outline: 3px solid var(--focus-ring);
  outline-offset: 2px;
}

.airport-map-search-button {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
}

.airport-map-location-button {
  background: linear-gradient(135deg, var(--accent-color) 0%, #38bdf8 100%);
}

.airport-map-center-button {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

.airport-map-button i {
  font-size: 0.95em;
}

@media (max-width: 720px) {
  .airport-map-search-form,
  .airport-map-actions {
    flex: 1 1 100%;
  }

  .airport-map-button {
    flex: 1 1 100%;
  }
}
.airport-map-status {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

.airspace-legend {
  margin-top: 14px;
  padding: 12px;
  background: var(--surface-muted-bg);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  box-shadow: var(--card-shadow);
}

.airspace-legend-title {
  margin: 0 0 10px;
}

.airspace-legend ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.airspace-legend li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.legend-swatch {
  width: 18px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
  flex: 0 0 18px;
  margin-top: 3px;
}

.legend-class-b {
  background: #2563eb;
}

.legend-class-c {
  background: #7c3aed;
}

.legend-class-d {
  border: 2px dashed #1d4ed8;
  background: transparent;
}

.legend-class-e {
  border: 2px dashed #0f766e;
  background: rgba(15, 118, 110, 0.15);
}

.map-note {
  margin-top: 12px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --page-bg: radial-gradient(circle at top, rgba(56, 189, 248, 0.12), transparent 26%), radial-gradient(circle at top right, rgba(0, 119, 255, 0.16), transparent 30%), linear-gradient(180deg, #06101d 0%, #091524 38%, #0b1220 100%);
  --surface-bg: rgba(11, 23, 40, 0.76);
  --surface-elevated-bg: rgba(15, 27, 46, 0.88);
  --surface-muted-bg: rgba(13, 23, 40, 0.92);
  --text-primary: #d7e2f1;
  --text-strong: #f8fafc;
  --text-secondary: #c8d6ea;
  --text-muted: #8fa2c1;
  --link-color: #8ab4f8;
  --accent-color: #5cc8ff;
  --accent-hover: #86ddff;
  --accent-strong: #08182c;
  --accent-soft: rgba(92, 200, 255, 0.14);
  --accent-soft-strong: rgba(92, 200, 255, 0.22);
  --border-color: rgba(67, 93, 128, 0.62);
  --border-strong: rgba(88, 117, 154, 0.74);
  --nav-border: rgba(112, 144, 184, 0.2);
  --control-border: rgba(107, 140, 182, 0.46);
  --focus-ring: rgba(37, 99, 235, 0.28);
  --shadow-color: rgba(0, 0, 0, 0.35);
  --nav-shadow: 0 20px 46px rgba(0, 0, 0, 0.34);
  --card-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --button-shadow: 0 16px 30px rgba(8, 24, 44, 0.34);
  --control-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 14px 28px rgba(0, 0, 0, 0.18);
  --hero-bg: radial-gradient(circle at top left, rgba(92, 200, 255, 0.18), transparent 26%), linear-gradient(135deg, rgba(7, 17, 31, 0.94) 0%, rgba(10, 22, 39, 0.98) 40%, rgba(13, 23, 40, 1) 100%);
  --nav-bg: rgba(8, 18, 33, 0.72);
  --footer-bg: linear-gradient(180deg, #040a14 0%, #07101b 100%);
  --footer-text: #f8fafc;
  --footer-text-secondary: #94a3b8;
  --footer-border: rgba(88, 117, 154, 0.22);
  --notice-bg: linear-gradient(180deg, rgba(57, 42, 9, 0.96) 0%, rgba(42, 34, 13, 0.96) 100%);
  --notice-border: #ad7b00;
  --table-row-hover: rgba(92, 200, 255, 0.1);
}

html[data-theme="dark"] body {
  color: var(--text-primary);
  background: var(--page-bg);
}

html[data-theme="dark"] a {
  color: var(--link-color);
}

html[data-theme="dark"] a:hover {
  color: var(--accent-hover);
}

html[data-theme="dark"] .site-header {
  background: var(--nav-bg);
  border-bottom-color: var(--nav-border);
}

html[data-theme="dark"] .brand {
  color: var(--text-strong);
}

html[data-theme="dark"] .eyebrow,
html[data-theme="dark"] .location-tool-eyebrow,
html[data-theme="dark"] .city-card strong,
html[data-theme="dark"] .airport-card strong,
html[data-theme="dark"] .airports-table strong {
  color: var(--accent-color);
}

html[data-theme="dark"] .brand i {
  color: #fff;
  box-shadow: 0 16px 32px rgba(6, 10, 20, 0.34);
}

html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .site-nav-toggle,
html[data-theme="dark"] .footer-links a,
html[data-theme="dark"] .sidebar-links a,
html[data-theme="dark"] .page-disclaimer p,
html[data-theme="dark"] .hero-text,
html[data-theme="dark"] .hero-meta,
html[data-theme="dark"] .location-tool-copy p:last-child,
html[data-theme="dark"] .location-tool-status,
html[data-theme="dark"] .location-tool-fallback,
html[data-theme="dark"] .location-tool-summary,
html[data-theme="dark"] .location-tool-link,
html[data-theme="dark"] .weather-time,
html[data-theme="dark"] .weather-error,
html[data-theme="dark"] .tfr-summary,
html[data-theme="dark"] .tfr-meta,
html[data-theme="dark"] .tfr-distance,
html[data-theme="dark"] .tfr-note,
html[data-theme="dark"] .tfr-loading,
html[data-theme="dark"] .tfr-empty,
html[data-theme="dark"] .airport-map-status,
html[data-theme="dark"] .listing-filter-count,
html[data-theme="dark"] .search-result-item {
  color: var(--text-secondary);
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] .footer-brand,
html[data-theme="dark"] .notice strong,
html[data-theme="dark"] .brand,
html[data-theme="dark"] .site-theme-toggle {
  color: var(--text-strong);
}

html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a.active,
html[data-theme="dark"] .site-nav-toggle:hover,
html[data-theme="dark"] .sidebar-links a:hover,
html[data-theme="dark"] .search-result-item:hover,
html[data-theme="dark"] .search-result-active,
html[data-theme="dark"] .site-theme-toggle:hover {
  background: var(--accent-soft);
}

html[data-theme="dark"] .site-nav a,
html[data-theme="dark"] .site-nav-toggle,
html[data-theme="dark"] .site-search,
html[data-theme="dark"] .site-theme-toggle {
  border-color: var(--border-color);
}

html[data-theme="dark"] .site-search,
html[data-theme="dark"] .site-search button,
html[data-theme="dark"] .location-tool,
html[data-theme="dark"] .location-tool-group,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .browse-card,
html[data-theme="dark"] .city-card,
html[data-theme="dark"] .state-link,
html[data-theme="dark"] .airport-card,
html[data-theme="dark"] .page-disclaimer,
html[data-theme="dark"] .weather-container,
html[data-theme="dark"] .tfr-container,
html[data-theme="dark"] .search-dropdown,
html[data-theme="dark"] .listing-filter-input,
html[data-theme="dark"] .airport-map-toolbar,
html[data-theme="dark"] .airspace-legend,
html[data-theme="dark"] .airport-info-item,
html[data-theme="dark"] .frequency-card,
html[data-theme="dark"] .airport-airspace-map,
html[data-theme="dark"] code,
html[data-theme="dark"] pre,
html[data-theme="dark"] th,
html[data-theme="dark"] td {
  background: var(--surface-bg);
  border-color: var(--border-color);
}

html[data-theme="dark"] .hero {
  background: var(--hero-bg);
  border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .location-tool {
  background: linear-gradient(180deg, var(--surface-bg) 0%, #0d1728 100%);
  border-color: var(--border-strong);
  box-shadow: 0 18px 42px var(--shadow-color);
}

html[data-theme="dark"] .location-tool-link {
  background: rgba(8, 18, 33, 0.86);
}

html[data-theme="dark"] .location-tool-link:hover {
  background: var(--accent-soft);
}

html[data-theme="dark"] .location-tool-group,
html[data-theme="dark"] .content-card,
html[data-theme="dark"] .browse-card,
html[data-theme="dark"] .page-disclaimer,
html[data-theme="dark"] .weather-container,
html[data-theme="dark"] .tfr-container,
html[data-theme="dark"] .search-dropdown {
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

html[data-theme="dark"] .sidebar-card,
html[data-theme="dark"] .city-card,
html[data-theme="dark"] .airport-card,
html[data-theme="dark"] .state-link,
html[data-theme="dark"] .compliance-checklist,
html[data-theme="dark"] .airport-map-toolbar,
html[data-theme="dark"] .tfr-item,
html[data-theme="dark"] .statute-card {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.3);
}

html[data-theme="dark"] .notice-warning {
  background: var(--notice-bg);
  border-color: var(--notice-border);
  color: #f7e7b1;
}

html[data-theme="dark"] .notice strong {
  color: #fff3cd;
}

html[data-theme="dark"] .notice-success {
  background: linear-gradient(180deg, rgba(8, 47, 28, 0.96) 0%, rgba(10, 67, 38, 0.94) 100%);
  border-color: #22c55e;
  color: #bbf7d0;
}

html[data-theme="dark"] .notice-error {
  background: linear-gradient(180deg, rgba(68, 14, 14, 0.96) 0%, rgba(88, 18, 18, 0.94) 100%);
  border-color: #f87171;
  color: #fecaca;
}

html[data-theme="dark"] .page-disclaimer {
  background: var(--surface-muted-bg);
}

html[data-theme="dark"] .page-disclaimer h2,
html[data-theme="dark"] .page-disclaimer p,
html[data-theme="dark"] .browse-card p,
html[data-theme="dark"] .weather-data p,
html[data-theme="dark"] .tfr-link a {
  color: var(--text-secondary);
}

html[data-theme="dark"] .compliance-checklist,
html[data-theme="dark"] .city-card,
html[data-theme="dark"] .airport-card,
html[data-theme="dark"] .state-link,
html[data-theme="dark"] .browse-card,
html[data-theme="dark"] .weather-container,
html[data-theme="dark"] .airport-map-toolbar,
html[data-theme="dark"] .statute-card,
html[data-theme="dark"] .airspace-legend,
html[data-theme="dark"] .airport-info-item,
html[data-theme="dark"] .frequency-card {
  background: linear-gradient(180deg, var(--surface-bg) 0%, var(--surface-elevated-bg) 100%);
}

html[data-theme="dark"] .statute-category,
html[data-theme="dark"] .statute-link {
  background: rgba(8, 18, 33, 0.92);
  border-color: var(--border-color);
}

html[data-theme="dark"] .statute-link:hover,
html[data-theme="dark"] .statute-link:focus-visible {
  background: var(--accent-soft);
  border-color: var(--accent-color);
}

html[data-theme="dark"] .compliance-checklist li {
  background: rgba(8, 18, 33, 0.92);
  border-color: var(--border-color);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

html[data-theme="dark"] .tfr-container {
  background: linear-gradient(180deg, rgba(46, 22, 15, 0.96) 0%, rgba(32, 18, 14, 0.96) 100%);
  border-color: rgba(153, 92, 67, 0.48);
}

html[data-theme="dark"] .tfr-item {
  background: rgba(32, 18, 14, 0.9);
  border-color: rgba(181, 90, 82, 0.5);
}

html[data-theme="dark"] .tfr-summary,
html[data-theme="dark"] .tfr-meta,
html[data-theme="dark"] .tfr-distance,
html[data-theme="dark"] .tfr-note,
html[data-theme="dark"] .tfr-loading,
html[data-theme="dark"] .tfr-empty {
  color: #d8b9ab;
}

html[data-theme="dark"] .tfr-link a {
  color: #ffb4a7;
}

html[data-theme="dark"] .site-footer {
  background: var(--footer-bg);
  border-top-color: var(--footer-border);
}

html[data-theme="dark"] .footer-copy,
html[data-theme="dark"] .footer-links a {
  color: var(--footer-text-secondary);
}

html[data-theme="dark"] .btn,
html[data-theme="dark"] .location-tool-button,
html[data-theme="dark"] .airport-map-button {
  box-shadow: var(--button-shadow);
}

html[data-theme="dark"] .btn:hover {
  background: linear-gradient(135deg, #2893ff 0%, #5cc8ff 100%);
}

html[data-theme="dark"] th {
  color: #e5eefb;
}

html[data-theme="dark"] td {
  color: var(--text-secondary);
}

html[data-theme="dark"] .airports-table tbody tr:hover {
  background-color: var(--table-row-hover);
}

html[data-theme="dark"] .city-card:hover,
html[data-theme="dark"] .airport-card:hover,
html[data-theme="dark"] .state-link:hover,
html[data-theme="dark"] .browse-card:hover {
  background: var(--accent-soft);
  border-color: var(--accent-color);
}

html[data-theme="dark"] .search-dropdown {
  border-color: var(--border-color);
}

html[data-theme="dark"] .search-result-item {
  border-bottom-color: var(--border-color);
}

html[data-theme="dark"] .search-result-kind {
  color: #dbe7ff;
}

html[data-theme="dark"] .search-kind-state  { background: #123520; color: #98e2ab; }
html[data-theme="dark"] .search-kind-city   { background: #10284f; color: #a9c7ff; }
html[data-theme="dark"] .search-kind-airport { background: #4c2d08; color: #ffd48a; }
html[data-theme="dark"] .search-kind-guide   { background: #3d214f; color: #e2b8ff; }

html[data-theme="dark"] .listing-filter-input {
  color: #e5eefb;
}

html[data-theme="dark"] .listing-filter-input::placeholder,
html[data-theme="dark"] .site-search input::placeholder {
  color: #8fa2c1;
}

html[data-theme="dark"] .airport-map-toolbar,
html[data-theme="dark"] .airspace-legend {
  background: rgba(8, 18, 33, 0.88);
}

html[data-theme="dark"] .airport-map-button {
  color: #fff;
}

html[data-theme="dark"] .site-theme-toggle {
  background: var(--surface-bg);
}

html[data-theme="dark"] .site-theme-toggle:hover {
  border-color: var(--accent-color);
}

html[data-theme="dark"] .site-nav-toggle {
  background: var(--surface-elevated-bg);
  color: #e5eefb;
}

html[data-theme="dark"] .site-nav-toggle:hover {
  background: var(--accent-soft);
}

html[data-theme="dark"] .site-search button {
  background: linear-gradient(135deg, var(--accent-color) 0%, #2893ff 100%);
  color: #fff;
}
