/* RailSaver station layout — 7 November 2026.
   Ordinary editable CSS; scoped to this station package. */

:root { --rs-sticky-height: 225px; }
html { scroll-padding-top: calc(var(--rs-sticky-height) + 14px); }
.page-station .skip-link, .page-station-directory .skip-link { z-index: 50; }
.page-station [id], .page-station-directory [id] { scroll-margin-top: 0; }
.page-station-directory .directory-group-heading h3 { scroll-margin-top: 0; }
.station-sticky-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  /* Keep the white gap below the menus visible while content scrolls. */
  padding-bottom: 18px;
  box-shadow: none;
}
.station-sticky-header .site-header { background: #fff; }
.station-sticky-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 112px;
  padding-block: 10px;
  gap: 30px;
}
.station-sticky-header .brand-block { width: 270px; flex: 0 0 270px; }
.station-sticky-header .brand img { width: 270px; }
.station-sticky-header .brand-tagline {
  display: flex;
  justify-content: space-between;
  width: 270px;
  margin: 5px 0 0;
  font-size: 11px;
  line-height: 1.5;
  white-space: nowrap;
  overflow-wrap: normal;
}
.station-sticky-header .brand-tagline > span { flex: 0 0 auto; }
.page-station-directory .brand-tagline { white-space: normal; font-size: 11px; }

/* The whole panel is a genuine link, matching the supplied image-link example.
   CSS creates sharp text and field outlines without another image download. */
