@charset "UTF-8";
/* HOC Ranking List — the public ranking (js/public-ranking.js).
   On the race schedule's public page's model (race-schedule/css/public.css), and like it ready to
   be embedded in the main site's pages: everything is under the root class .hrl, every class
   starts with hrl-, sizes are in px (not rem: the host may change the root size), and fonts,
   box-sizing, margins and table styles are set explicitly against the host's CSS.
   The site's / race schedule's navy palette (the user, 2026-11-10), not the admin pages' teal,
   as variables on .hrl only. Counted / not counted never by colour alone: ✓ or –, the text,
   and words for screen readers. */

.hrl {
  --hrl-navy: #0b1f5c;
  --hrl-navy-deep: #07143d;
  --hrl-blue: #1f5fbf;
  --hrl-sea: #e8f0fb;
  --hrl-sea-strong: #d3e2f7;
  --hrl-open-bg: #f1f6fd;
  --hrl-stripe: #f8fafd;
  --hrl-text: #1a2233;
  --hrl-muted: #5f6b80;
  --hrl-border: #d5dce8;
  --hrl-up: #116a3a;
  --hrl-down: #a3261b;
  --hrl-new: #8a5a00;
  --hrl-new-bg: #fff5da;
  --hrl-yes: #0f5c34;
  --hrl-yes-bg: #e3f4ea;
  --hrl-focus: #3b82f6;

  display: block;
  container: hrl / inline-size;   /* the card layout follows the ranking's own width */
  box-sizing: border-box;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.45;
  letter-spacing: normal;
  text-align: left;
  text-transform: none;
  color: var(--hrl-text);
  background: transparent;
}

.hrl *, .hrl *::before, .hrl *::after {
  box-sizing: border-box;
  font-family: inherit;
  letter-spacing: inherit;
  text-transform: none;
}

.hrl :focus { outline: none; }
.hrl :focus-visible { outline: 3px solid var(--hrl-focus); outline-offset: 2px; }

.hrl[aria-busy="true"] .hrl-body { opacity: .55; transition: opacity .2s .15s; }

.hrl .hrl-sr {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.hrl abbr[title] { text-decoration: none; cursor: help; }

/* ---- Head: title, period, links ---------------------------------------------------- */

.hrl .hrl-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px 16px;
  margin: 0 0 12px;
}

.hrl .hrl-title {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--hrl-navy);
  background: none;
}
.hrl .hrl-title-kind { white-space: nowrap; }

.hrl .hrl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--hrl-muted);
}
.hrl .hrl-meta strong { font-weight: 600; color: var(--hrl-text); }

.hrl .hrl-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }

/* The foot: the rules and the archive link, as plain links of touch height. */
.hrl .hrl-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0 24px;
  margin: 8px 0 0;
  font-size: 14px;
  color: var(--hrl-muted);
  text-align: center;
}
.hrl .hrl-foot-link {
  display: inline-block;
  padding: 10px 2px;
  font-weight: 600;
  color: var(--hrl-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ---- Buttons, tabs ------------------------------------------------------------------- */

.hrl .hrl-btn,
.hrl .hrl-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  width: auto;
  margin: 0;
  padding: 6px 14px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--hrl-navy);
  background: #fff;
  border: 1px solid var(--hrl-border);
  border-radius: 8px;
  box-shadow: none;
  text-shadow: none;
  text-decoration: none;
  cursor: pointer;
}
.hrl .hrl-btn:hover,
.hrl .hrl-tab:hover { background: var(--hrl-sea); border-color: var(--hrl-blue); }
.hrl .hrl-btn-link { font-size: 14px; }
.hrl .hrl-icon { width: 18px; height: 18px; fill: currentColor; flex: none; }

.hrl .hrl-tab[aria-pressed="true"] {
  color: #fff;
  background: var(--hrl-navy);
  border-color: var(--hrl-navy);
}

.hrl .hrl-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
}

.hrl .hrl-selectors {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 12px;
}

.hrl .hrl-districts { margin: 0 0 8px; }
.hrl .hrl-divisions { margin: 0 0 14px; }
.hrl .hrl-divisions .hrl-tab { font-weight: 500; }
.hrl .hrl-divisions .hrl-tab[aria-pressed="true"] { font-weight: 600; background: var(--hrl-blue); border-color: var(--hrl-blue); }

