:root {
  color-scheme: light;
  --color-ink: #1c1c1c;
  --color-navy: #1b2a41;
  --color-navy-2: #1e2d43;
  --color-paper: #f9f9f9;
  --color-line: #e9eaec;
  --color-section-soft: #f1f3f5;
  --color-white: #ffffff;
  --color-muted: rgba(28, 28, 28, 0.68);
  --color-soft: rgba(233, 234, 236, 0.72);
  --color-good: #2f8f5b;
  --shadow-soft: 0 10px 24px rgba(27, 42, 65, 0.08);
  --shadow-surface: 0 8px 18px rgba(27, 42, 65, 0.07);
  --shadow-raised: 0 12px 26px rgba(27, 42, 65, 0.1);
  --shadow-control: 0 4px 10px rgba(27, 42, 65, 0.06);
  --shadow-control-hover: 0 7px 16px rgba(27, 42, 65, 0.09);
  --radius: 8px;
  --radius-small: 6px;
  --container: 1280px;
  --form-label-height: 18px;
  --form-control-height: 46px;
  --font-head: "Manrope", Arial, sans-serif;
  --font-body: "Roboto Condensed", Arial, sans-serif;
  --header-offset: 76px;
  --motion-fast: 220ms;
  --motion-base: 280ms;
  --motion-medium: 420ms;
  --motion-slow: 680ms;
  --ease-smooth: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-emphasized: cubic-bezier(0.2, 0.82, 0.22, 1);
  --z-base: 1;
  --z-raised: 2;
  --z-control: 20;
  --z-control-hover: 40;
  --z-panel: 80;
  --z-dropdown: 200;
  --z-header: 1000;
  --z-transition: 10000;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  display: flex;
  width: 100%;
  min-height: 100vh;
  flex-direction: column;
  margin: 0;
  padding-top: var(--header-offset);
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.45;
}

html.is-page-transition-active,
html.is-page-transition-active body,
html.is-page-transition-pending,
html.is-page-transition-pending body,
html.is-site-menu-open,
html.is-site-menu-open body {
  overflow: hidden;
}

html.is-page-transition-pending {
  background: var(--color-navy);
}

html.is-page-transition-pending body {
  background: var(--color-navy);
}

html.is-page-transition-pending body > :not(.page-transition) {
  visibility: hidden;
}

main {
  flex: 1 0 auto;
}

body,
.site-header,
.button,
.icon-button,
.route-panel,
.route-card,
.passenger-card,
.feature-card,
.news-card,
.field input,
.segmented-control,
.station-options,
.station-option,
.station-map-button,
.station-detail,
.menu-toggle,
.route-toggle,
.route-stop-timeline,
.table-shell,
.footer {
  transition: background-color var(--motion-base) var(--ease-smooth), color var(--motion-base) var(--ease-smooth), border-color var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes soft-pop {
  from {
    opacity: 0;
    transform: translateY(-5px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes rail-grow {
  from {
    transform: translateY(-50%) scaleX(0.18);
  }
  to {
    transform: translateY(-50%) scaleX(1);
  }
}

@keyframes reveal-down {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nav-item-in {
  from {
    opacity: 0;
    transform: translateX(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
fieldset {
  font: inherit;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  font-size: clamp(36px, 5.5vw, 72px);
}

h2 {
  font-size: clamp(28px, 3.2vw, 46px);
}

h3 {
  font-size: 22px;
}

p {
  margin: 0;
}

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

.section {
  padding: 86px 0;
}

.section-dark {
  background: var(--color-navy);
  color: var(--color-paper);
}

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

.section-head {
  margin-bottom: 28px;
}

.section-head h2,
.passenger-section-head h2 {
  color: var(--color-navy);
  font-size: clamp(24px, 2.4vw, 36px);
}

.section-head::after,
.passenger-section-head::after {
  content: "";
  display: block;
  width: 100%;
  height: 3px;
  margin-top: 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-navy), rgba(27, 42, 65, 0));
}

.section-head-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  column-gap: 20px;
  row-gap: 0;
  align-items: end;
}

.section-head-row::after {
  flex: 0 0 100%;
  align-self: stretch;
}

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

.split,
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
  gap: 36px;
  align-items: end;
}

.muted {
  color: var(--color-muted);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.section-dark .muted {
  color: rgba(249, 249, 249, 0.74);
}

.lead {
  max-width: 590px;
  margin-top: 24px;
  color: rgba(249, 249, 249, 0.84);
  font-size: 24px;
}

.site-header {
  position: fixed;
  z-index: var(--z-header);
  top: 0;
  left: 0;
  right: 0;
  width: 100%;
  background: var(--color-navy);
  color: var(--color-paper);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.site-header-inner {
  position: relative;
  display: grid;
  width: min(var(--container), calc(100% - 32px));
  min-height: 76px;
  margin-inline: auto;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 12px 0;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.brand img {
  width: 245px;
  height: 51px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  font-weight: 700;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
}

.nav a {
  padding: 10px 14px;
  border-radius: var(--radius-small);
  color: rgba(249, 249, 249, 0.88);
  transition: background-color var(--motion-fast) var(--ease-smooth), color var(--motion-fast) var(--ease-smooth), transform var(--motion-fast) var(--ease-smooth);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.nav-item-has-menu::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 12px;
}

.nav a:hover,
.nav a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  color: var(--color-white);
  transform: translateY(-1px);
}

.nav a.is-active {
  background: rgba(255, 255, 255, 0.16);
  color: var(--color-white);
}

.nav-menu {
  position: absolute;
  z-index: var(--z-dropdown);
  top: calc(100% + 10px);
  left: 0;
  display: grid;
  min-width: 190px;
  max-width: min(280px, calc(100vw - 32px));
  gap: 7px;
  padding: 12px 14px;
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  visibility: hidden;
  transition: opacity var(--motion-base) var(--ease-smooth), transform var(--motion-base) var(--ease-emphasized), visibility 0s linear var(--motion-base);
}

.nav-item-has-menu:hover .nav-menu,
.nav-item-has-menu:focus-within .nav-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
  transition-delay: 0s;
}

.nav .nav-sub-link {
  width: auto;
  padding: 0;
  border-radius: 0;
  color: rgba(27, 42, 65, 0.72);
  font-size: 14px;
  line-height: 1.35;
  white-space: normal;
}

.nav .nav-sub-link:hover,
.nav .nav-sub-link:focus-visible {
  background: transparent;
  color: var(--color-navy);
  text-decoration: none;
  transform: none;
}

.header-actions {
  display: none;
  gap: 14px;
  align-items: center;
  justify-content: flex-end;
}

.menu-toggle {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--color-paper);
  cursor: pointer;
}

.menu-toggle:hover,
.menu-toggle:focus-visible {
  color: var(--color-white);
  background: transparent;
}

.menu-toggle:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.36);
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle span {
  position: absolute;
  left: 6px;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform var(--motion-base) var(--ease-emphasized), opacity var(--motion-fast) var(--ease-smooth);
}

.menu-toggle span:nth-child(1) {
  transform: translateY(-6px);
}

.menu-toggle span:nth-child(2) {
  transform: translateY(0);
}

.menu-toggle span:nth-child(3) {
  transform: translateY(6px);
}

.site-header.is-menu-open .menu-toggle span:nth-child(1) {
  transform: translateY(0) rotate(45deg);
}

.site-header.is-menu-open .menu-toggle span:nth-child(2) {
  opacity: 0;
}

.site-header.is-menu-open .menu-toggle span:nth-child(3) {
  transform: translateY(0) rotate(-45deg);
}

.page-transition {
  position: fixed;
  z-index: var(--z-transition);
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--color-navy);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

.page-transition::before {
  content: none;
}

.page-transition-logo {
  position: relative;
  z-index: 1;
  width: clamp(230px, 28vw, 420px);
  opacity: 0;
  transform: none;
  user-select: none;
  -webkit-user-drag: none;
}

.page-transition.is-leaving,
.page-transition.is-entering {
  visibility: visible;
}

.page-transition.is-leaving {
  animation: page-transition-fade-in 560ms var(--ease-smooth) forwards;
  pointer-events: all;
}

.page-transition.is-leaving .page-transition-logo {
  animation: page-transition-logo-fade-in 560ms var(--ease-smooth) forwards;
}

.page-transition.is-entering {
  opacity: 1;
  animation: page-transition-fade-out 620ms var(--ease-smooth) forwards;
  pointer-events: none;
}

.page-transition.is-entering .page-transition-logo {
  opacity: 1;
  transform: none;
  animation: page-transition-logo-fade-out 620ms var(--ease-smooth) forwards;
}

@keyframes page-transition-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes page-transition-fade-out {
  from {
    opacity: 1;
    visibility: visible;
  }
  to {
    opacity: 0;
    visibility: hidden;
  }
}

@keyframes page-transition-logo-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes page-transition-logo-fade-out {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 74vh;
  padding: 64px 0;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 42, 65, 0.96), rgba(27, 42, 65, 0.76) 46%, rgba(27, 42, 65, 0.42));
}

.hero-media {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 430px);
  gap: 42px;
  align-items: center;
}