.slim-booking {
  position: absolute;
  left: var(--rs-planner-left, 34%);
  right: 0;
  display: grid;
  grid-template-columns: minmax(112px, .75fr) minmax(0, 2fr) minmax(118px, .8fr);
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 9px 12px;
  border: 1px solid #c6cedd;
  border-radius: 7px;
  background: #fff;
  color: #202b46;
  box-shadow: 0 2px 5px rgb(20 33 78 / 4%);
  line-height: 1.25;
}
.slim-booking:hover {
  text-decoration: none;
  border-color: var(--navy);
  background: #fbfcff;
}
.slim-planner-options, .slim-planner-action { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.slim-planner-title { text-align: center; font-size: 17px; white-space: nowrap; color: #172348; }
.slim-planner-modes { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #6474a6; border-radius: 3px; font-size: 13px; text-align: center; }
.slim-planner-modes > span { padding: 5px 3px; }
.slim-planner-modes > span + span { border-left: 1px solid #6474a6; }
.slim-planner-stations { display: grid; gap: 7px; min-width: 0; }
.slim-planner-field { display: flex; align-items: center; justify-content: space-between; gap: 7px; min-height: 29px; padding: 3px 8px; border: 1px solid #2677b7; border-radius: 2px; font-size: 14px; color: #26334d; }
.slim-planner-field > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.slim-planner-field svg { width: 19px; height: 19px; flex: 0 0 19px; color: #14214e; }
.slim-planner-action { gap: 5px; }
.slim-planner-brand { display: flex; justify-content: center; font-size: 26px; font-weight: 700; letter-spacing: -.8px; }
.slim-planner-brand > span:first-child { color: #c62c25; }
.slim-planner-brand > span + span { color: #1b2a67; }
.slim-planner-button { display: flex; align-items: center; justify-content: center; gap: 7px; padding: 7px 8px; border-radius: 4px; background: #1b2a67; color: #fff; font-size: 13px; font-weight: 700; text-transform: uppercase; white-space: nowrap; }
.slim-planner-button svg { width: 19px; height: 19px; }

/* The main menu and the section strip share one sticky wrapper. */
.station-sticky-header .quick-strip { position: static; border-bottom-color: transparent; }
.station-tools-inner { display: flex; align-items: center; gap: 24px; min-height: 55px; padding-block: 7px; }
.station-tools .quick-cta { flex: 0 0 auto; padding: 9px 14px; font-size: 12px; line-height: 1.5; white-space: nowrap; }
.station-tools .quick-cta:hover { color: #fff; text-decoration: none; background: #a82319; }
.station-section-nav { display: flex; align-items: center; justify-content: space-between; flex: 1 1 auto; flex-wrap: wrap; gap: 4px 16px; min-width: 0; }
.station-section-nav a { padding: 7px 0; color: var(--navy); font-size: 12px; font-weight: 700; line-height: 1.45; white-space: nowrap; }

/* One grid contains introduction, guide and sidebar from their common top edge. */
.page-station .breadcrumbs { display: none; }
.page-station .inner-columns { padding-top: 0; align-items: stretch; }
/* Transfer the directory breadcrumb spacing into the same sticky gap. */
.page-station-directory .breadcrumbs { padding-top: 7px; }
.page-station .main-column, .page-station .side-column { min-width: 0; }
.page-station .station-hero {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: space-between;
  gap: 0;
  padding: 21px 24px;
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-wrap: anywhere;
}
.page-station .station-hero .eyebrow { margin-bottom: 9px; }
.page-station .station-hero h1 { font-size: 32px; line-height: 1.16; letter-spacing: -.65px; margin-bottom: 11px; }
.page-station .station-guide-copy > p:not(.eyebrow) { font-size: 14px; line-height: 1.55; }
.page-station .station-split-savings { padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.page-station .station-savings-copy h2 { font-size: 18px; line-height: 1.3; letter-spacing: 0; margin-bottom: 7px; }
.page-station .station-savings-copy h2 strong { color: var(--red); font-size: 26px; white-space: nowrap; }
.page-station .station-hero .station-savings-copy p { font-size: 12px; line-height: 1.5; }
.page-station .station-hero .station-savings-copy .station-savings-note { margin-top: 7px; font-size: 10px; }
.page-station .station-review-date { margin-bottom: 20px; }
.page-station .station-booking-footer { margin-top: 8px; margin-bottom: 0; }

/* Match the routes' light-blue Your departure tile, with readable text. */
.page-station .side-booking { background: var(--pale); color: var(--ink); }
.page-station .side-booking .eyebrow { color: var(--red); }
.page-station .side-booking h2 { color: var(--navy); }
.page-station .side-booking p:not(.eyebrow) { color: var(--muted); }

/* Flex stretching responds to main-column growth AND shrinkage automatically.
   Only the banner's natural content supplies a minimum; no page-height script. */
.page-station .banner-card { padding: 0; margin-top: 24px; margin-bottom: 0; overflow: hidden; min-height: 252px; }
.page-station .banner-frame { display: block; width: 100%; min-height: var(--rs-banner-natural-height, 250px); height: 250px; border: 0; background: #fff; }
@media (min-width: 801px) {
  .page-station .inner-columns > .main-column,
  .page-station .inner-columns > .side-column { display: flex; flex-direction: column; }
  .page-station .inner-columns > .main-column > *,
  .page-station .inner-columns > .side-column > * { flex: 0 0 auto; }
  .page-station .main-column > .station-booking-footer { margin-top: auto; }
  .page-station .side-column > .banner-card { display: flex; flex-direction: column; flex: 1 0 auto; }
  .page-station .banner-card > .banner-frame { flex: 1 0 auto; }
}

/* Footer: About links, accreditation, and a centered Google search box. */
.page-station .footer-grid,
.page-station-directory .footer-grid { grid-template-columns: minmax(210px,1.5fr) minmax(120px,1fr) minmax(135px,1fr) minmax(110px,.85fr) 145px; gap: 28px; }
.footer-accreditation-block { align-self: end; justify-self: end; padding-bottom: 8px; }
.footer-accreditation { display: block; width: 145px; height: auto; padding: 7px; border-radius: 4px; background: #fff; }
.page-station .footer-bottom,
.page-station-directory .footer-bottom { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,340px) minmax(0,1fr); gap: 26px; align-items: center; padding-top: 22px; }
.footer-copyright { font-size: 10px; line-height: 1.6; }
.footer-description { font-size: 11px; text-align: right; }
.footer-search { display: block; width: 100%; min-width: 0; }
.footer-search .gcse-search { min-height: 34px; }
.footer-search .site-search-label { color: #c1cbe2; margin: 5px 0 0; font-size: 10px; }
.footer-search .gsc-control-cse { padding: 0; border: 0; background: transparent; }
.footer-search .gsc-search-box, .footer-search .gsc-search-box-tools { width: 100%; margin: 0; }
.footer-search .gsc-input-box { height: 34px; padding: 0; border: 1px solid #bcc5d7; border-radius: 4px; background: #fff; }
.footer-search .gsc-input-box table { height: 32px; }
.footer-search table.gsc-search-box td.gsc-input { padding-right: 4px; }
.footer-search .gsib_a { height: 32px; padding: 0 8px; }
.footer-search .gsib_b { height: 32px; padding: 0 6px 0 0; }
.footer-search input.gsc-input { display: block; height: 22px !important; line-height: 22px; font-size: 14px; color: #202b46; background: #fff; }
.footer-search .gsc-search-button-v2 { height: 34px; padding: 0 13px; border: 1px solid #b7c3df; border-radius: 4px; background: #253975; }
.footer-search .gsc-results-wrapper-visible { color: #202b46; }
.site-footer .footer-search .gsc-results-wrapper-visible a { color: #1b2a67; }

@media (min-width: 801px) and (max-width: 1100px) {
  .station-sticky-header .header-inner { min-height: 106px; }
  .station-sticky-header .brand-block { width: 240px; flex-basis: 240px; }
  .station-sticky-header .brand img, .station-sticky-header .brand-tagline { width: 240px; }
  .station-sticky-header .brand-tagline { font-size: 9.7px; }
  .slim-booking { left: var(--rs-planner-left, 32%); gap: 9px; grid-template-columns: 105px minmax(0,1fr) 105px; padding: 8px; }
  .slim-planner-title { font-size: 14px; }
  .slim-planner-modes { font-size: 12px; }
  .slim-planner-brand { font-size: 23px; }
  .slim-planner-button { gap: 4px; font-size: 11px; }
  .slim-planner-button svg { width: 15px; height: 15px; }
  .slim-planner-field { font-size: 12px; padding-inline: 6px; }
  .station-tools-inner { gap: 17px; }
  .station-section-nav { justify-content: flex-start; gap: 1px 17px; }
  .station-section-nav a { padding-block: 4px; font-size: 11px; }
  .page-station .station-hero { padding: 18px 20px; }
  .page-station .station-hero h1 { font-size: 29px; }
  .page-station .footer-grid, .page-station-directory .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 22px; }
  .footer-accreditation-block { grid-column: 4; align-self: start; justify-self: start; margin-top: -8px; }
  .page-station .footer-bottom, .page-station-directory .footer-bottom { grid-template-columns: minmax(0,1fr) 290px minmax(0,1fr); gap: 18px; }
}

@media (max-width: 800px) {
  :root { --rs-sticky-height: 251px; }
  .station-sticky-header { padding-bottom: 16px; }
  .page-station-directory .breadcrumbs { padding-top: 9px; }
  .station-sticky-header .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 16px; min-height: 0; padding-block: 9px; }
  .station-sticky-header .brand-block { width: 220px; max-width: 100%; }
  .station-sticky-header .brand img { width: 220px; }
  .station-sticky-header .brand-tagline { display: none; }
  .station-sticky-header .menu-toggle { display: block; grid-column: 2; grid-row: 1; }
  .slim-booking { position: static; grid-column: 1 / -1; grid-row: 2; width: 100%; min-height: 76px; grid-template-columns: 120px minmax(0,1fr) 122px; gap: 10px; padding: 7px 9px; }
  .slim-planner-title { font-size: 14px; }
  .slim-planner-modes { font-size: 12px; }
  .slim-planner-brand { font-size: 23px; }
  .slim-planner-button { font-size: 11px; padding: 6px; }
  .slim-planner-button svg { width: 16px; height: 16px; }
  .slim-planner-field { min-height: 26px; font-size: 12px; }
  .slim-planner-stations { gap: 5px; }
  .station-sticky-header .site-nav { display: none; }
  .station-sticky-header .site-nav.is-open { display: block; max-height: 35vh; overflow-y: auto; }
  .station-sticky-header .nav-inner { display: grid; grid-template-columns: 1fr 1fr; padding-block: 5px; }
  .station-sticky-header .site-nav a { padding: 9px 12px; font-size: 12px; }
  .station-tools-inner { gap: 14px; min-height: 52px; }
  .station-section-nav { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; gap: 17px; padding: 2px 2px 4px; }
  .station-section-nav a { flex: 0 0 auto; font-size: 11px; }
  .station-tools .quick-cta { padding: 8px 11px; font-size: 11px; }
  .station-tools .quick-cta .icon { width: 14px; height: 14px; }
  .page-station .station-hero h1 { font-size: 29px; }
  .page-station .banner-card { min-height: 0; }
  .page-station .footer-grid, .page-station-directory .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .page-station .footer-intro, .page-station-directory .footer-intro { grid-column: 1 / -1; }
  .footer-accreditation-block { grid-column: 2; align-self: end; justify-self: end; }
  .page-station .footer-bottom, .page-station-directory .footer-bottom { grid-template-columns: 1fr; justify-items: center; gap: 18px; text-align: center; }
  .footer-search { width: min(100%,380px); }
  .footer-copyright { max-width: 430px; }
  .footer-description { text-align: center; }
}
@media (max-width: 620px) {
  .page-station-directory .breadcrumbs { padding-top: 4px; }
}
@media (max-width: 520px) {
  .station-sticky-header .brand-block { width: 185px; }
  .station-sticky-header .brand img { width: 185px; }
  .slim-booking { grid-template-columns: minmax(0,1fr) 106px; gap: 10px; min-height: 74px; }
  .slim-planner-options { display: none; }
  .slim-planner-field { font-size: 11px; padding: 4px 5px; }
  .slim-planner-field svg { width: 15px; height: 15px; flex-basis: 15px; }
  .slim-planner-brand { font-size: 22px; }
  .slim-planner-button { font-size: 10px; gap: 4px; }
  .station-tools-inner { gap: 11px; }
  .station-tools .quick-cta { padding: 8px 10px; }
  .page-station .station-hero { padding: 18px; }
  .page-station .station-hero h1 { font-size: 27px; }
  .page-station .station-savings-copy h2 { font-size: 17px; }
  .page-station .station-savings-copy h2 strong { font-size: 24px; }
  .page-station .footer-grid, .page-station-directory .footer-grid { gap: 24px 18px; }
  .footer-accreditation { width: 135px; padding: 6px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media print {
  .station-sticky-header { position: static; box-shadow: none; }
  .footer-search, .banner-card { display: none; }
}

/* Timetables beside Search tickets; existing sticky gap and layout are retained. */
.station-tools .quick-timetable { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; padding: 8px 12px; border: 1px solid #d9e1ef; border-radius: 4px; background: #f2f5fa; color: var(--navy); font-size: 12px; font-weight: 700; line-height: 1.5; white-space: nowrap; text-decoration: none; }
.station-tools .quick-timetable:hover { border-color: #bcc9de; background: #e5edf8; color: var(--navy); text-decoration: none; }
.station-tools .quick-timetable:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
@media (max-width: 800px) {
  .station-tools-inner { flex-wrap: wrap; row-gap: 8px; }
  .station-section-nav { flex-basis: 100%; }
  .station-tools .quick-timetable { padding: 7px 10px; font-size: 11px; }
}
