.rpv4-ledger-page {
  background: #fff;
}

.rpv4-ledger-hero {
  position: relative;
  overflow: hidden;
  background: #0e1015;
  color: #fff;
}

.rpv4-ledger-hero {
  position: relative;
  background: radial-gradient(
      circle at 80% 20%,
      rgba(0, 122, 255, 0.15),
      transparent 40%
    ),
    radial-gradient(
      circle at 20% 80%,
      rgba(255, 184, 0, 0.12),
      transparent 40%
    ),
    linear-gradient(180deg, #0a0f1a 0%, #05070c 100%);
}

.rpv4-ledger-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 90% at 18% 68%, rgba(191,47,31,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 82% 30%, rgba(79,124,255,0.10) 0%, transparent 58%);
  pointer-events: none;
}

.rpv4-ledger-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255,255,255,0.05) 50%,
    transparent 70%
  );
  opacity: 0.4;
  pointer-events: none;
}

.rpv4-ledger-hero__rail {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 6px;
  background: linear-gradient(180deg, #bf2f1f 0% 25%, #2ea44f 25% 50%, #d9a441 50% 75%, #4f7cff 75% 100%);
  z-index: 2;
}

.rpv4-ledger-hero__inner,
.rpv4-ledger-controls,
.rpv4-ledger-shell {
  max-width: 1440px;
  margin: 0 auto;
  padding-left: 48px;
  padding-right: 48px;
}

.rpv4-ledger-hero__inner {
  position: relative;
  z-index: 3;
  padding-top: 48px;
  padding-bottom: 36px;
}

.rpv4-ledger-hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: end;
}

.rpv4-ledger-hero__title {
  margin: 0 0 10px;
  font-size: clamp(4rem, 8vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.05em;
}

.rpv4-ledger-hero__title em {
  font-style: normal;
  color: rgba(255,255,255,0.38);
}

.rpv4-ledger-hero__subtitle {
  margin: 0;
  color: rgba(255,255,255,0.68);
  line-height: 1.6;
}

.rpv4-ledger-hero__leader-card {
  position: relative;
  padding: 24px;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255,255,255,0.08),
    rgba(255,255,255,0.03)
  );
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow:
    0 18px 50px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(255,255,255,0.06);
  backdrop-filter: blur(10px);
}

.rpv4-ledger-hero__leader-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  bottom: 18%;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffd54a 0%, #ff9f1a 100%);
}

.rpv4-ledger-hero__leader-label {
  margin-bottom: 12px;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 700;
}

.rpv4-ledger-hero__leader-name {
  margin-bottom: 10px;
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.rpv4-ledger-hero__leader-name span {
  color: rgba(255,255,255,0.52);
  font-size: 0.95rem;
  margin-left: 6px;
}

.rpv4-ledger-hero__leader-points {
  font-size: clamp(3.4rem, 6vw, 4.6rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
  color: #d9a441;
}

.rpv4-ledger-hero__leader-gap {
  margin-top: 8px;
  color: rgba(255,255,255,0.72);
  font-weight: 600;
}

.rpv4-ledger-controls {
  position: relative;
  z-index: 3;
  padding-bottom: 22px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.rpv4-ledger-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.rpv4-ledger-chip.is-active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.rpv4-ledger-shell {
  padding-top: 32px;
  padding-bottom: 80px;
}

.rpv4-ledger-podium {
  margin-top: 2rem;
}

.rpv4-ledger-podium__grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 28px;
  align-items: stretch;
}

.rpv4-ledger-podium-card {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  padding: 22px;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.06);
}

.rpv4-ledger-podium-card__body {
  position: relative;
  z-index: 1;
}

.rpv4-ledger-podium-card__position {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 28px;
  padding: 0 0.65rem;
  border-radius: 999px;
  margin-bottom: 0.95rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rpv4-ledger-podium-card__name {
  margin: 0 0 0.3rem;
  color: #101828;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.rpv4-ledger-podium-card__number {
  color: rgba(16, 24, 40, 0.62);
  margin-bottom: 14px;
  font-size: 1rem;
  font-weight: 600;
}

.rpv4-ledger-podium-card__points {
  margin-top: 0.2rem;
  color: #101828;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 0.95;
  font-weight: 900;
  letter-spacing: -0.05em;
}

.rpv4-ledger-podium-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 0.85rem;
  color: rgba(16, 24, 40, 0.72);
  font-size: 0.9rem;
}

.rpv4-ledger-podium-card__gap {
  margin-top: 0.85rem;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 700;
}

/* P1 */
.rpv4-ledger-podium-card.pos-1 {
  background:
    linear-gradient(180deg, rgba(255, 224, 102, 0.24), rgba(255,255,255,0.96) 58%);
  border-color: rgba(232, 179, 0, 0.40);
  box-shadow:
    0 16px 40px rgba(180, 130, 0, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.6);
  transform: translateY(-4px);
}

.rpv4-ledger-podium-card.pos-1::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #ffd54a, #ffb300);
}

