.standings-movement { display: inline-flex; align-items: center; white-space: nowrap; font-weight: 800; font-variant-numeric: tabular-nums; }
#uarl-race-center .standings-movement > span, .admin-app .standings-movement > span { color: inherit !important; -webkit-text-fill-color: inherit !important; }
#uarl-race-center .standings-movement--up, .admin-app .standings-movement--up { color: #4ade80 !important; -webkit-text-fill-color: #4ade80 !important; }
#uarl-race-center .standings-movement--down, .admin-app .standings-movement--down { color: #f87171 !important; -webkit-text-fill-color: #f87171 !important; }
#uarl-race-center .standings-movement--unchanged, .admin-app .standings-movement--unchanged { color: #a3aab8 !important; -webkit-text-fill-color: #a3aab8 !important; }

.standings-driver-label { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.standings-driver-label > strong { display: block; }
.standings-username { display: block; margin-top: 4px; color: #52baff; font: 500 11px/1.35 "Inter", Arial, sans-serif; overflow-wrap: anywhere; }
#uarl-race-center .rc-standings-table .standings-username { margin-top: 4px; color: #52baff !important; -webkit-text-fill-color: #52baff !important; font: 500 11px/1.35 "Inter", Arial, sans-serif !important; }

.standings-number { position: relative; display: inline-grid; place-items: center; width: min(64px, 100%); height: 36px; vertical-align: middle; }
.standings-number-image, #uarl-race-center .standings-number-image { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: 100%; max-height: 100%; object-fit: contain; opacity: 0; }
.standings-number.is-ready .standings-number-image, #uarl-race-center .standings-number.is-ready .standings-number-image { opacity: 1; }
.standings-number-text { min-width: 0; }
.standings-number.is-ready .standings-number-text { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 720px) {
  .standings-number { width: min(38px, 100%); height: 28px; }
}

/* Align the standings and keep movement/gap details readable on narrow screens. */
@media (min-width: 721px) {
  #uarl-race-center [data-rc-panel="standings"] .rc-standings-tools,
  #uarl-race-center [data-rc-panel="standings"] .rc-table-shell {
    max-width: 72rem;
    margin-inline: auto;
  }
}
#uarl-race-center .rc-table.rc-standings-table {
  min-width: 0;
  table-layout: fixed;
  background: #1b1e24;
  font-variant-numeric: tabular-nums;
}
#uarl-race-center .rc-standings-table .rc-col-position { width: 80px; }
#uarl-race-center .rc-standings-table .rc-col-change { width: 80px; }
#uarl-race-center .rc-standings-table .rc-col-number { width: 90px; }
#uarl-race-center .rc-standings-table .rc-col-points { width: 100px; }
#uarl-race-center .rc-standings-table .rc-col-gap { width: 110px; }
#uarl-race-center .rc-standings-table .rc-col-cutoff { width: 100px; }
#uarl-race-center .rc-standings-table .rc-mobile-movement,
#uarl-race-center .rc-standings-table .rc-mobile-gap,
#uarl-race-center .rc-standings-table .rc-mobile-cutoff { display: none; }
#uarl-race-center:not([data-division="d1"]) .rc-standings-table :is(.rc-col-cutoff, .rc-cutoff-heading, .rc-cutoff) { display: none; }
#uarl-race-center .rc-table.rc-standings-table th {
  padding: 14px 12px;
  background: #101216 !important;
  font-size: .65rem !important;
  letter-spacing: .025em !important;
}
#uarl-race-center .rc-table.rc-standings-table td {
  height: 72px;
  padding: 14px 12px;
  vertical-align: middle;
  overflow-wrap: anywhere;
  font-size: .95rem !important;
}
#uarl-race-center .rc-standings-table :is(th, td):is(:first-child, :nth-child(2), :nth-child(3)) {
  text-align: center;
}
#uarl-race-center .rc-table.rc-standings-table :is(th, td):is(:nth-child(5), :nth-child(6), :nth-child(7)) { text-align: right; }
#uarl-race-center .rc-table.rc-standings-table :is(.rc-rank, .rc-number, .rc-pts, .rc-gap) {
  color: #f5f1e8 !important;
  -webkit-text-fill-color: #f5f1e8 !important;
  font: 600 1.1rem/1.3 "Inter", Arial, sans-serif !important;
}
#uarl-race-center .rc-standings-table .driver-with-manufacturer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  align-items: center;
  gap: 12px;
}
#uarl-race-center .rc-table.rc-standings-table .rc-driver-cell strong {
  overflow-wrap: anywhere;
  font: 600 1rem/1.4 "Inter", Arial, sans-serif !important;
}
#uarl-race-center .rc-standings-table .driver-with-manufacturer .manufacturer-badge {
  justify-self: center;
}
#uarl-race-center .rc-table.rc-standings-table :is(.rc-gap, .rc-cutoff) { color: #b6bdc8 !important; -webkit-text-fill-color: #b6bdc8 !important; font-size: .95rem !important; }
#uarl-race-center .rc-standings-table .rc-cutoff--inside { color: #4ade80 !important; -webkit-text-fill-color: #4ade80 !important; }
#uarl-race-center .rc-standings-table .rc-cutoff--outside { color: #f87171 !important; -webkit-text-fill-color: #f87171 !important; }
#uarl-race-center .rc-standings-table .rc-cutoff--pending { color: #a3aab8 !important; -webkit-text-fill-color: #a3aab8 !important; }
#uarl-race-center .rc-table.rc-standings-table .rc-chase-cutoff td {
  height: auto;
  padding: 9px 12px;
  border-top: 2px solid var(--lime);
  border-bottom: 1px solid rgba(216,255,62,.35);
  background: #171d15;
  text-align: left;
}
#uarl-race-center .rc-standings-table .rc-chase-cutoff span {
  color: var(--lime) !important;
  -webkit-text-fill-color: var(--lime) !important;
  font: 800 .65rem/1.3 "Inter", Arial, sans-serif !important;
  letter-spacing: .06em;
  text-transform: uppercase;
}
@media (min-width: 721px) and (max-width: 1100px) {
  #uarl-race-center .rc-standings-table :is(.rc-col-position, .rc-col-change) { width: 60px; }
  #uarl-race-center .rc-standings-table .rc-col-number { width: 65px; }
  #uarl-race-center .rc-standings-table .rc-col-points { width: 80px; }
  #uarl-race-center .rc-standings-table :is(.rc-col-gap, .rc-col-cutoff) { width: 85px; }
  #uarl-race-center .rc-table.rc-standings-table :is(th, td) { padding-inline: 6px; }
}
@media (max-width: 720px) {
  #uarl-race-center .rc-standings-table :is(.rc-col-change, .rc-col-gap, .rc-col-cutoff),
  #uarl-race-center .rc-standings-table :is(th, td):is(:nth-child(2), :nth-child(6), :nth-child(7)) { display: none; }
  #uarl-race-center .rc-standings-table .rc-col-position { width: 49px; }
  #uarl-race-center .rc-standings-table .rc-col-number { width: 50px; }
  #uarl-race-center .rc-standings-table .rc-col-points { width: 82px; }
  #uarl-race-center .rc-table.rc-standings-table th {
    padding: 12px 4px;
    font-size: .5625rem !important;
    letter-spacing: 0 !important;
  }
  #uarl-race-center .rc-table.rc-standings-table td { height: 64px; padding: 12px 4px; }
  #uarl-race-center .rc-table.rc-standings-table :is(th, td):nth-child(5) { padding-right: 12px; }
  #uarl-race-center .rc-table.rc-standings-table :is(.rc-rank, .rc-number, .rc-pts) {
    font-size: .875rem !important;
  }
  #uarl-race-center .rc-standings-table .driver-with-manufacturer { gap: 8px; }
  #uarl-race-center .rc-table.rc-standings-table .rc-driver-cell strong { font-size: .875rem !important; }
  #uarl-race-center .rc-standings-table .rc-mobile-movement,
  #uarl-race-center .rc-standings-table .rc-mobile-gap,
  #uarl-race-center .rc-standings-table .rc-mobile-cutoff {
    margin-top: 5px;
    color: #a3aab8;
    -webkit-text-fill-color: #a3aab8;
    font: 600 .625rem/1.3 "Inter", Arial, sans-serif;
  }
  #uarl-race-center .rc-standings-table :is(.rc-mobile-movement, .rc-mobile-gap),
  #uarl-race-center[data-division="d1"] .rc-standings-table .rc-mobile-cutoff { display: block; }
  #uarl-race-center .rc-standings-table .rc-mobile-gap[data-gap-kind="behind"]::after { content: " behind"; }
  #uarl-race-center .rc-standings-table .rc-mobile-cutoff::after { content: " cutoff"; }
  #uarl-race-center .rc-standings-table .rc-mobile-movement .standings-movement { justify-content: center; }
}
@media (max-width: 540px) {
  #uarl-race-center [data-rc-panel="standings"] .rc-table-shell {
    margin-inline: calc(-1 * clamp(1.25rem, 7vw, 8rem));
  }
  #uarl-race-center .rc-standings-table .driver-with-manufacturer {
    grid-template-columns: minmax(0, 1fr) 36px;
  }
}
