/* ALIGN — the signed-in rep pages (portal, module, quiz, script, onboarding,
   login, manager, complete, 404). Loaded AFTER /css/style.css and only on
   pages whose <body> has class "rp", with media="screen": the admin pages and
   everything that prints (the Growth PDF, scripts-print) are untouched.

   What it does: carries the public page's look into the portal.
   - Black throughout and flat. No boxes around things: a section is set off
     by a hairline above it, the way the public page rules its questions and
     its apply steps. A frame is kept for photos and for forms.
   - Numbers that matter are set very large in Antonio, filled or outlined,
     with a small label beside them (the public page's scoreboard).
   - Labels in white behind two slanted racing stripes; red stays for the
     things that matter (the active tab, one word in a heading, small ordinals).
   - One abstract element: the red streak and grain behind the greeting.
   Type is unchanged: Antonio for headings, Inter for the rest.

   It works by resetting the variables style.css already reads, then restyling
   each piece in place. style.css is not edited. */

body.rp {
  --bg-card: #10151C;                      /* raised surface */
  --bg-elevated: #0D1218;                  /* fields, wells */
  --border: rgba(255, 255, 255, 0.12);
  --rp-line-strong: rgba(255, 255, 255, 0.24);
  --text: #F3F5F7;
  --text-muted: #A9B1BC;
  --text-dim: #858D9A;                     /* was #6C7480: under 4.5:1 on black at small sizes */
  --rp-red-text: #FF5566;                  /* red for small text (AA on black) */
  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
  --rp-r-frame: 14px;                      /* photos and posters */
  --shadow-glow: none;
  --shadow-glow-strong: none;
  --rp-header-h: 64px;
  --rp-tabs-h: 52px;
  --font-head: var(--font-display);       /* the Daily Drop title asks for this; it was never defined */
  /* Two slanted racing stripes, as a background for a 20 x 11 box. */
  --rp-stripes: linear-gradient(90deg, var(--accent) 0 7px, transparent 7px 11px, var(--accent) 11px 18px, transparent 18px);
  background: var(--bg);
  overflow-x: clip;
}
@media (max-width: 719.98px) { body.rp { --rp-header-h: 56px; --rp-tabs-h: 48px; } }

/* ---------- Header and footer ---------- */
body.rp .site-header { background: rgba(11, 15, 20, 0.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.rp .nav a { font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; }
/* The owner's header carries My Team and Admin as well: on a narrow phone
   the Dashboard link gives way (the logo already goes there). */
@media (max-width: 419.98px) { body.rp .site-header .nav a.active:not(.btn) { display: none; } }
/* The three words, large, the way the public page signs off. */
body.rp .site-footer { margin-top: clamp(3.5rem, 9vw, 6rem); padding: clamp(2.5rem, 6vw, 4rem) 0; }
body.rp .site-footer .tag {
  font-size: clamp(1.75rem, 6.4vw, 3.5rem); font-weight: 700; line-height: 0.95;
  letter-spacing: 0.01em; color: var(--text);
}

/* ---------- Labels: white, behind two racing stripes ---------- */
body.rp .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em;
  color: var(--text);
}
body.rp .eyebrow::before {
  content: ''; flex: none; width: 20px; height: 11px; transform: skewX(-24deg);
  background: var(--rp-stripes);
}
body.rp .eyebrow.text-center { display: flex; justify-content: center; }
/* A label is followed by its heading: keep the two on separate lines. */
body.rp .eyebrow + h1, body.rp .eyebrow + h2, body.rp .eyebrow + h3 { margin-top: 0.55rem; }
body.rp h2 { text-wrap: balance; }
body.rp a { color: var(--rp-red-text); }
body.rp .nav a, body.rp a.btn, body.rp .brand, body.rp a.module-tile { color: inherit; }
body.rp .nav a { color: var(--text-muted); }
body.rp .nav a:hover, body.rp .nav a.active { color: var(--text); }
body.rp a.btn-primary { color: #fff; }
/* The one red word in a heading. Its own class: .accent also exists in the
   shared stylesheet, which the Growth panel prints with. */
.rp-hot { color: var(--accent); }

/* ---------- Buttons: squared and flat ---------- */
body.rp .btn {
  border-radius: var(--radius); border-width: 1.5px;
  font-weight: 700; font-size: 0.82rem; letter-spacing: 0.06em;
  min-height: 48px; padding: 0.55rem 1.5rem; text-align: center; line-height: 1.25;   /* long labels wrap on a narrow phone */
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
body.rp .btn-sm { min-height: 40px; padding: 0.4rem 1rem; font-size: 0.74rem; }
body.rp .site-header .nav .btn-sm { white-space: nowrap; min-height: 34px; padding: 0 0.7rem; font-size: 0.7rem; letter-spacing: 0.04em; }
@media (max-width: 419.98px) {
  body.rp .site-header .nav:not(.nav-landing) { gap: 0.45rem; }
  body.rp .site-header .nav .btn-sm { padding: 0 0.5rem; font-size: 0.66rem; }
}
body.rp .btn-primary { background: var(--accent-dim); color: #fff; box-shadow: none; }
body.rp .btn-primary:hover:not(:disabled):not([aria-disabled="true"]) { background: var(--accent); transform: none; box-shadow: none; }
body.rp .btn-outline { border-color: var(--rp-line-strong); color: var(--text); }
body.rp .btn-outline:hover:not(:disabled) { border-color: var(--text); color: var(--text); }

/* ---------- Panels ---------- */
body.rp .hex-frame {
  clip-path: none; box-shadow: none;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--rp-r-frame);
}
body.rp .divider { background: var(--border); }
body.rp input, body.rp select, body.rp textarea { border-radius: var(--radius); }

/* ---------- Page frame ---------- */
body.rp .rp-main { padding-top: 0; padding-bottom: 3.5rem; }

/* ---------- Tabs: one row, pinned under the header ----------
   All six on screen at every width: condensed type, spread edge to edge on a
   phone. The row is the first thing under the header on every tab, so it
   never moves when the tab changes. */
.rp-tabs-wrap {
  position: sticky; top: var(--rp-header-h); z-index: 40;
  /* out to the screen edges, so the row reads as part of the page chrome */
  margin: 0 calc(50% - 50vw); padding: 0 calc(50vw - 50%);
  background: rgba(11, 15, 20, 0.94);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
body.rp #libNav { margin-top: 0 !important; }        /* the shared stylesheet sets a gap above it, with !important */
body.rp .rp-tabs {
  margin: 0; gap: clamp(1.25rem, 3.2vw, 2.75rem);
  flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; height: var(--rp-tabs-h);
}
body.rp .rp-tabs::-webkit-scrollbar { display: none; }
body.rp .rp-tabs .chip {
  flex: none; background: none; border: 0; border-radius: 0; box-shadow: none;
  padding: 0; height: 100%;
  font: 700 1.0625rem/1 var(--font-display); letter-spacing: 0.07em;
  color: var(--text-muted);
  border-bottom: 2px solid transparent; border-top: 2px solid transparent;
}
body.rp .rp-tabs .chip:hover { color: var(--text); }
body.rp .rp-tabs .chip.active { color: var(--text); border-color: transparent; border-bottom-color: var(--accent); background: none; box-shadow: none; }
body.rp .rp-tabs .chip:focus-visible { outline-offset: -3px; }
/* A phone: the six labels are about 22.5 times their type size across in all.
   The size follows the screen (12px at 320, 14px from about 410) and the row's
   side padding gives way first, so the gaps between labels stay readable. */
@media (max-width: 719.98px) {
  .rp-tabs-wrap { margin: 0 -1.25rem; padding: 0; }
  body.rp .rp-tabs { padding: 0 clamp(0.625rem, 4.2vw, 1.25rem); gap: 0.2rem; justify-content: space-between; }
  body.rp .rp-tabs .chip { font-size: clamp(0.75rem, 3.4vw, 0.875rem); letter-spacing: 0.035em; }
}

/* ---------- Panels under the tabs ---------- */
body.rp .lib-panel { padding-top: clamp(1.75rem, 5.5vw, 4rem); scroll-margin-top: calc(var(--rp-header-h) + var(--rp-tabs-h)); }
/* Each tab opens with its heading set large, the size of the greeting on Today. */
body.rp .lib-panel h2[aria-level="1"] { font-size: clamp(2.6rem, 10.5vw, 6rem); line-height: 0.92; letter-spacing: 0.005em; }
body.rp .lib-panel h2[aria-level="1"] + p.mt-sm { margin-top: clamp(1rem, 2.4vw, 1.9rem); max-width: 46ch; }
/* The same gap where the heading sits in a wrapper of its own. */
body.rp .lib-panel > div:first-child + p.mt-sm,
body.rp #gcPath > .growth-topbar + p.mt-sm,
body.rp #gcComp > p.mt-sm,
body.rp #gcTrips > div:first-child + p.mt-sm { margin-top: clamp(1rem, 2.4vw, 1.9rem); max-width: 46ch; }

/* Filters: squared chips. Red is kept for the main row. */
body.rp .chip { border-radius: var(--radius); box-shadow: none; }
body.rp .chip:hover { border-color: var(--rp-line-strong); }
body.rp .chip.active {
  background: rgba(255, 255, 255, 0.08); border-color: var(--text); color: var(--text); box-shadow: none;
}
/* Sub-tabs (Growth, the Arena): words on a rule, the open one underlined in white. */
body.rp .gc-subtabs, body.rp .ar-subtabs {
  display: flex; flex-wrap: nowrap; gap: clamp(1.1rem, 4.5vw, 2.25rem);
  margin: 0 0 clamp(1.5rem, 4.5vw, 2.5rem); padding: 0;
  border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none;
}
body.rp .gc-subtabs::-webkit-scrollbar, body.rp .ar-subtabs::-webkit-scrollbar { display: none; }
body.rp .gc-subtabs .chip, body.rp .ar-subtabs .chip {
  flex: none; min-height: 46px; padding: 0; margin: 0 0 -1px; opacity: 1;
  background: none; border: 0; border-bottom: 2px solid transparent; border-radius: 0;
  font: 700 0.8125rem/1 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted);
}
body.rp .gc-subtabs .chip:hover, body.rp .ar-subtabs .chip:hover { color: var(--text); }
body.rp .gc-subtabs .chip.active, body.rp .ar-subtabs .chip.active { background: none; color: var(--text); border-bottom-color: var(--text); }
/* Small phones: all three words stay on the row, nothing hidden off the edge. */
@media (max-width: 380px) {
  body.rp .gc-subtabs, body.rp .ar-subtabs { gap: 0.75rem; }
  body.rp .gc-subtabs .chip, body.rp .ar-subtabs .chip { font-size: 0.6875rem; letter-spacing: 0.08em; }
}

/* ============================================================
   TODAY
   ============================================================ */
body.rp #todaySection { padding-top: 0; }

/* ---------- Greeting ---------- */
.rp-greet { position: relative; isolation: isolate; padding: clamp(1.75rem, 5.5vw, 4rem) 0 clamp(1.75rem, 5vw, 3.25rem); }
.rp-greet h1 { font-size: clamp(2.6rem, 10.5vw, 6rem); line-height: 0.92; letter-spacing: 0.005em; text-wrap: balance; }
.rp-greet #subhead { margin-top: 0.85rem; font-size: 1.0625rem; max-width: 44ch; }
.rp-who { margin-top: 0.6rem; font-size: 0.8125rem; color: var(--text-dim); overflow-wrap: anywhere; }
@media (min-width: 900px) {
  /* The lockup: the headline on the left, the line and the name beside its foot. */
  .rp-greet { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); grid-template-rows: auto 1fr auto; column-gap: 3rem; }
  .rp-greet > .eyebrow { grid-column: 1 / -1; justify-self: start; }
  .rp-greet h1 { grid-column: 1; grid-row: 2 / span 2; }
  .rp-greet #subhead { grid-column: 2; grid-row: 2; align-self: end; margin-top: 0; }
  .rp-who { grid-column: 2; grid-row: 3; }
}
/* The light: a soft streak of red across the black, under a fine grain. */
.rp-light {
  position: absolute; z-index: -1; pointer-events: none; overflow: hidden;
  top: 0; bottom: -40px; left: 50%; width: 100vw; margin-left: -50vw;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 55%, transparent 100%);
}
.rp-light::before {
  content: ''; position: absolute; left: 50%; top: 40%;
  width: max(170vw, 1500px); height: clamp(160px, 30vh, 300px);
  margin: -110px 0 0 calc(max(170vw, 1500px) / -2);
  transform: rotate(-12deg);
  background: linear-gradient(180deg,
    rgba(230, 42, 58, 0) 0%, rgba(230, 42, 58, 0.06) 20%, rgba(230, 42, 58, 0.3) 45%,
    rgba(255, 132, 122, 0.4) 52%, rgba(230, 42, 58, 0.08) 62%, rgba(230, 42, 58, 0) 80%);
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 62%, #000 80%, transparent 98%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 62%, #000 80%, transparent 98%);
  filter: blur(34px);
}
.rp-light::after {
  content: ''; position: absolute; inset: 0; opacity: 0.55;
  background: url('/images/landing/grain.png') 0 0 / 128px 128px;
}
@media (min-resolution: 2dppx) { .rp-light::after { background-size: 64px 64px; } }

/* ---------- The week ----------
   No box. Today's row is lifted to the head of the list and set large: the
   time as a giant numeral, the place under it. The other days are ruled rows.
   All of it is the same six rows of markup the admin page also carries; the
   row that is today is marked by main.js (.is-today). */
body.rp #todaySection > * + * { margin-top: clamp(2.5rem, 7vw, 4.5rem); }
body.rp #todaySection > .rp-greet + * { margin-top: 0; }
body.rp #todaySection .week-schedule { background: none; border: 0; border-radius: 0; padding: 0; }
body.rp #onboardingPrompt + .week-schedule { margin-top: clamp(2.5rem, 7vw, 4.5rem); }
body.rp .ws-flags { display: none; }                 /* three small pennants: decoration only */
body.rp .ws-head-row { display: block; margin: 0 0 1.25rem; }
body.rp .ws-title { margin-top: 0.55rem; font-size: clamp(2rem, 6.5vw, 3.5rem); line-height: 0.95; letter-spacing: 0.005em; }
body.rp .ws-list { display: flex; flex-direction: column; }

body.rp .ws-day {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; column-gap: 0.5rem; row-gap: 0.2rem; align-items: baseline;
  padding: 0.95rem 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0;
}
body.rp .ws-day + .ws-day { border-top: 1px solid var(--border); }
body.rp .ws-body, body.rp .ws-line { display: contents; }
body.rp .ws-badge {
  grid-column: 1; grid-row: 1; display: block; width: auto; height: auto;
  background: none; border: 0; border-radius: 0; box-shadow: none;
  font: 700 0.8125rem/1.6 var(--font-body); letter-spacing: 0.1em; color: var(--rp-red-text);
}
body.rp .ws-name { grid-column: 2; grid-row: 1; font-size: 1.375rem; line-height: 1.05; letter-spacing: 0.02em; }
body.rp .ws-time { grid-column: 3; grid-row: 1; font-size: 1.375rem; line-height: 1.05; letter-spacing: 0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
body.rp .ws-loc { grid-column: 2 / -1; grid-row: 2; margin: 0; font-size: 0.9rem; line-height: 1.45; color: var(--text-muted); }

/* Today. */
body.rp .ws-day.is-today {
  order: -1; display: block; padding: 1.35rem 0 1.6rem;
  background: none; border-top: 1px solid var(--rp-line-strong);
}
body.rp .ws-day.is-today .ws-badge { display: none; }
body.rp .ws-day.is-today .ws-body { display: block; }
body.rp .ws-day.is-today .ws-line { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; }
body.rp .ws-day.is-today .ws-line::before { content: ''; grid-column: 1; grid-row: 1; width: 20px; height: 11px; transform: skewX(-24deg); background: var(--rp-stripes); }
body.rp .ws-day.is-today .ws-name { grid-column: 2; grid-row: 1; font: 700 0.72rem/1.4 var(--font-body); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text); }
body.rp .ws-day.is-today .ws-name::before { content: 'Today \00B7\00A0'; }
body.rp .ws-day.is-today .ws-time {
  grid-column: 1 / -1; grid-row: 2; margin-top: 0.3rem;
  font: 700 clamp(4.75rem, 25vw, 6.5rem)/1 var(--font-display); letter-spacing: 0.005em; color: var(--text);
}
body.rp .ws-day.is-today .ws-loc { margin-top: 0.5rem; font-size: 1.0625rem; color: var(--text); max-width: 32ch; }

@media (min-width: 900px) {
  /* No row is today (a Sunday): six days in two columns of three, read down then across. */
  body.rp .ws-list { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, auto); grid-auto-flow: column; column-gap: clamp(2.5rem, 6vw, 6rem); }
  /* Today on the left, the other five days in a column beside it. */
  body.rp .ws-list:has(.is-today) { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); grid-template-rows: none; grid-auto-flow: row; }
  body.rp .ws-list:has(.is-today) .ws-day { grid-column: 2; }
  body.rp .ws-list:has(.is-today) .ws-day.is-today { grid-column: 1; grid-row: 1 / span 5; padding-top: 1.6rem; }
  body.rp .ws-day.is-today .ws-time { font-size: clamp(6.5rem, 11.5vw, 9.5rem); margin-top: 0.5rem; }
  body.rp .ws-day.is-today .ws-loc { font-size: 1.1875rem; margin-top: 0.75rem; }
  body.rp .ws-day { padding: 1.05rem 0; }
}