.rpv4-ledger-podium-card.pos-1 .rpv4-ledger-podium-card__position {
  background: linear-gradient(180deg, #ffd54a, #ffb300);
  color: #6b4d00;
}

.rpv4-ledger-podium-card.pos-1 .rpv4-ledger-podium-card__points {
  color: #8a5a00;
}

/* P2 */
.rpv4-ledger-podium-card.pos-2 {
  background:
    linear-gradient(180deg, rgba(214, 219, 229, 0.28), rgba(255,255,255,0.96) 55%);
  border-color: rgba(148, 163, 184, 0.32);
}

.rpv4-ledger-podium-card.pos-2::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #d7dde8, #98a2b3);
}

.rpv4-ledger-podium-card.pos-2 .rpv4-ledger-podium-card__position {
  background: linear-gradient(180deg, #e4e7ec, #cfd4dc);
  color: #667085;
}

/* P3 */
.rpv4-ledger-podium-card.pos-3 {
  background:
    linear-gradient(180deg, rgba(205, 127, 50, 0.18), rgba(255,255,255,0.96) 58%);
  border-color: rgba(180, 104, 54, 0.28);
}

.rpv4-ledger-podium-card.pos-3::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, #cd7f32, #a85b2a);
}

.rpv4-ledger-podium-card.pos-3 .rpv4-ledger-podium-card__position {
  background: linear-gradient(180deg, #d69a68, #b86a36);
  color: #fff7f2;
}

.rpv4-ledger-podium__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 14px;
  margin-bottom: 28px;
}

.rpv4-ledger-podium-card {
  padding: 22px;
  border-radius: 22px;
  border: 1px solid #e7e2d8;
  background: #fff;
}

.rpv4-ledger-podium-card__position {
  margin-bottom: 12px;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7a7468;
}

.rpv4-ledger-podium-card__name {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 6px;
}

.rpv4-ledger-podium-card__number {
  color: #7a7468;
  margin-bottom: 14px;
}

.rpv4-ledger-podium-card__points {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 10px;
}

.rpv4-ledger-podium-card__meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #6f685d;
  font-size: 0.9rem;
}

.rpv4-ledger-standings,
.rpv4-ledger-table {
  margin-top: 28px;
  padding: 28px 30px;
  border: 1px solid #e7e2d8;
  border-radius: 24px;
  background: #fff;
}

.rpv4-ledger-standings__table {
  margin-top: 16px;
}

.rpv4-ledger-standings__head,
.rpv4-ledger-standings__row {
  display: grid;
  grid-template-columns: 60px 60px 2fr 1.5fr 80px 80px 80px 90px 80px;
  gap: 12px;
  align-items: center;
}

.rpv4-ledger-standings__head {
  padding: 0 0 10px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7b7468;
}

.rpv4-ledger-standings__row {
  min-height: 56px;
  padding: 12px 0;
  border-top: 1px solid #f0eadf;
}

.rpv4-ledger-standings__racer-name {
  font-weight: 700;
}

.rpv4-ledger-standings__racer-meta {
  font-size: 0.78rem;
  color: #7a7468;
}

.rpv4-ledger-standings__bar {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #ece4d8;
}

.rpv4-ledger-standings__bar-fill {
  height: 100%;
  border-radius: 999px;
}

.rpv4-ledger-standings__bar-fill {
  height: 100%;
  border-radius: inherit;
  background: #5b7cff;
}

