/* Grand Prixtend. A pit board: number-plate yellow, tarmac black and kerb red in
   solid blocks, with heavy slanted condensed type. Paper is for reading. */
:root {
  --concrete: #eae7dd;
  --paper: #fbfaf6;
  --tarmac: #14161a;
  --tarmac-2: #23262c;
  --ink-soft: #55595f;
  --rule: #c9c6bc;
  --plate: #f4c20d;
  --kerb: #cf3327;
  --kerb-deep: #b92a1f;
  --wet: #2a6fb5;
  --purple: #b36bff;
  --green: #2dbe6c;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--concrete); color: var(--tarmac); font: 400 17px/1.5 var(--body); }
a { color: inherit; text-decoration-color: var(--kerb); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--kerb); }
:focus-visible { outline: 3px solid var(--wet); outline-offset: 2px; border-radius: 2px; }
h1, h2 { font-family: var(--display); font-style: italic; font-weight: 900; line-height: .95; margin: 0 0 .35em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.8rem, 8vw, 4.6rem); }
h2 { font-size: 2rem; margin-top: 1.3em; font-weight: 800; }
h2:first-child, .block > h2:first-of-type { margin-top: 0; }
h2.small { font-size: 1.3rem; margin-top: 1.2em; font-style: normal; font-weight: 700; }
p { margin: 0 0 .9em; max-width: 68ch; }

