/* Results board for /stats/{city}/{year}. Scoped so the site header and footer keep their own CSS. */

body.page-stats {
  background-color: #0b0908;
  color: #f4efe6;
  overflow-x: hidden;
  overflow-x: clip;
}

.hondo-stats {
  --hs-red: #e50912;
  --hs-cream: #f4efe6;
  --hs-gold: #e7c56d;
  --hs-gold-line: #c6a15a;
  --hs-ink: #100e0c;
  --hs-heading: var(--display, "Cheddar Gothic Sans", Impact, sans-serif);
  position: relative;
  color: var(--hs-cream);
  font-family: var(--sans, "Gotham Medium", Helvetica, sans-serif);
  font-size: 15px;
  line-height: 1.5;
  overflow-x: hidden;
  overflow-x: clip;
  background-color: #0b0908;
}

.hondo-stats::before,
.hondo-stats::after {
  content: "";
  position: absolute;
  z-index: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(1280px, 100%);
  pointer-events: none;
  background-repeat: no-repeat;
}

.hondo-stats-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px 48px;
}

.hondo-stats button,
.hondo-stats input,
.hondo-stats select {
  font: inherit;
}

.hondo-stats button,
.hondo-stats a {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hondo-stats button {
  cursor: pointer;
}

.hondo-stats a {
  color: inherit;
}

.hondo-stats button:focus-visible,
.hondo-stats a:focus-visible,
.hondo-stats summary:focus-visible {
  outline: 3px solid #e8b65b;
  outline-offset: 5px;
}

.hondo-stats button:disabled {
  opacity: 0.5;
  cursor: wait;
}

.hondo-stats .hero {
  position: relative;
  isolation: isolate;
  text-align: center;
  padding: 30px 0 42px;
  min-height: 390px;
}

.hondo-stats .dashboard {
  position: relative;
  isolation: isolate;
}

@media (min-width: 761px) {
  .hondo-stats-inner {
    padding-bottom: 460px;
  }

  .hondo-stats::before {
    top: 0;
    aspect-ratio: 1280 / 640;
    background-image:
      linear-gradient(90deg, #0b0908 0%, rgba(11, 9, 8, 0) 4%, rgba(11, 9, 8, 0) 96%, #0b0908 100%),
      linear-gradient(180deg, rgba(11, 9, 8, 0) 0%, rgba(11, 9, 8, 0) 42%, #0b0908 62%),
      radial-gradient(ellipse 38% 52% at 50% 36%, rgba(11, 9, 8, 0.66), rgba(11, 9, 8, 0) 70%),
      linear-gradient(180deg, rgba(11, 9, 8, 0.28), rgba(11, 9, 8, 0.28)),
      image-set(url("/media/stats/stats-bg-desktop.webp") type("image/webp"));
    background-position: center, center, center, center, center calc(-0.139 * min(1280px, 100vw) + 8px);
    background-size: auto, auto, auto, auto, 100% auto;
  }

  @media (min-width: 1281px) {
    .hondo-stats::before {
      background-position: center, center, center, center, center -170px;
    }
  }

  .hondo-stats::after {
    bottom: 0;
    aspect-ratio: 1280 / 700;
    background-image:
      linear-gradient(90deg, #0b0908 0%, rgba(11, 9, 8, 0) 5%, rgba(11, 9, 8, 0) 95%, #0b0908 100%),
      linear-gradient(180deg, #0b0908 0%, rgba(11, 9, 8, 0.08) 24%, rgba(11, 9, 8, 0.16) 100%),
      image-set(url("/media/stats/stats-bg-desktop.webp") type("image/webp"));
    background-position: center, center, center bottom;
    background-size: auto, auto, 100% auto;
  }
}

.hondo-stats .hero-wordmark {
  margin: 0 0 8px;
  font-family: var(--hs-heading);
  font-weight: 400;
  font-size: clamp(38px, 5.9vw, 76px);
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 3px 8px #000;
}

.hondo-stats .brush {
  display: inline-block;
  margin-left: 0.15em;
  background: #bd090f;
  clip-path: polygon(2% 7%, 96% 0, 99% 85%, 0 100%);
  padding: 1px 26px 9px;
  font-family: var(--western, var(--hs-heading));
  font-style: italic;
  font-size: clamp(38px, 4.2vw, 55px);
  line-height: 1;
  letter-spacing: 1px;
  text-shadow: none;
  transform: rotate(-3deg);
}

.hondo-stats .city-carousel {
  position: relative;
  margin: 0 -28px 8px;
  padding: 0 28px;
}

.hondo-stats .selected-city-wrap {
  max-width: 650px;
  margin: auto;
  position: relative;
  z-index: 1;
}

.hondo-stats .city-heading-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
}

.hondo-stats .city-heading-row h1 {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--hs-heading);
  font-weight: 400;
  font-size: clamp(36px, 5.5vw, 70px);
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow: 0 3px 8px #000;
}

.hondo-stats .city-arrow {
  flex: none;
  border: 0;
  background: none;
  color: #c8a78a;
  font: 300 38px/1 Arial, sans-serif;
  padding: 0 2px;
}

.hondo-stats .city-arrow:hover {
  color: #fff;
}

.hondo-stats .city-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.hondo-stats .selected-date {
  margin: 1px 0 0;
  color: #d4c0ae;
  font-family: var(--hs-heading);
  font-size: 14px;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.hondo-stats .city-history {
  display: flex;
  align-items: center;
  gap: 22px;
  position: absolute;
  left: calc(50% + 345px);
  top: 3px;
  right: -80px;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: #8d5c3a transparent;
  padding: 9px 0 15px;
  text-align: left;
}

.hondo-stats .city-newer {
  left: -80px;
  right: calc(50% + 345px);
  flex-direction: row-reverse;
  text-align: right;
}

.hondo-stats .city-choice {
  flex: none;
  background: rgba(11, 9, 8, 0.9);
  border: 0;
  border-left: 1px solid #966d4c;
  padding: 0 0 0 18px;
  color: #c6b2a0;
  text-align: left;
}

.hondo-stats .city-newer .city-choice {
  text-align: right;
  border-left: 0;
  border-right: 1px solid #966d4c;
  padding: 0 18px 0 0;
}

.hondo-stats .city-choice span {
  display: block;
  font-family: var(--hs-heading);
  font-size: 24px;
  text-transform: uppercase;
  white-space: nowrap;
}

.hondo-stats .city-choice small {
  display: block;
  font-family: var(--hs-heading);
  font-size: 12px;
  font-weight: 400;
  white-space: nowrap;
}

.hondo-stats .city-choice:hover {
  color: #fff;
}

.hondo-stats .sub {
  margin: 20px 0 0;
  color: #e5d8ce;
  letter-spacing: 2px;
  font-family: var(--hs-heading);
  font-size: 15px;
  text-transform: uppercase;
}

.hondo-stats .sub::before,
.hondo-stats .sub::after {
  content: "";
  display: inline-block;
  width: 56px;
  height: 1px;
  background: var(--hs-gold-line);
  vertical-align: middle;
  margin: 0 16px;
}

.hondo-stats .section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin: 28px 0 22px;
  padding-top: 22px;
  border-top: 1px solid var(--hs-gold-line);
}

.hondo-stats h2 {
  margin: 6px 0 0;
  font-family: var(--hs-heading);
  font-weight: 400;
  font-size: 40px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f7f1e8;
}

.hondo-stats .small-label {
  color: var(--hs-gold);
  font-family: var(--hs-heading);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hondo-stats .section-heading .small-label,
.hondo-stats .money-board-heading .small-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
}

.hondo-stats .section-heading .small-label::before,
.hondo-stats .section-heading .small-label::after,
.hondo-stats .money-board-heading .small-label::before,
.hondo-stats .money-board-heading .small-label::after {
  content: "";
  flex: none;
  width: 28px;
  height: 1px;
  background: var(--hs-gold-line);
}

.hondo-stats .feed {
  font-size: 12px;
  color: #c8bbb1;
  text-align: right;
}

.hondo-stats .feedline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  color: #e9e0d9;
  margin-bottom: 4px;
}

.hondo-stats .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #6ccc8b;
  box-shadow: 0 0 10px #5b9d7455;
}

.hondo-stats .feed.error .dot {
  background: #f4b952;
}

.hondo-stats .refresh {
  border: 0;
  background: none;
  color: #d9c1ac;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0;
}

.hondo-stats .tabs {
  display: flex;
  gap: 32px;
  border-bottom: 1px solid var(--hs-gold-line);
  background: rgba(12, 10, 8, 0.88);
  padding: 0 22px;
  scroll-margin-top: calc(var(--hondo-nav-h, 104px) + 12px);
}

.hondo-stats .tabs button {
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  color: #b4aaa3;
  font-family: var(--hs-heading);
  font-size: 18px;
  text-transform: uppercase;
  padding: 17px 0 14px;
}

.hondo-stats .tabs button[aria-selected="true"] {
  color: #fff;
  border-color: var(--hs-gold);
}

.hondo-stats .controls {
  background: rgba(14, 12, 10, 0.92);
  border: 1px solid var(--hs-gold-line);
  border-top: 0;
  padding: 18px 21px;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  border-radius: 0 0 2px 2px;
}

.hondo-stats .rounds {
  display: flex;
  gap: 5px;
}

.hondo-stats .rounds button {
  border: 1px solid #655143;
  border-radius: 3px;
  background: #110d09;
  color: #e1d7ce;
  padding: 8px 16px;
  font-family: var(--hs-heading);
  font-size: 14px;
  text-transform: uppercase;
}

.hondo-stats .rounds button.selected {
  background: linear-gradient(#eb151c, #ac0208);
  border-color: #f5464b;
  color: #fff;
}

.hondo-stats .search-wrap {
  position: relative;
  flex: 0 1 300px;
}

.hondo-stats .search-wrap svg {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 17px;
  height: 17px;
  color: #bba997;
}

.hondo-stats input[type="search"] {
  width: 100%;
  background: #0e0c0b;
  border: 1px solid #685547;
  border-radius: 4px;
  color: #fff;
  padding: 9px 12px 9px 38px;
  outline: none;
}

.hondo-stats input[type="search"]:focus {
  border-color: #dc9d63;
}

.hondo-stats input[type="search"]::placeholder {
  color: #b4a69b;
}

.hondo-stats .filterline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin: 20px 0 16px;
}

.hondo-stats .select-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #c9b8aa;
  font-size: 12px;
}

