/* The figures of the Racing page. Every rule is under .rf. */
.rf {
  --port: #ff7d93;
  --stbd: #52d9a4;
  font-family: var(--font-engine);
  color: #f4f7fb;
  background: radial-gradient(120% 70% at 30% 0%, #0b1a3a 0%, #04070e 62%);
  border-radius: 18px;
  padding: 22px;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  font-variant-numeric: tabular-nums;
}
.rf * {
  box-sizing: border-box;
}
.rf-failed {
  padding: 40px;
  font-size: 18px;
}
.rf-tabs {
  align-self: center;
  display: flex;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
}
.rf-tabs button {
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #c7d3e6;
  background: none;
  border: 0;
  border-radius: 999px;
  padding: 9px 16px;
  min-height: 40px;
  cursor: pointer;
}
.rf-tabs button[aria-pressed="true"] {
  background: #f4f7fb;
  color: #06122b;
}
.rf-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 372px;
  gap: 22px;
  align-items: start;
}
.rf-main {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.rf-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.3;
}
.rf-title.rf-gap {
  margin-top: 18px;
}
.rf-sub,
.rf-note {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #b4c2da;
}
.rf-map,
.rf-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 6px;
  font-family: var(--font-engine);
}
.rf-map {
  border-radius: 14px;
}
.rf[data-mode="fleet"] .rf-one,
.rf[data-mode="fleet"] .rf-side-tack,
.rf[data-mode="tack"] .rf-fleet,
.rf[data-mode="tack"] .rf-lay,
.rf[data-mode="tack"] .rf-side-fleet {
  display: none;
}
.rf-side {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rf-side > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.rf-rows {
  position: relative;
  margin-top: 10px;
}
.rf-row {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 58px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition:
    transform 0.5s ease,
    opacity 0.3s ease;
}
.rf-row.rf-fixed {
  position: static;
  height: auto;
  margin-top: 10px;
}
.rf-row.rf-off {
  opacity: 0.35;
}
.rf-row.rf-now b {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.rf-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  font-size: 15px;
}
.rf-who {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
}
.rf-who i {
  width: 16px;
  height: 5px;
  border-radius: 3px;
  flex: none;
  align-self: center;
}
.rf-place {
  min-width: 10px;
  color: #b4c2da;
}
.rf-who b {
  font-weight: 600;
}
.rf-who small {
  font-size: 13px;
  color: #b4c2da;
  white-space: nowrap;
}
.rf-value {
  white-space: nowrap;
}
.rf-meter {
  display: block;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.1);
}
.rf-meter span {
  display: block;
  height: 100%;
  border-radius: 2px;
  transition: width 0.3s linear;
}
.rf-read {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  padding: 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.rf-read span {
  color: #b4c2da;
}
.rf-read b {
  font-size: 20px;
  font-weight: 600;
}
.rf-note {
  margin-top: 10px;
}
.rf-bar {
  align-self: center;
  width: min(100%, 620px);
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 20px 8px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.03);
  margin-top: auto;
}
.rf-play {
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  cursor: pointer;
  position: relative;
}
.rf-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
}
.rf-play[data-state="play"]::before {
  margin: -8px 0 0 -5px;
  border-left: 13px solid #f4f7fb;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
}
.rf-play[data-state="pause"]::before {
  width: 4px;
  height: 14px;
  margin: -7px 0 0 -6px;
  background: #f4f7fb;
  box-shadow: 8px 0 0 #f4f7fb;
}
.rf-clock {
  font-size: 15px;
  font-weight: 600;
  min-width: 96px;
}
.rf-range {
  flex: 1;
  min-width: 0;
  height: 24px;
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(#f4f7fb, #f4f7fb) 0 50% / var(--at, 0%) 3px no-repeat, linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.22)) 0 50% / 100% 3px no-repeat;
  cursor: pointer;
}
.rf-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f4f7fb;
  border: 0;
}
.rf-range::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f4f7fb;
  border: 0;
}
@media (max-width: 900px) {
  .rf {
    padding: 16px;
  }
  .rf-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .rf-main {
    overflow-x: auto;
  }
  .rf-chart {
    min-width: 660px;
  }
  .rf-row-head {
    flex-wrap: wrap;
  }
}
@media (prefers-reduced-motion: reduce) {
  .rf-row,
  .rf-meter span {
    transition: none;
  }
}

/* The screens: a television beside the phone and tablet frames of device-shots.css. */
.ds .tv {
  border-radius: 14px;
  padding: 12px 12px 14px;
}
.ds .tv .sc {
  border-radius: 3px;
}
.ds .tv2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 36px;
}
.ds .p4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
.ds .p3t {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 220px)) minmax(0, 1fr);
  gap: 26px 36px;
  align-items: center;
}
@media (max-width: 900px) {
  .ds .p4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ds .p3t {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
/* What each source gives */
.race-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}
.race-table th {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
  padding: 0 16px 10px 0;
  border-bottom: 2px solid var(--ink);
}
.race-table td {
  padding: 12px 16px 12px 0;
  border-bottom: 1px solid var(--rule);
  vertical-align: top;
}
.race-scroll {
  overflow-x: auto;
}
.race-scroll table {
  min-width: 720px;
}
