/* A small header, with room for the next class tool. */
.nav-with-menu.nav-home { display:flex; flex-wrap:nowrap; gap:14px; }
.nav-with-menu.nav-home .brand { flex:0 1 auto; margin-right:0; min-width:0; }
.nav-with-menu .nav-actions { margin-left:auto; gap:8px; }
.site-menu-button,.site-menu-close,.site-language-button { display:inline-flex; align-items:center; justify-content:center; flex:none; gap:8px; min-height:42px; border:1px solid var(--line-2,#d5ddd1); border-radius:12px; padding:10px 13px; color:var(--ink,#24372e); background:var(--surface,#fff); font:700 12px/1.25 Manrope,system-ui,sans-serif; cursor:pointer; }
.site-menu-button svg,.site-menu-close svg,.site-language-button svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.site-menu-button:hover,.site-menu-close:hover,.site-language-button:hover { background:var(--surface-2,#f3f5f1); }
.site-menu-button[aria-expanded="true"] { color:var(--accent-ink,#fff); background:var(--accent,#2d5746); border-color:var(--accent,#2d5746); }
.site-language-button { min-width:72px; }
.site-language-button span { white-space:nowrap; }
.nav-current { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:12px; color:var(--ink-2,#52635a); border-left:1px solid var(--line-2,#d5ddd1); padding-left:18px; margin-left:4px; }
.site-menu { position:fixed; inset:12px auto 12px 12px; margin:0; width:min(380px,calc(100vw - 24px)); max-width:calc(100vw - 24px); height:calc(100dvh - 24px); max-height:calc(100dvh - 24px); padding:0; overflow:auto; border:1px solid var(--line-2,#d5ddd1); border-radius:22px; background:var(--surface,#fff); color:var(--ink,#24372e); box-shadow:0 18px 70px #142b3240; overscroll-behavior:contain; z-index:10050; }
.site-menu:not([open]) { display:none; }
.site-menu::backdrop { background:#152b245c; backdrop-filter:blur(3px); }
.site-menu[open] { animation:site-menu-enter .18s ease-out; }
.site-menu-open { overflow:hidden; }
.site-menu-head { display:flex; align-items:flex-start; gap:14px; justify-content:space-between; padding:26px 24px 22px; border-bottom:1px solid var(--line,#e5e8dd); }
.site-menu-head h2 { font-size:23px; letter-spacing:-.04em; margin:8px 0; }
.site-menu-head p { color:var(--ink-2,#52635a); font-size:12px; line-height:1.6; margin:0; }
.site-menu-kicker { color:var(--ink-3,#758078); font-size:11px; font-weight:800; letter-spacing:.16em; }
.site-menu-close { width:38px; height:38px; min-height:38px; padding:8px; }
.site-menu .site-menu-tabs { display:flex; flex-direction:column; align-items:stretch; gap:5px; width:auto; padding:16px; background:none; border:none; border-radius:0; box-shadow:none; overflow:visible; }
.site-menu .site-menu-tabs .tab { display:flex; align-items:center; justify-content:flex-start; flex:none; gap:14px; width:100%; height:auto; min-height:49px; padding:14px 16px; border-radius:12px; background:transparent; color:var(--ink-2,#52635a); font-size:14px; font-weight:700; text-align:left; }
.site-menu .site-menu-tabs .tab:hover { background:var(--surface-2,#f3f5f1); color:var(--ink,#24372e); }
.site-menu .site-menu-tabs .tab.on { background:var(--accent,#2d5746); color:var(--accent-ink,#fff); }
.site-menu .site-menu-tabs .tab .i { width:20px; height:20px; flex:none; }
.site-menu .site-menu-tabs .tab .tab-lock { width:13px; height:13px; margin-left:auto; opacity:.7; }
.site-menu-footer { display:flex; flex-direction:column; gap:10px; border-top:1px solid var(--line,#e5e8dd); padding:18px 24px 24px; }
.site-menu-footer .btn { justify-content:flex-start; }
body[data-page="home"] .bottom-tabs { display:none!important; }
body[data-page="home"] { padding-bottom:24px; }
body[data-page="home"] .fab { bottom:max(18px,env(safe-area-inset-bottom)); }
@keyframes site-menu-enter { from { opacity:0; transform:translateX(-16px); } to { opacity:1; transform:translateX(0); } }
@media(max-width:720px) {
  .nav-with-menu.nav-home { gap:10px; }
  .nav-with-menu .brand { flex:1; }
  .nav-with-menu .brand-text b { gap:5px; font-size:14px; }
  .nav-with-menu .brand-text small { font-size:9px; }
  .nav-with-menu .brand-mark.photo { width:36px; height:36px; border-radius:11px; }
  .site-menu-button { width:40px; min-height:40px; padding:9px; }
  .site-menu-button span,.nav-current { display:none; }
  .site-language-button { padding:10px; min-width:48px; min-height:40px; }
  .site-language-button svg { display:none; }
  .nav-with-menu .nav-actions { gap:6px; }
  .nav-with-menu .theme-toggle { min-width:40px; width:40px; height:40px; }
}
@media(max-width:380px) { .nav-with-menu .brand-text small,.nav-with-menu .brand-dot { display:none; }.nav-with-menu.nav-home { gap:7px; }.nav-with-menu .brand-mark.photo { width:30px; height:30px; }.nav-with-menu .brand { gap:7px; } }
@media(prefers-reduced-motion:reduce) { .site-menu[open] { animation:none; } }
