/* Redesign layer (branch `redesign`, stage 1).
 *
 * Portal only: linked from layouts/base.njk after main.css. It lives outside
 * src/assets/css on purpose: that folder is also copied into the newdeals
 * build, this one is not.
 *
 * Everything here is scoped to `.rd` (tokens) and `rd-` classes (elements),
 * so a page that does not opt in renders exactly as before. Colours are the
 * main.css palette; no new hues. */

.rd {
  --rd-bg: var(--bg);
  --rd-panel: var(--bg2);
  --rd-panel-2: var(--surface);
  --rd-line: var(--border);
  --rd-line-strong: var(--border2);
  --rd-accent: var(--accent);
  --rd-accent-hi: var(--accent-light);
  --rd-accent-soft: var(--accent-pale);
  --rd-accent-deep: var(--accent-dim);
  --rd-on-accent: #000;
  --rd-text: var(--text);
  --rd-muted: var(--muted);
  --rd-muted-2: var(--muted2);
  --rd-radius: 5px;
  --rd-gutter: 16px;
  --rd-focus: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent-light);
  --rd-font-display: 'Cormorant Garamond', serif;
  --rd-font-ui: 'Syne', 'Manrope', sans-serif;
  --rd-font-text: 'Manrope', 'Syne', sans-serif;
  background: var(--rd-bg);
  color: var(--rd-text);
}

/* Heading typeface switch for the font comparison (owner picks by eye). */
.rd-type-a { --rd-font-display: 'Cormorant Garamond', serif; }
.rd-type-b { --rd-font-display: 'Syne', 'Manrope', sans-serif; }

/* --- Layout ------------------------------------------------------------ */

.rd-container {
  width: 100%;
  max-width: calc(1180px + 2 * var(--rd-gutter));
  margin: 0 auto;
  padding: 0 var(--rd-gutter);
}
@media (min-width: 768px) {
  .rd { --rd-gutter: 24px; }
}

/* main.css pads every <section> 80px 48px; rd blocks set their own. */
.rd-block { padding: 32px 0; }
.rd-stack > * + * { margin-top: 16px; }

/* --- Type -------------------------------------------------------------- */

.rd-h1 {
  font-family: var(--rd-font-display);
  font-size: clamp(34px, 9vw, 56px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
  margin: 0;
}
.rd-h1 em { font-style: normal; color: var(--rd-accent); }
.rd-h3 {
  font-family: var(--rd-font-display);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.15;
  margin: 0;
}
.rd-type-b .rd-h1 { font-size: clamp(30px, 8vw, 50px); }
.rd-type-b .rd-h3 { font-size: 21px; }

.rd-section-title {
  font-family: var(--rd-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--rd-muted);
  margin: 0 0 12px;
}
.rd-note {
  font-family: var(--rd-font-ui);
  font-size: 11px;
  letter-spacing: 0.6px;
  color: var(--rd-muted);
  line-height: 1.4;
}
.rd-sub { font-size: 14px; color: var(--rd-muted-2); line-height: 1.5; }

/* --- Panel ------------------------------------------------------------- */

.rd-panel {
  background: var(--rd-panel);
  border: 1px solid var(--rd-line);
  border-radius: var(--rd-radius);
  padding: 20px;
  min-width: 0;
}
.rd-panel > * + * { margin-top: 14px; }
a.rd-panel { display: block; transition: border-color 0.2s, background-color 0.2s; }
a.rd-panel:hover { border-color: var(--rd-line-strong); background: var(--rd-panel-2); }
a.rd-panel:focus-visible { outline: none; box-shadow: var(--rd-focus); }

/* --- Buttons ----------------------------------------------------------- */

.rd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--rd-radius);
  font-family: var(--rd-font-ui);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}
.rd-btn:focus-visible { outline: none; box-shadow: var(--rd-focus); }
.rd-btn--primary { background: var(--rd-accent); color: var(--rd-on-accent); }
.rd-btn--primary:hover { background: var(--rd-accent-hi); }
.rd-btn--outline { background: transparent; color: var(--rd-text); border-color: var(--rd-line-strong); }
.rd-btn--outline:hover { border-color: var(--rd-accent); color: var(--rd-accent); }
.rd-btn--block { display: flex; width: 100%; }
.rd-btn--compact { min-height: 34px; padding: 0 12px; font-size: 11px; }

/* --- Badge, chip ------------------------------------------------------- */

