/* The pieces the front page, the event pages and the guide share: event cards
   and rows, score chips, the suit picker, the event page's own layout and the
   guide. The front page's layout itself is home.css.

   Reads only the tokens in theme.css, like style.css. */

/* ---------- Hero ---------- */

.ov-hero { padding-bottom: 0.6rem; }
.ov-hero .title { white-space: normal; }
.ov-tagline {
  margin: 0.35rem 0 0;
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-strong);
}
.ov-intro { margin: 0.35rem 0 0; color: var(--muted); max-width: 46rem; }

/* The overview is wider than an event page: it has a column beside the lists. */
.overview-page { --column: 1100px; }
.ov-main { max-width: var(--column); margin: 0 auto; }

/* ---------- Sections ---------- */

.ov-section { margin: 1.4rem 0 1rem; }
.ov-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.1rem 1rem;
  margin: 0 0.15rem 0.6rem;
}
.ov-section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 650;
  color: var(--text-strong);
}
.card-note { margin: 0; font-size: 0.84rem; color: var(--muted); }
.ov-empty { margin: 0; color: var(--muted); }

/* ---------- Badges, chips ---------- */

.ov-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.25rem; }
.ov-badge {
  display: inline-block;
  padding: 0.08rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--surface-2);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ov-badge.is-sample {
  border-style: dashed;
  color: var(--notice);
  border-color: color-mix(in srgb, var(--notice) 55%, transparent);
  background: transparent;
  margin-left: 0.4rem;
}
.ov-badges .ov-badge.is-sample { margin-left: 0; }
/* A sample standing in the coming days: dotted, in the accent, never "live". */
.ov-badge.is-preview {
  border-style: dotted;
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  background: transparent;
}

.ov-score {
  display: inline-flex;
  align-items: baseline;
  gap: 0.3rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--c);
  color: var(--c-ink);
  font-weight: 700;
  font-size: 0.85rem;
  white-space: nowrap;
}
.ov-score b { font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.ov-score.is-empty { background: var(--surface-2); color: var(--muted); }

.ov-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.9rem;
  margin: 0.15rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.ov-tbc { font-style: italic; }
.ov-via { color: var(--muted); }

.ov-status { margin: 0.5rem 0 0; font-size: 0.86rem; font-weight: 600; color: var(--muted); }
.ov-status.status-live { color: var(--good-text); }
.ov-status.status-locked::before,
.ov-status.status-longrange::before {
  content: '';
  display: inline-block;
  width: 0.65rem;
  height: 0.65rem;
  margin-right: 0.4rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  vertical-align: -0.05rem;
}
.ov-status.status-longrange::before { border-style: dashed; }

/* ---------- Eyebrow and actions ---------- */

.ov-eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--eyebrow);
}

.ov-actions { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; margin: 0.7rem 0 0; }
.ov-go {
  position: relative;
  z-index: 2;
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
}
.ov-go:hover { filter: brightness(1.08); }
.ov-site { position: relative; z-index: 2; font-weight: 700; font-size: 0.9rem; }

/* ---------- Conventions ---------- */

.ov-logo { width: 3.4rem; height: 3.4rem; border-radius: 12px; object-fit: contain; background: var(--surface-2); }
.ov-row-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 650;
  line-height: 1.25;
}
.ov-row-title a { color: var(--text-strong); text-decoration: none; }
.ov-row-title a:hover { text-decoration: underline; }

/* The whole card opens the event; the website link sits above that. */
.ov-row { position: relative; }
.ov-stretch::after { content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.ov-stretch:focus-visible { outline: none; }
.ov-row:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }


