/* Shared public navigation; deliberately scoped away from app/admin headers. */
.navbar.public-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    height: auto;
    margin: 0;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid #e2e8f0;
    color: #0f172a;
    line-height: 1.5;
}
.public-nav .navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    max-width: 1280px;
    margin: 0 auto;
}
.public-nav .brand { flex: 0 0 auto; white-space: nowrap; }
.public-nav .nav-links { display: flex; align-items: center; gap: 1.25rem; margin: 0 auto; }
.public-nav .nav-links a {
    color: #64748b;
    font-size: .875rem;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}
.public-nav .nav-links a:hover, .public-nav a[aria-current="page"] { color: #0f172a; }
.public-nav .nav-actions { display: flex; align-items: center; gap: .75rem; flex: 0 0 auto; }
.public-nav .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: .625rem 1rem;
    border-radius: 8px;
    font-family: inherit;
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
}
.public-nav .btn-ghost { background: transparent; color: #334155; }
.public-nav .btn-primary { background: #0f172a; color: #fff; }
.public-nav .btn-primary:hover { background: #334155; }
.public-nav .ah-lang-btn { flex: 0 0 auto; }
.public-nav-menu, .public-nav-close {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: #0f172a;
    cursor: pointer;
}
.public-nav :focus-visible, .public-nav-drawer :focus-visible {
    outline: 3px solid #6366f1;
    outline-offset: 3px;
}
.public-nav-overlay {
    position: fixed;
    inset: 0;
    z-index: 10001;
    background: rgba(15, 23, 42, .45);
}
.public-nav-drawer {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 10002;
    width: min(320px, 100vw);
    height: 100%;
    height: 100dvh;
    padding: max(1rem, env(safe-area-inset-top)) 1.5rem max(1rem, env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    background: #fff;
    color: #0f172a;
    box-shadow: -4px 0 32px rgba(0, 0, 0, .15);
    font-family: 'Inter', sans-serif;
}
.public-nav-close { display: flex; margin: 0 0 .5rem auto; }
.public-nav-drawer a {
    display: block;
    padding: .85rem 0;
    border-bottom: 1px solid #e2e8f0;
    color: #334155;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
}
.public-nav-drawer .drawer-cta {
    margin-top: 1rem;
    padding: .85rem;
    border: 0;
    border-radius: 10px;
    background: #0f172a;
    color: #fff;
    text-align: center;
}
.public-nav [hidden], .public-nav-drawer [hidden],
.public-nav-overlay[hidden], .public-nav-drawer[hidden] { display: none !important; }
.public-nav-spacer { height: 77px; }
@media (max-width: 1199px) {
    .navbar.public-nav { padding: .75rem 1.25rem; }
    .public-nav .navbar-inner { gap: .5rem; }
    .public-nav .nav-links, .public-nav #auth-buttons, .public-nav #user-menu-container { display: none !important; }
    .public-nav-menu { display: flex; }
    .public-nav .ah-lang-btn { margin-left: auto; }
    .public-nav-spacer { height: 69px; }
}
