/* ==========================================================================
   Campione Holstebro Tours — Broadcast graphics
   Nordic-minimal, Tour de France-inspired design system.
   Charcoal base + warm off-white, dark translucent panels, hairline rules,
   tabular data, jersey-coded classifications.
   ========================================================================== */

:root {
  /* Base surfaces & ink */
  --ink: #0e1116;
  --ink-lift: #171c23;
  --paper: #f4f2ec;
  --paper-80: rgba(244, 242, 236, 0.82);
  --paper-64: rgba(244, 242, 236, 0.64);
  --paper-46: rgba(244, 242, 236, 0.46);
  --paper-32: rgba(244, 242, 236, 0.32);

  /* Hairlines */
  --hairline: rgba(244, 242, 236, 0.12);
  --hairline-strong: rgba(244, 242, 236, 0.22);

  /* Translucent panels (kept semi-transparent for keying over live video) */
  --panel: rgba(11, 14, 19, 0.86);
  --panel-soft: rgba(11, 14, 19, 0.72);

  /* Brand tie (used sparingly) + functional signal */
  --brand: #0c8040;
  --signal: #f5c518;
  --signal-shade: #c8990f;

  /* Cycling jerseys */
  --jersey-gc: #f5c518;
  --jersey-sprint: #17a65a;
  --jersey-climb: #d64550;
  --jersey-team: #b8c0cc;
  --jersey-stage: #f4f2ec;

  /* Elevation profile fill */
  --profile-ridge: #48566e;
  --profile-base: #1c2430;

  --shadow-panel: 0 20px 46px rgba(0, 0, 0, 0.42);
  --shadow-soft: 0 12px 30px rgba(0, 0, 0, 0.32);

  --font: "Segoe UI Variable Display", "Segoe UI", "Inter", "Helvetica Neue", Arial, sans-serif;

  --accent: var(--brand);
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: transparent;
  font-family: var(--font);
  font-feature-settings: "ss01";
  -webkit-font-smoothing: antialiased;
}

body.preview-mode {
  background-color: #0b0f14;
  background-image:
    linear-gradient(45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, rgba(255, 255, 255, 0.045) 75%),
    linear-gradient(-45deg, transparent 75%, rgba(255, 255, 255, 0.045) 75%);
  background-position: 0 0, 0 12px, 12px -12px, -12px 0;
  background-size: 24px 24px;
}

