/* ExamStudyAid: the ways to sign in, drawn as buttons (Phase 3, PHASE3-PLAN-v2.md contract 14).

   On an open page, outside <template>, a crawler finds no link to the login or sign-up page with a query, to Google's
   sign-in, or to a locked page. Inside a dialog the way in is a <button type="button" data-href> that the dialog's
   script follows; in the tutor sheet it is the button of a GET form with the validated next. Each one looks exactly
   like the link it replaced:
     - the dialogs' foot (Already have Premium? Log in; New to ExamStudyAid? Create a free account): the blue
       underlined words of .nb-gate-foot a (nb-dialog.css, notebook-components.css, gate-shelf.css);
     - the login dialog's Continue with Google: the dialog's own .nb-gate-google box, which already draws itself;
     - the tutor sheet's Log in: the underlined quiet way of .nb-tutor-quiet-way (notebook-tutor.css, notes.css).
   A button brings the browser's own box, and on a base.html page styles.css's button rule too: none of it shows here.
   Tokens only, both themes. Loaded by nb_premium_gate.html, nb_login_gate.html and chat_panel.html where a button is
   drawn. */

/* ── the dialogs' foot: the link's own words ── */
html body .nb-gate .nb-gate-foot button.nb-gate-link {
  appearance: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font: inherit;
  font-weight: 600;
  letter-spacing: inherit;
  color: var(--nb-blue);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  cursor: pointer;
  transform: none;
}
html body .nb-gate .nb-gate-foot button.nb-gate-link:focus-visible {
  outline: 2px solid var(--nb-blue);
  outline-offset: 2px;
  border-radius: var(--nb-r-sm);
}
/* a finger gets the link's larger hit, without moving a line (notebook-components.css, the gate's foot) */
@media (max-width: 860px), (pointer: coarse) {
  html body .nb-gate .nb-gate-foot button.nb-gate-link {
    position: relative;
  }
  html body .nb-gate .nb-gate-foot button.nb-gate-link::after {
    content: "";
    position: absolute;
    inset: calc(-1 * var(--nb-s3)) calc(-1 * var(--nb-s2));
  }
}

/* ── Continue with Google: the dialog draws the box; a button also needs the pointer ── */
html body .nb-gate button.nb-gate-google {
  cursor: pointer;
}

/* ── the tutor sheet's Log in: its size, weight, colour and underline stay the sheet's own ── */
html body button.nb-tutor-quiet-way {
  appearance: none;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
  font-family: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  text-align: inherit;
  cursor: pointer;
  transform: none;
}
