/* Title Pace app styles. Everything is scoped under .tp and uses the site's tokens from /css/styles.css,
   so light and dark themes follow the site toggle. */
.tp { --tp-club: var(--link); --tp-leg: var(--muted); --tp-row: var(--panel); }
.tp .page-body { max-width: none; }
.tp .page-body > * { max-width: none; }
.tp .page-body > p, .tp .page-body .tp-how ul, .tp .page-body .tp-how p { max-width: var(--measure); }
.tp .tp-view > * + * { margin-top: 16px; }
.tp .tp-view[hidden] { display: none; }

/* status */
.tp .tp-status:empty { display: none; }
.tp .tp-loading, .tp .tp-error { font-size: 16px; padding: 10px 14px; border: 1px dashed var(--field-line); }
.tp .tp-error { border-style: solid; border-color: var(--ink); }
.tp .tp-retry { margin-left: 10px; }
.tp .tp-empty { color: var(--muted); }

/* finder + tabs */
.tp .tp-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px 28px; border-top: 2px solid var(--rule); padding-top: 14px; }
.tp .tp-finder { position: relative; flex: 1 1 240px; max-width: 360px; min-width: 0; }
.tp .tp-finder__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.tp .tp-finder__input { width: 100%; font: inherit; font-size: 16px; padding: 8px 10px; color: var(--ink); background: var(--field); border: 1px solid var(--field-line); border-radius: 0; }
.tp .tp-finder__input:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.tp .tp-finder__list { position: absolute; z-index: 20; left: 0; right: 0; margin: 2px 0 0; padding: 0; list-style: none; background: var(--bg); border: 1px solid var(--field-line); max-height: 320px; overflow-y: auto; }
.tp .tp-finder__list li { margin: 0; padding: 8px 10px; font-size: 15px; cursor: pointer; border-bottom: 1px solid var(--line); }
.tp .tp-finder__list li[aria-selected="true"] { background: var(--ink); color: var(--bg); }
.tp .tp-finder__list li[aria-selected="true"] .tp-finder__meta { color: var(--bg); }
.tp .tp-finder__meta, .tp .tp-finder__none { color: var(--muted); font-size: 14px; }
.tp .tp-tabs { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 16px; font-weight: 600; }
.tp .tp-tabs a { color: var(--ink); text-decoration: none; padding: 6px 0; border-bottom: 3px solid transparent; }
.tp .tp-tabs a:hover { color: var(--link); }
.tp .tp-tabs a[aria-current="page"] { border-bottom-color: var(--pitch); color: var(--link); }
[data-theme="dark"] .tp .tp-tabs a[aria-current="page"] { border-bottom-color: var(--link); }

/* tables */
.tp .table-responsive { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
.tp .table-wrap:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.tp .tp-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.35; font-variant-numeric: tabular-nums; }
.tp .tp-table caption { caption-side: top; text-align: left; font-size: 14px; line-height: 1.45; color: var(--muted); padding: 0 0 8px; }
.tp .tp-table thead th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--rule); vertical-align: bottom; padding: 6px 8px; text-align: left; white-space: nowrap; }
.tp .tp-table th, .tp .tp-table td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tp .tp-table .num { text-align: right; white-space: nowrap; }
.tp .tp-table tbody th { font-weight: 500; white-space: nowrap; }
.tp .tp-table tbody th, .tp .tp-table thead th:first-child { position: sticky; left: 0; background: var(--bg); z-index: 1; }
.tp .tp-table td:first-child.num + th { position: static; }
.tp .tp-sort { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: right; white-space: nowrap; }
.tp .tp-sort:hover { color: var(--ink); text-decoration: underline; }
.tp .tp-sort:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.tp .tp-row--club th, .tp .tp-row--club td { background: var(--tp-row); font-weight: 700; }
.tp .tp-row--club th { box-shadow: inset 4px 0 0 var(--tp-club); }
.tp .tp-foot th, .tp .tp-foot td { color: var(--ink); }
.tp .tp-row--rank th, .tp .tp-row--rank td { font-size: 13px; color: var(--muted); }
.tp .tp-row--avg th, .tp .tp-row--avg td { font-weight: 700; border-top: 1px solid var(--rule); }
.tp .tp-ref th, .tp .tp-ref td { color: var(--muted); font-style: italic; }
.tp .tp-row--live td { color: var(--muted); }
.tp .tp-dates { white-space: nowrap; color: var(--muted); font-size: 13px; }
.tp .tp-name a { color: var(--link); }
.tp .tp-verdict { white-space: nowrap; }

/* headline band (site .tool-result) */
.tp .tp-band { margin-top: 12px; }
.tp .tp-band__v { font-size: 20px; line-height: 1.2; font-weight: 800; color: var(--on-band); }
.tp .tp-sum { font-size: 17px; }
.tp .tp-back { font-size: 15px; }
.tp .tp-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 15px; }
.tp .tp-controls label { font-weight: 600; }
.tp .tp-select { font: inherit; font-size: 15px; padding: 6px 8px; color: var(--ink); background: var(--field); border: 1px solid var(--field-line); max-width: 100%; }
.tp .tp-select:focus-visible, .tp input[type="checkbox"]:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; }
.tp input[type="checkbox"] { accent-color: var(--pitch); width: 18px; height: 18px; }

/* charts */
.tp .tp-chart { background: var(--panel); border-top: 2px solid var(--rule); padding: 10px 6px 4px; max-width: 860px; }
.tp .tp-svg { display: block; width: 100%; height: auto; }
.tp .tp-grid { stroke: var(--line); stroke-width: 1; }
.tp .tp-tick { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.tp .tp-axis { fill: var(--muted); font-size: 12px; font-family: var(--font); }
.tp .tp-mark { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 2 3; }
.tp .tp-line { fill: none; stroke-linejoin: round; stroke-linecap: round; }
.tp .tp-line--leg { stroke: var(--tp-leg); stroke-width: 1.2; opacity: .55; }
.tp .tp-line--avg { stroke: var(--ink); stroke-width: 2; stroke-dasharray: 6 4; }
.tp .tp-line--club { stroke: var(--tp-club); stroke-width: 4; }
.tp .tp-dot { fill: var(--tp-club); stroke: var(--bg); stroke-width: 2; }
.tp .tp-bar { fill: var(--tp-leg); opacity: .7; }
.tp .tp-bar--champ { fill: var(--tp-club); opacity: 1; }
.tp .tp-xtick { stroke: var(--ink); stroke-width: 2.5; }
.tp .tp-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; }
.tp .tp-legend__item { display: inline-flex; align-items: center; gap: 4px; }
.tp .tp-small { font-size: 14px; line-height: 1.5; color: var(--muted); }

/* club chips */
.tp .tp-chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.tp .tp-chips li { margin: 0; border: 1px solid var(--line); padding: 6px 10px; font-size: 15px; }
.tp .tp-chips li::marker { content: none; }
.tp .tp-chip__n { color: var(--muted); font-size: 13px; }

/* how it works */
.tp .tp-how { margin-top: 48px; border-top: 2px solid var(--rule); padding-top: 4px; }
.tp .tp-how h2 { margin-top: 12px; }
.tp .tp-how code { font-size: 14px; overflow-wrap: anywhere; }

@media (max-width: 480px) {
  .tp .tp-table { font-size: 14px; }
  .tp .tool-result { gap: 12px 22px; padding: 14px; }
  .tp .tp-bar { gap: 12px; }
}
