:root {
  --ink: #13213b;
  --muted: #56627a;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #d9dde6;
  --navy: #173761;
  --blue: #245f91;
  --red: #b53b32;
  --red-soft: #fff0ec;
  --green: #28684c;
  --green-soft: #edf8f1;
  --gold: #a76c18;
  --shadow: 0 18px 50px rgba(20, 36, 61, 0.09);
  --radius: 18px;
  font-family: Inter, "Segoe UI", "Noto Sans", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 90% 4%, rgba(36, 95, 145, 0.12), transparent 24rem),
    var(--paper);
  color: var(--ink);
  line-height: 1.65;
}

a {
  color: var(--blue);
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--red);
}

.skip-link {
  position: fixed;
  top: 0.5rem;
  left: 0.5rem;
  z-index: 100;
  transform: translateY(-150%);
  padding: 0.65rem 0.9rem;
  border-radius: 0.5rem;
  background: var(--ink);
  color: white;
}

.skip-link:focus {
  transform: none;
}

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

.affiliate-disclosure {
  padding: 0.44rem 1rem;
  background: var(--ink);
  color: white;
  text-align: center;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.site-header {
  border-bottom: 1px solid rgba(19, 33, 59, 0.12);
  background: rgba(251, 250, 246, 0.92);
}

.header-inner {
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  border-radius: 0.75rem;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.header-nav {
  display: flex;
  gap: 1.2rem;
}

.header-nav a {
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
}

.hero {
  padding: 4.5rem 0 2.4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 0.55rem;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.18;
}

h1 {
  max-width: 800px;
  margin: 0;
  font-size: clamp(2.35rem, 6vw, 4.8rem);
  letter-spacing: -0.045em;
}

h2 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  letter-spacing: -0.025em;
}

h3 {
  margin: 0;
  font-size: 1.12rem;
}

.hero-copy {
  max-width: 720px;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.hero-note {
  padding: 1.35rem;
  border: 1px solid #e8c5bd;
  border-left: 6px solid var(--red);
  border-radius: var(--radius);
  background: var(--red-soft);
  box-shadow: var(--shadow);
}

.hero-note strong {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 1.22rem;
}

.hero-note p {
  margin: 0;
}

.hero-note .scope {
  margin-top: 0.55rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.section {
  padding: 2.4rem 0;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 1.25rem;
}

.section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

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

.comparison-table th,
.comparison-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.comparison-table th {
  background: #eef3f8;
  color: #2b3a52;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.comparison-table th:first-child,
.comparison-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  min-width: 142px;
  background: var(--panel);
  box-shadow: 1px 0 var(--line);
}

.comparison-table th:first-child {
  z-index: 2;
  background: #eef3f8;
}

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

.comparison-table tr.featured td {
  background: #fff9f7;
}

.comparison-table tr.featured td:first-child {
  background: #fff9f7;
}

.train-name {
  display: block;
  color: var(--ink);
  font-weight: 800;
}

.train-route {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.pill.no {
  background: #f1f3f6;
  color: #424f64;
}

.pill.yes {
  background: #fff0ec;
  color: var(--red);
}

.pill.clear {
  background: var(--green-soft);
  color: var(--green);
}

.cell-note {
  display: block;
  max-width: 230px;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.table-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.callout-grid,
.answer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.callout,
.answer-card,
.content-card,
.source-card,
.locker-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.callout {
  padding: 1.35rem;
}

.callout p,
.answer-card p {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.callout .number {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-bottom: 0.8rem;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: white;
  font-weight: 800;
}

.detail-hero {
  padding: 2rem 0 1.5rem;
}

.breadcrumb {
  margin: 0 0 1.4rem;
  color: var(--muted);
  font-size: 0.84rem;
}

.detail-title {
  font-size: clamp(2.25rem, 6vw, 4.2rem);
}

.route-line {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
}

.answer-panel {
  padding: 1.4rem;
  border: 1px solid #b9cadb;
  border-radius: var(--radius);
  background: #f4f8fc;
}

.answer-panel > h2 {
  margin-bottom: 1rem;
}

.answer-card {
  padding: 1rem;
}

.answer-card .label {
  display: block;
  color: var(--muted);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.answer-card strong {
  display: block;
  margin-top: 0.2rem;
  font-size: 1.15rem;
}

.asymmetry {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border-left: 5px solid var(--red);
  border-radius: 0 0.8rem 0.8rem 0;
  background: var(--red-soft);
}

.asymmetry p {
  margin: 0.25rem 0 0;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(270px, 0.75fr);
  gap: 1.25rem;
}

.content-card,
.source-card,
.locker-card {
  padding: 1.45rem;
}

.content-card p:first-of-type {
  margin-top: 0.6rem;
}

.size-scale {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr 0.75fr;
  overflow: hidden;
  margin: 1rem 0 0.75rem;
  border-radius: 0.8rem;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  text-align: center;
}

.size-scale span {
  display: grid;
  min-height: 64px;
  place-items: center;
  padding: 0.6rem;
}

.size-scale .standard {
  background: var(--green);
}

.size-scale .reserve {
  background: var(--red);
}

.size-scale .not-allowed {
  background: var(--ink);
}

.steps {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: trip-step;
}

.steps li {
  position: relative;
  min-height: 2.4rem;
  margin-bottom: 1rem;
  padding-left: 3rem;
  counter-increment: trip-step;
}

.steps li::before {
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 0.65rem;
  background: var(--navy);
  color: white;
  content: counter(trip-step);
  font-weight: 800;
}

.source-list {
  margin: 0.8rem 0 0;
  padding-left: 1.1rem;
}

.source-list li + li {
  margin-top: 0.7rem;
}

.locker-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.85rem;
}

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0.9rem;
  border-radius: 0.75rem;
  background: var(--navy);
  color: white;
  font-weight: 800;
  text-decoration: none;
}

.button:hover {
  background: var(--red);
  color: white;
}

.data-note {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #ddd3b9;
  border-radius: 0.9rem;
  background: #fffbec;
  color: #51472f;
  font-size: 0.86rem;
}

.ad-slot:empty {
  display: none;
}

.site-footer {
  margin-top: 3rem;
  padding: 2.2rem 0;
  background: var(--ink);
  color: white;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.site-footer p {
  max-width: 680px;
  margin: 0;
  color: #dce4f0;
}

.site-footer a {
  color: white;
}

@media (max-width: 780px) {
  .header-inner,
  .section-heading,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    padding: 0.9rem 0;
  }

  .hero {
    padding-top: 2.8rem;
  }

  .hero-grid,
  .content-grid,
  .callout-grid,
  .answer-grid {
    grid-template-columns: 1fr;
  }

  .header-nav {
    width: 100%;
    overflow-x: auto;
  }

  .size-scale {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .shell {
    width: min(100% - 22px, 1120px);
  }

  .affiliate-disclosure {
    font-size: 0.74rem;
  }

  .header-nav {
    gap: 0.9rem;
    font-size: 0.82rem;
  }

  .hero-note,
  .answer-panel,
  .content-card,
  .source-card,
  .locker-card {
    padding: 1rem;
  }
}
