/* RailSaver refunds page — 8 November 2026. */

:root { --rs-sticky-height: 225px; }
html { scroll-padding-top: calc(var(--rs-sticky-height) + 14px); }
.page-refunds-guide .skip-link { z-index: 50; }
.page-refunds-guide [id] { scroll-margin-top: 0; }
.page-refunds-guide .refunds-sticky-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #fff;
  /* Retain the white gap below Search tickets while the content scrolls. */
  padding-bottom: 18px;
  box-shadow: none;
}
.page-refunds-guide .refunds-sticky-header .site-header { background: #fff; }
.page-refunds-guide .refunds-sticky-header .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 112px;
  padding-block: 10px;
  gap: 30px;
}
.page-refunds-guide .refunds-sticky-header .brand-block { width: 270px; flex: 0 0 270px; }
.page-refunds-guide .refunds-sticky-header .brand img { width: 270px; }
.page-refunds-guide .refunds-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;
}
.page-refunds-guide .refunds-sticky-header .brand-tagline > span { flex: 0 0 auto; }

/* The whole panel is a genuine link, matching the supplied image-link example.
   CSS creates sharp text and field outlines without another image download. */
.page-refunds-guide .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;
}
.page-refunds-guide .slim-booking:hover {
  text-decoration: none;
  border-color: var(--navy);
  background: #fbfcff;
}
.page-refunds-guide .slim-planner-options, .page-refunds-guide .slim-planner-action { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.page-refunds-guide .slim-planner-title { text-align: center; font-size: 17px; white-space: nowrap; color: #172348; }
.page-refunds-guide .slim-planner-modes { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #6474a6; border-radius: 3px; font-size: 13px; text-align: center; }
.page-refunds-guide .slim-planner-modes > span { padding: 5px 3px; }
.page-refunds-guide .slim-planner-modes > span + span { border-left: 1px solid #6474a6; }
.page-refunds-guide .slim-planner-stations { display: grid; gap: 7px; min-width: 0; }
.page-refunds-guide .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; }
.page-refunds-guide .slim-planner-field > span { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.page-refunds-guide .slim-planner-field svg { width: 19px; height: 19px; flex: 0 0 19px; color: #14214e; }
.page-refunds-guide .slim-planner-action { gap: 5px; }
.page-refunds-guide .slim-planner-brand { display: flex; justify-content: center; font-size: 26px; font-weight: 700; letter-spacing: -.8px; }
.page-refunds-guide .slim-planner-brand > span:first-child { color: #c62c25; }
.page-refunds-guide .slim-planner-brand > span + span { color: #1b2a67; }
.page-refunds-guide .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; }
.page-refunds-guide .slim-planner-button svg { width: 19px; height: 19px; }

/* Keep the current pale footer and the Google widget below its logo.
   Shared CSS owns the column layout and widget positioning. */
.page-refunds-guide .footer-copyright { font-size: 10px; line-height: 1.6; }
.page-refunds-guide .footer-description { font-size: 11px; text-align: right; }
.page-refunds-guide .footer-search .gcse-search { min-height: 34px; }
.page-refunds-guide .footer-search .site-search-label { margin: 5px 0 0; font-size: 10px; }
.page-refunds-guide .footer-search .gsc-control-cse { padding: 0; border: 0; background: transparent; }
.page-refunds-guide .footer-search .gsc-search-box,
.page-refunds-guide .footer-search .gsc-search-box-tools { width: 100%; margin: 0; }
.page-refunds-guide .footer-search .gsc-input-box { height: 34px; padding: 0; border: 1px solid #bcc5d7; border-radius: 4px; background: #fff; }
.page-refunds-guide .footer-search .gsc-input-box table { height: 32px; }
.page-refunds-guide .footer-search .gsib_a { height: 32px; }
.page-refunds-guide .footer-search input.gsc-input { display: block; height: 22px !important; line-height: 22px; font-size: 14px; color: var(--ink); background: #fff; }
.page-refunds-guide .footer-search .gsc-search-button-v2 { height: 34px; border: 1px solid #b7c3df; border-radius: 4px; background: var(--navy); }
.page-refunds-guide .footer-search .gsc-results-wrapper-visible { color: var(--ink); }
.page-refunds-guide .site-footer .footer-search .gsc-results-wrapper-visible a { color: var(--navy); }

@media (min-width: 801px) and (max-width: 1100px) {
  .page-refunds-guide .refunds-sticky-header .header-inner { min-height: 106px; }
  .page-refunds-guide .refunds-sticky-header .brand-block { width: 240px; flex-basis: 240px; }
  .page-refunds-guide .refunds-sticky-header .brand img, .page-refunds-guide .refunds-sticky-header .brand-tagline { width: 240px; }
  .page-refunds-guide .refunds-sticky-header .brand-tagline { font-size: 9.7px; }
  .page-refunds-guide .slim-booking { left: var(--rs-planner-left, 32%); gap: 9px; grid-template-columns: 105px minmax(0,1fr) 105px; padding: 8px; }
  .page-refunds-guide .slim-planner-title { font-size: 14px; }
  .page-refunds-guide .slim-planner-modes { font-size: 12px; }
  .page-refunds-guide .slim-planner-brand { font-size: 23px; }
  .page-refunds-guide .slim-planner-button { gap: 4px; font-size: 11px; }
  .page-refunds-guide .slim-planner-button svg { width: 15px; height: 15px; }
  .page-refunds-guide .slim-planner-field { font-size: 12px; padding-inline: 6px; }
}

@media (max-width: 800px) {
  :root { --rs-sticky-height: 251px; }
  .page-refunds-guide .refunds-sticky-header { padding-bottom: 16px; }
  .page-refunds-guide .refunds-sticky-header .header-inner { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px 16px; min-height: 0; padding-block: 9px; }
  .page-refunds-guide .refunds-sticky-header .brand-block { width: 220px; max-width: 100%; }
  .page-refunds-guide .refunds-sticky-header .brand img { width: 220px; }
  .page-refunds-guide .refunds-sticky-header .brand-tagline { display: none; }
  .page-refunds-guide .refunds-sticky-header .menu-toggle { display: block; grid-column: 2; grid-row: 1; }
  .page-refunds-guide .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; }
  .page-refunds-guide .slim-planner-title { font-size: 14px; }
  .page-refunds-guide .slim-planner-modes { font-size: 12px; }
  .page-refunds-guide .slim-planner-brand { font-size: 23px; }
  .page-refunds-guide .slim-planner-button { font-size: 11px; padding: 6px; }
  .page-refunds-guide .slim-planner-button svg { width: 16px; height: 16px; }
  .page-refunds-guide .slim-planner-field { min-height: 26px; font-size: 12px; }
  .page-refunds-guide .slim-planner-stations { gap: 5px; }
  .page-refunds-guide .refunds-sticky-header .site-nav { display: none; }
  .page-refunds-guide .refunds-sticky-header .site-nav.is-open { display: block; max-height: 35vh; overflow-y: auto; }
  .page-refunds-guide .refunds-sticky-header .nav-inner { display: grid; grid-template-columns: 1fr 1fr; padding-block: 5px; }
  .page-refunds-guide .refunds-sticky-header .site-nav a { padding: 9px 12px; font-size: 12px; }
}

@media (max-width: 520px) {
  .page-refunds-guide .refunds-sticky-header .brand-block { width: 185px; }
  .page-refunds-guide .refunds-sticky-header .brand img { width: 185px; }
  .page-refunds-guide .slim-booking { grid-template-columns: minmax(0,1fr) 106px; gap: 10px; min-height: 74px; }
  .page-refunds-guide .slim-planner-options { display: none; }
  .page-refunds-guide .slim-planner-field { font-size: 11px; padding: 4px 5px; }
  .page-refunds-guide .slim-planner-field svg { width: 15px; height: 15px; flex-basis: 15px; }
  .page-refunds-guide .slim-planner-brand { font-size: 22px; }
  .page-refunds-guide .slim-planner-button { font-size: 10px; gap: 4px; }
}

/* Refund guidance uses one readable card, with the supplied content in order. */
.page-refunds-guide .refunds-main { padding-top: 0; padding-bottom: 46px; }
.page-refunds-guide .refunds-card { padding: 30px 34px 34px; margin-bottom: 0; background: #fff; }
.page-refunds-guide .refunds-card h1 { margin: 0 0 20px; font-size: 32px; line-height: 1.2; letter-spacing: -.6px; color: var(--navy); }
.page-refunds-guide .refunds-card h2 { margin: 30px 0 15px; padding-top: 23px; border-top: 1px solid var(--line); font-size: 23px; line-height: 1.3; color: var(--navy); }
.page-refunds-guide .refunds-card p,
.page-refunds-guide .refunds-card li { font-size: 15px; line-height: 1.8; color: var(--ink); overflow-wrap: break-word; }
.page-refunds-guide .refunds-card p { margin: 0 0 15px; }
.page-refunds-guide .refunds-card ul { margin: 0 0 20px; padding-left: 24px; }
.page-refunds-guide .refunds-card li { padding-left: 4px; margin-bottom: 16px; }
.page-refunds-guide .refunds-card li::marker { color: var(--navy); }
.page-refunds-guide .refunds-card a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.page-refunds-guide .refunds-card a:hover { color: var(--red); }
.page-refunds-guide .refunds-card a:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.page-refunds-guide .refunds-card > :last-child,
.page-refunds-guide .refunds-card li:last-child { margin-bottom: 0; }
@media (max-width: 800px) {
  .page-refunds-guide .refunds-card h1 { font-size: 29px; }
  .page-refunds-guide .footer-description { text-align: center; }
}
@media (max-width: 620px) {
  .page-refunds-guide .refunds-main { padding-bottom: 30px; }
  .page-refunds-guide .refunds-card { padding: 22px 20px; }
  .page-refunds-guide .refunds-card h1 { font-size: 27px; }
  .page-refunds-guide .refunds-card h2 { font-size: 22px; }
  .page-refunds-guide .refunds-card p,
  .page-refunds-guide .refunds-card li { font-size: 14px; line-height: 1.8; }
  .page-refunds-guide .refunds-card ul { padding-left: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@media print {
  .page-refunds-guide .refunds-sticky-header { position: static; }
  .page-refunds-guide .slim-booking,
  .page-refunds-guide .site-nav,
  .page-refunds-guide .menu-toggle,
  .page-refunds-guide .footer-search { display: none !important; }
  .page-refunds-guide .refunds-card { border: 0; padding: 0; }
  .page-refunds-guide .refunds-card h2 { break-after: avoid; }
  .page-refunds-guide .refunds-card li { break-inside: avoid; }
}