.broadcast-frame {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

/* ==========================================================================
   Top bar (chrome) — logo bug + race info
   ========================================================================== */

.broadcast-chrome {
  position: absolute;
  z-index: 6;
  top: 2.4vh;
  left: 3.2vw;
  right: auto;
  display: flex;
  align-items: stretch;
  gap: 0;
  max-width: min(92rem, 94vw);
  color: var(--paper);
}

.broadcast-bug {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  height: 4.35rem;
  padding: 0 1.05rem 0 0.9rem;
  border: 1px solid var(--hairline-strong);
  border-right: 0;
  border-radius: 4px 0 0 4px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.bug-logo {
  width: 3.5rem;
  height: 2.5rem;
  flex: 0 0 auto;
  object-fit: contain;
}

.bug-title {
  display: grid;
  gap: 0.06rem;
  line-height: 1;
}

.bug-title strong,
.bug-title em {
  text-transform: uppercase;
  font-style: normal;
}

.bug-title strong {
  color: var(--ink);
  font-size: clamp(0.9rem, 1.35vw, 1.2rem);
  font-weight: 800;
  letter-spacing: 0.02em;
}

.bug-title em {
  color: var(--brand);
  font-size: clamp(0.66rem, 0.9vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.top-race-info {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-width: 0;
  min-height: 4.35rem;
  padding: 0;
  border: 1px solid var(--hairline-strong);
  border-radius: 0 4px 4px 0;
  background: var(--panel);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

/* Brand tick between bug and info */
.top-race-info::before {
  content: "";
  width: 3px;
  flex: 0 0 3px;
  background: var(--brand);
}

.top-race-main {
  display: grid;
  align-content: center;
  min-width: 18rem;
  max-width: 36rem;
  gap: 0.16rem;
  padding: 0.4rem 1.25rem 0.4rem 1.15rem;
}

.top-race-main span {
  color: var(--paper-46);
  font-size: clamp(0.7rem, 0.86vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.top-race-main strong {
  overflow: hidden;
  color: var(--paper);
  font-size: clamp(1.15rem, 1.42vw, 1.42rem);
  font-weight: 650;
  letter-spacing: 0.01em;
  line-height: 1.05;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.top-race-status {
  display: inline-flex;
  align-items: center;
  align-self: center;
  flex: 0 0 auto;
  margin: 0 0.9rem;
  padding: 0.4rem 0.85rem;
  border-radius: 2px;
  background: var(--signal);
  color: var(--ink);
  font-size: clamp(0.74rem, 0.92vw, 0.88rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.top-race-pills {
  display: flex;
  min-width: 0;
  gap: 0;
  margin-left: auto;
}

.info-pill {
  display: grid;
  align-content: center;
  min-width: 6.6rem;
  gap: 0.14rem;
  padding: 0.4rem 1.05rem;
  border-left: 1px solid var(--hairline);
  background: transparent;
}

.info-pill small {
  color: var(--paper-46);
  font-size: clamp(0.66rem, 0.8vw, 0.76rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-pill strong {
  color: var(--paper);
  font-size: clamp(1.02rem, 1.18vw, 1.16rem);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* ==========================================================================
   Operator fullscreen button
   ========================================================================== */

.output-tool {
  position: fixed;
  z-index: 20;
  top: 1rem;
  right: 1rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 3px;
  background: rgba(11, 14, 19, 0.9);
  color: var(--paper);
  font: 700 0.85rem var(--font);
  letter-spacing: 0.06em;
  pointer-events: auto;
}

.output-tool:hover,
.output-tool:focus {
  background: rgba(11, 14, 19, 1);
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

:fullscreen .output-tool {
  display: none;
}

/* ==========================================================================
   Overlay root + shared graphic scaffolding
   ========================================================================== */

.overlay-root {
  position: absolute;
  inset: 13vh 4.5vw 5.5vh;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 220ms ease, transform 220ms ease;
}

.overlay-root.is-hidden {
  opacity: 0;
  transform: translateY(20px);
}

.overlay-root.overlay-pause {
  inset: 5.5vh 4.5vw;
}

.graphic {
  color: var(--paper);
}

.panel-surface {
  border: 1px solid var(--hairline-strong);
  border-radius: 4px;
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(12px);
}

.graphic-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.7rem;
  color: var(--paper-64);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.graphic-label::before {
  display: block;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--brand);
  content: "";
}

.graphic h1,
.graphic h2,
.graphic p {
  margin: 0;
}

/* ==========================================================================
   Entrance animations
   ========================================================================== */

@keyframes graphic-panel-enter {
  from {
    opacity: 0;
    transform: translate3d(0, 16px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes graphic-soft-rise {
  from {
    opacity: 0;
    transform: translate3d(0, 9px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes graphic-row-enter {
  from {
    opacity: 0;
    transform: translate3d(-10px, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.overlay-rider-profile .rider-card,
.overlay-weather .weather-panel,
.overlay-route-wind .route-wind-panel,
.overlay-stage-result .standings-panel,
.overlay-gc .standings-panel,
.overlay-sprint .standings-panel,
.overlay-climb .standings-panel,
.overlay-team .standings-panel {
  animation: graphic-panel-enter 300ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
  transform-origin: left bottom;
}

.overlay-rider-profile .rider-number,
.overlay-rider-profile .rider-photo-wrap {
  animation: graphic-soft-rise 260ms cubic-bezier(0.2, 0.75, 0.25, 1) 80ms both;
}

.overlay-rider-profile .rider-main {
  animation: graphic-soft-rise 300ms cubic-bezier(0.2, 0.75, 0.25, 1) 120ms both;
}

.overlay-rider-profile .rider-stat {
  animation: graphic-soft-rise 240ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.overlay-rider-profile .rider-stat:nth-child(1) { animation-delay: 170ms; }
.overlay-rider-profile .rider-stat:nth-child(2) { animation-delay: 205ms; }
.overlay-rider-profile .rider-stat:nth-child(3) { animation-delay: 240ms; }
.overlay-rider-profile .rider-stat:nth-child(4) { animation-delay: 275ms; }

/* ==========================================================================
   Day program
   ========================================================================== */

.program-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: min(44rem, 58vw);
  padding: 1.5rem 1.55rem;
}

.program-panel h1 {
  font-size: 2.2rem;
  font-weight: 640;
  letter-spacing: 0.005em;
  line-height: 1;
}

.program-list {
  display: grid;
  gap: 0.35rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.program-item {
  display: grid;
  grid-template-columns: 5rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  padding: 0.7rem 0.35rem;
  border-top: 1px solid var(--hairline);
}

.program-item:last-child {
  border-bottom: 1px solid var(--hairline);
}

.program-time {
  color: var(--paper);
  font-size: 1.3rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.program-title {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.12;
}

.program-location,
.program-status {
  color: var(--paper-64);
  font-size: 0.82rem;
  font-weight: 600;
}

.program-status {
  padding: 0.24rem 0.6rem;
  border: 1px solid var(--hairline-strong);
  border-radius: 2px;
  color: var(--paper-80);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ==========================================================================
   Sponsor / pause slate
   ========================================================================== */

.sponsor-pause {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
}

.sponsor-card {
  display: grid;
  width: min(76rem, 90vw);
  gap: 2rem;
  padding: clamp(1.6rem, 3vw, 2.8rem);
  border: 1px solid var(--hairline-strong);
  border-radius: 5px;
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(14px);
}

.sponsor-card::before {
  content: "";
  display: block;
  height: 3px;
  width: 4.5rem;
  margin-bottom: -0.6rem;
  background: var(--signal);
}

.sponsor-brand {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.sponsor-brand img {
  width: clamp(10rem, 16vw, 16rem);
  height: clamp(4.5rem, 7vw, 6.8rem);
  object-fit: contain;
  padding: 0.7rem 0.9rem;
  border-radius: 4px;
  background: var(--paper);
  box-shadow: var(--shadow-soft);
}

.sponsor-brand span {
  display: grid;
  gap: 0.5rem;
}

.sponsor-brand strong {
  color: var(--paper);
  font-size: clamp(2.1rem, 4.4vw, 4.6rem);
  font-weight: 640;
  letter-spacing: 0.005em;
  line-height: 0.98;
}

.sponsor-brand em {
  color: var(--paper-64);
  font-size: clamp(0.95rem, 1.4vw, 1.28rem);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sponsor-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.sponsor-tile {
  display: grid;
  min-height: 6.6rem;
  align-content: center;
  gap: 0.4rem;
  padding: 1.05rem;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: rgba(244, 242, 236, 0.04);
}

.sponsor-tile small {
  color: var(--paper-46);
  font-size: clamp(0.68rem, 0.9vw, 0.82rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sponsor-tile strong {
  color: var(--paper);
  font-size: clamp(1.05rem, 1.5vw, 1.5rem);
  font-weight: 640;
  line-height: 1.05;
}

/* ==========================================================================
   Lower-thirds: current event + rider profile
   ========================================================================== */

.event-card,
.rider-card {
  position: absolute;
  left: 0;
  bottom: 3.8vh;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  width: max-content;
  max-width: min(58rem, 72vw);
  overflow: hidden;
}

.rider-card {
  min-height: 10rem;
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(12px);
}

.event-card {
  grid-template-columns: minmax(0, 1fr);
  min-width: min(33rem, 54vw);
  padding: 0;
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(12px);
}

/* Subtle brand spine on the event lower-third */
.event-card::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 0.28rem;
  background: var(--brand);
  content: "";
}

.event-content {
  display: grid;
  gap: 0.6rem;
  padding: 1.25rem 1.5rem 1.3rem 1.65rem;
}

.event-card h1 {
  max-width: 40rem;
  color: var(--paper);
  font-size: clamp(2rem, 2.5vw, 2.4rem);
  font-weight: 640;
  letter-spacing: 0.004em;
  line-height: 1.03;
}

.event-meta,
.rider-meta {
  display: flex;
  flex-wrap: wrap;
  margin-top: 0.2rem;
  color: var(--paper-64);
  font-size: 1rem;
  font-weight: 600;
}

.event-meta {
  gap: 0;
}

.event-meta span {
  display: grid;
  gap: 0.16rem;
  min-width: 5.4rem;
  padding: 0.1rem 1.05rem 0.1rem 0;
  margin-right: 1.05rem;
  border-right: 1px solid var(--hairline);
}

.event-meta span:last-child {
  border-right: 0;
  margin-right: 0;
}

.event-meta small,
.event-meta strong {
  display: block;
}

.event-meta small {
  color: var(--paper-46);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.event-meta strong {
  overflow: hidden;
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-notes {
  max-width: 42rem;
  margin-top: 0.15rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--hairline);
  color: var(--paper-80);
  font-size: clamp(1.12rem, 1.3vw, 1.28rem);
  font-weight: 500;
  line-height: 1.28;
}

.rider-number {
  display: grid;
  min-width: 6rem;
  place-items: center;
  padding: 0 0.5rem;
  border-right: 1px solid var(--hairline-strong);
  background: var(--ink-lift);
  color: var(--paper);
  font-size: 2.7rem;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
}

.rider-number::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 0.28rem;
  background: var(--signal);
}

.rider-card.has-photo {
  max-width: min(61rem, 76vw);
}

.rider-photo-wrap {
  position: relative;
  width: clamp(12.5rem, 19vw, 16rem);
  min-height: 10rem;
  overflow: hidden;
  background: var(--ink-lift);
  clip-path: polygon(0 0, calc(100% - 0.9rem) 0, 100% 100%, 0 100%);
}

.rider-photo {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 10rem;
  object-fit: cover;
}

.rider-photo-number {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  display: grid;
  min-width: 3.4rem;
  min-height: 2.9rem;
  place-items: center;
  padding: 0.22rem 0.55rem;
  border-radius: 3px;
  background: rgba(11, 14, 19, 0.86);
  border: 1px solid var(--hairline-strong);
  color: var(--paper);
  font-size: 1.9rem;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  box-shadow: var(--shadow-soft);
}

.rider-main {
  min-width: min(36rem, 48vw);
  padding: 1.15rem 1.5rem 1.2rem 1.35rem;
}

.rider-main .graphic-label {
  margin-bottom: 0.45rem;
  color: var(--paper-64);
  font-size: 0.72rem;
}

.rider-main h1 {
  font-size: clamp(2rem, 3vw, 2.7rem);
  font-weight: 680;
  letter-spacing: 0.004em;
  line-height: 0.98;
}

.rider-meta {
  gap: 0;
  margin-top: 0.7rem;
}

.rider-meta span {
  display: grid;
  min-width: 0;
  max-width: 22rem;
  gap: 0.16rem;
  padding: 0 1rem;
  border-left: 1px solid var(--hairline);
}

.rider-meta span:first-child {
  padding-left: 0;
  border-left: 0;
}

.rider-meta small {
  color: var(--paper-46);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.rider-meta strong {
  overflow-wrap: anywhere;
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.14;
}

.rider-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 0.4rem;
  margin-top: 0.85rem;
}

.rider-stat {
  min-width: 7rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--signal);
  border-radius: 2px;
  background: rgba(244, 242, 236, 0.04);
}

.rider-stat span,
.rider-stat strong {
  display: block;
}

.rider-stat span {
  color: var(--paper-46);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rider-stat strong {
  margin-top: 0.14rem;
  font-size: 1.16rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Weather
   ========================================================================== */

.weather-panel {
  position: absolute;
  top: auto;
  bottom: 3.8vh;
  left: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: stretch;
  width: max-content;
  max-width: min(64rem, 82vw);
  padding: 1.1rem 1.2rem;
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(12px);
}

.weather-source,
.route-wind-source {
  color: var(--paper-46);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.weather-source {
  position: absolute;
  right: 0.85rem;
  bottom: 0.5rem;
}

.weather-main {
  display: grid;
  min-width: 0;
  max-width: min(37rem, 48vw);
  gap: 0.75rem;
  align-content: center;
}

.weather-panel .graphic-label {
  margin-bottom: 0.3rem;
  color: var(--paper-64);
  font-size: 0.72rem;
}

.weather-panel h1 {
  overflow: hidden;
  color: var(--paper);
  font-size: clamp(1.45rem, 1.9vw, 1.9rem);
  font-weight: 660;
  line-height: 1.02;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-subtitle {
  overflow: hidden;
  margin-top: 0.22rem;
  color: var(--paper-64);
  font-size: 0.82rem;
  font-weight: 550;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-current {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}

.weather-temperature {
  display: flex;
  align-items: baseline;
  gap: 0.14rem;
  min-width: max-content;
}

.weather-temperature strong {
  color: var(--paper);
  font-size: clamp(3.2rem, 4.8vw, 4.55rem);
  font-weight: 620;
  font-variant-numeric: tabular-nums;
  line-height: 0.84;
}

.weather-temperature span {
  color: var(--paper-64);
  font-size: clamp(1rem, 1.35vw, 1.28rem);
  font-weight: 700;
}

.weather-condition {
  overflow: hidden;
  color: var(--paper);
  font-size: clamp(1.05rem, 1.36vw, 1.3rem);
  font-weight: 620;
  line-height: 1.04;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.weather-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
}

.weather-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.weather-icon-large {
  width: clamp(3.7rem, 5.2vw, 4.9rem);
  height: clamp(3.7rem, 5.2vw, 4.9rem);
}

.weather-icon-small {
  width: 2rem;
  height: 2rem;
}

.weather-icon-sun {
  fill: var(--signal);
}

.weather-icon-rays path,
.weather-icon-rain path,
.weather-icon-snow path,
.weather-icon-fog path {
  fill: none;
  stroke: var(--signal);
  stroke-linecap: round;
  stroke-width: 4;
}

.weather-icon-cloud {
  fill: rgba(244, 242, 236, 0.92);
  stroke: rgba(244, 242, 236, 0.92);
  stroke-width: 1;
}

.weather-icon-rain path {
  stroke: #8fd0ff;
}

.weather-icon-snow path,
.weather-icon-fog path {
  stroke: rgba(244, 242, 236, 0.9);
}

.weather-icon-bolt {
  fill: var(--signal);
}

.weather-forecast {
  display: grid;
  align-content: center;
}

.weather-forecast ol {
  display: grid;
  grid-template-columns: minmax(6.55rem, 7rem) repeat(3, minmax(4.45rem, 5rem));
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.weather-forecast li {
  display: grid;
  min-height: 6.6rem;
  align-content: center;
  justify-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.4rem;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: rgba(244, 242, 236, 0.04);
  color: var(--paper);
}

.weather-forecast time {
  color: var(--paper-64);
  font-size: 0.68rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

.weather-forecast strong {
  display: inline-flex;
  align-items: baseline;
  gap: 0.05rem;
  color: var(--paper);
  font-size: 1.14rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.weather-forecast strong span {
  color: var(--paper-46);
  font-size: 0.72rem;
  font-weight: 700;
}

.weather-wind-pill {
  position: relative;
  align-content: center;
  justify-items: center;
  gap: 0.28rem;
  border-color: var(--hairline-strong);
  border-top-width: 2px;
  border-top-color: var(--signal);
  background: rgba(244, 242, 236, 0.05);
}

.weather-wind-kicker,
.weather-wind-direction {
  color: var(--paper-64);
  font-size: 0.58rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.weather-wind-kicker {
  align-self: start;
  justify-self: start;
  padding: 0.1rem 0.32rem;
  border-radius: 2px;
  background: rgba(244, 242, 236, 0.08);
  letter-spacing: 0.14em;
}

.weather-wind-arrow {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.02rem;
  place-items: center;
  transform: rotate(var(--wind-rotation));
  transform-origin: center;
}

.weather-wind-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.45));
}

.weather-wind-arrow-left,
.weather-wind-arrow-right {
  stroke: rgba(11, 14, 19, 0.28);
  stroke-linejoin: round;
  stroke-width: 0.75;
}

.weather-wind-arrow-left {
  fill: var(--signal-shade);
}

.weather-wind-arrow-right {
  fill: var(--signal);
}

.weather-wind-arrow-spine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.55);
  stroke-linecap: round;
  stroke-width: 1;
}

.weather-forecast .weather-wind-speed-value {
  display: grid;
  justify-self: stretch;
  width: 100%;
  min-width: 0;
  padding-top: 0.3rem;
  border-top: 1px solid var(--hairline);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
  place-items: center;
  text-align: center;
  white-space: nowrap;
}

.weather-forecast .weather-wind-direction {
  align-self: end;
  justify-self: stretch;
  width: 100%;
  color: var(--paper-80);
  font-size: 0.76rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.02em;
  text-align: center;
  text-transform: none;
}

/* ==========================================================================
   Route wind map
   ========================================================================== */

.route-wind-panel {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: auto;
  gap: 0.9rem;
  padding: 1.2rem 1.3rem 1.15rem;
  overflow: hidden;
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(12px);
}

.route-wind-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  padding-bottom: 0.7rem;
  border-bottom: 1px solid var(--hairline);
}

.route-wind-header h1 {
  overflow: hidden;
  color: var(--paper);
  font-size: clamp(2.1rem, 3vw, 3rem);
  font-weight: 660;
  letter-spacing: 0.004em;
  line-height: 0.98;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-wind-header p {
  margin-top: 0.34rem;
  color: var(--paper-64);
  font-size: 1rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.route-wind-summary {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 18rem;
  max-width: 24rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--signal);
  border-radius: 3px;
  background: rgba(244, 242, 236, 0.05);
}

.route-wind-summary span {
  display: grid;
  min-width: 0;
  gap: 0.16rem;
}

.route-wind-summary small {
  color: var(--paper-46);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.route-wind-summary strong {
  overflow: hidden;
  color: var(--paper);
  font-size: 1.1rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-wind-map {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background:
    radial-gradient(circle at 50% 42%, rgba(244, 242, 236, 0.05), transparent 60%),
    rgba(244, 242, 236, 0.015);
}

.route-wind-map svg {
  display: block;
  width: 100%;
  height: 100%;
}

.route-wind-source {
  position: absolute;
  right: 0.6rem;
  bottom: 0.5rem;
  padding: 0.16rem 0.32rem;
  border-radius: 3px;
  background: rgba(11, 14, 19, 0.6);
}

.route-wind-paper {
  fill: transparent;
}

.route-wind-path-shadow {
  fill: none;
  stroke: rgba(0, 0, 0, 0.45);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 15;
  filter: url(#routeWindGlow);
}

.route-wind-path {
  fill: none;
  stroke: var(--paper);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 8;
}

.route-wind-compass-anchor {
  overflow: visible;
}

.route-wind-compass {
  filter: url(#routeWindPointerShadow);
}

.route-wind-compass-left,
.route-wind-compass-right {
  stroke: rgba(11, 14, 19, 0.32);
  stroke-linejoin: round;
  stroke-width: 2;
}

.route-wind-compass-left {
  fill: var(--signal-shade);
}

.route-wind-compass-right {
  fill: var(--signal);
}

.route-wind-compass-spine {
  fill: none;
  stroke: rgba(255, 255, 255, 0.6);
  stroke-linecap: round;
  stroke-width: 3;
}

.route-wind-readout {
  pointer-events: none;
}

.route-wind-readout text {
  text-anchor: middle;
  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.78),
    0 0 2px rgba(0, 0, 0, 0.9);
}

.route-wind-direction-letter,
.route-wind-readout-direction {
  fill: var(--paper);
  font-size: 34px;
  font-weight: 800;
}

.route-wind-readout-speed {
  fill: var(--paper-80);
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.route-wind-readout-temperature {
  fill: var(--paper-64);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.route-wind-marker circle {
  fill: var(--paper);
  stroke: var(--ink);
  stroke-width: 2.5;
}

.route-wind-marker-stem {
  stroke: rgba(244, 242, 236, 0.7);
  stroke-linecap: round;
  stroke-width: 2.5;
}

.route-wind-marker rect {
  fill: rgba(11, 14, 19, 0.82);
  stroke: var(--hairline-strong);
  stroke-width: 1;
}

.route-wind-marker text {
  fill: var(--paper);
  font-size: 14px;
  font-weight: 700;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.route-wind-course-marker circle {
  fill: var(--signal);
  stroke: var(--ink);
  stroke-width: 3;
}

.route-wind-course-marker rect {
  fill: rgba(11, 14, 19, 0.88);
  stroke: rgba(245, 197, 24, 0.55);
}

.route-wind-course-marker .route-wind-marker-label {
  font-size: 15px;
  font-weight: 800;
}

.route-wind-course-marker .route-wind-marker-meta {
  fill: var(--paper-64);
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   Stage profile (dark)
   ========================================================================== */

.stage-profile-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  padding: 1.2rem 1.35rem 1.35rem;
  background: var(--panel);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(12px);
  color: var(--paper);
}

.stage-profile-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1.4rem;
}

.stage-profile-panel h1 {
  color: var(--paper);
  font-size: 2rem;
  font-weight: 680;
  letter-spacing: 0.004em;
  line-height: 1;
}

.stage-profile-panel .graphic-label {
  margin-bottom: 0.5rem;
  color: var(--paper-64);
}

.stage-profile-panel .graphic-label::before {
  background: var(--signal);
}

.stage-summary {
  display: flex;
  justify-content: flex-end;
  gap: 0;
  flex: 0 0 auto;
  flex-wrap: wrap;
  max-width: 42rem;
  margin-top: 0;
  color: var(--paper);
}

.stage-summary span {
  display: grid;
  min-width: 7rem;
  gap: 0.16rem;
  padding: 0.1rem 1.15rem;
  border-left: 1px solid var(--hairline);
}

.stage-summary span:first-child {
  border-left: 0;
  padding-left: 0;
}

.stage-summary small,
.stage-summary strong {
  display: block;
}

.stage-summary small {
  color: var(--paper-46);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stage-summary strong {
  color: var(--paper);
  font-size: 1.02rem;
  font-weight: 720;
  font-variant-numeric: tabular-nums;
}

.profile-chart {
  width: 100%;
  height: 26.8rem;
  margin-top: 0.9rem;
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 3px;
  background: rgba(244, 242, 236, 0.02);
}

.profile-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.profile-elements {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.85rem;
}

.profile-elements span {
  padding: 0.45rem 0.65rem;
  border: 1px solid var(--hairline);
  border-left: 2px solid var(--jersey-climb);
  border-radius: 2px;
  background: rgba(244, 242, 236, 0.04);
  color: var(--paper-80);
  font-size: 0.78rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.profile-elements strong {
  color: var(--paper);
  margin-right: 0.3rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.profile-paper {
  fill: transparent;
}

.profile-area {
  fill: url(#profileFill);
}

.profile-axis-line {
  stroke: var(--paper-32);
  stroke-width: 2;
}

.profile-grid-line {
  stroke: rgba(244, 242, 236, 0.1);
  stroke-width: 1.2;
}

.profile-axis-title,
.profile-x-tick,
.profile-y-tick,
.profile-distance-label,
.profile-distance-unit,
.profile-place-label,
.profile-place-meta,
.profile-climb-label {
  fill: var(--paper);
  font-weight: 700;
}

.profile-axis-title {
  fill: var(--paper-64);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-y-title {
  text-anchor: middle;
  dominant-baseline: middle;
}

.profile-x-title {
  text-anchor: middle;
}

.profile-x-tick {
  fill: var(--paper-64);
  font-size: 18px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
}

.profile-y-tick {
  fill: var(--paper-64);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-anchor: start;
  dominant-baseline: middle;
}

.profile-line {
  fill: none;
  stroke: var(--paper);
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-marker-line {
  stroke: rgba(244, 242, 236, 0.34);
  stroke-width: 1.6;
  stroke-dasharray: 7 7;
}

.profile-marker-line.is-terminal {
  stroke: var(--paper-46);
  stroke-dasharray: none;
  stroke-width: 2;
}

.profile-distance-band {
  fill: rgba(6, 9, 13, 0.72);
}

.profile-distance-band-rule {
  stroke: var(--signal);
  stroke-width: 4;
}

.profile-distance-label {
  fill: var(--signal);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
  dominant-baseline: middle;
}

.profile-distance-label.is-finish {
  fill: var(--paper);
}

.profile-distance-unit {
  fill: var(--paper);
  font-size: 24px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-anchor: end;
  dominant-baseline: middle;
}

.profile-place-label {
  font-size: 17px;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.profile-place-label.is-terminal {
  font-size: 24px;
  font-weight: 780;
}

.profile-place-meta {
  fill: var(--paper-64);
  font-size: 14px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.profile-climb-badge path {
  fill: var(--jersey-climb);
  stroke: rgba(11, 14, 19, 0.6);
  stroke-width: 2;
}

.profile-climb-badge text {
  fill: #ffffff;
  font-size: 22px;
  font-weight: 800;
  text-anchor: middle;
}

.profile-climb-label {
  fill: var(--paper-80);
  font-size: 15px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  text-anchor: middle;
}

/* ==========================================================================
   Standings — jersey-coded classifications
   ========================================================================== */

.standings-panel {
  position: absolute;
  top: 17vh;
  left: 4.2vw;
  width: min(66rem, 82vw);
  padding: 0 0 0 1.15rem;
  color: var(--paper);

  /* Default (stage result / neutral) */
  --class-accent: var(--jersey-stage);
  --class-on: var(--ink);
}

.overlay-gc .standings-panel { --class-accent: var(--jersey-gc); --class-on: var(--ink); }
.overlay-stage-result .standings-panel { --class-accent: var(--jersey-stage); --class-on: var(--ink); }
.overlay-sprint .standings-panel { --class-accent: var(--jersey-sprint); --class-on: #ffffff; }
.overlay-climb .standings-panel { --class-accent: var(--jersey-climb); --class-on: #ffffff; }
.overlay-team .standings-panel { --class-accent: var(--jersey-team); --class-on: var(--ink); }

/* Backing plate */
.standings-panel::before {
  position: absolute;
  z-index: -1;
  inset: -1.25rem -3.2rem -1.35rem -1.15rem;
  border-radius: 4px;
  background:
    linear-gradient(
      90deg,
      rgba(9, 12, 16, 0.9),
      rgba(9, 12, 16, 0.78) 52%,
      rgba(9, 12, 16, 0.58) 82%,
      rgba(9, 12, 16, 0.36)
    );
  content: "";
  pointer-events: none;
}

/* Jersey spine down the left edge */
.standings-panel::after {
  position: absolute;
  z-index: 0;
  top: -1.25rem;
  bottom: -1.35rem;
  left: -1.15rem;
  width: 0.32rem;
  background: var(--class-accent);
  content: "";
  pointer-events: none;
}

/* Polka texture on the climb spine */
.overlay-climb .standings-panel::after {
  background-color: var(--jersey-climb);
  background-image: radial-gradient(rgba(255, 255, 255, 0.92) 1.3px, transparent 1.6px);
  background-size: 0.32rem 0.48rem;
  background-position: center;
}

.standings-header {
  display: grid;
  gap: 0.28rem;
  margin-bottom: 0.7rem;
}

.standings-kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 100%;
}

.standings-panel .graphic-label {
  margin: 0;
  color: var(--paper-64);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.standings-panel .graphic-label::before {
  display: block;
  background: var(--class-accent);
}

.standings-class-badge {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  max-width: 16rem;
  padding: 0.28rem 0.6rem;
  border: 1px solid var(--hairline-strong);
  border-left: 3px solid var(--class-accent);
  border-radius: 2px;
  background: rgba(244, 242, 236, 0.05);
  color: var(--paper);
}

.standings-class-badge small {
  color: var(--paper-46);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.standings-class-badge strong {
  overflow: hidden;
  color: var(--paper);
  font-size: 0.98rem;
  font-weight: 750;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-panel h1 {
  color: var(--paper);
  font-size: 2.1rem;
  font-weight: 680;
  letter-spacing: 0.004em;
  line-height: 1.06;
}

.standings-subtitle {
  margin-top: 0.2rem;
  color: var(--paper-64);
  font-size: 1.22rem;
  font-weight: 550;
}

.standings-table {
  display: block;
  width: 100%;
  margin-top: 0;
  border-collapse: collapse;
}

.standings-table tbody {
  display: grid;
  gap: 0;
}

.standings-table tr {
  display: grid;
  grid-template-columns: 3.35rem minmax(22rem, 1.68fr) minmax(13.5rem, 0.95fr) 7.5rem 5.4rem;
  min-height: 2.35rem;
  overflow: hidden;
  border: 0;
  border-bottom: 1px solid var(--hairline);
}

.overlay-stage-result .standings-table tr,
.overlay-gc .standings-table tr,
.overlay-sprint .standings-table tr,
.overlay-climb .standings-table tr,
.overlay-team .standings-table tr {
  animation: graphic-row-enter 210ms cubic-bezier(0.2, 0.75, 0.25, 1) both;
}

.standings-table tr:nth-child(1) { animation-delay: 90ms; }
.standings-table tr:nth-child(2) { animation-delay: 115ms; }
.standings-table tr:nth-child(3) { animation-delay: 140ms; }
.standings-table tr:nth-child(4) { animation-delay: 165ms; }
.standings-table tr:nth-child(5) { animation-delay: 190ms; }
.standings-table tr:nth-child(6) { animation-delay: 215ms; }
.standings-table tr:nth-child(7) { animation-delay: 240ms; }
.standings-table tr:nth-child(8) { animation-delay: 265ms; }
.standings-table tr:nth-child(9) { animation-delay: 290ms; }
.standings-table tr:nth-child(10) { animation-delay: 315ms; }

.standings-table td {
  display: flex;
  min-width: 0;
  align-items: center;
  padding: 0.2rem 0.55rem;
  color: var(--paper);
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.08;
}

.standings-table tr:not(.is-leader) td {
  background: rgba(244, 242, 236, 0.03);
}

.standings-table .position {
  color: var(--paper-64);
  font-size: 1.14rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  justify-content: center;
  text-align: center;
}

.standings-table .rider {
  display: block;
  overflow: hidden;
  min-width: 0;
  font-size: 1.26rem;
  font-weight: 720;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.standings-table .team {
  display: block;
  overflow: hidden;
  min-width: 0;
  color: var(--paper-46);
  font-size: 0.88rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.standings-table .rider-cell,
.standings-table .team-cell {
  justify-content: flex-start;
}

.standings-table .standing-row--no-team .rider-cell {
  grid-column: 2 / span 2;
}

.standings-table .standing-row--no-team .team-cell {
  display: none;
}

.standings-table .value,
.standings-table .gap {
  justify-content: flex-end;
  font-variant-numeric: tabular-nums;
  text-align: right;
  white-space: nowrap;
}

.standings-table .value {
  font-size: 1.24rem;
  font-weight: 750;
}

.standings-table .gap {
  color: var(--paper-64);
  font-weight: 650;
}

/* Leader row = jersey colour */
.standings-table tr.is-leader td {
  background: var(--class-accent);
  color: var(--class-on);
}

.standings-table tr.is-leader .position,
.standings-table tr.is-leader .team,
.standings-table tr.is-leader .gap {
  color: var(--class-on);
  opacity: 0.72;
}

.standings-table tr.is-leader .rider,
.standings-table tr.is-leader .value {
  color: var(--class-on);
}

/* ==========================================================================
   Compact / preview breakpoint
   ========================================================================== */

@media (max-width: 900px) {
  .broadcast-chrome {
    top: 1rem;
    right: 1rem;
    left: 1rem;
    max-width: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
  }

  .broadcast-bug {
    height: 3rem;
    padding: 0 0.7rem;
    border-right: 1px solid var(--hairline-strong);
    border-radius: 4px;
  }

  .bug-logo {
    width: 2.6rem;
    height: 1.9rem;
  }

  .top-race-info {
    align-items: stretch;
    flex-wrap: wrap;
    width: 100%;
    min-height: 0;
    border-radius: 4px;
  }

  .top-race-main {
    min-width: 0;
    width: 100%;
  }

  .top-race-pills {
    flex-wrap: wrap;
    margin-left: 0;
  }

  .info-pill {
    border-left: 0;
    border-top: 1px solid var(--hairline);
    padding-left: 1.05rem;
  }

  .overlay-root {
    inset: 10rem 1rem 2rem;
  }

  .overlay-root.overlay-pause {
    inset: 1rem;
  }

  .sponsor-brand {
    grid-template-columns: 1fr;
  }

  .sponsor-brand img {
    width: min(16rem, 80vw);
  }

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

  .program-panel,
  .event-card,
  .rider-card,
  .weather-panel,
  .route-wind-panel,
  .stage-profile-panel,
  .standings-panel {
    width: auto;
    max-width: none;
    right: 0;
    left: 0;
  }

  .standings-panel {
    top: 0;
    bottom: auto;
    padding: 0 0.35rem 0 0.5rem;
  }

  .standings-panel::before {
    right: -0.4rem;
    left: -0.5rem;
  }

  .standings-panel::after {
    left: -0.5rem;
  }

  .standings-kicker-row {
    gap: 0.55rem;
  }

  .standings-class-badge {
    max-width: 9rem;
    padding: 0.2rem 0.44rem;
  }

  .standings-class-badge small {
    font-size: 0.56rem;
  }

  .standings-class-badge strong {
    font-size: 0.82rem;
  }

  .standings-table tr {
    grid-template-columns: 2.55rem minmax(0, 1.6fr) minmax(0, 0.95fr) 5.25rem 4rem;
    min-height: 2rem;
  }

  .standings-table td {
    padding: 0.14rem 0.3rem;
    font-size: 0.92rem;
  }

  .standings-table .position {
    font-size: 0.9rem;
  }

  .standings-table .rider {
    font-size: 0.98rem;
  }

  .standings-table .team {
    font-size: 0.68rem;
  }

  .standings-table .value {
    font-size: 0.98rem;
  }

  .event-card,
  .rider-card,
  .weather-panel,
  .route-wind-panel,
  .stage-profile-panel {
    bottom: 0;
  }

  .weather-panel {
    grid-template-columns: 1fr;
    top: auto;
    bottom: 0;
    width: auto;
  }

  .route-wind-panel {
    inset: 0;
    width: auto;
    max-width: 100%;
    padding: 0.8rem;
  }

  .weather-current {
    flex-wrap: wrap;
  }

  .weather-forecast ol {
    grid-template-columns: repeat(4, minmax(3.75rem, 1fr));
  }

  .weather-forecast li {
    min-height: 6.4rem;
  }

  .route-wind-header {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.55rem;
  }

  .route-wind-header h1 {
    font-size: 1.58rem;
  }

  .route-wind-summary {
    min-width: 0;
    max-width: none;
    width: fit-content;
  }

  .route-wind-map {
    min-height: 0;
    height: 100%;
  }

  .stage-profile-header {
    flex-direction: column;
    gap: 0.8rem;
  }

  .stage-summary {
    justify-content: flex-start;
    max-width: none;
  }

  .stage-summary span:first-child {
    padding-left: 0;
  }

  .profile-chart {
    height: 22rem;
  }

  .rider-stats,
  .graphic-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .overlay-root,
  .overlay-rider-profile .rider-card,
  .overlay-weather .weather-panel,
  .overlay-route-wind .route-wind-panel,
  .overlay-rider-profile .rider-number,
  .overlay-rider-profile .rider-photo-wrap,
  .overlay-rider-profile .rider-main,
  .overlay-rider-profile .rider-stat,
  .overlay-stage-result .standings-panel,
  .overlay-stage-result .standings-table tr,
  .overlay-gc .standings-panel,
  .overlay-gc .standings-table tr,
  .overlay-sprint .standings-panel,
  .overlay-sprint .standings-table tr,
  .overlay-climb .standings-panel,
  .overlay-climb .standings-table tr,
  .overlay-team .standings-panel,
  .overlay-team .standings-table tr {
    animation: none;
    transition: none;
  }
}
