:root {
  --bg: #0f2438;
  --bg2: #264f73;
  --paper: #f5f2e9;
  --ink: #1e2430;
  --accent: #ffcb47;
  --accent2: #e95d2a;
  --line: #d2c6b3;
  --ink-soft: #606975;
  --card: #fffdf8;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1000px 460px at 10% -10%, rgba(255, 203, 71, 0.14), rgba(255, 203, 71, 0)),
    radial-gradient(900px 520px at 90% -20%, rgba(233, 93, 42, 0.18), rgba(233, 93, 42, 0)),
    linear-gradient(125deg, #11293f, #2b5d87);
}
a { color: inherit; }
.shell {
  max-width: 1100px;
  margin: 0 auto;
  background: var(--paper);
  min-height: 100vh;
  box-shadow: 0 18px 60px rgba(8, 20, 32, 0.35);
}
header {
  padding: 24px 28px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
header .brand {
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
}
nav a {
  margin-left: 16px;
  text-decoration: none;
  font-weight: 600;
}

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

.main-nav > a {
  margin-left: 0;
}

.nav-dropdown {
  position: relative;
}

.nav-dropbtn {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 250px;
  background: #fffdf8;
  border: 1px solid #dacbb2;
  border-radius: 10px;
  box-shadow: 0 12px 26px rgba(16, 32, 48, 0.18);
  padding: 6px;
  z-index: 40;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  margin: 0;
  border-radius: 8px;
  padding: 7px 10px;
  text-decoration: none;
  font-weight: 600;
}

.nav-dropdown-menu a:hover {
  background: #f4e4c4;
}

.home-hero {
  padding: 44px 28px 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 32px;
  align-items: end;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(160deg, #102b43 0%, #1d4d73 55%, #2f6d9d 100%);
  color: #f8fbff;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(130deg, rgba(255, 255, 255, 0.08) 0, rgba(255, 255, 255, 0.08) 1px, transparent 1px, transparent 38px),
    linear-gradient(transparent, rgba(8, 22, 33, 0.26));
  pointer-events: none;
}

.home-copy {
  position: relative;
  z-index: 1;
}

.home-eyebrow {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: #ffe08a;
}

.home-copy h1 {
  margin: 0;
  font-family: "Rockwell", "Georgia", serif;
  font-size: clamp(2rem, 5vw, 4.6rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.home-dek {
  margin: 16px 0 20px;
  max-width: 56ch;
  color: #dce8f2;
  font-size: clamp(0.98rem, 1.2vw, 1.15rem);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.home-btn-primary {
  background: #ffd36c;
  border: 1px solid #ffd36c;
}

.home-btn-secondary {
  background: rgba(17, 41, 63, 0.25);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.46);
}

.home-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 10px;
}

.home-stats li {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 10px;
  padding: 10px;
}

.home-stats strong {
  display: block;
  font-size: clamp(1.18rem, 2.4vw, 1.9rem);
  line-height: 1;
}

.home-stats span {
  display: block;
  font-size: 11px;
  color: #d4e3ef;
  margin-top: 6px;
  letter-spacing: 0.04em;
}

.home-stage {
  margin: 0;
  position: relative;
  z-index: 1;
  justify-self: end;
  max-width: 430px;
}

.home-stage-image {
  width: 100%;
  display: block;
  border-radius: 24px;
  border: 2px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 26px 48px rgba(7, 18, 27, 0.45);
  clip-path: polygon(4% 0%, 100% 0%, 96% 100%, 0% 100%);
}

.home-stage-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  background: rgba(13, 30, 45, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.home-band {
  padding: 14px 28px;
  background: #f2d59b;
  border-top: 1px solid #ecc97d;
  border-bottom: 1px solid #dbb670;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.home-band p {
  margin: 0;
  font-size: 14px;
}

.home-band-link {
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid #906128;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(200px, 1fr));
  gap: 16px;
  padding: 24px 28px;
}

.home-card {
  background: var(--card);
  border: 1px solid #dbcdb8;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 7px 18px rgba(30, 36, 48, 0.08);
}

.home-card h3 {
  margin: 0 0 8px;
  font-family: "Rockwell", "Georgia", serif;
  font-size: 1.26rem;
}

.home-card p {
  margin: 0;
  color: #5e6670;
  min-height: 54px;
}

.home-card .btn {
  margin-top: 12px;
}

.home-milestones {
  padding: 4px 28px 6px;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 14px;
}

.milestone {
  border: 1px solid #ddd0bb;
  border-radius: 12px;
  background: #fff8eb;
  padding: 14px;
}

.milestone-label {
  margin: 0 0 8px;
  color: #91571d;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.milestone h4 {
  margin: 0 0 8px;
  font-size: 1.02rem;
}

.milestone p {
  margin: 0;
  color: #616873;
  font-size: 14px;
}

.reveal-up {
  animation: rise-in 620ms ease both;
}

.reveal-scale {
  animation: scale-in 740ms ease both;
}

.home-grid .reveal-up:nth-child(2) { animation-delay: 80ms; }
.home-grid .reveal-up:nth-child(3) { animation-delay: 150ms; }
.home-grid .reveal-up:nth-child(4) { animation-delay: 220ms; }

@keyframes rise-in {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scale-in {
  from { opacity: 0; transform: scale(0.96) rotate(-1deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  padding: 24px 28px;
}
.card {
  background: #fff;
  border: 1px solid #e2d9c8;
  border-radius: 12px;
  padding: 16px;
}
.card h3 { margin-top: 0; }
.btn {
  display: inline-block;
  margin-top: 8px;
  background: var(--accent);
  color: #1a1a1a;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 700;
}
main { padding: 24px 28px 48px; }
#map { width: 100%; height: clamp(420px, 62vh, 760px); border-radius: 12px; border: 1px solid #d7cdbb; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid #e3dac9; text-align: left; padding: 8px; vertical-align: top; }
.small { color: var(--ink-soft); font-size: 13px; }

.field {
  font: inherit;
  border: 1px solid #ccbda5;
  background: #fffdf8;
  color: var(--ink);
  border-radius: 10px;
  padding: 9px 12px;
}

.journal-toolbar,
.media-toolbar,
.route-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.route-toolbar .btn {
  margin-top: 0;
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 12px;
  align-items: start;
}

.route-map-panel {
  background: #fffdf8;
  border: 1px solid #dbcdb8;
  border-radius: 14px;
  padding: 8px;
}

.route-phase-panel {
  background: #102a42;
  color: #edf5fb;
  border: 1px solid #214969;
  border-radius: 14px;
  padding: 10px;
  position: sticky;
  top: 12px;
}

.route-phase-panel h2 {
  margin: 0 0 6px;
  font-family: "Rockwell", "Georgia", serif;
}

.route-phase-panel .small {
  color: #c9dbe9;
  margin: 0 0 8px;
}

#routeCountryCards {
  max-height: calc(100vh - 240px);
  overflow: auto;
  padding-right: 2px;
}

.phase-card {
  width: 100%;
  text-align: left;
  border: 1px solid #436b8a;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #f5fbff;
  padding: 10px;
  margin: 0 0 8px;
  cursor: pointer;
}

.phase-card:last-of-type {
  margin-bottom: 0;
}

.phase-card:hover {
  border-color: #7ca7c8;
  background: rgba(255, 255, 255, 0.14);
}

.phase-card-active {
  border-color: #ffd36c;
  background: rgba(255, 211, 108, 0.2);
}

.phase-title {
  display: block;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.phase-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.phase-flag {
  display: inline-block;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  font-size: 42px;
  line-height: 1;
  flex-shrink: 0;
}

.phase-sub {
  display: block;
  margin-top: 2px;
  font-size: 13px;
  color: #cee4f3;
}

.phase-meta {
  display: block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #ffd88a;
}

body.route-page .shell {
  max-width: min(1700px, 98vw);
}

body.route-page main {
  padding: 16px 16px 18px;
}

body.route-page #map {
  height: clamp(620px, calc(100vh - 250px), 1100px);
}

.toggle {
  font-size: 14px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.journal-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.journal-card {
  border: 1px solid #decfb8;
  background: #fffdf8;
  border-radius: 12px;
  padding: 14px;
}

.journal-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.journal-card h3 {
  margin: 0 0 8px;
  line-height: 1.25;
}

.journal-card h3 a {
  text-decoration: none;
}

.journal-date {
  margin: 0 0 6px;
  color: #8d5b28;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.journal-tags,
.media-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
}

.journal-actions,
.media-actions {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.journal-original {
  text-decoration: underline;
}

.badge {
  display: inline-flex;
  border: 1px solid #d7c7ad;
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 12px;
  background: #f8efdf;
}

.badge-key {
  border-color: #f0be56;
  background: #ffe4ab;
  color: #6b4518;
}

.badge-status {
  border-color: #b8cbe0;
  background: #e9f0f8;
}

.flag-token {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid #d6c6ad;
  background: #fff8e8;
  box-shadow: 0 4px 8px rgba(38, 45, 58, 0.08);
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
}

.media-list {
  display: grid;
  gap: 16px;
}

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

.country-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.coverage-gaps {
  margin: 0 0 14px;
  padding: 12px;
  border: 1px solid #d8c8ae;
  border-radius: 12px;
  background: #fff8eb;
}

.coverage-gaps h2 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.coverage-card {
  border: 1px solid #ddceb5;
  border-radius: 10px;
  background: #fffdf8;
  padding: 10px;
}

.coverage-card h3 {
  margin: 0 0 6px;
  font-size: 1rem;
  font-family: "Rockwell", "Georgia", serif;
}

.country-card {
  border: 1px solid #decfb8;
  background: #fffdf8;
  border-radius: 12px;
  overflow: hidden;
}

.country-card-active {
  border-color: #e0b44c;
  box-shadow: 0 0 0 2px rgba(224, 180, 76, 0.2);
}

.country-card-hit {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.country-card-hit img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #eee7d9;
}

.country-cover-empty {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eee7d9;
  color: #777;
  font-size: 13px;
}

.country-card-meta {
  padding: 10px;
}

.country-card-meta h3 {
  margin: 0 0 6px;
  font-family: "Rockwell", "Georgia", serif;
}

.country-card-meta p {
  margin: 0;
}

.country-card-links {
  margin: 0;
  padding: 0 10px 10px;
  display: flex;
  gap: 10px;
}

.country-card-links a {
  font-size: 13px;
}

.country-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}

.chip {
  border: 1px solid #d5c6ae;
  background: #fff8eb;
  color: #2b3440;
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  cursor: pointer;
}

.chip-active {
  background: #ffd36c;
  border-color: #e0b44c;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.country-focus {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
}

.country-focus h2 {
  margin: 0 0 4px;
}

.country-focus-links {
  margin: 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-card {
  border: 1px solid #decfb8;
  background: #fffdf8;
  border-radius: 12px;
  overflow: hidden;
}

.gallery-media {
  display: block;
  aspect-ratio: 4 / 3;
  background: #f0ece3;
}

.gallery-media-missing {
  display: grid;
  place-items: center;
  color: #6e6252;
  padding: 10px;
}

.gallery-media img,
.gallery-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-meta {
  padding: 10px;
}

.gallery-name {
  margin: 0;
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.gallery-tags {
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.photo-viewer {
  border: 1px solid #d9cab1;
  border-radius: 14px;
  background: #fffdf8;
  padding: 14px;
}

.photo-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.photo-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.photo-counter {
  min-width: 90px;
  text-align: center;
}

.photo-stage {
  margin: 0;
  border-radius: 12px;
  border: 1px solid #decfb8;
  background: #f0ece3;
  min-height: 300px;
  overflow: hidden;
}

.photo-stage img,
.photo-stage video {
  display: block;
  width: 100%;
  max-height: min(74vh, 900px);
  object-fit: contain;
  background: #f0ece3;
}

.photo-filename {
  margin: 6px 0 0;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.btn-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.media-group h2 {
  margin-bottom: 10px;
  font-family: "Rockwell", "Georgia", serif;
}

.media-group-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.media-card {
  border: 1px solid #decfb8;
  background: #fffdf8;
  border-radius: 12px;
  padding: 14px;
}

.media-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.post-main {
  max-width: 900px;
  margin: 0 auto;
}

.post-article {
  background: #fff;
  border: 1px solid #e2d9c8;
  border-radius: 12px;
  padding: 20px;
}

.post-meta {
  margin-top: -4px;
  margin-bottom: 16px;
}

.post-content {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.post-content img {
  max-width: 100%;
  height: auto;
}

.post-content table {
  width: auto;
  max-width: 100%;
  display: block;
  overflow-x: auto;
}

.post-nav {
  margin-top: 16px;
  margin-bottom: 0;
}

body.beta-page .shell {
  max-width: min(1700px, 98vw);
}

.beta-intro {
  margin-bottom: 14px;
}

.beta-jump-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 18px;
}

.beta-jump-links a {
  border: 1px solid #d3c3a9;
  background: #fff8eb;
  border-radius: 999px;
  padding: 6px 12px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
}

.beta-section {
  border: 1px solid #dccdb8;
  border-radius: 14px;
  background: #fffdf8;
  padding: 14px;
  margin-bottom: 14px;
}

.beta-section h2 {
  margin: 0 0 8px;
  font-family: "Rockwell", "Georgia", serif;
}

.beta-subgrid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 12px;
  align-items: start;
}

#betaReplayMap,
#betaMemoryMap {
  width: 100%;
  height: clamp(360px, 58vh, 700px);
  border: 1px solid #cfbfa6;
  border-radius: 12px;
}

.beta-replay-controls {
  display: grid;
  gap: 8px;
}

.beta-slider-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.beta-slider-row input[type="range"] {
  flex: 1;
}

.beta-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 8px;
}

.beta-stat {
  border: 1px solid #dfcfb8;
  border-radius: 10px;
  padding: 8px;
  background: #fff8eb;
}

.beta-stat strong {
  display: block;
  font-size: 1.1rem;
}

.beta-milestone-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.beta-milestone-card {
  border: 1px solid #dbcbb3;
  border-radius: 12px;
  background: #fffdf8;
  padding: 10px;
}

.beta-milestone-card h3 {
  margin: 0 0 6px;
  font-size: 1.06rem;
}

.beta-compare-table {
  width: 100%;
  border-collapse: collapse;
}

.beta-compare-table th,
.beta-compare-table td {
  border-bottom: 1px solid #eadfce;
  padding: 8px 6px;
  font-size: 13px;
}

.beta-score-bar {
  height: 9px;
  border-radius: 999px;
  background: #eee5d3;
  overflow: hidden;
}

.beta-score-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd36c, #e95d2a);
}

.beta-before-after-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.beta-before-after-stage {
  position: relative;
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border: 1px solid #d9caaf;
  border-radius: 12px;
  overflow: hidden;
  background: #ece4d2;
}

.beta-before-after-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.beta-after-wrap {
  position: absolute;
  inset: 0 auto 0 0;
  width: 50%;
  overflow: hidden;
  border-right: 2px solid rgba(255, 255, 255, 0.95);
}

.beta-before-after-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
  font-size: 13px;
  color: #5c6671;
}

.beta-postcards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.beta-postcard {
  border: 1px solid #ddceb8;
  border-radius: 12px;
  overflow: hidden;
  background: #fffdf8;
}

.beta-postcard img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.beta-postcard-body {
  padding: 10px;
}

.beta-postcard-body h3 {
  margin: 0 0 6px;
}

.beta-postcard-body ul {
  margin: 0;
  padding-left: 16px;
}

.beta-memory-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 10px;
  align-items: start;
}

.beta-memory-panel {
  border: 1px solid #dbcbb3;
  border-radius: 12px;
  background: #fff8eb;
  padding: 10px;
}

.beta-memory-panel h3 {
  margin: 0 0 6px;
}

.beta-memory-actions {
  margin-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.beta-weather-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.beta-weather-item {
  border: 1px solid #dfd1bc;
  background: #fffdf8;
  border-radius: 10px;
  padding: 8px;
}

.weather-badge {
  display: inline-block;
  margin-top: 4px;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-weight: 700;
}

.weather-cool {
  background: #dceeff;
  color: #1f4b6f;
}

.weather-warm {
  background: #ffe8c2;
  color: #815117;
}

.weather-wet {
  background: #d9f6ea;
  color: #1f6950;
}

@media (max-width: 900px) {
  .home-hero {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .home-stage {
    justify-self: start;
    max-width: 520px;
  }

  .home-band {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .home-milestones {
    grid-template-columns: 1fr;
  }

  .route-phase-panel {
    position: static;
  }

  #routeCountryCards {
    max-height: none;
    overflow: visible;
  }

  body.route-page #map {
    height: clamp(480px, 70vh, 820px);
  }

  .beta-subgrid {
    grid-template-columns: 1fr;
  }

  .beta-memory-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  nav a {
    margin: 0 12px 0 0;
  }

  .main-nav {
    gap: 12px;
  }

  .main-nav > a {
    margin: 0;
  }

  .nav-dropdown-menu {
    right: auto;
    left: 0;
  }

  .home-hero {
    padding: 32px 20px 20px;
  }

  .home-band,
  .home-grid,
  main,
  .home-milestones {
    padding-left: 20px;
    padding-right: 20px;
  }

  .home-stats {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }

  .field {
    width: 100%;
  }
}
