:root {
  --color-bg: #f4f6f8;
  --color-surface: #ffffff;
  --color-surface-soft: #eef5fb;
  --color-text: #1f2937;
  --color-muted: #667085;
  --color-border: #e2e8f0;
  --color-brand: #0f4c81;
  --color-brand-dark: #0a365c;
  --color-brand-light: #e9f3fb;
  --color-accent: #f59e0b;
  --color-success: #16803c;
  --color-warning: #9a6700;
  --color-danger: #b42318;
  --shadow-sm: 0 3px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 14px 36px rgba(15, 23, 42, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --site-width: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--color-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

button,
input,
select {
  font: inherit;
}

.site-container {
  width: min(var(--site-width), calc(100% - 32px));
  margin-inline: auto;
}

.site-topbar {
  background: var(--color-brand-dark);
  color: #ffffff;
  font-size: 14px;
}

.site-topbar__inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.site-topbar__text {
  margin: 0;
}

.site-header {
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  z-index: 30;
}

.site-header__inner {
  position: relative;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #111827;
  font-weight: 800;
  font-size: 21px;
  letter-spacing: -0.02em;
}

.site-brand:hover {
  text-decoration: none;
}

.site-brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand);
  color: #ffffff;
  font-weight: 900;
}

.site-brand__accent {
  color: var(--color-brand);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.site-nav__link {
  color: #344054;
  font-size: 14px;
  font-weight: 700;
}

.site-nav__link--active {
  color: var(--color-brand);
}

.site-main {
  min-height: 70vh;
}

.breadcrumb {
  padding: 18px 0 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--color-muted);
  font-size: 14px;
}

.breadcrumb__separator {
  color: #98a2b3;
}

.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: end;
  overflow: hidden;
  background: #12273a;
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(5, 22, 37, 0.9) 0%, rgba(5, 22, 37, 0.68) 48%, rgba(5, 22, 37, 0.22) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  color: #ffffff;
  padding: 74px 0;
}

