.rs-tdf,
.rs-tdf * {
  box-sizing: border-box;
}

.rs-tdf {
  --rs-tdf-ink: #151515;
  --rs-tdf-muted: #5c6068;
  --rs-tdf-line: #dedede;
  --rs-tdf-yellow: #ffd642;
  --rs-tdf-cyan: #00a6d6;
  --rs-tdf-pink: #f90c9b;
  --rs-tdf-night: #0d072f;
  --rs-tdf-purple: #310082;
  --rs-tdf-surface: #ffffff;
  width: 100%;
  color: var(--rs-tdf-ink);
  font-family: Montserrat, Arial, sans-serif;
}

.rs-tdf-hero {
  padding: 18px 0 14px;
  border-bottom: 2px solid var(--rs-tdf-yellow);
}

.rs-tdf-hero h1,
.rs-tdf-hero h2,
.rs-tdf-stage-detail h1 {
  max-width: 980px;
  margin: 0;
  color: #fff;
  font-size: clamp(26px, 3.6vw, 42px);
  line-height: 1.08;
  letter-spacing: 0;
  text-transform: none;
}

.rs-tdf-hero p,
.rs-tdf-section-head p,
.rs-tdf-card p,
.rs-tdf-stage-card p,
.rs-tdf-panel p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .82);
  font-size: 15px;
  line-height: 1.55;
}

.rs-tdf-kicker {
  display: inline-flex;
  margin: 0 0 8px;
  color: #8b6500;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.rs-tdf-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0;
}

.rs-tdf-card,
.rs-tdf-stage-card,
.rs-tdf-panel {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(49, 0, 130, .82), rgba(13, 7, 47, .88));
  box-shadow: 0 10px 24px rgba(0, 0, 0, .18);
  color: #fff;
}

.rs-tdf-card {
  border-top: 3px solid var(--rs-tdf-yellow);
}

.rs-tdf-card h2,
.rs-tdf-section-head h2,
.rs-tdf-card h3,
.rs-tdf-stage-card h3,
.rs-tdf-panel h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.15;
  letter-spacing: 0;
  text-transform: none;
}

.rs-tdf-card p,
.rs-tdf-stage-card p,
.rs-tdf-panel p {
  color: rgba(255, 255, 255, .78);
  font-size: 13px;
}

.rs-tdf-section-head {
  margin: 24px 0 10px;
}

.rs-tdf-section-head h2 {
  color: #fff;
}

.rs-tdf-card .rs-tdf-kicker {
  color: var(--rs-tdf-yellow);
}

.rs-tdf-facts {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 12px 0 0;
}

.rs-tdf-facts div {
  display: grid;
  grid-template-columns: minmax(98px, .7fr) minmax(0, 1fr);
  gap: 8px;
  min-width: 0;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.rs-tdf-facts dt {
  color: rgba(255, 255, 255, .62);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.rs-tdf-facts dd {
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.rs-tdf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.rs-tdf-button {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 3px;
  background: rgba(13, 7, 47, .82);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.rs-tdf-button:nth-child(2) {
  border-color: var(--rs-tdf-cyan);
  background: var(--rs-tdf-cyan);
  color: #071318;
}

.rs-tdf-button--disabled {
  border-color: rgba(255, 255, 255, .12);
  background: rgba(255, 255, 255, .08);
  color: rgba(255, 255, 255, .62);
}

.rs-tdf-stage-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.rs-tdf-stage-card {
  border-left: 3px solid var(--rs-tdf-cyan);
  border-top-color: rgba(255, 255, 255, .12);
}

.rs-tdf-stage-number,
.rs-tdf-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 8px;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--rs-tdf-yellow);
  color: #151515;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.rs-tdf-rendezvous {
  margin-top: 26px;
}

.rs-tdf-links {
  margin-top: 24px;
}

.rs-tdf-partner {
  margin-top: 26px;
}

.rs-tdf-partner__body {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 12px;
}

.rs-tdf-partner__card {
  border-top-color: var(--rs-tdf-cyan);
}

.rs-tdf-partner__links {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
}

.rs-tdf-partner__editorial {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin-top: 12px;
}

.rs-tdf-partner__editorial .rs-tdf-panel {
  border-top: 3px solid var(--rs-tdf-pink);
}

.rs-tdf-link-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  margin: 14px 0 0;
}

.rs-tdf-link-card {
  display: grid;
  grid-template-columns: minmax(92px, .55fr) minmax(0, 1fr);
  gap: 6px 12px;
  align-items: start;
  min-width: 0;
  padding: 12px 13px;
  border: 1px solid rgba(49, 0, 130, .18);
  border-left: 4px solid var(--rs-tdf-pink);
  border-radius: 4px;
  background: #fff;
  color: var(--rs-tdf-ink);
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .08);
}

.rs-tdf-link-card span {
  display: inline-flex;
  width: fit-content;
  padding: 3px 7px;
  border-radius: 4px;
  background: var(--rs-tdf-yellow);
  color: #151515;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.rs-tdf-link-card strong {
  color: var(--rs-tdf-purple);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.2;
}

.rs-tdf-link-card em {
  grid-column: 2;
  color: var(--rs-tdf-muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.rs-tdf-link-card:hover {
  border-left-color: var(--rs-tdf-cyan);
  color: var(--rs-tdf-ink);
}

.rs-fc-widget,
.rs-fc-widget * {
  box-sizing: border-box;
}

.rs-fc-widget {
  width: 100%;
  margin: 24px 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-top: 3px solid var(--rs-tdf-cyan, #00a6d6);
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(49, 0, 130, .82), rgba(13, 7, 47, .9));
  color: #fff;
  box-shadow: 0 12px 28px rgba(0, 0, 0, .2);
  font-family: Montserrat, Arial, sans-serif;
}

.rs-fc-widget__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 12px;
}

.rs-fc-widget__head span {
  display: inline-flex;
  padding: 3px 7px;
  border-radius: 3px;
  background: var(--rs-tdf-yellow, #ffd642);
  color: #151515;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.2;
  text-transform: uppercase;
}

.rs-fc-widget__head h2 {
  margin: 0;
  padding: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.15;
  text-transform: none;
}

.rs-fc-widget__frame {
  width: 100%;
  height: var(--rs-fc-height, 410px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 4px;
  background: #fff;
}

.rs-fc-widget__frame iframe {
  display: block;
  width: 100%;
  min-height: var(--rs-fc-height, 410px);
  border: 0;
  background: #fff;
}

.rs-fc-widget__source {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, .72);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
  line-height: 1.35;
}

.rs-fc-widget__source a {
  color: #fff;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rs-tdf-grid--rendezvous .rs-tdf-card {
  border-top-color: var(--rs-tdf-pink);
}

@media (min-width: 680px) {
  .rs-tdf-grid--races {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rs-tdf-stage-list,
  .rs-tdf-grid--rendezvous,
  .rs-tdf-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rs-tdf-partner__body {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  }

  .rs-tdf-partner__editorial {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .rs-tdf-stage-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rs-tdf-grid--rendezvous {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