.top { background: var(--tarmac); color: var(--paper); }
.top-in { max-width: 1180px; margin: 0 auto; padding: 14px 20px 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 34px; }
.mark { font: italic 900 2.15rem/1 var(--display); padding-bottom: 8px; text-decoration: none; letter-spacing: -.01em; color: var(--plate); }
.mark span { color: #fff; font: 700 2.15rem/1 "Caveat", cursive; margin-left: 2px; display: inline-block; transform: rotate(-5deg) translateY(1px); }
.mark:hover { color: var(--plate); }
.top nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 26px; font: 600 1.3rem var(--display); }
.top nav a { text-decoration: none; padding: 10px 0 12px; border-bottom: 4px solid transparent; }
.top nav a:hover { color: var(--plate); }
.top nav a[aria-current] { border-bottom-color: var(--plate); }
/* the kerb: red and white blocks, like the edge of every corner on the calendar */
.kerb { height: 14px; background: repeating-linear-gradient(90deg, var(--kerb) 0 34px, #fff 34px 68px); }

main { max-width: 1180px; margin: 0 auto; padding: 26px 20px 60px; }
.block { background: var(--paper); border-radius: 8px; padding: 24px 26px; margin-bottom: 20px; }
.cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.cols.even { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.lede { color: var(--ink-soft); font-size: 1.05rem; }
.crumb, .note { color: var(--ink-soft); font-size: .88rem; margin-bottom: .3em; }
.note { margin-top: 2px; }
.picker { font: 600 1.05rem var(--display); display: flex; gap: 12px; flex-wrap: wrap; }
.picker strong { background: var(--tarmac); color: var(--paper); padding: 0 8px; border-radius: 3px; }

/* number plate: the one recurring object */
.plate { display: inline-grid; place-items: center; min-width: 2.1em; height: 1.55em; padding: 0 .3em; background: var(--plate); color: var(--tarmac); font: 800 1.05rem/1 var(--display); border-radius: .4em / .55em; border-bottom: 4px solid var(--team, var(--tarmac)); font-variant-numeric: tabular-nums; }
.plate.huge { font-size: 4.2rem; border-bottom-width: 12px; min-width: 1.9em; }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 28px; align-items: center; background: var(--paper); border-radius: 6px; padding: 28px 30px; margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-style: italic; margin-bottom: .15em; }
.hero-kicker { font: 600 1.1rem var(--display); color: var(--ink-soft); margin-bottom: .2em; }
.hero-sub { font-size: 1.1rem; }
.countdown { font: italic 800 1.9rem/1.1 var(--display); font-variant-numeric: tabular-nums; }
.countdown.big { font-size: 2.6rem; }
.hero-links { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-top: 1.1em; }
.btn { display: inline-block; background: var(--tarmac); color: #fff; font: 700 1.3rem/1.1 var(--display); padding: 12px 20px; border-radius: 5px; text-decoration: none; border: 2px solid var(--tarmac); }
.btn.alt { background: transparent; color: var(--tarmac); }
.btn:hover { background: var(--kerb-deep); border-color: var(--kerb-deep); color: #fff; }
.hero-map { text-decoration: none; display: block; text-align: right; color: var(--ink-soft); font-size: .9rem; }
.livedot { display: inline-block; width: .6em; height: .6em; border-radius: 50%; background: var(--kerb); margin-right: .4em; animation: blink 1.2s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.trackmap { width: 100%; height: auto; display: block; }
.tm-edge { fill: none; stroke: var(--kerb); stroke-width: 30; stroke-linejoin: round; stroke-dasharray: 26 26; }
.tm-road { fill: none; stroke: var(--tarmac); stroke-width: 22; stroke-linejoin: round; }
.tm-line { fill: #fff; }
.track-detail { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: start; margin: 14px 0 6px; }
.facts, .stats { display: flex; flex-wrap: wrap; gap: 8px 30px; margin: 14px 0; }
.facts dt, .stats dt { color: var(--ink-soft); font-size: .85rem; }
.facts dd, .stats dd { margin: 0; font: 700 1.6rem/1.1 var(--display); }
.stats dd { font-size: 2.4rem; }
.stats > div { display: flex; flex-direction: column; }
.bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.bars li { display: grid; grid-template-columns: 7.5em 1fr; align-items: center; gap: 10px; font-size: .92rem; }
meter { width: 100%; height: 12px; }
meter::-webkit-meter-bar { background: var(--concrete); border: 0; border-radius: 2px; height: 12px; }
meter::-webkit-meter-optimum-value { background: var(--tarmac); border-radius: 2px; }
meter::-moz-meter-bar { background: var(--tarmac); }

.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grid th { text-align: left; font: 600 1.05rem var(--display); color: var(--ink-soft); padding: 4px 10px 6px; border-bottom: 2px solid var(--tarmac); white-space: nowrap; }
.grid td { padding: 7px 10px; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.grid tr:last-child td { border-bottom: 0; }
.grid .n { text-align: right; white-space: nowrap; }
.grid .pos { font: italic 900 1.4rem var(--display); width: 2.2em; color: var(--ink-soft); }
.grid.tight td { padding: 5px 8px; }
.grid td:nth-child(2):has(.plate) { width: 3.4em; }
.fl { color: #7a2fd0; font-weight: 600; }
.dnf { color: var(--kerb); }
.scroll { overflow-x: auto; }
.swatch { display: inline-block; width: .8em; height: .8em; border-radius: 2px; margin-right: .5em; vertical-align: baseline; }

.podium { list-style: none; padding: 0; margin: 10px 0 14px; display: grid; gap: 8px; }
.podium li, .riders li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.podium li div, .riders li div { display: flex; flex-direction: column; line-height: 1.25; }
.podium li span, .riders li span { color: var(--ink-soft); font-size: .86rem; }
.podium li:first-child strong { font-size: 1.25rem; }
.podium em { font-style: normal; font: 600 1.1rem var(--display); font-variant-numeric: tabular-nums; }

.newslist { list-style: none; padding: 0; margin: 0 0 12px; }
.newslist li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 10px 0; border-top: 2px solid var(--tarmac); }
.newslist li span { color: var(--ink-soft); font-size: .86rem; white-space: nowrap; }
.newslist a { text-decoration: none; font: 700 1.35rem/1.1 var(--display); }
.newslist a:hover { text-decoration: underline; }
.plainlist { list-style: none; padding: 0; margin: 0; }
.plainlist li { padding: 3px 0; }
ol.plain { margin: 0 0 1em; padding-left: 1.4em; }
.story p { font-size: 1.08rem; line-height: 1.65; }
.story h1 { max-width: 22ch; }

.sessions { list-style: none; margin: 0; padding: 0; }
.sessions li { display: grid; grid-template-columns: 10em 1fr auto; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.sessions li .countdown { font-size: 1.05rem; }
.sessions strong { font: 700 1.45rem var(--display); }

.teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; margin-top: 12px; }
.team { border-top: 8px solid var(--team); padding-top: 10px; }
.team h2 { font-size: 1.7rem; margin: 0; }
.riders { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.rider-head { display: flex; gap: 26px; align-items: center; flex-wrap: wrap; }
.rider-head h1 { margin-bottom: .1em; }

.spoiler { margin-top: 18px; }
.spoiler summary { cursor: pointer; font: 700 1.2rem var(--display); padding: 8px 0; }

.foot { background: var(--tarmac); color: #c9ccd0; font-size: .88rem; }
.foot p { max-width: 1180px; margin: 0 auto; padding: 22px 20px 30px; }
.foot a { color: #fff; }
.foot a:hover { color: var(--plate); }

/* ---------- timing screen ---------- */
.viewer { background: var(--tarmac); color: #edebe4; border-radius: 6px; margin: 14px 0 6px; font-family: var(--display); font-variant-numeric: tabular-nums; overflow: hidden; }
.viewer-wait, .viewer-empty { padding: 34px 24px; }
.viewer-empty p { margin: 0 0 .3em; }
.v-bar { display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; padding: 12px 16px; border-bottom: 1px solid #3a3e46; }
.v-bar .v-title { font-weight: 700; font-size: 1.25rem; }
.v-bar .v-lap { font-weight: 800; font-size: 1.45rem; color: var(--plate); margin-left: auto; }
.v-chip { font-size: 1rem; padding: 1px 9px; border-radius: 3px; background: #3a3e46; }
.v-chip.wet { background: var(--wet); }
.v-chip.live { background: var(--kerb); }
.v-main { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
.v-tower { position: relative; border-right: 1px solid #3a3e46; }
.v-head, .v-row { display: grid; grid-template-columns: 2em 3.1em 3.4em minmax(4.6em, 1fr) minmax(4.6em, 1fr) 5.2em 4.4em 1.6em; align-items: center; gap: 6px; padding: 0 12px; height: 28px; }
.v-head { color: #9aa0aa; font-size: .88rem; height: 26px; border-bottom: 1px solid #3a3e46; }
.v-head span:nth-child(n+4), .v-row span:nth-child(n+4) { text-align: right; }
.v-rows { position: relative; }
.v-row { position: absolute; left: 0; right: 0; top: 0; font-size: 1.08rem; transition: transform .45s cubic-bezier(.2, .7, .2, 1); cursor: pointer; border-left: 5px solid var(--team); }
.v-row:hover, .v-row.sel { background: #343840; }
.v-row.out { opacity: .45; }
.v-row.fin .v-pos { color: var(--plate); }
.v-pos { font-weight: 800; }
.v-num { justify-self: start; }
.v-num .plate { font-size: .92rem; height: 1.35em; border-bottom-width: 0; min-width: 2em; }
.v-code { font-weight: 700; letter-spacing: .02em; }
.v-secs { display: flex; gap: 3px; justify-content: flex-end; }
.v-secs i { width: 12px; height: 12px; border-radius: 2px; background: #3a3e46; }
.v-secs i.y { background: var(--plate); }
.v-secs i.g { background: var(--green); }
.v-secs i.p { background: var(--purple); }
.v-last.g { color: var(--green); }
.v-last.p { color: var(--purple); }
.v-tire { font-weight: 800; text-align: center !important; border-radius: 50%; width: 1.35em; height: 1.35em; line-height: 1.35em; font-size: .85rem; background: #3a3e46; }
.v-tire.S { color: #ff6a5e; } .v-tire.M { color: var(--plate); } .v-tire.H { color: #fff; } .v-tire.W { color: #6cb6ff; }
.v-side { display: flex; flex-direction: column; min-width: 0; }
.v-map { padding: 8px 10px 0; }
.v-map svg { width: 100%; height: auto; display: block; }
.v-map .road { fill: none; stroke: #4a4f59; stroke-width: 20; stroke-linejoin: round; }
.v-map .road.wet { stroke: #3d5f86; }
.v-map .sline { fill: #fff; }
.v-map .dot circle { stroke: #111; stroke-width: 2.5; }
.v-map .dot text { font: 800 19px var(--display); fill: #fff; text-anchor: middle; dominant-baseline: central; paint-order: stroke; stroke: #111; stroke-width: 3px; pointer-events: none; }
.v-map .dot.sel circle { stroke: var(--plate); stroke-width: 5; }
.v-map .dot.out { opacity: .35; }
.v-feed { list-style: none; margin: 0; padding: 6px 14px 10px; flex: 1; min-height: 150px; max-height: 250px; overflow-y: auto; font-family: var(--body); font-size: .9rem; border-top: 1px solid #3a3e46; }
.v-feed li { padding: 4px 0; border-bottom: 1px solid #2f333a; display: grid; grid-template-columns: 3.6em 1fr; gap: 8px; }
.v-feed li time { color: #9aa0aa; font-family: var(--display); }
.v-feed li.l2 { color: var(--plate); font-weight: 600; }
.v-feed li.l0 { color: #b9bdc5; }
.v-ctl { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 10px 14px; border-top: 1px solid #3a3e46; }
.v-ctl button { font: 700 1rem var(--display); background: #3a3e46; color: #edebe4; border: 0; border-radius: 3px; padding: 6px 12px; cursor: pointer; min-width: 2.6em; }
.v-ctl button:hover { background: #4a4f59; }
.v-ctl button[aria-pressed="true"] { background: var(--plate); color: var(--tarmac); }
.v-ctl input[type=range] { flex: 1; min-width: 140px; accent-color: var(--plate); }
.v-clock { min-width: 4.2em; text-align: right; }
.v-over { text-align: center; padding: 60px 20px; font-size: 1.6rem; font-weight: 700; }

@media (max-width: 860px) {
  .cols, .cols.even, .hero, .track-detail { grid-template-columns: 1fr; }
  .hero { padding: 22px 20px; }
  .hero-map { order: -1; }
  .v-main { grid-template-columns: 1fr; }
  .v-tower { border-right: 0; }
  .v-side { border-top: 1px solid #3a3e46; }
  .hide-s { display: none; }
  .sessions li { grid-template-columns: 1fr; gap: 0; }
  .block { padding: 18px 16px; }
  main { padding: 16px 12px 40px; }
}
@media (max-width: 520px) {
  .v-head, .v-row { grid-template-columns: 1.5em 2.6em 2.9em minmax(3.8em, 1fr) 4.5em 1.4em; padding: 0 6px 0 4px; gap: 4px; }
  .v-row { font-size: .98rem; }
  .v-head span:nth-child(5), .v-row span:nth-child(5), .v-head span:nth-child(7), .v-row span:nth-child(7) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .v-row { transition: none; }
  .livedot { animation: none; }
}

/* ---------- history, following, race control ---------- */
.banner { margin: 0; max-width: none; background: var(--plate); color: var(--tarmac); font: 600 1.05rem var(--display); text-align: center; padding: 8px 16px; }
form.picker { align-items: baseline; margin-bottom: 1em; }
form.picker select { font: 700 1.1rem var(--display); padding: 3px 6px; border: 2px solid var(--tarmac); border-radius: 3px; background: var(--paper); color: var(--tarmac); }
.review { border-left: 6px solid var(--plate); padding: 4px 0 4px 18px; margin: 6px 0 22px; }
.review h2 { margin-top: 0; }
.eras { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.eras li { display: grid; grid-template-columns: minmax(0, 17em) minmax(0, 1fr); gap: 6px 24px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.eras li:last-child { border-bottom: 0; }
.eras strong { font: 700 1.2rem/1.2 var(--display); }
.memorial, .obit { border-top: 8px solid var(--tarmac); }
.obit h1 { font-style: normal; }
a.fav, .fav-row a[data-rider] { background: linear-gradient(transparent 60%, var(--plate) 60%); text-decoration: none; }
.fav-row td.pos { color: var(--tarmac); }
.btn.follow { cursor: pointer; border: 0; }
.btn.follow[aria-pressed="true"] { background: var(--plate); color: var(--tarmac); }
.v-row.fav { background: #3d3a22; }
.v-row.fav .v-code { color: var(--plate); }
.v-map .dot.fav circle { stroke: var(--plate); stroke-width: 5; }
.admin input, .admin textarea { font: inherit; padding: 6px 8px; border: 2px solid var(--tarmac); border-radius: 3px; background: #fff; color: var(--tarmac); }
.admin input[type=text], .admin textarea { width: min(100%, 44rem); }
.admin input[type=number] { width: 7em; }
.admin pre, .block pre { background: var(--tarmac); color: #edebe4; padding: 12px 14px; border-radius: 4px; overflow-x: auto; font-size: .85rem; }
.admin button { cursor: pointer; border: 0; }
.btn.danger { background: var(--kerb); }
#msg.bad { color: var(--kerb); font-weight: 600; }
#msg.good { color: #1c7a45; }
@media (max-width: 860px) { .eras li { grid-template-columns: 1fr; } }

/* ---------- artwork and charts ---------- */
.flag { vertical-align: -2px; margin-right: 6px; flex: none; }
.who { display: inline-flex; align-items: center; gap: 6px; }
.who .flag { margin-right: 0; }
.badge, .helmet, .poster { display: block; flex: none; }
.note .badge { display: inline-block; vertical-align: -6px; }
.kit { display: inline-flex; align-items: center; gap: 6px; }
.kit.big { gap: 14px; }
.maker { display: flex; gap: 14px; align-items: center; }
.team-top { display: flex; justify-content: space-between; gap: 10px; }
.team .bike { margin: 6px 0 2px; }
.rider-head { justify-content: flex-start; }
.rider-bike { margin-left: auto; text-align: right; }

.weekend { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 32px; align-items: start; }
.poster-link { display: block; margin-top: 12px; box-shadow: 0 2px 0 var(--rule), 6px 8px 0 rgba(30, 33, 38, .12); }
.poster-link .poster { width: 100%; height: auto; }
.fig { margin: 8px 0 26px; }
.chart { width: 100%; height: auto; display: block; }
.chart .ln:hover .vis { stroke: var(--tarmac); stroke-width: 3; }
.chart .ln { cursor: default; }
@media (max-width: 860px) {
  .weekend { grid-template-columns: 1fr; }
  .poster-link { max-width: 250px; }
  .rider-bike { margin-left: 0; text-align: left; }
}

/* painted bikes: a cut-out with the team colour and a second colour multiplied through two masks */
.bike { display: inline-block; position: relative; isolation: isolate; container-type: inline-size; max-width: 100%; background: center / 100% 100% no-repeat; vertical-align: middle; }
.bike i { position: absolute; inset: 0; mix-blend-mode: multiply; -webkit-mask: center / 100% 100% no-repeat; mask: center / 100% 100% no-repeat; }
.bike .t { background: var(--c); }
.bike .s { background: var(--c2); }
.bike b { position: absolute; transform: translate(-50%, -50%) skewX(-6deg); font: italic 900 1rem/1 var(--display); color: var(--on); }

/* accounts, threads, On Paper */
.top nav .me { margin-left: auto; background: var(--plate); color: var(--tarmac); padding: 8px 14px; border-radius: 5px; border-bottom: 0; margin-bottom: 8px; font-weight: 700; }
.top nav .me:hover { background: #fff; color: var(--tarmac); }
.top nav { flex: 1; }
.block.narrow { max-width: 560px; margin-left: auto; margin-right: auto; }
.form { display: grid; gap: 8px; margin: 14px 0; max-width: 460px; }
.form.inline { display: block; }
.form label { font-weight: 600; font-size: .95rem; }
.form input[type="text"], .form input[type="email"], .form select, .postform textarea { font: inherit; padding: 10px 12px; border: 1px solid var(--rule); border-radius: 4px; background: #fff; color: var(--tarmac); width: 100%; min-height: 44px; }
.form input:focus-visible, .form select:focus-visible, .postform textarea:focus-visible, .btn:focus-visible { outline: 3px solid var(--wet); outline-offset: 2px; }
.form .code { font: 800 2rem var(--display); letter-spacing: .3em; max-width: 9em; }
.form .btn, .postform .btn { border: 0; cursor: pointer; justify-self: start; margin-top: 6px; }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin-top: 6px; }
.form .check input { margin-top: 5px; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.flash { background: #e4f3ea; border-left: 4px solid var(--green); padding: 10px 14px; border-radius: 3px; }
.flash.bad { background: #fbe9e6; border-left-color: var(--kerb); }
.plainlist { list-style: none; padding: 0; columns: 2; }
.danger-zone { margin-top: 18px; border-top: 1px solid var(--rule); padding-top: 12px; }
.danger-zone summary { cursor: pointer; color: var(--kerb); font-weight: 600; }
.threads li span:last-child { color: var(--ink-soft); }
.talkbox h2 { margin-top: 0; }
.posts { list-style: none; padding: 0; margin: 0 0 14px; }
.post { padding: 10px 0; border-top: 1px solid var(--rule); }
.post:first-child { border-top: 0; }
.post-head { display: flex; gap: 10px; align-items: baseline; font-size: .9rem; }
.post-head strong { font: 700 1.05rem var(--display); }
.post-head time { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.post.mine .post-head strong { background: var(--plate); padding: 0 6px; border-radius: 2px; }
.post-act { margin-left: auto; background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: .8rem; cursor: pointer; text-decoration: underline; padding: 6px 0 6px 12px; }
.post-act:hover { color: var(--kerb); }
.post-body { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; }
.talk-wait { color: var(--ink-soft); padding: 8px 0; }
.postform textarea { resize: vertical; max-width: 70ch; display: block; }
.postform-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.talk-msg { color: var(--kerb); font-weight: 600; }
.op-next { background: var(--tarmac); color: var(--paper); border-radius: 6px; padding: 18px 20px; margin: 14px 0; }
.op-next h2 { margin-top: 0; color: var(--plate); }
.op-next a { color: var(--plate); }
.op-next .note, .op-next .talk-msg { color: #d9d6cc; }
.op-next .btn { background: var(--plate); color: var(--tarmac); }
.op-next .btn:hover { background: #fff; color: var(--tarmac); }
@media (max-width: 900px) {
  .plainlist { columns: 1; }
  .top nav { flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; gap: 4px 18px; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: 2px; }
  .top nav::-webkit-scrollbar { display: none; }
  .top nav a { white-space: nowrap; }
}
.modrow { border-top: 1px solid var(--rule); padding-top: 8px; overflow-wrap: anywhere; }
.modrow .btn { font-size: .85rem; padding: 4px 10px; border: 0; cursor: pointer; }
[hidden] { display: none !important; }

/* ---------- the pit board: home page ---------- */
body { display: flex; flex-direction: column; min-height: 100vh; }
main { flex: 1; width: 100%; }
main.bleed { max-width: none; padding: 0; }
.wrap { max-width: 1180px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }
.pb-hero { background: var(--plate); overflow: hidden; }
.pb-hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 44px; padding-top: 42px; padding-bottom: 46px; }
.pb-hero-text { flex: 1 1 460px; min-width: 0; container-type: inline-size; }
.pb-hero-side { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; gap: 16px; align-items: flex-end; }
.pb-kicker { font: 700 1.45rem var(--display); margin: 0 0 10px; }
.pb-hero h1 { margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.pb-big { font-size: clamp(4.2rem, calc(178cqi / var(--n)), 15.5rem); line-height: .8; letter-spacing: -.02em; }
.pb-small { font-size: clamp(2.7rem, 13cqi, 4.9rem); font-weight: 800; line-height: .9; letter-spacing: 0; }
.pb-sub { font-size: 1.12rem; font-weight: 500; margin: 18px 0 0; }
.pb-links { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 0; max-width: none; }
.pb-hero a:hover { color: inherit; }
.pb-hero .btn:hover { color: #fff; }
.pb-map { width: 100%; max-width: 560px; height: auto; display: block; transform: rotate(-6deg); margin: 6px 0 2px; }
.pb-road { fill: none; stroke: var(--tarmac); stroke-width: 30; stroke-linejoin: round; }
.pb-centre { fill: none; stroke: var(--plate); stroke-width: 3; stroke-dasharray: 16 16; }
.pb-fact { margin: 0; font-weight: 600; }
.pitboard { display: flex; gap: 10px; flex-wrap: wrap; }
.pitboard div { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 104px; height: 112px; background: var(--tarmac); border-radius: 8px; }
.pitboard b { font: italic 900 5rem/.9 var(--display); color: var(--plate); font-variant-numeric: tabular-nums; }
.pitboard span { font-size: .8rem; font-weight: 600; color: #e9e6dc; }

.pb-last { background: var(--tarmac); color: #fff; }
.pb-last .wrap { padding-top: 40px; padding-bottom: 44px; }
.pb-last-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 10px 30px; margin-bottom: 22px; }
.pb-last-head h2 { font-size: clamp(3rem, 8vw, 4.75rem); font-weight: 900; margin: 2px 0 0; line-height: .9; }
.pb-last-head > a { font: 700 1.35rem var(--display); color: var(--plate); text-decoration-color: var(--plate); }
.pb-over { margin: 0; color: #c9ccd0; font-size: .92rem; }
.pb-podium { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 18px; }
.pb-step { flex: 1 1 260px; min-width: 0; position: relative; background: var(--tarmac-2); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
.pb-step.first { flex-grow: 1.35; }
.pb-ghost { position: absolute; right: 10px; top: -38px; font: italic 900 13.5rem/1 var(--display); color: #2f333b; }
.pb-step .bike { position: relative; }
.pb-who { display: flex; align-items: center; gap: 10px; position: relative; }
.pb-who strong { font: 700 1.9rem/1 var(--display); }
.pb-step.first .pb-who strong { font-size: 2.25rem; }
.pb-who a { text-decoration: none; }
.pb-last a:hover { color: var(--plate); }
.pb-meta { display: flex; justify-content: space-between; gap: 12px; color: #c9ccd0; font-size: .9rem; position: relative; }
.pb-meta em { font-style: normal; color: #fff; font-weight: 600; font-variant-numeric: tabular-nums; }
.pb-last a.fav, .pb-last .fav-row a[data-rider] { background: none; color: var(--plate); }

.pb-lower { display: flex; flex-wrap: wrap; gap: 36px 48px; padding-top: 40px; padding-bottom: 52px; }
.pb-paper { flex: 999 1 520px; min-width: 0; }
.pb-paper h2, .pb-ranks h2 { font-size: clamp(2.6rem, 6vw, 3.75rem); font-weight: 900; margin: 0 0 10px; }
.pb-ranks h2 { font-size: 2.75rem; }
.pb-paper ol { list-style: none; margin: 0; padding: 0; }
.pb-paper li { display: flex; flex-direction: column; gap: 2px; padding: 15px 0; border-top: 2px solid var(--tarmac); }
.pb-paper li span { font-size: .85rem; color: var(--ink-soft); }
.pb-paper li a { font: 700 1.85rem/1.03 var(--display); text-decoration: none; }
.pb-paper li.lead a { font-size: clamp(2.1rem, 5vw, 2.9rem); }
.pb-more { margin: 0; padding-top: 14px; border-top: 2px solid var(--tarmac); font: 700 1.35rem var(--display); max-width: none; }
.pb-aside { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.pb-onpaper { background: var(--kerb-deep); color: #fff; border-radius: 10px; padding: 24px 24px 26px; }
.pb-onpaper h2 { font-size: 3.2rem; font-weight: 900; line-height: .92; margin: 0 0 10px; }
.pb-onpaper .btn { background: #fff; color: var(--tarmac); border-color: #fff; }
.pb-onpaper .btn:hover { background: var(--plate); border-color: var(--plate); color: var(--tarmac); }
.pb-ranks ol { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pb-ranks li { display: flex; align-items: center; gap: 12px; padding: 9px 14px; background: #fff; border-radius: 6px; }
.pb-ranks li.first { background: var(--tarmac); color: #fff; }
.pb-ranks li.first a:hover { color: var(--plate); }
.pb-ranks b { font: italic 900 2rem/1 var(--display); width: 24px; }
.pb-ranks li span { flex: 1; font-weight: 600; }
.pb-ranks li a { text-decoration: none; }
.pb-ranks em { font: 700 1.75rem/1 var(--display); font-style: normal; font-variant-numeric: tabular-nums; }

/* the leader's row on the timing tower wears the plate */
.v-row.lead { background: var(--plate); color: var(--tarmac); }
.v-row.lead:hover, .v-row.lead.sel { background: #ffd83a; }
.v-row.lead .v-pos, .v-row.lead .v-code { color: var(--tarmac); }
.v-row.lead .plate { background: var(--tarmac); color: var(--plate); }
.v-row.lead .v-last.g, .v-row.lead .v-last.p { color: var(--tarmac); font-weight: 700; }
.v-row.lead .v-secs i { background: rgba(20, 22, 26, .25); }
.v-row.lead .v-secs i.g { background: #0f7a3d; } .v-row.lead .v-secs i.p { background: #6a1fc2; } .v-row.lead .v-secs i.y { background: var(--tarmac); }
.v-row.lead .v-tire { background: var(--tarmac); }
.v-pos { font-style: italic; font-weight: 900; font-size: 1.25rem; }
.op-next { border-radius: 10px; }
.op-next h2 { font-size: 2.6rem; font-weight: 900; }
@media (max-width: 640px) {
  .pb-hero .wrap { padding-top: 26px; padding-bottom: 30px; }
  .pb-hero-side { align-items: flex-start; }
  .pb-map { max-width: none; width: 118%; margin: -6px -9% -4px; opacity: .9; }
  .pitboard { gap: 8px; }
  .pitboard div { width: 76px; height: 86px; }
  .pitboard b { font-size: 3.7rem; }
  .pb-last .wrap { padding-top: 28px; padding-bottom: 30px; }
  .pb-step { flex-basis: 150px; padding: 14px; }
  .pb-step.first { flex-basis: 100%; }
  .pb-who strong { font-size: 1.5rem; }
  .pb-ghost { font-size: 10rem; top: -26px; }
  .pb-lower { padding-top: 28px; }
}
.pb-hero-side > a { display: block; width: 100%; max-width: 580px; }
.grid td .who a, .pb-who a { text-wrap: balance; }

/* the three classes */
.top-in { row-gap: 0; }
.top nav.classes { flex: 1 1 100%; flex-wrap: nowrap; gap: 0 4px; border-top: 1px solid #2f333b; margin: 0 -20px; padding: 0 20px; overflow-x: auto; scrollbar-width: none; font-size: 1.05rem; }
.top nav.classes::-webkit-scrollbar { display: none; }
.top nav.classes a { color: #c9ccd0; padding: 0 14px; border-bottom: 0; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }
.top nav.classes a:hover { color: #fff; }
.top nav.classes a[aria-current] { background: var(--plate); color: var(--tarmac); }
.pb-support { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.pb-support li { flex: 1 1 280px; background: var(--tarmac-2); border-radius: 8px; padding: 12px 16px; color: #c9ccd0; font-size: .9rem; }
.pb-support a { text-decoration: none; display: block; }
.pb-support a span { font: 700 1rem var(--display); color: var(--plate); display: block; }
.pb-support strong { font: 700 1.5rem/1.1 var(--display); color: #fff; }

/* the reference file: who a rider is, what a circuit's corners are called */
.file{max-width:60ch;color:var(--ink-soft);font-style:italic}
.byline{font-family:"Caveat",cursive;font-size:1.35rem;margin:.2rem 0 1rem}
.corners{columns:2;column-gap:2rem;padding-left:1.6rem;max-width:44rem}
.corners li{break-inside:avoid;padding:.1rem 0}
@media(min-width:800px){.corners{columns:3}}

/* The desk screen: the writing desk shown as a timing tower. Each line carries a
   flag: green went out first time, yellow needed a correction, red was refused. */
.desk h1 { margin-bottom: .2em; }
.deskstrip { display: flex; flex-wrap: wrap; gap: 4px 18px; max-width: none; background: var(--tarmac); color: #edebe4; padding: 10px 14px; border-radius: 4px; border-left: 10px solid var(--rule); font-size: .95rem; }
.deskstrip strong { font: 800 1.25rem/1.1 var(--display); font-style: italic; flex-basis: 100%; }
.deskstrip.busy { border-left-color: var(--green); }
.deskstrip.idle { border-left-color: var(--plate); }
.deskstrip .warn { color: var(--plate); font-weight: 600; }
.desktabs { display: flex; gap: 4px; overflow-x: auto; margin: 14px 0; border-bottom: 3px solid var(--tarmac); scrollbar-width: none; }
.admin .desktabs button { flex: none; background: transparent; color: var(--tarmac); font: 700 1.15rem/1 var(--display); padding: 10px 14px; border-radius: 4px 4px 0 0; }
.admin .desktabs button[aria-selected=true] { background: var(--tarmac); color: var(--plate); }
.deskfilter { display: flex; gap: 16px; flex-wrap: wrap; font-size: .95rem; }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 0 12px; border-top: 1px solid var(--rule); padding: 8px 0; }
.feed li.empty { display: block; color: var(--ink-soft); }
.feed .flag { align-self: start; font: 700 .95rem/1 var(--display); text-align: center; padding: 6px 4px; border-radius: 3px; background: var(--rule); color: var(--tarmac); }
.feed .o-published .flag { background: var(--green); }
.feed .o-corrected .flag { background: var(--plate); }
.feed .o-refused .flag, .feed .o-error .flag { background: var(--kerb); color: #fff; }
.feed .what { min-width: 0; }
.admin .feed .title { display: block; width: 100%; text-align: left; background: none; color: var(--tarmac); font: 600 1.02rem/1.3 var(--body); padding: 0; text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
.feed .title[aria-expanded=true] { text-decoration-color: var(--kerb); }
.feed .meta, .filecard .meta { color: var(--ink-soft); font-size: .82rem; margin: 2px 0 0; max-width: none; overflow-wrap: anywhere; }
.feed .why { font-size: .9rem; margin: 4px 0 0; overflow-wrap: anywhere; max-width: none; }
.feed .o-refused .why, .feed .o-error .why { color: var(--kerb-deep); }
.detail { margin-top: 10px; }
.pair { display: grid; gap: 12px; }
@media (min-width: 900px) { .pair { grid-template-columns: 1fr 1fr; } }
.copy { background: var(--paper); border: 1px solid var(--rule); border-top: 5px solid var(--rule); padding: 10px 12px; border-radius: 3px; }
.copy.published { border-top-color: var(--green); }
.copy.refused { border-top-color: var(--kerb); }
.copy h3 { font: 700 .82rem/1 var(--body); color: var(--ink-soft); margin: 0 0 8px; }
.copy .head { font: 800 1.35rem/1.05 var(--display); font-style: italic; }
.copy p { font-size: .95rem; margin-bottom: .6em; }
.detail details { margin: 10px 0; }
.detail summary { cursor: pointer; font-weight: 600; }
.detail pre { white-space: pre-wrap; font-size: .78rem; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; max-width: none; }
.admin .acts .btn, .admin .btn.mini { font-size: .95rem; padding: 7px 12px; }
.admin .btn.mini { font-size: .8rem; padding: 3px 8px; }
.admin .btn.alt { background: transparent; color: var(--tarmac); border: 2px solid var(--tarmac); }
.admin button:disabled { opacity: .5; cursor: progress; }
.lane { margin: 0 0 22px; }
.lane .bar { height: 14px; background: var(--rule); border-radius: 2px; overflow: hidden; max-width: 44rem; margin-bottom: 6px; }
.lane .bar i { display: block; height: 100%; background: var(--green); }
.lane .next { padding-left: 1.3rem; margin: 0; font-size: .95rem; }
.lane .next li { padding: 3px 0; }
.lane .next small { color: var(--ink-soft); }
.bigsum { font: 800 1.7rem/1.1 var(--display); font-style: italic; max-width: none; }
.filecard { border-top: 1px solid var(--rule); padding: 10px 0; }
.filecard h3 { font: 800 1.3rem/1 var(--display); font-style: italic; margin: 0 0 4px; }
.filecard p { font-size: .95rem; margin-bottom: .3em; }
.desk select { font: inherit; padding: 6px 8px; border: 2px solid var(--tarmac); border-radius: 3px; background: #fff; }
/* bikes:generated (scripts/bikes.py) */
.bike-e1a { aspect-ratio: 475 / 275; background-image: url(/bikes/e1a.webp); } .bike-e1a .t { -webkit-mask-image: url(/bikes/e1am.png); mask-image: url(/bikes/e1am.png); } .bike-e1a .s { -webkit-mask-image: url(/bikes/e1ag.png); mask-image: url(/bikes/e1ag.png); }
.bike-e1b { aspect-ratio: 475 / 277; background-image: url(/bikes/e1b.webp); } .bike-e1b .t { -webkit-mask-image: url(/bikes/e1bm.png); mask-image: url(/bikes/e1bm.png); } .bike-e1b .s { -webkit-mask-image: url(/bikes/e1bg.png); mask-image: url(/bikes/e1bg.png); }
.bike-e2a { aspect-ratio: 482 / 274; background-image: url(/bikes/e2a.webp); } .bike-e2a .t { -webkit-mask-image: url(/bikes/e2am.png); mask-image: url(/bikes/e2am.png); } .bike-e2a .s { -webkit-mask-image: url(/bikes/e2ag.png); mask-image: url(/bikes/e2ag.png); }
.bike-e2b { aspect-ratio: 482 / 273; background-image: url(/bikes/e2b.webp); } .bike-e2b .t { -webkit-mask-image: url(/bikes/e2bm.png); mask-image: url(/bikes/e2bm.png); } .bike-e2b .s { -webkit-mask-image: url(/bikes/e2bg.png); mask-image: url(/bikes/e2bg.png); }
.bike-e3a { aspect-ratio: 486 / 294; background-image: url(/bikes/e3a.webp); } .bike-e3a .t { -webkit-mask-image: url(/bikes/e3am.png); mask-image: url(/bikes/e3am.png); } .bike-e3a .s { -webkit-mask-image: url(/bikes/e3ag.png); mask-image: url(/bikes/e3ag.png); }
.bike-e3b { aspect-ratio: 487 / 294; background-image: url(/bikes/e3b.webp); } .bike-e3b .t { -webkit-mask-image: url(/bikes/e3bm.png); mask-image: url(/bikes/e3bm.png); } .bike-e3b .s { -webkit-mask-image: url(/bikes/e3bg.png); mask-image: url(/bikes/e3bg.png); }
.bike-e4a { aspect-ratio: 482 / 286; background-image: url(/bikes/e4a.webp); } .bike-e4a .t { -webkit-mask-image: url(/bikes/e4am.png); mask-image: url(/bikes/e4am.png); } .bike-e4a .s { -webkit-mask-image: url(/bikes/e4ag.png); mask-image: url(/bikes/e4ag.png); }
.bike-e4b { aspect-ratio: 482 / 286; background-image: url(/bikes/e4b.webp); } .bike-e4b .t { -webkit-mask-image: url(/bikes/e4bm.png); mask-image: url(/bikes/e4bm.png); } .bike-e4b .s { -webkit-mask-image: url(/bikes/e4bg.png); mask-image: url(/bikes/e4bg.png); }
.bike-e5a { aspect-ratio: 483 / 301; background-image: url(/bikes/e5a.webp); } .bike-e5a .t { -webkit-mask-image: url(/bikes/e5am.png); mask-image: url(/bikes/e5am.png); } .bike-e5a .s { -webkit-mask-image: url(/bikes/e5ag.png); mask-image: url(/bikes/e5ag.png); }
.bike-e5b { aspect-ratio: 485 / 301; background-image: url(/bikes/e5b.webp); } .bike-e5b .t { -webkit-mask-image: url(/bikes/e5bm.png); mask-image: url(/bikes/e5bm.png); } .bike-e5b .s { -webkit-mask-image: url(/bikes/e5bg.png); mask-image: url(/bikes/e5bg.png); }
.bike-m1a { aspect-ratio: 514 / 265; background-image: url(/bikes/m1a.webp); } .bike-m1a .t { -webkit-mask-image: url(/bikes/m1am.png); mask-image: url(/bikes/m1am.png); } .bike-m1a .s { -webkit-mask-image: url(/bikes/m1ag.png); mask-image: url(/bikes/m1ag.png); }
.bike-m1b { aspect-ratio: 521 / 273; background-image: url(/bikes/m1b.webp); } .bike-m1b .t { -webkit-mask-image: url(/bikes/m1bm.png); mask-image: url(/bikes/m1bm.png); } .bike-m1b .s { -webkit-mask-image: url(/bikes/m1bg.png); mask-image: url(/bikes/m1bg.png); }
.bike-m2a { aspect-ratio: 498 / 271; background-image: url(/bikes/m2a.webp); } .bike-m2a .t { -webkit-mask-image: url(/bikes/m2am.png); mask-image: url(/bikes/m2am.png); } .bike-m2a .s { -webkit-mask-image: url(/bikes/m2ag.png); mask-image: url(/bikes/m2ag.png); }
.bike-m2b { aspect-ratio: 505 / 273; background-image: url(/bikes/m2b.webp); } .bike-m2b .t { -webkit-mask-image: url(/bikes/m2bm.png); mask-image: url(/bikes/m2bm.png); } .bike-m2b .s { -webkit-mask-image: url(/bikes/m2bg.png); mask-image: url(/bikes/m2bg.png); }
.bike-m3a { aspect-ratio: 480 / 273; background-image: url(/bikes/m3a.webp); } .bike-m3a .t { -webkit-mask-image: url(/bikes/m3am.png); mask-image: url(/bikes/m3am.png); } .bike-m3a .s { -webkit-mask-image: url(/bikes/m3ag.png); mask-image: url(/bikes/m3ag.png); }
.bike-m3b { aspect-ratio: 495 / 266; background-image: url(/bikes/m3b.webp); } .bike-m3b .t { -webkit-mask-image: url(/bikes/m3bm.png); mask-image: url(/bikes/m3bm.png); } .bike-m3b .s { -webkit-mask-image: url(/bikes/m3bg.png); mask-image: url(/bikes/m3bg.png); }
.bike-s1a { aspect-ratio: 532 / 261; background-image: url(/bikes/s1a.webp); } .bike-s1a .t { -webkit-mask-image: url(/bikes/s1am.png); mask-image: url(/bikes/s1am.png); } .bike-s1a .s { -webkit-mask-image: url(/bikes/s1ag.png); mask-image: url(/bikes/s1ag.png); }
.bike-s1b { aspect-ratio: 555 / 270; background-image: url(/bikes/s1b.webp); } .bike-s1b .t { -webkit-mask-image: url(/bikes/s1bm.png); mask-image: url(/bikes/s1bm.png); } .bike-s1b .s { -webkit-mask-image: url(/bikes/s1bg.png); mask-image: url(/bikes/s1bg.png); }
.bike-s2a { aspect-ratio: 470 / 256; background-image: url(/bikes/s2a.webp); } .bike-s2a .t { -webkit-mask-image: url(/bikes/s2am.png); mask-image: url(/bikes/s2am.png); } .bike-s2a .s { -webkit-mask-image: url(/bikes/s2ag.png); mask-image: url(/bikes/s2ag.png); }
.bike-s2b { aspect-ratio: 458 / 257; background-image: url(/bikes/s2b.webp); } .bike-s2b .t { -webkit-mask-image: url(/bikes/s2bm.png); mask-image: url(/bikes/s2bm.png); } .bike-s2b .s { -webkit-mask-image: url(/bikes/s2bg.png); mask-image: url(/bikes/s2bg.png); }
.bike-s3a { aspect-ratio: 453 / 268; background-image: url(/bikes/s3a.webp); } .bike-s3a .t { -webkit-mask-image: url(/bikes/s3am.png); mask-image: url(/bikes/s3am.png); } .bike-s3a .s { -webkit-mask-image: url(/bikes/s3ag.png); mask-image: url(/bikes/s3ag.png); }
.bike-s3b { aspect-ratio: 486 / 269; background-image: url(/bikes/s3b.webp); } .bike-s3b .t { -webkit-mask-image: url(/bikes/s3bm.png); mask-image: url(/bikes/s3bm.png); } .bike-s3b .s { -webkit-mask-image: url(/bikes/s3bg.png); mask-image: url(/bikes/s3bg.png); }
/* bikes:end */

/* members: the account page, public profiles, the plate beside a name, and the moderators' screen */
.favplate { display: inline-block; vertical-align: middle; font: 700 .78rem/1 var(--display); letter-spacing: .02em; padding: 3px 7px 2px; border-radius: 3px; background: var(--team, var(--tarmac)); color: #fff; text-decoration: none; text-shadow: 0 0 2px rgba(0, 0, 0, .55); border: 1px solid rgba(0, 0, 0, .25); white-space: nowrap; }
h1 .favplate { font-size: 1rem; padding: 5px 10px 4px; margin-left: 6px; }
.post-head .post-who { font: 700 1.05rem var(--display); color: var(--tarmac); }
.posts.static { list-style: none; padding: 0; margin: 0; }
.account h2 { margin-top: 1.6em; }
.account .form h2:first-child { margin-top: .4em; }
.account select { width: 100%; font: inherit; padding: 9px 10px; border: 2px solid var(--tarmac); border-radius: 4px; background: #fff; }
.plainset { border: 0; padding: 0; margin: 12px 0 0; }
.plainset legend { font-weight: 600; padding: 0; }
.devices { list-style: none; padding: 0; margin: 0 0 12px; }
.devices li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; border-top: 1px solid var(--rule); }
.devices li span { display: block; color: var(--ink-soft); font-size: .88rem; }
.devices .tag { display: inline; background: var(--plate); color: var(--tarmac); font: 700 .75rem/1 var(--display); padding: 2px 6px; border-radius: 3px; }
.btn.small { font-size: .9rem; padding: 6px 10px; }
.btn.alt { background: transparent; color: var(--tarmac); border: 2px solid var(--tarmac); }
.memfind { display: flex; flex-wrap: wrap; gap: 8px; max-width: none; }
.memfind input { flex: 1 1 12rem; }
.members .feed li { grid-template-columns: 5.2rem 1fr; }
.members .facts { display: grid; grid-template-columns: max-content 1fr; gap: 3px 14px; font-size: .92rem; margin: 0 0 10px; }
.members .facts dt { color: var(--ink-soft); }
.members .facts dd { margin: 0; overflow-wrap: anywhere; font: 400 .92rem/1.4 var(--body); }
.members .memnote { display: flex; gap: 8px; align-items: flex-start; max-width: none; }
.members .memnote textarea { flex: 1; min-width: 0; }
.members .hours { width: 4.5rem; }
.members h3.sub { font: 700 .82rem/1 var(--body); color: var(--ink-soft); margin: 14px 0 6px; }
.members .copy { margin-bottom: 8px; }
.members .copy p { overflow-wrap: anywhere; white-space: pre-wrap; }
.members .logline { font-weight: 600; margin: 0; max-width: none; }
.members .lane textarea { display: block; width: 100%; max-width: 30rem; margin-top: 4px; }

/* a circuit's photograph, with its name set over the sky */
.trackshot { position: relative; margin: 0 0 16px; border-radius: 6px; overflow: hidden; background: var(--tarmac); }
.trackshot img { display: block; width: 100%; height: auto; aspect-ratio: 20 / 9; max-height: 440px; object-fit: cover; object-position: 50% 45%; }
.trackshot figcaption { position: absolute; inset: 0 0 auto 0; padding: 14px 16px 40px; color: #fff; background: linear-gradient(to bottom, rgba(10, 12, 16, .72), rgba(10, 12, 16, 0)); }
.trackshot strong { display: block; font: 900 clamp(1.7rem, 6vw, 3.2rem)/1 var(--display); font-style: italic; text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.trackshot span { display: block; margin-top: 4px; font-size: .95rem; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
@media (max-width: 520px) { .trackshot img { aspect-ratio: 16 / 10; } }

/* the front page opens on the next circuit: its photograph behind the pit board, darkened so the words win */
.pb-hero.shot { background: linear-gradient(100deg, rgba(14, 16, 20, .86) 0%, rgba(14, 16, 20, .62) 46%, rgba(14, 16, 20, .28) 100%), var(--shot) center 42% / cover no-repeat var(--tarmac); color: #fff; }
.pb-hero.shot .wrap { min-height: clamp(380px, 46vw, 560px); }
.pb-hero.shot .pb-big, .pb-hero.shot .pb-small { color: var(--plate); text-shadow: 0 2px 14px rgba(0, 0, 0, .55); }
.pb-hero.shot .pb-kicker, .pb-hero.shot .pb-sub, .pb-hero.shot .pb-fact { text-shadow: 0 1px 6px rgba(0, 0, 0, .7); }
.pb-hero.shot a { color: #fff; }
.pb-hero.shot .btn { background: var(--plate); color: var(--tarmac); }
.pb-hero.shot .btn.alt { background: rgba(14, 16, 20, .45); color: #fff; border-color: #fff; }
.pb-hero.shot .btn:hover { color: var(--tarmac); background: #fff; }
.pb-hero.shot .pb-road { stroke: var(--plate); filter: drop-shadow(0 3px 10px rgba(0, 0, 0, .6)); }
.pb-hero.shot .pb-centre { stroke: var(--tarmac); }
@media (max-width: 760px) { .pb-hero.shot { background: linear-gradient(180deg, rgba(14, 16, 20, .8) 0%, rgba(14, 16, 20, .55) 55%, rgba(14, 16, 20, .78) 100%), var(--shot) center / cover no-repeat var(--tarmac); } }

/* the world around the racing: teams, makers, records, the hall, the market, the paperwork */
.subnav { margin: 4px 0 18px; }
.subnav .btn, .world .btn.alt { font-size: 1rem; padding: 7px 14px; }
.otd { flex: 1 1 100%; margin: 0; max-width: none; padding: 12px 16px; background: var(--paper); border-left: 8px solid var(--plate); border-radius: 3px; font-size: 1.02rem; }
.otd strong { font: 800 1.1rem/1 var(--display); font-style: italic; margin-right: 6px; }
.world-head { display: flex; flex-wrap: wrap; gap: 14px 40px; align-items: flex-end; justify-content: space-between; border-top: 8px solid var(--team, var(--tarmac)); padding-top: 14px; }
.world-head > div { flex: 1 1 320px; min-width: 0; }
.world-head h1 { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.plainlist.wide { columns: 1; max-width: 46rem; }
.plainlist.wide strong { font: 700 1.05rem var(--display); display: inline-block; min-width: 3.2em; }
.decades { list-style: none; margin: 0 0 8px; padding: 0; max-width: 40rem; }
.decades li { display: grid; grid-template-columns: 4.2rem 1fr 2.4rem 4.5rem; align-items: center; gap: 8px; padding: 3px 0; }
.decades li::before { content: none; }
.decades i { display: block; height: 14px; min-width: 2px; background: var(--team, var(--tarmac)); border-radius: 0 3px 3px 0; grid-column: 2; }
.decades span { font: 700 1rem var(--display); }
.decades b { text-align: right; font-variant-numeric: tabular-nums; }
.decades small { color: var(--ink-soft); }
.records { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.record { background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--tarmac); border-radius: 4px; padding: 12px 14px; }
.record h2 { font-size: 1.35rem; margin: 0 0 8px; }
.record ol { list-style: none; margin: 0; padding: 0; }
.record li { display: grid; grid-template-columns: 3.6rem 1fr; gap: 0 10px; padding: 5px 0; border-top: 1px solid var(--rule); align-items: baseline; }
.record li b { font: 800 1.35rem/1 var(--display); font-style: italic; text-align: right; font-variant-numeric: tabular-nums; }
.record li.first b { font-size: 2rem; color: var(--kerb); }
.record li small { grid-column: 2; color: var(--ink-soft); font-size: .84rem; }
.record .note { margin: 8px 0 0; font-size: .8rem; }
.hofs { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; margin-bottom: 26px; }
.hof { background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 12px 14px; }
.hof.champ { border-top: 6px solid var(--plate); }
.memorial .hof { border-top: 6px solid var(--tarmac); }
.hof-top { display: flex; gap: 12px; align-items: center; }
.hof h3 { font: 800 1.4rem/1.05 var(--display); font-style: italic; margin: 0; }
.hof .note { margin: 2px 0 0; }
.hof-titles { margin: 10px 0 0; font-size: .95rem; }
.hof-titles strong { font-family: var(--display); font-size: 1.05rem; }
.hof-rec { margin: 6px 0 0; font-size: .92rem; color: var(--ink-soft); }
.hof .file { margin: 8px 0 0; font-size: .93rem; }
.market .seats { list-style: none; margin: 10px 0 0; padding: 0; }
.seats li { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.seats small { display: block; color: var(--ink-soft); font-size: .84rem; }
.seats b { font: 700 .95rem var(--display); padding: 3px 8px; border-radius: 3px; background: var(--rule); white-space: nowrap; }
.seats .open b { background: var(--plate); }
.dochead { border: 3px double var(--tarmac); padding: 14px 16px; text-align: center; margin-bottom: 16px; }
.dochead p { margin: 0 auto; font: 600 .82rem/1.4 var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.dochead h1 { margin: 6px 0; }
.doclist { padding-left: 0; list-style: none; columns: 2; column-gap: 28px; font-size: .95rem; }
.doclist li { padding: 2px 0; break-inside: avoid; }
@media (max-width: 640px) { .doclist { columns: 1; } }
.doc { background: #fff; border: 1px solid var(--rule); padding: 16px 18px; margin: 18px 0; box-shadow: 2px 3px 0 var(--rule); }
.doc > header { border-bottom: 2px solid var(--tarmac); margin-bottom: 12px; padding-bottom: 8px; }
.doc > header span { font: 700 .78rem/1 var(--body); letter-spacing: .1em; text-transform: uppercase; color: var(--kerb); }
.doc > header h2 { font: 700 1.25rem/1.2 var(--body); font-style: normal; margin: 4px 0; }
.doc > header p { margin: 0; font-size: .82rem; color: var(--ink-soft); max-width: none; }
.doc > footer { margin-top: 14px; padding-top: 8px; border-top: 1px solid var(--rule); font-size: .85rem; font-style: italic; text-align: right; }
.gridsheet { list-style: none; padding: 0; margin: 0; }
.gridsheet li { display: grid; grid-template-columns: 3.6rem repeat(3, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid var(--rule); align-items: start; }
.gridsheet li > span { font: 600 .78rem var(--body); color: var(--ink-soft); padding-top: 4px; }
.gridsheet div { min-width: 0; font-size: .92rem; }
.gridsheet b { font: 800 1.2rem/1 var(--display); font-style: italic; margin-right: 6px; }
.gridsheet small { display: block; color: var(--ink-soft); font-size: .78rem; }
.gridsheet div:nth-child(3) { margin-top: 8px; }
.gridsheet div:nth-child(4) { margin-top: 16px; }
.nw { white-space: nowrap; }
.doc .grid { font-size: .9rem; }
.plainlist.cols3 { columns: 1; max-width: none; }
@media (min-width: 700px) { .plainlist.cols3 { columns: 3; column-gap: 28px; } }
.world h3 { font: 800 1.25rem/1.1 var(--display); font-style: italic; margin: 16px 0 6px; }

/* ---- search, head to head, seasons, nations, numbers, the rulebook ---- */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.searchbox { display: flex; gap: 8px; margin: 6px 0 18px; max-width: 34rem; }
.searchbox input, .versus-form input[name] { flex: 1; min-width: 0; font: 400 1.05rem/1.2 var(--body); padding: 9px 12px; border: 2px solid var(--tarmac); border-radius: 4px; background: #fff; color: var(--tarmac); }
.hits { list-style: none; margin: 0 0 18px; padding: 0; max-width: 40rem; }
.hits li { display: flex; flex-wrap: wrap; gap: 2px 14px; justify-content: space-between; align-items: baseline; padding: 7px 0; border-top: 1px solid var(--rule); }
.hits a { font-weight: 600; }
.hits span { color: var(--ink-soft); font-size: .88rem; }
.versus-form { display: grid; gap: 6px; max-width: 26rem; margin: 10px 0 14px; }
.versus-form label { font-size: .88rem; color: var(--ink-soft); }
.versus-form .btn { justify-self: start; margin-top: 6px; }
.versus-form.inline { display: flex; gap: 8px; max-width: 26rem; margin: 10px 0 0; }
.versus-form.inline input[name] { font-size: .95rem; padding: 6px 10px; border-width: 1px; }
.versus-form.inline .btn { margin: 0; font-size: 1rem; padding: 6px 12px; }
.vs-head { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: start; margin: 8px 0 14px; }
.vs-who { text-align: center; min-width: 0; }
.vs-who h2 { font-size: clamp(1.3rem, 5vw, 2.2rem); margin: 6px 0 2px; overflow-wrap: anywhere; }
.vs-who .note { margin: 0; }
.vs-v { font: 900 2.4rem/1 var(--display); font-style: italic; color: var(--kerb); align-self: center; }
.vs { width: 100%; max-width: 34rem; margin: 0 auto 16px; border-collapse: collapse; }
.vs th { font: 400 .88rem/1.2 var(--body); color: var(--ink-soft); text-align: center; padding: 7px 8px; width: 46%; }
.vs td { font: 800 1.6rem/1 var(--display); font-style: italic; font-variant-numeric: tabular-nums; padding: 7px 8px; width: 27%; border-top: 1px solid var(--rule); }
.vs th { border-top: 1px solid var(--rule); }
.vs td:first-child { text-align: right; }
.vs td:last-child { text-align: left; }
.vs td.best, .grid td.best { color: var(--kerb-deep); }
.vs-titles { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; max-width: 34rem; margin: -8px auto 16px; }
.vs-titles span:first-child { text-align: right; }
.mates { background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--team, var(--tarmac)); border-radius: 4px; padding: 12px 14px; max-width: 34rem; }
.mates p { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 8px; max-width: none; }
.mates ul { list-style: none; margin: 0; padding: 0; }
.mates li { display: grid; grid-template-columns: 2.6rem 1fr 2.6rem; gap: 10px; align-items: center; padding: 5px 0; }
.mates li b { font: 800 1.4rem/1 var(--display); font-style: italic; font-variant-numeric: tabular-nums; text-align: right; }
.mates li b:last-child { text-align: left; }
.mates li span { font-size: .84rem; color: var(--ink-soft); text-align: center; }
.mates li i { display: block; height: 8px; margin-top: 4px; border-radius: 2px; background: linear-gradient(to right, var(--tarmac) var(--l), #fff var(--l), #fff calc(var(--l) + 2px), var(--rule) calc(var(--l) + 2px)); }
.trackrecs { list-style: none; margin: 0 0 22px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.trackrecs li { background: var(--paper); border: 1px solid var(--rule); border-top: 5px solid var(--tarmac); border-radius: 4px; padding: 9px 12px; display: grid; gap: 2px; }
.trackrecs span { font-size: .84rem; color: var(--ink-soft); }
.trackrecs strong { font: 800 1.7rem/1 var(--display); font-style: italic; font-variant-numeric: tabular-nums; }
.trackrecs small { font-size: .84rem; }
.seasonnav { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: baseline; margin: 0; max-width: none; font-size: .95rem; }
.seasonnav strong { color: var(--ink-soft); font-weight: 600; }
.seasonnav a:last-child { text-align: right; }
.seasonnav + h1 { font-size: clamp(4rem, 20vw, 9rem); margin: 0 0 .1em; }
.story.inset { background: var(--paper); border-left: 6px solid var(--tarmac); padding: 12px 16px; max-width: 46rem; }
.story.inset h3 { margin-top: 0; }
.numjump { display: flex; flex-wrap: wrap; gap: 4px 6px; max-width: none; font: 700 1rem/1.5 var(--display); font-variant-numeric: tabular-nums; }
.numjump a { min-width: 1.9em; text-align: center; text-decoration: none; background: var(--paper); border: 1px solid var(--rule); border-radius: 3px; }
.numcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.numcard { display: grid; grid-template-columns: auto 1fr; gap: 12px; background: var(--paper); border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; scroll-margin-top: 70px; }
.numcard .plate.big { font-size: 2rem; border-bottom-width: 6px; min-width: 1.9em; }
.numcard:target { outline: 3px solid var(--plate); }
.numnow { margin: 0 0 4px; font-weight: 600; }
.numnow small { display: block; font-weight: 400; color: var(--ink-soft); font-size: .84rem; }
.numcard ul { list-style: none; margin: 0; padding: 0; font-size: .9rem; max-height: 9.5em; overflow: auto; }
.numcard li { display: flex; justify-content: space-between; gap: 8px; }
.numcard li span { color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.titlefight { background: var(--tarmac); color: #fff; border-radius: 4px; padding: 14px 16px; margin: 18px 0 24px; border-left: 8px solid var(--plate); }
.titlefight h2 { margin-top: 0; font-size: 1.6rem; }
.titlefight p { margin: 0 0 8px; }
.titlefight strong { color: var(--plate); }
.titlefight .grid { color: #fff; margin-top: 10px; }
.titlefight .grid th { color: #b9bcc2; }
.titlefight .grid td, .titlefight .grid th { border-color: #3a3e46; }
.titlefight .note { color: #b9bcc2; }
.titlefight a:hover { color: var(--plate); }
.rule ol { list-style: none; margin: 0; padding: 0; }
.rule li { display: grid; grid-template-columns: 3rem 1fr; gap: 0 8px; padding: 6px 0; border-top: 1px dotted var(--rule); font-size: .95rem; }
.rule li:first-child { border-top: 0; }
.rule li b { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; }
.rule { scroll-margin-top: 70px; }
.ruling { margin: 0; }
.ruling div { display: grid; grid-template-columns: 5.5rem 1fr; gap: 0 10px; padding: 5px 0; border-top: 1px dotted var(--rule); font-size: .95rem; }
.ruling div:first-child { border-top: 0; }
.ruling dt { color: var(--ink-soft); font-size: .84rem; padding-top: 2px; }
.ruling dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; max-width: 46rem; }
.timeline li { display: grid; grid-template-columns: 4.2rem 1fr; gap: 0 14px; padding: 10px 0; border-top: 1px solid var(--rule); }
.tl-year { font: 900 1.7rem/1 var(--display); font-style: italic; text-decoration: none; }
.timeline p { margin: 0 0 4px; max-width: none; }
.tl-news { font-size: .9rem; color: var(--ink-soft); }
.rotw { background: var(--paper); border: 1px solid var(--rule); border-top: 6px solid var(--plate); border-radius: 4px; padding: 12px 14px; margin: 0 0 22px; }
.rotw h2 { margin: 0 0 8px; font-size: 1.6rem; }
.rotw ul { list-style: none; margin: 0; padding: 0; }
.rotw li { display: grid; grid-template-columns: auto 1fr auto auto; gap: 4px 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--rule); }
.rotw li > div { min-width: 0; display: grid; }
.rotw li span { font-size: .88rem; color: var(--ink-soft); }
.rotw li i { display: block; height: 6px; margin-top: 5px; border-radius: 2px; background: linear-gradient(to right, var(--tarmac) var(--w), var(--rule) var(--w)); }
.rotw li > b { font: 800 1.3rem/1 var(--display); font-style: italic; font-variant-numeric: tabular-nums; min-width: 2.4em; text-align: right; }
.rotw li.mine i, .rotw li.won i { background: linear-gradient(to right, var(--kerb) var(--w), var(--rule) var(--w)); }
.rotw li.won strong::after { content: " takes it"; font-weight: 400; color: var(--kerb-deep); font-size: .88rem; }
.rotw .btn { font-size: .95rem; padding: 5px 12px; }
.rotw .note { margin: 8px 0 0; }
@media (max-width: 560px) {
  .rotw li { grid-template-columns: auto 1fr auto; }
  .rotw li .btn { grid-column: 2 / -1; justify-self: start; }
  .vs td { font-size: 1.35rem; }
}

/* ---- the header: six places to go, then search, More and the account ---- */
.top { position: relative; }
.top-in { gap: 0 28px; }
.top nav[aria-label="Main"] { flex: 1; order: 1; flex-wrap: nowrap; }
.top .tools { order: 2; display: flex; align-items: center; gap: 6px; padding-bottom: 8px; }
.top nav.classes { order: 3; }
.top .find, .top .more summary { display: inline-flex; align-items: center; gap: 6px; min-width: 44px; height: 44px; justify-content: center; border-radius: 5px; color: var(--paper); cursor: pointer; font: 600 1.3rem var(--display); padding: 0 6px; }
.top .more summary { list-style: none; }
.top .more summary::-webkit-details-marker { display: none; }
.top .find:hover, .top .find[aria-current], .top .more summary:hover, .top .more[open] summary, .top .more[data-here] summary { color: var(--plate); }
.top .more[open] summary { background: var(--tarmac-2); }
.top .me { background: var(--plate); color: var(--tarmac); padding: 8px 14px; border-radius: 5px; font: 700 1.3rem var(--display); text-decoration: none; white-space: nowrap; max-width: 9.5em; overflow: hidden; text-overflow: ellipsis; margin-left: 6px; }
.top .me:hover { background: #fff; color: var(--tarmac); }
.more-panel { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% - 14px); background: var(--tarmac-2); border-top: 1px solid #3a3e46; border-bottom: 6px solid var(--plate); box-shadow: 0 18px 30px rgba(0, 0, 0, .35); padding: 18px max(20px, calc((100% - 1140px) / 2)) 22px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 34px; max-height: calc(100vh - 110px); overflow: auto; }
.more-panel h2 { font: 800 1.25rem/1 var(--display); font-style: italic; color: var(--plate); margin: 0 0 6px; }
.more-panel ul { list-style: none; margin: 0; padding: 0; }
.more-panel a { display: grid; padding: 8px 0; border-top: 1px solid #3a3e46; text-decoration: none; color: #fff; }
.more-panel a strong { font: 700 1.2rem/1.15 var(--display); }
.more-panel a span { font-size: .84rem; color: #b9bcc2; }
.more-panel a:hover strong { color: var(--plate); }
@media (max-width: 900px) {
  .top .tools { order: 0; margin-left: auto; }
  .top nav[aria-label="Main"] { order: 1; flex: 1 1 100%; justify-content: space-between; gap: 4px 12px; font-size: 1.18rem; }
  .top .more summary span { display: none; }
  .more-panel { grid-template-columns: 1fr 1fr; padding: 14px 20px 18px; }
}
@media (max-width: 520px) {
  .mark, .mark span { font-size: 1.75rem; }
  .more-panel { grid-template-columns: 1fr; gap: 16px; }
  .top .me { font-size: 1.1rem; padding: 7px 11px; max-width: 7em; }
}
/* the history index and the three podium forms */
.index { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin: 14px 0 6px; }
.index a { display: grid; gap: 3px; background: #fff; border: 1px solid var(--rule); border-left: 6px solid var(--tarmac); border-radius: 4px; padding: 11px 14px; text-decoration: none; }
.index a:hover { border-left-color: var(--kerb); color: inherit; }
.index strong { font: 800 1.4rem/1 var(--display); font-style: italic; }
.index span { font-size: .88rem; color: var(--ink-soft); }
.op-races { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 14px; margin: 14px 0; align-items: start; }
.op-races .op-next { margin: 0; }
.op-races .op-next h2 { font-size: 1.9rem; }
.op-class { font: 700 1.05rem/1 var(--display); margin: 0 0 6px; color: #fff; }
.op-next.junior { background: var(--tarmac-2); }
.op-next select { max-width: 100%; }

.op-leagues { background: var(--paper); border: 1px solid var(--rule); border-left: 6px solid var(--plate); border-radius: 4px; padding: 14px 16px; margin: 18px 0; }
.op-leagues h2 { margin-top: 0; }
.op-leagues li { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: .9rem; }
.op-leagues li a { font-weight: 600; font-size: 1rem; color: var(--tarmac); }
.op-league-acts { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 18px; }
.op-league-acts form { margin: 0; }
table.data tr.mine td { background: #fff6d0; }

.bio { max-width: 62ch; margin: 8px 0 0; }
.story.archive { background: #f3ecd8; border-left-color: #8a7a4a; font-family: Georgia, "Times New Roman", serif; }
.story.archive h3 { font-family: Georgia, "Times New Roman", serif; font-style: normal; }

/* ---- fantasy ---- */
.playnav { display: flex; gap: 6px; margin: 0 0 14px; max-width: none; }
.playnav a { font: 700 1.1rem/1 var(--display); text-decoration: none; padding: 9px 14px; border-radius: 5px; background: #fff; border: 1px solid var(--rule); }
.playnav a[aria-current] { background: var(--tarmac); color: var(--plate); border-color: var(--tarmac); }
.fx-state p { margin: 0 0 6px; }
.fx-meter { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; background: var(--paper); border: 1px solid var(--rule); border-bottom: 4px solid var(--plate); border-radius: 4px; padding: 10px 14px; margin: 14px 0 6px; }
.fx-meter div { display: grid; }
.fx-meter span { font-size: .78rem; color: var(--ink-soft); }
.fx-meter strong { font: 800 1.5rem/1 var(--display); font-style: italic; font-variant-numeric: tabular-nums; }
.fx-meter strong.bad { color: var(--kerb); }
.fx-meter .btn { margin-left: auto; }
.fx-meter .btn:disabled { opacity: .45; cursor: default; }
.fx-market { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 16px; align-items: start; margin-top: 10px; }
.fx-class h3 { font: 800 1.4rem/1 var(--display); font-style: italic; margin: 0 0 8px; }
.fx-class h3 span { font: 400 .84rem var(--body); color: var(--ink-soft); margin-left: 6px; }
.fx-class ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.fx-class button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; text-align: left; background: #fff; border: 1px solid var(--rule); border-left: 6px solid var(--team); border-radius: 4px; padding: 6px 10px; font: inherit; color: inherit; cursor: pointer; min-height: 48px; }
.fx-class button:hover:not(:disabled) { border-color: var(--tarmac); border-left-color: var(--team); }
.fx-class button[aria-pressed="true"] { background: var(--tarmac); color: #fff; border-color: var(--tarmac); border-left-color: var(--plate); }
.fx-class button[aria-pressed="true"] small { color: #c9ccd0; }
.fx-class button:disabled { opacity: .5; cursor: default; }
.fx-class button[aria-pressed="true"]:disabled { opacity: 1; }
.fx-who { display: grid; min-width: 0; }
.fx-who strong { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-who small { color: var(--ink-soft); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-class button b { font: 800 1.35rem/1 var(--display); font-style: italic; font-variant-numeric: tabular-nums; }
.fx-class .plate { font-size: .9rem; border-bottom-width: 0; }
.fx-rules { margin: 18px 0; max-width: 46rem; }
.fx-rules summary { cursor: pointer; font-weight: 600; }
.fx-rules li { margin: 4px 0; }