.ov-days {
  display: flex;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: thin;
}
.ov-day { flex: 0 0 auto; display: grid; justify-items: center; gap: 0.15rem; min-width: 3rem; }
.ov-day-name { font-size: 0.74rem; font-weight: 700; color: var(--muted); }
.ov-day-box {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 2.1rem;
  border-radius: 8px;
  background: var(--c, var(--surface-2));
  color: var(--c-ink, var(--muted));
  font-weight: 800;
  font-size: 0.9rem;
  font-variant-numeric: tabular-nums;
}
.ov-day-box.is-longrange {
  background: transparent;
  border: 1.5px dashed var(--glass-edge);
  color: var(--muted);
}
/* A day that is over: a plain grey box, the same size as the rest. */
.ov-day-box.is-past { background: color-mix(in srgb, var(--muted) 26%, var(--surface-2)); color: transparent; }
/* Travel days are context: smaller boxes, the colour left as it is. */
.ov-day.role-arrival .ov-day-box, .ov-day.role-departure .ov-day-box {
  width: 2.5rem;
  height: 1.7rem;
  margin-top: 0.2rem;
  font-size: 0.8rem;
}

/* ---------- Events: one row each ---------- */

/* icon | name, when and where | the days | website. On a phone the days move
   under the name. */
.ov-events { padding: 0.25rem 0.35rem; display: grid; }
.ov-row {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr) auto auto;
  gap: 0.35rem 0.8rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: var(--radius-small);
  transition: background-color 160ms ease;
}
/* The rows are parted by an inset line, not a border, so a row lit by the
   pointer stays rounded; the lines either side of it step back. */
.ov-row + .ov-row::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0.6rem;
  right: 0.6rem;
  height: 1px;
  background: var(--glass-edge);
  transition: opacity 160ms ease;
}
.ov-row:hover { background: color-mix(in srgb, #fff 4%, transparent); }
.ov-row:hover::before, .ov-row:hover + .ov-row::before,
.ov-row.is-lit::before, .ov-row.is-lit + .ov-row::before { opacity: 0; }

/* The icon is a link to the forecast too; above the row's own link. */
.ov-row-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 10px;
  background: var(--surface-2);
  text-decoration: none;
  overflow: hidden;
}
.ov-row-icon img { width: 100%; height: 100%; object-fit: contain; }
.ov-row-icon.is-date { line-height: 1.05; align-content: center; gap: 0.05rem; }
.ov-row-icon.is-date b { font-size: 1.05rem; color: var(--text-strong); }
.ov-row-icon.is-date span { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: var(--muted); }

.ov-row-title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.2rem 0.45rem;
  margin: 0;
  font-size: 1rem;
}
.ov-row-title .ov-badges { margin: 0; }
.ov-row .ov-meta { margin-top: 0.1rem; font-size: 0.82rem; }
.ov-row-weather { display: flex; justify-content: flex-end; }
.ov-row-weather .ov-status { margin: 0; font-size: 0.8rem; text-align: right; }

/* In a row the days are small: name, box, rain, nothing else. */
.ov-row .ov-day { min-width: 2.4rem; gap: 0.1rem; }
.ov-row .ov-day-box { width: 2.4rem; height: 1.6rem; font-size: 0.78rem; border-radius: 6px; }
.ov-row .ov-day.role-arrival .ov-day-box,
.ov-row .ov-day.role-departure .ov-day-box { width: 2.4rem; height: 1.6rem; margin-top: 0; opacity: 0.72; }
.ov-day-name { line-height: 1.1; }
.ov-row .ov-day-name { font-size: 0.66rem; }
.ov-day-rain { font-size: 0.66rem; line-height: 1.1; color: var(--muted); min-height: 0.75rem; font-variant-numeric: tabular-nums; }
.ov-day-rain.is-wet { color: var(--text); font-weight: 700; }

.ov-site-icon {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 50%;
  border: 1px solid var(--glass-edge);
  text-decoration: none;
}
@media (max-width: 720px) {
  .ov-row { grid-template-columns: 2.6rem minmax(0, 1fr) auto; }
  .ov-row-weather { grid-column: 1 / -1; justify-content: flex-start; padding-left: 3.4rem; }
  .ov-row .ov-site-icon { grid-row: 1; grid-column: 3; }
}