/* A button that reads as a link (a race in a card, another list of the yacht). */
.hrl .hrl-link {
  display: inline;
  margin: 0;
  padding: 0;
  font: inherit;
  font-weight: 600;
  line-height: inherit;
  text-align: left;
  color: var(--hrl-blue);
  background: none;
  border: 0;
  text-decoration: underline;
  text-decoration-color: rgba(31, 95, 191, .35);
  text-underline-offset: 2px;
  cursor: pointer;
}
.hrl .hrl-link:hover { text-decoration-color: currentColor; }

/* ---- Tools: search, views, link, print ------------------------------------------------ */

.hrl .hrl-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  margin: 0 0 16px;
  padding: 10px 12px;
  background: var(--hrl-sea);
  border: 1px solid var(--hrl-sea-strong);
  border-radius: 10px;
}

.hrl .hrl-search { display: flex; align-items: center; gap: 8px; flex: 1 1 320px; min-width: 0; }
.hrl .hrl-search-label { margin: 0; font-size: 14px; font-weight: 600; color: var(--hrl-navy); }
.hrl .hrl-combo { position: relative; flex: 1 1 auto; min-width: 0; max-width: 420px; }

.hrl .hrl-search-input {
  display: block;
  width: 100%;
  height: 40px;
  margin: 0;
  padding: 0 10px;
  font-size: 15px;
  line-height: 1.3;
  color: var(--hrl-text);
  background: #fff;
  border: 1px solid var(--hrl-border);
  border-radius: 8px;
  box-shadow: none;
}
.hrl .hrl-search-input::placeholder { color: var(--hrl-muted); opacity: 1; }
.hrl .hrl-search-input:focus-visible { outline: 2px solid var(--hrl-focus); outline-offset: 0; border-color: var(--hrl-focus); }

.hrl .hrl-found {
  position: absolute;
  z-index: 20;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  min-width: 260px;
  max-height: 340px;
  overflow-y: auto;
  margin: 0;
  padding: 4px 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--hrl-border);
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(11, 31, 92, .18);
}
.hrl .hrl-found[hidden] { display: none; }
.hrl .hrl-option,
.hrl .hrl-option-none {
  display: block;
  margin: 0;
  padding: 7px 10px;
  min-height: 40px;
  font-size: 14px;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.hrl .hrl-option-none { color: var(--hrl-muted); cursor: default; }
.hrl .hrl-option[aria-selected="true"],
.hrl .hrl-option:hover { background: var(--hrl-sea); }
.hrl .hrl-option-name { display: block; font-weight: 600; color: var(--hrl-navy); }
.hrl .hrl-option-detail { display: block; font-size: 12px; color: var(--hrl-muted); }

.hrl .hrl-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.hrl .hrl-status { flex: 1 1 100%; margin: 0; font-size: 14px; color: var(--hrl-navy); }
.hrl .hrl-status:empty { display: none; }
.hrl .hrl-copy {
  width: 100%; max-width: 560px; height: 36px; margin: 4px 0 0; padding: 0 8px;
  font-size: 13px; border: 1px solid var(--hrl-border); border-radius: 6px; background: #fff; color: var(--hrl-text);
}

/* ---- A list ---------------------------------------------------------------------------- */

.hrl .hrl-list { margin: 0 0 28px; padding: 0; }

.hrl .hrl-list-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 16px;
  margin: 0;
  padding: 8px 12px;
  color: #fff;
  background: linear-gradient(90deg, var(--hrl-navy-deep), var(--hrl-navy));
  border-radius: 8px 8px 0 0;
}
.hrl .hrl-list-name {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  background: none;
}
.hrl .hrl-list-meta { margin: 0; font-size: 13px; color: #d6e0f5; }
.hrl .hrl-list-meta span[title] { cursor: help; }
.hrl .hrl-club-back { margin-left: auto; min-height: 40px; padding: 4px 12px; font-size: 14px; }

.hrl .hrl-note {
  margin: 0;
  padding: 6px 12px;
  font-size: 13px;
  color: var(--hrl-muted);
  background: #fff;
  border: 1px solid var(--hrl-border);
  border-top: 0;
}

.hrl .hrl-club-list { margin: 14px 0 0; }
.hrl .hrl-sub-name {
  margin: 0;
  padding: 6px 12px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--hrl-navy);
  background: var(--hrl-sea-strong);
  border: 1px solid var(--hrl-border);
  border-radius: 8px 8px 0 0;
}
.hrl .hrl-sub-meta { font-size: 13px; font-weight: 400; color: var(--hrl-muted); }

