:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-soft: #eef4fb;
  --text: #16202a;
  --muted: #526170;
  --line: #d7e0ea;
  --primary: #1f6feb;
  --primary-dark: #174f9f;
  --success: #167d53;
  --warning: #a35f00;
  --focus: rgba(31, 111, 235, 0.28);
  --shadow: 0 14px 34px rgba(22, 32, 42, 0.08);
  --radius: 8px;
}

:root[data-theme="dark"] {
  --bg: #101820;
  --surface: #172331;
  --surface-soft: #203247;
  --text: #f5f8fb;
  --muted: #c3cfda;
  --line: #32465b;
  --primary: #5aa2ff;
  --primary-dark: #b9d9ff;
  --focus: rgba(90, 162, 255, 0.32);
  --shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
}

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

button, input, select, textarea { font: inherit; }

[hidden] { display: none !important; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(16px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

:root[data-theme="dark"] .site-header,
:root[data-theme="dark"] .site-nav {
  background: rgba(23, 35, 49, 0.96);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  color: #fff;
  background: var(--primary);
  font-size: 0.9rem;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 1.08rem;
  line-height: 1.1;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.78rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.site-nav a {
  padding: 10px 12px;
  border-radius: var(--radius);
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 750;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a[aria-current="true"] {
  color: var(--primary-dark);
  background: var(--surface-soft);
  outline: none;
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
}

.theme-toggle {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--primary-dark);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 850;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
  gap: clamp(22px, 5vw, 56px);
  align-items: center;
  padding: clamp(52px, 8vw, 92px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

.page-hero {
  padding: clamp(48px, 7vw, 86px) clamp(18px, 5vw, 72px);
  background: linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}

:root[data-theme="dark"] .page-hero {
  background: linear-gradient(180deg, #172331 0%, var(--bg) 100%);
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero p:not(.eyebrow) {
  max-width: 780px;
  color: var(--muted);
  font-size: 1.12rem;
}

:root[data-theme="dark"] .hero {
  background: linear-gradient(180deg, #172331 0%, var(--bg) 100%);
}

.hero-copy {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1, h2, h3, h4, p { margin-top: 0; }

h1 {
  max-width: 720px;
  margin-bottom: 16px;
  font-size: clamp(2.4rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 10px;
  font-size: clamp(1.55rem, 3vw, 2.6rem);
  line-height: 1.06;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.24rem;
}

h4 {
  margin-bottom: 6px;
  font-size: 1.12rem;
}

.hero-copy p,
.section-heading p,
.mission-section p,
.roadmap-grid p,
.account-section p,
.contact-section p {
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-actions,
.control-row,
.form-actions,
.chat-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 0 clamp(18px, 5vw, 72px) clamp(30px, 5vw, 52px);
}

.qa {
  min-height: 76px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  font-size: 1.04rem;
  font-weight: 900;
  box-shadow: var(--shadow);
}

.qa.blue { background: #1f6feb; }
.qa.green { background: #167d53; }
.qa.purple { background: #6f42c1; }
.qa.orange { background: #b75f00; }

.hero-actions {
  margin-top: 26px;
}

.button,
button {
  min-height: 48px;
  border: 0;
  border-radius: var(--radius);
  padding: 14px 20px;
  color: inherit;
  background: transparent;
  font-size: 1.02rem;
  font-weight: 850;
  cursor: pointer;
}

.button:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 4px solid var(--focus);
  outline-offset: 2px;
}

.button.primary {
  color: #fff;
  background: var(--primary);
}

.button.primary:hover {
  background: var(--primary-dark);
}

.button.secondary {
  color: var(--primary-dark);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
}

.button.secondary:hover {
  background: var(--surface-soft);
}

.text-link,
.text-button {
  color: var(--primary-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.text-button {
  min-height: auto;
  padding: 4px 0;
}

.route-summary,
.weather-card,
.search-panel,
.share-form,
.spot-card,
.detail-grid article,
.mission-section > div,
.archive-tools article,
.tool-card,
.roadmap-grid article,
.community-section > div,
.account-section > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.route-summary {
  padding: 24px;
}

.route-summary h2 {
  font-size: 1.45rem;
}

.route-summary ul,
.news-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.route-summary li,
.news-list li,
.compact-list li,
.tier-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.section {
  padding: clamp(38px, 7vw, 76px) clamp(18px, 5vw, 72px);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.search-panel,
.weather-card,
.share-form {
  display: grid;
  gap: 14px;
  max-width: 980px;
  margin-bottom: 22px;
  padding: 22px;
}

.filter-chips,
.segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chips button,
.segmented button {
  min-height: 40px;
  border: 1px solid var(--line);
  padding: 9px 13px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  font-size: 0.94rem;
}

.segmented button.is-active {
  color: #fff;
  background: var(--primary);
}

label {
  display: grid;
  gap: 8px;
  color: var(--text);
  font-size: 1rem;
  font-weight: 850;
}

input,
select,
textarea {
  min-height: 48px;
  border: 1px solid #b8c7d7;
  border-radius: var(--radius);
  padding: 13px 14px;
  color: var(--text);
  background: #fff;
  font-size: 1rem;
}

input,
select {
  flex: 1 1 220px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

.resource-grid,
.detail-grid,
.mission-section,
.roadmap-grid,
.community-section,
.account-section,
.page-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  display: grid;
  gap: 8px;
  min-height: 164px;
  padding: 20px;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.resource-card:hover,
.resource-card:focus-visible {
  border-color: rgba(31, 111, 235, 0.45);
  background: #f9fbff;
  outline: none;
}

:root[data-theme="dark"] .resource-card:hover,
:root[data-theme="dark"] .resource-card:focus-visible {
  background: #1d2c3d;
}

.resource-card span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  color: var(--primary-dark);
  background: var(--surface-soft);
  font-weight: 900;
}

.resource-card strong {
  font-size: 1.18rem;
}

.resource-card small {
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.mission-section {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: #fff;
}

.mission-section > div,
.roadmap-grid article {
  padding: clamp(22px, 4vw, 34px);
}

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

.tool-card {
  padding: clamp(22px, 4vw, 34px);
}

.compact-search {
  margin-bottom: 18px;
}

.single-column {
  grid-template-columns: 1fr;
}

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

.results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 30px 0 14px;
}

.spot-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.spot-card {
  padding: 18px;
}

.spot-card p {
  margin-bottom: 8px;
  color: var(--muted);
}

.trust-row,
.card-actions,
.panel-heading,
.detail-heading,
.business-band,
.emergency-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.trust-row {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.trust-row span,
.live-label {
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 850;
}

.search-context {
  font-size: 0.78rem;
}

.search-modes,
.channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.search-modes label,
.channel-tabs button {
  width: auto;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.search-modes input {
  width: auto;
}

.channel-tabs button.is-active {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.dashboard-stats,
.dashboard-grid,
.amenity-grid {
  display: grid;
  gap: 14px;
}

.dashboard-stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.dashboard-stats article {
  padding: 22px;
  text-align: center;
}

.dashboard-stats strong {
  display: block;
  color: var(--primary-dark);
  font-size: 2rem;
}

.dashboard-stats span,
.amenity-grid span,
.dashboard-list span {
  display: block;
  color: var(--muted);
}

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

.dashboard-list {
  display: grid;
  gap: 10px;
  padding: 0;
  list-style: none;
}

.dashboard-list li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.inline-note-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.spot-detail {
  display: grid;
  gap: 24px;
  padding-top: clamp(44px, 8vw, 92px);
}

.detail-heading h1 {
  margin-bottom: 6px;
}

.trust-panel,
.amenity-grid {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.trust-panel {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.amenity-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.amenity-grid div {
  padding: 12px;
  border-left: 3px solid var(--primary);
}

.business-band,
.emergency-band {
  background: #eaf1f9;
}

.type-pill {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--primary-dark);
  background: var(--surface-soft);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.empty-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed #aebdcb;
  border-radius: var(--radius);
  color: var(--muted);
  background: #fff;
  font-weight: 750;
}

.weather-section {
  background: #eaf1f9;
}

:root[data-theme="dark"] .weather-section,
:root[data-theme="dark"] .community-section,
:root[data-theme="dark"] .account-section {
  background: #13202d;
}

.form-note {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.weather-result {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid #b8c7d7;
  border-radius: var(--radius);
  background: #fff;
}

.weather-result strong {
  font-size: 1.2rem;
}

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

.detail-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.detail-grid article {
  padding: 20px;
}

.detail-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.archive-tools {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.archive-tools article {
  padding: 20px;
}

.compact-list,
.tier-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.community-section,
.account-section {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  background: #edf2f7;
}

.roadmap-section {
  background: #f7f8fa;
}

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

.community-section > div,
.account-section > div {
  padding: clamp(22px, 4vw, 34px);
}

.chat-box {
  display: grid;
  gap: 10px;
  min-height: 220px;
  max-height: 300px;
  margin-bottom: 14px;
  overflow: auto;
}

.chat-message {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.chat-message span {
  display: block;
  margin-bottom: 4px;
  color: var(--primary-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.chat-message p {
  margin: 0;
}

.profile-form {
  display: grid;
  gap: 14px;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: #fff;
}

.contact-section div {
  max-width: 740px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: #f7fbff;
  background: #172433;
}

.bottom-tabs {
  position: sticky;
  bottom: 0;
  z-index: 15;
  display: none;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.bottom-tabs a {
  padding: 11px 6px;
  color: var(--muted);
  text-align: center;
  font-size: 0.78rem;
  font-weight: 850;
}

.bottom-tabs a:hover,
.bottom-tabs a:focus-visible {
  color: var(--primary-dark);
  background: var(--surface-soft);
  outline: none;
}

.site-footer p {
  margin: 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 800;
}

@media (max-width: 1080px) {
  .hero,
  .resource-grid,
  .detail-grid,
  .mission-section,
  .archive-tools,
  .roadmap-grid,
  .page-grid,
  .spot-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-copy,
  .route-summary {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: flex-start;
  }

  .nav-toggle {
    display: block;
    flex: 0 0 auto;
  }

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

  .site-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    background: #fff;
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 12px;
    font-size: 1.03rem;
  }

  .hero,
  .resource-grid,
  .detail-grid,
  .mission-section,
  .quick-actions,
  .archive-tools,
  .roadmap-grid,
  .page-grid,
  .single-panel,
  .spot-list,
  .form-grid,
  .community-section,
  .account-section {
    grid-template-columns: 1fr;
  }

  .dashboard-stats,
  .dashboard-grid,
  .amenity-grid {
    grid-template-columns: 1fr;
  }

  .inline-note-form {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 44px;
  }

  .contact-section,
  .site-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .button,
  button,
  input,
  select,
  textarea {
    width: 100%;
  }

  .bottom-tabs {
    display: grid;
  }

  body {
    padding-bottom: 54px;
  }
}

.research-fields {display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.research-fields div{padding:12px;border:1px solid var(--line);border-radius:8px}.research-fields dt{font-weight:800}.research-fields dd{margin:6px 0;overflow-wrap:anywhere}[data-business-form]{max-width:740px;margin:auto}[data-result-summary]{margin:16px 0}

.safety-warning { padding: 16px; margin: 14px 0; border: 2px solid #8a4b00; border-left-width: 7px; border-radius: 8px; background: #fff4da; color: #382200; overflow-wrap: anywhere; }
.safety-warning h2, .safety-warning h5 { margin: 0 0 8px; font-size: 1.1rem; color: inherit; }
.safety-warning p { color: inherit; }
.safety-warning .warning-context { font-size: .9rem; line-height: 1.5; }
.safety-context { padding: 16px; border: 1px solid var(--line); border-radius: 8px; }
.evidence-status { display: block; margin-top: 6px; font-weight: 700; }
:root[data-theme="dark"] .safety-warning { background: #352b17; color: #ffe6b0; border-color: #e8ac4d; }

.stop-summary {padding:20px;border:1px solid var(--line);border-radius:12px;margin:20px 0}.stop-summary-grid {display:grid;grid-template-columns:repeat(auto-fit,minmax(min(240px,100%),1fr));gap:16px}.stop-summary-grid div {padding:12px;border:1px solid var(--line);border-radius:8px}.stop-summary-grid dt{font-weight:800}.stop-summary-grid dd{margin:8px 0;overflow-wrap:anywhere}.site-nav:has(a[href="sign-up.html"]) {flex-wrap:wrap}

.brand-logo {width:72px;height:72px;object-fit:contain;flex-shrink:0;border-radius:6px}.footer-logo {width:112px;height:112px;object-fit:contain;vertical-align:middle;margin-right:12px}@media(max-width:760px){.brand-logo{width:52px;height:52px}.brand{min-width:0}.brand strong{font-size:1rem}.brand small{font-size:.7rem}}

@media(max-width:760px){.site-header{gap:8px}.site-header>button{width:auto;flex:0 0 auto}.site-header .theme-toggle{padding:8px;min-width:48px}.site-header .brand small{display:none}.site-header .brand strong{font-size:.95rem}}