.hero-grid-single {
  grid-template-columns: minmax(0, 1fr);
}

.hero-search-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 400px);
}

.hero-copy {
  width: min(760px, 100%);
}

.page-hero {
  position: relative;
  display: flex;
  min-height: 320px;
  align-items: end;
  padding: 76px 0;
  overflow: hidden;
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero-compact {
  min-height: 220px;
  padding: 48px 0;
}

.page-hero-media {
  min-height: 420px;
}

.page-hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(27, 42, 65, 0.94), rgba(27, 42, 65, 0.74) 50%, rgba(27, 42, 65, 0.36));
}

.page-hero-bg {
  position: absolute;
  inset: 0;
}

.page-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.button,
.icon-button {
  position: relative;
  z-index: var(--z-control);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  cursor: pointer;
  font-weight: 700;
  transition: transform var(--motion-fast) var(--ease-smooth), background-color var(--motion-fast) var(--ease-smooth), border-color var(--motion-fast) var(--ease-smooth), color var(--motion-fast) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth);
}

.button:hover,
.button:focus-visible,
.icon-button:hover,
.icon-button:focus-visible {
  z-index: var(--z-control-hover);
  transform: translateY(-1px);
}

.button-primary {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: #263c5d;
  background: #263c5d;
  box-shadow: var(--shadow-control-hover);
}

.button-light {
  border-color: rgba(27, 42, 65, 0.14);
  background: var(--color-white);
  color: var(--color-navy);
}

.button-light:hover,
.button-light:focus-visible {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-control-hover);
}

.button-small {
  min-height: 38px;
  padding-inline: 14px;
}

.icon-button {
  width: 44px;
  padding: 0;
  border-color: rgba(27, 42, 65, 0.12);
  background: var(--color-line);
  color: var(--color-navy);
  font-size: 22px;
}

.icon-button:hover,
.icon-button:focus-visible {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-control-hover);
}

.route-panel,
.route-card,
.passenger-card,
.feature-card,
.news-card {
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
  transition: background-color var(--motion-base) var(--ease-smooth), color var(--motion-base) var(--ease-smooth), border-color var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth), transform var(--motion-base) var(--ease-smooth);
}

.route-panel {
  padding: 22px;
}

.route-search-panel {
  padding: 28px;
}

.hero-search-panel {
  position: relative;
  width: 100%;
  padding: 24px;
  border-color: rgba(27, 42, 65, 0.12);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.hero-search-panel::before {
  display: none;
}

.hero-search-panel > * {
  position: relative;
  z-index: 1;
}

.hero-search-panel .field input,
.hero-search-panel .segmented-control {
  border-color: var(--color-line);
  background: var(--color-paper);
  box-shadow: none;
  color: var(--color-ink);
}

.hero-search-panel .field input:focus {
  background: var(--color-paper);
}

.hero-search-panel .field span,
.hero-search-panel .time-mode-title,
.hero-search-panel .segmented-control span {
  color: var(--color-muted);
}

.hero-search-panel .field input::placeholder {
  color: rgba(28, 28, 28, 0.5);
}

.hero-search-panel .field input::-webkit-calendar-picker-indicator {
  filter: none;
  opacity: 0;
}

.hero-search-panel .segmented-control input:checked + span {
  background: var(--color-navy);
  color: var(--color-white);
}

.hero-search-panel .field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-search-panel .route-from {
  order: 1;
}

.hero-search-panel .route-swap {
  order: 2;
}

.hero-search-panel .route-to {
  order: 3;
}

.hero-search-panel .route-time-mode {
  order: 4;
}

.hero-search-panel .route-date {
  order: 6;
}

.hero-search-panel .route-time {
  order: 5;
}

.hero-search-panel .route-submit {
  order: 7;
}

.hero-search-panel .route-from,
.hero-search-panel .route-to,
.hero-search-panel .route-time-mode,
.hero-search-panel .route-submit {
  grid-column: 1 / -1;
}

.hero-search-panel .route-swap {
  grid-column: 1 / -1;
  width: 100%;
  justify-self: stretch;
  min-height: 40px;
  margin-block: -2px 0;
}

.hero-search-panel .route-swap img {
  transform: rotate(90deg);
}

.hero-search-panel .route-date {
  grid-column: 1 / -1;
}

.hero-search-panel .route-time {
  grid-column: 1 / -1;
}

.search-page-section {
  padding-top: 46px;
}

.passenger-search-section {
  background: var(--color-paper);
}

.passenger-search-content {
  display: grid;
  gap: 22px;
}

.passenger-search-panel .route-time-mode {
  order: 4;
}

.passenger-search-panel .route-time {
  order: 5;
}

.passenger-search-panel .route-date {
  order: 6;
}

.passenger-search-section .page-back {
  color: var(--color-navy);
}

.passenger-search-section .page-back:hover,
.passenger-search-section .page-back:focus-visible {
  color: var(--color-ink);
}

.passenger-tools-section {
  padding: 70px 0;
}

.passenger-schedule-section {
  background: var(--color-section-soft);
}

.passenger-info-section {
  background: var(--color-paper);
}

.passenger-info-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding-block: 6px;
}

.passenger-info-panel h2 {
  margin-bottom: 6px;
  color: var(--color-navy);
}

.passenger-info-panel p {
  max-width: 640px;
  color: var(--color-muted);
  font-weight: 500;
}

.passenger-stack {
  display: grid;
  gap: 72px;
}