.rd-badge {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--rd-line-strong);
  border-radius: 3px;
  font-family: var(--rd-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--rd-accent);
  line-height: 1.4;
  white-space: nowrap;
}

.rd-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  /* Bleed to the screen edge on phones, so the row scrolls under the gutter. */
  margin: 0 calc(-1 * var(--rd-gutter));
  /* Room for the 4px focus ring: the scroller clips its overflow. */
  padding: 4px var(--rd-gutter);
}
.rd-chips::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
  .rd-chips { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
}
.rd-chip {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--rd-line);
  border-radius: 999px;
  background: transparent;
  color: var(--rd-muted-2);
  font-family: var(--rd-font-ui);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s;
}
.rd-chip:hover { border-color: var(--rd-line-strong); color: var(--rd-text); }
.rd-chip:focus-visible { outline: none; box-shadow: var(--rd-focus); }
.rd-chip[aria-pressed="true"],
.rd-chip.is-selected {
  background: var(--rd-accent-soft);
  border-color: var(--rd-accent);
  color: var(--rd-accent-hi);
}
.rd-chip[aria-pressed="true"]:hover,
.rd-chip.is-selected:hover { border-color: var(--rd-accent-hi); }
/* Static (non-clickable) tag, same shape as a chip. */
.rd-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  background: var(--rd-accent-soft);
  color: var(--rd-muted-2);
  font-family: var(--rd-font-ui);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.rd-tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* --- Spec table -------------------------------------------------------- */

.rd-specs { margin: 0; }
.rd-specs__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rd-line);
}
.rd-specs__row:last-child { border-bottom: 0; }
.rd-specs dt { font-size: 13px; color: var(--rd-muted); flex: 0 0 auto; }
.rd-specs dd { margin: 0; font-size: 14px; font-weight: 600; text-align: right; min-width: 0; overflow-wrap: anywhere; }

/* --- Limit scale ------------------------------------------------------- */

/* One thin log axis, 0.1 to 5K in the club's currency; its range is the lit part with a
   dot on each end. Positions are inline percentages from _data/rdScale.js. */
.rd-scale { --rd-scale-h: 2px; --rd-scale-dot: 8px; }
.rd-scale--lg { --rd-scale-h: 4px; --rd-scale-dot: 12px; }
.rd-scale__track {
  position: relative;
  height: var(--rd-scale-h);
  /* Half a dot on each side keeps the end dots inside the panel. */
  margin: 6px calc(var(--rd-scale-dot) / 2) 0;
  border-radius: 999px;
  background: var(--rd-line-strong);
}
.rd-scale__fill {
  position: absolute;
  top: 0;
  bottom: 0;
  border-radius: 999px;
  background: var(--rd-accent);
}
.rd-scale__fill::before,
.rd-scale__fill::after {
  content: "";
  position: absolute;
  top: 50%;
  width: var(--rd-scale-dot);
  height: var(--rd-scale-dot);
  border-radius: 50%;
  background: var(--rd-accent);
  box-shadow: 0 0 0 3px var(--rd-accent-soft);
  transform: translate(-50%, -50%);
}
.rd-scale__fill::before { left: 0; }
.rd-scale__fill::after { left: 100%; }
/* Open end (see _data/rdScale.js): no dot. */
.rd-scale__fill.is-open-start::before,
.rd-scale__fill.is-open-end::after { content: none; }
.rd-scale__ticks {
  position: relative;
  height: 22px;
  margin: 0 calc(var(--rd-scale-dot) / 2);
}
.rd-scale__tick {
  position: absolute;
  top: 0;
  padding-top: 11px;
  transform: translateX(-50%);
  font-family: var(--rd-font-ui);
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.4px;
  color: var(--rd-muted);
  white-space: nowrap;
}
.rd-scale__tick::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 1px;
  height: 4px;
  background: var(--rd-line-strong);
}
.rd-scale__tick:first-child { transform: none; }
.rd-scale__tick:first-child::before { left: 0; }
.rd-scale__tick:last-child { transform: translateX(-100%); }
.rd-scale__tick:last-child::before { left: 100%; }
.rd-scale__caption {
  margin: 8px 0 0;
  font-family: var(--rd-font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--rd-text);
  overflow-wrap: anywhere;
}
.rd-scale__caption-label {
  margin-right: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--rd-muted);
}

/* --- Search field ------------------------------------------------------ */

