:root {
  --td-navy: #071a2d;
  --td-navy-soft: #142238;
  --td-gold: #b88935;
  --td-gold-light: #e4c57d;
  --td-cream: #f4f1ea;
  --td-card: #fffefa;
  --td-ink: #17202a;
  --td-muted: #67717d;
  --td-line: #e1ddd3;
}

.unified-mode-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(184, 137, 53, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}

.unified-mode-nav a {
  padding: 8px 12px;
  border-radius: 999px;
  color: inherit;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.unified-mode-nav a:hover,
.unified-mode-nav a[aria-current="page"] {
  background: var(--td-gold-light);
  color: var(--td-navy);
}

.journey-switcher.journey-switcher-all {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(1020px, 100%);
}

.journey-switcher-all a {
  min-width: 0;
  padding: 18px 16px;
}

.journey-switcher-all a span {
  color: var(--td-gold-light);
}

.journey-switcher-all a.is-active span {
  color: #74551f;
}

.mode-overview {
  padding: clamp(54px, 7vw, 92px) clamp(20px, 6vw, 88px);
  background: var(--td-cream);
}

.mode-overview-inner {
  width: min(1180px, 100%);
  margin: 0 auto;
}

.mode-overview-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.mode-overview-heading h2 {
  margin: 8px 0 12px;
  color: var(--td-navy);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.04;
}

.mode-overview-heading p {
  color: var(--td-muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

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

.travel-mode-card {
  display: flex;
  min-height: 235px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--td-line);
  border-radius: 22px;
  background: var(--td-card);
  box-shadow: 0 12px 32px rgba(7, 26, 45, .06);
  color: var(--td-ink);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.travel-mode-card:hover {
  transform: translateY(-4px);
  border-color: rgba(184, 137, 53, .55);
  box-shadow: 0 18px 42px rgba(7, 26, 45, .11);
}

.travel-mode-card .mode-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 14px;
  background: var(--td-navy);
  color: var(--td-gold-light);
  font-size: 1.2rem;
  font-weight: 800;
}

.travel-mode-card h3 {
  margin: 0 0 8px;
  color: var(--td-navy);
  font-size: 1.18rem;
}

.travel-mode-card p {
  margin: 0 0 22px;
  color: var(--td-muted);
  font-size: .91rem;
  line-height: 1.55;
}

.travel-mode-card b {
  margin-top: auto;
  color: #806027;
  font-size: .88rem;
}

.mode-hub-hero {
  position: relative;
  overflow: hidden;
}

.mode-hub-hero::after {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(228, 197, 125, .3);
  border-radius: 50%;
  content: "";
  box-shadow: 0 0 0 36px rgba(228, 197, 125, .06), 0 0 0 72px rgba(228, 197, 125, .035);
}

.mode-tool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.mode-tool-grid .hub-card {
  min-height: 260px;
}

.hub-section-title {
  grid-column: 1 / -1;
  margin: 26px 0 0;
  color: var(--td-navy);
  font-size: clamp(1.35rem, 2.3vw, 2rem);
}

.hub-section-title:first-child {
  margin-top: 0;
}

.mode-disclaimer {
  margin-top: 30px;
  padding: 18px 20px;
  border-left: 3px solid var(--td-gold);
  border-radius: 0 12px 12px 0;
  background: #f7f2e7;
  color: #5b5142;
  font-size: .9rem;
  line-height: 1.6;
}

@media (max-width: 1060px) {
  .travel-mode-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .unified-mode-nav {
    display: none;
  }

  .journey-switcher.journey-switcher-all,
  .travel-mode-grid,
  .mode-tool-grid {
    grid-template-columns: 1fr;
  }

  .journey-switcher-all a {
    min-height: auto;
  }

  .travel-mode-card {
    min-height: 0;
  }

  .mobile-journey-nav {
    overflow-x: auto;
    justify-content: flex-start;
    scrollbar-width: none;
  }

  .mobile-journey-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-journey-nav a:nth-child(2) {
    color: #38424e;
    background: transparent;
  }

  .mobile-journey-nav a:first-child {
    color: #694d1d;
    background: #f5ead3;
  }
}