.passenger-card {
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.passenger-section-head {
  display: flex;
  flex-wrap: wrap;
  column-gap: 20px;
  row-gap: 0;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.passenger-section-head::after {
  flex: 0 0 100%;
  align-self: stretch;
}

.passenger-section-head h2 {
  margin: 0;
}

.schedule-controls {
  display: grid;
  position: relative;
  z-index: var(--z-panel);
  gap: 8px;
  margin-bottom: 8px;
  overflow: visible;
}

.schedule-controls-label {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.schedule-controls-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: flex-end;
  justify-content: space-between;
  overflow: visible;
}

.schedule-date-options {
  display: flex;
  min-width: 0;
  flex: 1 1 auto;
  flex-wrap: nowrap;
  gap: 8px;
  align-items: center;
  overflow: visible;
}

.page-back-row {
  display: flex;
  margin-bottom: 18px;
}

.page-back-row[hidden] {
  display: none;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 4px 4px 4px 0;
  color: var(--color-navy);
  font-weight: 800;
}

.page-back::before {
  content: "";
  width: 9px;
  height: 9px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.page-back:hover,
.page-back:focus-visible {
  color: var(--color-ink);
}

.page-back:focus-visible {
  outline: 2px solid rgba(27, 42, 65, 0.22);
  outline-offset: 4px;
  border-radius: var(--radius-small);
}

.panel-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  font-family: var(--font-head);
  font-weight: 800;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--color-line);
  color: var(--color-navy);
  font-size: 14px;
  font-weight: 700;
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
  align-items: end;
}

.route-from {
  grid-column: span 5;
}

.route-swap {
  grid-column: span 1;
  width: 100%;
  min-height: var(--form-control-height);
  justify-self: stretch;
}

.route-swap img {
  width: 24px;
  height: 24px;
  filter: invert(15%) sepia(21%) saturate(1080%) hue-rotate(174deg) brightness(89%) contrast(92%);
  pointer-events: none;
  transition: transform var(--motion-base) var(--ease-emphasized), filter var(--motion-base) var(--ease-smooth);
}

.route-swap:hover img,
.route-swap:focus-visible img {
  filter: invert(1);
}

.route-to {
  grid-column: span 6;
}

.route-date {
  grid-column: span 3;
}

.route-time-mode {
  grid-column: span 4;
}

.route-time {
  grid-column: span 2;
}

.route-submit {
  grid-column: span 3;
  width: 100%;
}

.field {
  position: relative;
  display: grid;
  grid-template-rows: var(--form-label-height) var(--form-control-height);
  gap: 6px;
  min-width: 0;
}

.station-field {
  grid-template-rows: var(--form-control-height);
  z-index: 5;
}

.station-field:focus-within {
  z-index: var(--z-panel);
}

.station-field.is-open {
  z-index: var(--z-dropdown);
}

.station-field.is-invalid input {
  border-color: rgba(190, 36, 36, 0.72);
  background: #fff1f1;
}

.field span {
  display: flex;
  min-height: var(--form-label-height);
  align-items: center;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.time-mode-field {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

.time-mode-title {
  display: flex;
  min-height: var(--form-label-height);
  align-items: center;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.segmented-control {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  height: var(--form-control-height);
  min-height: var(--form-control-height);
  padding: 4px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
  background: var(--color-paper);
}

.segmented-control::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 2);
  border-radius: 4px;
  background: var(--color-navy);
  transform: translateX(calc(var(--time-mode-index, 0) * 100%));
  transition: transform 320ms var(--ease-emphasized), background-color var(--motion-base) var(--ease-smooth);
}

.segmented-control label {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.segmented-control input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.segmented-control span {
  display: flex;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 6px 10px;
  border-radius: 4px;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 700;
  text-transform: none;
  transition: color var(--motion-fast) var(--ease-smooth);
}

.segmented-control input:checked + span {
  color: var(--color-white);
}

.segmented-control input:focus-visible + span {
  outline: 2px solid rgba(27, 42, 65, 0.24);
  outline-offset: 2px;
}

.field input {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: var(--form-control-height);
  min-height: var(--form-control-height);
  padding: 9px 12px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-small);
  background: var(--color-paper);
  color: var(--color-ink);
  line-height: 1.1;
  -webkit-appearance: none;
  appearance: none;
}

.field input:focus {
  outline: 2px solid rgba(27, 42, 65, 0.22);
  border-color: var(--color-navy);
}

.route-date input,
.route-time input {
  padding-right: 52px;
}

.field input::-webkit-date-and-time-value {
  min-height: 1.1em;
  text-align: left;
}

.field-control-icon {
  position: absolute;
  right: 12px;
  bottom: 11px;
  width: 24px;
  height: 24px;
  opacity: 0.72;
  pointer-events: none;
  transition: filter var(--motion-base) var(--ease-smooth), opacity var(--motion-base) var(--ease-smooth);
}

.route-date input::-webkit-calendar-picker-indicator,
.route-time input::-webkit-calendar-picker-indicator {
  width: 30px;
  height: 30px;
  margin-right: -4px;
  opacity: 0;
  cursor: pointer;
}

.station-options {
  position: absolute;
  z-index: var(--z-dropdown);
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  display: grid;
  max-height: 230px;
  padding: 6px;
  overflow-y: auto;
  border: 1px solid rgba(27, 42, 65, 0.14);
  border-radius: var(--radius-small);
  background: var(--color-white);
  box-shadow: var(--shadow-surface);
}

.station-options[hidden] {
  display: none;
}

.station-option {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  text-align: left;
}

.station-option:hover,
.station-option[aria-selected="true"] {
  background: var(--color-line);
  color: var(--color-navy);
}

.station-option-empty,
.station-option-empty:hover {
  cursor: default;
  background: transparent;
  color: var(--color-muted);
}

.results-list {
  display: grid;
  gap: 14px;
}

.route-search-panel .results-list {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--color-line);
}

.results-list[hidden] {
  display: none;
}

.route-results-actions {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.route-results-actions[hidden] {
  display: none;
}

.load-more-routes {
  border-color: rgba(27, 42, 65, 0.18);
}

.route-card {
  position: relative;
  z-index: 1;
  padding: 18px;
  max-width: 100%;
  overflow: hidden;
}

.route-card:not(.is-past):hover {
  z-index: 2;
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.route-card.is-past {
  border-color: rgba(28, 28, 28, 0.14);
  background: #f1f2f4;
  color: rgba(28, 28, 28, 0.52);
  box-shadow: none;
}

.route-summary {
  position: relative;
  min-width: 0;
  border-radius: var(--radius-small);
}

.route-summary.is-toggleable {
  padding-right: 48px;
  cursor: pointer;
}

.route-card-top {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.route-card-top {
  justify-content: space-between;
  margin-top: 10px;
}

.route-heading {
  display: grid;
  min-width: 0;
  flex: 1 1 auto;
  gap: 8px;
}

.route-leg-block {
  display: grid;
  min-width: 0;
}

.route-leg-summary {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
}

.line-pill {
  display: inline-grid;
  flex: 0 0 auto;
  min-width: 36px;
  min-height: 28px;
  place-items: center;
  padding: 2px 7px 0;
  border-radius: var(--radius-small);
  background: var(--color-navy);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.route-direction {
  min-width: 0;
  color: var(--color-navy);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.route-card.is-past .route-direction,
.route-card.is-past .route-times span,
.route-card.is-past .route-times .route-date-label,
.route-card.is-past .route-trip-date,
.route-card.is-past .route-stop-name,
.route-card.is-past .route-stop-time {
  color: rgba(28, 28, 28, 0.52);
}

.route-card.is-past .line-pill,
.route-card.is-past .route-rail,
.route-card.is-past .route-stop-dot,
.route-card.is-past .route-stop-track::before {
  background: rgba(28, 28, 28, 0.38);
  color: #ffffff;
}

.route-card.is-past .route-warning {
  border-color: rgba(28, 28, 28, 0.14);
  background: rgba(255, 255, 255, 0.56);
  color: rgba(28, 28, 28, 0.58);
}

.route-card.is-past .route-warning-icon {
  filter: grayscale(1) opacity(0.62);
}

.route-card.is-past .route-warning-line {
  background: rgba(28, 28, 28, 0.08);
  color: rgba(28, 28, 28, 0.58);
}

.route-card.is-past .route-toggle {
  border-color: rgba(28, 28, 28, 0.16);
  background: rgba(255, 255, 255, 0.58);
  color: rgba(28, 28, 28, 0.56);
}

.route-card.is-past .route-stop-timeline {
  background: transparent;
}

.route-card.is-past .route-stop-platform {
  background: rgba(28, 28, 28, 0.08);
  color: rgba(28, 28, 28, 0.58);
}

.route-card.is-past .route-transfer-gap {
  color: rgba(28, 28, 28, 0.48);
}

.route-card.is-past .route-transfer-icon {
  opacity: 0.34;
}

.route-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid rgba(190, 36, 36, 0.28);
  border-radius: var(--radius-small);
  background: #fff1f1;
  color: #8a1f1f;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.route-warning-list {
  display: grid;
  gap: 6px;
}

.route-warning-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.route-warning-line {
  display: inline-flex;
  min-width: 44px;
  min-height: 22px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding-inline: 7px;
  border-radius: 999px;
  background: rgba(190, 36, 36, 0.12);
  color: #8a1f1f;
  font-size: 13px;
  font-weight: 800;
}

.route-warning[hidden] {
  display: none;
}

.route-warning-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  filter: invert(26%) sepia(88%) saturate(1826%) hue-rotate(340deg) brightness(91%) contrast(92%);
  object-fit: contain;
}

.route-notices {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.route-notices[hidden] {
  display: none;
}

.public-data-warning {
  margin: 0 0 12px;
  padding: 9px 12px;
  border-left: 3px solid #d89400;
  background: #fff2cc;
  color: #352700;
  font-size: 0.9rem;
}

.public-data-warning[hidden] {
  display: none;
}

.route-notice {
  display: grid;
  gap: 5px;
  padding: 10px 12px;
  border: 1px solid rgba(35, 78, 128, 0.22);
  border-radius: var(--radius-small);
  background: #eef6ff;
  color: #173c68;
  font-size: 15px;
  line-height: 1.3;
}

.route-notice--alert {
  border-color: rgba(190, 36, 36, 0.3);
  background: #fff1f1;
  color: #8a1f1f;
}

.route-notice-heading {
  display: flex;
  gap: 8px;
  align-items: center;
}

.route-notice-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background-color: currentColor;
  -webkit-mask: url("../icons/information.svg") center / contain no-repeat;
  mask: url("../icons/information.svg") center / contain no-repeat;
}

.route-notice-icon--alert {
  -webkit-mask-image: url("../icons/warning.svg");
  mask-image: url("../icons/warning.svg");
}

.route-notice p {
  margin: 0;
}

.route-times {
  display: grid;
  grid-template-columns: auto max-content auto;
  column-gap: clamp(8px, 2vw, 14px);
  align-items: center;
  width: max-content;
  max-width: 100%;
  min-width: 0;
}

.route-times-no-toggle {
  grid-template-columns: auto max-content auto;
}

.route-time-point {
  min-width: 0;
  letter-spacing: normal;
}

.route-times .route-date-label {
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.route-time-point > .route-date-label {
  margin-bottom: 4px;
}

.route-times .route-date-label[hidden] {
  display: none;
}

.route-time-arrive {
  text-align: left;
}

.route-trip-date {
  display: block;
  width: max-content;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.route-trip-date[hidden] {
  display: none;
}

.route-times strong {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(22px, 6vw, 34px);
  line-height: 1;
  white-space: nowrap;
}

.route-times span {
  display: block;
  color: var(--color-muted);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-line {
  position: relative;
  display: block;
  width: clamp(58px, 8vw, 84px);
  height: 44px;
  text-align: center;
}

.route-duration {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
}

.route-kind {
  position: absolute;
  right: 50%;
  bottom: 4px;
  transform: translateX(50%);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.route-rail {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--color-navy);
  transform: translateY(-50%);
}

.route-toggle {
  display: inline-grid;
  position: absolute;
  z-index: var(--z-control);
  top: 4px;
  right: 0;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 42, 65, 0.18);
  border-radius: var(--radius-small);
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  transition: background-color var(--motion-fast) var(--ease-smooth), border-color var(--motion-fast) var(--ease-smooth), transform var(--motion-base) var(--ease-emphasized);
}

.route-toggle:hover,
.route-toggle:focus-visible {
  z-index: var(--z-control-hover);
  border-color: rgba(27, 42, 65, 0.34);
  background: var(--color-paper);
}

.route-toggle::before {
  content: "";
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--motion-base) var(--ease-emphasized);
}

.route-toggle.is-open::before {
  transform: translateY(2px) rotate(225deg);
}

.route-toggle[hidden] {
  display: none;
}

.route-leg-details {
  display: grid;
  gap: 12px;
}

.route-leg-detail {
  display: grid;
  margin-top: 10px;
  transform-origin: top;
}

.route-transfer-gap {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  gap: 7px;
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.route-transfer-gap span {
  flex: 0 0 auto;
}

.route-transfer-icon {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  opacity: 0.52;
  object-fit: contain;
}

.route-leg-detail[hidden],
.route-transfer-gap[hidden] {
  display: none;
}

.route-stop-timeline {
  display: grid;
  padding: 2px 0 0;
  background: var(--color-white);
}

.route-stop-row {
  display: grid;
  grid-template-columns: 44px 18px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  font-size: 16px;
}

.route-stop-time {
  color: var(--color-ink);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
}

.route-stop-track {
  position: relative;
  display: grid;
  align-self: stretch;
  place-items: center;
}

.route-stop-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 0px;
  background: rgba(27, 42, 65, 0.36);
}

.route-stop-row:first-child .route-stop-track::before {
  top: 50%;
}

.route-stop-row:last-child .route-stop-track::before {
  bottom: 50%;
}

.route-stop-dot {
  position: relative;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-navy);
}

.route-stop-name {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: var(--color-muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-stop-name > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-stop-platform {
  display: inline-flex;
  min-height: 22px;
  flex: 0 0 auto;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(27, 42, 65, 0.1);
  color: var(--color-navy);
  font-size: 13px;
  font-weight: 800;
}

.route-stop-row.endpoint .route-stop-time,
.route-stop-row.endpoint .route-stop-name {
  color: var(--color-ink);
  font-weight: 800;
}

.route-stop-row.endpoint .route-stop-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-navy);
  background: var(--color-white);
}

.route-stop-row.endpoint .route-stop-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: var(--color-navy);
}

.route-card.is-past .route-stop-row.endpoint .route-stop-dot {
  border-color: rgba(28, 28, 28, 0.38);
  background: #f1f2f4;
}

.route-card.is-past .route-stop-row.endpoint .route-stop-dot::after {
  background: rgba(28, 28, 28, 0.38);
}

.route-card.is-past .route-stop-row.endpoint .route-stop-time,
.route-card.is-past .route-stop-row.endpoint .route-stop-name {
  color: rgba(28, 28, 28, 0.52);
}

.table-shell {
  overflow-x: auto;
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-surface);
}

.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.table th,
.table td {
  padding: 16px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
}

.table th {
  background: var(--color-navy);
  color: var(--color-paper);
  font-family: var(--font-head);
}

.table tr:last-child td {
  border-bottom: 0;
}

.passenger-table-shell {
  position: relative;
  z-index: 1;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  cursor: grab;
  user-select: none;
  scrollbar-width: none;
  box-shadow: var(--shadow-surface);
}

.passenger-table-shell.is-dragging {
  cursor: grabbing;
}

.passenger-table-shell::-webkit-scrollbar {
  display: none;
}

.schedule-days {
  display: flex;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
  flex: 1 1 auto;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 14px;
  margin: -8px -4px -6px;
  scroll-padding-inline: 4px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
}

.schedule-days::-webkit-scrollbar {
  height: 8px;
}

.schedule-days::-webkit-scrollbar-track {
  border-radius: 999px;
  background: rgba(27, 42, 65, 0.08);
}

.schedule-days::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(27, 42, 65, 0.34);
}

.schedule-day {
  display: grid;
  position: relative;
  z-index: var(--z-control);
  width: max-content;
  min-width: 66px;
  height: 56px;
  flex: 0 0 auto;
  grid-template-rows: 16px 22px;
  gap: 4px;
  align-content: center;
  justify-items: start;
  padding: 7px 12px;
  border: 1px solid rgba(27, 42, 65, 0.14);
  border-radius: var(--radius-small);
  background: var(--color-paper);
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: var(--shadow-control);
  text-align: left;
  scroll-snap-align: start;
  transition: background-color var(--motion-fast) var(--ease-smooth), color var(--motion-fast) var(--ease-smooth), border-color var(--motion-fast) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth), transform var(--motion-fast) var(--ease-smooth);
}

