/* Entry route board: a departure-board panel for the hero */
.board {
  --ink: #231f1b;
  --muted: #5c5248;
  --brand: #a3352b;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
}
.board__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  border-bottom: 2px dashed var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.board__label { color: var(--brand); font-weight: 700; }
.board__date { color: var(--muted); }
.board__form {
  display: grid;
  gap: .6rem;
  padding: 1rem;
}
.board__form .field { margin: 0; min-width: 0; }
.board__form label { color: var(--ink); }
.board__form select {
  width: 100%;
  min-width: 64px;
}
.board__form .field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .6rem;
}
@media (max-width: 420px) {
  .board__form .field-row { grid-template-columns: 1fr; }
}
.board__form .btn { justify-self: start; }
.board__result {
  padding: 1rem;
  border-top: 2px dashed var(--border);
  position: relative;
}
.board__result::before,
.board__result::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--border);
}
.board__result::before { left: -9px; }
.board__result::after { right: -9px; }
.board__kicker {
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
}
.board__route {
  margin: .2rem 0 .4rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--brand);
  letter-spacing: .02em;
}
.board__detail { margin: 0 0 .5rem; font-size: .92rem; line-height: 1.5; color: var(--ink); }
.board__src { font-size: .8rem; color: var(--muted); }
.board__route.is-flip { animation: board-flip .35s ease; }
@keyframes board-flip {
  0% { transform: rotateX(80deg); opacity: .2; }
  100% { transform: rotateX(0); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .board__route.is-flip { animation: none; }
}

/* Affiliate hero CTA: light surface, so use dark text */
.aff-cta--hero .aff-cta__title { color: #231f1b; }
.aff-cta--hero .aff-cta__text { color: #4a4137; }
.aff-cta--hero .aff-cta__text .aff-cta__sub,
.aff-cta--hero .aff-cta__text > .aff-cta__sub { color: #4a4137; }
.aff-cta--hero .aff-cta__kicker,
.aff-cta--hero .aff-cta__note { color: #5c5248; }

/* Cards: equal height, link pinned to the bottom */
.data-card {
  display: flex;
  flex-direction: column;
}
.data-card .data-card__go { margin-top: auto; }

/* Data tables: scroll sideways on narrow screens, with a visible hint */
lg-table {
  display: block;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 600px) {
  lg-table::before {
    content: "Scroll sideways to see all columns \2192";
    display: block;
    position: sticky;
    left: 0;
    margin: 0 0 .5rem;
    font-size: .8rem;
    font-weight: 600;
    color: #5c5248;
  }
  lg-table table { min-width: 34rem; }
  lg-table th,
  lg-table td { white-space: nowrap; }
}