.rpv4-ledger-page.theme-bike .rpv4-ledger-standings__bar-fill {
  background: linear-gradient(90deg, #bf2f1f 0%, #d9a441 100%);
}

.rpv4-ledger-page.theme-car .rpv4-ledger-standings__bar-fill {
  background: linear-gradient(90deg, #4f7cff 0%, #7aa6ff 100%);
}

.rpv4-ledger-page.theme-kart .rpv4-ledger-standings__bar-fill {
  background: linear-gradient(90deg, #2ea44f 0%, #d9a441 100%);
}

.rpv4-ledger-page.theme-motocross .rpv4-ledger-standings__bar-fill {
  background: linear-gradient(90deg, #7c3aed, #22c55e);
}

.rpv4-ledger-table__wrap {
  margin-top: 16px;
  overflow-x: auto;
  border: 1px solid #e7e2d8;
  border-radius: 16px;
}

.rpv4-ledger-table__table {
  width: max-content;
  min-width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.rpv4-ledger-table__table th,
.rpv4-ledger-table__table td {
  padding: 12px 14px;
  border-bottom: 1px solid #eee6da;
  text-align: center;
  white-space: nowrap;
}

.rpv4-ledger-table__table thead th {
  background: #10131a;
  color: rgba(255,255,255,0.82);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rpv4-ledger-table__table tbody td {
  background: #fff;
}

.rpv4-ledger-table__table .sticky-col,
.rpv4-ledger-table__table .sticky-col-2 {
  position: sticky;
  background: inherit;
  z-index: 2;
}

.rpv4-ledger-table__table .sticky-col {
  left: 0;
}

.rpv4-ledger-table__table .sticky-col-2 {
  left: 72px;
  text-align: left;
}

.rpv4-ledger-table__table thead .sticky-col,
.rpv4-ledger-table__table thead .sticky-col-2 {
  background: #10131a;
}

.rpv4-ledger-table__table .round-total {
  background: #f7f2ea;
  font-weight: 700;
}

.rpv4-ledger-table__table .season-total {
  background: #fbf5e8;
  font-weight: 900;
  color: #bf2f1f;
}

@media (max-width: 980px) {
  .rpv4-ledger-hero__grid,
  .rpv4-ledger-podium__grid {
    grid-template-columns: 1fr;
  }

  .rpv4-ledger-hero__inner,
  .rpv4-ledger-controls,
  .rpv4-ledger-shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .rpv4-ledger-standings__head,
  .rpv4-ledger-standings__row {
    grid-template-columns: 50px 50px 1.5fr 1fr 70px 70px;
  }

  .rpv4-ledger-standings__head > :nth-child(n+7),
  .rpv4-ledger-standings__row > :nth-child(n+7) {
    display: none;
  }
}

.rpv4-ledger-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 240px));
  gap: 14px;
  width: 100%;
}

.rpv4-ledger-filter {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rpv4-ledger-filter label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.52);
}

.rpv4-ledger-filter select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  appearance: none;
}

.rpv4-ledger-filter select option {
  color: #111;
  background: #fff;
}

@media (max-width: 980px) {
  .rpv4-ledger-filters {
    grid-template-columns: 1fr;
  }
}

.rpv4-ledger-hero.theme-bike .rpv4-ledger-hero__leader-card {
  box-shadow: inset 0 0 0 1px rgba(191, 47, 31, 0.12);
}

.rpv4-ledger-hero.theme-bike .rpv4-ledger-hero__leader-points {
  color: #d9a441;
}

.rpv4-ledger-hero.theme-bike::before {
  background:
    radial-gradient(ellipse 60% 90% at 18% 68%, rgba(191,47,31,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 82% 30%, rgba(217,164,65,0.08) 0%, transparent 58%);
}

.rpv4-ledger-hero.theme-car .rpv4-ledger-hero__leader-card {
  box-shadow: inset 0 0 0 1px rgba(79, 124, 255, 0.12);
}

.rpv4-ledger-hero.theme-car .rpv4-ledger-hero__leader-points {
  color: #7aa6ff;
}

.rpv4-ledger-hero.theme-car::before {
  background:
    radial-gradient(ellipse 60% 90% at 18% 68%, rgba(79,124,255,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 82% 30%, rgba(140,170,255,0.08) 0%, transparent 58%);
}

.rpv4-ledger-hero.theme-kart .rpv4-ledger-hero__leader-card {
  box-shadow: inset 0 0 0 1px rgba(46, 164, 79, 0.12);
}

.rpv4-ledger-hero.theme-kart .rpv4-ledger-hero__leader-points {
  color: #7ee08d;
}

.rpv4-ledger-hero.theme-kart::before {
  background:
    radial-gradient(ellipse 60% 90% at 18% 68%, rgba(46,164,79,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 82% 30%, rgba(217,164,65,0.08) 0%, transparent 58%);
}

.rpv4-ledger-chip {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.7);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  text-decoration: none;
}

.rpv4-ledger-chip--scope.is-active {
  background: rgba(255,255,255,0.12);
  color: #fff;
}

.rpv4-ledger-controls.theme-bike .rpv4-ledger-chip--discipline.is-active {
  background: rgba(191,47,31,0.14);
  border-color: rgba(191,47,31,0.35);
  color: #ff9d90;
}

.rpv4-ledger-controls.theme-car .rpv4-ledger-chip--discipline.is-active {
  background: rgba(79,124,255,0.14);
  border-color: rgba(79,124,255,0.35);
  color: #8db3ff;
}

.rpv4-ledger-controls.theme-kart .rpv4-ledger-chip--discipline.is-active {
  background: rgba(46,164,79,0.14);
  border-color: rgba(46,164,79,0.35);
  color: #8be39b;
}

.rpv4-ledger-impact {
  margin-top: 28px;
  margin-bottom: 28px;
}

.rpv4-ledger-impact__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 14px;
}

.rpv4-ledger-impact-card {
  min-height: 210px;
  padding: 22px;
  border-radius: 22px;
  background: #fff;
  border: 1px solid #e7e2d8;
  box-shadow: 0 14px 35px rgba(15, 23, 42, 0.05);
}

.rpv4-ledger-impact-card__label {
  margin-bottom: 10px;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a7468;
  font-weight: 800;
}

.rpv4-ledger-impact-card__name {
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 800;
  color: #101828;
  margin-bottom: 10px;
}

.rpv4-ledger-impact-card__value {
  font-size: 2rem;
  line-height: 1;
  font-weight: 900;
  color: #101828;
  margin-bottom: 8px;
}

.rpv4-ledger-impact-card__subtitle {
  font-size: 0.92rem;
  color: #6f685d;
  margin-bottom: 12px;
}

.rpv4-ledger-impact-card__body {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

/* card accents */
.rpv4-ledger-impact-card.impact-winner {
  border-color: rgba(255, 200, 0, 0.55);
  background: linear-gradient(
    180deg,
    rgba(255, 215, 0, 0.28),
    rgba(255, 215, 0, 0.10) 45%,
    #ffffff 80%
  );
  box-shadow: 0 10px 28px rgba(255, 200, 0, 0.18);
}

.rpv4-ledger-impact-card.impact-winner .impact-value {
  color: #d4a300;
}

.rpv4-ledger-impact-card.impact-winner strong {
  color: #b88900;
}

.rpv4-ledger-impact-card.impact-loser {
  border-color: rgba(191, 47, 31, 0.20);
  background: linear-gradient(180deg, rgba(191,47,31,0.05), #fff 42%);
}

.rpv4-ledger-impact-card.impact-dnf {
  border-color: rgba(220, 38, 38, 0.35);
  background: linear-gradient(
    180deg,
    rgba(220, 38, 38, 0.08),
    #fff 45%
  );
  box-shadow: 0 10px 30px rgba(220, 38, 38, 0.08);
}
.rpv4-ledger-impact-card.impact-dnf .rpv4-ledger-impact-card__value {
  color: #dc2626;
  text-shadow: 0 1px 0 rgba(0,0,0,0.05);
}

/* left accent strip */
.rpv4-ledger-impact-card.impact-dnf::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ef4444, #b91c1c);
}

.rpv4-ledger-impact-card.impact-pressure {
  border-color: rgba(79, 124, 255, 0.22);
  background: linear-gradient(180deg, rgba(79,124,255,0.06), #fff 42%);
}

@media (max-width: 1100px) {
  .rpv4-ledger-impact__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .rpv4-ledger-impact__grid {
    grid-template-columns: 1fr;
  }
}

.rpv4-ledger-impact-card.impact-mover {
  border-color: rgba(46, 204, 113, 0.45);
  background: linear-gradient(
    180deg,
    rgba(46, 204, 113, 0.18),
    rgba(46, 204, 113, 0.06) 40%,
    #ffffff 75%
  );
  box-shadow: 0 10px 24px rgba(46, 204, 113, 0.15);
}

.rpv4-ledger-impact-card.impact-mover strong,
.rpv4-ledger-impact-card.impact-mover .impact-value {
  color: #1ec773;
}

.rpv4-ledger-impact-card.impact-mover::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18%;
  height: 64%;
  width: 4px;
  border-radius: 2px;
  background: linear-gradient(180deg, #2ecc71, #27ae60);
}

.rpv4-ledger-table__bonus-note {
  margin-top: 2px;
  font-size: 10px;
  line-height: 1.15;
  color: #6f6a5f;
  white-space: nowrap;
  font-weight: 500;
}

.rpv4-ledger-table__bonus-note span {
  color: #8a8476;
  font-weight: 600;
}

.rpv4-ledger-table__table td.round-total,
.rpv4-ledger-table__table td.season-total {
  padding-top: 8px;
  padding-bottom: 8px;
  vertical-align: middle;
}

.rpv4-ledger-table__table td.round-total > div:first-child,
.rpv4-ledger-table__table td.season-total > div:first-child {
  line-height: 1;
  margin-bottom: 1px;
}

.rpv4-ledger-table__table td {
  padding: 10px 12px;
}


.ledger-rider-story {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.2;
  color: #64748b;
}

.ledger-rider-story span + span {
  margin-left: 8px;
}

.ledger-rider-move {
  font-weight: 900;
}

.ledger-rider-move.is-up {
  color: #15803d;
}

.ledger-rider-move.is-down {
  color: #b91c1c;
}

.ledger-rider-move.is-neutral {
  color: #64748b;
}

.ledger-rider-points {
  font-weight: 700;
  color: #0f172a;
}

.ledger-rider-gap {
  color: #475569;
}
.rpv4-ledger-standings__movement {
  font-weight: 900;
}

.rpv4-ledger-standings__movement.is-up {
  color: #15803d;
}

.rpv4-ledger-standings__movement.is-down {
  color: #b91c1c;
}

.rpv4-ledger-standings__movement.is-neutral {
  color: #64748b;
}

.rpv4-ledger-standings__story {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.2;
  color: #64748b;
}

.rpv4-ledger-standings__story span + span {
  margin-left: 8px;
}

.rpv4-ledger-standings__story-move {
  font-weight: 900;
}

.rpv4-ledger-standings__story-move.is-up {
  color: #15803d;
}

.rpv4-ledger-standings__story-move.is-down {
  color: #b91c1c;
}

.rpv4-ledger-standings__story-move.is-neutral {
  color: #64748b;
}

.rpv4-ledger-standings__story-points {
  font-weight: 700;
  color: #0f172a;
}

.rpv4-ledger-standings__story-gap {
  color: #475569;
}

.rpv4-ledger-standings__movement {
  font-weight: 900;
}

.rpv4-ledger-standings__movement.is-up {
  color: #15803d;
}

.rpv4-ledger-standings__movement.is-down {
  color: #b91c1c;
}

.rpv4-ledger-standings__movement.is-neutral {
  color: #64748b;
}

.rpv4-ledger-standings__story {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.25;
  color: #64748b;
}

.rpv4-ledger-standings__story span + span {
  margin-left: 8px;
}

.rpv4-ledger-standings__story-move {
  font-weight: 900;
}

.rpv4-ledger-standings__story-move.is-up {
  color: #15803d;
}

.rpv4-ledger-standings__story-move.is-down {
  color: #b91c1c;
}

.rpv4-ledger-standings__story-move.is-neutral {
  color: #64748b;
}

.rpv4-ledger-standings__story-points {
  font-weight: 700;
  color: #0f172a;
}

.rpv4-ledger-standings__story-gap {
  color: #475569;
}

.rpv4-ledger-impact-card.impact-dethroned_leader,
.rpv4-ledger-impact-card.impact-penalty_victim {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff7f7 0%, #ffffff 100%);
}

.rpv4-ledger-impact-card.impact-dethroned_leader .rpv4-ledger-impact-card__label,
.rpv4-ledger-impact-card.impact-penalty_victim .rpv4-ledger-impact-card__label {
  color: #991b1b;
}

.rpv4-ledger-impact-card.impact-dethroned_leader .rpv4-ledger-impact-card__value,
.rpv4-ledger-impact-card.impact-penalty_victim .rpv4-ledger-impact-card__value {
  color: #b91c1c;
}

.rpv4-ledger-impact-card.impact-dethroned_leader .rpv4-ledger-impact-card__name,
.rpv4-ledger-impact-card.impact-penalty_victim .rpv4-ledger-impact-card__name {
  color: #7f1d1d;
}

.rpv4-ledger-impact-card.impact-dethroned_leader {
  box-shadow: inset 0 0 0 1px #fca5a5;
}

.rpv4-ledger-impact-card.impact-penalty_victim {
  box-shadow: inset 0 0 0 1px #fecaca;
}

.rpv4-ledger-actions {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 48px 20px;
  display: flex;
  justify-content: flex-end;
}

.rpv4-ledger-download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  background: #111010;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rp-partner-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 18px 0;
  padding: 14px 16px;
  border: 1px solid rgba(245, 168, 0, 0.25);
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(232, 0, 28, 0.08), rgba(245, 168, 0, 0.08), rgba(0, 122, 61, 0.08), rgba(0, 35, 149, 0.08)),
    #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.rp-partner-trust__logo {
  width: 74px;
  height: 54px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  flex-shrink: 0;
}

.rp-partner-trust__logo img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  display: block;
}

.rp-partner-trust__content {
  min-width: 0;
}

.rp-partner-trust__eyebrow {
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 5px;
}

.rp-partner-trust__main {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: #111827;
}

.rp-partner-trust__main strong {
  font-weight: 900;
}

.rp-trust-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rp-trust-pill--verified {
  background: #dcfce7;
  color: #166534;
}

.rp-trust-pill--status {
  background: #e0f2fe;
  color: #075985;
}

.rp-trust-pill--confidence {
  background: #fef3c7;
  color: #92400e;
}

@media (max-width: 640px) {
  .rp-partner-trust {
    align-items: flex-start;
  }

  .rp-partner-trust__main {
    align-items: flex-start;
  }
}

.rpv4-ledger-table--classification {
  margin-top: 2rem;
}

.rpv4-ledger-classification-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1.15;
}