.schedule-day:hover,
.schedule-day:focus-visible {
  z-index: var(--z-control-hover);
  border-color: var(--color-navy);
  background: rgba(27, 42, 65, 0.06);
  box-shadow: var(--shadow-control-hover);
  transform: translateY(-1px);
}

.schedule-day span {
  display: flex;
  align-items: center;
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
}

.schedule-day strong {
  display: flex;
  align-items: center;
  font-size: 18px;
  line-height: 1;
}

.schedule-day.is-active {
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-control-hover);
}

.schedule-day.is-active:hover,
.schedule-day.is-active:focus-visible {
  background: #263c5d;
}

.schedule-day.is-active span {
  color: rgba(255, 255, 255, 0.72);
}

.schedule-days-empty {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius-small);
  background: var(--color-paper);
  color: var(--color-muted);
  font-weight: 800;
}

.schedule-scroll-actions {
  display: flex;
  position: relative;
  z-index: var(--z-panel);
  gap: 10px;
  flex: 0 0 auto;
  justify-content: flex-start;
  margin-top: 12px;
}

.schedule-scroll-button {
  display: inline-grid;
  position: relative;
  z-index: var(--z-control);
  width: 54px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(27, 42, 65, 0.16);
  border-radius: var(--radius-small);
  background: var(--color-white);
  color: var(--color-navy);
  cursor: pointer;
  box-shadow: var(--shadow-control);
  transition: transform var(--motion-fast) var(--ease-smooth), background-color var(--motion-fast) var(--ease-smooth), border-color var(--motion-fast) var(--ease-smooth), color var(--motion-fast) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth), opacity var(--motion-fast) var(--ease-smooth);
}

.schedule-scroll-button::before {
  content: "";
  width: 12px;
  height: 12px;
  border-top: 3px solid currentColor;
  border-left: 3px solid currentColor;
}

.schedule-scroll-prev::before {
  transform: translateX(3px) rotate(-45deg);
}

.schedule-scroll-next::before {
  transform: translateX(-3px) rotate(135deg);
}

.schedule-scroll-button:hover,
.schedule-scroll-button:focus-visible {
  z-index: var(--z-control-hover);
  border-color: var(--color-navy);
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-control-hover);
  transform: translateY(-1px);
}

.schedule-scroll-button:disabled {
  cursor: default;
  opacity: 0.38;
  box-shadow: none;
  transform: none;
}

.schedule-scroll-button:disabled:hover {
  border-color: rgba(27, 42, 65, 0.16);
  background: var(--color-white);
  color: var(--color-navy);
}

.schedule-matrix {
  display: block;
  width: max-content;
  min-width: 100%;
}

.schedule-direction {
  display: grid;
  overflow: hidden;
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius-small);
  background: var(--color-white);
}

.schedule-direction-title {
  margin: 0;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(27, 42, 65, 0.12);
  background: var(--color-paper);
  color: var(--color-navy);
  font-family: var(--font-head);
  font-size: 18px;
}

.schedule-direction-table {
  --schedule-station-width: 190px;
  --schedule-train-width: 78px;
  width: var(--schedule-table-width, max-content);
  min-width: 100%;
  overflow: visible;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}

.schedule-station-col {
  width: var(--schedule-station-width);
}

.schedule-train-col {
  width: var(--schedule-train-width);
}

.schedule-direction-table th,
.schedule-direction-table td {
  width: var(--schedule-train-width);
  min-width: 0;
  padding: 8px 10px;
  border-right: 1px solid rgba(27, 42, 65, 0.12);
  border-bottom: 1px solid rgba(27, 42, 65, 0.12);
  color: var(--color-ink);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
}

.schedule-direction-table tr:last-child th,
.schedule-direction-table tr:last-child td {
  border-bottom: 0;
}