.rd-search { position: relative; display: block; }
.rd-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 18px;
  height: 18px;
  transform: translateY(-50%);
  color: var(--rd-muted);
  pointer-events: none;
}
.rd-search__input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px 0 42px;
  border: 1px solid var(--rd-line-strong);
  border-radius: var(--rd-radius);
  background: var(--rd-panel);
  color: var(--rd-text);
  font-family: var(--rd-font-text);
  font-size: 16px; /* 16px keeps iOS from zooming in on focus */
  transition: border-color 0.2s;
}
.rd-search__input::placeholder { color: var(--rd-muted); }
.rd-search__input:hover { border-color: var(--rd-accent); }
.rd-search__input:focus-visible { outline: none; border-color: var(--rd-accent); box-shadow: var(--rd-focus); }

/* --- Logo -------------------------------------------------------------- */

/* Mark + wordmark; --rd-logo-h is the mark height, the wordmark is half of
   it. Widths follow the image ratios (111x72, 411x40). The wordmark may
   shrink, keeping its ratio, when a narrow header has no room for it. */
.rd-logo {
  --rd-logo-h: 28px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  border-radius: var(--rd-radius);
  color: var(--rd-text);
  text-decoration: none;
}
.rd-logo:focus-visible { outline: none; box-shadow: var(--rd-focus); }
.rd-logo__mark {
  flex: 0 0 auto;
  display: block;
  width: calc(var(--rd-logo-h) * 111 / 72);
  height: var(--rd-logo-h);
}
.rd-logo__wordmark {
  flex: 0 1 auto;
  display: block;
  min-width: 0;
  width: calc(var(--rd-logo-h) / 2 * 411 / 40);
  height: auto;
  transition: opacity 0.2s;
}
.rd-logo:hover .rd-logo__wordmark { opacity: 0.85; }
.rd-logo__text {
  font-family: var(--rd-font-ui);
  font-size: calc(var(--rd-logo-h) * 0.62);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s;
}
.rd-logo__text-accent { color: var(--rd-accent); }
.rd-logo:hover .rd-logo__text { color: var(--rd-accent-hi); }
.rd-logo--lg { --rd-logo-h: 36px; }

/* --- Header ------------------------------------------------------------ */

.rd-header {
  position: sticky;
  top: 0;
  z-index: 80;
  border-bottom: 1px solid var(--rd-line);
  background: var(--rd-bg);
}
@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .rd-header {
    background: color-mix(in srgb, var(--rd-bg) 86%, transparent);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
}
/* Grid, not a wrapping flex row: on a narrow phone the first row must
   never wrap — the wordmark shrinks instead (see .rd-logo__wordmark). */
.rd-header__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "logo end" "rooms rooms";
  align-items: center;
  column-gap: 10px;
  padding-top: 8px;
}
.rd-header__logo { grid-area: logo; justify-self: start; max-width: 100%; }
.rd-header__end {
  grid-area: end;
  display: flex;
  align-items: center;
  gap: 8px;
}
.rd-header__support { min-height: 32px; padding: 0 10px; letter-spacing: 0.3px; }

/* The legacy `nav { position: fixed }` rules in main.css reach this nav too. */
.rd-header__rooms {
  position: static;
  z-index: auto;
  display: block;
  grid-area: rooms;
  min-width: 0;
  padding: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.rd-header__rooms ul {
  display: flex;
  gap: 4px;
  margin: 0 calc(-1 * var(--rd-gutter));
  padding: 2px calc(var(--rd-gutter) - 10px) 4px;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rd-header__rooms ul::-webkit-scrollbar { display: none; }
.rd-header__rooms li { flex: 0 0 auto; }

.rd-header__room,
.rd-header__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 10px;
  border-radius: var(--rd-radius);
  font-family: var(--rd-font-ui);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--rd-muted-2);
  transition: color 0.2s;
}
.rd-header__room:hover,
.rd-header__link:hover { color: var(--rd-accent-hi); }
.rd-header__room:focus-visible,
.rd-header__link:focus-visible { outline: none; color: var(--rd-text); box-shadow: inset 0 0 0 2px var(--rd-accent-hi); }
.rd-header__room[aria-current="page"],
.rd-header__link[aria-current="page"] { color: var(--rd-accent); }
.rd-header__room[aria-current="page"]::after,
.rd-header__link[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 1px;
  background: currentColor;
}
.rd-header__link { display: none; }

/* Narrow phones (320px): the wordmark would drop to ~7px next to the mark,
   so the first row keeps the wordmark alone and tightens the controls. */
