/* transport.css — live arrival boards (sidebar + viewer) */

.transport-board,
.pt-board-wrap .transport-board {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  color: var(--text, #d6e3f0);
  background: var(--bg, #0a0e14);
  padding: 10px 12px;
  border: 1px solid var(--border-bright, #2a3b4d);
  margin-top: 8px;
}

.tb-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, #1e2a36);
}

.tb-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  line-height: 1.3;
  max-width: 75%;
}

.tb-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #51d88a;
}

.tb-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #51d88a;
  box-shadow: 0 0 6px #51d88a;
}

.tb-table {
  width: 100%;
  border-collapse: collapse;
}

.tb-table th {
  text-align: left;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint, #455565);
  padding: 4px 3px;
  border-bottom: 1px solid var(--border, #1e2a36);
}

.tb-table td {
  padding: 5px 3px;
  border-bottom: 1px dotted rgba(255,255,255,0.06);
  vertical-align: top;
}

.tb-mode { color: var(--accent, #00d4ff); font-size: 10px; white-space: nowrap; }
.tb-line { font-weight: 600; white-space: nowrap; }
.tb-dest { color: var(--text, #d6e3f0); max-width: 120px; }
.tb-plat { color: var(--text-dim, #7a8b9c); font-size: 10px; white-space: nowrap; }
.tb-when { font-weight: 700; text-align: right; white-space: nowrap; }
.tb-when.due { color: var(--accent-warm, #ff6b35); }
.tb-when.on-time { color: #51d88a; }

.tb-empty, .tb-setup {
  color: var(--text-dim, #7a8b9c);
  text-align: center;
  padding: 12px 8px;
  font-size: 10px;
}

.tb-foot {
  margin-top: 8px;
  font-size: 9px;
  color: var(--text-faint, #455565);
  letter-spacing: 0.06em;
}

.tb-ext {
  display: inline-block;
  margin-left: 8px;
  color: var(--accent, #00d4ff);
  text-decoration: none;
}
.tb-ext:hover { text-decoration: underline; }

.tb-loading, .tb-error {
  text-align: center;
  padding: 16px 10px;
  color: var(--text-dim, #7a8b9c);
  font-size: 11px;
}

.tb-spinner {
  width: 14px;
  height: 14px;
  margin: 0 auto 8px;
  border: 1px solid var(--border-bright, #2a3b4d);
  border-top-color: var(--accent, #00d4ff);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.pt-presets-label {
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-faint, #455565);
  margin: 10px 0 6px;
}

.pt-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.pt-preset-chip {
  padding: 4px 8px;
  font-family: inherit;
  font-size: 10px;
  background: var(--bg, #0a0e14);
  border: 1px solid var(--border, #1e2a36);
  color: var(--text-dim, #7a8b9c);
  cursor: pointer;
  transition: all 0.15s;
}

.pt-preset-chip:hover {
  border-color: var(--accent, #00d4ff);
  color: var(--accent, #00d4ff);
}

.pt-search-results { margin-top: 6px; max-height: 140px; overflow-y: auto; }

.pt-search-hit {
  display: block;
  width: 100%;
  text-align: left;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 10px;
  background: transparent;
  border: none;
  border-bottom: 1px solid var(--border, #1e2a36);
  color: var(--text, #d6e3f0);
  cursor: pointer;
}
.pt-search-hit:hover { background: var(--bg, #0a0e14); color: var(--accent, #00d4ff); }

.pt-search-loading, .pt-search-empty {
  font-size: 10px;
  color: var(--text-faint, #455565);
  padding: 6px 0;
}

.pt-board-wrap { max-height: 280px; overflow-y: auto; }

.viewer-feed .transport-board {
  padding: 14px;
  height: 100%;
  overflow-y: auto;
  box-sizing: border-box;
}

.viewer-feed .tb-table { font-size: 12px; }


/* --- Sidebar public transport compact fix ---
/* Keeps the live board useful without swallowing the left menu. */
.transport-section {
  flex: 0 0 auto;
  max-height: 315px;
  overflow: hidden;
  padding-top: 12px;
  padding-bottom: 12px;
}
.transport-section .transport-note {
  font-size: 9px;
  line-height: 1.35;
  margin-bottom: 6px;
}
.transport-section .search-box {
  height: 28px;
  padding: 6px 8px;
  font-size: 10px;
}
.transport-section .pt-board-wrap {
  max-height: 118px;
  overflow-y: auto;
  overflow-x: hidden;
  margin-top: 6px;
  border: 1px solid var(--border, #1e2a36);
  background: var(--bg, #0a0e14);
}
.transport-section .transport-board {
  margin-top: 0;
  padding: 6px;
  font-size: 9px;
  border: 0;
}
.transport-section .tb-head {
  margin-bottom: 4px;
  padding-bottom: 4px;
}
.transport-section .tb-title {
  max-width: 78%;
  font-size: 9px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transport-section .tb-live { font-size: 8px; }
.transport-section .tb-table {
  table-layout: fixed;
  width: 100%;
}
.transport-section .tb-table th,
.transport-section .tb-table td {
  padding: 3px 2px;
  font-size: 8px;
}
.transport-section .tb-table th:nth-child(4),
.transport-section .tb-table td:nth-child(4) {
  display: none;
}
.transport-section .tb-mode { width: 28px; font-size: 8px; }
.transport-section .tb-line { width: 42px; overflow: hidden; text-overflow: ellipsis; }
.transport-section .tb-dest {
  max-width: 82px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transport-section .tb-when { width: 34px; font-size: 8px; }
.transport-section .tb-foot {
  margin-top: 4px;
  font-size: 8px;
  line-height: 1.3;
}
.transport-section .transport-btn,
.transport-section #tfl-disruptions {
  width: 100%;
  margin-top: 6px;
  padding: 5px 6px;
  font-size: 9px;
}
.transport-section .pt-search-results {
  max-height: 86px;
  overflow-y: auto;
  overflow-x: hidden;
}