.schedule-direction-table tfoot th {
  border-bottom: 0;
}

.schedule-direction-table th:last-child,
.schedule-direction-table td:last-child {
  border-right: 0;
}

.schedule-station-cell {
  position: sticky;
  left: 0;
  z-index: 2;
  width: var(--schedule-station-width);
  min-width: var(--schedule-station-width);
  max-width: var(--schedule-station-width);
  overflow: hidden;
  padding-inline: 12px 10px;
  background: var(--color-white);
  color: var(--color-navy);
  font-family: var(--font-head);
  font-weight: 800;
  text-align: left;
  text-overflow: ellipsis;
}

thead .schedule-station-cell {
  z-index: 3;
  background: var(--color-paper);
  color: var(--color-muted);
  text-transform: uppercase;
}

.schedule-train-head {
  background: var(--color-paper);
  color: var(--color-navy);
  font-family: var(--font-head);
  font-weight: 800;
}

.schedule-number-row .schedule-station-cell,
.schedule-number-row .schedule-train-head {
  background: var(--color-line);
  color: var(--color-ink);
}

.schedule-number-row .schedule-train-head {
  position: relative;
  height: 38px;
  overflow: hidden;
}

.schedule-train-number {
  position: relative;
  z-index: 1;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--color-line);
}

.schedule-time-cell {
  position: relative;
  padding-right: 10px;
  padding-left: 20px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.schedule-train-head.is-down::before,
.schedule-time-cell.is-down::before,
.schedule-train-marker.is-down::before,
.schedule-train-head.is-up::before,
.schedule-time-cell.is-up::before,
.schedule-train-marker.is-up::before {
  content: "";
  position: absolute;
  z-index: 0;
  left: 8px;
  width: 2px;
  border-radius: 999px;
  background: var(--color-navy);
}

.schedule-train-head.is-down::before {
  top: 50%;
  bottom: -1px;
}

.schedule-time-cell.is-down::before {
  top: -1px;
  bottom: -1px;
}

.schedule-train-marker.is-down::before {
  top: -1px;
  bottom: 12px;
}

.schedule-train-marker.is-down::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 4px;
  bottom: 6px;
  border-top: 10px solid var(--color-navy);
  border-right: 5px solid transparent;
  border-left: 5px solid transparent;
}

.schedule-train-head.is-up::before {
  top: -1px;
  bottom: 50%;
}

.schedule-time-cell.is-up::before {
  top: -1px;
  bottom: -1px;
}

.schedule-train-marker.is-up::before {
  top: 12px;
  bottom: -1px;
}

.schedule-train-marker.is-up::after {
  content: "";
  position: absolute;
  z-index: 0;
  top: 6px;
  left: 4px;
  border-right: 5px solid transparent;
  border-bottom: 10px solid var(--color-navy);
  border-left: 5px solid transparent;
}

.schedule-time-cell time {
  position: relative;
  z-index: 1;
}

.schedule-empty-cell {
  color: transparent;
}

.schedule-empty {
  margin-top: 14px;
}

.station-board {
  display: grid;
  grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.station-map {
  display: grid;
  margin: 0;
  padding: 4px 0 0;
  overflow: visible;
  list-style: none;
}

.station-map-item {
  min-width: 0;
  min-height: 44px;
}

.station-map-button {
  display: grid;
  width: 100%;
  min-height: 44px;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 10px 0 0;
  border: 0;
  border-radius: var(--radius-small);
  background: transparent;
  color: var(--color-ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background-color var(--motion-base) var(--ease-smooth), color var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth);
}

.station-map-button:hover,
.station-map-button:focus-visible {
  background: rgba(27, 42, 65, 0.06);
  box-shadow: var(--shadow-control);
  outline: 0;
}

.station-map-button.is-active {
  background: var(--color-navy);
  color: var(--color-white);
  box-shadow: var(--shadow-surface);
}

.station-map-track {
  position: relative;
  display: grid;
  align-self: stretch;
  place-items: center;
}

.station-map-track::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 999px;
  background: rgba(27, 42, 65, 0.3);
}

.station-map-button.is-active .station-map-track::before {
  background: rgba(185, 191, 199, 0.9);
}

.station-map-item:first-child .station-map-track::before {
  top: 50%;
}

.station-map-item:last-child .station-map-track::before {
  bottom: 50%;
}

.station-map-dot {
  position: relative;
  z-index: 1;
  width: 14px;
  height: 14px;
  border: 2px solid var(--color-navy);
  border-radius: 50%;
  background: var(--color-white);
  transition: border-color var(--motion-base) var(--ease-smooth), background-color var(--motion-base) var(--ease-smooth);
}

.station-map-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--color-navy);
  transition: background-color var(--motion-base) var(--ease-smooth);
}

.station-map-button.is-active .station-map-dot {
  border-color: var(--color-white);
  background: var(--color-white);
}

.station-map-button.is-active .station-map-dot::after {
  background: var(--color-navy);
}

.station-map-name {
  min-width: 0;
  overflow: hidden;
  color: inherit;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-map-button.is-active .station-map-name {
  font-weight: 800;
}

.station-map-main {
  display: flex;
  min-width: 0;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  transition: transform var(--motion-base) var(--ease-smooth);
}

.station-map-button:hover .station-map-main,
.station-map-button:focus-visible .station-map-main {
  transform: translateX(2px);
}

.station-map-icons {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 6px;
  align-items: center;
}

.station-map-title {
  display: inline-flex;
  min-width: 0;
  gap: 7px;
  align-items: center;
}

.station-map-service-icons {
  color: rgba(27, 42, 65, 0.58);
}

.station-map-notice-icons {
  margin-left: auto;
}

.station-map-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: currentColor;
  color: rgba(27, 42, 65, 0.72);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.station-map-button.is-active .station-map-icon.is-ticket,
.station-map-button.is-active .station-map-icon.is-toilet,
.station-map-button.is-active .station-map-icon.is-building {
  color: rgba(255, 255, 255, 0.86);
}

.station-map-icon.is-ticket {
  mask-image: url("../icons/ticket.svg");
  -webkit-mask-image: url("../icons/ticket.svg");
}

.station-map-icon.is-toilet {
  mask-image: url("../icons/toilet.svg");
  -webkit-mask-image: url("../icons/toilet.svg");
}

.station-map-icon.is-building {
  mask-image: url("../icons/headquarters.svg");
  -webkit-mask-image: url("../icons/headquarters.svg");
}

.station-map-icon.is-notice-remark,
.station-map-icon.is-notice-warning {
  mask-image: url("../icons/warning.svg");
  -webkit-mask-image: url("../icons/warning.svg");
}

.station-map-icon.is-notice-info {
  mask-image: url("../icons/information.svg");
  -webkit-mask-image: url("../icons/information.svg");
}

.station-map-icon.is-notice-remark {
  color: #be2424;
}

.station-map-icon.is-notice-warning {
  color: #b58100;
}

.station-map-icon.is-notice-info {
  color: #1f5f9f;
}

.station-detail {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-surface);
}

.station-detail-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--color-soft);
}

.station-detail-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.station-detail-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.station-detail h3,
.station-detail h4,
.station-detail p {
  margin: 0;
}

.station-detail h3 {
  color: var(--color-navy);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.station-detail p {
  max-width: 720px;
  color: var(--color-muted);
}

.station-notices {
  display: grid;
  gap: 8px;
}

.station-notice {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-small);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.station-notice-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  background: currentColor;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
}

.station-notice.is-remark {
  border-color: rgba(190, 36, 36, 0.28);
  background: #fff1f1;
  color: #8a1f1f;
}

.station-notice.is-warning {
  border-color: rgba(181, 129, 0, 0.28);
  background: #fff7dc;
  color: #755000;
}

.station-notice.is-info {
  border-color: rgba(31, 95, 159, 0.24);
  background: #edf6ff;
  color: #1c4f83;
}

.station-notice.is-remark .station-notice-icon,
.station-notice.is-warning .station-notice-icon {
  mask-image: url("../icons/warning.svg");
  -webkit-mask-image: url("../icons/warning.svg");
}

.station-notice.is-info .station-notice-icon {
  mask-image: url("../icons/information.svg");
  -webkit-mask-image: url("../icons/information.svg");
}

.station-departures {
  display: grid;
  gap: 10px;
  padding-top: 4px;
}

.station-departures h4 {
  color: var(--color-navy);
  font-size: 18px;
  line-height: 1.15;
}

.station-departures-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.station-departures-list li {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr) max-content;
  column-gap: 9px;
  row-gap: 4px;
  align-items: center;
  min-height: 38px;
  padding: 6px 0;
  border-top: 1px solid rgba(27, 42, 65, 0.08);
}

.station-departures-list time {
  color: var(--color-ink);
  font-family: var(--font-head);
  font-weight: 800;
  line-height: 1;
}