.rpv4-ledger-classification-cell strong {
  font-size: 0.9rem;
  font-weight: 800;
}

.rpv4-ledger-classification-cell span {
  font-size: 0.7rem;
  opacity: 0.65;
  white-space: nowrap;
}

.rpv4-ledger-classification-cell__audit {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.65rem;
  font-weight: 800;
  color: #b42318;
  letter-spacing: 0.04em;
}

.rpv4-ledger-governance {
  margin: 28px 0;
  padding: 24px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 24px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.08), transparent 34%),
    rgba(10,10,10,0.72);
}

.rpv4-ledger-governance__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.rpv4-ledger-governance__card {
  padding: 16px;
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  background: rgba(255,255,255,0.045);
}

.rpv4-ledger-governance__card span {
  display: block;
  margin-bottom: 8px;
  color: rgba(255,255,255,0.58);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rpv4-ledger-governance__card strong {
  display: block;
  color: #fff;
  font-size: 0.98rem;
  line-height: 1.25;
}

.rpv4-ledger-governance__card p {
  margin: 10px 0 0;
  color: rgba(255,255,255,0.64);
  font-size: 0.84rem;
  line-height: 1.45;
}

@media (max-width: 980px) {
  .rpv4-ledger-governance__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rpv4-ledger-governance__grid {
    grid-template-columns: 1fr;
  }
}

.rpv4-ledger-standings__racer-name a {
  color: #111;
  text-decoration: none;
  font-weight: 800;
}

.rpv4-ledger-standings__racer-name a:hover {
  color: #e10600;
}