.ov-legend { justify-content: center; margin: 1rem 0 0; }

/* ---------- Tips ---------- */

.tips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  margin: 1.2rem 0 0.4rem;
}
.tips p { margin: 0.15rem 0; max-width: 38rem; }
.tips-heading { font-weight: 700; color: var(--text-strong); }
.tips-button {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.tips-button:hover { background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* ---------- Suit picker ---------- */

.suit-presets { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.suit-presets button,
.suit-customise {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--glass-edge);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}
.suit-presets button:hover { border-color: var(--accent); }
.suit-presets button.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.suit-presets button:disabled { cursor: default; }
.suit-customise { background: transparent; color: var(--link); margin-top: 0.5rem; }
.suit-picker.is-compact { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.8rem; }
.suit-picker.is-compact .suit-customise { margin: 0; }
.suit-picker.is-compact .suit-body { flex-basis: 100%; }

.suit-body {
  display: grid;
  grid-template-columns: minmax(9rem, 13rem) 1fr;
  gap: 1rem 1.4rem;
  align-items: center;
  margin-top: 0.9rem;
}
.suit-figure { max-width: 13rem; }
.suit-art { display: block; width: 100%; height: auto; overflow: visible; }

/* The drawing's own colours never show: off is an outline, on is painted in. */
.suit-art [data-part] { cursor: pointer; pointer-events: all; outline: none; }
.suit-art [data-part] * {
  fill: transparent;
  stroke: var(--muted);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-linecap: round;
  transition: fill 140ms ease, stroke 140ms ease;
}
.suit-art [data-part]:hover * { stroke: var(--text-strong); }
.suit-art [data-part]:focus-visible * { stroke: var(--accent); stroke-width: 2.4; }
.suit-art [data-part].is-on * { fill: color-mix(in srgb, var(--accent) 78%, var(--card-solid)); stroke: var(--text-strong); }
.suit-art [data-part] .line,
.suit-art [data-part].is-on .line { fill: none; stroke: var(--card-solid); pointer-events: none; }
.suit-art [data-part]:not(.is-on) .line { stroke: var(--muted); opacity: 0.6; }
.suit-art .decor { fill: none; stroke: var(--muted); pointer-events: none; }
.suit-art title { pointer-events: none; }

.suit-hint { margin: 0 0 0.5rem; font-size: 0.86rem; color: var(--muted); }
.suit-parts { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.35rem; }
.suit-parts label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-weight: 600;
}
.suit-parts input { width: 1.05rem; height: 1.05rem; }

@media (max-width: 520px) {
  .suit-body { grid-template-columns: 8.5rem 1fr; gap: 0.8rem; }
}

/* ---------- Event pages ----------
   Minimal (2026-11-17), in the direction of the info display: the name, one
   line of when and where, who the scores are for, then the weather. Every
   explanation is one tap away (the guide, "Why this score?", "About"). */

/* The logo beside the name; one line of when, where and the website under it. */
.ev-title-row { display: flex; align-items: center; gap: 0.8rem; min-width: 0; }
.ev-title-row .title { flex: 1; min-width: 0; }
.ev-logo-link { display: block; flex: none; width: clamp(2.6rem, 6vw, 3.4rem); border-radius: 12px; overflow: hidden; }
.ev-logo-link[hidden] { display: none; }
.ev-logo-link .ov-logo { display: block; width: 100%; height: auto; aspect-ratio: 1; }
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem 1.1rem;
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}
.ev-meta > [hidden] { display: none; }
.ev-meta .ev-when { margin: 0; font-weight: 700; color: var(--text); }
.ev-meta .place { margin: 0; font-size: inherit; letter-spacing: 0; text-transform: none; font-weight: 600; }
.ev-meta .ov-badges { margin: 0; }
.ev-site { font-weight: 700; color: var(--link); text-decoration: none; }
.ev-site:hover { text-decoration: underline; }