.station-departure-direction {
  min-width: 0;
  overflow: hidden;
  color: var(--color-ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.station-departure-date,
.station-departures-empty {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 700;
}


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

.news-section .button-light {
  border-color: rgba(27, 42, 65, 0.16);
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.news-card {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-rows: auto 1fr;
  align-content: start;
  height: 100%;
  overflow: hidden;
}

.news-card:hover,
.news-card:focus-visible {
  z-index: 2;
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.news-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-line);
  object-fit: cover;
}

.news-card-image.is-placeholder,
.news-article-image.is-placeholder {
  background: var(--color-line);
}

.news-card-body {
  display: grid;
  align-content: start;
  grid-template-rows: auto auto 1fr;
  gap: 10px;
  padding: 20px;
}

.news-card-body .news-meta {
  align-self: end;
  margin-top: 8px;
}

.news-card h3 {
  font-size: 24px;
}

.news-card p:not(.news-meta) {
  color: var(--color-muted);
}

.news-meta {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
}

.news-empty {
  grid-column: 1 / -1;
}

.news-article {
  display: grid;
  max-width: 880px;
  gap: 18px;
}

.news-title {
  max-width: 880px;
  color: var(--color-ink);
  font-size: clamp(28px, 3.2vw, 46px);
}

.news-page-title {
  margin-bottom: 24px;
}

.news-article-image {
  width: 100%;
  max-height: 520px;
  border-radius: var(--radius);
  object-fit: cover;
}

.news-article-image.is-placeholder {
  aspect-ratio: 16 / 9;
  max-height: 420px;
}

.news-body {
  display: grid;
  gap: 16px;
  color: var(--color-ink);
  font-size: 20px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

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

.feature-grid-four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  position: relative;
  z-index: 1;
  height: 100%;
  overflow: hidden;
}

.feature-link {
  position: relative;
  z-index: 1;
}

.feature-link:hover,
.feature-link:focus-visible {
  z-index: 2;
  transform: translateY(-2px);
}

.feature-card img {
  width: 100%;
  height: 260px;
  object-fit: cover;
}

.feature-card div {
  padding: 22px;
}

.feature-card p:last-child {
  margin-top: 12px;
  color: var(--color-muted);
}

.service-card h3 {
  min-height: 58px;
}

.project-workspace {
  display: grid;
  gap: 28px;
  align-items: start;
}

.project-sheet-panels {
  display: grid;
  min-width: 0;
  gap: 32px;
}

.project-category {
  display: grid;
  gap: 12px;
}

.project-category > h3 {
  color: var(--color-navy);
  font-size: clamp(22px, 2vw, 30px);
}

.project-category-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
}

.project-row {
  display: grid;
  position: relative;
  z-index: 1;
  grid-template-rows: auto 1fr;
  min-width: 0;
  align-content: start;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
  transition: background-color var(--motion-base) var(--ease-smooth), color var(--motion-base) var(--ease-smooth), border-color var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth), transform var(--motion-base) var(--ease-smooth);
}

.project-row:hover {
  z-index: 2;
  transform: translateY(-2px);
  box-shadow: var(--shadow-raised);
}

.project-row img {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--color-line);
  object-fit: cover;
}

.project-row-image.is-placeholder {
  object-fit: cover;
}

.project-card-body {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 20px;
}

.project-row h3 {
  font-size: 24px;
}

.project-row p {
  color: var(--color-muted);
  font-weight: 500;
}

.project-empty {
  grid-column: 1 / -1;
}

.support-layout {
  display: grid;
  gap: 18px;
}

.support-card {
  display: grid;
  gap: 12px;
  padding: 28px;
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.support-card h3 {
  max-width: 760px;
  color: var(--color-navy);
  font-size: clamp(24px, 2.6vw, 38px);
  line-height: 1.12;
}

.support-card p {
  max-width: 680px;
  color: var(--color-muted);
}

.support-help-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.support-help-card,
.support-contact-panel {
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.support-help-card {
  display: grid;
  gap: 10px;
  height: 100%;
  padding: 24px;
}

.support-help-card h3,
.support-contact-panel h3 {
  color: var(--color-navy);
  font-size: clamp(22px, 1.9vw, 28px);
  line-height: 1.14;
}

.support-help-card p,
.support-contact-panel p {
  color: var(--color-muted);
  font-weight: 500;
}

.support-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: start;
  padding: 24px;
}

.support-contact-list {
  display: grid;
  gap: 10px;
}

.support-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  color: var(--color-navy);
  text-decoration: none;
}

.support-contact-line strong {
  font-weight: 700;
}

.support-contact-line:hover,
.support-contact-line:focus-visible {
  text-decoration: none;
}

.not-found {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

.not-found-code {
  color: var(--color-navy);
  font-family: var(--font-head);
  font-size: clamp(54px, 9vw, 118px);
  font-weight: 900;
  line-height: 0.9;
}

.not-found h2 {
  color: var(--color-navy);
}

.not-found p:not(.not-found-code) {
  max-width: 620px;
  color: var(--color-muted);
  font-weight: 500;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.ticket-rules {
  display: grid;
  gap: clamp(22px, 3vw, 34px);
}

.ticket-guide-block > h3,
.ticket-faq h3 {
  color: var(--color-navy);
  line-height: 1.12;
}

.ticket-guide-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}

.ticket-guide-block {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ticket-guide-block > h3,
.ticket-faq h3 {
  font-size: clamp(22px, 1.8vw, 26px);
}

.ticket-point-list {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticket-point-list li {
  padding: 13px 0;
  border-top: 1px solid rgba(27, 42, 65, 0.12);
  color: var(--color-muted);
  font-weight: 500;
}

.ticket-point-list li:first-child {
  border-top: 0;
}

.ticket-point-list strong {
  color: var(--color-ink);
  font-weight: 800;
}

.ticket-faq {
  display: grid;
  gap: 20px;
  margin-top: 8px;
  padding: clamp(22px, 2.5vw, 34px);
  border: 1px solid rgba(27, 42, 65, 0.1);
  border-radius: var(--radius);
  background: rgba(233, 234, 236, 0.42);
}

.ticket-faq .faq-list {
  width: 100%;
  max-width: none;
  gap: 10px;
}

.ticket-faq .faq-item {
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius-small);
  background: var(--color-white);
  box-shadow: var(--shadow-control);
  overflow: hidden;
  transition: border-color var(--motion-base) var(--ease-smooth), box-shadow var(--motion-base) var(--ease-smooth);
}

.ticket-faq .faq-item[open] {
  border-color: rgba(27, 42, 65, 0.22);
  box-shadow: var(--shadow-surface);
}

.ticket-faq .faq-item.is-animating {
  overflow: hidden;
}

.ticket-faq .faq-item summary {
  position: relative;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  padding: 17px 22px;
  transition: background-color var(--motion-base) var(--ease-smooth), border-color var(--motion-base) var(--ease-smooth);
}

.ticket-faq .faq-item summary:hover,
.ticket-faq .faq-item summary:focus-visible {
  background: rgba(27, 42, 65, 0.04);
}

.ticket-faq .faq-item[open] summary {
  border-bottom: 1px solid rgba(27, 42, 65, 0.1);
}

.ticket-faq .faq-item summary::after {
  width: 10px;
  height: 10px;
  margin-right: 2px;
  color: var(--color-navy);
}

.ticket-faq .faq-item p {
  padding: 18px 22px 22px;
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-control);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px 18px;
  color: var(--color-navy);
  font-family: var(--font-head);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform var(--motion-base) var(--ease-emphasized);
}

.faq-item[open] summary::after {
  transform: translateY(2px) rotate(225deg);
}

.faq-item p {
  padding: 0 18px 18px;
  color: var(--color-muted);
  font-weight: 500;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.35fr);
  gap: 26px;
  align-items: start;
}

.content-main,
.stat-card,
.person-card,
.job-card,
.contact-strip,
.timeline-item {
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.content-main {
  padding: 28px;
}

.text-list {
  display: grid;
  gap: 14px;
  color: var(--color-muted);
  font-weight: 500;
}

.page-action {
  margin-top: 24px;
}

.content-aside {
  display: grid;
  gap: 12px;
}

.stat-card,
.job-card {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.stat-card strong {
  color: var(--color-navy);
  font-family: var(--font-head);
  font-size: 24px;
  line-height: 1.12;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.stat-card strong {
  font-size: clamp(34px, 5vw, 58px);
}

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

.people-grid {
  grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1fr);
}

.contact-info-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.38fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.contact-info-panel,
.contact-person-card {
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  color: var(--color-ink);
  box-shadow: var(--shadow-soft);
}

.contact-info-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 24px;
}

.contact-info-panel h3 {
  max-width: 340px;
  color: var(--color-navy);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
}

.contact-info-line {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.25;
  text-decoration: none;
}

.contact-info-line strong {
  font-weight: 700;
}

.contact-info-line:hover,
.contact-info-line:focus-visible {
  text-decoration: none;
}

.contact-people-panel {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1fr);
  gap: 18px;
}

