/* ── "Sign in with Google" / "Sign in with Apple" ───────────────────────

   Operator, 2026-09-30: *"login should look native."* Native means these
   belong to the door they land on, so every value is an `--auth-*` token:
   the brand's accent on a brand door, RUO's teal on the neutral one, and
   PepRally's carbon on the Rally door — with no rule here naming a colour.

   ── Four cascade rules, each with the defect it prevents ──────────────

   1. EVERY selector names the block root (`.ruo-identity .ruo-identity__x`).
      `.peprally p { font-size: 16px }` is (0,1,1) and a lone class is
      (0,1,0) — it takes the TYPOGRAPHY as well as the colour, which is how
      a 1.9rem headline rendered at 16px on the auth page.

   2. Anchors carry `a.`. `.brand a { color: var(--color-accent) }` on an
      accent-filled button is 1:1 invisible text, shipped on four brands.

   3. No bare `var()` without a definition — it evaluates to nothing
      rather than complaining, which is the `grid-area` failure in
      attribute form.

   4. No `opacity` on text. A colour painted with alpha takes its value
      from whatever is behind it, so its contrast stops being a property
      of the rule and every measured ratio becomes a guess.

   The marks are drawn with a `background-image` data URI rather than an
   `<img>`, because our own CSP blocks off-origin subresources — which is
   how every Google Ads conversion was silently dropped while the tag was
   provably in the page. */

.ruo-identity {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.ruo-identity a.ruo-identity__button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 16px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: var(--auth-panel);
  color: var(--auth-text);
  font-family: var(--auth-font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: border-color 120ms ease, background 120ms ease;
}

/* `--auth-raise` is the panel's own raised surface — the one the rally band
   and the pass chip already use — so the button lifts the way every other
   control on this card does rather than inventing a second interaction
   language.

   The first cut wrote `--auth-lift`, which DOES NOT EXIST. A bare `var()`
   with no definition evaluates to nothing rather than complaining, so the
   hover silently painted no background at all. Caught by the contrast
   guard, which could not resolve it — exactly rule 3 three comments up,
   broken by the person who wrote it. */
.ruo-identity a.ruo-identity__button:hover,
.ruo-identity a.ruo-identity__button:focus-visible {
  border-color: var(--auth-accent);
  background: var(--auth-raise);
  color: var(--auth-text);
}

.ruo-identity a.ruo-identity__button:focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 2px;
}

.ruo-identity .ruo-identity__mark {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}

/* Google's own four-colour G, which its brand guidelines require be used
   unmodified — so it is NOT tokenised, and that is the one deliberate
   exception to "every value is a token" in this file. */
.ruo-identity .ruo-identity__mark--google {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9 3.5l6.7-6.7C35.6 2.3 30.2 0 24 0 14.6 0 6.4 5.4 2.6 13.2l7.8 6.1C12.2 13.6 17.6 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.5 24.5c0-1.6-.1-3.2-.4-4.7H24v9h12.6c-.5 2.9-2.2 5.4-4.6 7l7.6 5.9c4.4-4.1 6.9-10.1 6.9-17.2z'/%3E%3Cpath fill='%23FBBC05' d='M10.4 28.7A14.5 14.5 0 0 1 9.6 24c0-1.6.3-3.2.8-4.7l-7.8-6.1A24 24 0 0 0 0 24c0 3.9.9 7.6 2.6 10.8l7.8-6.1z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.5 0 11.9-2.1 15.9-5.8l-7.6-5.9c-2.1 1.4-4.9 2.3-8.3 2.3-6.4 0-11.8-4.1-13.6-9.9l-7.8 6.1C6.4 42.6 14.6 48 24 48z'/%3E%3C/svg%3E");
}

/* Apple's mark is monochrome by its own guidelines, and `currentColor`
   is what makes it native: it follows `--auth-text`, so it is black on the
   light doors and white on PepRally's carbon one without this file knowing
   which. A baked-in black would be invisible on the Rally door. */