@media (max-width: 359px) {
  .rd-header__bar { column-gap: 8px; }
  .rd-header__logo .rd-logo__mark { display: none; }
  .rd-header__end { gap: 6px; }
  .rd-header__support { padding: 0 8px; letter-spacing: 0; }
  .rd-header .lang-menu__current { padding-left: 9px; padding-right: 9px; }
}

/* 62px tall on desktop: .platform-toc in main.css sticks at top: 62px. */
@media (min-width: 1024px) {
  .rd-header__bar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo rooms end";
    column-gap: 24px;
    min-height: 61px;
    padding-top: 0;
  }
  .rd-header__logo { --rd-logo-h: 36px; }
  .rd-header__rooms ul { justify-content: safe center; margin: 0; padding: 0; }
  .rd-header__end { gap: 12px; }
  .rd-header__link { display: inline-flex; }
  .rd-header__support { min-height: 34px; padding: 0 12px; letter-spacing: 0.6px; }
}

/* --- Club card and grid ------------------------------------------------ */

/* Card grids also sit inside legacy sections with their own background:
   take the tokens, not the page background. */
.rd.rd-cards { background: none; }
.rd-cards {
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr);
}
@media (min-width: 768px) {
  .rd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .rd-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.rd-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
  color: var(--rd-text);
}
.rd-panel.rd-card > * + * { margin-top: 0; }
/* The name sits 14px under the top row (card gap 16 - 2): closer than the
   other rows, but the badge must not touch it (partner, Issue #3, 2026-11-19;
   was 24px). */
.rd-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: -2px;
}
.rd-card__platform { align-self: flex-start; }
.rd-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  margin-left: auto;
  min-width: 0;
}
.rd-plate {
  display: inline-block;
  padding: 3px 8px;
  border: 1px solid var(--rd-line-strong);
  border-radius: 3px;
  font-family: var(--rd-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.4px;
  line-height: 1.4;
  color: var(--rd-text);
  overflow-wrap: anywhere;
}
.rd-plate--id { border-color: var(--rd-accent); font-size: 12px; }
.rd-plate__label { margin-right: 4px; font-weight: 600; color: var(--rd-muted); }
.rd-card__name { overflow-wrap: anywhere; }
/* Flag as tall as the capital letter of the name, sitting on the baseline. */
.rd-flag {
  display: inline-block;
  height: 0.66em;
  width: 0.99em;
  margin-left: 4px;
  border-radius: 2px;
  box-shadow: 0 0 0 1px var(--rd-line-strong);
}
.rd-panel.rd-card > .rd-card__regions { margin-top: -10px; }
.rd-card .rd-tags { gap: 8px; }
.rd-card__regions {
  margin: 0;
  font-family: var(--rd-font-ui);
  font-size: 13px;
  color: var(--rd-muted-2);
  line-height: 1.4;
}
/* Scale and bottom row sit at the bottom, so cards in one grid row line up. */
.rd-panel.rd-card > .rd-scale,
.rd-panel.rd-card > .rd-card__foot { margin-top: auto; padding-top: 6px; }
.rd-panel.rd-card > .rd-scale + .rd-card__foot { margin-top: 0; padding-top: 0; }
.rd-card__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 14px;
}

/* The card is a <div> with a button of its own (Support): the name link is
   stretched over the card, the Support block sits above it. */
.rd-card { transition: border-color 0.2s, background-color 0.2s; }
.rd-card:hover { border-color: var(--rd-line-strong); background: var(--rd-panel-2); }
.rd-card.is-support-open { z-index: 40; }
.rd-card__link { color: inherit; text-decoration: none; }
/* -1px: the stretched area covers the card's border too. */
.rd-card__link::after { content: ""; position: absolute; inset: -1px; border-radius: var(--rd-radius); }
.rd-card__link:focus-visible { outline: none; }
.rd-card__link:focus-visible::after { box-shadow: var(--rd-focus); }

/* The scale and the Support block are positioned and come after the link, so
   they paint over its stretched area: let clicks through everything there
   except the Support controls themselves. No z-index on the block — it must
   not form a stacking context, or its panel could not rise above the header
   on phones without dragging the button along. */
