/* The season sequence keeps every round available while the race remains in focus. */
.competition-raceboard {
  min-width: 0;
  margin: 0 0 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.competition-next {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 24px;
  background: #1c2937;
  color: #f5f8fc;
}
.competition-next:has(.competition-race-art:not([hidden])) {
  grid-template-columns: 164px minmax(0, 1fr) auto;
}
.competition-race-art { min-width: 0; }
.competition-race-art img {
  display: block;
  width: 100%;
  height: 104px;
  object-fit: cover;
  border-radius: 6px;
}
.competition-next-copy { min-width: 0; overflow-wrap: anywhere; }
.competition-next-copy > p { margin: 0 0 6px; color: #c5d2e2; font-size: 13px; }
.competition-next-copy h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.competition-next-copy h2 + p { margin: 8px 0 0; }
.competition-next-facts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
.competition-next-facts strong { font-weight: 600; }
.competition-next-facts span { color: #d3deeb; }
.competition-next .button.secondary { background: #fff; border-color: #fff; color: #172a3d; }
.competition-next .button.secondary:hover { background: #e4edf7; border-color: #e4edf7; }
.competition-season-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 20px 24px 12px;
}
.competition-season-heading h3 { margin: 0; font-size: 16px; }
.competition-season-heading .text-button { min-height: 36px; border: 0; background: none; padding: 4px 0; }
.competition-season-calendar { padding: 8px 24px 24px; }
.competition-season-calendar .round-photo-grid { margin: 0; gap: 24px; align-items: start; }
.competition-season-calendar .round-photo-card { border: 0; background: transparent; border-radius: 0; }
.competition-season-calendar .round-photo-card>img,
.competition-season-calendar .round-photo-missing { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; }
.competition-season-calendar .round-photo-card>img[hidden],
.competition-season-calendar .round-photo-missing[hidden] { display: none; }
.competition-season-calendar .round-photo-missing { color: #455468; background: #edf1f5; justify-content: center; padding: 22px; }
.competition-season-calendar .round-photo-missing small { font-size: 12px; color: #526174; }
.competition-season-calendar .round-photo-copy { padding: 18px 0 0; }
.competition-season-calendar .round-photo-copy h3 { font-size: 21px; line-height: 1.3; margin: 16px 0 10px; }
.competition-season-calendar .round-photo-card.is-next .round-card-top>span { color: var(--blue); font-weight: 700; }
.competition-season-calendar .round-photo-card .actions { align-items: stretch; }
.competition-season-calendar .round-photo-card .button { min-height: 40px; }
.competition-season {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(186px, 1fr);
  gap: 0;
  margin: 0;
  padding: 0 12px 16px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-color: #9caab9 #f0f3f7;
}
.competition-season > li { min-width: 0; }
.competition-season > li + li { border-left: 1px solid var(--line); }
.competition-season a {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 128px;
  margin: 4px;
  padding: 10px 12px;
  border-radius: 6px;
  overflow-wrap: anywhere;
}
.competition-season a:hover { background: #f0f4f8; }
.competition-season .is-next a { background: #edf4fa; }
.competition-season a:focus-visible { outline-offset: -2px; }
.season-round-label { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; color: var(--muted); font-size: 12px; }
.season-round-label small { font-size: 12px; }
.competition-season .is-next .season-round-label { color: #075f9e; }
.competition-season a > strong { color: var(--ink); font-size: 16px; font-weight: 650; }
.competition-season .season-round-name { color: var(--muted); font-size: 12px; }
.competition-season time { margin-top: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Race preparation uses the actual entry response, not an inferred server status. */
.pilot-portal .pilot-next-copy.has-art { display: grid; grid-template-columns: minmax(0,1fr) 160px; align-items: center; gap: 0 20px; }
.pilot-next-heading { min-width: 0; overflow-wrap: anywhere; }
.pilot-next-art { min-width: 0; }
.pilot-next-art img { display: block; width: 100%; max-height: 112px; object-fit: cover; border-radius: 6px; }
.pilot-portal .pilot-next-copy.has-art:has(.pilot-next-art[hidden]) { grid-template-columns: minmax(0,1fr); }
.pilot-portal .pilot-next-copy.has-art .pilot-race-details { grid-column: 1 / -1; }
.pilot-race-readiness {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 16px;
  padding: 20px 0 0;
  margin: 4px 0 0;
  border-top: 1px solid #4d6075;
  list-style: none;
}
.pilot-race-readiness li { min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.pilot-race-readiness span { color: #c3d1e1; font-size: 12px; }
.pilot-race-readiness strong, .pilot-race-readiness a { color: #f4f8fd; font-size: 13px; font-weight: 600; line-height: 1.45; }
.pilot-race-readiness .is-complete strong { color: #c7efda; }
.pilot-race-readiness a { display: inline-flex; align-items: center; gap: 7px; width: fit-content; text-decoration: underline; text-underline-offset: 3px; }
.pilot-race-readiness a:hover { color: #fff; }
.pilot-race-readiness a svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

@media(max-width:1200px) {
  .pilot-portal .pilot-next-copy.has-art { grid-template-columns: minmax(0,1fr); }
  .pilot-next-art { display: none; }
}
@media(max-width:800px) {
  .competition-season-calendar { padding: 8px 20px 22px; }
  .competition-next, .competition-next:has(.competition-race-art:not([hidden])) { grid-template-columns: minmax(0,1fr) auto; gap: 16px; padding: 20px; }
  .competition-race-art { display: none; }
  .competition-season-heading { padding: 16px 20px 8px; }
  .competition-season { grid-auto-columns: minmax(188px,1fr); padding-inline: 8px; }
  .pilot-race-readiness { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 24px; }
}
@media(max-width:500px) {
  .competition-season-calendar { padding: 8px 16px 22px; }
  .competition-season-calendar .round-photo-grid { gap: 28px; }
  .competition-season-calendar .round-photo-card .button { min-height: 44px; }
  .competition-next, .competition-next:has(.competition-race-art:not([hidden])) { grid-template-columns: minmax(0,1fr); padding: 20px 16px; }
  .competition-next-copy h2 { font-size: 21px; }
  .competition-next > .button { width: fit-content; min-height: 44px; }
  .competition-next-facts { gap: 6px 14px; font-size: 13px; }
  .competition-season-heading { padding: 16px 16px 8px; }
  .competition-season-heading .text-button { min-height: 44px; }
  .competition-season a { min-height: 138px; }
  .pilot-race-readiness { gap: 16px; padding-top: 18px; }
  .pilot-race-readiness a { min-height: 44px; align-items: flex-start; }
  .pilot-race-readiness a svg { margin-top: 2px; flex-shrink: 0; }
}
.circuit-detail-photo,
.lmu-full-image.circuit-detail-photo {
  display: block;
  width: 100%;
  height: clamp(140px, 22vh, 200px);
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 24px;
}
.circuit-information dd,
.circuit-round-context dd { min-width: 0; overflow-wrap: anywhere; }
.circuit-sheet-map { margin-top: 24px; }
.circuit-sheet-map h3,
.circuit-round-context h3 { margin-bottom: 12px; }
.circuit-sheet-map .lmu-map { width: 100%; height: auto; max-height: 300px; }
.circuit-round-context { border-top: 1px solid var(--line); padding-top: 20px; margin-top: 24px; }
.circuit-sheet-toolbar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.circuit-reference { margin: 16px 0; color: var(--muted); font-size: 12px; }
.circuit-reference summary { cursor: pointer; padding: 8px 0; }
.circuit-reference .round-information { margin: 12px 0; }