.ruo-identity .ruo-identity__mark--apple {
  background-image: none;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 12.54c.02-2.2 1.79-3.26 1.87-3.31-1.02-1.5-2.61-1.7-3.17-1.73-1.35-.14-2.63.79-3.32.79-.68 0-1.74-.77-2.86-.75-1.47.02-2.83.86-3.58 2.17-1.53 2.66-.39 6.6 1.1 8.76.73 1.06 1.6 2.24 2.75 2.2 1.1-.04 1.52-.71 2.86-.71 1.33 0 1.71.71 2.87.69 1.19-.02 1.95-1.08 2.68-2.14.84-1.22 1.19-2.4 1.21-2.46-.03-.01-2.32-.89-2.41-3.5zM14.9 5.6c.6-.73 1.01-1.75.9-2.76-.87.04-1.92.58-2.54 1.3-.56.64-1.04 1.68-.91 2.67.97.08 1.95-.49 2.55-1.21z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 12.54c.02-2.2 1.79-3.26 1.87-3.31-1.02-1.5-2.61-1.7-3.17-1.73-1.35-.14-2.63.79-3.32.79-.68 0-1.74-.77-2.86-.75-1.47.02-2.83.86-3.58 2.17-1.53 2.66-.39 6.6 1.1 8.76.73 1.06 1.6 2.24 2.75 2.2 1.1-.04 1.52-.71 2.86-.71 1.33 0 1.71.71 2.87.69 1.19-.02 1.95-1.08 2.68-2.14.84-1.22 1.19-2.4 1.21-2.46-.03-.01-2.32-.89-2.41-3.5zM14.9 5.6c.6-.73 1.01-1.75.9-2.76-.87.04-1.92.58-2.54 1.3-.56.64-1.04 1.68-.91 2.67.97.08 1.95-.49 2.55-1.21z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
}

/* `--auth-muted` is the hairline token and its name invites being used for
   copy. Measured on these sheets it is the lowest ratio in the palette, so
   this note is `--auth-text` at a smaller size — hierarchy from size, never
   from a failing colour. That is the fix the homepage band's
   `opacity: .85` got and the one the rally page's subtitle needed. */
.ruo-identity .ruo-identity__note {
  margin: 2px 0 0;
  color: var(--auth-text);
  font-family: var(--auth-font-body);
  font-size: 12px;
  line-height: 1.5;
}

.ruo-identity .ruo-identity__rule {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  color: var(--auth-text);
  font-family: var(--auth-font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ruo-identity .ruo-identity__rule::before,
.ruo-identity .ruo-identity__rule::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--auth-border);
}

/* ── The crossings on the member page ────────────────────────────────

   Lives in this sheet rather than beside the member card's own rules,
   because it is the same subsystem and the same token discipline: every
   value is an `--auth-*` token, so the block wears whichever door it
   lands on. Same four cascade rules as above — block root on every
   selector, `a.` on every anchor painting `color`, no bare `var()`
   without a definition, no `opacity` on text. */

.ruo-crossings .ruo-crossings__note {
  margin: 0 0 12px;
  color: var(--auth-text);
  font-family: var(--auth-font-body);
  font-size: 13px;
  line-height: 1.5;
}

.ruo-crossings .ruo-crossings__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ruo-crossings a.ruo-crossings__link {
  display: block;
  padding: 12px 14px;
  border: 1px solid var(--auth-border);
  border-radius: 10px;
  background: var(--auth-raise);
  color: var(--auth-text);
  font-family: var(--auth-font-body);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.ruo-crossings a.ruo-crossings__link:hover,
.ruo-crossings a.ruo-crossings__link:focus-visible {
  border-color: var(--auth-accent);
  color: var(--auth-text);
}

.ruo-crossings a.ruo-crossings__link:focus-visible {
  outline: 2px solid var(--auth-accent);
  outline-offset: 2px;
}