.person-card {
  overflow: hidden;
}

.person-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.person-card div {
  display: grid;
  gap: 10px;
  padding: 22px;
}

.person-card p,
.job-card p {
  color: var(--color-muted);
}

.person-card-empty {
  display: flex;
  align-items: center;
}

.person-card-empty .button {
  width: max-content;
  margin-top: 8px;
}

.job-card p {
  font-weight: 500;
}

.job-page-layout {
  display: grid;
  gap: 20px;
}

.job-intro-card,
.job-benefits-panel,
.job-contact-panel {
  border: 1px solid rgba(27, 42, 65, 0.12);
  border-radius: var(--radius);
  background: var(--color-white);
  box-shadow: var(--shadow-soft);
}

.job-intro-card {
  display: grid;
  gap: 12px;
  padding: 28px;
}

.job-intro-card h3,
.job-benefits-panel h3,
.job-contact-panel h3 {
  color: var(--color-navy);
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.12;
}

.job-intro-card p,
.job-benefits-panel p,
.job-contact-panel p {
  color: var(--color-muted);
  font-weight: 500;
}

.job-intro-card p {
  max-width: 820px;
}

.job-vacancy-grid {
  align-items: stretch;
}

.job-vacancy-card {
  align-content: start;
  gap: 0;
  height: 100%;
  overflow: hidden;
  padding: 0;
}

.job-card-media {
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--color-line);
  object-fit: cover;
}

.job-card-body {
  display: grid;
  gap: 16px;
  align-content: start;
  padding: 24px;
}

.job-card-body > h3 {
  color: var(--color-navy);
  font-size: clamp(22px, 1.8vw, 28px);
  line-height: 1.14;
}

.job-card-section {
  display: grid;
  gap: 9px;
  padding-top: 14px;
  border-top: 1px solid rgba(27, 42, 65, 0.12);
}

.job-card-section h4,
.job-benefits-grid h4 {
  margin: 0;
  color: var(--color-ink);
  font-family: var(--font-head);
  font-size: 17px;
  line-height: 1.2;
}

.job-card-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--color-muted);
  font-weight: 500;
}

.job-contact-panel {
  padding: 24px;
}

.job-benefits-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.42fr);
  overflow: hidden;
}

.job-benefits-image {
  order: 2;
  width: 100%;
  height: 100%;
  min-height: 260px;
  background: var(--color-line);
  object-fit: cover;
}

.job-benefits-content {
  display: grid;
  order: 1;
  grid-template-rows: auto 1fr;
  gap: 16px;
  align-content: stretch;
  padding: 24px;
}

.job-benefits-grid {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.job-benefits-grid article {
  display: grid;
  gap: 8px;
  align-content: start;
  height: 100%;
  padding-top: 14px;
  border-top: 2px solid rgba(27, 42, 65, 0.14);
}

.job-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.55fr);
  gap: 24px;
  align-items: start;
}

.contact-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-top: 24px;
  padding: 22px;
}

.contact-strip p {
  margin-top: 6px;
  color: var(--color-muted);
}

.contact-strip a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.contact-strip a::before {
  content: "";
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
  background: currentColor;
  mask: url("../icons/mail.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/mail.svg") center / contain no-repeat;
}

.contact-strip a:hover,
.contact-strip a:focus-visible {
  text-decoration: none;
}

.timeline {
  display: grid;
  gap: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
}

.timeline-item img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.timeline-item div {
  display: grid;
  gap: 12px;
  align-content: center;
  padding: 24px;
}

.timeline-item p {
  color: var(--color-muted);
  font-weight: 500;
}

.footer {
  position: relative;
  z-index: var(--z-panel);
  padding: 34px 0;
  background: var(--color-navy-2);
  color: var(--color-paper);
}

.footer-grid {
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1fr);
  align-items: start;
}

.footer-brand {
  display: grid;
  gap: 16px;
}

.footer-brand img {
  width: 242px;
  max-width: 100%;
  user-select: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
}

.footer-brand p {
  color: rgba(249, 249, 249, 0.76);
  font-size: 15px;
}

.footer-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.footer-block {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  text-align: left;
}

.footer-block > span {
  color: rgba(249, 249, 249, 0.58);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.footer-block strong,
.footer-block a,
.footer-contact-line {
  color: var(--color-paper);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.footer-contact-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  text-decoration: none;
}

.footer-mail:hover,
.footer-mail:focus-visible {
  text-decoration: none;
}

.footer-contact-line span,
.footer-contact-line strong {
  color: inherit;
  font-size: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-transform: none;
}

.contact-icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  background: currentColor;
  opacity: 0.9;
}

.contact-icon-mail {
  mask: url("../icons/mail.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/mail.svg") center / contain no-repeat;
}

.contact-icon-headquarters {
  mask: url("../icons/headquarters.svg") center / contain no-repeat;
  -webkit-mask: url("../icons/headquarters.svg") center / contain no-repeat;
}

.contact-info-line .contact-icon {
  width: 17px;
  height: 17px;
}

.footer-contact-line .contact-icon {
  width: 16px;
  height: 16px;
}

.empty-state {
  padding: 24px;
  border: 1px dashed rgba(27, 42, 65, 0.24);
  border-radius: var(--radius);
  color: var(--color-muted);
  background: var(--color-white);
}

@media (prefers-reduced-motion: no-preference) {
  .hero-copy {
    animation: rise-in 720ms var(--ease-emphasized) both;
  }

  .hero-search-panel {
    animation: rise-in 820ms var(--ease-emphasized) 120ms both;
  }

  .news-card,
  .content-main,
  .passenger-card,
  .ticket-guide-block,
  .ticket-faq,
  .stat-card,
  .person-card,
  .job-card,
  .project-row,
  .timeline-item {
    animation: rise-in 620ms var(--ease-emphasized) both;
  }

  .news-card:nth-child(2) {
    animation-delay: 80ms;
  }

  .news-card:nth-child(3) {
    animation-delay: 160ms;
  }

  .route-card {
    animation: rise-in 480ms var(--ease-emphasized) both;
  }

  .route-card .route-rail {
    animation: rail-grow 620ms var(--ease-emphasized) both;
    transform-origin: left center;
  }

  .station-detail-media,
  .station-detail-body {
    animation: rise-in 420ms var(--ease-emphasized) both;
  }

  .station-options {
    animation: soft-pop 280ms var(--ease-emphasized) both;
    transform-origin: top center;
  }

  .route-card.is-expanded [data-route-detail]:not([hidden]) {
    animation: reveal-down 420ms var(--ease-emphasized) both;
  }

  .route-card.is-expanded .route-transfer-gap:not([hidden]),
  .route-card.is-expanded .route-leg-block:nth-of-type(n + 2) [data-route-detail]:not([hidden]) {
    animation-delay: 70ms;
  }

  .site-header.is-menu-open .nav > a,
  .site-header.is-menu-open .nav > .nav-item {
    animation: nav-item-in 380ms var(--ease-emphasized) both;
  }

  .site-header.is-menu-open .nav > :nth-child(2) {
    animation-delay: 30ms;
  }

  .site-header.is-menu-open .nav > :nth-child(3) {
    animation-delay: 60ms;
  }

  .site-header.is-menu-open .nav > :nth-child(4) {
    animation-delay: 90ms;
  }

  .site-header.is-menu-open .nav > :nth-child(5) {
    animation-delay: 120ms;
  }

  .site-header.is-menu-open .nav > :nth-child(6) {
    animation-delay: 150ms;
  }

  .site-header.is-menu-open .nav > :nth-child(7) {
    animation-delay: 180ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }
}

