/* RailSaver homepage layout — 8 November 2026.
   The guide-search component and shared site styles are kept separately. */
.page-home .planning-section > .section-heading {
  margin-bottom: 12px;
}

.page-home .home-section-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 24px;
  margin: 0 0 22px;
  padding: 0 0 14px;
  border-bottom: 1px solid var(--line);
}

.page-home .home-section-nav a {
  display: inline-flex;
  padding: 6px 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
}

.page-home .home-section-nav a:hover {
  color: var(--red);
}

/* The core layout already offsets fragment navigation for the sticky header. */
.page-home .home-guide-search .home-search-anchor {
  scroll-margin-top: 0;
}

/* Keep all eight main-menu links within narrow tablet widths. */
@media (min-width: 801px) and (max-width: 1000px) {
  .page-home.page-core-compact .core-sticky-header .nav-inner {
    gap: 0;
  }

  .page-home.page-core-compact .core-sticky-header .site-nav a {
    padding-inline: 8px;
    font-size: 12px;
  }
}

@media (max-width: 620px) {
  .page-home .home-section-nav {
    gap: 4px 20px;
    margin-bottom: 18px;
    padding-bottom: 12px;
  }
}