.rd-card .rd-scale { pointer-events: none; }
.rd-support {
  position: relative;
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-left: auto;
  pointer-events: none;
}
.rd-support__btn,
.rd-support__panel { pointer-events: auto; }
.rd-support__glyph { display: block; width: 20px; height: 20px; flex: none; border-radius: 4px; }
.rd-support__btn:focus-visible,
.rd-support__item:focus-visible { outline: none; box-shadow: var(--rd-focus); }
.rd-support__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 5px 10px;
  border: 1px solid var(--rd-line-strong);
  border-radius: 3px;
  background: none;
  color: var(--rd-text);
  font-family: var(--rd-font-ui);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
}
.rd-support__btn:hover,
.rd-support.is-open .rd-support__btn { border-color: var(--rd-accent); }
.rd-support__chat { width: 16px; height: 16px; flex: none; }
.rd-support__btn .rd-support__glyph { width: 16px; height: 16px; }
.rd-support__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 2;
  min-width: 290px;
  padding: 6px;
  border: 1px solid var(--rd-line-strong);
  border-radius: var(--rd-radius);
  background: var(--rd-panel-2);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  overflow-y: auto;
}
.rd-support.is-down .rd-support__panel { top: calc(100% + 8px); bottom: auto; }
.rd-support__title {
  display: none;
  margin: 0 0 8px;
  font-family: var(--rd-font-ui);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: var(--rd-muted);
}
.rd-support__list { margin: 0; padding: 0; list-style: none; }
.rd-support__item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--rd-text);
  font-family: var(--rd-font-ui);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.rd-support__item:hover { background: var(--rd-accent-soft); }
.rd-support__id { min-width: 0; color: var(--rd-muted-2); font-weight: 400; overflow-wrap: anywhere; }
.rd-support__copy {
  margin-left: auto;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--rd-accent);
}
/* Phones: the panel is a sheet at the bottom of the screen, so the card's
   edges cannot cut it; the dimmed backdrop closes it. */
@media (max-width: 767px) {
  /* The card must not form a stacking context here: the backdrop and the
     sheet go above the sticky header (80), the card and the button stay
     under it. */
  .rd-card.is-support-open { z-index: auto; }
  .rd-support.is-open::before {
    content: "";
    pointer-events: auto;
    position: fixed;
    inset: 0;
    z-index: 999;
    background: rgba(0, 0, 0, 0.6);
  }
  .rd-support__panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    min-width: 0;
    max-height: 80vh;
    overflow-y: auto;
    padding: 16px 12px calc(16px + env(safe-area-inset-bottom));
    border-width: 1px 0 0;
    border-radius: 12px 12px 0 0;
  }
  .rd-support__title { display: block; padding: 0 10px; }
}
.rd-card__limits {
  margin: 0;
  font-family: var(--rd-font-ui);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.rd-card__limits-label {
  margin-right: 6px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--rd-muted);
}

/* --- Catalogue page ---------------------------------------------------- */

.rd-catalog [hidden] { display: none !important; }
.rd-catalog__head { padding-top: 32px; padding-bottom: 24px; }
.rd-catalog__head > * + * { margin-top: 12px; }
.rd-catalog__eyebrow { color: var(--rd-accent); margin-bottom: 0; }
.rd-catalog__lead { max-width: 640px; }
.rd-catalog__lead a { color: var(--rd-accent); text-decoration: underline; text-underline-offset: 3px; }
.rd-catalog__lead a:hover { color: var(--rd-accent-hi); }
.rd-catalog__lead a:focus-visible { outline: none; border-radius: 2px; box-shadow: var(--rd-focus); }
.rd-catalog__search { max-width: 560px; margin-top: 20px; }
.rd-catalog__results { padding-top: 16px; padding-bottom: 48px; }
/* Keyboard focus scrolls a card clear of the sticky header (and, from
   768px, the sticky filter panel). */
.rd-catalog .rd-card { scroll-margin-top: 100px; }
/* A footer filter link followed on the catalogue scrolls here (rd-catalog.js). */
.rd-catalog__body { scroll-margin-top: 83px; }
@media (min-width: 1024px) {
  .rd-catalog__body { scroll-margin-top: 62px; }
}

/* From 768px the panel sticks under the header: 83px, then 62px from 1024px
   (header heights, stage 2). On phones it scrolls away: header + four chip
   rows would cover a third of the screen. Below the header's z-index, so
   the language menu opens over it. */
.rd-filters {
  z-index: 70;
  border-top: 1px solid var(--rd-line);
  border-bottom: 1px solid var(--rd-line);
  background: var(--rd-bg);
}
@media (min-width: 768px) {
  .rd-catalog .rd-card { scroll-margin-top: 320px; }
  .rd-filters { position: sticky; top: 83px; }
}
@media (min-width: 1024px) {
  .rd-filters { top: 62px; }
}
.rd-filters__inner { padding-top: 6px; padding-bottom: 6px; }
/* One row per facet: on phones its own horizontal scroll (rd-chips), the
   label scrolls with the chips. */
