/* Accessibility Focus Ring States */
a:focus, button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 2px;
}

/* Skip-to-content anchor rule for keyboard users */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--accent-color);
    color: #ffffff;
    padding: 8px;
    z-index: 100;
    transition: top 0.2s;
}
.skip-link:focus {
    top: 0;
}

/* Sticky floating side navigation constraint for desktop viewports */
@media (min-width: 1024px) {
    .sticky-nav {
        position: sticky;
        top: 6rem; /* Adjusted down slightly to sit under the sticky header */
        max-height: calc(100vh - 8rem);
        overflow-y: auto;
    }
}

/* Anchor scroll offset: clears the sticky navbar when jumping to section IDs */
.scroll-mt-6 {
    scroll-margin-top: 5rem;
}

/* Cookie consent banner slide-in/out animation (JS toggles .show + hidden) */
#cookie-notice {
    transform: translateY(100%);
    transition: transform 0.3s ease-in-out;
}

#cookie-notice.show {
    transform: translateY(0);
}

/* The [hidden] attribute must beat Bootstrap's display utilities */
#cookie-notice[hidden] {
    display: none !important;
}