@media (max-width: 960px) {
  .site-header-inner {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .header-actions {
    display: flex;
  }

  .nav {
    display: grid;
    position: fixed;
    top: var(--header-offset);
    left: 0;
    right: 0;
    order: 3;
    width: 100%;
    max-height: calc(100dvh - var(--header-offset));
    grid-template-columns: 1fr;
    gap: 2px;
    padding: 8px 16px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    background: var(--color-navy);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
    justify-content: stretch;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transform-origin: top center;
    visibility: hidden;
    transition: opacity 340ms var(--ease-smooth), transform 340ms var(--ease-emphasized), visibility 0s linear 340ms;
  }

  .nav a,
  .nav-menu {
    pointer-events: none;
  }

  .site-header.is-menu-open .nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
    visibility: visible;
    transition-delay: 0s;
  }

  .site-header.is-menu-open .nav a,
  .site-header.is-menu-open .nav-menu {
    pointer-events: auto;
  }

  .nav-item {
    display: grid;
    align-items: stretch;
  }

  .nav-item-has-menu::before {
    content: none;
  }

  .nav a {
    width: 100%;
    padding: 12px 14px;
  }

  .nav-menu {
    position: static;
    min-width: 0;
    max-width: none;
    gap: 6px 12px;
    padding: 0 14px 10px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: none;
  }

  .nav .nav-sub-link {
    width: auto;
    padding: 0;
    color: rgba(249, 249, 249, 0.68);
    font-size: 14px;
    line-height: 1.35;
    white-space: normal;
  }

  .nav .nav-sub-link:hover,
  .nav .nav-sub-link:focus-visible {
    background: transparent;
    color: var(--color-white);
    text-decoration: none;
  }

  .menu-toggle {
    display: inline-grid;
  }

  .hero-grid,
  .split,
  .footer-grid,
  .feature-grid,
  .news-grid,
  .project-category-list {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .ticket-guide-columns,
  .stat-grid,
  .contact-info-layout,
  .contact-people-panel,
  .people-grid,
  .support-help-grid,
  .support-contact-panel,
  .job-benefits-panel,
  .job-benefits-grid,
  .job-contact-panel,
  .station-board,
  .project-workspace,
  .job-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 64vh;
  }

  .hero-search-grid {
    gap: 30px;
  }

  .footer-info {
    grid-template-columns: 1fr;
  }

  .section-head-row {
    align-items: start;
    flex-direction: column;
  }

  .section-head-row::after {
    flex-basis: auto;
    width: 100%;
  }

  .news-section .section-head-row {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .news-section .section-head-row::after {
    flex-basis: 100%;
  }

  .news-section .section-head-row .button {
    flex: 0 0 auto;
  }

  .passenger-info-panel {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  :root {
    --form-control-height: 44px;
  }

  body {
    font-size: 17px;
  }

  .site-header-inner {
    width: min(var(--container), calc(100% - 32px));
    min-height: 68px;
    padding: 10px 0;
  }

  .brand img {
    width: clamp(156px, 48vw, 194px);
  }

  .site-header .button {
    display: none;
  }

  .section {
    padding: 58px 0;
  }

  .hero {
    min-height: 62vh;
    padding: 48px 0;
  }

  .hero-with-search {
    min-height: auto;
    padding: 42px 0 46px;
  }

  .hero-search-grid {
    gap: 54px;
  }

  .hero-search-panel {
    padding: 16px;
  }

  .page-transition-logo {
    width: clamp(210px, 72vw, 320px);
  }

  .route-search-panel {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .hero-search-panel {
    padding: 16px;
    border: 1px solid rgba(27, 42, 65, 0.12);
    border-radius: var(--radius);
    background: var(--color-white);
    box-shadow: var(--shadow-soft);
  }

  .news-section .section-head-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 12px;
    row-gap: 0;
    align-items: center;
  }

  .news-section .section-head-row > div {
    min-width: 0;
  }

  .news-section .section-head-row::after {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 8px;
  }

  .news-section .section-head-row .button {
    width: auto;
    min-height: 38px;
    padding: 8px 12px;
    font-size: 14px;
    white-space: nowrap;
  }

  .passenger-search-section {
    padding: 34px 0 28px;
  }

  .passenger-card {
    padding: 0;
  }

  .passenger-section-head {
    align-items: flex-end;
    flex-direction: row;
    column-gap: 14px;
    row-gap: 0;
    width: 100%;
    margin-bottom: 24px;
  }

  .passenger-section-head::after {
    flex: 0 0 100%;
    width: 100%;
    margin-top: 8px;
  }

  .schedule-date-options {
    width: 100%;
    flex-basis: 100%;
    overflow: visible;
  }

  .schedule-days {
    width: 100%;
  }

  .schedule-scroll-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .schedule-scroll-button {
    width: 48px;
    flex: 0 0 48px;
  }

  .hero-search-panel .field-grid {
    grid-template-columns: 1fr;
  }

  .page-hero,
  .page-hero-media {
    min-height: 300px;
    padding: 54px 0;
  }

  .page-hero-compact {
    min-height: 190px;
    padding: 36px 0;
  }

  .hero::after {
    background: rgba(27, 42, 65, 0.86);
  }

  .field-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .field-grid > * {
    grid-column: 1 / -1;
  }

  .field input,
  .segmented-control,
  .button,
  .icon-button {
    width: 100%;
    max-width: 100%;
  }

  .news-section .section-head-row .button {
    width: auto;
    max-width: none;
  }

  .field input {
    padding-inline: 11px;
    font-size: 16px;
  }

  .route-date input,
  .route-time input {
    padding-right: 44px;
  }

  .field-control-icon {
    right: 11px;
    bottom: 10px;
    width: 22px;
    height: 22px;
  }

  .icon-button {
    width: 100%;
  }

  .route-swap img {
    transform: rotate(90deg);
  }

  .schedule-station-cell {
    width: var(--schedule-station-width);
    min-width: var(--schedule-station-width);
    max-width: var(--schedule-station-width);
  }

  .station-map-button {
    grid-template-columns: 26px minmax(0, 1fr);
    gap: 10px;
  }

  .station-detail-body {
    padding: 16px;
  }

  .station-departures-list li {
    grid-template-columns: max-content max-content minmax(0, 1fr);
    row-gap: 4px;
  }

  .station-departure-date {
    grid-column: 3;
  }

  .route-card {
    padding: 14px;
  }

  .route-summary.is-toggleable {
    padding-right: 42px;
  }

  .route-times {
    width: max-content;
    grid-template-columns: max-content max-content max-content;
    column-gap: 10px;
  }

  .route-times strong {
    font-size: 28px;
  }

  .route-line {
    width: 58px;
    height: 44px;
  }

  .route-toggle {
    top: 2px;
    width: 36px;
    height: 36px;
  }

  .route-card-top {
    margin-top: 10px;
  }

  .route-heading {
    width: 100%;
    gap: 8px;
    align-items: flex-start;
  }

  .line-pill {
    min-width: 36px;
  }

  .route-direction {
    font-size: 16px;
    line-height: 1.2;
  }

  .route-warning {
    gap: 8px;
    padding: 9px 10px;
    font-size: 14px;
  }

  .route-notice {
    padding: 9px 10px;
    font-size: 14px;
  }

  .route-stop-row {
    grid-template-columns: 42px 18px minmax(0, 1fr);
    gap: 7px;
  }

  .route-stop-name {
    gap: 6px;
  }

  .route-stop-platform {
    padding-inline: 6px;
    font-size: 12px;
  }

  .content-main,
  .contact-info-panel,
  .stat-card,
  .job-intro-card,
  .person-card div,
  .job-card,
  .job-benefits-content,
  .job-contact-panel,
  .contact-strip,
  .timeline-item div {
    padding: 18px;
  }

  .contact-strip {
    display: grid;
    align-items: start;
  }

  .project-row img {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .support-card {
    padding: 20px;
  }

  .support-help-card,
  .support-contact-panel {
    padding: 18px;
  }

  .job-vacancy-card {
    padding: 0;
  }

  .job-card-body {
    padding: 18px;
  }

  .job-benefits-image {
    order: 1;
  }

  .job-benefits-content {
    order: 2;
  }

  .job-benefits-image {
    min-height: 210px;
  }

  .contact-strip a {
    white-space: normal;
  }

  .ticket-rules {
    gap: 28px;
  }

  .ticket-faq {
    gap: 16px;
    padding: 18px;
  }

  .ticket-guide-block {
    gap: 8px;
  }

  .ticket-point-list li {
    padding: 11px 0;
  }

  .ticket-faq .faq-item summary {
    align-items: flex-start;
    min-height: 56px;
    padding: 15px 16px;
  }

  .ticket-faq .faq-item summary::after {
    margin-top: 5px;
  }

  .ticket-faq .faq-item p {
    padding: 15px 16px 18px;
  }

  .person-card-empty .button {
    width: 100%;
  }

  .person-card img,
  .timeline-item img {
    height: 260px;
    min-height: 0;
  }
}

@media (max-width: 380px) {
  .container,
  .site-header-inner {
    width: calc(100% - 24px);
  }

  .brand img {
    width: clamp(140px, 46vw, 170px);
  }
  .menu-toggle {
    width: 30px;
    height: 30px;
  }

  .header-actions {
    gap: 8px;
  }

  .route-summary.is-toggleable {
    padding-right: 36px;
  }

  .route-times {
    grid-template-columns: max-content max-content max-content;
    column-gap: 8px;
  }

  .route-line {
    width: 52px;
    height: 42px;
  }

  .route-times strong {
    font-size: 25px;
  }

  .route-duration,
  .route-kind,
  .route-trip-date {
    font-size: 12px;
  }

  .route-toggle {
    width: 32px;
    height: 32px;
  }

  .line-pill {
    min-width: 34px;
    min-height: 27px;
    padding: 2px 6px 0;
  }
}
