/* Town spots page only. Colors come from the tokens in styles.css; the three below are this page's own status colors. */

.t-page {
  --t-route: #0E7F72;
  --t-warn: #B45309;
  --t-danger: #DC2626;
  max-width: 860px;
  padding-bottom: var(--sec);
  display: flex;
  flex-direction: column;
  gap: 24px;
}
@media (prefers-color-scheme: dark) {
  .t-page { --t-route: #2EE6C9; --t-warn: #FFB547; --t-danger: #FF5F57; }
}

.t-page .page-head { padding-bottom: 0; }
.t-tentative { margin-top: 12px; max-width: 62ch; color: var(--accent-text); font-weight: 600; }
.t-muted { color: var(--muted); font-size: 14px; }

.t-search input {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 14px 16px;
  font: 500 18px var(--body);
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.t-page input:focus-visible, .t-page button:focus-visible, .t-page a:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }

.t-hits { margin-top: 8px; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.t-hits button { width: 100%; display: flex; justify-content: space-between; gap: 12px; padding: 11px 16px; font: 500 16px var(--body); text-align: left; color: var(--text); background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; }
.t-hits li:first-child button { border-top: 0; }
.t-hits button:hover:enabled { background: var(--card2); }
.t-hits button:disabled { color: var(--muted); cursor: default; }
.t-hits small { color: var(--muted); font-size: 14px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.t-town { display: flex; flex-direction: column; gap: 14px; padding: 20px; background: var(--card); border-radius: 20px; }
.t-town header { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.t-town h2, .t-section h2 { margin: 0; }
.t-town h2 { font: 900 italic clamp(28px, 3.4vw, 38px)/1.05 var(--display); letter-spacing: -.02em; }

.t-chip { display: inline-block; padding: 3px 10px; font-size: 13px; font-weight: 600; background: var(--card2); border-radius: 99px; }
.t-chip.l { color: var(--t-route); }
.t-chip.d { color: var(--t-warn); }
.t-chip.f, .t-chip.n { color: var(--t-danger); }

.t-spots { list-style: none; display: flex; flex-direction: column; }
.t-spots li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.t-spots a { color: var(--text); font-weight: 600; text-decoration: none; overflow-wrap: anywhere; }
.t-spots a:hover { text-decoration: underline; }
.t-dist { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-weight: 700; font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }

.t-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.t-jump { padding: 6px 12px; font: 500 14px var(--body); color: var(--text); background: var(--card2); border: 0; border-radius: 99px; cursor: pointer; }
.t-jump:hover { color: var(--accent-text); }

.t-section { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
.t-section h2 { font: 900 italic clamp(26px, 3vw, 34px)/1.05 var(--display); letter-spacing: -.02em; }
.t-section p { max-width: 62ch; }

.t-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.t-facts b { display: block; font: 800 30px/1.1 var(--display); color: var(--text); font-variant-numeric: tabular-nums; }

.t-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 20px; }
.t-st { display: grid; grid-template-columns: 30px minmax(0, 1fr) 36px; align-items: center; gap: 8px; padding: 5px 0; font: 14px var(--body); color: inherit; background: none; border: 0; cursor: pointer; }
.t-st b { font-weight: 600; text-align: left; }
.t-st:hover b { color: var(--accent-text); }
.t-bar { display: block; height: 6px; background: var(--card2); border-radius: 3px; overflow: hidden; }
.t-bar i { display: block; height: 100%; background: var(--t-route); }
.t-pct { text-align: right; color: var(--muted); font-variant-numeric: tabular-nums; }

.t-notes { font-size: 14px; color: var(--muted); gap: 8px; }
.t-notes h2 { color: var(--text); }
.t-notes a { color: inherit; text-decoration: underline; }