/* ---- Tables ------------------------------------------------------------------------------ */

/* Just wider than the card breakpoint a table may still not fit: it scrolls in its box. */
.hrl .hrl-scroll { max-width: 100%; overflow-x: auto; }

.hrl .hrl-table {
  display: table;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border: 1px solid var(--hrl-border);
  border-top: 0;
  border-collapse: collapse;
  border-spacing: 0;
  table-layout: auto;
  font-size: 15px;
  background: #fff;
}

.hrl .hrl-table th,
.hrl .hrl-table td {
  margin: 0;
  padding: 4px 10px;
  border: 0;
  font-size: inherit;
  line-height: 1.4;
  text-align: left;
  vertical-align: middle;
  color: inherit;
  background: none;
}

.hrl .hrl-table th {
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--hrl-navy);
  background: var(--hrl-sea-strong);
  border-bottom: 1px solid var(--hrl-border);
  white-space: nowrap;
}

.hrl .hrl-table tbody.hrl-row { border-top: 1px solid var(--hrl-border); }
.hrl .hrl-table tbody.hrl-row:nth-of-type(even) > tr.hrl-main > td { background: var(--hrl-stripe); }
.hrl .hrl-table tbody.hrl-row > tr.hrl-main:hover > td { background: var(--hrl-sea); }
.hrl .hrl-table tbody.hrl-row.is-open > tr.hrl-main > td { background: var(--hrl-sea-strong); }

/* The ranking's columns. */
.hrl .hrl-table .hrl-c-rank { width: 56px; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--hrl-navy); }
.hrl .hrl-table .hrl-c-move { width: 58px; text-align: center; white-space: nowrap; }
.hrl .hrl-table .hrl-c-sail { white-space: nowrap; }
.hrl .hrl-table .hrl-c-type { min-width: 90px; }
.hrl .hrl-table .hrl-c-club { min-width: 140px; font-size: 14px; }
.hrl .hrl-table .hrl-c-pts,
.hrl .hrl-table .hrl-c-races { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hrl .hrl-table td.hrl-c-pts { font-weight: 700; }
.hrl .hrl-table th.hrl-c-rank, .hrl .hrl-table th.hrl-c-move { color: var(--hrl-navy); font-weight: 600; }

/* The yacht's (or race's) name: the whole cell is the button, 40px high. */
.hrl .hrl-yacht {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 0;
  padding: 8px 0;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  color: var(--hrl-navy);
  background: none;
  border: 0;
  cursor: pointer;
}
.hrl .hrl-yacht:hover { color: var(--hrl-blue); text-decoration: underline; }
.hrl .hrl-yacht[aria-expanded]::after {
  content: "▸";
  display: inline-block;
  margin-left: 6px;
  font-size: 12px;
  color: var(--hrl-muted);
}
.hrl .hrl-yacht[aria-expanded="true"]::after { content: "▾"; }

/* Movement: the symbol, a colour, and its words for screen readers. */
.hrl .hrl-move { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.hrl .hrl-move-up { color: var(--hrl-up); }
.hrl .hrl-move-down { color: var(--hrl-down); }
.hrl .hrl-move-same { color: var(--hrl-muted); }
.hrl .hrl-move-new {
  display: inline-block; padding: 0 7px; border-radius: 999px;
  font-size: 12px; color: var(--hrl-new); background: var(--hrl-new-bg);
}

/* Card-only bits, hidden in the tables. */
.hrl .hrl-unit, .hrl .hrl-label { display: none; }

/* ---- The card (a yacht's, or a race's) under its row --------------------------------- */

.hrl .hrl-table tr.hrl-card-row > td { padding: 0; background: var(--hrl-open-bg); }

.hrl .hrl-card {
  margin: 0;
  padding: 12px 14px 14px;
  border-left: 4px solid var(--hrl-navy);
}

.hrl .hrl-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.hrl .hrl-card-name { margin: 0; padding: 0; border: 0; font-size: 18px; font-weight: 700; line-height: 1.25; color: var(--hrl-navy); background: none; }
.hrl .hrl-card-sub { margin: 2px 0 0; font-size: 14px; color: var(--hrl-muted); }
.hrl .hrl-card-close { flex: none; min-width: 40px; justify-content: center; padding: 4px 10px; font-size: 20px; line-height: 1; }

.hrl .hrl-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin: 10px 0;
  padding: 0;
}
.hrl .hrl-facts > div { margin: 0; }
.hrl .hrl-facts dt { margin: 0; font-size: 12px; font-weight: 600; color: var(--hrl-muted); }
.hrl .hrl-facts dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--hrl-text); }

