:root {
  --wk-bg: #05121a;
  --wk-bg-elevated: #081b26;
  --wk-card: #0b2230;
  --wk-card-hover: #0f2c3d;
  --wk-border: #1b3a4b;
  --wk-border-bright: rgba(88, 219, 203, 0.35);
  --wk-accent: #58dbcb;
  --wk-accent-dim: rgba(88, 219, 203, 0.14);
  --wk-gold: #f4b860;
  --wk-gold-dim: rgba(244, 184, 96, 0.15);
  --wk-coral: #ff7b72;
  --wk-emerald: #34d399;
  --wk-text: #eef6f9;
  --wk-text-muted: #9cb5c2;
  --wk-text-dim: #6c8896;
  --wk-font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wk-font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --wk-font-mono: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--wk-bg);
  color: var(--wk-text);
  font-family: var(--wk-font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0 0 88px 0;
  background: radial-gradient(circle at 50% 0%, #0b2738 0%, var(--wk-bg) 55%);
  min-height: 100vh;
}

a {
  color: var(--wk-accent);
  text-decoration: none;
  transition: color 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

a:hover {
  color: #8bf0e3;
}

/* Header & Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(5, 18, 26, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--wk-border);
}

.site-header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.brand-link:hover {
  color: #fff;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 0 16px rgba(88, 219, 203, 0.25);
}

.brand-dot {
  color: var(--wk-accent);
}

.brand-tag {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wk-accent);
  background: var(--wk-accent-dim);
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(88, 219, 203, 0.28);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: var(--wk-text-muted);
  font-size: 14px;
  font-weight: 600;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--wk-accent);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--wk-accent);
  color: #04131a;
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(88, 219, 203, 0.24);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.btn-primary:hover {
  background: #77e7d9;
  color: #04131a;
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(88, 219, 203, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(11, 34, 48, 0.9);
  color: var(--wk-text);
  font-weight: 600;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--wk-border-bright);
  cursor: pointer;
}

.btn-secondary:hover {
  background: var(--wk-card-hover);
  color: var(--wk-accent);
  border-color: var(--wk-accent);
}

/* Layout Containers */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Breadcrumbs (AllTrails / WildMap style) */
.breadcrumb-nav {
  padding: 16px 0 8px;
  font-size: 13px;
  color: var(--wk-text-dim);
}

.breadcrumb-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.breadcrumb-list a {
  color: var(--wk-text-muted);
}

.breadcrumb-list a:hover {
  color: var(--wk-accent);
}

.breadcrumb-sep {
  color: var(--wk-text-dim);
}

/* Hero & Page Headers */
.hero-section {
  padding: 44px 0 36px;
  border-bottom: 1px solid var(--wk-border);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--wk-accent);
  margin-bottom: 12px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--wk-emerald);
  box-shadow: 0 0 10px var(--wk-emerald);
  display: inline-block;
}

h1 {
  font-family: var(--wk-font-display);
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 16px 0;
  color: #fff;
}

h2 {
  font-family: var(--wk-font-display);
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.22;
  letter-spacing: -0.015em;
  margin: 40px 0 16px 0;
  color: #fff;
}

h3 {
  font-family: var(--wk-font-display);
  font-size: 19px;
  line-height: 1.3;
  margin: 24px 0 10px 0;
  color: #fff;
}

.lead {
  font-size: clamp(17px, 2vw, 20px);
  color: var(--wk-text-muted);
  max-width: 780px;
  margin: 0 0 24px 0;
}

/* Search Bar (AllTrails style) */
.search-box-wrap {
  position: relative;
  max-width: 680px;
  margin: 24px 0 12px;
}

.search-input {
  width: 100%;
  background: var(--wk-card);
  border: 1.5px solid var(--wk-border-bright);
  color: #fff;
  font-size: 16px;
  padding: 15px 20px 15px 46px;
  border-radius: 16px;
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.search-input:focus {
  border-color: var(--wk-accent);
  box-shadow: 0 0 0 3px rgba(88, 219, 203, 0.2);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--wk-accent);
  pointer-events: none;
}

.search-results-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #091e2b;
  border: 1px solid var(--wk-border-bright);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.65);
  z-index: 60;
  max-height: 360px;
  overflow-y: auto;
  display: none;
}

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

