/* Landing pages — same ink, ocean and accent as the map. */
:root {
  --ocean: #b3d9ec;
  --ink: #1c2b36;
  --panel: #ffffff;
  --accent: #ffd24a;
  --muted: #5a6d7a;
  --border: #d9e4ec;
  --topbar-h: 60px;
}

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

body.landing {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--ocean);
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: #2a5d7c; text-underline-offset: 2px; }
a:hover { color: #1c435c; }

#topbar {
  min-height: var(--topbar-h);
  display: flex;
  align-items: center;
  gap: 8px 14px;
  padding: 8px 12px;
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
  color: #fff;
  text-decoration: none;
}
.brand .logo { width: 30px; height: 30px; flex: 0 0 auto; }
.brand-text span { color: var(--accent); }

#topbar .links { display: flex; gap: 14px; font-size: 0.88rem; font-weight: 600; }
#topbar .links a { color: rgba(255, 255, 255, 0.75); text-decoration: none; padding: 4px 2px; }
#topbar .links a:hover { color: #fff; }
#topbar .links a.active-nav { color: var(--accent); }

.tbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: auto;
  padding: 7px 12px;
  border: 1px solid #e0b83b;
  background: var(--accent);
  color: var(--ink);
  border-radius: 7px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}
.tbtn:hover { background: #ffdc6e; color: var(--ink); }

.shell {
  flex: 1 0 auto;
  width: min(960px, calc(100% - 28px));
  margin: 24px auto 40px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(28, 43, 54, 0.12);
  padding: 32px 36px 40px;
}

.crumb {
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #7a8c98;
  margin-bottom: 10px;
}
.crumb a { color: #7a8c98; text-decoration: none; }
.crumb a:hover { color: var(--ink); }

h1 {
  font-size: clamp(1.7rem, 3.4vw, 2.3rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
  font-weight: 800;
}

.answer {
  font-size: 1.08rem;
  max-width: 42rem;
  margin: 0 0 18px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.stat {
  background: #f6fafc;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
}
.stat b {
  display: block;
  font-size: 1.08rem;
  letter-spacing: -0.01em;
  margin-top: 2px;
}
.stat span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.context { max-width: 42rem; margin: 0 0 18px; }
.context p + p { margin-top: 10px; }

.map-frame {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--ocean);
  height: min(68vh, 620px);
  min-height: 440px;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

.map-caption {
  color: var(--muted);
  font-size: 0.88rem;
  margin: 8px 0 18px;
}

.note {
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 42rem;
  margin: 0 0 22px;
}

.related h2 {
  font-size: 1rem;
  margin: 0 0 8px;
}
.related ul { list-style: none; }
.related li { border-top: 1px solid var(--border); }
.related a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
}
.related a:hover { color: #2a5d7c; }
.related small {
  display: block;
  font-weight: 450;
  color: var(--muted);
  margin-top: 2px;
}

.site-footer {
  width: min(960px, calc(100% - 28px));
  margin: 0 auto 28px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 600;
}
.site-footer a { color: var(--ink); }

@media (max-width: 700px) {
  .shell { padding: 22px 16px 28px; margin-top: 16px; }
  .tbtn { margin-left: 0; }
  .map-frame { min-height: 380px; height: 70vh; }
}