.rd-facet { align-items: center; }
.rd-facet + .rd-facet { margin-top: 2px; }
.rd-facet__label {
  flex: 0 0 auto;
  font-family: var(--rd-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--rd-muted);
}
.rd-chip__hint { font-weight: 500; color: var(--rd-muted); }
.rd-chip[aria-pressed="true"] .rd-chip__hint { color: inherit; }
@media (min-width: 768px) {
  .rd-filters__inner { padding-top: 12px; padding-bottom: 10px; }
  .rd-facet + .rd-facet { margin-top: 8px; }
  .rd-facet__label { min-width: 96px; }
}
.rd-filters__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  margin-top: 2px;
}
.rd-filters__count {
  margin: 0;
  font-family: var(--rd-font-ui);
  font-size: 12px;
  color: var(--rd-muted-2);
}
.rd-filters__reset {
  min-height: 30px;
  padding: 0 4px;
  border: 0;
  border-radius: 3px;
  background: none;
  color: var(--rd-accent);
  font-family: var(--rd-font-ui);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
}
.rd-filters__reset:hover { color: var(--rd-accent-hi); }
.rd-filters__reset:focus-visible { outline: none; box-shadow: var(--rd-focus); }
.rd-catalog__empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.rd-catalog__empty > * + * { margin-top: 0; }
.rd-catalog__empty .rd-sub { margin: 0; }

/* --- Homepage ---------------------------------------------------------- */

/* The footer's FAQ link (/{lang}/#faq) lands below the sticky header. */
#faq { scroll-margin-top: 83px; }
@media (min-width: 1024px) {
  #faq { scroll-margin-top: 62px; }
}

/* --- Club page --------------------------------------------------------- */

/* One column on phones and tablets: head, terms panel, main column, related
   clubs. From 1024px two columns (776 + 330 in the 1180 container): the head
   spans both, the main column takes rows 2-3, the terms panel sticks in row 2
   and related clubs wait in row 3, so the sticky panel never runs over them. */
.rd-club { padding-bottom: 48px; }
.rd-club section { padding: 0; }
.rd-club__layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 20px;
}
@media (min-width: 1024px) {
  .rd-club__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 330px;
    grid-template-rows: auto 1fr auto;
    column-gap: 74px;
    row-gap: 36px;
    padding-top: 28px;
  }
  .rd-club__head { grid-column: 1 / -1; grid-row: 1; }
  .rd-club__main { grid-column: 1; grid-row: 2 / 4; }
  .rd-club__side { grid-column: 2; grid-row: 2; }
  .rd-club__related { grid-column: 2; grid-row: 3; }
  .rd-club__specs { position: sticky; top: calc(62px + 16px); }
}
.rd-club__main,
.rd-club__side,
.rd-club__related { min-width: 0; }

/* The legacy `nav { position: fixed … }` rules in main.css reach these too. */
.rd-crumbs,
.rd-club__jump {
  position: static;
  z-index: auto;
  padding: 0;
  background: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.rd-crumbs { display: block; }
.rd-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--rd-font-ui);
  font-size: 12px;
  color: var(--rd-muted);
}
.rd-crumbs li { min-width: 0; overflow-wrap: anywhere; }
.rd-crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--rd-line-strong); }
.rd-crumbs a { color: var(--rd-muted-2); border-radius: 2px; transition: color 0.2s; }
.rd-crumbs a:hover { color: var(--rd-accent-hi); }
.rd-crumbs a:focus-visible { outline: none; box-shadow: var(--rd-focus); }
.rd-crumbs [aria-current] { color: var(--rd-text); }

