/* Shared kit for the triathlon.fyi blueprint screens.
   Tokens come from .lavish/triathlon-concept/styles.css; layout vocabulary follows levels.fyi. */
:root {
  --blue: #0866bf;
  --blue-dark: #084b88;
  --ink: #14253d;
  --muted: #65748a;
  --line: #e1e7ee;
  --wash: #f5f7fa;
  --pale: #edf5fc;
  --slate: #44566a;
  --green: #187455;
  --amber: #956115;
  --red: #b3261e;
  /* the one signature: every time is swim | bike | run */
  --swim: #2f86d6;
  --bike: #35b48a;
  --run: #f0b541;
  --radius: 10px;
  font-family: "Nunito Sans", "Avenir Next", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink);
  background: var(--wash);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}
h3 {
  font-size: 15px;
  font-weight: 700;
}
a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
:focus-visible {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.num {
  font-variant-numeric: tabular-nums;
}
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}
.stack > * + * {
  margin-top: 16px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.row.between {
  justify-content: space-between;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.only-m {
  display: none;
}

/* ---------- site header (logo, search, actions, nav row) ---------- */
.site {
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.site-top {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
}
.logo:hover {
  text-decoration: none;
}
.logo svg {
  width: 26px;
  height: 26px;
}
.logo b span {
  color: var(--blue);
}
.search {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  color: var(--muted);
}
.search input {
  border: 0;
  background: none;
  outline: 0;
  flex: 1;
  min-width: 0;
}
.search kbd {
  font: inherit;
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 5px;
  background: #fff;
}
.site-nav {
  display: flex;
  gap: 22px;
  padding: 2px 0 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.site-nav a {
  color: var(--ink);
  font-weight: 700;
  padding: 9px 0 10px;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.site-nav a:hover {
  text-decoration: none;
  color: var(--blue);
}
.site-nav a.on {
  color: var(--blue);
  border-color: var(--blue);
}
.site-nav .push {
  margin-left: auto;
  font-weight: 600;
  color: var(--muted);
}

/* ---------- buttons, pills, chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--blue);
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  background: var(--pale);
}
.btn.primary {
  background: var(--blue);
  color: #fff;
}
.btn.primary:hover {
  background: var(--blue-dark);
}
.btn.quiet {
  border-color: var(--line);
  color: var(--ink);
}
.btn.sm {
  padding: 5px 10px;
  font-size: 13px;
}
.btn.block {
  display: flex;
  width: 100%;
}
.pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.pill {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 6px 13px;
  font-weight: 600;
  white-space: nowrap;
}
.pill:hover {
  text-decoration: none;
  border-color: var(--blue);
}
.pill.on {
  border-color: var(--blue);
  background: var(--pale);
  color: var(--blue-dark);
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  background: #eef1f5;
  color: var(--slate);
}
.chip::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.chip.plain::before {
  display: none;
}
.st-open {
  background: #e3f4ec;
  color: var(--green);
}
.st-soon {
  background: var(--pale);
  color: var(--blue-dark);
}
.st-low {
  background: #fdf1d8;
  color: var(--amber);
}
.st-sold {
  background: #fde8e6;
  color: var(--red);
}
.st-none {
  background: #eef1f5;
  color: var(--slate);
}
/* provenance labels: who says so */
.src {
  display: inline-block;
  border-radius: 4px;
  padding: 1px 7px;
  font-size: 11.5px;
  font-weight: 700;
  border: 1px solid;
  white-space: nowrap;
}
.src-official {
  color: var(--green);
  border-color: #a9d8c4;
  background: #f1faf6;
}
.src-report {
  color: var(--amber);
  border-color: #ecd297;
  background: #fffaf0;
}
.src-checked {
  color: var(--blue-dark);
  border-color: #b5d3ee;
  background: var(--pale);
}

/* ---------- cards and page layout ---------- */
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.card.flush {
  padding: 0;
  overflow: hidden;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 18px;
  align-items: start;
  padding: 18px 0 40px;
}
.layout.single {
  grid-template-columns: minmax(0, 1fr);
}
.rail {
  display: grid;
  gap: 14px;
}
.rail .card {
  padding: 14px 16px;
}
.rail ul {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.sec-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.lede {
  color: var(--muted);
  max-width: 72ch;
}
.crumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  overflow-x: auto;
  white-space: nowrap;
}
.crumbs select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 4px 8px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
}
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  border-radius: var(--radius);
  padding: 12px 16px;
  background: #fff3cf;
  border: 1px solid #f2dc9a;
  color: #6b4a08;
}
.alert {
  border-radius: var(--radius);
  padding: 12px 16px;
  border: 1px solid #ecd297;
  background: #fffaf0;
}
.alert.red {
  border-color: #f1b8b3;
  background: #fff5f4;
}
.alert h3 {
  margin-bottom: 2px;
}

/* ---------- homepage: ticker and hero ---------- */
.ticker {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 14px 0;
  scrollbar-width: none;
}
.tick {
  flex: 0 0 172px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  color: var(--ink);
}
.tick:hover {
  text-decoration: none;
  border-color: var(--blue);
}
.tick b {
  display: block;
  font-size: 17px;
}
.tick small {
  color: var(--muted);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tick.add {
  flex-basis: 128px;
  display: grid;
  place-items: center;
  text-align: center;
  border: 2px dashed var(--blue);
  color: var(--blue);
  font-weight: 800;
}
.hero {
  text-align: center;
  padding: 34px 0 30px;
  background: linear-gradient(#eaf2fa, var(--wash));
}
.hero h1 {
  font-size: 34px;
  color: var(--blue-dark);
}
.hero .search {
  max-width: 560px;
  margin: 16px auto 0;
  background: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(20, 37, 61, 0.08);
}

/* ---------- entity header (race) with tabs ---------- */
.entity {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.entity-banner {
  height: 120px;
  background: linear-gradient(
    120deg,
    #0b3d6b 0%,
    #1f7fb8 45%,
    #7cc6d6 70%,
    #e9d9a8 100%
  );
}
.entity-id {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 18px 12px;
  margin-top: -26px;
  flex-wrap: wrap;
}
.entity-logo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  color: var(--blue-dark);
  flex: none;
  box-shadow: 0 2px 8px rgba(20, 37, 61, 0.1);
}
.entity-id h1 {
  margin-top: 28px;
}
.entity-id .meta {
  margin-top: 28px;
  margin-left: auto;
}
.tabs {
  display: flex;
  gap: 4px;
  border-top: 1px solid var(--line);
  padding: 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.tab {
  padding: 11px 14px;
  color: var(--ink);
  font-weight: 700;
  border-bottom: 3px solid transparent;
  white-space: nowrap;
}
.tab:hover {
  text-decoration: none;
  color: var(--blue);
}
.tab.on {
  color: var(--blue);
  border-color: var(--blue);
}
.tab sup {
  font-size: 10px;
  font-weight: 800;
  color: var(--green);
  border: 1px solid #a9d8c4;
  border-radius: 4px;
  padding: 0 4px;
  margin-left: 4px;
}

/* ---------- tables ---------- */
table {
  border-collapse: collapse;
  width: 100%;
}
th {
  text-align: left;
  font-weight: 700;
}
.t-stat th {
  background: #e9f0fb;
  padding: 10px 14px;
}
.t-stat td {
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.t-stat td:first-child b {
  color: var(--blue);
  font-size: 15px;
}
.t-stat .total {
  font-weight: 800;
}
.t-subs {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.t-subs th {
  background: var(--slate);
  color: #fff;
  padding: 9px 12px;
  vertical-align: top;
}
.t-subs th small {
  display: block;
  font-weight: 400;
  opacity: 0.85;
}
.t-subs td {
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  vertical-align: top;
}
.t-subs tr:nth-child(even) td {
  background: #f8fafc;
}
.t-subs td small {
  display: block;
  color: var(--muted);
}
.t-subs .r,
.t-stat .r {
  text-align: right;
}
.t-subs .big {
  font-size: 16px;
  font-weight: 800;
}
.t-subs .r small {
  white-space: nowrap;
}
.t-list td {
  padding: 12px;
  border-top: 1px solid var(--line);
  vertical-align: middle;
}
.t-list th {
  padding: 9px 12px;
  background: var(--wash);
  color: var(--muted);
  font-size: 12.5px;
}
.t-list td b {
  font-size: 15px;
}
.t-list td small {
  display: block;
  color: var(--muted);
}
.table-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.table-tools .search {
  flex: 1 1 220px;
  background: #fff;
}
/* contribution gate: blurred rows under an "unlock" card */
.gate {
  position: relative;
}
.gate .locked td {
  filter: blur(5px);
  user-select: none;
}
.unlock {
  position: absolute;
  inset: auto 0 0 0;
  height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  background: linear-gradient(
    rgba(255, 255, 255, 0.2),
    rgba(255, 255, 255, 0.92) 55%
  );
  padding: 16px;
}
.unlock > div {
  max-width: 380px;
}
.unlock h3 {
  font-size: 18px;
  margin-bottom: 4px;
}

/* ---------- swim | bike | run split bar and legend ---------- */
.split {
  display: flex;
  height: 8px;
  border-radius: 4px;
  overflow: hidden;
  min-width: 90px;
  background: var(--line);
}
.split i {
  display: block;
}
.s {
  background: var(--swim);
}
.b {
  background: var(--bike);
}
.r-run {
  background: var(--run);
}
.t-gap {
  background: #c9d2dd;
}
.key {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
}
.key span::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 5px;
  vertical-align: -1px;
  background: var(--c, var(--line));
}

/* ---------- times filters: discipline switch + selects ---------- */
.seg {
  display: inline-flex;
  gap: 2px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
  background: var(--wash);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 3px;
}
.seg a {
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
}
.seg a:hover {
  text-decoration: none;
  color: var(--blue);
}
.seg a.on {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(20, 37, 61, 0.14);
}
.filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.filters select {
  border: 1px solid #c7d1dc;
  border-radius: 8px;
  padding: 7px 10px;
  background: #fff;
  font-weight: 600;
  max-width: 100%;
}
.note {
  font-size: 12.5px;
  color: var(--muted);
}

/* ---------- simple charts (no library) ---------- */
.bars {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 170px;
  border-bottom: 1px solid var(--line);
  padding-top: 18px;
}
.bar {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
}
.bar i {
  display: block;
}
.bar em + i {
  border-radius: 4px 4px 0 0;
}
.bar em {
  text-align: center;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 3px;
}
.bar-labels {
  display: flex;
  gap: 10px;
  margin-top: 6px;
}
.bar-labels span {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}
.range {
  display: grid;
  gap: 9px;
}
.range-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
}
.range-track {
  position: relative;
  height: 12px;
  background: linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0 / 20%
    100%;
  border-right: 1px solid var(--line);
}
.range-track u {
  position: absolute;
  top: 3px;
  height: 6px;
  border-radius: 3px;
  background: rgba(53, 180, 138, 0.35);
}
.range-track b {
  position: absolute;
  top: 1px;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: var(--bike);
  opacity: 0.8;
}
.axis {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--muted);
  margin-left: 70px;
}
/* registration timeline: stepped blocks, like a vesting schedule */
.steps {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}
.step {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 12.5px;
}
.step i {
  display: block;
  height: 44px;
  border-radius: 6px;
  background: var(--bike);
  margin: 4px 0;
}
.step.done i {
  background: #b9c6d3;
}
.step.now i {
  background: var(--blue);
}
.step.end i {
  background: #f3b3ad;
}
.step b {
  display: block;
  font-size: 14px;
}

/* ---------- ladder: races side by side, aligned by equivalent effort ---------- */
.ladder {
  display: grid;
  grid-template-columns: repeat(var(--cols, 3), minmax(0, 1fr));
  gap: 4px;
}
.ladder-col {
  display: grid;
  gap: 3px;
  align-content: start;
}
.ladder-col > header {
  text-align: center;
  padding: 6px 4px 10px;
  font-weight: 800;
}
.rung {
  border-radius: 6px;
  display: grid;
  place-content: center;
  text-align: center;
  padding: 6px 4px;
}
.rung b {
  font-size: 16px;
}
.rung small {
  color: var(--slate);
}
.c1 .rung {
  background: #cfe9d9;
}
.c2 .rung {
  background: #cdd5e6;
}
.c3 .rung {
  background: #fde0c2;
}
.c4 .rung {
  background: #e3d5ee;
}

/* ---------- feed, threads, forms ---------- */
.post {
  padding: 13px 0;
  border-top: 1px solid var(--line);
}
.post:first-child {
  border-top: 0;
  padding-top: 0;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 4px;
}
.post h3 a {
  color: var(--ink);
}
.post-foot {
  display: flex;
  gap: 14px;
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 6px;
}
.badge {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--slate);
  background: #eef1f5;
  border-radius: 4px;
  padding: 1px 6px;
}
.field {
  display: grid;
  gap: 5px;
  align-content: start;
}
.field label,
.field legend {
  font-weight: 700;
}
.field input,
.field select,
.field textarea {
  border: 1px solid #c7d1dc;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
  width: 100%;
  min-width: 0;
}
.field .hint {
  font-size: 12.5px;
  color: var(--muted);
}
fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
}
.choice {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fff;
}
.switch-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.switch-row:first-child {
  border-top: 0;
}

/* ---------- app tab bar (phone only) ---------- */
.tabbar {
  display: none;
}

@media (max-width: 760px) {
  :root {
    font-size: 14px;
  }
  .wrap {
    padding: 0 14px;
  }
  h1 {
    font-size: 22px;
  }
  .hide-m {
    display: none !important;
  }
  .only-m {
    display: revert;
  }
  .site-top .btn.quiet,
  .search kbd {
    display: none;
  }
  .site-nav {
    gap: 18px;
  }
  .layout {
    grid-template-columns: minmax(0, 1fr);
    padding-bottom: 86px;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero h1 {
    font-size: 26px;
  }
  .entity-banner {
    height: 84px;
  }
  .entity-id .meta {
    margin: 0;
    width: 100%;
  }
  .entity-id h1 {
    margin-top: 4px;
  }
  .card {
    padding: 14px;
  }
  .t-stat th,
  .t-stat td,
  .t-subs th,
  .t-subs td,
  .t-list td,
  .t-list th {
    padding: 8px 9px;
  }
  .steps {
    gap: 3px;
  }
  .tabbar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    z-index: 20;
  }
  .tabbar a {
    flex: 1;
    min-width: 0;
    text-align: center;
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    display: grid;
    gap: 2px;
    justify-items: center;
  }
  .tabbar a:hover {
    text-decoration: none;
  }
  .tabbar a.on {
    color: var(--blue);
  }
  .tabbar svg {
    width: 22px;
    height: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

/* ===== ADDENDUM: components the screen specs added (docs/screens/_kit-addendum.md) ===== */
/* 6.1 site-foot */
.site-foot {
  border-top: 1px solid var(--line);
  margin-top: 32px;
  padding: 18px 0 28px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.site-foot nav {
  display: flex;
  gap: 6px 16px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 6px;
}

/* 6.4 status-block, status-line, and the new chip and label classes */
.st-due {
  background: var(--pale);
  color: var(--blue-dark);
  outline: 1.5px dashed #7fb0de;
  outline-offset: -1.5px;
}
.st-priority {
  background: #f0eafb;
  color: #6a3fa0;
}
.st-full {
  background: var(--ink);
  color: #fff;
}
.st-closed {
  background: #fff;
  color: var(--slate);
  box-shadow: inset 0 0 0 1px #c7d1dc;
}
.st-stale {
  background: #fff;
  color: var(--muted);
  outline: 1.5px dashed #9aa7b6;
  outline-offset: -1.5px;
}
.chip.disputed {
  outline: 1.5px dashed currentColor;
  outline-offset: -1.5px;
}
.ev-scheduled {
  background: #e6edf5;
  color: #33506e;
}
.ev-pending {
  background: #fff3bf;
  color: #7a5d00;
}
.ev-changed {
  background: #fdebdc;
  color: #a34a12;
}
.ev-off {
  background: #fde8e6;
  color: var(--red);
}
.ev-postponed {
  background: #f8e6f1;
  color: #8a2a6b;
}
.ev-canceled {
  background: var(--red);
  color: #fff;
}
.src {
  font-size: 12px;
}
.src-authority {
  color: #0f6e7a;
  border-color: #a8d3d9;
  background: #f0f9fa;
}
.src-press {
  color: var(--slate);
  border-color: #c7d1dc;
  background: #f6f8fa;
}
.src-post {
  color: #5b4a8a;
  border-color: #cfc6e6;
  background: #f7f5fc;
}
.src-calc,
.src-site {
  color: var(--muted);
  border-style: dashed;
  border-color: #9aa7b6;
  background: #fff;
}
.src-site {
  color: var(--slate);
}
.src-results {
  color: var(--blue-dark);
  border-color: #b5d3ee;
  background: #fff;
}
.src-corrected {
  color: var(--red);
  border-color: #f1b8b3;
  background: #fff5f4;
  text-decoration: line-through;
}

.status-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 18px 14px;
  background: #fff;
}
.status-row {
  display: grid;
  grid-template-columns: 92px auto minmax(0, 1fr) auto auto;
  gap: 6px 10px;
  align-items: center;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.status-row:first-child {
  border-top: 0;
}
.status-k {
  font-weight: 800;
}
.status-when {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}
.status-sub {
  padding: 0 14px 10px 116px;
}
.status-cover {
  padding: 8px 14px;
  border-top: 1px solid var(--line);
  background: var(--wash);
  border-radius: 0 0 8px 8px;
  font-size: 12px;
  color: var(--muted);
}
.status-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 18px;
}
.tab.pin {
  position: sticky;
  right: 0;
  background: #fff;
  box-shadow: -8px 0 8px -6px rgba(20, 37, 61, 0.18);
}
@media (max-width: 760px) {
  .status-block {
    margin: 0 14px 12px;
  }
  .status-row {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .status-k {
    display: none;
  }
  .status-row .src,
  .status-row .status-when {
    grid-column: 2;
    justify-self: start;
  }
  .status-sub {
    padding-left: 14px;
  }
  .tab {
    padding: 11px 9px;
  }
}

/* 6.5 follow-inline and the follow flow (four states) */
.follow-inline {
  margin: 0 18px 14px;
  padding: 12px 14px;
  border: 1px solid #b5d3ee;
  background: var(--pale);
  border-radius: 8px;
  display: grid;
  gap: 8px;
}
.follow-inline form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.follow-inline input {
  flex: 1 1 200px;
  min-width: 0;
  min-height: 44px;
  border: 1px solid #c7d1dc;
  border-radius: 8px;
  padding: 9px 11px;
  background: #fff;
}
.follow-inline .err {
  color: var(--red);
  font-weight: 700;
}
.follow-inline ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
@media (max-width: 760px) {
  .follow-inline {
    margin: 0 14px 12px;
  }
}

/* 6.6 sheet (bottom sheet on a phone, small dialog on the web) */
.sheet-back {
  position: fixed;
  inset: 0;
  background: rgba(20, 37, 61, 0.45);
  z-index: 40;
  display: grid;
  place-items: center;
}
.sheet {
  background: #fff;
  border-radius: 12px;
  width: min(480px, calc(100% - 32px));
  max-height: 86vh;
  overflow: auto;
  padding: 18px;
  box-shadow: 0 12px 40px rgba(20, 37, 61, 0.25);
}
.sheet-h {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.sheet.static {
  position: static;
  box-shadow: none;
  border: 1px solid var(--line);
  margin: 0 auto;
}
@media (max-width: 760px) {
  .sheet-back {
    place-items: end stretch;
  }
  .sheet {
    width: 100%;
    border-radius: 14px 14px 0 0;
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
  }
}

/* 6.7 sticky-bar (phone only, above the tab bar) */
.sticky-bar {
  display: none;
}
@media (max-width: 760px) {
  .sticky-bar {
    display: flex;
    gap: 8px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(56px + env(safe-area-inset-bottom));
    padding: 8px 14px;
    background: #fff;
    border-top: 1px solid var(--line);
    z-index: 19;
  }
  .sticky-bar .btn {
    flex: 1;
    min-height: 44px;
  }
  .layout {
    padding-bottom: 156px;
  }
}

/* 6.8 fill-bars (how long general entry stayed on sale) */
.fill-bars {
  display: grid;
  gap: 8px;
}
.fill-axis {
  position: relative;
  height: 16px;
  margin: 0 170px 0 230px;
  font-size: 12px;
  color: var(--muted);
}
.fill-axis span {
  position: absolute;
  transform: translateX(-50%);
  white-space: nowrap;
}
.fill-axis span:first-child {
  transform: none;
}
.fill-axis span:last-child {
  transform: translateX(-100%);
}
.fill-group {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-top: 6px;
}
.fill-row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 160px;
  gap: 10px;
  align-items: center;
}
.fill-track {
  height: 14px;
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}
.fill {
  display: block;
  position: relative;
  height: 100%;
  background: #c98a1e;
  border-radius: 2px 0 0 2px;
}
.fill.about {
  border-right: 3px solid #5e3c08;
}
.fill.within {
  background: repeating-linear-gradient(135deg, #e5c98f 0 4px, #fdf1d8 4px 8px);
  border: 1px solid #d9b871;
  border-right: 0;
}
.fill.onsale {
  background: #9fd3bd;
}
.fill.onsale::after {
  content: "";
  position: absolute;
  right: -9px;
  top: -2px;
  border: 9px solid transparent;
  border-left-color: #9fd3bd;
  border-right: 0;
}
.fill.unconfirmed {
  opacity: 0.55;
  outline: 1.5px dashed #956115;
  outline-offset: -1.5px;
}
.fill-label {
  font-size: 13px;
  font-weight: 700;
}
@media (max-width: 760px) {
  .fill-axis {
    display: none;
  }
  .fill-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 3px;
  }
}

/* 6.9 confirm-card (the opening-day card) */
.confirm-card {
  border: 2px solid var(--blue);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px;
  display: grid;
  gap: 12px;
}
.confirm-card .ask {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.confirm-card .ask .btn {
  min-height: 52px;
  font-size: 16px;
}
.confirm-card .sub {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

/* 6.10 countdown */
.countdown {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
  border: 1px solid #b5d3ee;
  background: var(--pale);
  border-radius: var(--radius);
  padding: 14px 16px;
}
.countdown .big {
  font-size: 24px;
  font-weight: 800;
  color: var(--blue-dark);
  white-space: nowrap;
}
.countdown .when {
  flex: 1 1 240px;
  min-width: 0;
}

/* 6.11 bignums (only for a typical time, so only from 30 results) */
.bignums {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.bignums div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}
.bignums small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.bignums b {
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .bignums {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* 6.13 side-by-side */
.side-by-side {
  width: 100%;
  border-collapse: separate;
  border-spacing: 4px 0;
}
.side-by-side th,
.side-by-side td {
  padding: 9px 10px;
  vertical-align: top;
  text-align: left;
}
.side-by-side thead th {
  font-weight: 800;
  text-align: center;
  border-radius: 6px 6px 0 0;
}
.side-by-side tbody th {
  width: 150px;
  font-weight: 700;
  color: var(--slate);
}
.side-by-side .grp th {
  padding-top: 16px;
  font-size: 12px;
  color: var(--muted);
}
.side-by-side .c1 {
  background: #eaf6ef;
}
.side-by-side .c2 {
  background: #ebeef6;
}
.side-by-side .c3 {
  background: #fef2e3;
}
.side-by-side .c4 {
  background: #f3ecf8;
}
@media (max-width: 760px) {
  .side-by-side .c3,
  .side-by-side .c4 {
    display: none;
  }
  .side-by-side tbody th {
    width: 104px;
  }
}

/* 6.14 state-bar */
.state-bar {
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.state-bar li {
  flex: 1;
  min-width: 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 4px;
  background: #eef1f5;
  color: var(--muted);
  border-radius: 4px;
}
.state-bar li.done {
  background: #dfe6ee;
  color: var(--slate);
}
.state-bar li.now {
  background: var(--green);
  color: #fff;
}
.state-bar li.now.reported {
  background: #956115;
}
.state-bar li.now.backed {
  background: #a34a12;
}
.state-bar li.now.resolved {
  background: var(--slate);
}
.state-bar li.now.corrected {
  background: var(--red);
}
@media (max-width: 760px) {
  .state-bar li:not(.now) {
    display: none;
  }
  .state-bar li.now {
    flex: 0 0 auto;
    padding: 6px 12px;
  }
}

/* 6.15 unknowns */
.unknowns {
  list-style: none;
  margin: 0;
  padding: 0;
}
.unknowns li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.unknowns li:first-child {
  border-top: 0;
}
.unknowns li::before {
  content: "?";
  flex: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #eef1f5;
  color: var(--slate);
  font-weight: 800;
  font-size: 12px;
  display: grid;
  place-items: center;
}
.unknowns li.answered::before {
  content: "\2713";
  background: #e3f4ec;
  color: var(--green);
}
.unknowns li > span {
  flex: 1;
  min-width: 0;
}

/* 6.16 inbox-row */
.inbox-row {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 4px;
}
.inbox-row:first-child {
  border-top: 0;
}
.inbox-row .meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.inbox-row.struck > p {
  text-decoration: line-through;
  color: var(--muted);
}
.inbox-row .fix {
  margin-left: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--red);
}

/* 6.17 Report and Block (on every post, reply, tip and on-site report) */
.post-foot .act {
  margin-left: auto;
  display: flex;
  gap: 12px;
}

/* 7. Phone rules (these override the kit at 760px and below) */
.src,
.badge,
.axis,
.bar em,
.search kbd,
.tab sup {
  font-size: 12px;
}
@media (max-width: 760px) {
  .tabbar a {
    font-size: 12px;
    min-height: 44px;
  }
  .btn,
  .btn.sm,
  .pill,
  .seg a,
  .tab,
  .site-nav a,
  .crumbs select,
  .filters select {
    min-height: 44px;
  }
  .btn.sm {
    padding: 8px 12px;
  }
  .pill,
  .seg a,
  .tab,
  .site-nav a {
    display: inline-flex;
    align-items: center;
  }
  .t-subs .btn.sm,
  .t-list .btn.sm {
    min-width: 44px;
  }
}

small {
  font-size: 12px;
}

/* ===== REVISION: components added after the founder-lens review ===== */
/* 6.9 confirm-card: the main button that now leads the card */
.confirm-card .go {
  min-height: 52px;
  font-size: 16px;
}

/* 6.18 email-frame and notif-card (on kit card) */
.email-frame {
  max-width: 600px;
}
.email-head {
  display: grid;
  gap: 4px;
  padding: 12px 18px;
  background: #e9edf2;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.email-head div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 8px;
  overflow-wrap: anywhere;
}
.email-head span {
  color: var(--muted);
}
.email-body {
  display: grid;
  gap: 13px;
  padding: 20px 18px;
}
.email-body > :first-child {
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
}
.email-foot {
  display: grid;
  gap: 6px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--wash);
  font-size: 12px;
  color: var(--muted);
}
.notif-card {
  display: grid;
  gap: 2px;
  max-width: 360px;
  padding: 12px 14px;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(20, 37, 61, 0.08);
}
.notif-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .email-frame {
    max-width: none;
  }
  .email-head,
  .email-body,
  .email-foot {
    padding-left: 14px;
    padding-right: 14px;
  }
  .email-body {
    font-size: 16px;
  }
  .email-body .btn {
    display: flex;
    width: 100%;
  }
}

/* 6.19 details.fold (on kit card flush) */
details.fold > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
details.fold > summary::-webkit-details-marker {
  display: none;
}
details.fold > summary::after {
  content: "Show";
  flex: none;
  font-size: 13px;
  color: var(--blue);
}
details.fold[open] > summary {
  border-bottom: 1px solid var(--line);
}
details.fold[open] > summary::after {
  content: "Hide";
}
.fold-body {
  padding: 16px 18px;
}
@media (max-width: 760px) {
  details.fold > summary,
  .fold-body {
    padding-left: 14px;
    padding-right: 14px;
  }
}

/* 6.20 ag-grid (age-group chips, on kit pill) and ag-bar (phone: age group and leg in one sticky row) */
.ag-grid {
  display: grid;
  gap: 10px;
}
.ag-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}
.ag-row .pills {
  gap: 6px;
}
.ag-row .pill {
  padding: 6px 10px;
  font-variant-numeric: tabular-nums;
}
@media (max-width: 760px) {
  .ag-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
  }
  .ag-row .pills {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
  .ag-row .pill {
    justify-content: center;
    padding: 6px 0;
    font-size: 13px;
  }
  .ag-bar {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    padding: 8px 0;
    background: var(--wash);
  }
  .ag-bar .seg {
    flex: 1 1 0;
    min-width: 0;
  }
  .ag-bar .seg a {
    flex: 1 0 auto;
    justify-content: center;
    padding: 5px 4px;
    font-size: 13px;
  }
  .ag-bar .pill {
    flex: none;
    padding: 6px 10px;
  }
}

/* 6.21 times table (on kit t-stat): the "(you)" row and the chosen leg column */
.t-stat tr.you td {
  background: var(--pale);
  border-bottom: 2px solid #b5d3ee;
}
.t-stat th.leg-on {
  box-shadow: inset 0 -3px 0 var(--blue);
}
.t-stat td.leg-on {
  background: #f3f8fd;
  font-weight: 800;
}
.t-stat tr.you td.leg-on {
  background: #dcebf9;
}

/* 6.22 facts (the "Course and conditions" list) */
.facts {
  display: grid;
  gap: 6px;
  margin: 0;
}
.facts div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 2px 12px;
  padding: 4px 0 4px 10px;
  border-left: 3px solid var(--c, var(--line));
}
.facts dt {
  font-weight: 700;
}
.facts dd {
  margin: 0;
}
@media (max-width: 760px) {
  .facts div {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ===== FINAL: shared fixes ===== */
[hidden] {
  display: none !important;
}
/* only-m never shows on the web, whatever other class the element carries. */
@media (min-width: 761px) {
  .only-m {
    display: none !important;
  }
}

/* Phone: the room for the fixed bars sits under the footer, not under the layout. */
@media (max-width: 760px) {
  .layout {
    padding-bottom: 24px;
  }
  body:has(.tabbar:not([hidden])) {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }
  body:has(.tabbar:not([hidden])):has(.sticky-bar:not([hidden], [hidden] *)) {
    padding-bottom: calc(120px + env(safe-area-inset-bottom));
  }
  /* Header row 1: the tab bar's "Add" does the job of "Add your race", so the search field gets the room. */
  .site-top .btn.primary {
    display: none;
  }
  /* Race tabs: tighter, so all five fit a 375px screen and the pinned forum tab covers nothing. */
  .tabs {
    gap: 0;
    padding: 0 2px;
  }
  .tab {
    padding: 11px 5px;
    font-size: 13px;
  }
  /* 44px controls in forms (addendum section 7). */
  .field input:not([type="checkbox"]):not([type="radio"]),
  .field select,
  .field textarea,
  .choice {
    min-height: 44px;
  }
}

/* 5.1 The race banner is a plain blue-to-ink gradient. */
.entity-banner {
  background: linear-gradient(120deg, var(--blue), var(--ink));
}
/* 5.1 The pinned forum tab is a phone rule only; the "Live" mark sits on the tab's line. */
@media (min-width: 761px) {
  .tab.pin {
    position: static;
    box-shadow: none;
  }
}
.tab sup {
  vertical-align: 1px;
  line-height: 1.2;
}

/* 6.4 The "Corrected" label is not struck through; the corrected text is. */
.src-corrected {
  text-decoration: none;
}
/* 6.4 status-who: a label with words under it, or a link in the label's place. */
.status-who {
  display: grid;
  gap: 2px;
  justify-items: start;
  max-width: 220px;
  font-size: 12px;
  color: var(--muted);
}
a.status-who {
  font-size: inherit;
  color: var(--blue);
}
@media (max-width: 760px) {
  .status-row .status-who {
    grid-column: 2;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 6px;
    max-width: none;
  }
}

/* 6.8 fill-bars: a row with no bar, a small second line in a label, and an axis inside a table cell. */
@media (min-width: 761px) {
  .fill-label.nobar {
    grid-column: 2 / -1;
  }
}
.fill-note {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--muted);
}
.fill-axis.cell {
  margin: 2px 0 0;
}

/* 6.12 Dots: grid lines fall on the five axis labels; "wide" holds a label such as "Everyone | 23". */
.range-track {
  background-size: 25% 100%;
}
.range.wide .range-row {
  grid-template-columns: 96px minmax(0, 1fr);
}
.range.wide + .axis {
  margin-left: 104px;
}

/* 6.20 ag-grid: twelve chips fit one row in a main column on the web. */
@media (min-width: 761px) {
  .ag-row .pills {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr));
  }
  .ag-row .pill {
    padding: 6px 0;
    text-align: center;
  }
}

/* Ticker tiles grow to fit their lines; the "+ Add your race" tile keeps its width. */
.tick {
  flex: 1 0 auto;
  min-width: 150px;
}
.tick.add {
  flex: 0 0 128px;
  min-width: 0;
}

/* Forms: tick boxes and radio buttons inside a kit field keep their own size. */
.field input[type="checkbox"],
.field input[type="radio"] {
  width: auto;
  min-width: 0;
  padding: 0;
  flex: none;
}

/* home.html */
/* home.html only. Every class here starts with home-; no kit class is redefined. */
.home-top {
  background: #eaf2fa;
  padding: 14px 0 0;
}
.home-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px 12px;
  flex-wrap: wrap;
  padding: 14px 16px 10px;
}
.home-card-p {
  padding: 0 16px 10px;
}
.home-card-f {
  display: flex;
  gap: 6px 10px;
  flex-wrap: wrap;
  margin-top: auto;
  padding: 11px 16px 13px;
  border-top: 1px solid var(--line);
  font-weight: 700;
}
.home-opening,
.home-changed {
  display: flex;
  flex-direction: column;
}
.home-nw {
  white-space: nowrap;
}

.home-hero-2 {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 6px;
}
.home-hero-sub {
  margin-top: 6px;
  color: var(--muted);
}
.home-age {
  margin-top: 14px;
}
.home-picks {
  justify-content: center;
  margin-top: 10px;
}
.home-div {
  width: 1px;
  align-self: stretch;
  margin: 5px 4px;
  background: #c7d1dc;
}

.home-layout {
  padding-top: 0;
}
.home-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.home-flow > * {
  min-width: 0;
}
.home-latest-h {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.home-latest-h h2 {
  font-size: 15px;
}
.home-ticker {
  padding: 8px 0 0;
}

.home-mine td:first-child {
  width: 260px;
}
.home-note td {
  border-top: 0;
  padding-top: 0;
}
.home-sub td {
  padding: 7px 12px;
  background: var(--wash);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}
.home-act {
  text-align: right;
}
.home-open-t {
  table-layout: fixed;
  flex: 1 0 auto;
}
.home-open-t th:first-child {
  width: 22.5%;
}
.home-open-t th:last-child {
  width: 31%;
}
.home-chg-t td {
  padding-top: 10px;
  padding-bottom: 10px;
}
.home-when {
  display: block;
  margin-top: 2px;
}

.home-seg label {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 700;
  color: var(--slate);
  white-space: nowrap;
  cursor: pointer;
}
.home-seg label:hover {
  color: var(--blue);
}
.home-seg label:has(input:checked) {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(20, 37, 61, 0.14);
}
.home-seg label:has(input:focus-visible) {
  outline: 3px solid #60a5fa;
  outline-offset: 2px;
}
.home-seg input {
  appearance: none;
  -webkit-appearance: none;
  width: 0;
  height: 0;
  margin: 0;
}
.home-p-fill,
.home-p-times {
  display: grid;
  gap: 14px;
}
.home-explore:has(.home-r-times:checked) .home-p-fill,
.home-explore:not(:has(.home-r-times:checked)) .home-p-times {
  display: none;
}

.home-ladder {
  --cols: 4;
  gap: 8px;
}
.home-p-times .home-ladder {
  display: none;
}
.home-p-times:has(.home-l-finish:checked) .home-lad-finish,
.home-p-times:has(.home-l-swim:checked) .home-lad-swim,
.home-p-times:has(.home-l-bike:checked) .home-lad-bike,
.home-p-times:has(.home-l-run:checked) .home-lad-run {
  display: grid;
}
.home-rung {
  min-height: 72px;
  gap: 2px;
}
.home-rung b {
  font-size: 18px;
}
.home-fast {
  margin-left: 4px;
  background: #fff;
}
.home-basis {
  text-align: center;
  padding: 6px 4px 0;
}

.home-lede {
  max-width: none;
}
.home-fill-act {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.home-empty {
  display: grid;
  gap: 10px;
  justify-items: start;
  background: var(--wash);
}

.home-filters {
  margin-bottom: 12px;
}
.home-filters label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.home-filters label span {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.home-filters label:not(.home-sort) select {
  width: 112px;
}
.home-c-race {
  width: 24%;
}
.home-c-reg {
  width: 19.5%;
}
.home-c-last {
  width: 16%;
}
.home-c-year {
  width: 17.5%;
}
.home-sort {
  margin-left: auto;
}
.home-acts {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.home-under {
  margin-top: 10px;
}
.home-more {
  margin-top: 12px;
}

@media (min-width: 761px) {
  .home-two {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .home-fill-axis {
    margin: 0 330px 0 262px;
  }
  .home-fill-row {
    grid-template-columns: 252px minmax(0, 1fr) 320px;
  }
  .home-fill-wide {
    grid-column: 1 / 3;
  }
}
@media (max-width: 760px) {
  .home-layout {
    padding-bottom: 8px;
  }
  .home-top {
    padding-top: 12px;
  }
  .home-hero-2 {
    font-size: 16px;
  }
  .home-seg label {
    min-height: 44px;
  }
  .home-picks {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    margin: 10px -14px 0;
    padding: 0 14px;
  }
  .home-picks > * {
    flex: none;
  }
  .home-two {
    order: -1;
  }
  .home-changed {
    order: -1;
  }
  .home-ticker {
    margin: 0 -14px;
    padding: 8px 14px 0;
  }
  .home-mine {
    padding: 0 14px 4px;
  }
  .home-mine p {
    padding: 10px 0;
    border-top: 1px solid var(--line);
  }
  .home-opens {
    display: grid;
    gap: 10px;
    padding: 0 14px 14px;
  }
  .home-open {
    display: grid;
    gap: 6px;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 12px;
  }
  .home-open .btn {
    margin-top: 4px;
  }
  .home-nodate {
    display: grid;
    gap: 6px;
    padding-top: 8px;
    border-top: 1px solid var(--line);
  }
  .home-list {
    padding: 0 14px 12px;
  }
  .home-fill-row {
    padding-bottom: 8px;
  }
  .home-ladder {
    --cols: 2;
  }
  .home-lh {
    display: grid;
    place-items: center;
    min-height: 60px;
  }
  .home-cards {
    display: grid;
    gap: 10px;
  }
  .home-race {
    display: grid;
    gap: 6px;
  }
  .home-race-h {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
  }
  .home-race-h small {
    display: block;
  }
  .home-reg {
    display: flex;
    align-items: center;
    gap: 4px 8px;
    flex-wrap: wrap;
  }
  .home-after {
    display: grid;
    gap: 12px;
  }
  .home-tap {
    display: inline-block;
    padding: 14px 8px;
    margin: -14px -8px;
  }
}

/* race.html */
/* race.html only. Every class here is prefixed race-; no kit class is restyled. */
.race-main {
  padding-top: 16px;
}
.race-nw {
  white-space: nowrap;
}
.race-fs-h {
  margin: 0 18px 6px;
  font-size: 13px;
  font-weight: 800;
  color: var(--slate);
}
.race-fs-sub {
  margin: -6px 18px 14px;
  font-size: 13px;
  color: var(--muted);
}
.race-fs-sub ul {
  margin: 4px 0 0;
  padding-left: 18px;
}
.follow-inline .race-code {
  flex: 0 1 180px;
  font-weight: 700;
  letter-spacing: 0.3em;
}
.race-ag {
  display: grid;
  gap: 6px;
  padding: 10px 0 4px;
  border-top: 1px solid #b5d3ee;
}
.race-following {
  margin: 0 18px 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.race-act {
  margin-top: 12px;
}
.race-sub {
  margin: 18px 0 10px;
}
.race-sub:first-child {
  margin-top: 0;
}
.race-basis {
  margin-bottom: 10px;
}
.race-splitcol {
  width: 30%;
}
.race-end {
  flex: 1.4;
}
.t-stat .race-mid {
  vertical-align: middle;
}
.race-filter {
  order: 3;
  flex: 1 1 100%;
  min-width: 0;
}
.race-foot {
  display: flex;
  justify-content: space-between;
  gap: 6px 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}
.race-pf {
  align-items: center;
}
.race-ext {
  vertical-align: -1px;
  margin-left: 3px;
}
.race-dates,
.race-tl,
.race-vsteps,
.race-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.race-dates li {
  display: grid;
  gap: 2px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.race-dates li:first-child {
  border-top: 0;
  padding-top: 0;
}
.race-dates b {
  font-size: 15px;
}
.race-kb {
  margin: 10px 0 0;
}
.race-kb dt {
  font-weight: 700;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.race-kb dd {
  margin: 2px 0 9px;
}
.race-kb .race-from {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  color: var(--muted);
}
.race-other {
  margin-top: 10px;
  padding-top: 9px;
  border-top: 1px solid var(--line);
}
.race-tl li {
  position: relative;
  display: grid;
  gap: 3px;
  margin-left: 5px;
  padding: 0 0 16px 16px;
  border-left: 2px solid var(--line);
}
.race-tl li:last-child {
  padding-bottom: 2px;
}
.race-tl li::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--blue);
}
.race-tl .race-when {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.race-vsteps li {
  display: grid;
  gap: 1px;
  margin-bottom: 4px;
  padding: 8px 0 8px 12px;
  border-left: 6px solid #b9c6d3;
}
.race-vsteps li.now {
  border-left-color: var(--blue);
}
.race-vsteps li.end {
  border-left-color: #f3b3ad;
}
.race-vsteps b {
  font-size: 15px;
}
.race-rows li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  padding: 11px 0;
  border-top: 1px solid var(--line);
}
.race-rows li:first-child {
  border-top: 0;
  padding-top: 0;
}
.race-rows .race-fin {
  text-align: right;
}
.race-rows .race-fin b {
  font-size: 16px;
}
.race-rows .race-wide {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}
@media (max-width: 760px) {
  .race-banner {
    height: 60px;
  }
  .race-fs-h {
    margin: 0 14px 6px;
  }
  .race-fs-sub {
    margin: -4px 14px 12px;
  }
  .race-following {
    margin: 0 14px 12px;
  }
  .race-btn {
    flex: 1 1 100%;
  }
  .race-filter {
    order: 0;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .race-tap {
    display: inline-block;
    padding: 14px 6px;
    margin: -14px -6px;
  } /* a 44px tap area that moves nothing */
  .race-tl a {
    padding: 12px 0;
    margin: -12px 0;
  }
}

/* race-registration.html */
/* page-specific rules for race-registration.html; nothing here restyles a kit class */
.race-registration-head {
  margin-top: 16px;
}
.race-registration-banner {
  height: 56px;
}
.race-registration-crumbs {
  margin-bottom: 14px;
}
.race-registration-full {
  flex: 1 1 100%;
}
.race-registration-flat {
  margin: 0;
}
.race-registration-tight > * + * {
  margin-top: 8px;
}
.race-registration-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
}
.race-registration-latest {
  display: flex;
  align-items: baseline;
  gap: 4px 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.race-registration-latest b {
  font-size: 24px;
  font-weight: 800;
}
.race-registration-end {
  flex: 1.4;
}
.race-registration-fillcol {
  width: 46%;
}
.race-registration-ticks {
  font-weight: 400;
}
.race-registration-bar {
  display: grid;
  gap: 5px;
}
.race-registration-part + .race-registration-part {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.race-registration-way {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px 0;
}
.race-registration-way + .race-registration-way {
  margin-top: 8px;
}
.race-registration-way > p {
  margin-top: 4px;
}
.race-registration-more summary {
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
  padding: 12px 0;
}
.race-registration-more p {
  padding-bottom: 10px;
}
.race-registration-vsteps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.race-registration-vsteps li {
  display: grid;
  padding: 6px 0 6px 12px;
  border-left: 6px solid #b9c6d3;
}
.race-registration-vsteps li.now {
  border-left-color: var(--blue);
}
.race-registration-vsteps li.end {
  border-left-color: #f3b3ad;
}
.race-registration-next {
  list-style: none;
  margin: 0;
  padding: 0;
}
.race-registration-next li {
  display: grid;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.race-registration-next li:first-child {
  border-top: 0;
  padding-top: 0;
}
.race-registration-nowrap,
.race-registration-ways th:not(:nth-child(2)),
.race-registration-ways td:not(:nth-child(2)) {
  white-space: nowrap;
}
@media (min-width: 761px) {
  .race-registration-ed {
    white-space: nowrap;
  }
}
@media (max-width: 760px) {
  .race-registration-tap {
    display: inline-block;
    padding: 14px 6px;
    margin: -14px -6px;
  }
}

/* entry.html */
/* entry.html only. Every class here is prefixed entry-; no kit class is restyled. */
.entry-col {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
}
.entry-race {
  border-bottom: 1px solid var(--line);
  background: var(--wash);
}
.entry-body {
  padding: 16px 18px 18px;
}
.entry-body > * + * {
  margin-top: 8px;
}
.entry-kind {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.entry-struck {
  text-decoration: line-through;
  color: var(--muted);
}
.entry-label {
  font-size: 15px;
  padding: 3px 10px;
}
.entry-lines > * + * {
  margin-top: 8px;
}
.entry-second {
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.entry-dl {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 8px 14px;
  margin: 0;
}
.entry-dl dt {
  font-weight: 700;
  color: var(--slate);
}
.entry-dl dd {
  margin: 0;
}
.entry-you {
  background: var(--pale);
  border: 1px solid #b5d3ee;
  border-radius: 8px;
  padding: 10px 12px;
}
.entry-you > * + * {
  margin-top: 4px;
}
.entry-next {
  list-style: none;
  margin: 0;
  padding: 0;
}
.entry-next li {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 2px 14px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.entry-next li:first-child {
  border-top: 0;
  padding-top: 0;
}
.entry-next li:last-child {
  padding-bottom: 0;
}
.entry-next li > span:first-child {
  color: var(--slate);
  font-weight: 700;
}
.entry-by {
  margin-top: 3px;
  font-size: 13px;
  color: var(--muted);
}
.entry-links {
  padding: 0 2px;
  line-height: 2;
}
.entry-links a {
  white-space: nowrap;
}
.entry-end {
  padding: 0 2px;
}
.entry-end > * + * {
  margin-top: 10px;
}
.entry-ext {
  vertical-align: -1px;
  margin-left: 3px;
}
.entry-nw {
  white-space: nowrap;
}
@media (max-width: 760px) {
  .entry-race {
    padding: 10px 14px;
  }
  .entry-body {
    padding: 14px;
  }
  .entry-dl {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .entry-dl dd {
    margin-bottom: 8px;
  }
  .entry-dl dd:last-child {
    margin-bottom: 0;
  }
  .entry-next li {
    grid-template-columns: minmax(0, 1fr);
  }
  .entry-links {
    line-height: 1.45;
  }
  .entry-links a {
    display: block;
    padding: 12px 0;
    border-top: 1px solid var(--line);
    white-space: normal;
  }
  .entry-tap {
    display: inline-block;
    padding: 14px 6px;
    margin: -14px -6px;
  } /* a 44px tap area that moves nothing */
  .entry-links a:first-child {
    border-top: 0;
  }
}

/* about.html */
/* about.html only */
.about-sec {
  scroll-margin-top: 12px;
}
.about-sec + .about-sec {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.about-jump {
  margin-bottom: 18px;
}
.about-text {
  max-width: 78ch;
}
.about-text + .about-text {
  margin-top: 8px;
}
.about-reach {
  margin: 12px 0 0;
  display: grid;
}
.about-reach div {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.about-reach dt {
  font-weight: 700;
}
.about-reach dd {
  margin: 0;
  max-width: 78ch;
}
.about-t td {
  vertical-align: top;
}
.about-t th:first-child {
  width: 250px;
}
.about-t th:last-child {
  width: 36%;
}
.about-sends th:first-child {
  width: 20%;
}
.about-sends th:last-child {
  width: 20%;
}
.about-sends th:nth-child(2) {
  width: 22%;
}
.about-eg {
  color: var(--slate);
}
.about-by {
  color: var(--muted);
  font-size: 13px;
}
.about-k {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.about-mcards {
  display: grid;
  gap: 8px;
}
.about-mcard {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.about-mcard .src {
  white-space: normal;
}
.about-drawn {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  display: grid;
  gap: 6px;
  align-content: start;
}
.about-drawn .src {
  white-space: normal;
}
.about-steps {
  display: grid;
  gap: 16px;
}
.about-step {
  display: grid;
  gap: 6px;
}
.about-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 6px;
  max-width: 78ch;
}
.about-two {
  display: block;
  columns: 2;
  column-gap: 48px;
  max-width: none;
}
.about-two li {
  break-inside: avoid;
  margin-bottom: 8px;
}
.about-nb {
  white-space: nowrap;
}
.about-rules {
  margin: 0;
  padding-left: 20px;
  columns: 2;
  column-gap: 48px;
  font-size: 15px;
}
.about-rules li {
  break-inside: avoid;
  padding: 5px 0;
}
.about-totals {
  font-weight: 700;
  font-size: 15px;
}
.about-rgrid {
  display: grid;
  gap: 16px;
}
@media (min-width: 761px) {
  .about-rgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto auto auto auto 1fr;
    align-items: start;
  }
  .about-rgrid > * {
    grid-column: 2;
  }
  .about-rgrid > .about-rmain {
    grid-column: 1;
    grid-row: 1 / -1;
  }
}
.about-log .about-empty td {
  text-align: center;
  padding: 30px 12px;
}
.about-log th:nth-child(1) {
  width: 124px;
}
.about-log th:nth-child(2) {
  width: 132px;
}
.about-log th:nth-child(4) {
  width: 132px;
}
.about-log th:nth-child(5) {
  width: 196px;
}
.about-log th:nth-child(6) {
  width: 132px;
}
.about-log th:nth-child(7) {
  width: 112px;
}
.about-log td:first-child {
  white-space: nowrap;
}
.about-log tr.about-grouprow td {
  background: var(--wash);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding-top: 6px;
  padding-bottom: 6px;
}
.about-log tr.about-orig td,
.about-log tr.about-fixrow td {
  background: #fff;
}
.about-log tr.about-fixrow td {
  border-top: 0;
  padding-top: 0;
}
.about-struck {
  text-decoration: line-through;
  color: var(--muted);
}
.about-fix {
  padding-left: 10px;
  border-left: 3px solid var(--red);
}
.about-log td:nth-child(5),
.about-log td:nth-child(1) {
  font-variant-numeric: tabular-nums;
}
.about-surfaces {
  columns: 2;
  column-gap: 18px;
}
.about-surface {
  break-inside: avoid;
  margin-bottom: 20px;
  display: grid;
  gap: 6px;
}
.about-cap {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.about-static {
  max-height: none;
  overflow: visible;
  width: 100%;
}
.about-after {
  border-top: 1px dashed #c7d1dc;
  margin-top: 12px;
  padding-top: 10px;
  display: grid;
  gap: 2px;
}
.about-switch {
  width: 22px;
  height: 22px;
  flex: none;
  margin: 0;
}
.about-tap {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.about-rows {
  list-style: none;
  margin: 0;
  padding: 0;
}
.about-rows li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.about-rows li:first-child {
  border-top: 0;
}
.about-rows li > :first-child {
  min-width: 0;
}
.about-grp {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding-top: 12px;
  border-top: 1px solid var(--line);
  margin-top: 4px;
}
.about-grp:first-of-type {
  border-top: 0;
  padding-top: 0;
  margin-top: 0;
}
.about-how {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.about-how li {
  display: flex;
  gap: 12px;
  align-items: center;
}
.about-how svg {
  flex: none;
  color: var(--blue-dark);
}
.about-err {
  color: var(--red);
  font-weight: 700;
}
@media (max-width: 760px) {
  .about-reach div {
    grid-template-columns: minmax(0, 1fr);
  }
  .about-surfaces {
    columns: 1;
  }
  .about-two {
    columns: 1;
  }
  .about-rules {
    columns: 1;
  }
  .about-rows li {
    display: grid;
    gap: 8px;
  }
  .about-rows li > :last-child {
    justify-self: start;
  }
  .about-sec + .about-sec {
    margin-top: 28px;
    padding-top: 24px;
  }
}

/* product additions */
.search {
  position: relative;
}
.search-suggest {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
}
.suggest {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.suggest li + li {
  border-top: 1px solid var(--line);
}
.suggest a {
  display: block;
  min-height: 44px;
  padding: 10px 12px;
  color: var(--ink);
}
.suggest a:hover {
  background: var(--wash);
  text-decoration: none;
}
details.home-filter > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
}
details.home-filter > summary::-webkit-details-marker {
  display: none;
}
details.home-filter[open] > summary {
  border-color: var(--blue);
  background: var(--pale);
  color: var(--blue-dark);
}
details.home-filter > .sheet.static {
  width: 100%;
  margin-top: 10px;
  border-radius: 12px;
}

.btn.my-races-pressed {
  background: var(--pale);
  border-color: #b5d3ee;
  color: var(--blue-dark);
}
.my-races-lines > * + * {
  margin-top: 6px;
}
.my-races-list {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}
.my-races-group td {
  background: #eef1f5;
  padding-top: 5px;
  padding-bottom: 5px;
  font-size: 12px;
  font-weight: 800;
  color: var(--slate);
}
.my-races-c {
  width: 1%;
  white-space: nowrap;
}
.my-races-date {
  white-space: nowrap;
}
.my-races-t th:nth-child(1) {
  width: 24%;
}
.my-races-t th:nth-child(2) {
  width: 19%;
}
.my-races-t th:nth-child(3) {
  width: 12%;
}
.my-races-acts {
  display: grid;
  gap: 6px;
  justify-items: end;
}
.my-races-acts-top {
  display: flex;
  align-items: center;
  gap: 8px;
}
.my-races-acts-links {
  display: flex;
  gap: 14px;
  font-weight: 700;
}
.my-races-menu {
  position: relative;
}
.my-races-menu > summary {
  list-style: none;
  cursor: pointer;
}
.my-races-menu > summary::-webkit-details-marker {
  display: none;
}
.my-races-menu[open] > summary.btn {
  background: var(--pale);
}
.my-races-menu-body {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 6;
  width: 236px;
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #fff;
  border: 1px solid #c7d1dc;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(20, 37, 61, 0.16);
  text-align: left;
  white-space: normal;
  font-size: 14px;
  color: var(--ink);
}
.my-races-menu.up .my-races-menu-body {
  top: auto;
  bottom: calc(100% + 4px);
}
.my-races-menu-body.left {
  right: auto;
  left: 0;
  width: 290px;
}
.my-races-more {
  color: var(--blue);
  font-weight: 700;
}
.my-races-gh {
  font-size: 12px;
  font-weight: 800;
  color: var(--slate);
}
.my-races-cards > * + * {
  margin-top: 10px;
}
.my-races-cards .card > p + p {
  margin-top: 4px;
}
.my-races-st {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  align-items: center;
  margin: 8px 0 6px;
}
.my-races-st > span {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  white-space: nowrap;
}
.my-races-ctl {
  display: flex;
  gap: 6px;
  margin-top: 10px;
}
.my-races-ctl > * {
  flex: 1 1 auto;
}
.my-races-ctl summary {
  width: 100%;
}
.my-races-btns {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}
.my-races-sub {
  margin-left: 22px;
}
.my-races-suggest {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 16px 0 12px;
}
.my-races-suggest .btn {
  white-space: normal;
}
.my-races-mail > * + * {
  margin-top: 10px;
}
.my-races-mail ul {
  margin-top: 4px;
  gap: 5px;
}
.my-races-flag {
  display: none;
}
label.my-races-row {
  min-height: 44px;
  cursor: pointer;
}
.my-races-switch {
  width: 22px;
  height: 22px;
  flex: none;
  margin: 0;
}
@media (max-width: 760px) {
  .my-races-settings {
    display: none;
  }
  .my-races-flag:not([hidden]) ~ .stack > .my-races-settings {
    display: block;
  }
  .my-races-flag:not([hidden]) ~ .stack > :not(.my-races-settings),
  .my-races-flag:not([hidden]) ~ .rail {
    display: none;
  }
  .my-races-meta {
    position: relative;
  }
  .my-races-more {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .my-races-menu.more {
    position: static;
  }
  .my-races-menu.more .my-races-menu-body {
    left: 0;
    right: 0;
    width: auto;
  }
  .my-races-suggest {
    flex-direction: column;
  }
  .my-races-go > * {
    flex: 1 1 100%;
  }
}

label.pill:has(input:checked) {
  background: var(--pale);
  border-color: var(--blue);
  color: var(--blue-dark);
}
.sheet-back:not(:target) {
  display: none;
}
@media (max-width: 760px) {
  .follow-inline form:not(:focus-within) .pills {
    display: none;
  }
}

@media (max-width: 760px) {
  .entry-col.why {
    display: flex;
    flex-direction: column;
  }
  .entry-col.why > * {
    order: 3;
  }
  .entry-col.why > .entry-race {
    order: 0;
  }
  .entry-col.why > .card:first-of-type {
    order: 1;
  }
  .entry-col.why > #sent {
    order: 2;
  }
}

/* add.html only */
.add-col {
  max-width: 640px;
  margin: 0 auto;
}
.add-picks {
  display: grid;
  gap: 8px;
}
.add-pick {
  align-items: center;
  gap: 12px;
  color: var(--ink);
}
.add-pick:hover {
  text-decoration: none;
  border-color: var(--blue);
}
.add-pick svg {
  flex: none;
  color: var(--blue);
}
.add-pick .add-go {
  margin-left: auto;
  color: var(--muted);
}
.add-pick b {
  font-size: 15px;
}
.add-list a {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.add-list a:hover {
  text-decoration: none;
}
.add-list svg {
  flex: none;
  color: var(--blue);
}
.add-qa {
  display: grid;
  gap: 6px;
  align-content: start;
}
.add-q {
  font-weight: 700;
}
.add-opt {
  font-weight: 400;
  color: var(--muted);
}
.add-choices {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.add-choices .choice {
  flex: 1 1 130px;
  align-items: center;
}
.add-yn {
  max-width: 300px;
}
.add-times {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}
.add-ok {
  color: var(--green);
  font-weight: 700;
}
.add-filled {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--wash);
  font-weight: 700;
}
.add-file {
  display: flex;
  gap: 10px;
  align-items: center;
  width: 100%;
  text-align: left;
  border: 1px dashed #9aa7b6;
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--blue);
  font-weight: 700;
  cursor: pointer;
}
.add-file svg {
  flex: none;
}
.add-segs {
  display: grid;
  gap: 10px;
}
.add-segrow {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 6px 12px;
  align-items: center;
}
.add-segrow > .seg,
.add-segrow > .add-marks {
  justify-self: start;
}
.add-marks {
  display: flex;
  gap: 6px;
  align-items: center;
}
.add-marks button {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid #c7d1dc;
  background: #fff;
  color: var(--slate);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.add-marks button.on {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.add-more {
  border: 1px solid var(--line);
  border-radius: 8px;
}
.add-more summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--blue);
  padding: 11px 12px;
}
.add-more > div {
  padding: 2px 12px 12px;
}
.field .add-report {
  min-height: 356px;
  resize: vertical;
  line-height: 1.5;
}
.add-count {
  float: right;
  margin-left: 10px;
}
.add-linkbtn {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  cursor: pointer;
}
.add-linkbtn:hover {
  text-decoration: underline;
}
.add-lines {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 4px;
}
.add-prev td:first-child b,
.add-prev td:first-child small {
  white-space: nowrap;
}
@media (min-width: 761px) {
  .add-prev th:nth-child(1) {
    width: 21%;
  }
  .add-prev th:nth-child(2) {
    width: 25%;
  }
  .add-prev th:nth-child(3) {
    width: 27%;
  }
}
.add-also {
  border: 1px dashed #c7d1dc;
  border-radius: var(--radius);
  padding: 16px;
}
.add-also > section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.add-also h3 {
  margin-bottom: 8px;
}
.add-code {
  margin: 0 -18px -14px;
  display: grid;
  gap: 0;
}
@media (max-width: 760px) {
  .add-times {
    grid-template-columns: minmax(0, 1fr);
  }
  .add-segrow {
    grid-template-columns: minmax(0, 1fr);
  }
  .add-marks button {
    width: 44px;
    height: 44px;
    font-size: 14px;
  }
  .add-segrow > .seg {
    display: flex;
    justify-self: stretch;
  }
  .add-segrow .seg a {
    flex: 1 1 auto;
    justify-content: center;
    padding-left: 6px;
    padding-right: 6px;
  }
  .add-linkbtn {
    min-height: 44px;
  }
  .add-more summary {
    padding: 13px 12px;
  }
  .field .add-report {
    min-height: 446px;
  }
  .add-code {
    margin: 0 -14px -12px;
  }
  /* one question group per screen: a band splits the step card into screens */
  .add-group + .add-group {
    margin-top: 0;
  }
  .add-group + .add-group::before {
    content: "";
    display: block;
    height: 12px;
    margin: 16px -15px 14px;
    background: var(--wash);
    border: solid var(--line);
    border-width: 1px 0;
  }
}

/* Registration reports */

/* report.html only */
.report-col {
  max-width: 520px;
  margin: 0 auto;
}
.report-top {
  padding-top: 16px;
}
.report-filled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 11px;
  background: var(--wash);
  font-weight: 700;
}
.report-opt {
  font-weight: 400;
  color: var(--muted);
}
.report-group {
  display: grid;
  gap: 6px;
}
.report-q {
  font-weight: 700;
}
.report-next {
  margin: 8px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}
.report-quote {
  margin-top: 8px;
  padding: 9px 12px;
  border-left: 3px solid #ecd297;
  background: #fffaf0;
  border-radius: 0 8px 8px 0;
  display: grid;
  gap: 5px;
  justify-items: start;
}
@media (min-width: 761px) {
  .report-chipcol {
    min-width: 120px;
  }
  .report-who {
    width: 196px;
  }
  .report-when {
    width: 152px;
  }
}
.report-also {
  border: 1px dashed #c7d1dc;
  border-radius: var(--radius);
  padding: 16px;
}
.report-also > section {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}
.report-also h3 {
  margin-bottom: 8px;
}
.report-variants {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
}
.report-variants > b {
  padding-top: 6px;
}
.report-onsite > p {
  grid-column: 2 / 4;
}
.report-onsite > .btn {
  grid-column: 4 / 6;
  justify-self: end;
}
.report-link {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  cursor: pointer;
  text-align: left;
}
.report-link:hover {
  text-decoration: underline;
}
.report-state {
  flex: 1 1 auto;
}
.report-votes {
  margin-top: 8px;
}
.report-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
}
.report-by {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}
.report-sub {
  display: block;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.report-offered th,
.report-offered td {
  vertical-align: top;
  padding-left: 9px;
  padding-right: 9px;
}
.report-offered td small + small {
  margin-top: 1px;
}
.report-offered td small .src {
  margin-top: 5px;
}
.report-dl {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  gap: 10px 12px;
  margin: 0;
}
.report-dl dt {
  font-weight: 700;
  color: var(--slate);
}
.report-dl dd {
  margin: 0;
}
.report-dl small {
  display: block;
  color: var(--muted);
  margin-top: 2px;
}
.report-timeline {
  list-style: none;
  margin: 0 0 0 5px;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 16px;
}
.report-timeline li {
  position: relative;
  display: grid;
  gap: 3px;
}
.report-timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--slate);
}
@media (max-width: 760px) {
  .report-chipcol {
    align-self: start;
  }
  .report-onsite > p,
  .report-onsite > .btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
  .report-state {
    flex: 0 1 auto;
  }
  .report-link,
  .report-tap {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 44px;
  }
  .report-unknowns li {
    flex-wrap: wrap;
  }
  .report-unknowns li > span {
    flex-basis: calc(100% - 30px);
  }
  .report-unknowns li > .btn {
    margin-left: 30px;
  }
  .report-variants {
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
  }
  .report-variants > b {
    padding-top: 8px;
  }
}

label.pill {
  position: relative;
  cursor: pointer;
}
label.pill:has(input:checked) {
  border-color: var(--blue);
  background: #eef6ff;
  color: var(--blue);
}
label.pill input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
label.pill:focus-within {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
#report-form .report-link {
  display: grid;
  cursor: auto;
  color: inherit;
  text-decoration: none;
}
.report-group .choice > span {
  min-width: 0;
}
.report-group .choice .muted {
  display: block;
}
.report-time {
  max-width: 220px;
  min-height: 44px;
}

.registration-index {
  margin-block: 28px;
}
.registration-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding-block: 18px;
  border-bottom: 1px solid var(--line);
}
.registration-row > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.registration-row p {
  margin-block: 6px;
}
.registration-panel h3 {
  margin-top: 26px;
}
.registration-index details {
  margin-top: 20px;
}
@media (max-width: 760px) {
  .registration-mobile-hidden {
    display: none;
  }
  .registration-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .registration-index .seg {
    display: flex;
    flex-wrap: wrap;
  }
  .registration-index .seg a {
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

.result-report-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.65;
}
.result-scores {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.result-scores dd {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
}
.result-list > article {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.result-list details[open] {
  margin-top: 10px;
  padding: 10px;
  background: var(--bg);
}
.result-preview {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}
.compare-ladder {
  display: flex;
  gap: 12px;
  margin: 10px 0 24px;
  min-width: 0;
}
.ladder-axis {
  width: 48px;
  flex: 0 0 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: 50px;
  height: 360px;
  font-size: 12px;
}
.ladder-column {
  flex: 1;
  min-width: 0;
  padding: 12px;
  background: #f0f5ff;
  border-radius: 8px;
}
.ladder-column:nth-child(3) {
  background: #f2f7ec;
}
.ladder-column:nth-child(4) {
  background: #fff5e8;
}
.ladder-column:nth-child(5) {
  background: #f6f0ff;
}
.ladder-column h3 {
  font-size: 14px;
  min-height: 36px;
}
.ladder-plot {
  height: 310px;
  position: relative;
}
.ladder-rung {
  position: absolute;
  left: 0;
  right: 0;
  transform: translateY(-100%);
  padding: 5px;
  border-bottom: 2px solid #8097bb;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.88);
}
.ladder-rung .badge {
  font-size: 10px;
  margin-top: 2px;
}
@media (max-width: 700px) {
  .result-scores {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .compare-ladder {
    overflow-x: auto;
  }
  .ladder-column {
    flex: 0 0 42%;
  }
  .side-by-side {
    min-width: 620px;
  }
  .result-list .row {
    flex-wrap: wrap;
  }
}

.post.answer {
  border-left: 3px solid var(--green, #376944);
  padding-left: 16px;
}
#on-site {
  margin-top: 20px;
}
#on-site > summary {
  cursor: pointer;
  font-weight: 650;
}
#on-site > form {
  margin-top: 16px;
}
.community-list small {
  display: block;
}
@media (max-width: 700px) {
  .community-list,
  .community-list tbody {
    display: block;
  }
  .community-list thead {
    display: none;
  }
  .community-list tr {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line, #ddd);
  }
  .community-list td {
    display: block;
    border: 0;
    padding: 3px 0;
    white-space: normal;
  }
  #forums .community-list td:last-child {
    display: none;
  }
}
.compare-picks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  padding: 0;
}
.compare-picks select {
  width: 100%;
}
@media (max-width: 700px) {
  .compare-picks {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ladder-column:nth-child(n + 4) {
    display: none;
  }
  .ladder-column {
    flex: 1;
  }
  .side-by-side {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
    font-size: 12px;
  }
  .side-by-side th:nth-child(n + 4),
  .side-by-side td:nth-child(n + 4) {
    display: none;
  }
  .side-by-side th,
  .side-by-side td {
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

#age-group-times td:first-child a {
  white-space: nowrap;
}
@media (max-width: 760px) {
  #age-group-times td > small.only-m {
    display: block;
  }
}
