/* The transit summary at the top of the Transits tab (views/transit-summary.js). Design:
   design-brief.md, "Transit summary". Tokens from styles.css only. */

.ts-box { margin: 4px 0 18px; }
.ts .section { margin-top: 0; }
.ts-wait { min-height: 44px; display: flex; align-items: center; }
.ts-moon, .ts-sade { font-size: 16px; line-height: 1.4; margin-top: 6px; font-variant-numeric: tabular-nums; }
.ts-moon .skt { font-size: 16px; }
.ts-k { font-weight: 600; }
.ts-basis { font-size: 13px; color: var(--ink-2); line-height: 1.35; margin-top: 2px; }
.ts-basis .m-go { font-size: 13px; min-height: 0; padding: 14px 0; margin: -14px 0 -14px 4px; }   /* 44px to the finger, lines not spread */
.ts-sub { font-family: var(--font-display); font-size: 19px; font-weight: 400; margin-top: 16px; }

.ts-stand { list-style: none; margin: 4px 0 0; padding: 0; font-size: 16px; line-height: 1.4; }
.ts-stand li { padding: 3px 0; }
.ts-planet { font-family: var(--font-display); font-size: 17px; }
.ts-stand svg.rx { margin-right: 1px; }

.ts-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 2px; }
.ts-list li:nth-child(odd) .ts-row { background: var(--surface); }
.ts-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 7px 8px 6px; border: 0; border-radius: var(--radius-control);
  background: transparent; color: var(--ink); text-align: left; font: inherit; cursor: pointer;
}
.ts-row:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.ts-row[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.ts-main { display: grid; gap: 1px; min-width: 0; }
.ts-what { font-size: 16px; line-height: 1.3; }
.ts-when { font-size: 13px; color: var(--ink-2); line-height: 1.3; font-variant-numeric: tabular-nums; }
.ts-pct { font-size: 16px; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ts-row.strong .ts-pct { color: var(--ink); font-weight: 600; }
.ts-more { font-size: 16px; }

.ts-fast { margin-top: 8px; }
.ts-fast > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; min-height: 44px;
  font-size: 14px; color: var(--ink-2);
}
.ts-fast > summary::-webkit-details-marker { display: none; }
.ts-fast > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--radius-control); }
.ts-fast .chev { width: 12px; height: 12px; flex: none; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform 150ms ease; }
.ts-fast[open] > summary .chev { transform: rotate(90deg); }
.ts-count { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--ink-3); }

.ts-stations { list-style: none; margin: 4px 0 0; padding: 0; font-size: 16px; line-height: 1.4; }
.ts-stations li { padding: 3px 0; }
.ts-date { display: inline-block; min-width: 4.2em; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.ts-hint { font-size: 13px; color: var(--ink-2); line-height: 1.35; margin-top: 8px; }

@media (prefers-reduced-motion: reduce) { .ts-fast .chev { transition: none; } }
.ts-list[hidden] { display: none; }
