/*
 * The rider portal.
 *
 * ⛔ LIGHT, not the app's near-black. The two surfaces are not the same
 * product in two skins: the app is read outdoors at arm's length with a glove
 * on, where a dark screen and huge numbers win, and this is read sitting
 * down, on a laptop, usually next to the club's own website. A dark portal in
 * a browser tab reads as a different company's page.
 *
 * It takes site.css's tokens so the marketing site and the portal are plainly
 * the same thing, and adds only what a signed-in surface needs: a header with
 * an account menu, cards, progress bars, a table and a form layout.
 *
 * ⚠️ Loaded ALONGSIDE site.css, not instead of it. Everything below assumes
 * those variables exist.
 */

/* ---- shell -------------------------------------------------------------- */
.rp-head {
  background: var(--bg-deep);
  color: var(--on-deep);
  border-bottom: 1px solid var(--line-deep);
}
.rp-head .wrap { display: flex; align-items: center; gap: 20px; min-height: 64px; flex-wrap: wrap; }
.rp-head .logo { display: flex; align-items: center; }
.rp-head .who { margin-left: auto; display: flex; align-items: center; gap: 12px; font-size: 14px; }
.rp-head .who b { color: #fff; font-weight: 700; }
.rp-head .who .club { color: var(--on-deep-2); }
.rp-head form { margin: 0; }
.rp-signout {
  background: transparent; border: 1px solid var(--line-deep); color: var(--on-deep);
  border-radius: var(--r-pill); padding: 8px 16px; font: 600 14px Inter, system-ui, sans-serif;
  cursor: pointer;
  /* ⚠️ A pill must not wrap. Squeezed by the name beside it, "Log ud"
     broke onto two lines INSIDE the pill — a two-word button rendered as a
     circle with half a word in it. */
  white-space: nowrap; flex: none;
}
.rp-signout:hover { background: rgba(255, 255, 255, .08); color: #fff; }

.rp-nav { background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 30; }
.rp-nav .wrap { display: flex; gap: 4px; overflow-x: auto; }
.rp-nav a {
  padding: 16px 16px; text-decoration: none; font-size: 15px; font-weight: 600;
  color: var(--ink-3); border-bottom: 3px solid transparent; white-space: nowrap;
}
.rp-nav a:hover { color: var(--ink); }
.rp-nav a[aria-current="page"] { color: var(--accent-deep); border-bottom-color: var(--accent); }

/* ⚠️ No min-height. site.css makes body a flex column and gives main
   flex:1, so the portal's content area already fills whatever is left and
   the footer sits on the bottom edge. A 60vh floor on top of that just
   guarantees a gap on a page with one card in it. */
.rp-main { padding: 32px 0 72px; background: var(--bg-alt); }
/* ⚠️ The heading owns no bottom margin; the thing AFTER it owns the gap.
   With a flat 4px, a page with no subtitle put a 29px title 4px above its
   first card — glued on — while a page with one got 4 + 24. Two different
   rhythms from one rule. */
.rp-main > .wrap > h1 { font-size: 29px; margin-bottom: 0; }
.rp-main > .wrap > h1 + .sub { margin-top: 4px; }
.rp-main > .wrap > h1 + *:not(.sub) { margin-top: 20px; }
.rp-main .sub { color: var(--ink-3); margin-bottom: 24px; }

/* ---- flash -------------------------------------------------------------- */
.rp-flash {
  border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 20px;
  font-size: 15px; border: 1px solid;
}
.rp-flash.success { background: #e9f6ef; border-color: #b4ddc6; color: #10603a; }
.rp-flash.error { background: #fdedef; border-color: #f0c2c7; color: #8d1f29; }
/* ⚠️ A third tone. Success and error both assert that something just
   HAPPENED; a note on a form that has not been submitted yet is neither,
   and wearing green made the club-signup plan note read as a confirmation. */
.rp-flash.info { background: #eef3fb; border-color: #c3d4ec; color: #244070; }

/* A code a human has to read aloud or type into a phone. Was a hand-typed
   `font:` shorthand inline on the one view that shows it. */
.rp-code {
  font: 800 var(--text-6xl)/1 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .18em; margin: 14px 0;
}

/* ---- cards -------------------------------------------------------------- */
.rp-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-1); padding: 24px; margin-bottom: 20px;
}
.rp-card > h2 { font-size: 19px; margin-bottom: 4px; }
.rp-card > h2 + p { color: var(--ink-3); font-size: 15px; margin-bottom: 16px; }
.rp-card.danger { border-color: #f0c2c7; }
.rp-card.danger > h2 { color: #8d1f29; }

/* ---- the level hero ----------------------------------------------------- */
.rp-hero { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.rp-ring {
  --pct: 0;
  width: 112px; height: 112px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; position: relative;
  /* One conic gradient, no SVG and no canvas: the arc is the background. */
  background: conic-gradient(var(--accent) calc(var(--pct) * 1%), var(--line) 0);
}
.rp-ring::after {
  content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--bg);
}
.rp-ring span { position: relative; z-index: 1; text-align: center; }
.rp-ring .n { display: block; font-size: 34px; font-weight: 800; line-height: 1; }
.rp-ring .l {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--ink-3); margin-top: 4px;
}
.rp-xp .big { font-size: 42px; font-weight: 800; letter-spacing: -.03em; color: var(--accent-deep); line-height: 1; }
.rp-xp .lab { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.rp-xp .next { font-size: 14px; color: var(--ink-3); margin-top: 8px; }

/* ---- stat grid ---------------------------------------------------------- */
.rp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 20px; }
.rp-stat {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; box-shadow: var(--sh-1);
}
.rp-stat .n { font-size: 29px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
/* ⚠️ A two-line floor. The Danish labels are about half again as long as
   the English — "Stops checked in" vs "Stop tjekket ind", "Average
   completion" vs "Gennemsnitlig gennemførelse" — so a row of four tiles had
   some one line tall and some two, and the numbers above them stopped
   sharing a baseline. Reserving the second line costs nothing in English. */
.rp-stat .l { font-size: 13px; line-height: 1.3; color: var(--ink-3); margin-top: 8px; min-height: 2.6em; }

/* ---- challenge rows ----------------------------------------------------- */
.rp-list { display: grid; gap: 12px; }
.rp-item {
  display: flex; gap: 16px; align-items: center;
  background: var(--bg); border: 1px solid var(--line); border-left: 3px solid var(--accent);
  border-radius: var(--r-md); padding: 16px 20px; box-shadow: var(--sh-1);
  text-decoration: none; color: inherit;
}
.rp-item:hover { box-shadow: var(--sh-2); }
.rp-item.quiet { border-left-color: var(--line); }
/* The slot is always present so every row in a list shares one left edge;
   it is empty, not absent, when a club has no logo. */
.rp-item .logo {
  width: 48px; height: 48px; border-radius: var(--r-sm); flex: 0 0 auto;
  background: var(--bg-alt); overflow: hidden; display: block;
}
.rp-item .logo img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Each fact wraps as a unit, and CSS draws the dots between them. */
.rp-item .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.rp-item .meta .bit { white-space: nowrap; }
.rp-item .meta .bit + .bit::before { content: "\00b7"; color: var(--faint); margin-right: 8px; }
.rp-item .meta .rp-pill + .bit::before { content: ""; margin-right: 0; }
.rp-item .body { flex: 1; min-width: 0; }
.rp-item h3 { font-size: 17px; }
.rp-item .meta { font-size: 14px; color: var(--ink-3); margin-top: 4px; }
.rp-item .go { color: var(--ink-3); font-size: 22px; line-height: 1; flex: 0 0 auto; }

.rp-bar { height: 8px; background: var(--line); border-radius: var(--r-pill); overflow: hidden; margin-top: 12px; }
.rp-bar i { display: block; height: 100%; background: var(--accent); border-radius: var(--r-pill); }

/* ---- pills -------------------------------------------------------------- */
.rp-pill {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .04em;
  padding: 4px 12px; border-radius: var(--r-pill); text-transform: uppercase;
}
.rp-pill.live { background: var(--accent-wash); color: var(--accent-deep); }
.rp-pill.done { background: #e9f6ef; color: #10603a; }
.rp-pill.over { background: var(--bg-alt); color: var(--ink-3); }
.rp-pill.soon { background: #fdf3e2; color: #8a5a06; }

/* ---- tables ------------------------------------------------------------- */
/* ⚠️ A two-column table does not want 1072px. The account table threw its
   values to the far right of the screen, a hand-span from their own labels.
   The standings table keeps the full width — it has a rank column that reads
   better spread out. */
.rp-table { width: 100%; max-width: 560px; border-collapse: collapse; font-size: 15px; }
.rp-table.wide { max-width: none; }
.rp-table th {
  text-align: left; font-size: 11px; letter-spacing: .09em; text-transform: uppercase;
  color: var(--ink-3); padding: 0 12px 8px; font-weight: 700;
}
/* ⛔ A LONG WORD MUST NOT WIDEN THE PAGE. An email address is one
   unbreakable token, and on the profile screen it pushed the table — and
   with it the whole document — 40px past a 384px phone, so every screen of
   the portal scrolled sideways because of one cell. `table-layout: fixed`
   makes the columns obey the 100% width; `overflow-wrap: anywhere` lets the
   address break rather than win. */
.rp-table { table-layout: fixed; }
.rp-table td { padding: 12px 12px; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.rp-table tr.you td { background: var(--accent-wash); font-weight: 700; }
.rp-table .rank { width: 56px; font-weight: 800; color: var(--ink-3); }
.rp-table tr.you .rank { color: var(--accent-deep); }
.rp-table .num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---- badges ------------------------------------------------------------- */
/* ⚠️ auto-FILL leaves empty tracks: one earned badge sat alone in a
   six-column grid with five columns of nothing beside it. auto-FIT collapses
   them — but then a lone badge stretches to the full 1024px card, which is
   worse. The max() ceiling keeps a tile a tile. */
.rp-badges {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 220px));
  justify-content: start;
  gap: 16px;
}
.rp-badge {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 20px 16px; text-align: center; box-shadow: var(--sh-1);
}
.rp-badge .medal { width: 52px; height: 52px; margin: 0 auto 12px; display: block; }
/* A locked milestone is the same crest, drained of colour — so earned and
   not-yet-earned read as the same family rather than as two components. */
/* ⚠️ The MEDAL fades, not the tile. Both were dimmed — a .45 mark
   inside a .55 tile is a double fade, and a tile at 55% reads as broken
   rather than as not-yet-earned. The name and the progress bar stay at full
   strength, because a goal a rider cannot read is not a goal. */
.rp-badge.locked .medal { filter: grayscale(1); opacity: .35; }
.rp-badge.locked h3 { color: var(--ink-2); }
.rp-badge h3 { font-size: 15px; }
.rp-badge p { font-size: 13px; color: var(--ink-3); margin-top: 4px; }

/* ---- forms -------------------------------------------------------------- */
/* ⚠️ The PAGE is narrow, not the form. A 460px form inside a 1072px card
   left 600px of empty card beside every field on the profile page, six times
   over. Capping the column instead keeps the card and the form the same
   shape. */
.rp-form { display: grid; gap: 16px; }
.rp-main.narrow > .wrap { max-width: 760px; }
/* ⚠️ align-content:start, or a field with a line of help under it stretches
   its grid cell and shoves the field BESIDE it down the page. The password
   policy sits under one half of a two-up row, and without this the "repeat
   the password" input beside it floated half a field lower than its own
   label. */
.rp-field { display: grid; gap: 4px; align-content: start; }
.rp-field > label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
/* ⚠️ Not scoped to .rp-field. The legal small print on the register form is
   a bare <p class="hint"> in the form, so it inherited the form's 16px and
   the ink colour — making the one line nobody needs to read the largest,
   darkest text on the card. The margin reset matters too: .rp-form is a grid
   with its own gap, and a browser's default 1em on <p> stacks on top. */
.rp-field .hint, .rp-form .hint { font-size: 13px; color: var(--ink-3); margin: 0; }
.rp-field input[type="text"], .rp-field input[type="email"], .rp-field input[type="password"],
.rp-field select, .rp-field textarea {
  width: 100%; padding: 12px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 400 16px Inter, system-ui, sans-serif; background: var(--bg); color: var(--ink);
}
.rp-field input:focus, .rp-field select:focus, .rp-field textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
.rp-field textarea { min-height: 96px; resize: vertical; }
.rp-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; min-height: 24px; }
/* ⛔ flex: 0 0 20px. In a flex row the box was allowed to shrink, and a
   wrapping label squeezed it to 13x18 — a visibly oblong "square" on the one
   control a club has to tick to accept the terms. */
.rp-check input {
  margin-top: 4px; width: 20px; height: 20px; flex: 0 0 20px;
  accent-color: var(--accent);
}
.rp-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ⚠️ The honeypot. `display:none` is what a bot looks for, so this is moved
   off-screen instead, and taken out of the accessibility tree by the markup's
   own aria-hidden + tabindex. A sighted reader never meets it either way. */
.rp-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---- auth cards --------------------------------------------------------- */
.rp-auth { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: var(--bg-alt); }
/* ⚠️ ONE width for all four auth cards. Sign-in was 440 and register was
   520 via an inline style, so the card jumped wider when you followed the
   link between them — on the two screens a new rider sees back to back. */
.rp-auth-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 32px; width: 100%; max-width: 520px;
}
.rp-auth-card .brand { display: block; text-align: center; margin-bottom: 20px; }
.rp-auth-card h1 { font-size: 25px; margin-bottom: 4px; }
.rp-auth-card .lede { color: var(--ink-3); font-size: 15px; margin-bottom: 20px; }
.rp-auth-card .btn { width: 100%; }
.rp-auth-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; text-align: center; color: var(--ink-3); }
.rp-auth-foot a { color: var(--accent-deep); font-weight: 600; }

/* ---- empty states ------------------------------------------------------- */
.rp-empty { text-align: center; padding: 40px 20px; color: var(--ink-3); }
.rp-empty img { width: 84px; height: 84px; opacity: .85; margin-bottom: 16px; }
.rp-empty h3 { font-size: 17px; color: var(--ink); }
.rp-empty p { margin-top: 8px; font-size: 15px; }

/* (The .rp-note callout is gone. It explained where check-ins happen — a
   lecture on a screen meant to be a tool — and its border referenced
   --accent-edge, which this sheet never defined, so it had no border anyway.
   Deleted rather than repaired: nothing renders the class.) */

/* ---- responsive --------------------------------------------------------- */
@media (max-width: 860px) {
  .rp-stats { grid-template-columns: repeat(2, 1fr); }
  .rp-row { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  /* ⛔ 184px of chrome before any content — 23% of a 375x812 phone spent on a
     logo, a name and a sign-out button, because .rp-head .who was given
     `width: 100%` and wrapped onto a second row. It fits on one row if the
     name is allowed to truncate, which is the right thing for it to do. */
  .rp-head .wrap { min-height: 56px; padding-block: 8px; gap: 12px; }
  .rp-head .who { width: auto; margin-left: auto; gap: 12px; min-width: 0; }
  .rp-head .who > span {
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .rp-hero { gap: 16px; }
  .rp-main { padding-top: 24px; }
  .rp-card { padding: 16px; }
  .rp-item { padding: 16px 16px; gap: 12px; }
  .rp-item .logo { width: 40px; height: 40px; }

  /* ⚠️ The auth card spent 105px of a 375px phone on gutter and padding, so
     its inputs were 270px wide. 40+32 of margin for a card that IS the
     page. */
  .rp-auth { padding: 20px 12px; }
  .rp-auth-card { padding: 20px 16px; border-radius: var(--radius-md); }

  /* A primary action on a phone is full width. "Create the club" was a 174px
     pill stranded at the left of a 327px card while every other primary
     button on the same journey filled its row. */
  .rp-form .btn-primary, .rp-form .btn-ghost { width: 100%; }

  /* Two-up rows have no room at this width; the stat tiles keep two. */
  .rp-row { grid-template-columns: 1fr; }

  /* ⛔ FIVE TABS, FIVE COLUMNS — not a scroller.
     The flex row with `overflow-x: auto` measured 440px of tabs inside a
     375px phone, so "Profile" was guillotined by the screen edge and the
     only clue was a grey scrollbar track sitting permanently under a STICKY
     bar. A navigation that hides its last item is a navigation that has a
     page nobody finds.
     A five-column grid fits them all; the type and padding come down to pay
     for it, and every tab keeps a 44px touch target. */
  .rp-nav .wrap {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0;
    overflow-x: visible;
    padding-inline: 4px;
  }
  .rp-nav a {
    min-width: 0;
    text-align: center;
    padding: 12px 0px;
    font-size: 12px;
    letter-spacing: -0.01em;
    /* Allowed to wrap here — a two-line tab is readable, a cut one is not. */
    white-space: normal;
    overflow-wrap: anywhere;
  }
}

/* ---- check-ins: the rider's own photographs ----------------------------- */
.rp-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.rp-filter a {
  padding: 8px 12px; border-radius: var(--r-pill); border: 1px solid var(--line);
  background: var(--bg); font-size: 14px; font-weight: 600; color: var(--ink-2);
  text-decoration: none;
}
.rp-filter a:hover { border-color: var(--ink-3); }
.rp-filter a[aria-current="true"] {
  background: var(--accent); border-color: var(--accent); color: var(--accent-ink);
}

.rp-checkins { display: grid; gap: 16px; }
.rp-checkin {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-1); padding: 20px;
}
.rp-checkin-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.rp-checkin h2 { font-size: 17px; }
.rp-checkin .meta { font-size: 14px; color: var(--ink-3); margin-top: 4px; }

/* ⚠️ Two photographs per check-in, always — the rider and the motorcycle —
   so the grid is explicitly two-up rather than auto-fill. Auto-fill put them
   side by side on a wide screen and stacked them at exactly the width where
   a pair stops reading as a pair. */
.rp-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.rp-photos figure { margin: 0; }
.rp-photos img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--r-sm); background: var(--bg-alt);
}
.rp-photos figcaption {
  font-size: 12px; color: var(--ink-3); margin-top: 8px;
  font-weight: 600; letter-spacing: .02em;
}

/* ---- the older rider-facing public pages -------------------------------
 *
 * ⛔ /open, /delete-account, /reset-password and /legal were built on
 * admin.css — the console design system — because when they were written it
 * was the only stylesheet that existed. That is why they had a different type
 * scale, different greys and different radii from every other rider-facing
 * page, and why a rider who followed a link out of the portal landed on
 * something that looked like a logged-out admin screen.
 *
 * ⚠️ These map the handful of class names those pages use onto the portal's
 * own card, rather than rewriting four templates and risking their content.
 * They are a translation layer, not a second design system: every value comes
 * from the same tokens as .rp-auth-card above.
 */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 40px 16px; background: var(--bg-alt); }
.auth-card {
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 32px; width: 100%; max-width: 480px;
}
.auth-card .brand { display: block; text-align: center; margin-bottom: 20px; }
.auth-card h1 { font-size: 25px; margin-bottom: 4px; }
.auth-card .sub { color: var(--ink-3); font-size: 15px; margin-bottom: 20px; }
.auth-card .hint { color: var(--ink-3); font-size: 14px; }
.auth-card .btn.block { width: 100%; }
.auth-card .divider { border: 0; border-top: 1px solid var(--line); margin: 20px 0 16px; }
.auth-card .field { display: grid; gap: 4px; margin-bottom: 16px; }
.auth-card .field > label, .auth-card .field .label {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
}
.auth-card .field input {
  width: 100%; padding: 12px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  font: 400 16px Inter, system-ui, sans-serif; background: var(--bg); color: var(--ink);
}
.auth-card .field input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.auth-card .code-block {
  display: block; font: 800 24px/1 ui-monospace, Consolas, monospace;
  letter-spacing: .16em; margin-top: 4px;
}
.auth-card .empty { text-align: center; padding: 20px 0; }
.auth-card .empty-mark { display: block; color: var(--accent-deep); margin-bottom: 12px; }
.auth-card .empty-mark svg { width: 34px; height: 34px; }
.auth-card .flash { border-radius: var(--r-md); padding: 12px 16px; margin-bottom: 16px; font-size: 15px; border: 1px solid; }
.auth-card .flash.error { background: #fdedef; border-color: #f0c2c7; color: #8d1f29; }
.auth-foot { display: flex; justify-content: center; gap: .85rem; flex-wrap: wrap; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; }
.auth-foot a { color: var(--accent-deep); font-weight: 600; text-decoration: none; }
.auth-foot a:hover { text-decoration: underline; }

/* ⛔ A narrow column that keeps the page's own left edge.
 *
 * Setting `max-width` on `.wrap` itself re-centres it, so a narrowed section
 * no longer lines up with the header and footer either side of it. This caps
 * the children instead: same gutter, same left edge, narrower measure. */
.rp-narrow > * { max-width: 720px; }

/* ---- touch targets (portal) --------------------------------------------- */
.rp-nav a { display: flex; align-items: center; justify-content: center; min-height: 44px; }
.rp-signout { min-height: 40px; }
.rp-filter a { display: inline-flex; align-items: center; min-height: 40px; }
.rp-auth-foot a { display: inline-block; padding: 6px 0; }

/* ================================================================
 * Small shared utilities.
 *
 * ⛔ THESE EXIST SO VIEWS STOP TYPING NUMBERS. Eleven production
 * templates carried hand-written `style="margin-top:18px"`,
 * `style="font-size:14.5px"` and a full `font:` shorthand — four
 * different spellings of "a bit of space above" among them, none of
 * them on the 4px grid in tokens.css. The only inline styles left in
 * the tree are computed progress widths, which genuinely cannot live
 * in a stylesheet.
 * ================================================================ */
.gap-over { margin-top: var(--space-5); }        /* 20px */
.gap-over-sm { margin-top: var(--space-3); }     /* 12px */
.gap-under { margin-bottom: var(--space-5); }
.lede.sm { font-size: var(--text-md); }
.upper { text-transform: uppercase; }

/* A club's own logo on the QR landing page, capped so a 1534x364 upload
   cannot push the card apart. Real club logos run from 192px square to
   about that. */
.club-logo { display: block; max-width: 180px; max-height: 72px; margin: 0 auto var(--space-5); }

/* A code read aloud or typed into a phone, and the field it is typed into. */
.rp-code.sm { font-size: var(--text-4xl); letter-spacing: .16em; margin: var(--space-2) 0 0; }
.code-entry { letter-spacing: .3em; font-size: var(--text-3xl); text-align: center; }
