/* Visible section navigation, independent of the external utility stylesheet. */
#menu-navigation, #nav-buttons-container {
    display: grid;
    grid-auto-flow: row;
    grid-auto-columns: auto;
    grid-template-columns: repeat(auto-fit, minmax(44px, 1fr));
    gap: 4px;
    width: 100%;
    overflow: visible;
    scroll-snap-type: none;
}
#menu-navigation { --section-accent: #f2be86; --section-ink: #301709; --section-surface: #302219; }
#nav-buttons-container { --section-accent: #79d2c9; --section-ink: #102d30; --section-surface: #173437; }
#menu-navigation .nav-btn, #nav-buttons-container .nav-btn {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding-left: 2px;
    padding-right: 2px;
    color: #fff7ed;
    background: linear-gradient(150deg, var(--section-surface), #151b20);
    border: 1px solid color-mix(in srgb, var(--section-accent) 48%, transparent);
    box-shadow: inset 0 1px 0 #ffffff16;
    transform: none;
    transition: background-color .25s ease, color .25s ease, border-color .25s ease, box-shadow .25s ease;
    animation: section-welcome 900ms ease-out both;
}
#menu-navigation .nav-btn { height: 70px; }
#navbar.nav-compact #nav-buttons-container .nav-btn, #nav-buttons-container .nav-btn { height: 52px; padding-top: 6px; padding-bottom: 6px; }
#menu-navigation .nav-btn span, #nav-buttons-container .nav-btn .nav-text {
    display: block;
    max-width: 100%;
    min-width: 0;
    padding: 0;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.15;
}
#nav-buttons-container .nav-btn .nav-text { font-size: 8px; }
#menu-navigation .nav-btn svg, #nav-buttons-container .nav-btn svg { flex-shrink: 0; color: var(--section-accent); }
#menu-navigation .nav-btn.active, #nav-buttons-container .nav-btn.bg-nc-teal {
    color: var(--section-ink);
    background: var(--section-accent);
    border-color: var(--section-accent);
    box-shadow: 0 0 12px color-mix(in srgb, var(--section-accent) 25%, transparent);
    transform: none;
}
#menu-navigation .nav-btn.active svg, #nav-buttons-container .nav-btn.bg-nc-teal svg { color: inherit; }
#menu-navigation .nav-btn:focus-visible, #nav-buttons-container .nav-btn:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
@media (hover: hover) {
    #menu-navigation .nav-btn:hover, #nav-buttons-container .nav-btn:hover { border-color: var(--section-accent); box-shadow: inset 0 0 0 1px var(--section-accent); }
}
@keyframes section-welcome {
    from { border-color: var(--section-accent); box-shadow: inset 0 0 16px #ffffff28; }
    to { box-shadow: inset 0 1px 0 #ffffff16; }
}
@media (prefers-reduced-motion: reduce) {
    #menu-navigation .nav-btn, #nav-buttons-container .nav-btn { animation: none; transition: none; }
}
/* Keep the final dish clear of the navigation if many sections require a second row. */
#panels-container > .panel { padding-bottom: calc(var(--navbar-height, 128px) + 24px); }
