/* Nepsis header/menu polish, shared by every page (loaded from site-navigation.js).
   Menu details stay scoped so page-specific layouts remain unchanged.
   Colours come from the theme variables, so dark mode follows automatically. */

/* Back-to-home arrow next to the logo */
.nav-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.nav-home-back {
  display: inline-flex; align-items: center; gap: 4px;
  height: 40px; padding: 0 14px 0 8px;
  border: 1.5px solid var(--border, #EEDCC8); border-radius: 999px;
  background: var(--card, #FFFDF8); color: var(--fg, #3A2418);
  font-size: .9rem; font-weight: 800; line-height: 1; text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}
.nav-home-back svg { width: 20px; height: 20px; flex: 0 0 20px; transition: transform .2s ease; }
.nav-home-back:hover { border-color: var(--orange, #F0702A); color: var(--ember, #D8392B); }
.nav-home-back:hover svg { transform: translateX(-2px); }
.nav-home-back:active { transform: scale(.96); }
.nav-home-back:focus-visible { outline: 2px solid var(--orange, #F0702A); outline-offset: 2px; }
@media (max-width: 560px) {
  .nav-home-back { width: 40px; padding: 0; justify-content: center; }
  .nav-home-back-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 560px) {
  .nav-home-back.nav-has-back { display: none; }
}
/* Headers with their own controls (diary, library, pause, thank-you page) stay on one line. */
header a.back { white-space: nowrap; }
header .logo { flex-shrink: 0; margin-right: 6px; }
header .controls, header .top-actions { flex-wrap: nowrap; min-width: 0; }
/* Keep the line below the brand and controls as one continuous header edge. */
body:not(.coach-page) header.top,
body:not(.coach-page) > header,
body:not(.coach-page) > .wrap > header {
  border-bottom: 1px solid var(--border, rgba(58, 36, 24, .09));
}
header .controls .lang, header .top-actions .lang { display: flex; flex-wrap: nowrap; flex-shrink: 0; }
.nepsis-menu-button.nav-inline-menu { flex: 0 0 auto; margin-left: auto; }
.controls .nepsis-menu-button.nav-inline-menu, .top-actions .nepsis-menu-button.nav-inline-menu { margin-left: 0; }
@media (max-width: 430px) {
  header .controls, header .top-actions { gap: 5px; }
  header .controls a.back, header .top-actions a.back { padding: 6px 9px; font-size: .7rem; }
  header .controls .lang button, header .top-actions button[data-lang] { padding: 6px 8px; font-size: .72rem; }
  .nepsis-menu-button.nav-inline-menu { min-width: 40px; min-height: 40px; padding: 0; }
}
@media (max-width: 380px) {
  header .controls, header .top-actions { gap: 4px; }
  header .controls a.back, header .top-actions a.back { padding: 5px 8px; font-size: .66rem; }
  header .controls .lang button, header .top-actions button[data-lang] { padding: 5px 7px; font-size: .68rem; }
}
@media (max-width: 380px) {
  .nav-left { gap: 6px; }
  .nav-home-back { width: 36px; height: 36px; }
}

/* The menu panel */
#drawer.drawer {
  width: min(360px, 88vw);
  /* The sticky header covers the top of the panel, so the panel content starts below it. */
  padding: calc(76px + env(safe-area-inset-top, 0px)) 14px calc(20px + env(safe-area-inset-bottom, 0px));
  gap: 2px;
  border-radius: 28px 0 0 28px;
  background: var(--bg, #FFF8EE);
  box-shadow: -24px 0 64px rgba(58, 36, 24, .16);
  overflow-y: auto;
  overscroll-behavior: contain;
}
/* Keep the drawer and its scrim above page content, including stacked cards. */
body:not(.coach-page) #drawer.drawer { z-index: 1002; }
body:not(.coach-page) .scrim.open,
body:not(.coach-page) .nepsis-menu-scrim.open { z-index: 1001; }
.nav-drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 4px 4px 14px 8px; margin: 0 0 8px;
  border-bottom: 1px solid var(--border, #EEDCC8);
}
#drawer.drawer a.nav-drawer-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 0; margin: 0; background: none;
  font-size: 1.25rem; font-weight: 900; letter-spacing: -.045em; color: var(--fg, #3A2418);
  animation: none;
}
.nav-drawer-brand .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--orange, #F0702A); box-shadow: none; }
#drawer.drawer .nav-drawer-head .close {
  display: grid; place-items: center; align-self: center;
  position: static; margin: 0;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1.5px solid var(--border, #EEDCC8); background: var(--card, #FFFDF8);
  color: var(--fg, #3A2418); font-size: 1rem;
  transition: border-color .2s ease, color .2s ease, transform .25s ease;
}
#drawer.drawer .nav-drawer-head .close:hover { border-color: var(--orange, #F0702A); color: var(--orange, #F0702A); transform: rotate(90deg); }

/* Top-level links (Home, Premium) */
#drawer.drawer > a {
  display: flex; align-items: center; min-height: 48px;
  margin: 0; padding: 10px 14px; border-radius: 14px;
  font-size: 1.05rem; font-weight: 800; color: var(--fg, #3A2418);
}
/* Sign in in the drawer must meet AA on white (not bright orange #F0702A). */
#drawer.drawer a.drawer-signin,
#drawer.drawer #drawerAccBtn,
body.practice-page #drawer a.drawer-signin,
body.practice-page #drawer #drawerAccBtn {
  color: #B8501A !important;
}

/* Links a page hides on purpose (for example behind a feature switch) stay hidden. */
#drawer.drawer a[hidden] { display: none; }

/* Groups */
#drawer.drawer .menu-group {
  margin: 2px 0; padding: 0; border-top: 0; border-radius: 16px;
  transition: background-color .2s ease;
}
#drawer.drawer .menu-group[open] { background: color-mix(in srgb, var(--orange, #F0702A) 7%, transparent); padding-bottom: 6px; }
#drawer.drawer .menu-group summary {
  display: flex; align-items: center; min-height: 48px;
  padding: 10px 46px 10px 14px; border-radius: 14px;
  font-size: 1.02rem; font-weight: 850; line-height: 1.25; color: var(--fg, #3A2418);
}
#drawer.drawer .menu-group summary::after {
  content: ""; right: 20px; width: 8px; height: 8px;
  border-right: 2px solid var(--orange, #F0702A); border-bottom: 2px solid var(--orange, #F0702A);
  transform: translateY(-70%) rotate(45deg);
  transition: transform .25s ease;
}
#drawer.drawer .menu-group[open] summary::after { content: ""; transform: translateY(-25%) rotate(-135deg); }
#drawer.drawer .menu-group a {
  display: flex; align-items: center; min-height: 44px;
  margin: 0 8px 2px 18px; padding: 8px 12px;
  border-left: 2px solid var(--border, #EEDCC8); border-radius: 0 12px 12px 0;
  font-size: .97rem; font-weight: 700; color: var(--muted, #7A5F50);
}

/* Hover, focus and the page you are on */
#drawer.drawer > a:hover,
#drawer.drawer .menu-group summary:hover,
#drawer.drawer .menu-group a:hover {
  background: color-mix(in srgb, var(--orange, #F0702A) 12%, transparent);
  color: var(--fg, #3A2418);
}
#drawer.drawer a:focus-visible,
#drawer.drawer summary:focus-visible,
#drawer.drawer .close:focus-visible { outline: 2px solid var(--orange, #F0702A); outline-offset: 2px; }
#drawer.drawer a[aria-current="page"] {
  background: color-mix(in srgb, var(--orange, #F0702A) 16%, transparent);
  border-left-color: var(--orange, #F0702A);
  color: var(--ember, #D8392B); font-weight: 850;
}

/* Language and theme controls sit at the bottom when the page puts them in the menu */
#drawer.drawer > .lang { margin-top: auto; padding-top: 16px; }

/* Soften what is behind the open menu */
.scrim.open, .nepsis-menu-scrim.open { -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

@media (prefers-reduced-motion: reduce) {
  .nav-home-back, .nav-home-back svg,
  #drawer.drawer .menu-group, #drawer.drawer .menu-group summary::after,
  #drawer.drawer .nav-drawer-head .close { transition: none; }
}

/* Light Apple-style surface. Dark mode keeps its own tokens.
   Colour, type, radius and shadow only — no layout or behaviour hooks. */











/* Text/links on orange need AA — use darker ink, not #F0702A fill as text. */




/* Hamburger → ✕ when the drawer is open. */
.menu-btn {
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.menu-btn span,
.coach-page .menu-btn span {
  margin: 0 !important;
  transform-origin: center;
  transition: transform .2s ease, opacity .2s ease;
}
/* gap 5px + bar 2px → 7px center-to-center. */
.menu-btn.open span:nth-child(1),
.menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-btn.open span:nth-child(2),
.menu-btn[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}
.menu-btn.open span:nth-child(3),
.menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}
/* Coach uses gap:4px + 1.5px bars → 5.5px center-to-center. */
.coach-page .menu-btn {
  gap: 4px;
}
.coach-page .menu-btn.open span:nth-child(1),
.coach-page .menu-btn[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.coach-page .menu-btn.open span:nth-child(3),
.coach-page .menu-btn[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}
.nepsis-menu-button.open,
.nepsis-menu-button[aria-expanded="true"] {
  font-size: 0;
  line-height: 0;
}
.nepsis-menu-button.open::before,
.nepsis-menu-button[aria-expanded="true"]::before {
  content: "✕";
  font-size: 1.15rem;
  line-height: 1;
  color: inherit;
}



/* Interactive surfaces keep a soft frame; marketing blocks sit on the page. */



















/* Phone layout: readable type, 44px targets, safe areas, no sideways scroll. */
@media (max-width: 430px) {
  html { overflow-x: clip; }
  body {
    font-size: 16px;
    overflow-x: clip;
    padding-bottom: calc(76px + env(safe-area-inset-bottom));
  }
  html body :is(p, li, label, button, .btn, .primary, .secondary, .filter, .tool-button, .mini-button, .acc-btn, .account-btn, .nepsis-consent-actions button, .nepsis-consent-panel p) {
    font-size: 16px;
  }
  html body :is(input, textarea, select, .tool-input, .tool-textarea, .acc-email) {
    font-size: 16px !important;
    min-height: 44px;
  }
  html body :is(button, .btn, .primary, .secondary, .filter, .tool-button, .mini-button, .menu-btn, .theme-toggle, .lang button, .coach-lang button, .drawer .close, a.back, .acc-btn, .account-btn, .nepsis-consent-actions button) {
    min-height: 44px;
  }
  html body :is(.menu-btn, .theme-toggle, .lang button, .coach-lang button, .drawer .close, #drawer .close) {
    min-width: 44px;
    width: 44px;
    height: 44px;
  }
  html body header :is(.logo, .coach-brand) { min-height: 44px; align-items: center; }
  html body.coach-page :is(.menu-btn, .coach-lang button, .coach-text-button, .coach-btn) {
    min-width: 44px;
    min-height: 44px;
    font-size: 16px;
  }
  html body.coach-page .menu-btn { width: 44px; height: 44px; }
  html body .home-product-privacy-link, html body .home-product-more { min-height: 44px; display: inline-flex; align-items: center; }
  body.home-page .bento-orbit { right: 8px; width: 120px; height: 120px; }
  textarea { min-height: 120px; }
  :is(.menu-btn, .theme-toggle, .nepsis-menu-button, .lang button, .drawer .close, #drawer .close, .acc-btn, .account-btn, a.back, .nav-home-back) {
    min-width: 44px;
    min-height: 44px;
  }
  header.top, body > header, body > .wrap > header {
    padding-top: env(safe-area-inset-top);
  }
  .top-in, header .top, .top {
    height: 56px;
    min-height: 56px;
    flex-wrap: nowrap;
  }
  #drawer.drawer {
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  #drawer.drawer .close, #drawer.drawer .nav-drawer-head .close {
    width: 44px;
    height: 44px;
  }
  :is(section, [id]) { scroll-margin-top: calc(72px + env(safe-area-inset-top)); }
  :is(.acc-modal, .account, .sub-modal, .nepsis-dialog) {
    max-height: 100dvh;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    overflow: auto;
  }
  :is(.acc-card, .account-card, .sub-card, .nepsis-dialog) {
    width: min(100%, 28rem);
    max-height: calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 24px);
    overflow: auto;
  }
  /* Beat `body .nepsis-consent-panel` and the analytics.js injected sheet. */
  html body .nepsis-consent-panel,
  body .nepsis-consent-panel {
    left: max(12px, env(safe-area-inset-left, 0px)) !important;
    right: max(12px, env(safe-area-inset-right, 0px)) !important;
    width: auto !important;
    max-width: none !important;
    transform: none !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
    overflow: auto;
  }
  /* Floating ambient/analytics overlays are retired — keep consent panel only. */
  body.home-page .bento-card,
  body.home-page .bento-focus { overflow: visible; }
  /* Never clip the homepage globe or its atmosphere. */
  body.home-page main .hero,
  body.home-page main #globe.hero { overflow: visible; }
  .wrap, .top-in, header .top { max-width: 100%; }
}

/* Shared compact header: one ~52–56px row on every page (not just home).
   Selectors intentionally beat page CSS such as body.home-page .top-in. */
@media (max-width: 767px) {
  html body.home-page .top-in,
  html body.practice-page .top-in,
  html body.coach-page .coach-header-inner,
  html body.privacy-page header,
  html body.my-nepsis-dashboard header .top,
  html body :is(.top-in, header .top, .top, .coach-header-inner),
  html body header > .wrap.top,
  html body .wrap > header,
  html body header.coach-header {
    display: flex !important;
    width: 100% !important;
    max-width: none !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding-block: 0 !important;
    padding-inline: clamp(10px, 3.2vw, 20px) !important;
    margin: 0 !important;
    box-sizing: border-box;
    align-items: center;
    overflow: visible;
  }
  html body :is(.top-in, header .top, .top, .coach-header-inner) > :is(.nav-left, .logo, .head-right, .controls, .top-actions, .coach-controls),
  html body header > .wrap.top > :is(.nav-left, .logo, .head-right, .controls, .top-actions),
  html body .wrap > header > :is(.logo, .lang, .nepsis-ambient, .nepsis-menu-button, #menuBtn) {
    flex: 0 0 auto !important;
    width: auto !important;
    max-width: none !important;
  }
  html body :is(.head-right, .controls, .top-actions, .coach-controls) {
    margin-left: auto;
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    gap: 4px;
    min-width: 0;
  }
  /* Sign in, back chips, and home-arrow live in the menu / logo on phones. */
  html body :is(.acc-btn, .account-btn, #accBtn, #accountBtn),
  html body header a.back,
  html body .nav-home-back {
    display: none !important;
  }
  html body :is(.lang, .coach-lang) {
    height: 40px;
    flex: 0 0 auto;
  }
  html body :is(.lang button, .coach-lang button),
  html body header .top-actions > button[data-lang] {
    min-width: 30px !important;
    width: auto !important;
    min-height: 40px !important;
    height: 40px !important;
    padding: 0 6px !important;
    font-size: 11px !important;
    flex: 0 0 auto !important;
  }
  html body :is(.menu-btn, .nepsis-menu-button, .nepsis-ambient-toggle) {
    min-width: 40px !important;
    width: 40px !important;
    min-height: 40px !important;
    height: 40px !important;
    flex: 0 0 40px !important;
    padding: 0 !important;
    box-sizing: border-box;
  }
  html body .theme-toggle { display: none !important; }
  html body .nepsis-ambient {
    position: relative !important;
    inset: auto !important;
    flex: 0 0 auto !important;
  }
  html body header :is(.logo, .coach-brand) {
    font-size: clamp(16px, 4.6vw, 19px);
    min-height: 40px;
    flex-shrink: 0;
  }
  #drawer.drawer,
  #drawer.nepsis-site-drawer,
  body:not(.coach-page) #drawer.nepsis-site-drawer,
  body:not(.coach-page) #drawer.drawer,
  body.privacy-page #drawer.nepsis-site-drawer {
    padding-top: calc(64px + env(safe-area-inset-top, 0px));
  }
}
@media (max-width: 360px) {
  html body :is(.head-right, .controls, .top-actions, .coach-controls) { gap: 3px; }
  html body header :is(.logo, .coach-brand) { font-size: 16px; }
}

/* Analytics settings is an inline footer/menu control — never a fixed chip. */
html body .nepsis-consent-settings,
body .nepsis-consent-settings {
  position: static !important;
  display: none !important;
  inset: auto !important;
  box-shadow: none !important;
}
html body .nepsis-analytics-link,
body .nepsis-analytics-link {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
html body .nepsis-analytics-link[hidden],
body .nepsis-analytics-link[hidden] {
  display: none !important;
}
#drawer .nepsis-analytics-link,
.nepsis-site-drawer .nepsis-analytics-link {
  display: block;
  padding: .75rem .9rem;
  border-radius: .65rem;
  text-decoration: none;
  font-weight: 650;
  text-align: start;
  width: 100%;
  box-sizing: border-box;
}
#drawer .nepsis-analytics-link:hover,
.nepsis-site-drawer .nepsis-analytics-link:hover {
  background: var(--np-surface-muted, #f5f5f7);
}

/* Wider content, less empty gutter — Apple-like density. */
html:not([data-theme="dark"]) :is(.wrap, .top-in) {
  width: min(1200px, calc(100% - 40px));
  max-width: 1200px;
}
html:not([data-theme="dark"]) body.my-nepsis-dashboard .wrap {
  width: min(1200px, calc(100% - 32px));
}
html:not([data-theme="dark"]) body.my-nepsis-dashboard main {
  padding-top: 28px;
  padding-bottom: 56px;
}
html:not([data-theme="dark"]) body.my-nepsis-dashboard .intro {
  margin-bottom: 22px;
}
html:not([data-theme="dark"]) body.my-nepsis-dashboard main .page-heading,
html:not([data-theme="dark"]) body.my-nepsis-dashboard main > .wrap > .page-heading,
html:not([data-theme="dark"]) body.my-nepsis-dashboard .intro {
  padding-top: 12px;
  padding-bottom: 8px;
}
@media (max-width: 430px) {
  html:not([data-theme="dark"]) :is(.wrap, .top-in) {
    width: calc(100% - 32px);
    padding-left: 0;
    padding-right: 0;
  }
  html:not([data-theme="dark"]) body.my-nepsis-dashboard .wrap {
    width: calc(100% - 32px);
  }
}

/* ------------------------------------------------------------------
   One unified white top bar on every page (light-only site).
   - Opaque white, no divider line, no glass: content never shows
     through or appears to slide over the controls.
   - Sticky at the very top with a high z-index on every page.
   - On phones the bar grows by env(safe-area-inset-top) so the logo,
     account, language, sound and menu controls sit BELOW the iPhone
     status bar / notch (viewport-fit=cover) and are always tappable.
     The compact-header rule above matches header.top itself (it has the
     class "top") and zeroed its padding-block with !important, which
     pushed the controls under the status bar. This block restores it.
   ------------------------------------------------------------------ */
html, html body { background-color: #FFFDF8; }
/* Hash targets and focused elements clear the sticky header on first paint.
   site-dock.css only sets scroll-padding-top once body.wc-has-dock exists, which
   is too late for the browser's initial hash scroll (privacy and other pages
   that do not load information.css). 92px matches the dock rule and clears the
   ~68px header. Not loaded on the home page, which has its own padding. */
html { scroll-padding-top: 92px; }
/* coach.html had the browser's default 8px body margin: a gap above the bar. */
html body.coach-page { margin: 0; }
html body :is(header.top, body > header, body > .wrap > header, header.coach-header) {
  position: sticky !important;
  top: 0 !important;
  z-index: 900 !important;
  background: #fff !important;
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
  border: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}
html body :is(header.top, body > header, body > .wrap > header, header.coach-header)::before,
html body :is(header.top, body > header, body > .wrap > header, header.coach-header)::after {
  border: 0 !important;
  box-shadow: none !important;
}
@media (max-width: 767px) {
  html body :is(header.top, body > header, body > .wrap > header, header.coach-header) {
    padding-top: env(safe-area-inset-top, 0px) !important;
    height: auto !important;
    min-height: calc(56px + env(safe-area-inset-top, 0px)) !important;
    max-height: none !important;
    box-sizing: border-box !important;
  }
  /* Account lives in the bar on phones as a round icon (tap = account / sign in). */
  html body header :is(#accBtn, #accountBtn) {
    display: inline-flex !important;
    position: relative;
    align-items: center;
    justify-content: center;
    flex: 0 0 40px !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(0, 0, 0, .12) !important;
    background: #fff !important;
    color: #1d1d1f !important;
    font-size: 0 !important;
    line-height: 0 !important;
    overflow: hidden;
    box-shadow: none !important;
    transform: none !important;
  }
  html body header :is(#accBtn, #accountBtn) > * { display: none !important; }
  html body header :is(#accBtn, #accountBtn)::before {
    content: "";
    width: 18px;
    height: 18px;
    background: currentColor;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 20c1.6-3.6 4.5-5.4 8-5.4s6.4 1.8 8 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='8' r='4' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M4 20c1.6-3.6 4.5-5.4 8-5.4s6.4 1.8 8 5.4' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* Signed in: a small green check on the icon replaces the wide badge. */
  html body header :is(#accBtn, #accountBtn)[data-nepsis-signed-in="true"] {
    border-color: rgba(75, 125, 83, .45) !important;
    color: #426647 !important;
  }
  html body header :is(#accBtn, #accountBtn)[data-nepsis-signed-in="true"]::after {
    content: "";
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #4f9a5a;
    box-shadow: 0 0 0 2px #fff;
  }
  html body header #nepsis-auth-state { display: none ; }
}
/* The closed menu drawer sits just off-screen to the right, but its wide
   shadow leaked a faint grey strip down the right edge of the page. */
html body #drawer:not(.open),
html body .nepsis-site-drawer:not(.open) {
  box-shadow: none ;
  border-left-color: transparent ;
}


/* Shared drawer: every page uses the same top-level link alignment, and a
   language switch at the bottom when the page does not already have one. */
#drawer.drawer > a,
#drawer.nepsis-site-drawer > a,
#drawer > a.drawer-link {
  display: flex;
  align-items: center;
  min-height: 48px;
  margin: 0;
  margin-left: 0 ;
  padding: 10px 14px;
  border: 0;
  border-left: 0;
  border-radius: 14px;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--fg, #25211E);
  text-decoration: none;
  box-sizing: border-box;
  width: auto;
}
#drawer > .lang,
#drawer > .language-switch,
#drawer > .drawer-lang,
#drawer.drawer > .lang,
#drawer.nepsis-site-drawer > .lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  margin-left: 0;
  padding: 12px 14px 10px;
  flex-shrink: 0;
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: inherit;
  border-top: 1px solid var(--border, #EDE4D8);
}
#drawer .drawer-lang button,
#drawer > .lang button,
#drawer > .language-switch button {
  min-height: 36px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--border, #EDE4D8);
  border-radius: 999px;
  background: #fff;
  color: var(--fg, #25211E);
  font: inherit;
  font-size: .85rem;
  font-weight: 800;
  cursor: pointer;
}
#drawer .drawer-lang button.active,
#drawer > .lang button.active,
#drawer > .language-switch button.active {
  background: var(--np-accent);
  border-color: var(--np-accent);
  color: var(--np-on-accent);
}
#drawer .drawer-lang button:focus-visible,
#drawer > .lang button:focus-visible {
  outline: 2px solid var(--np-focus);
  outline-offset: 2px;
}

/* A closed menu panel is not focusable and not read out (it only sits off-screen to the right).
   It keeps its slide-out animation: visibility flips after the transform finishes. */
html body :is(#drawer, .nepsis-site-drawer):not(.open) {
  visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .26s ;
}
html body :is(#drawer, .nepsis-site-drawer).open { visibility: visible; transition: transform .25s ease, visibility 0s ; }
@media (prefers-reduced-motion: reduce) {
  html body :is(#drawer, .nepsis-site-drawer):not(.open) { transition: none !important; }
}

/* A closed dialog-style panel must not take keyboard focus. */
html body .modal[aria-hidden="true"]:not(.open) { visibility: hidden; }

/* Account / sign-in controls that stay visible on phones are at least 40px tall. */
@media (max-width: 899px) {
  html body :is(#accBtn, #accountBtn, #communityAccountBtn, .acc-btn, .account-btn) { min-height: 40px ; min-width: 40px; box-sizing: border-box; }
}
