/* Nuvari site.css — reserves nav/footer space (FOUC mitigation) +
   nav-avatar styles (was inline in legacy auth-nav.js). */

/* display:contents makes the slot wrapper transparent in layout so the
   .nav inside it can be position:sticky relative to <body>, not boxed
   inside a 72px container that scrolls away with the page. Build-time
   inliner always fills these slots, so we no longer need min-height
   FOUC reservations. */
[data-nav-slot] { display: contents; }
[data-footer-slot] { display: contents; }

.nav-avatar {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--teal, #00B4C6); color: #fff;
  font-weight: 600; font-size: 14px;
  text-decoration: none; transition: opacity 0.2s;
  flex-shrink: 0;
}
.nav-avatar:hover { opacity: 0.85; }

/* "Already a patient? Log in" — logged-out nav entry to the My Nuvari portal
   (design: docs/design/2026-08-10-my-nuvari-portal.dc.html, logged-out header). */
.nav-login {
  font-size: 14.5px; font-weight: 600; color: #0A1628;
  text-decoration: none; white-space: nowrap;
}
.nav-login .nav-login-cta { color: #008B9C; text-decoration: underline; }
.nav-login:hover { color: #008B9C; }
@media (max-width: 720px) {
  .nav-login .nav-login-pre { display: none; }
}

a[aria-current="page"] { font-weight: 600; }

/* ──────────────────────────────────────────────────────────────
   GLASS NAV EXPERIMENT — frosted-glass header that visibly works
   on white-background pages (not just colored protocol pages).
   The trick is high blur + saturate + low opacity so the page
   below shows through softly even when it's mostly white.
   Specificity beats each page's inline .nav rule.
   ────────────────────────────────────────────────────────────── */
[data-nav-slot] .nav {
  background: rgba(255, 255, 255, 0.55) !important;
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow: 0 1px 24px rgba(10, 22, 40, 0.04);
}

/* Medical notice, desktop open/close (2026-11-12). Phones: mobile-concise.css section 62. */
@media (min-width: 821px) {
  .ribbon.nmc-disc .nmc-disc__line { display: block; }
  .ribbon.nmc-disc .nmc-disc__body { display: block; margin-top: 10px; }
  .ribbon.nmc-disc .nmc-disc__body[hidden] { display: none; }
  .ribbon.nmc-disc[data-open="1"] .nmc-disc__isi { display: none; }
  .ribbon.nmc-disc .nmc-disc__more {
    appearance: none; -webkit-appearance: none; background: none; border: 0; margin: 0 0 0 2px; padding: 2px 4px;
    font: inherit; font-weight: 700; color: #0A1628; text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
  }
  .ribbon.nmc-disc .nmc-disc__more:focus-visible { outline: 2px solid #0E7C86; outline-offset: 2px; border-radius: 4px; }
}

@media (min-width: 821px) {
  .ribbon.nmc-disc .nmc-disc__line[hidden] { display: none; }
}
