/*

Color Scheme

--ink-black: #000814ff;
--prussian-blue: #001d3dff;
--regal-navy: #003566ff;
--school-bus-yellow: #ffc300ff;
--gold: #ffd60aff;

*/

@font-face {
  font-family: 'Big Shoulders Display';
  src: url('BigShoulder-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('Inter-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --ink-black: #000814;
  --prussian-blue: #001d3d;
  --regal-navy: #003566;
  --school-bus-yellow: #ffc300;
  --gold: #ffd60a;
  --text-body: #1a1a2e;
  --text-muted: #6b7280;
  --border-subtle: #e5e7eb;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #fff;
  color: var(--text-body);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
}

.page {
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}

/* ── Typography ── */

h1 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: var(--prussian-blue);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.meta {
  color: var(--text-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

/* ── Info page ── */

h2 {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--prussian-blue);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin: 2rem 0 0.75rem;
}

.info-body {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #2d3748;
}

/* ── Disclaimer ── */

.disclaimer {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ── Table ── */

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

thead tr {
  border-bottom: 2px solid var(--prussian-blue);
}

th {
  padding: 0.6rem 1rem;
  text-align: left;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-muted);
}

tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.1s ease;
}

tbody tr:last-child {
  border-bottom: none;
}

tbody tr:hover:not(.shade-info) {
  background: #f5f7fa;
}

td {
  padding: 0.7rem 1rem;
  vertical-align: middle;
}

/* ── Clickable rows ── */

tr.clickable {
  cursor: pointer;
}

/* ── Past departure dimming ── */

tr.past td {
  color: var(--text-muted);
}

/* ── Shade info rows ── */

tr.shade-info td {
  padding: 0.3rem 1rem;
  background: #f0f4f8;
  color: var(--regal-navy);
  font-size: 0.8rem;
  font-style: italic;
  text-align: center;
  letter-spacing: 0.03em;
  border-bottom: 1px solid var(--border-subtle);
}

/* ── Topbar ── */

.topbar {
  background: var(--prussian-blue);
  border-bottom: 2px solid var(--gold);
}

.topbar-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  align-items: baseline;
  gap: 1.5rem;
}

.topbar-brand {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  flex: 1;
  min-width: 0;
}

.topbar-name {
  font-family: 'Big Shoulders Display', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold);
  white-space: nowrap;
  text-decoration: none;
}

.topbar-claim {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  text-underline-offset: 3px;
  transition: color 0.1s ease, text-decoration-color 0.1s ease;
}

.topbar-claim:hover {
  color: rgba(255, 255, 255, 0.75);
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

.claim-short {
  display: none;
}

@media (max-width: 600px) {
  .claim-full {
    display: none;
  }
  .claim-short {
    display: inline;
  }
}

.topbar-date {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ── Page switcher ── */

.page-switcher {
  display: inline-flex;
  border: 1px solid var(--prussian-blue);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 2rem;
  font-size: 0.82rem;
  font-weight: 500;
}

.switcher-item {
  padding: 0.4rem 1rem;
  text-decoration: none;
  color: var(--prussian-blue);
  background: transparent;
  transition: background 0.1s ease;
  user-select: none;
}

.switcher-item + .switcher-item {
  border-left: 1px solid var(--prussian-blue);
}

a.switcher-item:hover {
  background: #f0f4f8;
}

.switcher-item.active {
  background: var(--prussian-blue);
  color: #fff;
  cursor: default;
}

/* ── Station index list ── */

.station-list {
  list-style: none;
  margin-top: 0.5rem;
}

.station-list li {
  border-bottom: 1px solid var(--border-subtle);
}

.station-list li:first-child {
  border-top: 1px solid var(--border-subtle);
}

.station-list li a {
  display: block;
  padding: 0.6rem 0.25rem;
  color: var(--text-body);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.1s ease;
}

.station-list li a:hover {
  color: var(--regal-navy);
  font-weight: 500;
}
