/* ============================================================================
   Homepage live departure board — PLUGIN-OWNED (roadmap 3168)
   ----------------------------------------------------------------------------
   The approved Signal Black `.board` look for the front-page board, owned by
   the boards plugin (was styled by the theme). Absorbed from the theme's
   approved rules; reads only the shared theme tokens (--surface/--border-
   strong/--radius-lg/--shadow-2/--font-display/--font-mono/--ok/--danger/
   --info/--muted/--surface-2/--border/--fg/--accent). Enqueued on the front
   page only. The theme keeps only the outer hero column.
   ========================================================================== */

/* Card */
.home-hero__board {
  position: relative;
  overflow: auto;
  max-height: 380px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow: var(--shadow-2);
}
.home-hero__board > :first-child { border-radius: var(--radius-lg); box-shadow: none; }

/* Scroller: the table is nowrap (as a real board must be) */
.loporail-lp-board { overflow-x: auto; max-width: 100%; }

/* Titled head band + live indicator */
.loporail-lp-board__title {
  display: flex; align-items: center; gap: 9px;
  margin: 0; padding: 13px 16px;
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
}
.loporail-lp-board__title::before {
  content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  animation: loporail-board-pulse 2.2s ease-out infinite;
}
@keyframes loporail-board-pulse {
  0%   { box-shadow: 0 0 0 0 color-mix(in oklab, var(--ok) 55%, transparent); }
  100% { box-shadow: 0 0 0 9px transparent; }
}
@media (prefers-reduced-motion: reduce) { .loporail-lp-board__title::before { animation: none; } }

/* Table chrome */
.loporail-lp-board__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.loporail-lp-board__table th { text-align: left; padding: 8px 10px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border-strong); white-space: nowrap; }
.loporail-lp-board__table td { padding: 9px 10px; border-bottom: 1px solid var(--border); color: var(--fg); font-size: 0.9rem; white-space: nowrap; }
.loporail-lp-board__table td:first-child { font-family: var(--font-mono); font-weight: 600; }
.loporail-lp-board__table tr:last-child td { border-bottom: 0; }
.loporail-lp-board__table tbody tr:hover td { background: color-mix(in oklab, var(--accent) 8%, transparent); }
.loporail-lp-board__table td.is-late { color: var(--danger); font-weight: 600; }
.loporail-lp-board__table td.is-early { color: var(--info); }
.loporail-lp-board__table tr.is-stale { opacity: 0.55; }
.loporail-lp-empty { color: var(--muted); text-align: center; padding: 18px; }

/* Homepage: one station, departures only — drop the redundant Origin column
   and give the grid a clear board rhythm. */
.home-hero__board .loporail-lp-board__table th:nth-child(2),
.home-hero__board .loporail-lp-board__table td:nth-child(2) { display: none; }
.home-hero__board .loporail-lp-board__table th,
.home-hero__board .loporail-lp-board__table td { border-right: 1px solid var(--border); }
.home-hero__board .loporail-lp-board__table th:last-child,
.home-hero__board .loporail-lp-board__table td:last-child { border-right: 0; }
.home-hero__board .loporail-lp-board__table th { background: var(--surface-2); }
.home-hero__board .loporail-lp-board__table tbody tr:nth-child(even) td { background: color-mix(in oklab, var(--fg) 3.5%, transparent); }
.home-hero__board .loporail-lp-board__table th:nth-child(3),
.home-hero__board .loporail-lp-board__table td:nth-child(3) { white-space: normal; }
.home-hero__board .loporail-lp-board__table th:nth-child(4),
.home-hero__board .loporail-lp-board__table td:nth-child(4),
.home-hero__board .loporail-lp-board__table th:nth-child(5),
.home-hero__board .loporail-lp-board__table td:nth-child(5) { text-align: right; }

/* Operator sub-line under the destination (board markup supplies .loporail-lp-board__op) */
.loporail-lp-board__table .loporail-lp-board__op,
.loporail-lp-board__table small { display: block; color: var(--muted); font-size: 0.78em; line-height: 1.2; }