/* ---------- The nearest trip: a framed poster ----------
   The days left as the big figure, the trip and what it takes under it. */
body.rp .trip-teaser {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: minmax(0, 1fr); align-items: stretch; gap: 1.1rem 1.5rem;
  min-height: clamp(520px, 46vw, 560px); padding: clamp(1.25rem, 3.2vw, 2.5rem);
  border: 1px solid var(--border); border-radius: var(--rp-r-frame);
  background-position: center 22%;
}
/* Wide: the words sit on the left, so the dark comes in from that side and
   the photo stays clear across the middle and right. */
body.rp .trip-teaser .tt-scrim {
  background:
    linear-gradient(90deg, rgba(11, 15, 20, 0.94) 0%, rgba(11, 15, 20, 0.86) 16%, rgba(11, 15, 20, 0.52) 36%, rgba(11, 15, 20, 0.14) 58%, rgba(11, 15, 20, 0.26) 100%),
    linear-gradient(180deg, rgba(11, 15, 20, 0.5) 0%, rgba(11, 15, 20, 0) 26%, rgba(11, 15, 20, 0) 62%, rgba(11, 15, 20, 0.72) 100%);
}
body.rp .tt-body { display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0; min-width: 0; }
body.rp .tt-label {
  margin-bottom: auto; padding-bottom: 2rem;
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.18em; color: var(--text);
}
body.rp .tt-label::before { content: ''; flex: none; width: 20px; height: 11px; transform: skewX(-24deg); background: var(--rp-stripes); }
.tt-count { display: flex; align-items: flex-end; gap: 12px; }
.tt-count-n { font: 700 clamp(5.5rem, 24vw, 9.5rem)/0.95 var(--font-display); letter-spacing: 0.005em; font-variant-numeric: tabular-nums; }
.tt-count-l { margin-bottom: 1.15em; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; line-height: 1.3; }
body.rp .tt-main { display: block; margin-top: 0.5rem; font-size: 1rem; line-height: 1.45; color: #E3E7EC; }
body.rp .tt-main strong { display: block; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1; letter-spacing: 0.015em; color: var(--text); margin-bottom: 0.35rem; }
.tt-sep { display: none; }
body.rp .tt-when { display: block; margin-top: 0.35rem; font-size: 0.8125rem; color: #C9CFD7; }
body.rp .tt-cta {
  align-self: end;
  color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.75rem 0.95rem; border: 1.5px solid var(--rp-line-strong); border-radius: var(--radius);
  background: rgba(11, 15, 20, 0.8);
}
body.rp .trip-teaser:hover .tt-cta { text-decoration: none; border-color: #fff; }
/* A phone: an upright poster. The photo fills the top two thirds (every trip
   photo is 3:2, so it covers the width up to here) and falls away into the
   black the figure stands on. */
@media (max-width: 559.98px) {
  body.rp .trip-teaser {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    background-color: var(--bg); background-size: auto 68%; background-position: center top; background-repeat: no-repeat;
  }
  body.rp .trip-teaser .tt-scrim {
    background: linear-gradient(180deg, rgba(11, 15, 20, 0.6) 0%, rgba(11, 15, 20, 0.08) 16%, rgba(11, 15, 20, 0.1) 36%, rgba(11, 15, 20, 0.82) 54%, #0B0F14 68%, #0B0F14 100%);
  }
  body.rp .tt-cta { justify-self: start; }
}

/* ---------- Where to next: three numbered rows ---------- */
.rp-jump { display: grid; counter-reset: jump; }
.rp-jump-card {
  counter-increment: jump;
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; column-gap: 1.1rem;
  text-align: left; font: inherit; color: var(--text); cursor: pointer;
  background: none; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0;
  padding: 1.15rem 0;
}
.rp-jump-card:last-child { border-bottom: 1px solid var(--rp-line-strong); }
.rp-jump-card::before {
  content: counter(jump, decimal-leading-zero); grid-row: 1 / span 2;
  font: 700 3.5rem/1 var(--font-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums;
}
@supports ((-webkit-text-stroke: 1px #fff) and (paint-order: stroke fill)) {
  .rp-jump-card::before { color: var(--bg); paint-order: stroke fill; -webkit-text-stroke: 3px var(--text); }
}
@media (forced-colors: active) { .rp-jump-card::before { color: CanvasText; -webkit-text-stroke: 0; } }
.rp-jump-k { grid-column: 2; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
.rp-jump-t { grid-column: 2; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; line-height: 1.02; text-transform: uppercase; letter-spacing: 0.015em; }
.rp-jump-a { grid-column: 3; grid-row: 1 / span 2; color: var(--accent); font-size: 1.4rem; transition: transform 160ms ease; }
.rp-jump-card:hover .rp-jump-a { transform: translateX(4px); }
@media (min-width: 720px) {
  .rp-jump { grid-template-columns: repeat(3, 1fr); column-gap: clamp(1.5rem, 4vw, 3rem); }
  .rp-jump-card { grid-template-columns: minmax(0, 1fr) auto; align-items: end; padding: 1.25rem 0 0.25rem; }
  .rp-jump-card:last-child { border-bottom: 0; }
  .rp-jump-card::before { grid-column: 1 / -1; grid-row: auto; font-size: clamp(4rem, 7vw, 5.5rem); margin-bottom: 0.9rem; }
  .rp-jump-k, .rp-jump-t { grid-column: 1; }
  .rp-jump-t { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
  .rp-jump-a { grid-column: 2; grid-row: auto / span 2; }
}

/* ---------- Before onboarding: the one thing to do ---------- */
body.rp #onboardingPrompt .hex-frame {
  background: none; border: 0; border-top: 1px solid var(--rp-line-strong); border-bottom: 1px solid var(--rp-line-strong);
  border-radius: 0; padding: clamp(1.5rem, 4vw, 2.5rem) 0;
}
body.rp #onboardingPrompt h2 { font-size: clamp(2rem, 6.5vw, 3.5rem); line-height: 0.95; max-width: 14em; }

/* ============================================================
   THE LISTS: Trainings, Scripts, Videos
   Rows on hairlines, not tiles. A training carries its number as an
   outlined ordinal; a script carries its author line instead.
   ============================================================ */
body.rp .lib-panel .module-grid {
  display: block; margin-top: clamp(1.5rem, 4.5vw, 2.75rem);
  border-bottom: 1px solid var(--rp-line-strong);
}
body.rp .lib-panel .module-tile {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; row-gap: 0.3rem; align-items: start;
  grid-template-areas: "num badge" "title title" "sub sub" "meta meta";
  padding: clamp(1.15rem, 3.6vw, 1.7rem) 0;
  background: none; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0; box-shadow: none;
  transform: none !important;   /* the pointer tilt is for cards; a row stays flat */
}
body.rp .lib-panel .module-tile:hover:not(.locked) { border-color: var(--rp-line-strong); box-shadow: none; }
body.rp .lib-panel .module-tile .num {
  grid-area: num; font: 700 clamp(3.25rem, 13vw, 4.5rem)/0.9 var(--font-display);
  letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--text);
}
@supports ((-webkit-text-stroke: 1px #fff) and (paint-order: stroke fill)) {
  body.rp .lib-panel #trainings .module-tile .num {
    color: var(--bg); paint-order: stroke fill; -webkit-text-stroke: 3px var(--text);
    transition: color 180ms ease;
  }
  body.rp .lib-panel #trainings .module-tile:hover .num,
  body.rp .lib-panel #trainings .module-tile:focus-visible .num { color: var(--text); }
}
@media (forced-colors: active) { body.rp .lib-panel #trainings .module-tile .num { color: CanvasText; -webkit-text-stroke: 0; } }
/* Scripts: the author line is a small label, not a number. */
body.rp .lib-panel #scripts .module-tile .num {
  font: 700 0.68rem/1.2 var(--font-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted);
  align-self: center;
}
body.rp .lib-panel .module-tile h3 {
  grid-area: title; margin: 0.35rem 0 0;
  font: 700 clamp(1.7rem, 6.6vw, 2.25rem)/1.02 var(--font-display); letter-spacing: 0.015em; text-transform: uppercase;
}
body.rp .lib-panel .module-tile p.muted { grid-area: sub; margin: 0.15rem 0 0; font-size: 0.9375rem; line-height: 1.5; max-width: 52ch; }
body.rp .lib-panel .module-tile p.dim {
  grid-area: meta; margin: 0.45rem 0 0; padding: 0;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim);
}
body.rp .lib-panel .module-tile .badge {
  grid-area: badge; position: static; align-self: center; white-space: nowrap;
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; color: var(--text-muted);
}
body.rp .lib-panel .module-tile .badge::after {
  content: "\2192"; display: inline-block; margin-left: 0.55rem; color: var(--accent);
  font-size: 0.95rem; letter-spacing: 0; transition: transform 180ms ease;
}
body.rp .lib-panel .module-tile:hover .badge, body.rp .lib-panel .module-tile:focus-visible .badge { color: var(--text); }
body.rp .lib-panel .module-tile:hover .badge::after { transform: translateX(4px); }
body.rp .lib-panel .module-tile.done .badge { color: var(--success); }
body.rp .lib-panel .module-tile.locked .num { -webkit-text-stroke-color: var(--text-dim); }
body.rp .lib-panel .module-grid > .lib-none { padding: 1.4rem 0; border-top: 1px solid var(--rp-line-strong); margin: 0; }
@media (min-width: 900px) {
  /* One line across: number, title, what it covers, the way in. */
  body.rp .lib-panel .module-tile {
    grid-template-columns: 8.5rem minmax(0, 5fr) minmax(0, 6fr) auto; column-gap: 2rem; align-items: center;
    grid-template-areas: "num title sub badge" "num title meta badge";
    padding: 1.9rem 0;
  }
  body.rp .lib-panel .module-tile .num { font-size: 5.25rem; }
  body.rp .lib-panel #scripts .module-tile .num { font-size: 0.72rem; }
  body.rp .lib-panel .module-tile h3 { margin: 0; font-size: clamp(2rem, 3vw, 2.75rem); }
  body.rp .lib-panel .module-tile p.muted { margin: 0; align-self: end; }
  body.rp .lib-panel #trainings .module-tile p.muted { grid-row: 1 / -1; align-self: center; }
  body.rp .lib-panel .module-tile p.dim { align-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  body.rp .lib-panel .module-tile .num, body.rp .lib-panel .module-tile .badge::after { transition: none; }
  body.rp .lib-panel .module-tile:hover .badge::after { transform: none; }
}

/* ---------- Videos ---------- */
/* Topics: words, the chosen one underlined, like the board's controls. */
body.rp #videosSection #catChips { display: flex; flex-wrap: wrap; gap: 0.25rem clamp(1rem, 4vw, 1.75rem); margin-top: clamp(1.5rem, 4.5vw, 2.5rem); }
body.rp #videosSection #catChips .chip {
  min-height: 44px; padding: 0; background: none; border: 0; border-radius: 0;
  font: 700 0.75rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
  box-shadow: inset 0 -2px 0 transparent;
}
body.rp #videosSection #catChips .chip:hover { color: var(--text); }
body.rp #videosSection #catChips .chip.active { color: var(--text); background: none; box-shadow: inset 0 -2px 0 var(--text); }
body.rp #videosSection .video-grid { margin-top: 1.25rem; gap: clamp(1.75rem, 4vw, 2.5rem) clamp(1.25rem, 2.5vw, 2rem); }
/* The picture keeps its frame; the box around the card goes. */
body.rp #videosSection .video-card { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; transform: none; }
body.rp #videosSection .video-card:hover { transform: none; box-shadow: none; }
body.rp #videosSection .video-thumb { border: 1px solid var(--border); border-radius: var(--rp-r-frame); transition: border-color 180ms ease; }
body.rp #videosSection .video-card:hover .video-thumb,
body.rp #videosSection .video-card:focus-visible .video-thumb { border-color: var(--rp-line-strong); }
body.rp #videosSection .video-card:focus-visible { outline: none; }
body.rp #videosSection .video-card:focus-visible .video-thumb { outline: 2px solid var(--text); outline-offset: 3px; }
body.rp #videosSection .video-card:hover .play-btn { box-shadow: none; }
body.rp #videosSection .video-new { box-shadow: none; }
body.rp #videosSection .video-meta { padding: 0.9rem 0 0; }
body.rp #videosSection .video-title {
  margin: 0 0 0.4rem; font: 700 1.5rem/1.05 var(--font-display); letter-spacing: 0.015em; text-transform: uppercase;
}
body.rp #videosSection .video-category { color: var(--rp-red-text); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; }
body.rp #videosSection .video-empty { border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0; background: none; text-align: left; padding: 1.4rem 0; }
/* The window a card opens: a plain frame, no red glow. */
body.rp .video-modal { border-color: var(--rp-line-strong); border-radius: var(--rp-r-frame); box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6); overflow: hidden; }
body.rp .video-modal .vm-placeholder { border-radius: 0; }
body.rp .video-modal .vm-placeholder::before { background: none; }
body.rp .video-modal .vm-icon { background: none; border-color: var(--rp-line-strong); }
body.rp .video-modal .vm-icon svg { fill: var(--text); }
body.rp .video-modal .vm-close { width: 44px; height: 44px; top: 0.5rem; right: 0.5rem; border-radius: var(--radius); }
body.rp .video-modal .vm-close:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
body.rp .video-modal .vm-meta .accent { color: var(--rp-red-text); }

/* ============================================================
   GROWTH & COMP
   Stylesheet only: no markup or class was added for this, and the printed
   chart reads the shared stylesheet, which this file does not touch.
   ============================================================ */
#growthSection { --g-gap: clamp(2.25rem, 6.5vw, 4rem); }
#growthSection .growth-topbar { align-items: flex-end; }
#growthSection .cc-head h3, #growthSection .cp-head h3 {
  margin: 0.4rem 0 0; font: 700 clamp(1.9rem, 6.5vw, 2.5rem)/1 var(--font-display); letter-spacing: 0.015em; text-transform: uppercase;
}

/* ---------- The next rung ---------- */
#growthSection #ladderCard { margin-top: var(--g-gap); }
#growthSection .ladder-card {
  background: none; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0;
  padding: clamp(1.25rem, 4vw, 1.75rem) 0 0;
}
#growthSection .lad-head { align-items: flex-end; gap: 0.5rem 1.5rem; }
#growthSection .lad-next { margin-top: 0.55rem; font-size: clamp(2.4rem, 9.5vw, 4rem); line-height: 0.95; letter-spacing: 0.01em; }
#growthSection .lad-level { font-size: 0.8125rem; }
#growthSection .lad-level strong { color: var(--text); }
#growthSection .lad-reqs { gap: 1.35rem; margin-top: 1.6rem; }
#growthSection .lad-req-line { align-items: baseline; font-size: 0.9375rem; margin-bottom: 0.6rem; }
#growthSection .lad-req-stat { font: 700 1.5rem/1 var(--font-display); letter-spacing: 0.02em; }
#growthSection .lad-bar { height: 6px; border-radius: 0; background: rgba(255, 255, 255, 0.12); }
#growthSection .lad-bar span { border-radius: 0; background: var(--accent); }
#growthSection .lad-note { margin-top: 0.9rem; font-size: 0.78rem; max-width: 62ch; }

/* ---------- The chart: six rungs, each with its own line ---------- */
#growthSection .promo-chart {
  display: grid; grid-template-columns: minmax(0, 1fr);
  margin-top: var(--g-gap); padding: 0; background: none; border: 0; border-radius: 0; box-shadow: none;
}
#growthSection .promo-chart-header {
  grid-column: 1 / -1; grid-row: 1; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 1rem;
  margin: 0; padding-top: clamp(1.25rem, 4vw, 1.75rem); border-top: 1px solid var(--rp-line-strong); text-align: left;
}
#growthSection .pc-brand { font-size: clamp(1.9rem, 6.5vw, 2.5rem); letter-spacing: 0.015em; }
#growthSection .pc-subtitle { margin: 0; padding: 0; border: 0; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; color: var(--text-muted); }
/* The two views: words, the open one underlined, like the sub-tabs. */
#growthSection .pc-tabs {
  grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; gap: clamp(1.1rem, 4.5vw, 2.25rem);
  margin: 0.6rem 0 0; padding: 0; border: 0; border-bottom: 1px solid var(--border);
}
#growthSection .pc-tab {
  min-height: 46px; padding: 0; margin: 0 0 -1px; border-bottom: 2px solid transparent;
  font: 700 0.8125rem/1 var(--font-body); letter-spacing: 0.12em; color: var(--text-muted);
}
#growthSection .pc-tab::before, #growthSection .pc-tab::after { content: none; }
#growthSection .pc-tab:hover { color: var(--text); }
#growthSection .pc-tab.active { color: var(--text); border-bottom-color: var(--text); }
/* Rung and line share one grid, so a rung's line sits with it on a phone
   instead of six rungs followed by six lines. */
