/* Public account links only: no account data or role-specific controls. */
.site-account-menu{position:relative;display:inline-block;flex:none;color:var(--theme-on-dark,#edf3f3)}
.site-account-menu>summary{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:8px 12px;list-style:none;cursor:pointer;border:1px solid var(--theme-dark-line,#45616c);border-radius:9px;background:var(--theme-dark-panel,#132c38);color:var(--theme-on-dark,#edf3f3);font-size:13px;font-weight:700}
.site-account-menu>summary::-webkit-details-marker{display:none}
.site-account-menu>summary:focus-visible{outline:2px solid var(--theme-dark-accent,#e5bd78);outline-offset:3px}
.site-account-menu[open]>summary{background:var(--theme-dark-hover,#294653)}
nav.site-account-popover{position:absolute;right:0;top:calc(100% + 8px);z-index:100;display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px!important;width:330px;max-width:calc(100vw - 24px);max-height:var(--account-menu-height,calc(100dvh - 110px));overflow:auto;box-sizing:border-box;padding:14px;background:var(--theme-dark-panel,#132c38);color:var(--theme-on-dark,#edf3f3);border:1px solid var(--theme-dark-line,#45616c);border-radius:13px;box-shadow:0 16px 48px #08131bc0;text-align:left}
nav.site-account-popover>a{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:5px;min-width:0;min-height:60px;box-sizing:border-box;padding:10px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:var(--theme-on-dark,#edf3f3)!important;text-decoration:none;white-space:normal;overflow-wrap:anywhere}
nav.site-account-popover>a strong{font-size:12px;line-height:1.4}
nav.site-account-popover>a small{font-size:10px;line-height:1.5;color:inherit}
nav.site-account-popover>a:hover,nav.site-account-popover>a:focus-visible{background:var(--theme-dark-hover,#294653);border-color:var(--theme-dark-line,#45616c)}
nav.site-account-popover>a.recruitment-cta{background:var(--theme-dark-accent,#e5bd78);color:var(--theme-dark-ink,#132b35)!important;border-color:var(--theme-dark-accent,#e5bd78)}
nav.site-account-popover>a.recruitment-cta:hover,nav.site-account-popover>a.recruitment-cta:focus-visible{background:var(--theme-dark-accent-hover,#f0cd95);color:var(--theme-dark-ink,#132b35)!important}
@media(max-width:900px){nav.site-account-popover{position:fixed;top:var(--account-menu-top,80px);left:12px;right:12px;width:auto;max-width:calc(100vw - 24px)}}
/* Public navigation follows the same order on landing pages, guides and previews. */
.library-header>nav,.showcase-header>nav{gap:8px 16px}
.library-header>nav>.menu-link,.showcase-header>nav>.menu-link{min-height:44px;box-sizing:border-box;white-space:nowrap}
.showcase-header>nav>.menu-link{font-size:.9rem;text-decoration:none}
.showcase-header>nav>.menu-link[aria-current]{text-decoration:underline;text-underline-offset:5px}
.showcase-header>nav>.open-app{border:1px solid var(--line);border-radius:8px;padding:8px 12px}
@media(max-width:900px){.library-header,.showcase-header{flex-wrap:wrap}.library-header>nav,.showcase-header>nav{justify-content:flex-start}}
@media(max-width:640px){.library-header>nav,.showcase-header>nav{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));width:100%;gap:4px 8px}.library-header>nav>.menu-link,.showcase-header>nav>.menu-link{grid-column:span 3;max-width:none!important;justify-content:flex-start;white-space:normal;font-size:.8rem}.library-header>nav>.site-account-menu,.showcase-header>nav>.site-account-menu{grid-column:span 3}.library-header>nav>.open-app,.showcase-header>nav>.open-app{margin-left:0}.library-header>nav>.site-account-menu>summary,.showcase-header>nav>.site-account-menu>summary{justify-content:flex-start}.library-header>nav:has([data-global-dice])>.open-app{grid-column:span 2}.library-header>nav:has([data-global-dice])>.site-account-menu{grid-column:span 3}.library-header>nav>[data-global-dice]{grid-column:span 1}.library-header>nav>[data-global-dice]{justify-self:start;min-height:44px}}