.hero__eyebrow,
.page-heading__eyebrow {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero__eyebrow {
  color: #b9ddf8;
}

.hero__title {
  margin: 0;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.hero__text {
  margin: 20px 0 0;
  max-width: 690px;
  font-size: 19px;
  color: #e7eef5;
}

.hero__actions {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button:hover {
  text-decoration: none;
}

.button--primary {
  background: var(--color-brand);
  color: #ffffff;
}

.button--light {
  background: #ffffff;
  color: #172b3a;
}

.button--outline {
  background: transparent;
  border-color: var(--color-border);
  color: var(--color-brand);
}

.section {
  padding: 64px 0;
}

.section--compact {
  padding: 42px 0;
}

.section--surface {
  background: var(--color-surface);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading__title {
  margin: 0;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.section-heading__text {
  margin: 10px 0 0;
  color: var(--color-muted);
}

.search-panel {
  margin-top: -44px;
  position: relative;
  z-index: 5;
}

.search-panel__box {
  padding: 22px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.search-form__input {
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 0 15px;
  color: var(--color-text);
  background: #ffffff;
}

.search-form__input:focus {
  outline: 3px solid rgba(15, 76, 129, 0.12);
  border-color: var(--color-brand);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card,
.info-card,
.state-card,
.station-card,
.content-card,
.sidebar-card,
.rating-card,
.quick-fact,
.service-card,
.policy-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.stat-card {
  padding: 22px;
}

.stat-card__value {
  display: block;
  font-size: 30px;
  font-weight: 850;
  color: var(--color-brand);
}

.stat-card__label {
  color: var(--color-muted);
  font-size: 14px;
}

.state-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.state-card {
  padding: 18px;
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.state-card__name {
  display: block;
  color: var(--color-text);
  font-weight: 800;
  font-size: 17px;
}

.state-card__meta {
  display: block;
  margin-top: 8px;
  color: var(--color-muted);
  font-size: 13px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.info-card {
  padding: 24px;
}

.info-card__icon {
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border-radius: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-weight: 900;
}

.info-card__title {
  margin: 0 0 7px;
  font-size: 18px;
}

.info-card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.page-heading {
  padding: 38px 0 28px;
}

.page-heading__eyebrow {
  color: var(--color-brand);
}

.page-heading__title {
  margin: 0;
  max-width: 820px;
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.page-heading__text {
  max-width: 780px;
  margin: 16px 0 0;
  font-size: 18px;
  color: var(--color-muted);
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
  padding-bottom: 56px;
}

.content-card {
  padding: 32px;
}

.content-card > :first-child {
  margin-top: 0;
}

.content-card h2 {
  margin: 38px 0 12px;
  font-size: 27px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.content-card h3 {
  margin: 26px 0 8px;
  font-size: 19px;
}

.content-card p {
  margin: 0 0 16px;
}

.content-card ul,
.content-card ol {
  padding-left: 22px;
}

.content-card li {
  margin-bottom: 8px;
}

.sidebar-stack {
  display: grid;
  gap: 18px;
}

.sidebar-card {
  padding: 20px;
}

.sidebar-card--sticky {
  position: sticky;
  top: 96px;
}

.sidebar-card__title {
  margin: 0 0 12px;
  font-size: 18px;
}

.sidebar-card__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar-card__item + .sidebar-card__item {
  border-top: 1px solid var(--color-border);
}

.sidebar-card__link {
  display: block;
  padding: 10px 0;
  font-size: 14px;
  font-weight: 700;
}

.station-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.station-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.station-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: #c8d8e6;
}

.station-card__image-wrap {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe7ee;
}

.station-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-card__body {
  padding: 18px;
}

.station-card__location {
  margin: 0 0 5px;
  color: var(--color-muted);
  font-size: 13px;
}

.station-card__title {
  margin: 0;
  font-size: 19px;
  line-height: 1.3;
}

.station-card__title a {
  color: var(--color-text);
}

.station-card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
}

.station-card__link:focus-visible::after {
  outline: 3px solid #79b7e5;
  outline-offset: -3px;
  border-radius: inherit;
}

.station-card__address {
  margin: 10px 0 0;
  color: var(--color-muted);
  font-size: 13px;
  line-height: 1.5;
}

.alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 24px;
}

.alpha-nav__link {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 13px;
  font-weight: 800;
}

.pagination {
  margin-top: 26px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination__link {
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  font-weight: 800;
  font-size: 13px;
}

.pagination__link--active {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #ffffff;
}

.station-hero-image {
  margin: 18px 0 24px;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #dce5ec;
}

.station-hero-image__media {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e7edf2;
}

.station-hero-image__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}


.station-hero-image__open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.station-hero-image__open:focus-visible {
  outline: 3px solid #79b7e5;
  outline-offset: -3px;
}

.station-hero-image__zoom {
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(10, 54, 92, 0.9);
  color: #ffffff;
  font-size: 26px;
  font-weight: 500;
  line-height: 1;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.22);
  pointer-events: none;
}

.image-lightbox[hidden] {
  display: none;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  opacity: 0;
  background: rgba(4, 15, 25, 0.92);
  transition: opacity 160ms ease;
}

.image-lightbox--open {
  opacity: 1;
}

.image-lightbox__stage {
  width: 100%;
  height: 100%;
  padding: 72px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-lightbox__image {
  display: block;
  max-width: min(1400px, 96vw);
  max-height: calc(100vh - 110px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.45);
}

.image-lightbox__close {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.image-lightbox__close:hover,
.image-lightbox__close:focus-visible {
  background: rgba(255, 255, 255, 0.22);
}

body.image-lightbox-active {
  overflow: hidden;
}

.station-hero-image__caption {
  padding: 10px 14px;
  color: var(--color-muted);
  background: #fafafa;
  border-top: 1px solid var(--color-border);
  font-size: 12px;
}

.rating-summary {
  display: grid;
  grid-template-columns: 154px 1fr;
  gap: 22px;
  padding: 22px;
  margin-bottom: 28px;
  border-radius: var(--radius-md);
  border: 1px solid #cfe3f3;
  background: linear-gradient(135deg, #ffffff 0%, var(--color-brand-light) 100%);
}

.rating-summary__score {
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.rating-summary__number {
  color: var(--color-brand);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.rating-summary__stars {
  color: var(--color-accent);
  letter-spacing: 2px;
  margin-top: 8px;
}

.rating-summary__label {
  margin-top: 6px;
  color: var(--color-muted);
  font-size: 12px;
  text-align: center;
}

.rating-summary__title {
  margin: 0 0 8px;
  font-size: 21px;
}

.rating-summary__text {
  margin: 0;
  color: #475467;
}

.quick-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.quick-table th,
.quick-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--color-border);
}

.quick-table th {
  width: 34%;
  background: #f9fafb;
}


.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 24px;
}

.service-card {
  padding: 15px;
}

.service-card__label {
  display: block;
  font-weight: 800;
}

.service-card__status {
  margin-top: 3px;
  display: block;
  font-size: 13px;
}

.service-card__status--yes {
  color: var(--color-success);
}

.service-card__status--unknown {
  color: var(--color-warning);
}

.rating-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
}

.rating-card {
  padding: 16px;
}

.rating-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-weight: 800;
}

.rating-card__track {
  height: 8px;
  margin-top: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1f4;
}

.rating-card__bar {
  height: 100%;
  border-radius: inherit;
  background: var(--color-brand);
}

.rating-card__bar--98 { width: 98%; }
.rating-card__bar--86 { width: 86%; }
.rating-card__bar--96 { width: 96%; }
.rating-card__bar--90 { width: 90%; }

.notice {
  margin: 22px 0;
  padding: 15px 17px;
  border-radius: 12px;
  background: #fff7e6;
  border: 1px solid #f1d495;
  color: #6f500a;
  font-size: 14px;
}

.meta-note {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 14px;
}

.policy-intro {
  padding: 24px;
  margin-bottom: 18px;
  border-radius: var(--radius-md);
  background: var(--color-brand-light);
  border: 1px solid #cfe3f3;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.policy-card {
  padding: 20px;
}

.policy-card__title {
  margin: 0 0 8px;
  font-size: 18px;
}

.policy-card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.site-footer {
  margin-top: 20px;
  padding: 42px 0;
  background: #102a43;
  color: #d7e3ee;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 34px;
}

.site-footer__title {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 17px;
}

.site-footer__text {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
}

.site-footer__links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer__link {
  color: #ffffff;
  font-size: 14px;
}

.site-footer__credit {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.14);
  color: #aebdca;
  font-size: 12px;
}

@media (max-width: 980px) {
  .state-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .sidebar-card--sticky {
    position: static;
  }
}

@media (max-width: 760px) {


  .site-header {
    overflow: visible;
  }

  .mobile-nav-open {
    overflow-x: hidden;
  }

  .station-hero-image__zoom {
    right: 10px;
    bottom: 10px;
    width: 34px;
    height: 34px;
    font-size: 23px;
  }

  .image-lightbox__stage {
    padding: 64px 10px 14px;
  }

  .image-lightbox__image {
    max-width: 100%;
    max-height: calc(100vh - 84px);
    border-radius: 6px;
  }
  .site-header {
    position: sticky;
    top: 0;
    overflow: visible;
  }

  .site-topbar__inner {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .hero {
    min-height: 500px;
  }

  .hero__content {
    padding: 54px 0;
  }

  .search-form,
  .feature-grid,
  .station-list,
  .service-grid,
  .rating-grid,
  .policy-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .rating-summary {
    grid-template-columns: 1fr;
  }

  .rating-summary__score {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
    padding-bottom: 18px;
  }

  .content-card {
    padding: 22px;
  }
}

@media (max-width: 520px) {
  .state-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .hero__title {
    font-size: 40px;
  }

  .page-heading__title {
    font-size: 36px;
  }

  .quick-table th,
  .quick-table td {
    display: block;
    width: 100%;
  }

  .quick-table th {
    padding-bottom: 4px;
  }

  .quick-table td {
    padding-top: 4px;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}


/* Live station map */
.station-map {
  margin: 16px 0 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #eef2f5;
  box-shadow: var(--shadow-sm);
}

.station-map__frame {
  display: block;
  width: 100%;
  height: 360px;
  border: 0;
}


.fact-box {
  padding: 18px 20px;
  margin: 16px 0 24px;
  border: 1px solid #cfe3f3;
  border-radius: var(--radius-md);
  background: var(--color-brand-light);
}

.fact-box__title {
  display: block;
  margin-bottom: 8px;
  color: var(--color-brand);
  font-size: 16px;
}

.fact-box__list {
  margin: 0;
  padding-left: 20px;
}

.fact-box__list li + li {
  margin-top: 6px;
}


@media (max-width: 640px) {
  .station-map__frame {
    height: 300px;
  }
}

/* WordPress theme additions */
.site-logo-link {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.site-logo-link:hover {
  text-decoration: none;
}

.site-logo,
.custom-logo {
  display: block;
  width: 190px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.custom-logo-link {
  display: inline-flex;
  align-items: center;
}

.mobile-nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: #ffffff;
  cursor: pointer;
}

.mobile-nav-toggle__line {
  display: block;
  width: 100%;
  height: 2px;
  margin: 4px 0;
  background: var(--color-brand-dark);
  border-radius: 999px;
}

.brand-story {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr);
  gap: 42px;
  align-items: center;
}

.brand-story__content p {
  color: #475467;
}

.brand-story__media {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #e9eef3;
  box-shadow: var(--shadow-md);
}

.brand-story__image {
  width: 100%;
  aspect-ratio: 14 / 9;
  object-fit: cover;
}

.visual-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.visual-feature-card {
  overflow: hidden;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.visual-feature-card__image {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #e9eef3;
}

.visual-feature-card__body {
  padding: 22px;
}

.visual-feature-card__number {
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}

.visual-feature-card__title {
  margin: 5px 0 8px;
  font-size: 20px;
}

.visual-feature-card__text {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.state-grid--visual {
  grid-template-columns: repeat(4, 1fr);
}

.state-card--image {
  min-height: 0;
  padding: 0;
  overflow: hidden;
  display: block;
}

.state-card--image:hover {
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.state-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e5ebf0;
}

.state-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.state-card__body {
  display: block;
  padding: 17px;
}

.state-card__count {
  display: block;
  margin-top: 9px;
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 800;
}

.page-heading--with-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 36px;
  align-items: center;
}

.page-heading__media {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: #e7edf2;
  box-shadow: var(--shadow-sm);
}

.page-heading__image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.archive-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
}

.archive-search-box {
  margin: 0;
}

.search-form--stack {
  grid-template-columns: 1fr;
}

.section--archive-intro {
  padding: 10px 0 42px;
}

.archive-state-section {
  margin-inline: calc(50% - 50vw);
  padding-left: max(16px, calc((100vw - var(--site-width)) / 2));
  padding-right: max(16px, calc((100vw - var(--site-width)) / 2));
}

.search-results-card {
  margin-bottom: 56px;
}

.empty-state {
  padding: 28px;
  text-align: center;
  border: 1px dashed #bdc9d4;
  border-radius: var(--radius-md);
  background: #fafcfd;
}

.empty-state__title {
  margin: 0 0 8px;
}

.hub-description > :first-child {
  margin-top: 0;
}

.hub-description p {
  color: #475467;
}

.info-page-layout {
  max-width: 1060px;
}

.content-card--prose {
  font-size: 16px;
}

.content-card--prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.site-footer__contact {
  margin-top: 12px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: var(--color-brand);
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .2s ease, visibility .2s ease, transform .2s ease;
}

.back-to-top--visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--color-brand-dark);
}

.service-card__status--no {
  color: var(--color-danger);
}

.rating-card__bar--0 { width: 0; }
.rating-card__bar--5 { width: 5%; }
.rating-card__bar--10 { width: 10%; }
.rating-card__bar--15 { width: 15%; }
.rating-card__bar--20 { width: 20%; }
.rating-card__bar--25 { width: 25%; }
.rating-card__bar--30 { width: 30%; }
.rating-card__bar--35 { width: 35%; }
.rating-card__bar--40 { width: 40%; }
.rating-card__bar--45 { width: 45%; }
.rating-card__bar--50 { width: 50%; }
.rating-card__bar--55 { width: 55%; }
.rating-card__bar--60 { width: 60%; }
.rating-card__bar--65 { width: 65%; }
.rating-card__bar--70 { width: 70%; }
.rating-card__bar--75 { width: 75%; }
.rating-card__bar--80 { width: 80%; }
.rating-card__bar--85 { width: 85%; }
.rating-card__bar--90 { width: 90%; }
.rating-card__bar--95 { width: 95%; }
.rating-card__bar--100 { width: 100%; }

.error-page {
  margin: 64px 0;
  text-align: center;
}

.error-page .hero__actions {
  justify-content: center;
}

.pagination--wp .nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.pagination--wp .page-numbers {
  min-width: 38px;
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: var(--color-surface);
  font-weight: 800;
  font-size: 13px;
}

.pagination--wp .current {
  background: var(--color-brand);
  border-color: var(--color-brand);
  color: #ffffff;
}

@media (max-width: 1100px) {
  .state-grid--visual {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .page-heading--with-media,
  .brand-story,
  .archive-intro-grid {
    grid-template-columns: 1fr;
  }

  .page-heading__media {
    max-width: 620px;
  }

  .visual-feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header__inner {
    min-height: 68px;
    flex-direction: row;
    align-items: center;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .mobile-nav-toggle {
    display: block;
    margin-left: auto;
  }

  .site-nav {
    display: none;
    position: absolute;
    z-index: 120;
    left: 0;
    right: 0;
    top: calc(100% - 1px);
    max-height: calc(100vh - 84px);
    overflow-y: auto;
    padding: 10px;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 0 0 14px 14px;
    box-shadow: var(--shadow-md);
  }

  .site-nav--open {
    display: flex;
  }

  .site-nav__link {
    padding: 11px 10px;
    border-radius: 8px;
  }

  .site-nav__link:hover,
  .site-nav__link--active {
    background: var(--color-brand-light);
    text-decoration: none;
  }

  .site-logo,
  .custom-logo {
    width: 155px;
    height: 42px;
  }

  .state-grid--visual {
    grid-template-columns: repeat(2, 1fr);
  }

  .back-to-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 520px) {
  .state-grid--visual {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 560px;
  }

  .hero__content {
    padding-bottom: 72px;
  }

  .hero__actions .button {
    width: 100%;
  }

  .page-heading--with-media {
    gap: 20px;
  }
}

/* =========================================================
   BBC IMAGE RATIO FIX v1.0.2
   Keeps uploaded source images at their intended landscape ratio.
   ========================================================= */

/* Homepage brand image */
.brand-story {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  gap: 48px;
  align-items: center;
}

.brand-story__media {
  width: 100%;
  max-width: 560px;
  height: auto !important;
  margin: 0;
  justify-self: end;
  align-self: center;
  overflow: hidden;
}

.brand-story__image {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
}

/* Homepage feature cards: source images are 900x600 (3:2) */
.visual-feature-card {
  display: flex;
  flex-direction: column;
}

.visual-feature-card__image {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  object-position: center;
  flex: 0 0 auto;
}

.visual-feature-card__body {
  flex: 1 1 auto;
}

/* Main Busbahnhöfe and Bundesland hub hero images: source images are 16:9 */
.page-heading--with-media {
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 480px);
  gap: 48px;
  align-items: center;
}

.page-heading__media {
  width: 100%;
  max-width: 480px;
  height: auto !important;
  margin: 0;
  justify-self: end;
  align-self: center;
  overflow: hidden;
}

.page-heading__image {
  display: block;
  width: 100% !important;
  height: auto !important;
  max-width: 100%;
  aspect-ratio: 16 / 9 !important;
  object-fit: cover !important;
  object-position: center;
}

/* Tablet */
@media (max-width: 980px) {
  .brand-story,
  .page-heading--with-media {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .brand-story__media,
  .page-heading__media {
    width: 100%;
    max-width: 680px;
    justify-self: start;
  }
}

/* Mobile */
@media (max-width: 760px) {
  .brand-story__media,
  .page-heading__media {
    max-width: none;
  }

  .brand-story__image,
  .visual-feature-card__image,
  .page-heading__image {
    width: 100% !important;
    height: auto !important;
  }
}


/* =========================================================
   BBC BRAND STORY IMAGE FIX v1.0.3
   Prevents CSS Grid intrinsic image height from making
   home-brand-busbahnhofcheck.jpg appear inside a tall box.
   ========================================================= */

.brand-story__media {
  width: 100%;
  max-width: 560px;
  aspect-ratio: 14 / 9;
  height: auto !important;
  min-height: 0 !important;
  margin: 0;
  justify-self: end;
  align-self: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: #e9eef3;
  box-shadow: var(--shadow-md);
}

.brand-story__image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center;
}

@media (max-width: 980px) {
  .brand-story__media {
    width: 100%;
    max-width: 680px;
    justify-self: start;
  }
}

@media (max-width: 760px) {
  .brand-story__media {
    max-width: none;
  }
}


/* v1.0.6 station-page refinements */
.page-heading--station {
  padding-bottom: 18px;
}

.page-heading--station .page-heading__title {
  margin-bottom: 0;
}


/* =========================================================
   BBC 404 + archive content refinement v1.0.7
   ========================================================= */

.error-page {
  margin: 46px 0 72px;
  text-align: left;
}

.error-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(300px, .82fr);
  gap: 46px;
  align-items: center;
  min-height: 420px;
  padding: 54px 58px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 0%, #f5f9fc 58%, #eaf4fb 100%);
  box-shadow: var(--shadow-md);
}

.error-hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
}

.error-hero__code {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 13px;
  border-radius: 999px;
  background: var(--color-brand-light);
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
}

.error-hero__title {
  margin: 0;
  max-width: 680px;
  font-size: clamp(40px, 5vw, 62px);
  line-height: 1.03;
  letter-spacing: -.045em;
}

.error-hero__text {
  max-width: 680px;
  margin: 20px 0 0;
  color: #475467;
  font-size: 17px;
  line-height: 1.75;
}

.error-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.error-hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, 360px);
  aspect-ratio: 1 / 1;
  border: 1px solid #cfe3f3;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, rgba(15,76,129,.08) 0 3px, transparent 4px),
    linear-gradient(145deg, #e6f2fa, #f9fcfe);
  box-shadow: inset 0 0 0 18px rgba(255,255,255,.55);
}

.error-hero__visual::before,
.error-hero__visual::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(15, 76, 129, .24);
}

.error-hero__visual::before { inset: 42px; }
.error-hero__visual::after { inset: 88px; }

.error-hero__sign {
  position: absolute;
  z-index: 3;
  left: 50%;
  top: 50%;
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  border-radius: 28px 28px 28px 8px;
  background: var(--color-brand);
  color: #fff;
  font-size: 54px;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(15, 76, 129, .22);
}

.error-hero__route {
  position: absolute;
  height: 2px;
  border-top: 2px dashed #7db5dc;
  transform-origin: left center;
}

.error-hero__route--one { width: 150px; left: 36px; top: 94px; transform: rotate(32deg); }
.error-hero__route--two { width: 146px; right: 26px; bottom: 90px; transform: rotate(150deg); }

.error-hero__dot {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: #2b84c6;
  box-shadow: 0 2px 8px rgba(15, 76, 129, .18);
}

.error-hero__dot--one { left: 37px; top: 82px; }
.error-hero__dot--two { right: 42px; top: 78px; }
.error-hero__dot--three { right: 54px; bottom: 54px; }

.error-search {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  gap: 34px;
  align-items: center;
  margin-top: 22px;
  padding: 28px 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.error-search__copy h2 {
  margin: 0 0 7px;
  font-size: 24px;
}

.error-search__copy p {
  margin: 0;
  color: var(--color-muted);
}

.error-search__form {
  grid-template-columns: 1fr auto;
}

.error-links {
  padding-top: 52px;
}

.error-links__heading {
  margin-bottom: 20px;
}

.error-links__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.error-link-card {
  min-height: 210px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.error-link-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  border-color: #bcd5e7;
  box-shadow: var(--shadow-md);
}

.error-link-card__number {
  color: var(--color-brand);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
}

.error-link-card__title {
  margin-top: 12px;
  font-size: 20px;
  line-height: 1.25;
}

.error-link-card__text {
  margin-top: 10px;
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.65;
}

.error-link-card__cta {
  margin-top: auto;
  padding-top: 20px;
  color: var(--color-brand);
  font-size: 13px;
  font-weight: 850;
}

/* Archive intro: make the explanatory card easier to scan. */
.section--archive-intro .content-card h2 {
  margin-bottom: 14px;
  font-size: clamp(25px, 3vw, 31px);
}

.section--archive-intro .content-card p {
  max-width: 850px;
  color: #3f4e5f;
  line-height: 1.75;
}

.section--archive-intro .content-card p + p {
  margin-top: 15px;
}

@media (max-width: 900px) {
  .error-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 42px;
  }

  .error-hero__visual {
    justify-self: start;
    width: min(100%, 300px);
  }

  .error-search {
    grid-template-columns: 1fr;
  }

  .error-links__grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .error-page {
    margin: 24px 0 48px;
  }

  .error-hero {
    gap: 28px;
    padding: 30px 24px;
    border-radius: 18px;
  }

  .error-hero__title {
    font-size: clamp(34px, 11vw, 46px);
  }

  .error-hero__text {
    font-size: 16px;
  }

  .error-hero__visual {
    width: min(78vw, 280px);
  }

  .error-hero__actions .button {
    width: 100%;
  }

  .error-search {
    gap: 20px;
    padding: 22px;
  }

  .error-search__form {
    grid-template-columns: 1fr;
  }

  .error-links {
    padding-top: 38px;
  }
}

/* =========================================================
   INFORMATION / POLICY PAGES v1.0.8
   ========================================================= */
.policy-page {
  color: var(--color-text);
}

.policy-page > :first-child {
  margin-top: 0;
}

.policy-intro {
  margin: 0 0 28px !important;
  padding: 20px 22px;
  border-left: 4px solid var(--color-brand);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #f4f8fc;
  color: #344054;
  font-size: 17px;
  line-height: 1.75;
}

.policy-section {
  margin-top: 34px;
}

.policy-section + .policy-section {
  padding-top: 4px;
}

.content-card .policy-section__title {
  margin: 0 0 12px;
  font-size: 25px;
  line-height: 1.25;
}

.policy-section p:last-child {
  margin-bottom: 0;
}

.policy-grid {
  display: grid;
  gap: 16px;
  margin: 28px 0 32px;
}

.policy-grid--two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.policy-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.policy-card {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfdff;
}

.content-card .policy-card__title {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.policy-card__text {
  margin: 0 !important;
  color: #475467;
  font-size: 15px;
}

.policy-callout {
  margin: 28px 0;
  padding: 18px 20px;
  border: 1px solid #cfe0f1;
  border-radius: var(--radius-md);
  background: #f3f8fd;
  color: #344054;
}

.policy-callout--warning {
  border-color: #f3d7a3;
  background: #fff9ed;
}

.policy-list {
  margin: 0 0 20px;
  padding-left: 22px;
}

.policy-list--check {
  list-style: none;
  padding-left: 0;
}

.policy-list--check li {
  position: relative;
  padding-left: 28px;
}

.policy-list--check li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--color-brand);
  font-weight: 900;
}

.contact-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0 30px;
}

.contact-panel__item,
.legal-details {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: #fbfdff;
}

.contact-panel__label {
  display: block;
  margin-bottom: 5px;
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.contact-panel__value {
  display: block;
  overflow-wrap: anywhere;
}

.legal-details p,
.policy-meta {
  margin: 0 !important;
}

.policy-meta {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}

@media (max-width: 820px) {
  .policy-grid--three,
  .contact-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .policy-grid--two {
    grid-template-columns: 1fr;
  }

  .policy-intro {
    padding: 16px 17px;
    font-size: 16px;
  }

  .content-card .policy-section__title {
    font-size: 22px;
  }

  .policy-card,
  .policy-callout,
  .contact-panel__item,
  .legal-details {
    padding: 16px;
  }
}