.rd-club__head > * + * { margin-top: 14px; }
.rd-club__head > .rd-crumbs + * { margin-top: 20px; }
.rd-club__platform { transition: border-color 0.2s, color 0.2s; }
.rd-club__platform:hover { border-color: var(--rd-accent); color: var(--rd-accent-hi); }
.rd-club__platform:focus-visible { outline: none; box-shadow: var(--rd-focus); }
.rd-club__name { overflow-wrap: anywhere; }
.rd-club__head > .rd-club__name + .rd-club__idline { margin-top: 8px; }
.rd-club__idline {
  margin-bottom: 0;
  font-family: var(--rd-font-ui);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.4px;
  line-height: 1.4;
  color: var(--rd-accent);
  overflow-wrap: anywhere;
}
.rd-club__head > .rd-club__eyebrow + .rd-club__name { margin-top: 6px; }
.rd-club__eyebrow {
  margin-bottom: 0;
  font-family: var(--rd-font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--rd-muted);
}
.rd-club__union { margin-bottom: 0; font-family: var(--rd-font-ui); font-size: 14px; font-weight: 700; color: var(--rd-text); }
.rd-club__union .rd-club__eyebrow { display: inline; margin-right: 6px; }
.rd-club__regions { margin-bottom: 0; font-family: var(--rd-font-ui); font-size: 13px; color: var(--rd-muted-2); line-height: 1.4; }
.rd-club__tags { margin: 0; padding: 0; list-style: none; }
.rd-club__lead {
  max-width: 720px;
  margin-bottom: 0;
  padding-left: 14px;
  border-left: 2px solid var(--rd-accent);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rd-text);
}
.rd-club__head > .rd-club__actions { margin-top: 22px; }
.rd-club__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.rd-club__jump { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
@media (max-width: 767px) {
  .rd-club__cta { flex: 1 1 100%; }
}

/* Terms panel. */
.rd-club__specs .rd-section-title { margin-bottom: 0; }
.rd-club__specs > .rd-specs { margin-top: 6px; }
.rd-club__specs > .rd-scale { margin-top: 18px; }
.rd-club__ids { margin-bottom: 0; font-size: 13px; line-height: 1.5; }
.rd-club__ids a { color: var(--rd-accent); text-decoration: underline; text-underline-offset: 3px; border-radius: 2px; }
.rd-club__ids a:hover { color: var(--rd-accent-hi); }
.rd-club__ids a:focus-visible { outline: none; box-shadow: var(--rd-focus); }
.rd-club__specs > .rd-note { margin-bottom: 0; }
/* On phones the head's button sits right above this panel. */
@media (max-width: 1023px) {
  .rd-club__side-cta { display: none; }
}

/* Main column. */
.rd-club__main > * + * { margin-top: 44px; }
.rd-club__h2 {
  margin: 0 0 18px;
  font-family: var(--rd-font-display);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--rd-text);
}
.rd-club__section .rd-section-title + .rd-club__h2 { margin-top: 0; }
/* #flags / #rake land below the sticky header (83px, 62px from 1024px). */
.rd-club__section,
.rd-related__card { scroll-margin-top: 99px; }
@media (min-width: 1024px) {
  .rd-club__section,
  .rd-related__card { scroll-margin-top: 78px; }
}
.rd-club .club-prose { max-width: none; margin: 0; }
.rd-club .union-rake-tables { max-width: none; margin: 0; }
/* The legacy photo row breaks out to the screen width from 1024px; in the
   main column it must stay inside, clear of the side panel. */
.rd-club .club-photos { justify-content: flex-start; }
@media (min-width: 1024px) {
  .rd-club .club-photos { width: auto; margin-left: 0; transform: none; }
  .rd-club .club-photos .club-photo img { height: min(480px, 34vw); }
}

.rd-steps { margin: 0; padding: 0; list-style: none; counter-reset: rd-step; }
.rd-steps__item {
  position: relative;
  min-height: 34px;
  padding: 6px 0 0 50px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--rd-text);
  counter-increment: rd-step;
}
.rd-steps__item + .rd-steps__item { margin-top: 16px; }
.rd-steps__item::before {
  content: counter(rd-step);
  position: absolute;
  left: 0;
  top: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--rd-accent);
  border-radius: 50%;
  background: var(--rd-accent-soft);
  color: var(--rd-accent-hi);
  font-family: var(--rd-font-ui);
  font-size: 14px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}
.rd-club__join-cta { margin-top: 22px; }