#growthSection #pcRoles, #growthSection #pcContent { display: contents; }
#growthSection #pcArrows { display: none; }
#growthSection .pc-role:nth-child(1), #growthSection .pc-cell:nth-child(1) { --i: 1; }
#growthSection .pc-role:nth-child(2), #growthSection .pc-cell:nth-child(2) { --i: 2; }
#growthSection .pc-role:nth-child(3), #growthSection .pc-cell:nth-child(3) { --i: 3; }
#growthSection .pc-role:nth-child(4), #growthSection .pc-cell:nth-child(4) { --i: 4; }
#growthSection .pc-role:nth-child(5), #growthSection .pc-cell:nth-child(5) { --i: 5; }
#growthSection .pc-role:nth-child(6), #growthSection .pc-cell:nth-child(6) { --i: 6; }
#growthSection .pc-role {
  grid-column: 1; grid-row: calc(var(--i) * 2 + 1);
  display: grid; grid-template-columns: 3.6rem minmax(0, 1fr) auto; align-items: center; column-gap: 1rem;
  padding: 1.15rem 0 0; text-align: left;
  background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; box-shadow: none; transform: none;
}
#growthSection .pc-role:nth-child(1) { border-top: 0; }
#growthSection .pc-role:hover, #growthSection .pc-role.is-paired { background: none; box-shadow: none; transform: none; border-color: var(--border); }
#growthSection .pc-role-you { box-shadow: none; border-top: 1px solid var(--accent); }
#growthSection .pc-role:nth-child(1).pc-role-you { border-top: 0; }
#growthSection .pc-num { grid-column: 1; grid-row: 1; font: 700 3.25rem/0.9 var(--font-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--text); }
@supports ((-webkit-text-stroke: 1px #fff) and (paint-order: stroke fill)) {
  #growthSection .pc-role:not(.pc-role-you) .pc-num { color: var(--bg); paint-order: stroke fill; -webkit-text-stroke: 3px var(--text-dim); transition: -webkit-text-stroke-color 180ms ease; }
  #growthSection .pc-role:not(.pc-role-you):hover .pc-num, #growthSection .pc-role.is-paired:not(.pc-role-you) .pc-num { -webkit-text-stroke-color: var(--text); }
}
@media (forced-colors: active) { #growthSection .pc-role .pc-num { color: CanvasText; -webkit-text-stroke: 0; } }
#growthSection .pc-title { grid-column: 2; grid-row: 1; margin: 0; font: 700 1.5rem/1.02 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
#growthSection .pc-you-tag {
  grid-column: 3; grid-row: 1; position: static; transform: none;
  padding: 0.3rem 0.55rem; border-radius: var(--radius-sm); font: 700 0.62rem/1 var(--font-body); letter-spacing: 0.16em;
}
#growthSection .pc-cell {
  grid-column: 1; grid-row: calc(var(--i) * 2 + 2);
  padding: 0.5rem 0 1.2rem calc(3.6rem + 1rem); border-radius: 0; background: none; transform: none; text-align: left;
  transition: opacity 200ms ease;
}
#growthSection .pc-cell:hover, #growthSection .pc-cell.is-paired { background: none; transform: none; }
#growthSection #pcContent.pc-leaving > .pc-cell, #growthSection #pcContent.pc-entering > .pc-cell { opacity: 0; }
#growthSection .pc-label { margin: 0; padding: 0; border: 0; text-align: left; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; color: var(--text-muted); }
#growthSection .pc-amount, #growthSection .pc-period { text-align: left; }
#growthSection .pc-period { margin: 0; font-size: 0.68rem; letter-spacing: 0.16em; }
#growthSection .pc-cell-tbd .pc-amount { color: var(--text-dim); }
/* A pay line reads across: label, figure, period. The figure keeps its size. */
#growthSection .pc-cell-growth { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem; }
#growthSection .pc-cell-list ul { margin: 0.55rem 0 0; padding-left: 1.05rem; font-size: 0.875rem; color: var(--text-muted); }
#growthSection .pc-cell-list li { margin-bottom: 0.35rem; }
#growthSection .pc-cell-list li::marker { color: var(--text-dim); }
@media (min-width: 640px) and (max-width: 999.98px) {
  /* Tablet: rung on the left, its line on the right. */
  #growthSection .promo-chart { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: 2rem; }
  #growthSection .pc-role, #growthSection .pc-cell { grid-row: calc(var(--i) + 2); }
  #growthSection .pc-role { grid-column: 1; padding: 1.25rem 0; align-self: stretch; align-content: start; }
  #growthSection .pc-cell { grid-column: 2; padding: 1.25rem 0; border-top: 1px solid var(--border); }
  #growthSection .pc-cell:nth-child(1) { border-top: 0; }
  #growthSection .pc-cell-growth { padding-top: 1.9rem; }
}
@media (min-width: 1000px) {
  /* Wide: the six rungs across, each line under its rung. */
  #growthSection .promo-chart { grid-template-columns: repeat(6, minmax(0, 1fr)); column-gap: clamp(1rem, 2vw, 2rem); }
  #growthSection .pc-role, #growthSection .pc-role:nth-child(1) {
    grid-column: var(--i); grid-row: 3; display: block; margin-top: clamp(1.5rem, 3vw, 2.25rem); padding: 1.1rem 0 0;
    border-top: 1px solid var(--rp-line-strong); align-self: stretch;
  }
  #growthSection .pc-role-you, #growthSection .pc-role:nth-child(1).pc-role-you { border-top: 2px solid var(--accent); padding-top: calc(1.1rem - 1px); }
  #growthSection .pc-num { font-size: clamp(3.5rem, 6vw, 5rem); }
  #growthSection .pc-title { margin-top: 0.7rem; font-size: clamp(1.15rem, 1.7vw, 1.5rem); min-height: 2.1em; }
  #growthSection .pc-role { position: relative; }
  #growthSection .pc-you-tag { position: absolute; top: 1.1rem; right: 0; left: auto; }
  #growthSection .pc-cell { grid-column: var(--i); grid-row: 4; padding: 1rem 0 0; }
  #growthSection .pc-cell-growth { display: block; }
  #growthSection .pc-cell-growth .pc-label { margin-bottom: 0.45rem; }
  #growthSection .pc-cell-growth .pc-period { margin-top: 0.3rem; }
  #growthSection .pc-cell-list ul { font-size: 0.8125rem; }
}