.search-result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--wk-border);
  color: var(--wk-text);
}

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

.search-result-item:hover {
  background: var(--wk-card-hover);
}

/* AllTrails Quick-Stats Bar */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 14px;
  margin: 24px 0 28px;
}

.stat-tile {
  background: var(--wk-card);
  border: 1px solid var(--wk-border);
  border-radius: 14px;
  padding: 16px 18px;
}

.stat-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wk-text-dim);
  margin-bottom: 6px;
}

.stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  font-family: var(--wk-font-display);
}

.stat-sub {
  display: block;
  font-size: 12px;
  color: var(--wk-text-muted);
  margin-top: 3px;
}

/* Direct Answer Box (WildMap Pair Answer Box Equivalent) */
.answer-box {
  background: linear-gradient(135deg, rgba(88, 219, 203, 0.11) 0%, rgba(11, 34, 48, 0.95) 100%);
  border: 1px solid var(--wk-border-bright);
  border-left: 4px solid var(--wk-accent);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 24px 0;
}

.answer-box-label {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--wk-accent);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.answer-box p {
  margin: 0;
  font-size: 16px;
  color: var(--wk-text);
}

/* Above-the-Fold Quick App CTA (WildMap BlogPost style) */
.quick-app-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #0b2636 0%, #071a24 100%);
  border: 1px solid var(--wk-border-bright);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 26px 0;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}

.quick-app-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1 1 320px;
}

.quick-app-icon {
  width: 54px;
  height: 54px;
  border-radius: 13px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(88, 219, 203, 0.25);
}

.quick-app-title {
  font-size: 17px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 4px 0;
}

.quick-app-desc {
  font-size: 14px;
  color: var(--wk-text-muted);
  margin: 0;
}

.quick-app-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Cards & Grids (AllTrails Directory Grid) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
  margin: 20px 0 36px;
}

.card-grid-compact {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 16px 0 32px;
}

.entity-card {
  background: var(--wk-card);
  border: 1px solid var(--wk-border);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.entity-card:hover {
  transform: translateY(-3px);
  border-color: var(--wk-border-bright);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.42);
}

.entity-card-media {
  position: relative;
  width: 100%;
  height: 185px;
  background: #071822;
  overflow: hidden;
}

.entity-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.entity-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, #12384c 0%, #071822 80%);
  color: var(--wk-accent);
  padding: 16px;
  text-align: center;
}

.entity-card-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(5, 18, 26, 0.85);
  backdrop-filter: blur(8px);
  color: var(--wk-text);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.badge-live {
  color: var(--wk-emerald);
  border-color: rgba(52, 211, 153, 0.4);
}

.badge-gold {
  color: var(--wk-gold);
  border-color: rgba(244, 184, 96, 0.45);
  background: rgba(20, 14, 5, 0.85);
}

.badge-accent {
  color: var(--wk-accent);
  border-color: rgba(88, 219, 203, 0.4);
}

.entity-card-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.entity-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wk-accent);
  margin-bottom: 4px;
}

.entity-card-title {
  font-size: 19px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px 0;
  line-height: 1.25;
}

.entity-card-meta {
  font-size: 13px;
  color: var(--wk-text-muted);
  margin: 0 0 14px 0;
}

.entity-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(27, 58, 75, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--wk-text-dim);
  font-family: var(--wk-font-mono);
}

/* Ship Dossier Split Hero */
.dossier-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  margin: 20px 0 28px;
}

