/* lm-edu-sociallogin-20261105: Edu social sign-in block (Google, GitHub, Facebook).
   Brand rules (docs/DOCS-CHECKED.md): Google dark theme fill #131314, stroke #8E918F, text #E3E3E3, standard-colour "G", unmodified;
   Facebook "f" on Meta blue (#0866FF, see the facebook rule for the contrast reason) with "Continue with Facebook"; GitHub Invertocat, unmodified, white on dark, no effects on the logo.
   All three buttons have the same size and prominence (Google: "at least as prominently as other third-party options"). */
.edu-social{ margin:1.4rem 0 .35rem; text-align:start; } /* WOW F4: more air above the 'or' line keeps the page's primary button the hero */
.edu-social[hidden]{ display:none !important; }
.edu-social[data-intent="join"]{ margin:1rem 0 1.25rem; }
.edu-social[data-intent="join"] .edu-social__or{ margin:.9rem 0 0; }
/* The login page centres its card with body{display:flex;align-items:center;height:100%}. When the card grows taller than the
   viewport (the social block adds ~260px), plain `center` pushes the top of the card off-screen where it cannot be scrolled to
   (render after1: logo clipped at 390x844 and 1440x900). `safe center` keeps centring when the card fits and falls back to the
   top edge when it does not. Scoped to pages that show the block. */