/* ---------- Comp & deals ---------- */
#growthSection .comp-calc, #growthSection .comp-pipe { margin-top: var(--g-gap); }
/* The calculator is a form, so it keeps a frame. */
#growthSection .comp-calc:not(#payoutsCard) {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--rp-r-frame);
  padding: clamp(1.25rem, 4.5vw, 2.25rem);
}
#growthSection .cc-input-row { background: var(--bg-elevated); }
#growthSection .cc-input-row:focus-within { border-color: var(--text); box-shadow: none; }
#growthSection .cc-result { text-align: left; }
#growthSection .cc-result-label { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; }
#growthSection .comp-calc > p.dim { text-align: left !important; max-width: 62ch; }
/* Real deals and the pipeline sit on rules, not in boxes. */
#growthSection #payoutsCard, #growthSection .comp-pipe {
  background: none; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0;
  padding: clamp(1.25rem, 4vw, 1.75rem) 0 0;
}
#growthSection .comp-pipe > p.dim { text-align: left !important; max-width: 62ch; }
#growthSection .pay-totals { gap: 1.25rem clamp(1.25rem, 4vw, 2.5rem); }
#growthSection .pay-total, #growthSection .cp-tot {
  padding: 0.85rem 0 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; text-align: left;
}
#growthSection .pay-total .lbl, #growthSection .cp-tot-lbl { margin-top: 0.45rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; color: var(--text-muted); }
#growthSection .pay-deal { padding: 0.9rem 0; }
#growthSection .pay-row { flex-wrap: wrap; row-gap: 0.2rem; }
#growthSection .pay-row > span:first-child { font-weight: 600; }
#growthSection .pay-stages i { height: 3px; border-radius: 0; }
#growthSection .cp-head { align-items: flex-end; margin-bottom: 1.5rem; }
#growthSection .cp-totals { gap: 1.25rem clamp(1.25rem, 4vw, 2.5rem); margin-bottom: 1.75rem; }
#growthSection .cp-form { border-radius: var(--rp-r-frame); padding: clamp(1.1rem, 4vw, 1.6rem); }
#growthSection .cp-empty { padding: 1.4rem 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; text-align: left; }
#growthSection .cp-row { padding-left: 0; padding-right: 0; }
#growthSection .cp-row-head { border-bottom-color: var(--rp-line-strong); }
#growthSection .cp-commission { color: var(--text); }
#growthSection .cp-status { border-radius: var(--radius-sm); }
#growthSection .cp-del { width: 36px; height: 36px; border-radius: var(--radius); }
#growthSection .cp-del:hover { color: var(--text); background: rgba(255, 255, 255, 0.08); }
@media (max-width: 720px) {
  /* Phone: name with the delete button beside it, the sizes and status under, the figure last. */
  #growthSection .cp-row:not(.cp-row-head) { grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 0.3rem 1rem; padding: 0.95rem 0; align-items: center; }
  #growthSection .cp-row:not(.cp-row-head) > :nth-child(1) { grid-column: 1 / 4; grid-row: 1; }
  #growthSection .cp-row:not(.cp-row-head) > :nth-child(6) { grid-column: 4; grid-row: 1; justify-self: end; }
  #growthSection .cp-row:not(.cp-row-head) > :nth-child(2) { grid-column: 1; grid-row: 2; }
  #growthSection .cp-row:not(.cp-row-head) > :nth-child(3) { grid-column: 2; grid-row: 2; }
  #growthSection .cp-row:not(.cp-row-head) > :nth-child(5) { grid-column: 3 / 5; grid-row: 2; justify-self: end; }
  #growthSection .cp-row:not(.cp-row-head) > :nth-child(4) { grid-column: 1 / 5; grid-row: 3; }
}

/* ---------- Trips: the photo cards keep their frames ---------- */
#growthSection .tg-card { border-radius: var(--rp-r-frame); }

/* ============================================================
   READING PAGES: a training, its test, a script
   Scoped to the rep pages; the printed script uses the shared sheet.
   ============================================================ */
body.rp main > #root > h1 { margin-top: 0.7rem; font-size: clamp(2.6rem, 10vw, 5rem); line-height: 0.94; letter-spacing: 0.005em; text-wrap: balance; }
body.rp main > #root > h1 + p.muted { margin-top: 0.9rem; }
body.rp main > #root > .divider { margin: clamp(1.75rem, 5vw, 2.5rem) 0; }

