/* P2: extracted from the inline <style> block in template/en/head.html.
   Shared by every page that includes head.html; cacheable for 7 days via nginx. */

/* The header is fixed and about 68px tall. Keep anchor targets and focused
   sections clear of it instead of letting it cover the first lines of text. */
html { scroll-padding-top: 88px; }
@media (max-width: 767px) { html { scroll-padding-top: 76px; } }

.nav-dropdown { position: relative; }
.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    min-width: 140px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    z-index: 9999;
}
.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
    display: block;
    padding: 12px 16px;
    font-size: 14px;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    white-space: nowrap;
}
.nav-dropdown-menu a:last-child { border-bottom: none; }
.nav-dropdown-menu a:hover { background: #f9f9f9; color: #c0392b; }
