/* "Continue with Apple" and "Continue with Google" (sign-in page). Follows Apple's HIG (black button, white logo and text; white with a
   black outline in dark mode; 44pt tall; logo left of the label) and Google's branding guidelines (light: #fff, 1px #747775, text
   #1f1f1f; dark: #131314, 1px #8e918f, text #e3e3e3; 40px+ tall; the four-colour G; 14px medium label). */
.social-signin { display: grid; gap: 12px; margin: 0 0 12px; }
.btn-social { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 16px;
  border-radius: 8px; font: 500 1rem/1.2 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; text-decoration: none; cursor: pointer;
  box-sizing: border-box; }
.btn-social svg { width: 18px; height: 18px; flex: none; }
.btn-social.btn-apple { background: #000; color: #fff; border: 1px solid #000; }
.btn-social.btn-apple svg { fill: currentColor; width: 19px; height: 19px; }
.btn-social.btn-google { background: #fff; color: #1f1f1f; border: 1px solid #747775; font-family: Roboto, system-ui, "Segoe UI", sans-serif; font-size: .875rem; }
.btn-social:focus-visible { outline: 3px solid var(--brand, #5b8def); outline-offset: 2px; }
.btn-social:disabled { opacity: .6; cursor: progress; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme-eff="light"]):not([data-theme="light"]) .btn-social.btn-apple { background: #fff; color: #000; border-color: #fff; }
  :root:not([data-theme-eff="light"]):not([data-theme="light"]) .btn-social.btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
}
:root[data-theme-eff="dark"] .btn-social.btn-apple, :root[data-theme="dark"] .btn-social.btn-apple { background: #fff; color: #000; border-color: #fff; }
:root[data-theme-eff="dark"] .btn-social.btn-google, :root[data-theme="dark"] .btn-social.btn-google { background: #131314; color: #e3e3e3; border-color: #8e918f; }
/* Inside the app shell (html.native-app, native.js): Google refuses OAuth in an embedded web view, so the web Google button is hidden
   and the native one (the system's own account picker) takes its place; Apple likewise. */
.social-native[hidden], .social-signin [hidden] { display: none !important; }
.native-app .web-only { display: none !important; }
.native-app .social-native:not([hidden]) { display: flex; }
.social-native { display: none; }
.social-note { margin: 0; }

/* W270 sign-in friction: the whole form (year, email, Turnstile, 18+ line, button) in the first screen of a 390x700 phone, in every live locale.
   Same elements, same words: only spacing, type size and the cookie card's height change on this page. The Turnstile box keeps its 65 px so nothing jumps when it loads. */
.signin .cf-turnstile { min-height: 65px; }
/* W276: the same tightening on a short desktop/laptop window (1280x800, 1366x768): the button used to sit at 731-813 px, partly below the fold in fr and hi. */
@media (max-width: 600px), (min-width: 601px) and (max-height: 860px) {
  body:has(.signin) .crumbs { display: none; }                      /* "Home > Sign in" repeats the h1 */
  html.no-has body.x-signin .crumbs { display: none; }   /* fallback: no :has() before iOS 15.4 (static/has-fallback.js) */
  body:has(.signin) main > .card.signin { margin: 6px 0; padding: 10px 14px; }
  html.no-has body.x-signin main > .card.signin { margin: 6px 0; padding: 10px 14px; }   /* fallback: no :has() before iOS 15.4 (static/has-fallback.js) */
  .signin h1 { font-size: 1.35rem; margin: 0 0 .1em; }
  .signin > p.muted:first-of-type, .signin > h1 + p.muted { font-size: .875rem; line-height: 1.3; margin: 0 0 6px; }
  .signin form.stack { gap: 4px; }
  .signin .age-fields { border: 0; padding: 0; margin: 0; }
  .signin .age-fields legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; padding: 0; margin: -1px; }   /* still the group's name for screen readers; the question label right under it says the same thing visually */
  .signin .age-fields label { margin: 0; }
  .signin .age-fields select { margin-top: 2px; min-height: 44px; }
  .signin .age-fields p.small, .signin .age-statement { font-size: .875rem; line-height: 1.3; margin: 2px 0 0; }
  .signin label[for="email"] { margin: 0; }
  .signin #email { margin-top: 2px; }
  .signin .btn-big { padding: 10px 16px; }
  .signin .social-signin { margin: 8px 0 0; gap: 8px; }
  /* The cookie card on this page: same two buttons at the same size, same words, but a tighter card, so it hides less of the form. */
  body:has(.signin) .consent-banner { padding: 6px 12px; gap: 4px; }
  html.no-has body.x-signin .consent-banner { padding: 6px 12px; gap: 4px; }   /* fallback: no :has() before iOS 15.4 (static/has-fallback.js) */
  body:has(.signin) .consent-banner .consent-text { font-size: .875rem; line-height: 1.25; }
  html.no-has body.x-signin .consent-banner .consent-text { font-size: .875rem; line-height: 1.25; }   /* fallback: no :has() before iOS 15.4 (static/has-fallback.js) */
  body:has(.signin) .consent-banner .consent-actions { flex-wrap: nowrap; gap: 8px; }
  html.no-has body.x-signin .consent-banner .consent-actions { flex-wrap: nowrap; gap: 8px; }   /* fallback: no :has() before iOS 15.4 (static/has-fallback.js) */
}
@media (min-width: 900px) {
  /* Wide screens: the cookie card moves to the bottom-left corner (same size of buttons, same words) instead of sitting across the centred form. */
  body:has(.signin) .consent-banner { left: 16px; right: auto; margin: 0; max-width: 360px; }
  html.no-has body.x-signin .consent-banner { left: 16px; right: auto; margin: 0; max-width: 360px; }   /* fallback: no :has() before iOS 15.4 (static/has-fallback.js) */
}