.dossier-photo-card {
  background: var(--wk-card);
  border: 1px solid var(--wk-border);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.dossier-photo-wrap {
  width: 100%;
  height: 360px;
  background: #071822;
  position: relative;
  overflow: hidden;
}

.dossier-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-credit-bar {
  padding: 10px 16px;
  font-size: 12px;
  color: var(--wk-text-dim);
  background: rgba(5, 18, 26, 0.9);
  border-top: 1px solid var(--wk-border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Radar / Map Preview Card + Action Gates (AllTrails Conversion Block) */
.radar-card {
  background: radial-gradient(circle at 50% 35%, #103247 0%, #081b26 75%);
  border: 1px solid var(--wk-border-bright);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.radar-visual {
  position: relative;
  height: 190px;
  border-radius: 12px;
  background: #05131c;
  border: 1px solid var(--wk-border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.action-gate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.gate-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: rgba(11, 34, 48, 0.95);
  border: 1px solid var(--wk-border);
  color: var(--wk-text);
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.gate-btn:hover {
  border-color: var(--wk-accent);
  background: var(--wk-card-hover);
  color: #fff;
}

.pro-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--wk-gold-dim);
  color: var(--wk-gold);
  border: 1px solid rgba(244, 184, 96, 0.35);
}

.free-pill {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--wk-accent-dim);
  color: var(--wk-accent);
  border: 1px solid rgba(88, 219, 203, 0.35);
}

/* Blog / Sea Dispatch Prose */
.dispatch-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  margin: 16px 0 28px;
  border: 1px solid var(--wk-border);
  background: var(--wk-card);
}

.dispatch-hero-img {
  width: 100%;
  height: clamp(260px, 44vh, 440px);
  object-fit: cover;
  display: block;
}

.dispatch-hero-content {
  padding: 28px 32px;
}

.dispatch-prose {
  font-size: 17px;
  line-height: 1.78;
  color: #d6e6ee;
}

.dispatch-prose p {
  margin: 0 0 20px 0;
}

.dispatch-prose ul,
.dispatch-prose ol {
  margin: 0 0 24px 0;
  padding-left: 24px;
}

.dispatch-prose li {
  margin-bottom: 10px;
}

.dispatch-prose strong {
  color: #fff;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--wk-border);
  border-radius: 14px;
  background: var(--wk-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  text-align: left;
}

.data-table th {
  background: rgba(5, 18, 26, 0.8);
  color: var(--wk-accent);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 13px 16px;
  border-bottom: 1px solid var(--wk-border);
}

.data-table td {
  padding: 13px 16px;
  border-bottom: 1px solid rgba(27, 58, 75, 0.6);
  color: var(--wk-text);
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* Link Pills / Crawl Bars */
.pill-cluster {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 28px;
}

.link-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--wk-card);
  border: 1px solid var(--wk-border);
  color: var(--wk-text);
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.link-pill:hover {
  border-color: var(--wk-accent);
  color: var(--wk-accent);
  background: var(--wk-card-hover);
}

/* Native <details> / <summary> FAQ Accordion */
.faq-section {
  margin: 44px 0;
}

.faq-item {
  background: var(--wk-card);
  border: 1px solid var(--wk-border);
  border-radius: 14px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-item summary {
  padding: 18px 22px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  color: var(--wk-accent);
  font-size: 20px;
  font-weight: 700;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  padding: 0 22px 18px;
  color: var(--wk-text-muted);
  font-size: 15px;
  border-top: 1px solid rgba(27, 58, 75, 0.5);
  padding-top: 14px;
}

/* Sticky Bottom App Download Bar (WildMap AppDownloadBar equivalent) */
.sticky-download-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: rgba(6, 20, 29, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--wk-border-bright);
  padding: 10px 20px;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.5);
}

.sticky-download-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sticky-download-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.sticky-download-icon {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  flex-shrink: 0;
}

.sticky-download-text {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sticky-download-sub {
  font-size: 12px;
  color: var(--wk-text-muted);
  display: block;
}

/* Native <dialog> Modal for Gated Features */
dialog.app-modal {
  background: #091f2c;
  color: var(--wk-text);
  border: 1px solid var(--wk-border-bright);
  border-radius: 20px;
  padding: 28px;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.75);
}

dialog.app-modal::backdrop {
  background: rgba(2, 10, 15, 0.75);
  backdrop-filter: blur(6px);
}

/* Footer */
.site-footer {
  margin-top: 72px;
  padding: 48px 0 36px;
  border-top: 1px solid var(--wk-border);
  color: var(--wk-text-dim);
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px;
  margin-bottom: 36px;
}

.footer-col h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wk-accent);
  margin: 0 0 12px 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.footer-links a {
  color: var(--wk-text-muted);
}

.footer-links a:hover {
  color: var(--wk-accent);
}

@media (max-width: 820px) {
  .dossier-grid {
    grid-template-columns: 1fr;
  }
  .dossier-photo-wrap {
    height: 260px;
  }
  .sticky-download-sub {
    display: none;
  }
}