.hondo-stats .select-wrap select {
  max-width: 190px;
  background: #1b120c;
  border: 1px solid #796451;
  color: #e9dfd7;
  padding: 7px 10px;
  border-radius: 3px;
}

.hondo-stats .textbutton {
  flex: none;
  background: rgba(11, 9, 8, 0.9);
  border: 0;
  color: #d3c1b3;
  font-size: 12px;
  padding: 8px;
}

.hondo-stats .textbutton:hover {
  color: #fff;
}

.hondo-stats #count {
  color: #a99483;
  font-size: 12px;
  margin-left: 12px;
}

.hondo-stats .grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  min-width: 0;
}

.hondo-stats details {
  min-width: 0;
  max-width: 100%;
  border: 1px solid var(--hs-gold-line);
  border-radius: 2px;
  overflow: hidden;
  background: rgba(12, 10, 9, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.hondo-stats summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
  padding: 15px 19px;
  list-style: none;
  font-family: var(--hs-heading);
  font-size: 21px;
  text-transform: uppercase;
  border-bottom: 1px solid transparent;
}

.hondo-stats summary::-webkit-details-marker {
  display: none;
}

.hondo-stats details[open] summary {
  border-bottom: 1px solid var(--hs-gold-line);
  background: transparent;
}

.hondo-stats .eventtitle {
  display: flex;
  align-items: center;
  gap: 13px;
  min-width: 0;
}

.hondo-stats .chevron {
  flex: none;
  width: 9px;
  height: 9px;
  border-right: 2px solid #d0b6a0;
  border-bottom: 2px solid #d0b6a0;
  transform: rotate(45deg);
  margin-right: 3px;
}

.hondo-stats details[open] .chevron {
  transform: rotate(225deg);
  margin-top: 7px;
}

.hondo-stats .hs-table-wrap {
  overflow-x: auto;
  max-width: 100%;
}

.hondo-stats table {
  border-collapse: collapse;
  width: 100%;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.hondo-stats th,
.hondo-stats td {
  border-bottom: 0;
  text-align: left;
}

.hondo-stats th {
  text-transform: uppercase;
  color: #b5a18f;
  font-family: var(--hs-heading);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 1px;
  padding: 11px 9px;
  background: #0c090766;
}

.hondo-stats td {
  padding: 12px 9px;
  border-top: 1px solid rgba(198, 161, 90, 0.22);
}

.hondo-stats th:first-child,
.hondo-stats td:first-child {
  padding-left: 19px;
  width: 48px;
}

.hondo-stats th:last-child,
.hondo-stats td:last-child {
  padding-right: 19px;
  text-align: right;
}

.hondo-stats th:last-child {
  color: var(--hs-gold);
}

.hondo-stats td.money,
.hondo-stats .leaders td.score {
  color: #f0d48a;
  font-weight: 700;
}

.hondo-stats td:nth-last-child(2),
.hondo-stats th:nth-last-child(2) {
  text-align: right;
}

.hondo-stats td.name {
  font-weight: 600;
  color: #eee5de;
  text-align: left;
}

.hondo-stats td.name small {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: #a89686;
  margin-top: 3px;
}

.hondo-stats .score {
  font-weight: 700;
  white-space: nowrap;
}

.hondo-stats .score small,
.hondo-stats .muted {
  font-weight: 400;
  font-size: 10px;
  color: #ae9987;
}

.hondo-stats .rank {
  color: #b29c87;
  font-family: var(--hs-heading);
  font-size: 16px;
}

.hondo-stats tr.first {
  background: linear-gradient(90deg, #91601f22, transparent);
}

.hondo-stats tr.first .rank {
  color: #eec27b;
}

.hondo-stats tr.first .score {
  color: #f0d2a2;
}

.hondo-stats .money {
  color: #f0d48a;
  white-space: nowrap;
}

.hondo-stats .cardfoot {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 19px;
  border-top: 1px solid rgba(198, 161, 90, 0.45);
  color: #d4c4b0;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.hondo-stats .notice {
  background: #34230e;
  border: 1px solid #795b2b;
  color: #efcf92;
  padding: 12px 18px;
  margin: 16px 0;
  border-radius: 4px;
  font-size: 13px;
}

.hondo-stats .empty,
.hondo-stats .loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 50px 10px;
  border: 1px dashed #6e523b;
  border-radius: 5px;
  color: #c8b49f;
}

.hondo-stats .leaders {
  grid-column: 1 / -1;
  min-width: 0;
}

.hondo-stats .leaders table {
  font-size: 14px;
}

.hondo-stats .leaders td,
.hondo-stats .leaders th {
  padding-top: 15px;
  padding-bottom: 15px;
}

.hondo-stats .leaders th:first-child {
  width: 70px;
}

.hondo-stats .note {
  color: #d4c4b0;
  font-size: 12px;
  margin: 20px 0 0;
  line-height: 1.7;
}

.hondo-stats .hidden {
  display: none !important;
}

.hondo-stats .event-icon {
  display: inline-block;
  flex: none;
  width: 34px;
  height: 30px;
  background-image: url("/media/stats/event-icons.webp");
  background-repeat: no-repeat;
  background-size: 1109px 57px;
  mix-blend-mode: screen;
}

.hondo-stats .icon-BR { background-position: -31px -17px; }
.hondo-stats .icon-BB { background-position: -157px -17px; }
.hondo-stats .icon-SB { background-position: -274px -17px; }
.hondo-stats .icon-CBR { background-position: -392px -17px; }
.hondo-stats .icon-SW {
  background-image: url("/media/stats/icon-sw.webp?v=2");
  background-position: center;
  background-size: 34px 30px;
}
.hondo-stats .icon-TDR { background-position: -627px -17px; }
.hondo-stats .icon-BA { background-position: -741px -17px; }
.hondo-stats .icon-TR { background-position: -857px -17px; }
.hondo-stats .icon-TRH { background-position: -978px -17px; }

.hondo-stats .team-icons {
  display: flex;
  align-items: center;
  gap: 2px;
}

.hondo-stats .money-event {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  white-space: nowrap;
  font-family: var(--hs-heading);
  font-size: 14px;
  cursor: help;
  outline-offset: 3px;
}

.hondo-stats .money-event::after {
  content: attr(data-event-name);
  position: absolute;
  right: 0;
  bottom: calc(100% + 7px);
  padding: 7px 10px;
  background: #080605;
  color: #fff;
  border: 1px solid #b08b69;
  border-radius: 4px;
  box-shadow: 0 4px 14px #0009;
  font: 400 13px/1.3 Arial, sans-serif;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  z-index: 5;
}

.hondo-stats .money-event:hover::after,
.hondo-stats .money-event:focus::after,
.hondo-stats .money-event:focus-visible::after {
  opacity: 1;
  visibility: visible;
}

.hondo-stats .money-board {
  border: 1px solid var(--hs-gold-line);
  border-radius: 2px;
  background: rgba(12, 10, 9, 0.94);
  max-width: 100%;
}

.hondo-stats .money-board-heading {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 18px 19px 14px;
  border-bottom: 1px solid var(--hs-gold-line);
  background: transparent;
}

.hondo-stats .money-board-heading .small-label {
  order: -1;
}

.hondo-stats .money-board-heading h3 {
  margin: 0;
  font-family: var(--hs-heading);
  font-weight: 400;
  font-size: 32px;
  line-height: 0.95;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #f7f1e8;
}

.hondo-stats .maverick-board {
  grid-column: 1 / -1;
  margin: 0;
  min-width: 0;
}

.hondo-stats .maverick-board .money-board,
.hondo-stats .maverick-board .hs-table-wrap {
  max-width: 100%;
  min-width: 0;
}

.hondo-stats .maverick-board table {
  table-layout: fixed;
}

.hondo-stats .maverick-board th,
.hondo-stats .maverick-board td {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.hondo-stats .maverick-board th:nth-child(1),
.hondo-stats .maverick-board td:nth-child(1) {
  width: 12%;
}

.hondo-stats .maverick-board th:nth-child(2),
.hondo-stats .maverick-board td:nth-child(2) {
  width: 40%;
}

.hondo-stats .maverick-board th:nth-child(3),
.hondo-stats .maverick-board td:nth-child(3),
.hondo-stats .maverick-board th:nth-child(4),
.hondo-stats .maverick-board td:nth-child(4) {
  width: 24%;
}

.hondo-stats .maverick-empty {
  margin: 0;
  padding: 28px 16px;
  text-align: center;
  color: #c8b49f;
}

.hondo-stats .rider-toggle {
  border: 0;
  background: none;
  color: inherit;
  font-weight: 600;
  font-size: inherit;
  font-family: inherit;
  padding: 0;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 30px;
  min-width: 0;
  width: 100%;
}

.hondo-stats .rider-chevron {
  display: inline-grid;
  place-items: center;
  color: #e4b581;
  border: 1px solid #745339;
  border-radius: 3px;
  width: 23px;
  height: 23px;
  flex: none;
}

.hondo-stats .rider-toggle:hover {
  color: #f4cf9d;
}

.hondo-stats .rider-breakdown td {
  background: #090705b0;
  padding: 18px 26px !important;
  text-align: left !important;
}

.hondo-stats .rider-breakdown[hidden] {
  display: none;
}

.hondo-stats .breakdown-title {
  font-family: var(--hs-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ac937b;
  margin-bottom: 9px;
}

.hondo-stats .hondo-winning {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 12px 5px;
  border-bottom: 1px solid rgba(198, 161, 90, 0.28);
  color: #e9dbce;
  font-size: 13px;
}

.hondo-stats .hondo-winning > span:last-child:not(.pending-money) {
  color: #f0d48a;
  font-weight: 700;
}

.hondo-stats .hondo-winning small {
  display: block;
  color: #9f8874;
  font-size: 10px;
  margin-top: 3px;
}

.hondo-stats .pending-money {
  color: #a98e76;
  font-size: 11px;
}

.hondo-stats .leaders th small {
  font-size: 11px;
  color: #d4c4b0;
}

@media (min-width: 761px) {
  .hondo-stats .hero {
    min-height: 0;
    padding-bottom: 4px;
  }

  /* HONDO over the red RESULTS banner, sitting in the sky between buckle and cowboy. */
  .hondo-stats .hero-wordmark {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: max-content;
    max-width: 100%;
    margin: 0 auto;
    line-height: 1.05;
    transform: translate(
      calc(130 / 1280 * min(1280px, 100vw)),
      calc(21px + 0.05 * min(1280px, 100vw))
    );
  }

  .hondo-stats .brush {
    position: relative;
    z-index: -1;
    margin: -0.06em 0 0;
  }

  /* Chip tops clear the AWARD letters on the buckle. The row stays in flow, so the tagline follows. */
  .hondo-stats .city-carousel {
    margin-top: calc(64px + 0.1 * min(1280px, 100vw));
  }

  .hondo-stats .section-heading {
    margin-top: 16px;
  }
}

@media (min-width: 1201px) {
  .hondo-stats .city-history {
    left: calc(50% + 210px);
    right: 0;
    gap: 8px;
    overflow: hidden;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: center;
    height: 68px;
    padding: 6px;
    scrollbar-width: none;
  }

  .hondo-stats .city-newer {
    left: 0;
    right: calc(50% + 210px);
  }

  /* The wrap was a 650px hit target over the chips beside the arrows. */
  .hondo-stats .selected-city-wrap {
    width: fit-content;
  }

  .hondo-stats .city-history::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 1200px) {
  .hondo-stats .city-history {
    left: calc(50% + 280px);
    right: -15px;
  }

  .hondo-stats .city-newer {
    left: -15px;
    right: calc(50% + 280px);
  }

  .hondo-stats .city-heading-row h1 {
    font-size: 54px;
  }

  .hondo-stats .selected-city-wrap {
    max-width: 560px;
  }

  .hondo-stats .city-choice span {
    font-size: 20px;
  }
}

/* Tablet: the side gutters are too narrow for a scrolling strip.
   Chips sit beside the title and wrap onto a second row, fully visible. */
@media (min-width: 761px) and (max-width: 1200px) {
  .hondo-stats .city-carousel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-areas: "newer current older";
    align-items: center;
    column-gap: 16px;
  }

  .hondo-stats .selected-city-wrap {
    grid-area: current;
    max-width: none;
    width: auto;
    margin: 0;
  }

  .hondo-stats .city-history {
    grid-area: older;
  }

  .hondo-stats .city-newer {
    grid-area: newer;
  }

  .hondo-stats .city-history,
  .hondo-stats .city-newer {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    height: auto;
    min-width: 0;
    overflow: hidden;
    scrollbar-width: none;
    flex-wrap: wrap;
    align-content: center;
    gap: 6px;
    padding: 6px;
  }

  .hondo-stats .city-history::-webkit-scrollbar {
    display: none;
  }
}

@media (min-width: 761px) {
  .hondo-stats .city-choice,
  .hondo-stats .city-newer .city-choice {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    gap: 2px;
    min-width: 108px;
    min-height: 52px;
    padding: 8px 10px;
    background: rgba(11, 9, 8, 0.94);
    border: 1px solid #c6a15a;
    color: #f4efe6;
    text-align: center;
  }

  .hondo-stats .city-choice span,
  .hondo-stats .city-choice small {
    width: 100%;
    text-align: center;
  }

  .hondo-stats .city-choice span {
    font-size: 20px;
    line-height: 1.05;
    color: #f4efe6;
  }

  .hondo-stats .city-choice small {
    font-size: 13px;
    line-height: 1.15;
    color: #f0d48a;
  }

  .hondo-stats .city-choice:hover,
  .hondo-stats .city-choice:focus-visible {
    border-color: #f0d48a;
    color: #fff;
  }

  .hondo-stats .city-choice:focus-visible {
    outline: 3px solid #e8b65b;
    outline-offset: 2px;
  }
}

@media (min-width: 761px) and (max-width: 960px) {
  .hondo-stats .city-history {
    flex-direction: column;
    align-items: flex-start;
  }

  .hondo-stats .city-newer {
    flex-direction: column;
    align-items: flex-end;
  }

  .hondo-stats .city-choice,
  .hondo-stats .city-newer .city-choice {
    flex: none;
    width: 100%;
    max-width: 168px;
    min-width: 0;
    min-height: 48px;
    padding: 7px 10px;
  }

  .hondo-stats .city-choice span {
    font-size: 18px;
  }

  .hondo-stats .city-choice small {
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  .hondo-stats-inner {
    padding: 0 18px 36px;
  }

  /* Each rail lists the nearest event first. Later chips are the outer ones. */
  .hondo-stats .city-choice:nth-child(n + 2) {
    display: none;
  }

  .hondo-stats .section-heading .small-label::before,
  .hondo-stats .section-heading .small-label::after,
  .hondo-stats .money-board-heading .small-label::before,
  .hondo-stats .money-board-heading .small-label::after {
    width: 14px;
  }

  .hondo-stats .section-heading .small-label,
  .hondo-stats .money-board-heading .small-label {
    letter-spacing: 0.14em;
    gap: 8px;
  }

  .hondo-stats .hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "buckle word"
      "carousel carousel"
      "tagline tagline";
    align-items: center;
    column-gap: 10px;
    row-gap: 14px;
    min-height: 0;
    padding: 6px 0 4px;
  }

  /* The full portrait stays off the phone. Only the buckle crop is shown. */
  .hondo-stats::before,
  .hondo-stats::after {
    content: none;
  }

  .hondo-stats .hero::before {
    content: "";
    grid-area: buckle;
    justify-self: stretch;
    width: 100%;
    aspect-ratio: 460 / 324;
    background: url("/media/stats/stats-bg-mobile-buckle.webp") center / contain no-repeat;
    pointer-events: none;
    /* Soften the crop into the page so the right and bottom edges do not read as a box. */
    -webkit-mask-image:
      linear-gradient(to left, transparent, #000 25%),
      linear-gradient(to top, transparent, #000 25%);
    -webkit-mask-composite: source-in;
    mask-image:
      linear-gradient(to left, transparent, #000 25%),
      linear-gradient(to top, transparent, #000 25%);
    mask-composite: intersect;
  }

  .hondo-stats .hero-wordmark {
    grid-area: word;
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: clamp(26px, 8vw, 34px);
    line-height: 1.05;
    letter-spacing: 0;
  }

  .hondo-stats .brush {
    position: relative;
    z-index: -1;
    display: block;
    margin: -0.06em 0 0;
    font-size: clamp(22px, 6.4vw, 28px);
    padding: 1px 12px 5px;
  }

  .hondo-stats .city-carousel {
    grid-area: carousel;
  }

  .hondo-stats .sub {
    grid-area: tagline;
  }

  .hondo-stats .city-carousel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto) minmax(0, 1fr);
    grid-template-areas: "newer current older";
    align-items: start;
    column-gap: 4px;
    margin: 0 0 6px;
    padding: 0;
  }

  .hondo-stats .selected-city-wrap {
    grid-area: current;
    max-width: none;
    width: auto;
    margin: 0;
    min-width: 0;
  }

  .hondo-stats .city-heading-row {
    gap: 2px;
  }

  .hondo-stats .city-heading-row h1 {
    font-size: clamp(15px, 5vw, 26px);
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 0.95;
  }

  .hondo-stats .city-arrow {
    font-size: 22px;
  }

  .hondo-stats .selected-date {
    font-size: 11px;
    letter-spacing: 0.5px;
  }

  .hondo-stats .city-history {
    grid-area: older;
  }

  .hondo-stats .city-newer {
    grid-area: newer;
  }

  .hondo-stats .city-history,
  .hondo-stats .city-newer {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    height: auto;
    overflow: visible;
    flex-wrap: nowrap;
    align-content: center;
    align-items: center;
    gap: 0;
    padding: 2px 0 0;
  }

  .hondo-stats .city-newer .city-choice {
    padding: 0 6px 0 0;
  }

  .hondo-stats .city-choice {
    position: relative;
    min-width: 0;
    max-width: 100%;
    padding-left: 6px;
  }

  .hondo-stats .city-choice::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -4px;
    bottom: -4px;
  }

  .hondo-stats .city-choice span,
  .hondo-stats .city-choice small {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }

  .hondo-stats .city-choice span {
    font-size: 11px;
  }

  .hondo-stats .city-choice small {
    font-size: 8px;
  }

  .hondo-stats .sub {
    font-size: 12px;
    letter-spacing: 1px;
  }

  .hondo-stats .sub::before,
  .hondo-stats .sub::after {
    width: 18px;
    height: 1px;
    margin: 0 7px;
  }

  .hondo-stats .section-heading {
    position: relative;
    margin: 16px 0 16px;
    padding-top: 30px;
  }

  .hondo-stats .section-heading > div:first-child {
    min-width: 0;
    flex: 1 1 auto;
  }

  .hondo-stats .section-heading .feed {
    flex: 0 1 48%;
    min-width: 0;
  }

  .hondo-stats .section-heading .small-label {
    position: absolute;
    top: 8px;
    left: 0;
    display: block;
    width: fit-content;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    letter-spacing: 0.12em;
    line-height: 1.2;
    padding: 0 22px;
  }

  .hondo-stats .section-heading .small-label::before,
  .hondo-stats .section-heading .small-label::after {
    position: absolute;
    top: 50%;
    width: 14px;
    transform: translateY(-50%);
  }

  .hondo-stats .section-heading .small-label::before {
    left: 0;
  }

  .hondo-stats .section-heading .small-label::after {
    right: 0;
  }

  .hondo-stats h2 {
    font-size: 27px;
  }

  .hondo-stats .small-label {
    font-size: 10px;
    letter-spacing: 1.5px;
  }

  .hondo-stats .feed,
  .hondo-stats .feedline {
    font-size: 11px;
  }

  .hondo-stats .tabs {
    gap: 0;
    justify-content: space-between;
    padding: 0 15px;
  }

  .hondo-stats .tabs button {
    font-size: 15px;
    padding: 15px 0 12px;
  }

  .hondo-stats .controls {
    flex-direction: column;
    gap: 13px;
    padding: 15px;
  }

  .hondo-stats .rounds,
  .hondo-stats .search-wrap {
    width: 100%;
    flex: auto;
  }

  .hondo-stats .rounds button {
    flex: 1;
    padding: 8px 4px;
    font-size: 13px;
  }

  .hondo-stats .filterline {
    margin: 15px 0 12px;
  }

  .hondo-stats .select-wrap {
    gap: 6px;
  }

  .hondo-stats .select-wrap > label {
    display: none;
  }

  .hondo-stats #count {
    font-size: 10px;
    margin-left: 0;
  }

  .hondo-stats .textbutton {
    font-size: 11px;
    padding-right: 0;
  }

  .hondo-stats .grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .hondo-stats summary {
    padding: 13px 15px;
    font-size: 20px;
  }

  .hondo-stats th:first-child,
  .hondo-stats td:first-child {
    padding-left: 15px;
  }

  .hondo-stats th:last-child,
  .hondo-stats td:last-child {
    padding-right: 15px;
  }

  .hondo-stats .leaders table {
    font-size: 12px;
  }

  .hondo-stats .leaders th:first-child {
    width: 40px;
  }

  .hondo-stats .leaders td,
  .hondo-stats .leaders th {
    padding: 12px 7px;
  }

  .hondo-stats .leaders td:first-child {
    padding-left: 13px;
  }

  .hondo-stats .leaders td:last-child {
    padding-right: 13px;
  }

  .hondo-stats .money-board-heading {
    gap: 10px;
    padding: 13px;
  }

  .hondo-stats .money-board-heading .small-label {
    font-size: 9px;
  }

  .hondo-stats .rider-toggle {
    gap: 6px;
  }

  .hondo-stats .rider-chevron {
    width: 18px;
    height: 18px;
  }

  .hondo-stats .rider-breakdown td {
    padding: 14px !important;
  }

  .hondo-stats .money-event {
    gap: 3px;
    font-size: 12px;
  }

  .hondo-stats .hondo-winning {
    font-size: 12px;
  }

  .hondo-stats .maverick-board .money-board-heading h3 {
    font-size: 26px;
  }

  .hondo-stats .maverick-board th,
  .hondo-stats .maverick-board td {
    font-size: 11px;
    letter-spacing: 0;
    padding: 10px 6px;
  }

  .hondo-stats .maverick-board th:first-child,
  .hondo-stats .maverick-board td:first-child {
    padding-left: 8px;
  }

  .hondo-stats .maverick-board th:last-child,
  .hondo-stats .maverick-board td:last-child {
    padding-right: 8px;
  }
}

/* Current leader plate. Same gold notch and star as the live leaderboard button. */
.hondo-stats .current-leader {
  --leader-gold: #c9a24a;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: min(640px, 100%);
  margin: 16px auto 0;
  padding: 16px 22px 14px;
  border: 1px solid var(--leader-gold);
  border-top-color: transparent;
  background: rgba(10, 8, 6, 0.92);
  color: #f4efe6;
  text-align: left;
}

.hondo-stats .current-leader[hidden] {
  display: none;
}

.hondo-stats .current-leader::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--leader-gold) 0, var(--leader-gold) calc(50% - 10px), transparent calc(50% - 10px), transparent calc(50% + 10px), var(--leader-gold) calc(50% + 10px));
}

