:root {
    --bg: #000;
    --ink: #f2f2f0;
    --muted: #9a9a9f;
    --quiet: #7c7c83;
    --hairline: rgba(255, 255, 255, 0.15);
    --hairline-strong: rgba(255, 255, 255, 0.28);
    --display: "Big Shoulders Display", "Arial Narrow", sans-serif;
    --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    --container: 1240px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--mono);
    font-variant-numeric: tabular-nums;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
figure,
dl,
dd {
    margin: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select {
    font: inherit;
    color: inherit;
}

::selection {
    background: var(--ink);
    color: var(--bg);
}

:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 4px;
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: #3a3a3e;
}

.wrap {
    width: min(var(--container), calc(100% - 48px));
    margin: 0 auto;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 200;
    transform: translateY(-160%);
    padding: 12px 16px;
    border: 1px solid var(--ink);
    background: var(--ink);
    color: var(--bg);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.skip-link:focus {
    transform: translateY(0);
}

.label {
    color: var(--quiet);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ---------- hero ---------- */

.hero {
    border-bottom: 1px solid var(--hairline);
}

.hero-shell {
    padding: 32px 0 88px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.wordmark {
    display: inline-flex;
    flex: 0 0 auto;
    width: 273px;
}

.wordmark svg {
    display: block;
    width: 100%;
    height: auto;
}

/* Set in the units of the mark: the capitals are as tall as the MSS letters. */
.wordmark-name {
    fill: #fff;
    font-family: var(--display);
    font-size: 125px;
    font-weight: 700;
    letter-spacing: 2.5px;
}

.page-nav {
    display: flex;
    align-items: center;
    gap: 32px;
    color: var(--quiet);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.page-nav a {
    transition: color 160ms ease;
}

.page-nav a:hover,
.page-nav .page-nav-go {
    color: var(--ink);
}

.hero-head {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(40px, 6vw, 96px);
    padding: clamp(56px, 7vh, 96px) 0 48px;
}

.hero h1,
.phase h2,
.section-copy h2 {
    font-family: var(--display);
    font-weight: 600;
    letter-spacing: 0.002em;
    text-wrap: balance;
}

.hero h1 {
    font-size: clamp(4.2rem, 6.6vw, 6.6rem);
    line-height: 0.91;
}

.hero h1 span {
    display: block;
    white-space: nowrap;
}

.hero-side > p {
    max-width: 46ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.button {
    min-height: 54px;
    padding: 0 26px;
    border: 1px solid var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--mono);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.13em;
    line-height: 1;
    text-transform: uppercase;
    transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
    background: var(--ink);
    color: var(--bg);
}

.button-primary:hover {
    border-color: #cfcfcd;
    background: #cfcfcd;
}

.button-secondary {
    border-color: #38383d;
    background: transparent;
    color: var(--ink);
}

.button-secondary:hover {
    border-color: var(--ink);
}

.hero-side .availability {
    max-width: none;
    margin-top: 20px;
    color: var(--quiet);
    font-size: 10px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* Old captures, until rounds 2 and 3 rebuild the report and the book as working views. */
.shot {
    overflow: hidden;
    border: 1px solid var(--hairline-strong);
    background: #fff;
}

/* ---------- proof rail ---------- */

.proof-rail {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-bottom: 1px solid var(--hairline);
}

.proof-rail p {
    padding: 22px 0;
    color: #c9c9cc;
    font-size: 11px;
    letter-spacing: 0.07em;
    line-height: 1.7;
    text-transform: uppercase;
}

.proof-rail p + p {
    padding-left: 28px;
    border-left: 1px solid var(--hairline);
}

.proof-rail span {
    display: block;
    color: var(--quiet);
}

/* ---------- the weekend ---------- */

.phase {
    padding: 112px 0 120px;
    border-bottom: 1px solid var(--hairline);
}

.phase-head {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(40px, 6vw, 96px);
    margin-bottom: 56px;
}

.phase-head .label {
    margin-bottom: 12px;
}

.phase h2 {
    max-width: 14ch;
    font-size: clamp(3rem, 4.8vw, 4.8rem);
    line-height: 0.98;
}

.phase-head > p {
    max-width: 50ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.ledger {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ledger div {
    padding: 26px 28px 0 0;
}

.ledger div + div {
    padding-left: 28px;
    border-left: 1px solid var(--hairline);
}

.ledger dt {
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.ledger dd {
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.ledger-ruled {
    margin-top: 64px;
    border-top: 1px solid var(--hairline);
}

.latest {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: end;
    gap: clamp(40px, 6vw, 96px);
}

.latest h3 {
    max-width: 18ch;
    font-family: var(--display);
    font-size: clamp(1.9rem, 2.6vw, 2.5rem);
    font-weight: 600;
    letter-spacing: 0.002em;
    line-height: 1.02;
    text-wrap: balance;
}

.latest p {
    max-width: 50ch;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

/* ---------- capabilities and questions ---------- */

.section {
    padding: 112px 0 120px;
    border-bottom: 1px solid var(--hairline);
}

.section-layout {
    display: grid;
    grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr);
    align-items: start;
    gap: clamp(48px, 7vw, 96px);
}

.section-copy {
    position: sticky;
    top: 48px;
}

.section-copy .label {
    margin-bottom: 12px;
}

.section-copy h2 {
    max-width: 9ch;
    font-size: clamp(3rem, 4.7vw, 4.8rem);
    line-height: 0.98;
}

.section-copy > p:last-child {
    max-width: 34ch;
    margin-top: 26px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.rows {
    border-top: 1px solid var(--hairline);
}

.rows-split {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 0 56px;
    border-top: 0;
}

.rows-split > div {
    border-top: 1px solid var(--hairline);
}

.rows details {
    border-bottom: 1px solid var(--hairline);
}

.rows summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 60px;
    padding: 14px 0;
    list-style: none;
    cursor: pointer;
}

.rows summary::-webkit-details-marker {
    display: none;
}

.rows summary::after {
    content: "+";
    flex: 0 0 auto;
    color: var(--quiet);
    font-size: 16px;
    line-height: 1;
}

.rows details[open] summary::after {
    content: "\2212";
}

.rows summary:focus-visible {
    outline-offset: 0;
}

.rows h3 {
    color: var(--ink);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 160ms ease;
}

.rows summary:hover h3 {
    color: #fff;
}

.rows details > p {
    max-width: 68ch;
    padding: 0 40px 24px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.8;
}

/* ---------- create account ---------- */

.account-session {
    border-bottom: 0;
}

/* The steps to an account, in the order they are taken. */
.account-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid var(--hairline);
    list-style: none;
}

.account-steps li {
    padding: 26px 28px 0 0;
}

.account-steps li + li {
    padding-left: 28px;
    border-left: 1px solid var(--hairline);
}

.account-steps h3 {
    color: var(--ink);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.account-steps p {
    max-width: 38ch;
    margin-top: 10px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.75;
}

.closing-downloads {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 72px;
}

.closing-downloads .button {
    min-width: 184px;
}

/* ---------- the working views ---------- */

.view figcaption {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 28px;
    margin-top: 16px;
    color: var(--quiet);
    font-size: 10px;
    letter-spacing: 0.08em;
    line-height: 1.6;
    text-transform: uppercase;
}

.view-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.view-legend li {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.view-legend i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 14px;
    height: 14px;
    font-style: normal;
}

.view-legend .key-counted {
    border: 1px solid #555;
    background: rgba(0, 122, 204, 0.18);
}

.view-legend .key-ref {
    padding: 0 6px;
    border: 1px solid rgba(7, 204, 0, 0.4);
    border-radius: 999px;
    background: rgba(7, 204, 0, 0.15);
    color: #07cc00;
    font-size: 9px;
    letter-spacing: 0;
    text-transform: none;
}

.view:not(.is-ready) .view-hint {
    visibility: hidden;
}

.view-scroll {
    overflow-x: auto;
}

/* ---------- the Lap Times view: the app's dark screen ---------- */

.lt {
    --lt-bg: #2d2d30;
    --lt-surface: #3e3e42;
    --lt-raised: #4a4a4f;
    --lt-accent: #007acc;
    --lt-text: #f1f1f1;
    --lt-muted: #a0a0a0;
    --lt-ok: #07cc00;
    --lt-line: #555555;
    --lt-line-strong: #6e6e6e;
    border: 1px solid var(--hairline-strong);
    background: var(--lt-bg);
    color: var(--lt-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 12px;
    font-variant-numeric: tabular-nums;
    line-height: 1.4;
}

.lt button {
    cursor: pointer;
}

.lt button:disabled {
    cursor: default;
}

.lt input[type="checkbox"] {
    margin: 0;
    accent-color: var(--lt-accent);
}

.lt :focus-visible {
    outline: 2px solid var(--lt-accent);
    outline-offset: 1px;
}

.lt-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.lt-muted {
    color: var(--lt-muted);
}

.lt-ok {
    color: var(--lt-ok);
    font-weight: 600;
}

.lt-grow {
    flex: 1 1 auto;
}

.lt-block {
    display: block;
}

.lt-top {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 0 16px;
    border-bottom: 1px solid var(--lt-line);
}

.lt-title {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 700;
}

.lt-title svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--lt-accent);
    stroke-width: 2;
    stroke-linecap: round;
}

.lt-seg {
    display: inline-flex;
    flex: 0 0 auto;
    overflow: hidden;
    border: 1px solid var(--lt-line);
    border-radius: 6px;
}

.lt-seg button {
    height: 30px;
    padding: 0 12px;
    border: 0;
    border-right: 1px solid var(--lt-line);
    background: transparent;
    color: var(--lt-muted);
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.lt-seg button:last-child {
    border-right: 0;
}

.lt-seg button:not(:disabled):hover {
    background: var(--lt-surface);
    color: var(--lt-text);
}

.lt-seg button[aria-pressed="true"] {
    background: rgba(0, 122, 204, 0.3);
    color: #fff;
}

.lt-seg-sm button {
    height: 26px;
    padding: 0 10px;
    font-size: 11px;
}

.lt-scope {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 14px;
    min-height: 44px;
    padding: 6px 12px;
    border-bottom: 1px solid var(--lt-line);
}

.lt-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 30px;
    padding: 0 10px;
    border: 1px solid var(--lt-line);
    border-radius: 6px;
    background: var(--lt-surface);
}

.lt-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
}

.lt-field {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.lt-field select {
    height: 28px;
    padding: 0 6px;
    border: 1px solid var(--lt-line);
    border-radius: 6px;
    background: var(--lt-raised);
    color: var(--lt-text);
    font-weight: 400;
}

.lt-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
}

.lt-main {
    position: relative;
    min-width: 0;
    padding: 0 12px 12px;
}

.lt-head {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 40px;
    border-bottom: 1px solid var(--lt-line);
}

.lt-head-title {
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 600;
}

.lt-context {
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lt-content {
    padding-top: 8px;
}

/* The panel is as tall as the main column, and scrolls inside. */
.lt-panel {
    position: relative;
    min-height: 480px;
    border-left: 1px solid var(--lt-line);
}

.lt-tabs {
    display: flex;
    height: 36px;
    border-bottom: 1px solid var(--lt-line);
}

.lt-tabs button {
    flex: 1 1 0;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    color: var(--lt-muted);
    font-size: 12px;
    font-weight: 600;
}

.lt-tabs button[aria-pressed="true"] {
    border-bottom-color: var(--lt-accent);
    color: var(--lt-text);
}

.lt-panel-body {
    position: absolute;
    inset: 36px 0 0;
    overflow-y: auto;
}

/* Charts */

.lt-svg {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.lt-svg text {
    font-family: inherit;
}

.lt-grid {
    stroke: rgba(255, 255, 255, 0.08);
}

.lt-grid-soft {
    stroke: rgba(160, 160, 160, 0.15);
}

.lt-axis {
    fill: var(--lt-muted);
    font-size: 11px;
}

.lt-axis-title {
    font-size: 10px;
}

.lt-axis-small {
    font-size: 9px;
}

.lt-series {
    transition: opacity 120ms ease;
}

.lt-series.is-dimmed {
    opacity: 0.3;
}

.lt-line {
    fill: none;
    stroke: var(--c);
    stroke-width: 1.5;
    stroke-linejoin: round;
}

.lt-marker {
    cursor: pointer;
}

.lt-marker > circle,
.lt-marker > rect,
.lt-marker > path {
    fill: var(--c);
    stroke: var(--c);
    stroke-width: 1.5;
}

.lt-marker.is-active > circle,
.lt-marker.is-active > rect,
.lt-marker.is-active > path {
    stroke: #fff;
    stroke-width: 2.5;
}

.lt-clamped {
    fill: var(--c);
    font-size: 9px;
    font-weight: 600;
}

.lt-fastest {
    fill: rgba(7, 204, 0, 0.15);
    stroke: rgba(7, 204, 0, 0.4);
}

.lt-fastest-text {
    fill: var(--lt-ok);
    font-size: 9px;
    font-weight: 600;
}

.lt-end {
    fill: var(--c);
    font-size: 11px;
    font-weight: 700;
}

.lt-spread {
    border-bottom: 1px solid var(--lt-line);
}

.lt-baseline {
    stroke: rgba(85, 85, 85, 0.4);
}

.lt-spread-dot {
    fill: var(--c);
    stroke: var(--c);
    stroke-width: 1.5;
    cursor: pointer;
}

.lt-plot-scroll {
    max-height: 380px;
    overflow-y: auto;
}

.lt-dist-label {
    fill: var(--lt-muted);
    font-size: 11px;
    font-weight: 600;
}

.lt-dist-dot {
    fill: var(--c);
    fill-opacity: 0.5;
    stroke: var(--c);
    stroke-opacity: 0.65;
    cursor: pointer;
}

.lt-dist-band {
    stroke: var(--c);
    stroke-width: 5;
    opacity: 0.65;
}

.lt-dist-end {
    stroke: var(--c);
    stroke-width: 1.5;
}

.lt-dist-best {
    fill: var(--c);
}

.lt-dist-avg-under {
    stroke: #16191f;
    stroke-width: 6;
}

.lt-dist-avg {
    stroke: #fff;
    stroke-width: 2.5;
}

.lt-dist-avg-dot {
    fill: #fff;
    stroke: #16191f;
    stroke-width: 1.5;
}

.lt-dist-avg-text {
    fill: var(--lt-text);
    font-size: 12px;
    font-weight: 700;
}

.lt-strips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 24px;
    margin-bottom: 14px;
}

.lt-strip header,
.lt-dumbbell header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    height: 28px;
    border-bottom: 1px solid var(--lt-line);
    font-size: 11px;
}

.lt-strip header b,
.lt-dumbbell header b {
    font-size: 13px;
    font-weight: 600;
}

.lt-strip > div {
    padding-top: 6px;
}

.lt-strip-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 20px;
}

.lt-strip-name {
    display: inline-flex;
    flex: 0 0 68px;
    align-items: center;
    gap: 6px;
    min-width: 0;
    font-weight: 600;
}

.lt-strip-name.is-wide {
    flex-basis: 38%;
    max-width: 220px;
}

.lt-strip-name span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lt-strip-track {
    position: relative;
    flex: 1 1 auto;
    height: 8px;
    overflow: hidden;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.25);
}

.lt-strip-bar {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: var(--c);
}

.lt-strip-ref {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 1px;
    background: var(--lt-ok);
}

.lt-strip-value {
    flex: 0 0 132px;
    text-align: right;
    white-space: nowrap;
}

.lt-dumbbell {
    margin-bottom: 14px;
}

.lt-dumbbell-label {
    fill: var(--lt-text);
    font-size: 12px;
    font-weight: 600;
}

.lt-dumbbell-line {
    stroke: var(--c);
    stroke-width: 2;
}

.lt-dumbbell-hollow {
    fill: var(--lt-bg);
    stroke: var(--c);
    stroke-width: 2;
}

.lt-dumbbell-solid {
    fill: var(--c);
}

.lt-dumbbell-gap {
    fill: var(--lt-text);
    font-size: 12px;
}

.lt-dumbbell-gap.is-zero {
    fill: var(--lt-ok);
}

.lt-speed {
    max-height: 420px;
    overflow: auto;
    margin-bottom: 12px;
    border: 1px solid var(--lt-line);
    border-radius: 6px;
}

.lt-speed-label {
    fill: var(--lt-muted);
    font-size: 11px;
}

.lt-speed-grid,
.lt-speed-row {
    stroke: rgba(160, 160, 160, 0.12);
}

.lt-speed-dot {
    fill: var(--c);
    opacity: 0.55;
}

.lt-speed-avg {
    fill: var(--lt-muted);
}

.lt-speed-max {
    fill: none;
    stroke: var(--c);
    stroke-width: 2;
}

.lt-speed-value {
    fill: var(--lt-muted);
    font-size: 11px;
    font-weight: 600;
}

/* Tables */

.lt-table-wrap {
    overflow-x: auto;
    border-top: 1px solid var(--lt-line);
}

.lt-table {
    width: 100%;
    border-collapse: collapse;
}

.lt-table th {
    padding: 7px 10px;
    border-bottom: 1px solid var(--lt-line);
    color: var(--lt-muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.lt-table th.is-num,
.lt-table td.is-num {
    text-align: right;
}

.lt-table th button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-weight: 600;
    letter-spacing: inherit;
    text-transform: inherit;
}

.lt-table th button span {
    font-size: 9px;
    visibility: hidden;
}

.lt-table th button.is-active,
.lt-table th button:not(:disabled):hover {
    color: var(--lt-text);
}

.lt-table th button.is-active span {
    visibility: visible;
}

.lt-caption-row th {
    color: var(--lt-text);
    font-size: 13px;
    letter-spacing: 0;
    text-transform: none;
}

.lt-caption-row small {
    margin-left: 12px;
    color: var(--lt-muted);
    font-size: 11px;
    font-weight: 400;
}

.lt-table td {
    padding: 6px 10px;
    border-bottom: 1px solid rgba(85, 85, 85, 0.6);
    white-space: nowrap;
}

.lt-table tbody tr[data-action] {
    cursor: pointer;
}

.lt-table tbody tr:hover {
    background: var(--lt-surface);
}

.lt-table .lt-compare {
    width: 1%;
    font-size: 10px;
    text-align: center;
    text-transform: none;
}

.lt-car {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.lt-car button,
.lt-link {
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    font-weight: 600;
    text-align: left;
}

.lt-car button:not(:disabled):hover,
.lt-link:not(:disabled):hover {
    color: var(--lt-accent);
}

.lt-crew {
    max-width: 260px;
    overflow: hidden;
    font-weight: 400;
    text-overflow: ellipsis;
}

.lt-from {
    margin-left: 4px;
    color: var(--lt-muted);
    font-size: 10px;
}

.lt-swatch {
    display: inline-block;
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--c);
}

.lt-swatch-round {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

.lt-delta.is-ref {
    color: var(--lt-ok);
}

.lt-delta.is-near {
    color: #fcd34d;
}

.lt-delta.is-mid {
    color: #fb923c;
}

.lt-delta.is-far {
    color: #f87171;
}

.lt-two {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.2;
}

.lt-two small {
    color: var(--lt-muted);
    font-size: 10px;
}

.lt-pill {
    display: inline-block;
    padding: 0 6px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
}

.lt-pill.is-ok {
    border-color: rgba(7, 204, 0, 0.4);
    background: rgba(7, 204, 0, 0.15);
    color: var(--lt-ok);
}

.lt-licence {
    display: inline-block;
    padding: 0 6px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 600;
    line-height: 16px;
    text-transform: uppercase;
}

.lt-licence.is-platinum {
    background: #7d7580;
    color: #fff;
}

.lt-licence.is-gold {
    background: #e6b800;
    color: #3b2f00;
}

.lt-licence.is-silver {
    background: #b4bfc9;
    color: #1f2937;
}

.lt-licence.is-bronze {
    background: #b78a5c;
    color: #fff;
}

.lt-empty {
    padding: 36px 12px;
    color: var(--lt-muted);
    font-size: 13px;
    text-align: center;
}

/* Side panel */

.lt-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 30px;
    padding: 0 12px;
    color: var(--lt-muted);
    font-size: 11px;
}

.lt-bar b {
    color: var(--lt-text);
}

.lt-mini {
    padding: 1px 6px;
    border: 1px solid var(--lt-line);
    border-radius: 4px;
    background: transparent;
    color: var(--lt-text);
    font-size: 10px;
    font-weight: 600;
}

.lt-mini:not(:disabled):hover {
    background: rgba(0, 0, 0, 0.2);
}

.lt-cars {
    margin: 0;
    padding: 0 0 8px;
    list-style: none;
}

.lt-car-row {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 28px;
    padding: 0 12px;
    cursor: pointer;
}

.lt-car-row:hover {
    background: var(--lt-surface);
}

.lt-car-row.is-focused {
    background: rgba(0, 122, 204, 0.1);
}

.lt-car-row button {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    gap: 8px;
    min-width: 0;
    padding: 0;
    border: 0;
    background: none;
    color: inherit;
    text-align: left;
}

.lt-car-row button b {
    min-width: 34px;
}

.lt-car-row button span:first-of-type {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    color: var(--lt-muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lt-car-row .lt-num {
    width: 62px;
    text-align: right;
}

.lt-car-row.is-context b,
.lt-car-row.is-context .lt-num {
    color: var(--lt-muted);
}

.lt-laps-head {
    display: flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    padding: 0 8px;
    border-bottom: 1px solid var(--lt-line);
}

.lt-laps-head b {
    font-size: 13px;
}

.lt-laps-head span {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lt-icon {
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: var(--lt-muted);
    font-size: 16px;
    line-height: 1;
}

.lt-icon:disabled {
    opacity: 0.3;
}

.lt-laps {
    width: 100%;
    border-collapse: collapse;
}

.lt-laps th {
    height: 22px;
    padding: 0 4px;
    border-bottom: 1px solid var(--lt-line);
    color: var(--lt-muted);
    font-size: 9.5px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: uppercase;
}

.lt-laps td {
    height: 26px;
    padding: 0 4px;
    border-bottom: 1px solid rgba(85, 85, 85, 0.45);
    white-space: nowrap;
}

.lt-laps tr {
    cursor: pointer;
}

.lt-laps tr.is-counted {
    background: rgba(0, 122, 204, 0.1);
}

.lt-laps td button {
    padding: 0;
    border: 0;
    background: none;
    color: var(--lt-muted);
}

.lt-laps .lt-lap {
    font-weight: 600;
}

.lt-laps .lt-sector {
    color: #c8c8c8;
    font-size: 11px;
}

.lt-laps .is-struck {
    color: var(--lt-muted);
    font-weight: 400;
    text-decoration: line-through;
}

.lt-badge {
    display: inline-block;
    padding: 0 4px;
    border: 1px solid;
    border-radius: 999px;
    font-size: 9px;
    font-weight: 600;
    line-height: 14px;
}

.lt-badge.is-muted {
    border-color: var(--lt-line-strong);
    color: var(--lt-muted);
}

.lt-badge.is-accent {
    border-color: rgba(0, 122, 204, 0.4);
    color: var(--lt-accent);
}

.lt-badge.is-fastest {
    border-color: rgba(7, 204, 0, 0.4);
    color: var(--lt-ok);
}

/* The readout of a lap or a car under the pointer, or under the keyboard cursor. */
.lt-tip {
    position: absolute;
    z-index: 5;
    display: grid;
    gap: 2px;
    padding: 4px 8px;
    border: 1px solid var(--lt-line);
    border-radius: 4px;
    background: var(--lt-raised);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
    pointer-events: none;
}

.lt-tip[hidden] {
    display: none;
}

.lt-tip span {
    color: var(--lt-muted);
    font-size: 11px;
}

@media (max-width: 1000px) {
    .lt-body {
        grid-template-columns: minmax(0, 1fr);
    }

    .lt-panel {
        min-height: 0;
        border-top: 1px solid var(--lt-line);
        border-left: 0;
    }

    .lt-panel-body {
        position: static;
        max-height: 440px;
    }

    .lt-strips {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Narrower than this, the view is scrolled sideways rather than squeezed. */
@media (max-width: 700px) {
    .view-laptimes .lt {
        min-width: 660px;
    }
}

/* ---------- footer ---------- */

.site-footer {
    border-top: 1px solid var(--hairline);
}

.footer-inner {
    min-height: 96px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    color: var(--quiet);
    font-size: 9px;
    letter-spacing: 0.1em;
    line-height: 1.7;
    text-transform: uppercase;
}

.footer-inner nav {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.footer-inner a {
    transition: color 160ms ease;
}

.footer-inner a:hover {
    color: var(--ink);
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: no-preference) {
    .hero-head {
        animation: rise-in 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }

    .hero .shot,
    .view {
        animation: rise-in 900ms 120ms cubic-bezier(0.16, 1, 0.3, 1) both;
    }
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ---------- narrower screens ---------- */

@media (max-width: 1040px) {
    .hero-head,
    .phase-head,
    .latest {
        grid-template-columns: minmax(0, 1fr);
        align-items: start;
        gap: 28px;
    }

    .hero h1 span {
        white-space: normal;
    }

    .ledger {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ledger div:nth-child(odd) {
        padding-left: 0;
        border-left: 0;
    }

    .ledger div:nth-child(n + 3) {
        margin-top: 26px;
        border-top: 1px solid var(--hairline);
    }

    .section-layout {
        grid-template-columns: minmax(190px, 0.3fr) minmax(0, 1fr);
        gap: 42px;
    }

    .rows-split {
        grid-template-columns: minmax(0, 1fr);
    }

    .rows-split > div + div {
        border-top: 0;
    }
}

@media (max-width: 800px) {
    .wrap {
        width: min(var(--container), calc(100% - 32px));
    }

    .hero-shell {
        padding: 26px 0 64px;
    }

    .page-nav a:not(.page-nav-go) {
        display: none;
    }

    .hero-head {
        padding: 56px 0 44px;
    }

    .hero h1 {
        font-size: clamp(3.7rem, 9vw, 4.3rem);
    }

    .ledger-ruled {
        margin-top: 48px;
    }

    .proof-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .proof-rail p + p {
        padding-left: 0;
        border-top: 1px solid var(--hairline);
        border-left: 0;
    }

    .phase,
    .section {
        padding: 86px 0 94px;
    }

    .phase-head {
        margin-bottom: 40px;
    }

    .section-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .section-copy {
        position: static;
    }

    .section-copy h2 {
        max-width: 12ch;
    }

    .account-steps {
        grid-template-columns: 1fr;
    }

    .account-steps li {
        padding: 22px 0;
    }

    .account-steps li + li {
        padding-left: 0;
        border-top: 1px solid var(--hairline);
        border-left: 0;
    }

    .account-steps li:last-child {
        padding-bottom: 0;
    }

    .closing-downloads {
        margin-top: 56px;
    }

    .footer-inner {
        padding: 26px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 520px) {
    .wordmark {
        width: 214px;
    }

    .hero h1 {
        font-size: clamp(3.3rem, 14vw, 3.85rem);
    }

    .hero-side > p,
    .phase-head > p {
        font-size: 12px;
    }

    .actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .phase h2,
    .section-copy h2 {
        font-size: clamp(2.8rem, 14vw, 4rem);
    }

    .closing-downloads {
        align-items: stretch;
        flex-direction: column;
    }

    .closing-downloads .button {
        width: 100%;
    }

    .footer-inner nav {
        gap: 18px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