.hrl .hrl-also { margin: 0 0 10px; font-size: 14px; color: var(--hrl-muted); }

.hrl .hrl-results { font-size: 14px; border-top: 1px solid var(--hrl-border); }
.hrl .hrl-results td { padding-top: 5px; padding-bottom: 5px; vertical-align: top; }
.hrl .hrl-results tbody tr + tr td { border-top: 1px solid #e6ebf2; }
.hrl .hrl-results .hrl-r-date { white-space: nowrap; font-variant-numeric: tabular-nums; }
.hrl .hrl-results .hrl-r-race { min-width: 180px; }
.hrl .hrl-results .hrl-r-clubs { display: block; font-size: 12px; color: var(--hrl-muted); }
.hrl .hrl-results .hrl-r-dist,
.hrl .hrl-results .hrl-r-pos,
.hrl .hrl-results .hrl-r-factor,
.hrl .hrl-results .hrl-r-pts { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hrl .hrl-results .hrl-r-why { white-space: nowrap; }

/* Not counted: muted (as the legacy page's grey), its mark – and the words. */
.hrl .hrl-results tr.is-not td { color: var(--hrl-muted); }
.hrl .hrl-results tr.is-not .hrl-link { color: #4a5a78; font-weight: 500; }
.hrl .hrl-results tr.is-counted td.hrl-r-pts { font-weight: 700; }

.hrl .hrl-why { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 13px; line-height: 1.5; }
.hrl .hrl-why-mark { font-weight: 700; }
.hrl .hrl-why-yes { font-weight: 600; color: var(--hrl-yes); background: var(--hrl-yes-bg); }
.hrl .hrl-why-no { color: var(--hrl-muted); border: 1px dashed var(--hrl-border); }
.hrl .hrl-why[title] { cursor: help; }

.hrl .hrl-legend { margin: 10px 0 0; font-size: 13px; color: var(--hrl-muted); }
.hrl .hrl-legend summary {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 0;
  font-weight: 600;
  color: var(--hrl-navy);
  list-style: none;
  cursor: pointer;
}
/* A flex <summary> loses its disclosure triangle (a list-item marker): drawn again here. */
.hrl .hrl-legend summary::-webkit-details-marker { display: none; }
.hrl .hrl-legend summary::before { content: "\25B8"; margin-right: 6px; }
.hrl .hrl-legend[open] > summary::before { content: "\25BE"; }
.hrl .hrl-legend dl { margin: 4px 0 0; padding: 0; }
.hrl .hrl-legend dl > div { margin: 0 0 3px; }
.hrl .hrl-legend dt { display: inline; margin: 0; font-weight: 600; color: var(--hrl-text); }
.hrl .hrl-legend dt::after { content: ": "; }
.hrl .hrl-legend dd { display: inline; margin: 0; }

.hrl .hrl-card .hrl-note { border: 0; padding: 6px 0; background: none; }

/* Races. */
.hrl .hrl-races .hrl-g-date { width: 100px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hrl .hrl-races .hrl-g-name { min-width: 180px; }
.hrl .hrl-races .hrl-g-clubs { min-width: 140px; font-size: 14px; }
.hrl .hrl-races .hrl-g-starters,
.hrl .hrl-races .hrl-g-dist,
.hrl .hrl-races .hrl-g-factor { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hrl .hrl-race-results .hrl-r-pos { width: 60px; }

/* ---- Messages ------------------------------------------------------------------------------ */

.hrl .hrl-message {
  margin: 0;
  padding: 24px 16px;
  color: var(--hrl-muted);
  background: #fff;
  border: 1px solid var(--hrl-border);
  border-radius: 8px;
}
.hrl .hrl-message p { margin: 0 0 12px; font-size: 16px; }
.hrl .hrl-message p:last-child { margin: 0; }
.hrl .hrl-message-actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---- Narrow: every yacht (and race, and result) is a card ------------------------------
   By the width of the ranking itself (a container query), not of the window, so a narrow
   column of a host page gets cards too. The same markup: a yacht's <tbody> becomes a grid —
   position and movement on the left, the name over sail number and type, the club below,
   points and races on the right — and its open card under it; a result, a wrapped line of
   labelled values. The table elements keep their roles for screen readers. */

@media screen { @container hrl (max-width: 760px) {
  .hrl .hrl-title { font-size: 20px; }
  .hrl .hrl-head { align-items: flex-start; }
  .hrl .hrl-search { flex: 1 1 100%; }
  .hrl .hrl-combo { max-width: none; }
  .hrl .hrl-tab { padding: 6px 10px; font-size: 14px; }
  .hrl .hrl-list-head { border-radius: 8px; margin-bottom: 8px; }
  .hrl .hrl-note { border: 0; padding: 0 2px 8px; background: none; }
  .hrl .hrl-sub-name { border-radius: 8px; margin-bottom: 8px; }

  .hrl .hrl-table, .hrl .hrl-table tbody { display: block; border: 0; background: none; }
  .hrl .hrl-table thead {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
  }

  .hrl .hrl-table tbody.hrl-row {
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) auto;
    column-gap: 10px;
    margin: 0 0 8px;
    padding: 6px 10px 8px;
    border: 1px solid var(--hrl-border);
    border-radius: 8px;
    background: #fff;
  }
  .hrl .hrl-table tbody.hrl-row.is-open { border-color: var(--hrl-navy); }
  .hrl .hrl-table tbody.hrl-row > tr { display: contents; }
  .hrl .hrl-table tbody.hrl-row > tr > td,
  .hrl .hrl-table tbody.hrl-row:nth-of-type(even) > tr.hrl-main > td,
  .hrl .hrl-table tbody.hrl-row > tr.hrl-main:hover > td,
  .hrl .hrl-table tbody.hrl-row.is-open > tr.hrl-main > td {
    display: block;
    min-width: 0;
    width: auto;
    padding: 0;
    border: 0;
    background: none;
    text-align: left;
  }

  .hrl .hrl-ranking td.hrl-c-rank { grid-column: 1; grid-row: 1; padding-top: 8px; font-size: 20px; line-height: 1.2; text-align: center; }
  .hrl .hrl-ranking td.hrl-c-move { grid-column: 1; grid-row: 2 / span 2; text-align: center; }
  .hrl .hrl-ranking td.hrl-c-yacht { grid-column: 2; grid-row: 1; }
  .hrl .hrl-ranking td.hrl-c-sail { grid-column: 2; grid-row: 2; font-size: 14px; color: var(--hrl-muted); white-space: normal; }
  .hrl .hrl-ranking td.hrl-c-type { grid-column: 2; grid-row: 3; font-size: 14px; color: var(--hrl-muted); min-width: 0; }
  .hrl .hrl-ranking td.hrl-c-club { grid-column: 2 / -1; grid-row: 4; font-size: 14px; min-width: 0; }
  .hrl .hrl-ranking td.hrl-c-pts { grid-column: 3; grid-row: 1; padding-top: 8px; text-align: right; }
  .hrl .hrl-ranking td.hrl-c-races { grid-column: 3; grid-row: 2; font-size: 13px; color: var(--hrl-muted); text-align: right; }
  .hrl .hrl-ranking td.hrl-c-sail:empty, .hrl .hrl-ranking td.hrl-c-type:empty { display: none; }
  .hrl .hrl-table tr.hrl-card-row > td { grid-column: 1 / -1; margin: 8px -10px -8px; border-radius: 0 0 8px 8px; }
  .hrl .hrl-yacht { padding: 8px 0 2px; font-size: 16px; }

  .hrl .hrl-unit { display: inline; }
  .hrl .hrl-label { display: inline; color: var(--hrl-muted); font-weight: 400; }

  /* Races: name on top, then date, district, organisers, numbers. */
  .hrl .hrl-races tbody.hrl-row { grid-template-columns: minmax(0, 1fr) auto; }
  .hrl .hrl-races td.hrl-g-name { grid-column: 1 / -1; grid-row: 1; }
  .hrl .hrl-races td.hrl-g-date { grid-column: 1; grid-row: 2; font-size: 14px; }
  .hrl .hrl-races td.hrl-g-dstr { grid-column: 2; grid-row: 2; font-size: 14px; text-align: right; }
  .hrl .hrl-races td.hrl-g-clubs { grid-column: 1 / -1; grid-row: 3; font-size: 14px; color: var(--hrl-muted); min-width: 0; }
  .hrl .hrl-races td.hrl-g-starters { grid-column: 1; grid-row: 4; font-size: 13px; color: var(--hrl-muted); }
  .hrl .hrl-races td.hrl-g-dist { grid-column: 2; grid-row: 4; font-size: 13px; color: var(--hrl-muted); text-align: right; }
  .hrl .hrl-races td.hrl-g-factor { grid-column: 2; grid-row: 5; font-size: 13px; color: var(--hrl-muted); text-align: right; }

  /* Touch height for the link-like buttons of a card. */
  .hrl .hrl-card .hrl-link { display: inline-block; min-height: 40px; padding: 9px 0; line-height: 22px; }

  /* A result: a wrapped line of labelled values under the race. */
  .hrl .hrl-card { padding: 10px 10px 12px; border-left-width: 3px; }
  .hrl .hrl-results tbody { display: block; }
  .hrl .hrl-results tbody tr {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 12px;
    padding: 8px 0;
    border-top: 1px solid #e6ebf2;
  }
  .hrl .hrl-results tbody tr:first-child { border-top: 0; }
  .hrl .hrl-results tbody tr td,
  .hrl .hrl-results tbody tr + tr td { display: block; padding: 0; border: 0; text-align: left; min-width: 0; white-space: normal; }
  .hrl .hrl-results td.hrl-r-race { order: -1; flex: 1 1 100%; }
  .hrl .hrl-results td.hrl-r-why { flex: 1 1 100%; }
  .hrl .hrl-race-results td.hrl-r-pos { order: -2; font-weight: 700; }
  .hrl .hrl-race-results td.hrl-r-race { flex: 1 1 60%; }
}}

/* ---- Print: what is on screen — the list (with an open card), the races, or a club —
   without tools and tabs ------------------------------------------------------------------ */

@media print {
  .hrl { font-size: 10pt; color: #000; }
  .hrl .hrl-tools, .hrl .hrl-selectors, .hrl .hrl-links, .hrl .hrl-foot, .hrl .hrl-group,
  .hrl .hrl-card-close, .hrl .hrl-club-back { display: none; }
  .hrl .hrl-scroll { overflow: visible; }
  .hrl .hrl-title { font-size: 16pt; }
  .hrl .hrl-list-head {
    border-radius: 0;
    break-after: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hrl .hrl-list-name { font-size: 13pt; }
  .hrl .hrl-table { font-size: 9.5pt; }
  .hrl .hrl-table th, .hrl .hrl-table td { padding: 2pt 5pt; }
  .hrl .hrl-table th { font-size: 9pt; }
  .hrl .hrl-table tbody.hrl-row { break-inside: avoid; }
  .hrl .hrl-table tbody.hrl-row > tr.hrl-main > td { background: none; }
  .hrl .hrl-yacht { min-height: 0; padding: 0; color: #000; }
  .hrl .hrl-yacht::after { display: none; }
  .hrl .hrl-link { color: #000; text-decoration: none; }
  .hrl .hrl-legend:not([open]) { display: none; }
  .hrl .hrl-table th, .hrl .hrl-why, .hrl .hrl-move-new {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .hrl .hrl-c-club, .hrl .hrl-results .hrl-r-race, .hrl .hrl-races .hrl-g-name, .hrl .hrl-races .hrl-g-clubs { min-width: 0; }
}