.hondo-stats .current-leader-star {
  position: absolute;
  left: 50%;
  top: 0;
  width: 16px;
  height: 16px;
  transform: translate(-50%, -58%);
  pointer-events: none;
}

.hondo-stats .current-leader-star path {
  fill: var(--leader-gold);
}

.hondo-stats .current-leader-kicker {
  margin: 0;
  color: var(--leader-gold);
  font-family: var(--hs-heading);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.28em;
  line-height: 1;
  text-align: center;
  text-transform: uppercase;
}

.hondo-stats .current-leader-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.hondo-stats .current-leader-name,
.hondo-stats .current-leader-amount {
  margin: 0;
  font-family: var(--hs-heading);
  font-weight: 400;
  line-height: 1;
  text-transform: uppercase;
}

.hondo-stats .current-leader-name {
  flex: 1 1 auto;
  min-width: 0;
  color: #fff;
  font-size: clamp(22px, 3vw, 34px);
  letter-spacing: 0.04em;
  text-align: left;
  overflow-wrap: anywhere;
}

.hondo-stats .current-leader-amount {
  flex: none;
  color: #e7c56d;
  font-size: clamp(20px, 2.4vw, 30px);
  letter-spacing: 0.02em;
  white-space: nowrap;
}

@media (min-width: 761px) {
  .hondo-stats .hero.has-leader .hero-wordmark {
    transform: translate(calc(130 / 1280 * min(1280px, 100vw)), 0px);
  }

  .hondo-stats .hero.has-leader .current-leader {
    width: min(620px, 70%);
    margin-top: 18px;
    transform: translateX(calc(130 / 1280 * min(1280px, 100vw)));
  }

  .hondo-stats .hero.has-leader .current-leader-star {
    width: 18px;
    height: 18px;
  }

  /* The plate takes the space the heading gave up, so the city row stays under AWARD. */
  .hondo-stats .hero.has-leader .city-carousel {
    margin-top: calc(-28px + 0.1 * min(1280px, 100vw));
  }
}

/* Wide screens only. The plate stays under the heading. The city row and
   the tagline give back the space that pushed the results tabs down. */
@media (min-width: 1025px) {
  .hondo-stats .hero.has-leader .city-carousel {
    margin-top: 78px;
  }

  .hondo-stats .hero.has-leader .sub {
    margin-top: 12px;
  }

  .hondo-stats .hero.has-leader + .dashboard .section-heading {
    margin-top: 8px;
    padding-top: 14px;
  }
}

@media (max-width: 760px) {
  .hondo-stats .hero {
    grid-template-areas:
      "buckle word"
      "leader leader"
      "carousel carousel"
      "tagline tagline";
  }

  .hondo-stats .current-leader {
    grid-area: leader;
    width: 100%;
    margin: 10px 0 0;
  }
}

@media (max-width: 600px) {
  .hondo-stats .hero {
    grid-template-areas:
      "buckle word"
      "carousel carousel"
      "leader leader"
      "tagline tagline";
  }

  .hondo-stats .hero.has-leader .current-leader {
    margin-top: 16px;
    padding: 14px 12px 12px;
  }

  .hondo-stats .hero.has-leader .current-leader-kicker {
    font-size: 11px;
    letter-spacing: 0.22em;
  }
}
