/* 공통 메뉴 줄 (templates/_nav.html) — base.css 변수 사용 */
.app-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: hsl(var(--background));
    border-bottom: 1px solid hsl(var(--border));
}

.app-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.app-nav-brand {
    font-weight: 700;
    font-size: 15px;
    color: hsl(var(--primary));
    text-decoration: none;
    white-space: nowrap;
}

.app-nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    margin: 0;
    padding: 0;
    flex: 1;
    flex-wrap: wrap;
}

/* a·span·button 이 같은 모양이 되도록 UA 기본값을 리셋한다 */
.app-nav-link {
    display: inline-block;
    padding: 6px 10px;
    border: 0;
    border-radius: var(--radius);
    background: none;
    font: inherit;
    font-size: 14px;
    color: hsl(var(--muted-foreground));
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
}

.app-nav-link:hover {
    background: hsl(var(--accent));
    color: hsl(var(--foreground));
}

.app-nav-link.is-active,
.app-nav-brand.is-active {
    color: hsl(var(--foreground));
}

.app-nav-link.is-active {
    background: hsl(var(--secondary));
    font-weight: 600;
}

.app-nav-link.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.app-nav-link.is-disabled:hover {
    background: none;
    color: hsl(var(--muted-foreground));
}

@media (max-width: 480px) {
    .app-nav-inner { gap: 8px; padding: 6px 16px; }
    .app-nav-links { order: 3; flex-basis: 100%; }
    .app-nav-account { margin-left: auto; }
}