body:has(#eduSocial:not([hidden])){ align-items:safe center; height:auto; } /* height:auto: body grows with the taller card, so its background covers the whole scroll height (after2: dark band below the card) */
@supports not (align-items: safe center){ body:has(#eduSocial:not([hidden])){ align-items:flex-start; } }
.edu-social__or{
  display:flex; align-items:center; gap:.7rem; margin:0 0 .85rem;
  color:var(--muted,#9aa3d4); font-size:.76rem; font-weight:600; letter-spacing:.04em; text-transform:lowercase;
}
.edu-social__or::before,.edu-social__or::after{
  content:""; flex:1 1 auto; height:1px;
  background:linear-gradient(90deg, transparent, rgba(169,214,208,.32) 30%, rgba(46,196,182,.6) 50%, rgba(169,214,208,.32) 70%, transparent); /* a11y INFO-5: the live islands.css teal palette, not the off-palette cyan */
  background-size:200% 100%; animation:eduSocialThread 6s linear infinite;
  transition:opacity .3s ease;
}
/* WOW idea 1: the starlight thread answers the hand. Hovering or focusing any provider speeds the cyan spark along the thread and brightens it,
   so the 'or' line visibly ties the form to the choice being made. */
.edu-social:has(.edu-social-btn:hover) .edu-social__or::before,.edu-social:has(.edu-social-btn:hover) .edu-social__or::after,
.edu-social:has(.edu-social-btn:focus-visible) .edu-social__or::before,.edu-social:has(.edu-social-btn:focus-visible) .edu-social__or::after{
  animation-duration:1.2s;
  background-image:linear-gradient(90deg, transparent, rgba(169,214,208,.5) 30%, rgba(46,196,182,1) 50%, rgba(169,214,208,.5) 70%, transparent);
}
@keyframes eduSocialThread{ from{ background-position:0 0; } to{ background-position:-200% 0; } }
.edu-social__list{ list-style:none; display:flex; flex-direction:column; gap:.6rem; margin:0; padding:0; }
.edu-social-btn{
  position:relative; isolation:isolate;
  display:flex; align-items:center; justify-content:center; gap:.7rem;
  width:100%; min-height:48px; padding:.7rem 1rem;
  border-radius:12px; border:1px solid transparent;
  font:600 .95rem/1.25 'Roboto','Inter',system-ui,-apple-system,'Segoe UI',sans-serif;
  text-decoration:none; cursor:pointer; overflow:hidden;
  transition:transform .16s ease, box-shadow .2s ease, filter .2s ease;
  -webkit-tap-highlight-color:transparent;
}
.edu-social-btn__logo{ flex:0 0 auto; width:20px; height:20px; display:block; }
.edu-social-btn__label{ min-width:0; overflow-wrap:anywhere; }
/* starlight sweep: a light band crosses the button surface on hover/focus (never over the logo artwork itself, which sits above it) */
.edu-social-btn::after{
  content:""; position:absolute; inset:0; z-index:-1; pointer-events:none;
  background:linear-gradient(110deg, transparent 30%, rgba(255,255,255,.10) 45%, rgba(255,255,255,.18) 50%, rgba(255,255,255,.10) 55%, transparent 70%);
  transform:translateX(-120%); transition:transform .7s cubic-bezier(.2,.8,.3,1);
}
.edu-social-btn:hover::after,.edu-social-btn:focus-visible::after{ transform:translateX(120%); }
.edu-social-btn:hover{ transform:translateY(-1px); box-shadow:0 8px 22px rgba(0,0,0,.35); }
.edu-social-btn:active{ transform:translateY(0); filter:brightness(.96); }
.edu-social-btn:focus-visible{ outline:3px solid var(--accent,#00d4ff); outline-offset:3px; }
.edu-social-btn[aria-busy="true"]{ cursor:progress; filter:saturate(.7); }
.edu-social-btn--google{ background:#131314; border-color:#8E918F; color:#E3E3E3; }
/* a11y A2/A3 (1.4.11): on the live teal card (#0e4a55) the GitHub and Facebook fills have no 3:1 edge. A --muted border (#a9d6d0) gives 6.21:1 vs the card. */
.edu-social-btn--github{ background:#24292f; border-color:var(--muted,#a9d6d0); color:#ffffff; }
/* Facebook: the Login UX doc lists Hex #1877F2, but white text on #1877F2 is 4.24:1, below WCAG 2.2 AA 4.5:1 for this 15.2px/600 label.
   The same doc's own token --fb-logo is #0866FF (Meta's current logo blue): white on #0866FF is 4.82:1 (AA pass). We use #0866FF. */
.edu-social-btn--facebook{ background:#0866FF; border-color:var(--muted,#a9d6d0); color:#ffffff; }
.edu-social__note{ margin:.75rem 0 0; color:var(--muted,#9aa3d4); font-size:.74rem; line-height:1.5; text-align:center; }
.edu-social__err{
  margin:0 0 .8rem; padding:.65rem .8rem; border-radius:12px; font-size:.82rem; line-height:1.45;
  background:rgba(255,92,124,.12); border:1px solid rgba(255,92,124,.45); color:#ffd3dc; text-align:start;
}
/* completion panel on /join?social=complete */
.edu-social-done{ text-align:start; }
.edu-social-done h2{ font-size:1.2rem; font-weight:800; margin:0 0 .35rem; color:var(--text,#e8eaf6); }
.edu-social-done h2#eduSocialDoneTitle:focus,.edu-social-done h2#eduSocialDoneTitle:focus-visible{ outline:none !important; box-shadow:none !important; } /* the heading takes programmatic focus (tabindex=-1) so screen readers land on the step. It is not interactive, so no ring (after4 shots showed one) */
.edu-social-done__who{
  display:flex; align-items:center; gap:.6rem; margin:.2rem 0 1rem; padding:.6rem .75rem;
  border-radius:12px; background:rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.10);
  color:var(--muted,#9aa3d4); font-size:.85rem; overflow-wrap:anywhere;
}
.edu-social-done__who b{ color:var(--text,#e8eaf6); }
/* WOW idea 3: a check that draws itself in the 'signed in with' chip: the end of the flow gets the reward, not the start */
.edu-social-done__check{ flex:0 0 auto; width:20px; height:20px; margin-inline-start:auto; }
.edu-social-done__check path{ fill:none; stroke:var(--accent,#00d4ff); stroke-width:2.5; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:24; stroke-dashoffset:24; animation:eduSocialCheck .6s .25s ease-out forwards; }
@keyframes eduSocialCheck{ to{ stroke-dashoffset:0; } }
.edu-social-done label.edu-social-done__lab{ display:block; font-weight:700; font-size:.85rem; margin:.8rem 0 .35rem; color:var(--text,#e8eaf6); }
.edu-social-done input[type="text"],.edu-social-done input[type="number"]{
  width:100%; min-height:44px; padding:.7rem .85rem; border-radius:12px; font:inherit; font-size:1rem;
  background:var(--surface-2,#232741); color:var(--text,#e8eaf6); border:2px solid var(--muted,#a9d6d0); /* a11y A4: 6.21:1 field edge vs the teal card (#4a7d8a was only 2.16:1, tools/contrast.py) */
}
.edu-social-done input:focus-visible{ outline:3px solid var(--accent,#00d4ff); outline-offset:2px; border-color:var(--primary,#6c63ff); }
.edu-social-done__hint{ font-size:.76rem; color:var(--muted,#9aa3d4); margin-top:.3rem; }
.edu-social-done__consent{ display:flex; gap:.6rem; align-items:flex-start; margin:1rem 0 .5rem; }
.edu-social-done__consent input{ width:24px; height:24px; margin-top:.1rem; flex:0 0 auto; accent-color:var(--primary,#6c63ff); }
.edu-social-done__consent label{ font-size:.78rem; line-height:1.45; color:var(--muted,#9aa3d4); }
.edu-social-done__consent a{ color:var(--accent,#00d4ff); }
.edu-social-done__actions{ display:flex; flex-direction:column; gap:.55rem; margin-top:1rem; }
.edu-social-done__go,.edu-social-done__cancel{
  min-height:48px; border-radius:12px; font-family:inherit; font-size:1rem; font-weight:700; line-height:1.2; cursor:pointer; padding:.75rem 1rem; /* a11y INFO-8: the old shorthand with `inherit` as family was invalid */
}
/* a11y A1 (1.4.3): white on the #6c63ff→teal gradient was 2.8-3.9:1. The site's own pill recipe: --accent fill + #063a36 text = 5.81:1. */
.edu-social-done__go{ border:0; color:#063a36; background:var(--accent,#2ec4b6); }
.edu-social-done__cancel{ background:transparent; color:var(--muted,#9aa3d4); border:1px solid rgba(255,255,255,.18); }
.edu-social-done__go:focus-visible,.edu-social-done__cancel:focus-visible{ outline:3px solid var(--accent,#00d4ff); outline-offset:3px; }
.edu-social-done__go[disabled]{ opacity:.6; cursor:progress; }
.edu-social-hide{ display:none !important; }
@media (prefers-reduced-motion: reduce){
  .edu-social__or::before,.edu-social__or::after{ animation:none !important; }
  .edu-social-done__check path{ animation:none; stroke-dashoffset:0; }
  .edu-social-btn,.edu-social-btn::after{ transition:none; }
  .edu-social-btn:hover{ transform:none; }
}
@media (forced-colors: active){
  .edu-social-btn{ border:2px solid ButtonText; }
}
