/*
  The public Results and Schedule pages (phase 4, P4.8). Loaded by those two pages after results.css
  (GamesPage css), so a rule here may rely on the badge, the score line, the round heading, the team
  filter and the presented-by band from results.css. Same rules as h1.css: square, nothing under 12px,
  no filter, no blur, 44px targets. Colors come from the --h1-* properties the surfaces set, so the same
  rules read on the night bands and on the paper band of the played list.
*/

/* ---------- The page head ---------- */

.h1-rl-top {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.h1-rl-title {
  margin: 0;
  font-family: var(--gzs-font-display);
  font-size: 56px;
  line-height: 0.9;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--h1-fg-strong);
  overflow-wrap: anywhere;
}

.h1-rl-intro {
  margin: 0;
}

/* ---------- A round: its heading, then its games ---------- */

.h1-rl-round {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.h1-rl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 12px;
}

.h1-rl-head .h1-res-round {
  flex: 1;
}

.h1-rl-next {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 8px;
  padding: 0 8px;
  background: var(--h1-solid-bg);
  color: var(--h1-solid-fg);
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.h1-rl-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* ---------- Results: a finished game as a row ---------- */

.h1-rl-item {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--h1-line);
}

.h1-rl-link {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  color: inherit;
  text-decoration: none;
}

.h1-rl-link-body,
.h1-rl-plain {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.h1-rl-live {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 0;
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h1-fg-strong);
}

.h1-rl-live-where {
  font-weight: 500;
  color: var(--h1-fg-2);
}

.h1-rl-backed {
  margin: 0;
  font-family: var(--gzs-font-body);
  font-size: 13px;
  line-height: 18px;
  color: var(--h1-fg-2);
}

.h1-rl-backed strong {
  font-weight: 600;
  color: var(--h1-fg-strong);
}

/* The latest result, set apart as a card. */
.h1-rl-feature {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  background: var(--h1-card-bg);
  border: 1px solid var(--h1-card-border);
}

.h1-rl-feature-tag {
  align-self: flex-start;
  margin: 0;
  padding: 3px 8px;
  background: var(--h1-solid-bg);
  color: var(--h1-solid-fg);
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.h1-rl-headline {
  margin: 0;
  font-family: var(--gzs-font-display);
  font-size: 20px;
  line-height: 23px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--h1-fg-strong);
}

/* ---------- Nothing to show yet ---------- */

.h1-rl-empty {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px 16px;
  border: var(--h1-empty-border);
  background: var(--h1-empty-bg);
}

.h1-rl-empty p {
  margin: 0;
}

/* ---------- Schedule: a game to come ---------- */

.h1-rl-fix {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--h1-line);
}

.h1-rl-time {
  flex: none;
  min-width: 72px;
  padding-top: 14px;
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--h1-fg-2);
}

.h1-rl-fix-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.h1-rl-teams {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 10px;
}

.h1-rl-team {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--h1-fg-strong);
  text-decoration: none;
}

.h1-rl-team-name {
  font-family: var(--gzs-font-display);
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

a.h1-rl-team:hover .h1-rl-team-name {
  text-decoration: underline;
}

.h1-rl-v {
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h1-fg-2);
}

.h1-rl-fix-sub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  font-family: var(--gzs-font-body);
  font-size: 14px;
  line-height: 20px;
  color: var(--h1-fg-2);
}

.h1-rl-status {
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h1-fg-strong);
}

/* Schedule: a game already played, with its Report link. */
.h1-rl-fix-played {
  align-items: center;
}

.h1-rl-fix-played .h1-rl-time {
  padding-top: 0;
}

.h1-rl-report {
  flex: none;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--h1-link);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

/* A game whose teams are still places on the ladder. */
.h1-rl-seed {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px;
  border: 2px solid var(--h1-outline);
}

.h1-rl-seed-tag {
  margin: 0;
  font-family: var(--gzs-font-mono);
  font-size: 12px;
  line-height: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--h1-fg-2);
}

.h1-rl-seed-title {
  margin: 0;
  font-family: var(--gzs-font-display);
  font-size: 40px;
  line-height: 0.92;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: uppercase;
  color: var(--h1-fg-strong);
}

.h1-rl-seed .h1-body {
  margin: 0;
}

/* ---------- The closing band ---------- */

.h1-rl-band {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.h1-rl-band .h1-res-presented {
  align-self: stretch;
  padding-left: 0;
  padding-right: 0;
}

.h1-rl-band .h1-body {
  margin: 0;
}

.h1-rl-band-text {
  margin: 0;
}

/* From 1024px the bands stay full width and the words sit in a 760px column. The compound selector beats
   .h1-band, which loads after this file. */
@media (min-width: 1024px) {
  .h1-band.h1-rl-top,
  .h1-band.h1-rl-played,
  .h1-band.h1-rl-band {
    padding-left: max(var(--gzs-gutter-public), calc((100% - 760px) / 2));
    padding-right: max(var(--gzs-gutter-public), calc((100% - 760px) / 2));
  }

  .h1-rl-title {
    font-size: 72px;
  }
}