/* Related clubs. */
.rd-club__h2--side { font-size: 24px; margin-top: 4px; }
.rd-related { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.rd-related__card { padding: 16px; color: var(--rd-text); }
.rd-related__card > * + * { margin-top: 6px; }
.rd-related__name { margin: 0; font-family: var(--rd-font-display); font-size: 21px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.rd-related__club { margin-bottom: 0; font-family: var(--rd-font-ui); font-size: 12px; font-weight: 600; color: var(--rd-muted-2); }
.rd-related__tagline { margin-bottom: 0; font-size: 13px; line-height: 1.5; color: var(--rd-muted-2); }

/* Access bar fixed to the bottom on phones and tablets, shown by rd-club.js;
   the page gets room below the footer so the bar never covers its end. */
.rd-club-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 75;
  padding: 10px var(--rd-gutter) calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rd-line);
  background: var(--rd-bg);
  visibility: hidden;
  transform: translateY(100%);
  transition: transform 0.2s, visibility 0s 0.2s;
}
.rd-club-bar.is-shown { visibility: visible; transform: none; transition: transform 0.2s; }
@media (max-width: 1023px) {
  body.club-page { padding-bottom: calc(65px + env(safe-area-inset-bottom)); }
}
@media (min-width: 1024px) {
  .rd-club-bar { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rd-club-bar, .rd-club-bar.is-shown { transition: none; }
}

/* --- Footer ------------------------------------------------------------ */

/* Resets the legacy `footer {}` rules of main.css (flex row, centred text
   on phones). Phone: the platform and club lists side by side, brand and
   navigation full width; 2×2 from 768px; one row from 1024px. */
.rd-footer {
  display: block;
  margin-top: 56px;
  padding: 40px 0 24px;
  border-top: 1px solid var(--rd-line);
  background: var(--rd-panel);
  text-align: left;
}
.rd-footer__cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 16px;
}
.rd-footer__col--brand,
.rd-footer__col:last-child { grid-column: 1 / -1; }

.rd-footer__blurb { max-width: 340px; margin: 16px 0 0; font-size: 13px; line-height: 1.7; color: var(--rd-muted-2); }

.rd-footer__title { margin-bottom: 14px; }
.rd-footer__title a { color: var(--rd-accent); border-radius: 2px; transition: color 0.2s; }
.rd-footer__title a::after { content: " \2192"; content: " \2192" / ""; }
.rd-footer__subtitle {
  margin: 20px 0 8px;
  font-family: var(--rd-font-ui);
  font-size: 12px;
  font-weight: 600;
  color: var(--rd-text);
}
.rd-footer__title + .rd-footer__subtitle { margin-top: 0; }

.rd-footer__list { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
.rd-footer__list a {
  display: inline-block;
  padding: 3px 0;
  border-radius: 2px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--rd-muted-2);
  overflow-wrap: anywhere;
  transition: color 0.2s;
}
.rd-footer__hint { font-size: 12px; color: var(--rd-muted); }
.rd-footer__contacts a { display: inline-flex; align-items: center; gap: 8px; }
.rd-footer__contacts svg { width: 14px; height: 14px; flex: 0 0 auto; }

.rd-footer__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.rd-footer__social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rd-line-strong);
  border-radius: var(--rd-radius);
  color: var(--rd-muted-2);
  transition: color 0.2s, border-color 0.2s;
}
.rd-footer__social svg { width: 16px; height: 16px; }

.rd-footer__title a:hover,
.rd-footer__list a:hover { color: var(--rd-accent-hi); }
.rd-footer__social:hover { border-color: var(--rd-accent); color: var(--rd-accent-hi); }
.rd-footer a:focus-visible { outline: none; box-shadow: var(--rd-focus); }

.rd-footer__bottom {
  display: grid;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--rd-line);
}
.rd-footer__copy,
.rd-footer__rg { margin: 0; font-size: 12px; line-height: 1.6; color: var(--rd-muted); }
.rd-footer__lang { justify-self: start; }
/* The language menu opens upwards here, and above the club page's access
   bar (z-index 75) while staying under the header (80). */
.rd-footer .lang-menu__list { top: auto; bottom: 100%; left: 0; right: auto; z-index: 76; margin: 0 0 6px; }
.rd-footer .lang-menu__list::before { top: auto; bottom: -8px; }

@media (min-width: 768px) {
  .rd-footer { padding-top: 48px; }
  .rd-footer__cols { gap: 40px 32px; }
  .rd-footer__col--brand,
  .rd-footer__col:last-child { grid-column: auto; }
  .rd-footer__bottom { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 24px; }
  .rd-footer__lang { justify-self: end; }
  .rd-footer .lang-menu__list { left: auto; right: 0; }
}
@media (min-width: 1024px) {
  .rd-footer__cols { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 48px; }
  .rd-footer__logo { --rd-logo-h: 36px; }
}

/* --- Kit page only ----------------------------------------------------- */

.rd-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) {
  .rd-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rd-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.rd-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rd-swatch { height: 44px; border-radius: 3px; border: 1px solid var(--rd-line); }

/* Text for screen readers only. */
.rd-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