/* ---------- A script ---------- */
body.rp .lane-icon { display: none; }
body.rp .lane-label { display: block; margin: 0 0 0.6rem; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-muted); }
body.rp .script-tldr { margin-top: clamp(1.75rem, 5vw, 2.5rem); padding: 1.25rem 0 0; background: none; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0; }
body.rp .script-tldr > p:not(.eyebrow) { max-width: 62ch; font-size: 1.125rem; line-height: 1.55; color: var(--text); }
body.rp .script-toc { margin-top: clamp(1.75rem, 5vw, 2.5rem); padding: 1.25rem 0 0; background: none; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0; }
body.rp .script-toc-list { list-style: none; padding: 0; counter-reset: toc; }
body.rp .script-toc-list li { counter-increment: toc; margin: 0; border-top: 1px solid var(--border); }
body.rp .script-toc-list li:first-child { border-top: 0; }
body.rp .script-toc-list a {
  display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto; align-items: center; column-gap: 0.25rem;
  min-height: 50px; padding: 0.55rem 0; color: var(--text); font-size: 1rem; font-weight: 600; line-height: 1.3;
}
body.rp .script-toc-list a::before { content: counter(toc, decimal-leading-zero); font: 700 1.3rem/1 var(--font-display); letter-spacing: 0.02em; color: var(--text-dim); }
body.rp .script-toc-list a::after { content: "\2193"; color: var(--accent); font-size: 0.95rem; }
body.rp .script-toc-list a:hover { color: var(--text); }
body.rp .script-toc-list a:hover::before { color: var(--text); }
body.rp .script-section { margin-top: clamp(2.25rem, 7vw, 3.5rem); padding-top: clamp(1.4rem, 4.5vw, 2rem); border-top: 1px solid var(--rp-line-strong); }
body.rp .script-group { border-bottom: 0; padding-bottom: 0; color: var(--text-muted); letter-spacing: 0.16em; }
body.rp .script-group + .script-section { margin-top: 0.9rem; border-top: 1px solid var(--rp-line-strong); }
body.rp .script-section-head { align-items: center; gap: 0.5rem 1.1rem; margin-bottom: 1.1rem; }
body.rp .script-section-head h2 { min-width: 0; flex: 1 1 12rem; font-size: clamp(1.7rem, 6vw, 2.5rem); line-height: 1.02; }
body.rp .script-num { font: 700 clamp(3rem, 11vw, 4.25rem)/0.9 var(--font-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; color: var(--text); }
@supports ((-webkit-text-stroke: 1px #fff) and (paint-order: stroke fill)) {
  body.rp .script-num { color: var(--bg); paint-order: stroke fill; -webkit-text-stroke: 3px var(--text); }
}
@media (forced-colors: active) { body.rp .script-num { color: CanvasText; -webkit-text-stroke: 0; } }
body.rp .script-purpose { margin: 0; padding: 0; background: none; border-radius: 0; font-size: 1rem; color: var(--text-muted); }
/* The words to say: the largest, whitest text on the page. No tinted block, no side stripe. */
body.rp .script-block {
  margin: 1.6rem 0 0; padding: 1.2rem 0 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0;
  font-size: 1.125rem; line-height: 1.6; color: var(--text);
}
body.rp .script-block-extra { margin-left: 0; background: none; }
body.rp .script-step::before {
  padding: 0; background: none; border: 0; border-radius: 0; min-width: 2rem; text-align: left;
  font: 700 1.05rem/1.7 var(--font-display); letter-spacing: 0.04em; color: var(--text-dim);
}
body.rp .script-examples { margin-top: 1.6rem; }
body.rp .script-example { padding: 1.1rem 0 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
body.rp .script-example + .script-example { margin-top: 1.4rem; }
body.rp .coach-note { margin: 1.6rem 0 0; padding: 1.2rem 0 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
body.rp .coach-note li::marker { color: var(--text-dim); }

/* ---------- A test ---------- */
body.rp .quiz-q {
  margin-bottom: clamp(1.25rem, 4vw, 1.75rem); padding: clamp(1.25rem, 4vw, 1.75rem) 0 0.4rem;
  background: none; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0;
}
body.rp .quiz-q .qnum { margin-bottom: 0.75rem; font: 700 0.68rem/1 var(--font-body); letter-spacing: 0.16em; color: var(--text-muted); }
body.rp .quiz-q h4 { font-size: 1.1875rem; font-weight: 600; line-height: 1.4; color: var(--text); }
body.rp .quiz-q .options { gap: 0.6rem; }
body.rp .quiz-q .options .check { min-height: 50px; align-items: center; }
body.rp .quiz-q .options .check:hover { border-color: var(--rp-line-strong); }
body.rp .quiz-q .options .check:has(input:checked) { border-color: var(--text); background: rgba(255, 255, 255, 0.05); }
body.rp .quiz-q .options .check input:checked ~ span { color: var(--text); }
/* The score is the one giant figure on this page. */
body.rp .score-banner {
  margin-bottom: clamp(1.5rem, 5vw, 2.25rem); padding: clamp(1.25rem, 4vw, 1.75rem) 0;
  background: none; border: 0; border-top: 1px solid var(--rp-line-strong); border-bottom: 1px solid var(--rp-line-strong); border-radius: 0; text-align: left;
}
body.rp .score-banner.pass { border-color: var(--success); }
body.rp .score-banner.fail { border-color: var(--danger); }
body.rp .score-banner .pct { font-size: clamp(5.5rem, 26vw, 9.5rem); line-height: 0.9; letter-spacing: 0.005em; margin-bottom: 0.75rem; }
/* In the review, "correct" is green and "incorrect" red: the brand red on
   both made them read alike. The right answer is given in plain white. */
body.rp #resultRoot .quiz-q .qnum .accent { color: var(--success); }
body.rp #resultRoot .quiz-q p.accent { margin-top: 0.35rem; color: var(--text); }
body.rp #resultRoot .quiz-q p.muted + p.muted { margin-top: 0.35rem; }

/* ============================================================
   SIGN-IN, ONBOARDING AND THE SMALL PAGES
   Stylesheet only: no markup, script or wording changed. A form keeps its
   frame; everything else sits on rules. The pages are told apart by what
   they hold (:has); a browser without :has keeps the earlier look.
   ============================================================ */

/* Notices: a hairline in the notice's own colour, no thick side edge. */
body.rp .alert { border-left-width: 1px; border-radius: var(--radius); }
body.rp .alert.error { border-color: var(--danger); }
body.rp .alert.success { border-color: var(--success); }
body.rp .alert.info { border-color: var(--rp-line-strong); background: rgba(255, 255, 255, 0.03); }

/* A field in use gets a white edge, as the calculator's does. */
body.rp:has(#emailForm) :is(input, select, textarea):focus,
body.rp:has(#steps) :is(input, select, textarea):focus {
  border-color: var(--text); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14);
}

/* ---------- Sign-in ---------- */
body.rp:has(#emailForm) main { padding-top: clamp(2.5rem, 9vw, 5.5rem) !important; }
body.rp:has(#emailForm) main .text-center { text-align: left; }
body.rp:has(#emailForm) main .eyebrow.text-center { justify-content: flex-start; }
body.rp:has(#emailForm) main h1 { font-size: clamp(4rem, 21vw, 6.5rem) !important; line-height: 0.88; letter-spacing: 0.005em; }
body.rp:has(#emailForm) #signinSub { margin-top: clamp(1.1rem, 2.6vw, 2rem); font-size: 1.0625rem; }
body.rp:has(#emailForm) #card {
  margin-top: clamp(1.75rem, 6vw, 2.5rem); padding: clamp(1.25rem, 5vw, 2rem);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--rp-r-frame); box-shadow: none;
}
body.rp:has(#emailForm) #card input { min-height: 52px; font-size: 1.0625rem; }
body.rp:has(#emailForm) #codePrompt { font-size: 1rem !important; }
@media (min-width: 900px) {
  /* The word on the left, the form on the right. */
  body.rp:has(#emailForm) main > div {
    display: grid; grid-template-columns: minmax(0, 1fr) 27.5rem; grid-template-rows: auto auto auto 1fr;
    column-gap: clamp(3rem, 7vw, 6rem); max-width: 68rem !important;
  }
  body.rp:has(#emailForm) main > div > * { grid-column: 1; }
  body.rp:has(#emailForm) main > div > #card { grid-column: 2; grid-row: 1 / -1; margin-top: 0; }
  body.rp:has(#emailForm) main h1 { font-size: clamp(6.5rem, 13vw, 11rem) !important; }
}

/* ---------- Onboarding ---------- */
body.rp #appRoot > h1 { margin-top: 0.7rem; font-size: clamp(2.6rem, 10vw, 5rem); line-height: 0.94; letter-spacing: 0.005em; text-wrap: balance; }
body.rp #appRoot > h1 + p.muted { margin-top: clamp(0.9rem, 2vw, 1.4rem); max-width: 46ch; }
/* The three steps: numerals on one rule. Done is filled, now is white with
   a white rule, still to come is outlined. */
body.rp .steps {
  flex-wrap: nowrap; gap: 0; margin: clamp(1.75rem, 5vw, 2.5rem) 0 clamp(1.5rem, 4vw, 2rem);
  border-top: 1px solid var(--rp-line-strong);
}
body.rp .steps .step {
  display: flex; flex: 1 1 0; flex-direction: column; gap: 0.4rem; min-width: 0;
  margin-top: -1px; padding: 0.85rem 0.5rem 0 0;
  background: none; border: 0; border-top: 2px solid transparent; border-radius: 0; box-shadow: none;
  font: 700 0.68rem/1.25 var(--font-body); letter-spacing: 0.14em; color: var(--text-dim);
}
body.rp .steps .step .num { margin: 0; font-size: clamp(2.1rem, 9vw, 3rem); line-height: 0.9; color: var(--text-dim); }
@supports ((-webkit-text-stroke: 1px #fff) and (paint-order: stroke fill)) {
  body.rp .steps .step:not(.active):not(.done) .num { color: var(--bg); paint-order: stroke fill; -webkit-text-stroke: 2.5px var(--text-dim); }
}
@media (forced-colors: active) { body.rp .steps .step .num { color: CanvasText; -webkit-text-stroke: 0; } }
body.rp .steps .step.active { border-top-color: var(--text); color: var(--text); box-shadow: none; }
body.rp .steps .step.active .num { color: var(--text); }
body.rp .steps .step.done { border-top-color: var(--success); color: var(--text-muted); }
body.rp .steps .step.done .num { color: var(--success); }
/* Each step is a form: it keeps its frame. */
body.rp .step-panel.card {
  padding: clamp(1.25rem, 5vw, 2.25rem);
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--rp-r-frame); box-shadow: none;
}
body.rp .step-panel.card > h2 { font-size: clamp(1.9rem, 7.5vw, 2.6rem) !important; line-height: 1; }
body.rp .step-panel input:not([type="checkbox"]):not([type="file"]), body.rp .step-panel select { min-height: 50px; }
/* Back and Continue stay on one line each, with air between them. */
body.rp .step-panel .flex.between { gap: 0.75rem; }
body.rp .step-panel .flex.between .btn { white-space: nowrap; }
@media (max-width: 380px) { body.rp .step-panel .flex.between .btn { padding-left: 1rem; padding-right: 1rem; } }
/* A sub-heading with a note after it: keep the words on one run so they wrap as text. */
body.rp .step-panel h3.eyebrow { display: block; line-height: 1.5; }
body.rp .step-panel h3.eyebrow::before { display: inline-block; margin-right: 10px; vertical-align: -1px; }

/* ---------- "You're done" and the page that is not there ---------- */
body.rp main:has(> .eyebrow + h1) { padding-top: clamp(2.75rem, 10vw, 6rem) !important; text-align: left !important; }
body.rp main:has(> .eyebrow + h1) > h1 { margin-top: 0.7rem; font-size: clamp(3.5rem, 17vw, 8rem); line-height: 0.95; letter-spacing: 0.005em; text-wrap: balance; }
body.rp main:has(> .eyebrow + h1) > h1 + p.muted { margin-top: clamp(1.1rem, 2.6vw, 2rem); }
body.rp main:has(> .eyebrow + h1) > .hex-frame {
  padding: 1.4rem 0 0; background: none; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0;
}
body.rp main:has(> .eyebrow + h1) > .hex-frame > p.muted { max-width: 58ch; font-size: 1.0625rem; line-height: 1.6; color: var(--text); }

/* ---------- The manager's page: a light touch ----------
   Same layout. The heading is set large, the two tabs are words with a
   white rule under the open one, the invite form keeps a frame and the
   downline list sits on rules. */
body.rp:has(#inviteForm) #content > h1 { margin-top: 0.7rem; font-size: clamp(3rem, 13vw, 6rem); line-height: 0.92; letter-spacing: 0.005em; }
body.rp:has(#inviteForm) #content > h1 + p.muted { margin-top: clamp(0.9rem, 2vw, 1.4rem); max-width: 46ch; }
body.rp:has(#inviteForm) .tabs { gap: clamp(1.25rem, 5vw, 2.25rem); margin-bottom: clamp(1.25rem, 4vw, 1.75rem); border-bottom-color: var(--border); }
body.rp:has(#inviteForm) .tabs button { min-height: 46px; padding: 0.85rem 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.14em; }
body.rp:has(#inviteForm) .tabs button.active { border-bottom-color: var(--text); }
body.rp:has(#inviteForm) :is(input, select, textarea):focus { border-color: var(--text); box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.14); }
body.rp:has(#inviteForm) .tab-panel > .card { padding: clamp(1.25rem, 5vw, 2rem); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--rp-r-frame); box-shadow: none; }
body.rp:has(#inviteForm) .tab-panel > .card h2 { font-size: clamp(1.7rem, 6.5vw, 2.2rem) !important; line-height: 1; }
body.rp:has(#inviteForm) .tab-panel[data-panel="downline"] > .card { padding: 0; background: none; border: 0; border-radius: 0; }
body.rp:has(#inviteForm) #downlineTable .tbl { border: 0; border-radius: 0; background: none; }
body.rp:has(#inviteForm) #downlineTable .tbl th, body.rp:has(#inviteForm) #downlineTable .tbl td { padding: 0.85rem 0.7rem; border-bottom: 1px solid var(--border); background: none; }
body.rp:has(#inviteForm) #downlineTable .tbl th { padding-top: 0.5rem; padding-bottom: 0.6rem; border-bottom-color: var(--rp-line-strong); font: 700 0.68rem/1.3 var(--font-body); letter-spacing: 0.14em; color: var(--text-muted); }
body.rp:has(#inviteForm) #downlineTable .tbl th:first-child, body.rp:has(#inviteForm) #downlineTable .tbl td:first-child { padding-left: 0; }
body.rp:has(#inviteForm) #downlineTable .tbl th:last-child, body.rp:has(#inviteForm) #downlineTable .tbl td:last-child { padding-right: 0; }
body.rp:has(#inviteForm) #downlineTable .tbl td.r { font-variant-numeric: tabular-nums; }

/* ============================================================
   THE ARENA
   No cards. Three figures for today (doors against the goal, the streak,
   Door-XP), then ruled rows. Every rule sits under #doorsSection: the names
   it restyles (.tbl, .kpi, .chip) are shared with the manager and admin pages.
   ============================================================ */
#doorsSection { --ar-gap: clamp(2.25rem, 6.5vw, 4rem); }
#doorsSection .rc-head { align-items: flex-end; gap: 0.9rem 2rem; }
#doorsSection .rc-status { font-size: 0.8125rem; }
#doorsSection .ar-h {
  margin: var(--ar-gap) 0 1rem; padding-top: 1.1rem; border-top: 1px solid var(--rp-line-strong);
  font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1; letter-spacing: 0.015em;
}
#doorsSection #arNumbers > .ar-h:first-child { margin-top: 0; }
#doorsSection .mt-lg { margin-top: var(--ar-gap); }
/* a small label: caps, tracked, the way the public page labels a figure */
#doorsSection .dk-fig-k, #doorsSection .rc-label, #doorsSection .kpi-label, #doorsSection .dk-record-lbl,
#doorsSection .dk-pod-lbl, #doorsSection .dk-h2h-sub, #doorsSection .dk-rw-bal-lbl, #doorsSection .dk-rw-sub {
  font: 600 0.72rem/1.35 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted);
}
/* the drawn coin: a ring, in place of the emoji */
#doorsSection .dk-coin, .arena-toast .dk-coin {
  display: inline-block; flex: none; width: 0.68em; height: 0.68em; margin: 0 0.4em 0 0.1em;
  border: 0.14em solid currentColor; border-radius: 50%; vertical-align: -0.02em; box-sizing: border-box;
}

/* ---------- How the Arena works: one ruled row that opens ---------- */
#doorsSection .dk-how { margin: clamp(1.5rem, 4.5vw, 2.25rem) 0 0; background: none; border: 0; border-top: 1px solid var(--border); border-radius: 0; }
#doorsSection .dk-how > summary { padding: 1rem 0; min-height: 48px; border-radius: 0; }
#doorsSection .dk-how[open] > summary { border-bottom: 1px solid var(--border); border-radius: 0; }
#doorsSection .dk-how-mark { display: none; }
#doorsSection .dk-how-title { font: 700 1.375rem/1.1 var(--font-display); letter-spacing: 0.02em; text-transform: uppercase; }
#doorsSection .dk-how > summary:hover .dk-how-title { color: var(--text); }
#doorsSection .dk-how-hint { margin-top: 0.3rem; font: 400 0.875rem/1.45 var(--font-body); letter-spacing: 0; text-transform: none; }
#doorsSection .dk-how > summary::after { font: 300 1.9rem/1 var(--font-body); color: var(--text); }
#doorsSection .dk-how-body { padding: 0 0 1.75rem; border-bottom: 1px solid var(--border); }
#doorsSection .dk-how h3 { font: 700 1.25rem/1.1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; }
#doorsSection .dk-how p, #doorsSection .dk-how li, #doorsSection .dk-how dd, #doorsSection .dk-how figcaption { font-size: 0.9375rem; }
#doorsSection .dk-how-xp { column-gap: 1.5rem; row-gap: 0; }
#doorsSection .dk-how-xp li { padding: 0.7rem 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; font-size: 0.9375rem; color: var(--text); }
#doorsSection .dk-how-xp b { font: 700 1.5rem/1 var(--font-display); letter-spacing: 0.02em; color: var(--text); }
#doorsSection .dk-how-rules dt { color: var(--text); letter-spacing: 0.14em; }
#doorsSection .dk-how-trio li::before { border-radius: 0; width: 6px; height: 2px; top: 0.72em; }
#doorsSection .ar-subtabs { margin-top: clamp(1.25rem, 4vw, 2rem); }
#doorsSection .dk-how:not([open]) + .ar-subtabs { margin-top: 0; border-top: 1px solid var(--border); }

/* ---------- The Daily Drop's row, the push line ---------- */
#doorsSection .dk-drop-btn {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center;
  width: 100%; margin: 0; padding: 1.1rem 0; text-align: left; cursor: pointer; color: var(--text);
  background: none; border: 0; border-top: 2px solid var(--drop, var(--accent)); border-bottom: 1px solid var(--border); border-radius: 0;
}
#doorsSection .dk-drop-tag { grid-column: 1; display: flex; align-items: center; gap: 0.55rem; font: 700 0.72rem/1.4 var(--font-body); letter-spacing: 0.16em; color: var(--text); }
#doorsSection .dk-drop-btn.live .dk-drop-tag::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--drop, var(--accent)); }
#doorsSection .dk-drop-title { grid-column: 1; margin-top: 0.3rem; font: 700 clamp(1.6rem, 6vw, 2.25rem)/1 var(--font-display); letter-spacing: 0.015em; text-transform: uppercase; overflow-wrap: anywhere; }
#doorsSection .dk-drop-go { grid-column: 2; grid-row: 1 / span 2; font-size: 1.5rem; line-height: 1; transition: transform 160ms ease; }
#doorsSection .dk-drop-btn:hover .dk-drop-go { transform: translateX(4px); }
#doorsSection .dk-push { margin-top: 0.9rem; font-size: 0.875rem; }
#doorsSection .dk-push .btn, #doorsSection .ar-loglink .btn {
  min-height: 44px; padding: 0; border: 0; border-radius: 0; background: none;
  font: 700 0.78rem/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text);
  text-decoration: underline; text-decoration-color: var(--rp-line-strong); text-underline-offset: 0.4em; text-decoration-thickness: 1px;
}
#doorsSection .dk-push .btn:hover, #doorsSection .ar-loglink .btn:hover { text-decoration-color: var(--text); }
#doorsSection .ar-loglink { margin: 0.6rem 0 0; }
#doorsSection .ar-loglink .btn::after, #doorsSection .dk-push .btn::after { content: '\00A0\2192'; text-decoration: none; display: inline-block; }
#doorsSection #dkDrop:empty, #doorsSection #dkEvent:empty, #doorsSection #dkTourney:empty { display: none; }

/* ---------- Blitz and bracket ---------- */
#doorsSection .dk-event, #doorsSection .dk-tourney {
  margin: var(--ar-gap) 0 0; padding: 1.1rem 0 0; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0;
  background: none; box-shadow: none;
}
#doorsSection .dk-event.upcoming { border-top-style: dashed; }
#doorsSection .dk-event-top { flex-wrap: wrap; gap: 0.3rem 1rem; }
#doorsSection .dk-event-tag { display: inline-flex; align-items: center; gap: 0.55rem; font: 700 0.72rem/1.4 var(--font-body); letter-spacing: 0.16em; color: var(--text); animation: none; }
#doorsSection .dk-event-tag.live::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
#doorsSection .dk-event-when { font-size: 0.8125rem; font-weight: 500; }
#doorsSection .dk-event-name { margin-top: 0.5rem; font: 700 clamp(1.9rem, 6.5vw, 2.75rem)/1 var(--font-display); letter-spacing: 0.015em; text-transform: uppercase; overflow-wrap: anywhere; }
#doorsSection .dk-event-prize { margin-top: 0.4rem; font-size: 1rem; color: var(--text); }
#doorsSection .dk-event-sub, #doorsSection .dk-event-me, #doorsSection .dk-br-mymatch, #doorsSection .dk-br-champ { font-size: 0.9375rem; margin-top: 0.6rem; }
#doorsSection .dk-event-table { margin-top: 1rem; }
#doorsSection .dk-bracket { gap: 0.75rem; padding: 1.1rem 0 0.4rem; scrollbar-width: thin; }
#doorsSection .dk-br-rnd { letter-spacing: 0.14em; color: var(--text-muted); }
#doorsSection .dk-br-rnd.live { color: var(--text); }
#doorsSection .dk-br-match { border-radius: var(--radius-sm); background: none; }
#doorsSection .dk-br-match.mine { border-color: var(--text); box-shadow: none; }
#doorsSection .dk-br-side { font-size: 0.8125rem; }
#doorsSection .dk-br-side.you { background: rgba(255, 255, 255, 0.07); }
#doorsSection .dk-br-side.win .dk-br-sc { color: var(--text); }
#doorsSection .dk-br-seed { color: var(--text-muted); }
#doorsSection .dk-how-fig { padding: 1rem; margin-top: 0.9rem; border: 1px dashed var(--rp-line-strong); border-radius: var(--radius-lg); }

/* ---------- Today: three figures ---------- */
.dk-hero { display: grid; grid-template-columns: 1fr 1fr; column-gap: 1.25rem; }
.dk-fig { min-width: 0; padding: 1.1rem 0 1.25rem; border-top: 1px solid var(--rp-line-strong); }
.dk-fig-doors { grid-column: 1 / -1; padding-bottom: 1.6rem; }
#doorsSection .dk-fig-doors .dk-fig-k { display: flex; align-items: center; gap: 10px; color: var(--text); letter-spacing: 0.18em; }
.dk-fig-doors .dk-fig-k::before { content: ''; flex: none; width: 20px; height: 11px; transform: skewX(-24deg); background: var(--rp-stripes); }
.dk-fig-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 0.7rem; margin-top: 0.35rem; }
.dk-fig-n { font: 700 clamp(4rem, 19vw, 5.5rem)/0.95 var(--font-display); letter-spacing: 0.005em; font-variant-numeric: tabular-nums; color: var(--text); }
.dk-fig-doors .dk-fig-n { font-size: clamp(7rem, 38vw, 11rem); line-height: 0.9; }
.dk-fig-of { font: 700 clamp(1.75rem, 8vw, 2.5rem)/1 var(--font-display); letter-spacing: 0.02em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.dk-fig-bar { height: 6px; margin-top: 1.1rem; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.dk-fig-bar > span { display: block; height: 100%; min-width: 2px; background: var(--accent); transform-origin: 0 50%; }
.dk-fig-doors.done .dk-fig-bar > span { background: var(--success); }
.dk-fig-meta { display: flex; flex-wrap: wrap; gap: 0.15rem 0.9rem; margin-top: 0.55rem; font-size: 0.875rem; line-height: 1.5; color: var(--text-muted); }
.dk-fig-meta strong { color: var(--text); }
.dk-fig-streak:not(.on) .dk-fig-n { color: var(--text-dim); }
#doorsSection .dk-freeze {
  align-self: center; margin: 0; padding: 0.2rem 0.5rem; border-radius: var(--radius-sm);
  font: 700 0.68rem/1.3 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); background: none; border: 1px solid var(--border);
}
#doorsSection .dk-freeze.has { color: var(--text); border-color: var(--rp-line-strong); background: none; }
@media (min-width: 900px) {
  .dk-hero { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(2rem, 4.5vw, 4rem); }
  .dk-fig-doors { grid-column: auto; }
  .dk-fig { padding-top: 1.25rem; }
  .dk-fig-n { font-size: clamp(5.5rem, 9.5vw, 8rem); }
  .dk-fig-doors .dk-fig-n { font-size: clamp(9rem, 16vw, 13.5rem); }
  .dk-fig-streak, .dk-fig-xp { display: flex; flex-direction: column; }
  .dk-fig-streak .dk-fig-row, .dk-fig-xp .dk-fig-row { margin-top: auto; padding-top: 1rem; }
}

/* ---------- Quests, the weekly goal ---------- */
#doorsSection .dk-quests-head { margin: var(--ar-gap) 0 0; padding: 1.1rem 0 0.9rem; border-top: 1px solid var(--rp-line-strong); align-items: baseline; font: 700 clamp(1.6rem, 5vw, 2.1rem)/1 var(--font-display); letter-spacing: 0.015em; text-transform: uppercase; }
#doorsSection .dk-quests-prog { font: 600 0.875rem/1 var(--font-body); letter-spacing: 0.04em; text-transform: none; color: var(--text-muted); font-variant-numeric: tabular-nums; }
#doorsSection .dk-quests { gap: 0 clamp(1.5rem, 4vw, 3rem); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
#doorsSection .dk-quest { align-items: flex-end; gap: 1rem; padding: 0.95rem 0 1.05rem; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; }
#doorsSection .dk-quest-text { margin-bottom: 0.6rem; font-size: 1rem; font-weight: 600; }
#doorsSection .dk-quest-bar, #doorsSection .dk-week-bar, #doorsSection .dk-h2h-bar { height: 4px; border: 0; border-radius: 0; background: rgba(255, 255, 255, 0.12); }
#doorsSection .dk-quest-bar > span, #doorsSection .dk-week-bar > span, #doorsSection .dk-h2h-bar > span { border-radius: 0; }
#doorsSection .dk-quest-xp { font: 700 1.5rem/0.9 var(--font-display); letter-spacing: 0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
#doorsSection .dk-quest.done .dk-quest-xp { color: var(--success); }
#doorsSection .dk-quest.done .dk-quest-text { color: var(--text-muted); }
#doorsSection .dk-week-card { padding: 1.1rem 0 0; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0; background: none; }
#doorsSection .dk-week-top { margin-bottom: 0.8rem; font-size: 1rem; color: var(--text-muted); }
#doorsSection .dk-week-top strong { font: 700 1.75rem/1 var(--font-display); letter-spacing: 0.02em; color: var(--text); font-variant-numeric: tabular-nums; }
#doorsSection .dk-week-bar { height: 6px; }
#doorsSection .dk-week-card:has(.dk-week-note.kpi-good) .dk-week-bar > span { background: var(--success); }
#doorsSection .dk-week-note { margin-top: 0.6rem; font-size: 0.875rem; }

/* ---------- Coins and the store: kept small, coins are not a headline ---------- */
#doorsSection .dk-rw { padding: 1.1rem 0 0; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0; background: none; }
#doorsSection .dk-rw-head { align-items: baseline; }
#doorsSection .dk-rw-bal { align-items: baseline; gap: 0.5rem; }
#doorsSection .dk-rw-coin { margin: 0; font-size: 1.5rem; color: var(--text-muted); }
#doorsSection .dk-rw-bal-n { font: 700 2.25rem/1 var(--font-display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
#doorsSection .dk-rw-meta { font-size: 0.8125rem; }
#doorsSection .dk-rw-sub { margin: 0 0 0.2rem; }
#doorsSection .dk-rw-pass { margin-top: 1.25rem; padding: 1rem 0 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; }
#doorsSection .dk-rw-pass-name { font: 700 1.25rem/1.1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; }
#doorsSection .dk-rw-track { margin-top: 1rem; padding-bottom: 0.5rem; scrollbar-width: thin; }
#doorsSection .dk-rw-tier { min-width: 76px; padding: 0.6rem 0.5rem; border-radius: var(--radius-sm); background: none; opacity: 1; color: var(--text-dim); }
#doorsSection .dk-rw-tier .dk-rw-tier-lbl { color: inherit; }
#doorsSection .dk-rw-tier.unlocked { border-color: var(--text); background: none; color: var(--text); }
#doorsSection .dk-rw-tier.claimed { border-color: rgba(45, 212, 143, 0.5); background: none; color: var(--text); }
#doorsSection .dk-rw-tier-mark { height: 1.1rem; font-size: 0.9rem; line-height: 1.1rem; color: var(--success); }
#doorsSection .dk-rw-tier.unlocked .dk-rw-tier-mark::before { content: ''; display: inline-block; width: 0.7rem; height: 0.7rem; border: 2px solid var(--text); border-radius: 50%; box-sizing: border-box; }
#doorsSection .dk-rw-tier-xp { color: var(--text-muted); font-variant-numeric: tabular-nums; }
#doorsSection .dk-rw-store { margin-top: 1.5rem; }
#doorsSection .dk-rw-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 0 clamp(1.5rem, 4vw, 3rem); }
#doorsSection .dk-rw-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 1rem; padding: 0.9rem 0; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; }
#doorsSection .dk-rw-item.cant { opacity: 1; }
#doorsSection .dk-rw-item.cant .dk-rw-item-name { color: var(--text-muted); }
#doorsSection .dk-rw-item-name { grid-column: 1; font-size: 1rem; font-weight: 600; }
#doorsSection .dk-rw-item-desc { grid-column: 1; font-size: 0.8125rem; }
#doorsSection .dk-rw-item-foot { grid-column: 2; grid-row: 1 / span 2; margin: 0; gap: 0.9rem; }
#doorsSection .dk-rw-cost { display: inline-flex; align-items: center; font: 700 1.25rem/1 var(--font-display); letter-spacing: 0.02em; font-variant-numeric: tabular-nums; }
#doorsSection .btn-disabled { background: none; border-color: var(--border); color: var(--text-dim); opacity: 1; }
#doorsSection .dk-rw-hist { margin-top: 1.25rem; border-top: 1px solid var(--border); }
#doorsSection .dk-rw-hist > summary { padding: 0.9rem 0; min-height: 44px; font-size: 0.875rem; }
#doorsSection .dk-rw-badge { padding: 0; border-radius: 0; background: none; font: 700 0.68rem/1.4 var(--font-body); letter-spacing: 0.12em; text-transform: uppercase; }
#doorsSection .dk-load-error { padding: 0.9rem 0; border-top: 1px solid var(--border); font-size: 0.875rem; }

/* ---------- Tables: ruled, no fills ---------- */
#doorsSection .tbl { font-size: 0.9375rem; }
#doorsSection .tbl th, #doorsSection .tbl td { padding: 0.8rem 0.6rem; border-bottom: 1px solid var(--border); }
#doorsSection .tbl th { padding-top: 0.5rem; padding-bottom: 0.6rem; background: none; font: 600 0.68rem/1.3 var(--font-body); letter-spacing: 0.14em; color: var(--text-muted); border-bottom-color: var(--rp-line-strong); white-space: nowrap; }
#doorsSection .tbl th:first-child, #doorsSection .tbl td:first-child { padding-left: 0; }
#doorsSection .tbl th:last-child, #doorsSection .tbl td:last-child { padding-right: 0; }
#doorsSection .tbl tr:hover td { background: none; }
#doorsSection .tbl td.r { font-variant-numeric: tabular-nums; }
/* the place: a condensed numeral in the first column of a ranked table */
#doorsSection .dk-lg-table td:first-child, #doorsSection #dkBoard .tbl td:first-child, #doorsSection .dk-event-table td:first-child {
  width: 2.4rem; font: 700 1.5rem/1 var(--font-display); letter-spacing: 0.01em; color: var(--text-muted); font-variant-numeric: tabular-nums;
}
#doorsSection .dk-lg-table td:nth-child(2), #doorsSection #dkBoard .tbl td:nth-child(2), #doorsSection .dk-event-table td:nth-child(2) { width: 100%; font-weight: 500; overflow-wrap: anywhere; }
#doorsSection .dk-lg-table td strong, #doorsSection .dk-event-table td strong { font-weight: 700; }
/* your own row: white and bold on a faint band, with the tag */
#doorsSection .dk-lg-you td, #doorsSection .dk-board-you td, #doorsSection .dk-event-you td { background: rgba(255, 255, 255, 0.055); font-weight: 700; color: var(--text); }
#doorsSection .dk-lg-you td:first-child, #doorsSection .dk-board-you td:first-child, #doorsSection .dk-event-you td:first-child { color: var(--text); padding-left: 0.5rem; }
#doorsSection .dk-lg-you td:last-child, #doorsSection .dk-board-you td:last-child, #doorsSection .dk-event-you td:last-child { padding-right: 0.5rem; }
#doorsSection .dk-you-tag { display: inline-block; margin-left: 0.45rem; padding: 0.12rem 0.4rem; border-radius: 3px; font: 700 0.6rem/1.3 var(--font-body); letter-spacing: 0.12em; vertical-align: 0.12em; }
#doorsSection .dk-anon { color: var(--text-muted); }
#doorsSection .dk-board-gap td { color: var(--text-muted); }

/* ---------- The weekly league ---------- */
#doorsSection .dk-league { padding: 0; border: 0; border-radius: 0; background: none; }
#doorsSection .dk-lg-head { align-items: baseline; }
#doorsSection .dk-lg-tier-name { font: 700 clamp(2rem, 7.5vw, 3.25rem)/0.95 var(--font-display); letter-spacing: 0.01em; text-transform: uppercase; }
#doorsSection .dk-lg-reset { padding: 0; border: 0; border-radius: 0; background: none; font-size: 0.875rem; font-weight: 500; }
#doorsSection .dk-tierladder { flex-wrap: wrap; gap: 0.2rem 0.55rem; margin: 0.9rem 0 1.4rem; }
#doorsSection .dk-tierpip { filter: none; transform: none; font: 600 0.72rem/1.6 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
#doorsSection .dk-tierpip.past { filter: none; color: var(--text-muted); }
#doorsSection .dk-tierpip.on { filter: none; transform: none; color: var(--text); border-bottom: 2px solid var(--accent); }
#doorsSection .dk-tiersep { color: var(--text-dim); }
/* promote and drop: no coloured edge on the rows; a labelled line where the zone changes */
#doorsSection .dk-lg-row.dk-lg-promote td:first-child, #doorsSection .dk-lg-row.dk-lg-relegate td:first-child { box-shadow: none; }
#doorsSection .dk-lg-table tr.dk-lg-line td { padding: 0; border-bottom: 0; width: auto; font: 700 0.68rem/1 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }
#doorsSection .dk-lg-table tr.dk-lg-line td span { display: flex; align-items: center; gap: 0.75rem; padding: 0.55rem 0; white-space: nowrap; }
#doorsSection .dk-lg-table tr.dk-lg-line td span::after { content: ''; flex: 1; height: 1px; background: currentColor; opacity: 0.55; }
#doorsSection .dk-lg-table tr.dk-lg-line.promote td { color: var(--success); }
#doorsSection .dk-lg-table tr.dk-lg-line.relegate td { color: var(--danger); }
#doorsSection .dk-lg-legend { margin-top: 0.9rem; font-size: 0.875rem; }
#doorsSection .dk-lg-key { font: 700 0.68rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; }

/* ---------- Head-to-head: the two scores, face to face ---------- */
#doorsSection .dk-h2h { padding: 1.1rem 0 0; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0; background: none; }
#doorsSection .dk-h2h-head { align-items: baseline; font: 700 clamp(1.6rem, 5vw, 2.1rem)/1 var(--font-display); letter-spacing: 0.015em; text-transform: uppercase; }
#doorsSection .dk-h2h-rec { padding: 0; border: 0; border-radius: 0; background: none; font: 600 0.875rem/1 var(--font-body); letter-spacing: 0.06em; color: var(--text-muted); }
#doorsSection .dk-h2h-vs { align-items: end; gap: 0.75rem; margin: 1.25rem 0 0.9rem; }
#doorsSection .dk-h2h-side { min-width: 0; padding: 0; border: 0; border-radius: 0; background: none; text-align: left; }
#doorsSection .dk-h2h-side:last-child { text-align: right; }
#doorsSection .dk-h2h-name { font: 600 0.72rem/1.35 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
#doorsSection .dk-h2h-side.win .dk-h2h-name { color: var(--text); }
#doorsSection .dk-h2h-xp { margin-top: 0.3rem; font: 700 clamp(3.75rem, 17vw, 6.5rem)/0.92 var(--font-display); letter-spacing: 0.005em; color: var(--text-muted); font-variant-numeric: tabular-nums; }
#doorsSection .dk-h2h-side.win .dk-h2h-xp { color: var(--text); }
#doorsSection .dk-h2h-sub { margin-top: 0.55rem; }
#doorsSection .dk-h2h-mid { align-self: center; font: 700 1.125rem/1 var(--font-display); letter-spacing: 0.08em; color: var(--text-dim); }
#doorsSection .dk-h2h-bar { height: 6px; }
#doorsSection .dk-h2h-foot { margin-top: 0.7rem; text-align: left; font-size: 0.9375rem; }

/* ---------- Team figures (company totals, last 30 days, records) ---------- */
#doorsSection .rc-totals, #doorsSection .kpi-grid, #doorsSection .dk-records {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 4vw, 3rem);
}
#doorsSection .rc-stat, #doorsSection .kpi, #doorsSection .dk-record {
  padding: 0.95rem 0 1.1rem; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; text-align: left; transition: none;
}
#doorsSection .rc-stat .rc-num, #doorsSection .kpi-num, #doorsSection .dk-record-val {
  font: 700 clamp(2.75rem, 12vw, 4rem)/0.95 var(--font-display); letter-spacing: 0.01em; color: var(--text); font-variant-numeric: tabular-nums;
}
#doorsSection .rc-stat .rc-num.rc-bump { color: var(--accent-hover); }
#doorsSection .rc-stat .rc-label, #doorsSection .kpi-label, #doorsSection .dk-record-lbl { margin-top: 0.45rem; }
#doorsSection .kpi-delta, #doorsSection .dk-record-sub { margin-top: 0.3rem; font-size: 0.8125rem; font-weight: 500; color: var(--text-muted); }
#doorsSection .rc-preview-note { padding: 0 0 0.8rem; border: 0; border-radius: 0; background: none; font-size: 0.8125rem; }
#doorsSection #rcTotals { padding-top: 1.1rem; border-top: 1px solid var(--rp-line-strong); }
@media (min-width: 720px) {
  #doorsSection .rc-totals { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  #doorsSection .kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #doorsSection .dk-records { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { #doorsSection .kpi-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }

/* ---------- Team leaderboard ---------- */
#doorsSection .dk-board-controls { gap: 0.25rem 2.5rem; margin-bottom: 1.5rem; }
#doorsSection .dk-seg { padding: 0; gap: 1.1rem; border: 0; border-radius: 0; background: none; }
#doorsSection .dk-seg-btn { min-height: 40px; padding: 0; border-radius: 0; border-bottom: 2px solid transparent; font: 700 0.78rem/1 var(--font-body); letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); }
#doorsSection .dk-seg-btn.active { background: none; color: var(--text); border-bottom-color: var(--text); }
#doorsSection .dk-podium { max-width: 560px; margin: 0 0 1.5rem; gap: 0.5rem; grid-template-columns: 1fr 1.15fr 1fr; }
#doorsSection .dk-pod-name { font-size: 0.8125rem; font-weight: 600; color: var(--text-muted); }
#doorsSection .dk-pod-you .dk-pod-name { color: var(--text); }
#doorsSection .dk-pod-doors { font: 700 clamp(2rem, 9vw, 3rem)/1 var(--font-display); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
#doorsSection .dk-pod-1 .dk-pod-doors { font-size: clamp(2.75rem, 12vw, 4.25rem); color: var(--text); }
#doorsSection .dk-pod-bar { margin-top: 0.6rem; border: 0; border-top: 2px solid var(--rp-line-strong); border-radius: 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0)); box-shadow: none; }
#doorsSection .dk-pod-1 .dk-pod-bar { height: 96px; border-top-color: var(--text); background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0)); }
#doorsSection .dk-pod-2 .dk-pod-bar { height: 64px; }
#doorsSection .dk-pod-3 .dk-pod-bar { height: 40px; }
#doorsSection .dk-pod-you .dk-pod-bar { border-top-color: var(--accent); box-shadow: none; }
#doorsSection .dk-pod-lbl { margin-top: 0.4rem; }
#doorsSection .dk-pod-rank { font: 700 1.75rem/1 var(--font-display); color: var(--text-muted); }
#doorsSection .dk-pod-1 .dk-pod-rank { font-size: 2.5rem; color: var(--text); }
#doorsSection .dk-chase { margin: 0 0 1.25rem; padding: 1.1rem 0 1.2rem; border: 0; border-top: 1px solid var(--rp-line-strong); border-radius: 0; background: none; }
#doorsSection .dk-chase-rank { align-items: baseline; gap: 0.2rem 0.6rem; font-size: 1rem; font-weight: 600; }
#doorsSection .dk-chase-num { font: 700 clamp(4.5rem, 21vw, 7rem)/0.9 var(--font-display); letter-spacing: 0.005em; color: var(--text); }
#doorsSection .dk-chase-gaps { margin-top: 0.8rem; font-size: 1rem; }
#doorsSection .dk-rk { color: var(--text); }
#doorsSection .dk-move-up, #doorsSection .dk-move-down, #doorsSection .dk-move-new { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; }

/* ---------- My numbers ---------- */
#doorsSection #arNumbers > .hex-frame { padding: clamp(1.1rem, 4vw, 1.75rem); background: var(--bg-card); }
#doorsSection #arNumbers > .hex-frame h3 { font-size: clamp(1.6rem, 5vw, 2.1rem); line-height: 1; }
#doorsSection .dk-badges { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(1.25rem, 4vw, 3rem); }
#doorsSection .dk-badge { align-items: flex-start; text-align: left; gap: 0.15rem; padding: 0.8rem 0 0.9rem; border: 0; border-top: 1px solid var(--border); border-radius: 0; background: none; opacity: 1; filter: none; }
#doorsSection .dk-badge-name { font: 700 1.25rem/1.1 var(--font-display); letter-spacing: 0.03em; text-transform: uppercase; color: var(--text-dim); }
#doorsSection .dk-badge-hint { font-size: 0.78rem; color: var(--text-dim); }
#doorsSection .dk-badge.earned .dk-badge-name { color: var(--text); }
#doorsSection .dk-badge.earned .dk-badge-hint { font: 700 0.66rem/1.4 var(--font-body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--success); }
@media (min-width: 720px) { #doorsSection .dk-badges { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
#doorsSection #dkRecent .tbl { font-size: 0.875rem; }
#doorsSection #dkRecent .tbl th, #doorsSection #dkRecent .tbl td { padding-left: 0.3rem; padding-right: 0.3rem; }
#doorsSection #dkRecent .tbl th { font-size: 0.64rem; letter-spacing: 0.06em; }
#doorsSection .kpi-inputs { align-items: end; gap: 0.5rem 0.9rem; }
#doorsSection #dkRecent .tbl td:first-child { white-space: nowrap; font-variant-numeric: tabular-nums; }
#doorsSection .dk-src-live { display: inline-block; width: 6px; height: 6px; margin-left: 0.3rem; border-radius: 50%; background: var(--success); vertical-align: 0.15em; }

/* ---------- Standings on a wide screen: two columns, so a name and its number stay close ---------- */
@media (min-width: 1000px) {
  #doorsSection #arCompete:not(.hidden) { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: clamp(3rem, 6vw, 5.5rem); align-items: start; }
  #doorsSection #arCompete > * { grid-column: 1 / -1; }
  #doorsSection #arCompete > #dkLeague { grid-column: 1; }
  #doorsSection #arCompete > #dkH2H { grid-column: 2; margin-top: 0; }
  #doorsSection #arCompete > #dkH2H .dk-h2h { border-top: 0; padding-top: 0.4rem; }
  #doorsSection .dk-h2h-xp { font-size: clamp(3.75rem, 6.6vw, 6rem); }
  #doorsSection #dkBoard:has(.dk-podium) { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(3rem, 6vw, 5.5rem); align-items: start; }
  #doorsSection #dkBoard > .dk-board-controls { grid-column: 1 / -1; }
  #doorsSection #dkBoard > .dk-podium, #doorsSection #dkBoard > .dk-chase { grid-column: 1; }
  #doorsSection #dkBoard > .dk-podium { max-width: none; }
  #doorsSection #dkBoard > .dk-podium + .dk-chase + div { grid-column: 2; grid-row: 2 / span 2; }
}

/* ---------- Toast ---------- */
body.rp .arena-toast { border-radius: var(--radius); padding: 0.8rem 1.1rem; font-size: 0.875rem; letter-spacing: 0.01em; max-width: calc(100vw - 2rem); text-align: center; }

/* The Arena's figures arrive once, the first time they are drawn (the script
   sets .ar-intro for a moment). Later redraws are still. */
/* ============================================================
   MOTION
   One move, used everywhere: a part rises a little and fades in as its page
   or tab opens, one after the other. Stylesheet only and behind the motion
   preference. Nothing waits on it, and it leaves nothing behind when it
   ends (no fill after the move), so a part can never stay hidden.
   The Arena has its own opening move, below.
   ============================================================ */
@media (prefers-reduced-motion: no-preference) {
  body.rp .lib-panel:not(#doorsSection) > *,
  body.rp main > #root > *,
  body.rp #appRoot > *,
  body.rp:has(#emailForm) main > div > *,
  body.rp main:has(> .eyebrow + h1) > *,
  body.rp:has(#inviteForm) #content > * {
    animation: rpRise 440ms cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  }
  body.rp .lib-panel:not(#doorsSection) > :nth-child(2), body.rp main > #root > :nth-child(2), body.rp #appRoot > :nth-child(2),
  body.rp:has(#emailForm) main > div > :nth-child(2), body.rp main:has(> .eyebrow + h1) > :nth-child(2), body.rp:has(#inviteForm) #content > :nth-child(2) { animation-delay: 60ms; }
  body.rp .lib-panel:not(#doorsSection) > :nth-child(3), body.rp main > #root > :nth-child(3), body.rp #appRoot > :nth-child(3),
  body.rp:has(#emailForm) main > div > :nth-child(3), body.rp main:has(> .eyebrow + h1) > :nth-child(3), body.rp:has(#inviteForm) #content > :nth-child(3) { animation-delay: 120ms; }
  body.rp .lib-panel:not(#doorsSection) > :nth-child(n+4), body.rp main > #root > :nth-child(n+4), body.rp #appRoot > :nth-child(n+4),
  body.rp:has(#emailForm) main > div > :nth-child(n+4), body.rp main:has(> .eyebrow + h1) > :nth-child(n+4), body.rp:has(#inviteForm) #content > :nth-child(n+4) { animation-delay: 180ms; }
  /* The promotion bars fill from the left as the path opens. */
  #growthSection .lad-bar span { transform-origin: 0 50%; animation: arGrow 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 240ms backwards; }
}
@keyframes rpRise { from { opacity: 0; translate: 0 12px; } }

@media (prefers-reduced-motion: no-preference) {
  #doorsSection.ar-intro .dk-fig { animation: arRise 520ms cubic-bezier(0.2, 0.7, 0.2, 1) both; }
  #doorsSection.ar-intro .dk-fig-streak { animation-delay: 90ms; }
  #doorsSection.ar-intro .dk-fig-xp { animation-delay: 180ms; }
  #doorsSection.ar-intro .dk-fig-bar > span { animation: arGrow 800ms cubic-bezier(0.2, 0.7, 0.2, 1) 120ms both; }
}
@keyframes arRise { from { opacity: 0; transform: translateY(14px); } }
@keyframes arGrow { from { transform: scaleX(0); } }

@media (prefers-reduced-motion: reduce) {
  .rp-jump-a, body.rp .btn, #doorsSection .dk-drop-go { transition: none; }
}
