/* ExamStudyAid: the quiet note in the corner (owner, 2026-10-26: "not intrusive", at most once every 4 hours; the demo's place 1).
   pages/includes/nudge.html draws it hidden, pages/js/nudge.js shows it.

   A small raised sheet in the bottom left corner, 272px wide so it stands in the dashboard's margin at 1440, the paper's deep
   shadow and no edge: a question in ink at 600, one sentence, one solid blue action and Not now in the ink's quiet tint
   (nb-buttons.css's three tints). By night the sheet is a step lighter than the raised paper so it reads over the page. On a phone
   it is the width of the screen less 12px each side, above the thumb bar and anything standing out of it (nudge.js measures that
   as --nb-nudge-lift), its two buttons sharing the row. It rises 18px as it fades in and sinks as it goes; reduced motion keeps it
   still. Never printed. Tokens only, both themes. */

.nb-nudge {
  position: fixed;
  z-index: 1240;
  left: 24px;
  bottom: calc(24px + var(--nb-nudge-lift, 0px));
  box-sizing: border-box;
  width: 272px;
  padding: 18px 18px 16px;
  background: var(--nb-m-raised);
  color: var(--nb-m-ink);
  border: 0;
  border-radius: var(--nb-r-lg);
  box-shadow: var(--nb-shadow-3);
  font: 400 var(--nb-text-base)/1.45 var(--nb-sans);
  transform: translateY(18px);
  opacity: 0;
  transition: transform var(--nb-dur-3) var(--nb-ease), opacity var(--nb-dur-2) var(--nb-ease);
}
/* the study pages' night only: a site page (body.site) has no theme and no --nb-m-raised, and there this rule, loaded
   after site.css, left the sheet clear, its dark words lost over the homepage's black */
html:not(.theme-light) body:not(.site) .nb-nudge { background: color-mix(in srgb, var(--nb-m-raised) 92%, #fff); }
.nb-nudge[hidden] { display: none; }
.nb-nudge.is-in { transform: none; opacity: 1; }

.nb-nudge-title { margin: 0; font: 600 var(--nb-text-md)/1.3 var(--nb-sans); letter-spacing: -0.01em; color: var(--nb-m-ink); }
.nb-nudge-say { margin: 6px 0 16px; font-size: var(--nb-text-sm); line-height: 1.5; color: var(--nb-m-ink); text-wrap: pretty; }
.nb-nudge-acts { display: flex; gap: 8px; margin: 0; }
.nb-nudge :is(.nb-nudge-go, .nb-nudge-quiet) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: var(--nb-r-md);
  font: 600 var(--nb-text-sm)/1 var(--nb-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background var(--nb-dur-1) var(--nb-ease);
}
.nb-nudge .nb-nudge-go { background: var(--nb-blue); color: var(--nb-on-blue); }
.nb-nudge .nb-nudge-go svg { width: 14px; height: 14px; }
.nb-nudge .nb-nudge-quiet { background: var(--nb-btn-quiet); color: var(--nb-m-ink); }
@media (hover: hover) {
  .nb-nudge .nb-nudge-go:hover { background: var(--nb-blue-strong); }
  .nb-nudge .nb-nudge-quiet:hover { background: var(--nb-btn-quiet-on); }
}
.nb-nudge :is(.nb-nudge-go, .nb-nudge-quiet):focus-visible { outline: 2px solid var(--nb-blue); outline-offset: 2px; }

@media (max-width: 720px) {
  .nb-nudge { left: 12px; right: 12px; width: auto; bottom: calc(12px + var(--nb-nudge-lift, 0px)); }
  .nb-nudge :is(.nb-nudge-go, .nb-nudge-quiet) { flex: 1; min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .nb-nudge, .nb-nudge.is-in { transform: none; transition: none; }
}
@media print {
  .nb-nudge { display: none; }
}
