/* Responsive navigation shared by the platform and published websites. */
body.nv-drawer-open { overflow: hidden; }
.nv-drawer-backdrop { position: fixed; inset: 0; z-index: 2040; background: rgba(7, 20, 40, .52); border: 0; backdrop-filter: blur(3px); }
.nv-drawer-backdrop[hidden] { display: none !important; }
.nv-drawer-heading { display: none; }
.nv-drawer-close { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 0; border: 1px solid currentColor; border-radius: 12px; background: transparent; color: inherit; font: 28px/1 sans-serif; cursor: pointer; }
.nv-menu-icon { display: grid; gap: 4px; width: 20px; }
.nv-menu-icon span { display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor; }
.nv-account-toggle { display: none; }
#sidebarToggle { width: 44px; height: 44px; z-index: 1030; }
.sidebar-brand > div { min-width: 0; }
.sidebar-brand-name { overflow-wrap: anywhere; }
.sidebar-close { display: none; margin-left: auto; }
.sidebar-nav { min-height: 0; overscroll-behavior: contain; }
.sidebar { transition: transform .22s ease, visibility .22s; }
.sidebar.nv-drawer-mobile { width: min(320px, calc(100vw - 48px)); z-index: 2050; visibility: hidden; transform: translateX(-100%); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.sidebar.nv-drawer-mobile.nv-drawer-visible { visibility: visible; transform: translateX(0); }
.sidebar.nv-drawer-mobile .sidebar-close { display: inline-flex; color: white; }
.admin-navigation .sidebar-overlay { z-index: 2040; }
.admin-navigation.layout-menu-open #sidebarToggle { visibility: hidden; }
.topbar > .brand { min-width: 0; }
.topbar > .brand > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.website-theme .site-brand-row { min-width: 0; }
.website-theme .site-logo { min-width: 0; display: flex; align-items: center; gap: 10px; }
.website-theme .site-logo > span:last-child { overflow-wrap: anywhere; min-width: 0; }
.website-theme .site-menu-toggle { flex: 0 0 44px; width: 44px; height: 44px; cursor: pointer; }
.site-navbar.nv-mobile-nav { display: flex; flex-direction: row; align-items: center; padding: 12px 18px; gap: 0; }
.site-navbar.nv-mobile-nav .site-brand-row { width: 100%; }
.site-navbar.nv-mobile-nav .site-menu-toggle { display: inline-flex; }
.website-theme .site-nav.nv-drawer-mobile {
  position: fixed; inset: 0 0 0 auto; z-index: 2050;
  width: min(340px, calc(100vw - 40px)); height: 100dvh;
  display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap;
  gap: 6px; margin: 0; padding: max(18px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  background: var(--site-surface, #fff); color: var(--site-ink, #172554);
  box-shadow: -16px 0 50px rgba(7,20,40,.16); overflow-y: auto; overscroll-behavior: contain;
  visibility: hidden; transform: translateX(100%); transition: transform .22s ease, visibility .22s;
}
.website-theme .site-nav.nv-drawer-visible { transform: translateX(0); visibility: visible; }
.site-nav.nv-drawer-mobile .nv-drawer-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--site-border, #e5e7eb); }
.site-nav.nv-drawer-mobile .nv-drawer-heading strong { font: 800 18px/1.4 var(--site-font, sans-serif); color: var(--site-ink); overflow-wrap: anywhere; }
.website-theme .site-nav.nv-drawer-mobile .nv-drawer-close { width: 44px; padding: 0; color: var(--site-ink); font-size: 28px; }
.website-theme .site-nav.nv-drawer-mobile .site-nav-link,
.website-theme .site-nav.nv-drawer-mobile .site-nav-auth { display: flex; justify-content: space-between; width: 100%; min-height: 48px; padding: 12px; color: var(--site-ink); font-size: 15px; text-align: left; white-space: normal; overflow-wrap: anywhere; }
.website-theme .site-nav.nv-drawer-mobile .site-nav-auth { margin-top: 16px; justify-content: center; }
.website-theme .site-nav.nv-drawer-mobile .site-nav-dropdown { width: 100%; padding: 0; }
.site-nav.nv-drawer-mobile .site-nav-dropdown::after { display: none; }
.website-theme .site-nav.nv-drawer-mobile .site-dropdown-menu { position: static; display: none; min-width: 0; background: var(--site-soft); border: 0; box-shadow: none; padding: 4px 8px 4px 16px; }
.website-theme .site-nav.nv-drawer-mobile .dropdown-open .site-dropdown-menu { display: grid; }
.site-nav.nv-drawer-mobile .site-dropdown-menu a { min-height: 44px; display: flex; align-items: center; white-space: normal; overflow-wrap: anywhere; }
.nv-drawer-ready :focus-visible, [data-drawer-toggle]:focus-visible, .site-menu-toggle:focus-visible { outline: 3px solid #15b9e8; outline-offset: 3px; }
@media (max-width: 860px) {
  .admin-mode .admin-topbar { display: flex; flex-wrap: nowrap; gap: 10px; min-height: 72px; padding: 12px 16px 12px 72px; }
  .admin-topbar .topbar-breadcrumb { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11px; }
  .admin-topbar .topbar-search, .admin-topbar .topbar-right > span { display: none; }
  .admin-topbar .topbar-right { flex: 0 0 auto; margin: 0; }
  .admin-topbar .admin-web-link { min-width: 44px; min-height: 44px; padding: 8px; font-size: 11px; }
  .admin-topbar .topbar-avatar { width: 36px; height: 36px; }
  .topbar[data-layout-drawer] { backdrop-filter: none; align-items: center; height: 72px; padding: 12px 18px; gap: 16px; }
  .nv-account-toggle { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--green-800); }
  .topbar .nav.nv-drawer-mobile { position: fixed; inset: 0 0 0 auto; z-index: 2050; width: min(320px, calc(100vw - 40px)); height: 100dvh; background: white; display: flex; flex-direction: column; flex-wrap: nowrap; align-items: stretch; justify-content: flex-start; gap: 10px; padding: max(18px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; visibility: hidden; transform: translateX(100%); transition: transform .22s ease, visibility .22s; }
  .topbar .nav.nv-drawer-visible { visibility: visible; transform: translateX(0); }
  .topbar .nav .nv-drawer-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
  .topbar .nav a, .topbar .nav form button { display: block; width: 100%; min-height: 48px; text-align: left; padding: 14px; }
  .topbar .nav .nv-drawer-close { padding: 0; }
  .topbar.layout-menu-open { z-index: 2060; backdrop-filter: none; }
}
@media (max-width: 380px) {
  .admin-topbar .admin-web-link span:last-child { display: none; }
  .admin-topbar .admin-web-link span:first-child { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .sidebar, .website-theme .site-nav.nv-drawer-mobile, .topbar .nav.nv-drawer-mobile { transition: none; }
}

.admin-navigation .sidebar-overlay:not([hidden]) { display: block; }

.nv-mobile-section-links { display: none; }
@media (max-width: 860px) {
  .nv-mobile-section-links { display: contents; }
  .website-page > .website-tabs, .website-page > .nb-section-nav { display: none; }
}