/* Who the scores are for: the three choices in a bar, like the board's. */
.suit-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.8rem; margin: 0 0 1rem; }
.suit-bar[hidden] { display: none; }
.suit-bar-k { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.suit-bar .suit-picker { display: contents; }
/* One segmented control, like the language switch; "Customise" a quiet word
   beside it. */
.suit-bar .suit-presets {
  display: inline-flex;
  flex-wrap: nowrap;
  gap: 0;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  overflow: hidden;
  background: color-mix(in srgb, var(--surface-2) 60%, transparent);
}
.suit-bar .suit-presets button { border: 0; border-radius: 0; background: none; padding: 0.38rem 0.85rem; font-size: 0.86rem; }
.suit-bar .suit-presets button.active { background: var(--accent); color: var(--accent-ink); }
.suit-bar .suit-customise {
  padding: 0.2rem 0.1rem;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 0.82rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.suit-bar .suit-customise:hover { color: var(--text); }
.suit-bar .suit-body { flex-basis: 100%; margin-top: 0.4rem; }

/* The partner's own words, closed until asked for. */
.ev-about > summary { cursor: pointer; font-weight: 700; color: var(--text); }
.ev-about[open] > summary { margin-bottom: 0.6rem; }
.ev-blurb { margin: 0; color: var(--muted); }
.ev-blurb[hidden] { display: none; }
.ev-links { margin-top: 0.75rem; }
.ev-links[hidden] { display: none; }

/* The hour on show, like the info display: the weather and the temperature
   large on the left, six readings in a grid on the right, units set smaller. */
.fsi-cond .conditions {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 2fr);
  align-items: center;
  gap: 1rem 1.6rem;
}
.cond-lead {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: 'icon temp' 'icon text' 'icon when';
  align-items: center;
  gap: 0 0.8rem;
}
/* Measured at / forecast for, on the plain ground of the readings box. */
.cond-lead .source { grid-area: when; justify-self: start; margin-top: 0.5rem; color: var(--text); }
.cond-lead .source.is-measured { background: color-mix(in srgb, var(--text) 10%, transparent); }
.cond-icon { grid-area: icon; font-size: 3.2rem; line-height: 1; }
.cond-temp { grid-area: temp; font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--text-strong); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cond-temp .unit { margin-left: 0.15rem; font-size: 0.45em; vertical-align: 0.95em; color: var(--muted); }
.cond-text { grid-area: text; margin-top: 0.25rem; font-weight: 700; color: var(--text); }
.cond-grid {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem 1rem;
  padding-left: 1.6rem;
  border-left: 1px solid var(--glass-edge);
}
.cond-grid dt {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-hyphens: manual;
  hyphens: manual;
}
.cond-grid dd { margin: 0.15rem 0 0; color: var(--text-strong); white-space: nowrap; font-variant-numeric: tabular-nums; }
.cond-grid .num { font-size: 1.45rem; font-weight: 700; }
.cond-grid .unit { margin-left: 0.25rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
.cond-grid small { margin-left: 0.35rem; font-size: 0.78rem; font-weight: 700; color: var(--muted); }
/* A second line under the value (the chance of rain), kept even when empty
   so "now" and a picked hour are the same height. */
.cond-grid small.below { display: block; margin: 0.1rem 0 0; min-height: 1.1em; white-space: nowrap; }
@media (max-width: 640px) {
  .fsi-cond .conditions { grid-template-columns: 1fr; }
  .cond-grid { padding: 0.9rem 0 0; border-left: 0; border-top: 1px solid var(--glass-edge); }
}

/* A sample standing in the coming days: one dotted line above the cards. */
.ev-preview {
  margin: 0 0 1rem;
  padding: 0.55rem 0.9rem;
  border: 1.5px dotted color-mix(in srgb, var(--accent) 60%, transparent);
  border-radius: var(--radius-small, 12px);
  color: var(--text);
  font-size: 0.9rem;
}
.ev-preview[hidden] { display: none; }

.ev-status h2 { margin: 0 0 0.35rem; }
.ev-status p { margin: 0.2rem 0 0; color: var(--muted); }
.ev-status[data-status='longrange'] { border-style: dashed; }
.ev-status-dates:empty { display: none; }

.ev-lr-days { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.ev-lr-day {
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  border: 1.5px dashed var(--glass-edge);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}
.ev-longrange { margin: 0.8rem 0 0; font-size: 0.86rem; color: var(--muted); }
.ev-longrange b { color: var(--text); }


/* Travel days are context, not the event: a little quieter. */
.day.role-arrival .day-row, .day.role-departure .day-row { opacity: 0.72; }
.day.role-arrival.is-open .day-row, .day.role-departure.is-open .day-row { opacity: 1; }

/* "Why this score?" -- the breakdown, folded away until asked for. */
.fsi-card .why { margin-top: 0.8rem; }
.fsi-card .why > summary {
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 800;
  color: var(--ink, var(--text));
  opacity: 0.85;
}
.fsi-card .why[open] > summary { margin-bottom: 0.6rem; }


/* ---------- What to bring ---------- */

.bring { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.45rem; margin: 0.75rem 0 0; }
.bring-k { margin-right: 0.2rem; font-size: 0.8rem; font-weight: 700; color: var(--muted); }
.bring-item {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--glass-edge);
  font-size: 0.82rem;
  font-weight: 600;
}
.bring-item.is-none { color: var(--muted); font-weight: 500; }
.bring-when { color: var(--muted); font-weight: 500; }
.bring-when:empty { display: none; }

/* ---------- Map ---------- */

.ov-map { height: 17rem; border-radius: var(--radius-small); border: 1px solid var(--glass-edge); background: var(--map-bg); }
.ov-pop { display: grid; gap: 0.25rem; font: 0.85rem/1.35 var(--font-body); }
.ov-pop a { color: #1d4ed8; }
.ov-pop .ov-score { justify-self: start; }
.ov-pop .ov-status { margin: 0; color: #4b5563; }

/* ---------- Weather guide ---------- */

.guide-page .site-header .title { white-space: normal; }
.guide-main { max-width: var(--column); margin: 0 auto; }
.guide-toc { display: flex; flex-wrap: wrap; gap: 0.3rem 1.1rem; font-weight: 700; font-size: 0.9rem; }
.guide .card h2 { margin-bottom: 0.6rem; }
.guide .card p { margin: 0.5rem 0 0; }
.guide-dl { margin: 0; display: grid; gap: 0.8rem; }
.guide-dl dt { font-weight: 700; color: var(--text-strong); }
.guide-dl dt span { margin-left: 0.4rem; font-weight: 600; font-size: 0.8rem; color: var(--muted); }
.guide-dl dd { margin: 0.15rem 0 0; color: var(--text); }
/* Term on the left, meaning on the right; stacked on phones. */
.guide-kv { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 0.75rem 1.4rem; }
.guide-kv dt { font-weight: 700; color: var(--text-strong); }
.guide-kv dd { margin: 0; color: var(--text); }
.guide-kv dt span { display: block; font-size: 0.8rem; font-weight: 600; color: var(--muted); }
@media (max-width: 560px) {
  .guide-kv { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .guide-kv dd { margin-bottom: 0.65rem; }
}
.guide-note { padding: 0.6rem 0.8rem; border-radius: var(--radius-small); background: var(--surface-2); font-size: 0.92rem; }
.guide-list { margin: 0.6rem 0 0; padding-left: 1.2rem; display: grid; gap: 0.4rem; }
/* /attributions: name | what it is used for, licence (static/attributions.js). */
.attr-list { margin: 0; display: grid; grid-template-columns: minmax(12rem, 22rem) minmax(0, 1fr); gap: 0.7rem 1.4rem; }
.attr-list dt { font-weight: 700; color: var(--text-strong); }
.attr-list dd { margin: 0; display: flex; flex-wrap: wrap; gap: 0.2rem 0.7rem; align-items: baseline; }
.attr-licence { font-size: 0.82rem; color: var(--muted); white-space: nowrap; }
.attr-licence a { color: inherit; }
.attr-loading { color: var(--muted); }
#attr-groups { display: grid; gap: 1rem; margin-top: 1rem; }
@media (max-width: 640px) {
  .attr-list { grid-template-columns: minmax(0, 1fr); gap: 0.15rem; }
  .attr-list dd { margin-bottom: 0.65rem; }
}
.guide-table { margin-top: 0.2rem; }
.guide-levels { list-style: none; margin: 0.7rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.guide-levels li { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.guide-levels .wbadge { min-width: 7.5rem; justify-content: center; }
.guide-bandlist { list-style: none; margin: 0.8rem 0 0.4rem; padding: 0; display: grid; gap: 0.4rem; }
.guide-bandlist li {
  display: grid;
  grid-template-columns: 5.6rem 7rem 1fr;
  gap: 0.7rem;
  align-items: center;
}
.guide-band {
  display: grid;
  place-items: center;
  padding: 0.25rem 0;
  border-radius: 8px;
  background: var(--c);
  color: var(--c-ink);
  font-weight: 800;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.guide-bandlist span:last-child { color: var(--muted); font-size: 0.9rem; }
@media (max-width: 560px) {
  .guide-bandlist li { grid-template-columns: 5rem 1fr; }
  .guide-bandlist span:last-child { grid-column: 1 / -1; }
}


/* ---------- Event page: one column on a phone, two on a wide screen ---------- */

/* The cards sit in two wrappers (side, main) in the markup. Narrow, the
   wrappers step aside and the cards fall into one column in this order. */
.ev-cols { display: flex; flex-direction: column; }
.ev-col { display: contents; }
#event-status { order: 1; }
#fsi-card { order: 2; }
#forecast-card { order: 4; }
#days-card { order: 5; }
#ev-about { order: 6; }
#egg { order: 7; }

/* Before the event: the days alone, one calm column. */
.event-page { --column: 960px; }
.event-page .site-header { padding-bottom: 0.9rem; }

/* While it is on, on a wide screen: like the board lying on its side, the
   index and right now on the left, the next hours and the days on the right. */
@media (min-width: 1180px) {
  .event-page:has(.ev-cols.is-live) { --column: 1360px; }
  .ev-cols.is-live {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 0 1.2rem;
    align-items: start;
  }
  .ev-cols.is-live .ev-col { display: block; }
  /* The title can be bigger with the room. */
  .event-page .title { font-size: clamp(1.6rem, 3.2vw, 3rem); }
  /* The side column is narrower: the readings under the weather. It stays
     in view while the days scroll by, so a bar picked down there shows
     beside it. */
  .ev-col-side .fsi-cond .conditions { grid-template-columns: 1fr; }
  .ev-col-side .cond-grid { padding: 0.9rem 0 0; border-left: 0; border-top: 1px solid var(--glass-edge); }
  .ev-cols.is-live .ev-col-side { position: sticky; top: 4.2rem; } /* top: fitSideColumn() */
}

/* ======================================================================
   The event page, round 10 (2026-11-24): Forecast and Crystal ball as
   tabs, a grey one when it has nothing; the outfit row with its own
   Customise button. A/B on the test site (static/ab.js, "Event page").
   ====================================================================== */
.ev-tabs a { display: inline-grid; justify-items: center; line-height: 1.15; }
.ev-tabs .tab-sub { display: none; font-size: 0.7rem; font-weight: 700; opacity: 0.75; }
.ev-tabs a.is-off { opacity: 0.45; cursor: not-allowed; filter: grayscale(1); }
.ev-tabs a.is-off:hover { background: none; color: var(--muted); }
.ev-tabs a[data-page-link='crystal'].active { background: linear-gradient(135deg, #7c3aed, #a855f7); color: #fff; }

  width: 100%;
  padding: 0;
  gap: 0.2rem;
  border-radius: 0;
  background: none;
  border-bottom: 2px solid var(--glass-edge);
}



/* The outfit: presets, then "Customise" as a button of its own. */
.suit-bar { align-items: center; }
.suit-outfit-btn { display: inline-flex; align-items: center; gap: 0.4rem; }
.outfit-icon { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body[data-page='radar'] .suit-bar, body[data-page='maps'] .suit-bar,
body[data-page='radar'] .suit-body, body[data-page='maps'] .suit-body { display: none; }
.suit-bar.is-in-header { margin: 0.8rem 0 0; }
@media (min-width: 900px) {
  .ev-header { position: relative; }
  .suit-bar.is-in-header { position: absolute; right: 0; top: 1.6rem; margin: 0; }
}
.ev-to-crystal { margin-left: 0.5rem; }
.suit-outfit-btn, .suit-outfit-btn:hover { text-decoration: none; }
.suit-outfit-btn .suit-customise-label { text-decoration: none; font-weight: 800; }
.suit-bar .suit-customise.suit-outfit-btn { text-decoration: none; color: var(--text-strong); }

/* Settled 2026-11-24: the tabs and, right of them, who the scores are for
   (no "Scored for" any more) and Customise, on one row under the name. */
.ev-tabrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.6rem 1rem; margin-top: 1rem; }
.ev-tabrow .site-nav.ev-tabs { margin: 0; }
.ev-tabrow .suit-bar { margin: 0; flex-wrap: nowrap; gap: 0.5rem; }
.ev-tabrow .suit-bar-k { display: none; }
.ev-tabs .tab-sub { display: none !important; }
/* Customise sits like the presets beside it: the same height and pill, no slab. */
.suit-bar .suit-customise.suit-outfit-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.3rem;
  margin: 0;
  padding: 0 0.95rem;
  border: 1px solid var(--glass-edge);
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: none;
  transform: none;
  font-size: 0.88rem;
  font-weight: 800;
}
.suit-bar .suit-customise.suit-outfit-btn:hover { border-color: var(--accent); }
.suit-bar .suit-customise.suit-outfit-btn[aria-expanded='true'] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
@media (max-width: 760px) {
  .ev-tabrow { justify-content: flex-start; }
}
.ev-tabrow .suit-presets button { white-space: nowrap; }
@media (max-width: 420px) {
  .ev-tabrow .suit-presets button { padding-inline: 0.6rem; }
  .suit-bar .suit-customise.suit-outfit-btn { padding: 0 0.7rem; }
}

/* The description of the site (2026-11-28): two parts, their headings
   between the cards; the contents grouped the same way; commands as blocks. */
.guide-toc-head { flex-basis: 100%; margin: 0.3rem 0 -0.1rem; font-size: 0.74rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.guide-toc-head:first-child { margin-top: 0; }
.guide-part { margin: 2.2rem 0 0.2rem; padding-left: 0.2rem; font-size: 1.35rem; color: var(--text-strong); }
.guide .card h3 { margin: 1.1rem 0 0.2rem; font-size: 1rem; color: var(--text-strong); }
.guide .card code { font: 0.86em var(--font-mono); overflow-wrap: anywhere; }
.guide-code {
  margin: 0.5rem 0 0;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-small);
  background: var(--inset);
  border: 1px solid var(--glass-edge);
  font: 0.84rem/1.55 var(--font-mono);
  color: var(--text-strong);
  overflow-x: auto;
  white-space: pre;
}
.guide .card .guide-code code { font: inherit; overflow-wrap: normal; }
.guide ol.guide-list { padding-left: 1.4rem; }
.guide-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.4rem; font-weight: 700; }
