/* Vidingsjö Time Trial: public lap page. Mobile first; tokens come from results.css. */
.vt { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.vt-head { display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.vt-head h1 { font-size: 34px; line-height: 1.05; }
.vt-lead { font-size: 17px; }
.vt-end { font-family: var(--f-disp); font-weight: 600; font-size: 20px; color: var(--accent); }

.vt-form { display: flex; flex-direction: column; gap: 6px; }
.vt-form label { font-weight: 600; }
.vt-row { display: flex; gap: 8px; }
.vt-row input {
	flex: 1 1 auto; min-width: 0; font: inherit; font-family: var(--f-mono); font-size: 24px; padding: 8px 12px;
	border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--ink);
}
.vt-row button { flex: 0 0 auto; font-size: 17px; padding: 10px 16px; }

.vt-card {
	background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px;
	display: flex; flex-direction: column; gap: 14px;
}
.vt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vt-bib {
	background: var(--bib); color: var(--bib-ink); border: 2px solid var(--bib-ink); border-radius: 6px;
	font-size: 26px; font-weight: 600; padding: 4px 12px; min-width: 72px; text-align: center;
}
.vt-count { display: flex; align-items: baseline; gap: 6px; }
.vt-num { font-size: 56px; font-weight: 600; line-height: 1; }
.vt-unit { font-family: var(--f-disp); font-size: 22px; font-weight: 600; color: var(--mute); }

.vt-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; margin: 0; }
.vt-stats div { display: flex; flex-direction: column; gap: 2px; }
.vt-stats dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--mute); font-weight: 600; }
.vt-stats dd { margin: 0; font-size: 20px; font-weight: 600; }

.vt-laps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.vt-laps li {
	display: grid; grid-template-columns: 2.6em 1fr auto; gap: 4px 10px; align-items: baseline;
	padding: 9px 0; border-bottom: 1px solid var(--line);
}
.vt-laps .n { font-family: var(--f-disp); font-weight: 700; font-size: 18px; color: var(--mute); }
.vt-laps .t { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 17px; font-weight: 600; }
.vt-laps .p { font-family: var(--f-mono); font-variant-numeric: tabular-nums; font-size: 14px; color: var(--mute); text-align: right; }
.vt-laps .c { grid-column: 2 / 4; font-size: 13px; color: var(--mute); }
.vt-tag {
	display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 7px; border-radius: 999px;
	background: var(--warn-soft); color: var(--warn); margin-left: 6px;
}
.vt-legend .vt-tag { margin-left: 0; margin-right: 4px; }
.vt-status:empty { display: none; }

@media (min-width: 600px) {
	.vt-head h1 { font-size: 42px; }
	.vt-stats { grid-template-columns: repeat(4, 1fr); }
}
.vt-laps:empty { display: none; }

/* Results list (all bibs) and the way back from one bib. */
.vt-list { display: flex; flex-direction: column; gap: 10px; }
.vt-listhead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.vt-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.vt-tab { flex: 1 1 0; min-width: 0; padding: 8px 6px; font-size: 15px; }
.vt-tab[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.vt-results { list-style: none; margin: 0; padding: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.vt-results li + li { border-top: 1px solid var(--line); }
.vt-res {
	display: grid; grid-template-columns: 2em 4.2em 1fr auto; gap: 10px; align-items: center;
	padding: 10px 12px; color: var(--ink); text-decoration: none; min-height: 56px;
}
.vt-res:active, .vt-res:hover { background: var(--accent-soft); }
.vt-place { color: var(--mute); font-weight: 600; text-align: right; }
.vt-rbib {
	background: var(--bib); color: var(--bib-ink); border: 1.5px solid var(--bib-ink); border-radius: 4px;
	font-weight: 600; text-align: center; padding: 2px 4px; font-size: 15px;
}
.vt-mid { display: flex; flex-direction: column; min-width: 0; }
.vt-wave { font-family: var(--f-disp); font-weight: 600; font-size: 16px; white-space: nowrap; }
.vt-wave .vt-tag { font-family: var(--f-body); font-size: 11px; padding: 0 6px; }
.vt-lastp { font-size: 12px; color: var(--mute); }
.vt-name { font-family: var(--f-disp); font-weight: 700; font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vt-who { display: flex; flex-direction: column; min-width: 0; }
.vt-cardname { font-family: var(--f-disp); font-weight: 700; font-size: 20px; overflow-wrap: anywhere; }
.vt-right { display: flex; flex-direction: column; align-items: flex-end; }
.vt-rlaps { font-size: 24px; font-weight: 600; line-height: 1.1; }
.vt-rpace { font-size: 12px; color: var(--mute); white-space: nowrap; }
.vt-back { font-weight: 600; text-decoration: none; align-self: flex-start; }
