/* Shared navigation for Dahinet's standalone HTML pages. */
.header {
    --nav-ink: #142d46;
    --nav-muted: #5d7186;
    --nav-blue: #0066cc;
    --nav-line: #dde6ef;
    --nav-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #fff;
    backdrop-filter: none;
    border-bottom: 1px solid var(--nav-line);
    box-shadow: none;
    transition: box-shadow 160ms ease;
}
.header.scrolled { box-shadow: 0 4px 20px #0e2e4a0a; }
.header .container { max-width: 1360px; padding-inline: 28px; }
.header .navbar { gap: 32px; min-height: 88px; padding: 0; }
.header .logo { flex-shrink: 0; }
.header .logo a { gap: 10px; color: var(--nav-blue); text-decoration: none; }
.header .nav-icon { display: block; width: 18px; height: 18px; flex-shrink: 0; }
.header .nav-brand-mark { width: 36px; height: 36px; stroke-width: 2; }
.header .nav-brand-copy { display: flex; flex-direction: column; gap: 1px; }
.header .nav-brand-name { font-family: 'Poppins', var(--nav-font); font-size: 27px; font-weight: 700; line-height: 1.15; letter-spacing: -.7px; }
.header .nav-brand-tagline { font-family: var(--nav-font); color: var(--nav-muted); font-size: 10px; font-weight: 500; line-height: 1.5; letter-spacing: .02em; }
.header .nav-menu { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header .nav-menu > li > a, .header .dropdown-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 14px; background: transparent; border: 0; border-radius: 7px; color: var(--nav-ink); font-family: var(--nav-font); font-size: 14px; font-weight: 600; line-height: 1.4; white-space: nowrap; cursor: pointer; text-decoration: none; }
.header .nav-menu a::after { display: none; }
.header .nav-menu > li > a:hover, .header .dropdown-toggle:hover { background: #f2f6fb; color: var(--nav-blue); }
.header .nav-menu > li > a.nav-current, .header .dropdown-toggle.nav-current { color: var(--nav-blue); background: #edf4fc; }
.header .dropdown.active .dropdown-toggle { color: var(--nav-blue); background: #edf4fc; }
.header .nav-chevron { width: 14px; height: 14px; transition: transform 160ms ease; }
.header .dropdown.active .nav-chevron { transform: rotate(180deg); }
.header .nav-actions { display: flex; gap: 10px; align-items: center; flex-shrink: 0; }
.header .nav-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 11px 16px; border-radius: 8px; font-family: var(--nav-font); font-size: 13px; font-weight: 600; line-height: 1.4; white-space: nowrap; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease; }
.header .nav-action-panel { border: 1px solid #cedbe8; background: #fff; color: var(--nav-ink); }
.header .nav-action-panel:hover { background: #edf4fc; border-color: #a6c4e4; }
.header .nav-actions .nav-action-register { border: 1px solid var(--nav-blue); background: var(--nav-blue); color: #fff; }
.header .nav-actions .nav-action-register:hover { background: #0054aa; }
.header .nav-actions .nav-icon { width: 16px; height: 16px; }
.header .nav-action-label-mobile { display: none; }
.header a:focus-visible, .header button:focus-visible { outline: 3px solid #0076d5; outline-offset: 3px; }
.header button { touch-action: manipulation; }
.header .dropdown-menu { display: none; width: 580px; min-width: 0; top: calc(100% + 20px); left: 50%; margin: 0; padding: 0; transform: translateX(-50%); opacity: 1; visibility: visible; background: #fff; border: 1px solid var(--nav-line); border-radius: 14px; box-shadow: 0 16px 48px #102e4c24; overflow: hidden; transition: none; }
.header .dropdown-menu[hidden] { display: none !important; }
.header .dropdown.active .dropdown-menu { display: block; margin: 0; }
.header .dropdown-menu::before { display: none; }
.header .dropdown-menu a { transform: none; text-decoration: none; }
.header .nav-products-heading { padding: 22px 24px 16px; }
.header .nav-products-heading > span { font-family: var(--nav-font); font-size: 10px; font-weight: 700; color: var(--nav-muted); letter-spacing: .12em; }
.header .nav-products-heading p { margin: 5px 0 0; font-family: var(--nav-font); color: var(--nav-ink); font-size: 14px; line-height: 1.5; }
.header .nav-products-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 0 14px 16px; }
.header .nav-products-grid .nav-product-link { display: flex; gap: 12px; align-items: center; padding: 14px 10px; min-width: 0; min-height: 90px; border: 1px solid transparent; border-radius: 9px; color: var(--nav-ink); }
.header .nav-products-grid .nav-product-link:hover { background: #f2f7fd; border-color: #e1ebf6; }
.header .nav-products-grid .nav-product-link[aria-current="page"] { background: #edf4fc; border-color: #cbdff4; }
.header .nav-product-icon { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; flex-shrink: 0; background: #edf4fc; color: #2171b9; border-radius: 10px; }
.header .nav-product-icon .nav-icon { width: 22px; height: 22px; }
.header .nav-product-copy { min-width: 0; }
.header .nav-product-copy strong { display: block; font-family: var(--nav-font); color: var(--nav-ink); font-size: 14px; font-weight: 600; line-height: 1.5; margin: 0 0 3px; }
.header .nav-product-copy > span { font-family: var(--nav-font); font-size: 11px; color: var(--nav-muted); line-height: 1.5; }
.header .nav-product-arrow { width: 14px; height: 14px; color: #7799b8; margin-left: auto; }
.header .nav-products-footer { display: flex; gap: 16px; justify-content: space-between; align-items: center; padding: 16px 24px; background: #f7f9fc; border-top: 1px solid #e5ecf3; }
.header .nav-products-footer a { display: inline-flex; gap: 8px; padding: 0; border-radius: 0; font-family: var(--nav-font); font-size: 12px; font-weight: 600; color: var(--nav-blue); line-height: 1.5; min-height: 28px; }
.header .nav-products-footer a:last-child { color: var(--nav-muted); font-weight: 500; }
.header .nav-products-footer a:hover { background: transparent; text-decoration: underline; }
.header .nav-products-footer .nav-icon { width: 14px; height: 14px; }
.header .nav-mobile-label, .header .nav-mobile-help, .header .mobile-menu-toolbar, .header .mobile-quick-actions { display: none; }
.header .hamburger { display: none; }
@media (min-width: 1100px) {
    /* Keep the pointer inside the disclosure while crossing its visual gap. */
    .header .dropdown.active::after { content: ''; position: absolute; top: 100%; left: 50%; width: 580px; height: 22px; transform: translateX(-50%); background: transparent; }
}
@media (max-width: 1099px) {
    .header .container { padding-inline: 20px; }
    .header .navbar { min-height: 76px; gap: 16px; }
    .header .nav-actions { margin-left: auto; gap: 10px; }
    .header .nav-actions .nav-action-register { display: none; }
    .header .nav-menu { position: fixed; inset: 0 0 0 auto; margin: 0; width: min(420px, 100%); max-width: 420px; height: 100vh; height: 100dvh; padding: 0 24px 24px; gap: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; background: #fff; transform: translateX(105%); visibility: hidden; box-shadow: none; overflow-y: auto; overscroll-behavior: contain; z-index: 1002; transition: transform 180ms ease, visibility 180ms ease; }
    .header .nav-menu.active { left: auto; transform: none; visibility: visible; box-shadow: -16px 0 48px #102d4630; }
    .header .nav-menu-overlay { display: block; position: fixed; inset: 0; background: #071d355e; opacity: 0; visibility: hidden; pointer-events: none; z-index: 1001; transition: opacity 180ms ease, visibility 180ms ease; }
    .header .nav-menu-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
    .header .nav-menu .mobile-menu-toolbar { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; padding: 20px 0; width: 100%; margin: 0 0 24px; border-bottom: 1px solid var(--nav-line); background: #fff; }
    .header .mobile-menu-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--nav-blue); font-family: 'Poppins', var(--nav-font); font-size: 23px; font-weight: 700; letter-spacing: -.03em; }
    .header .mobile-menu-brand .nav-icon { width: 28px; height: 28px; }
    .header .mobile-menu-close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--nav-line); border-radius: 8px; background: #f7f9fc; color: var(--nav-ink); cursor: pointer; }
    .header .mobile-menu-close .nav-icon { width: 20px; height: 20px; }
    .header .nav-mobile-label { display: block; font-family: var(--nav-font); font-size: 10px; font-weight: 700; color: var(--nav-muted); letter-spacing: .12em; margin-bottom: 10px; }
    .header .nav-menu > li { width: 100%; margin: 0; }
    .header .nav-menu > li > a, .header .dropdown-toggle { display: flex; width: 100%; padding: 14px 12px; min-height: 52px; font-size: 15px; white-space: normal; border-bottom: 0; }
    .header .dropdown-toggle { justify-content: space-between; }
    .header .dropdown-menu { position: static; width: 100%; max-width: 100%; min-width: 0; top: auto; left: auto; transform: none; margin: 8px 0 12px; padding: 0; background: #f7f9fc; border: 1px solid #e3eaf3; border-radius: 10px; box-shadow: none; }
    .header .dropdown.active .dropdown-menu { margin: 8px 0 12px; }
    .header .nav-products-heading { display: none; }
    .header .nav-products-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 6px; }
    .header .nav-products-grid .nav-product-link { min-height: 76px; padding: 12px 8px; }
    .header .nav-products-footer { flex-direction: column; align-items: stretch; gap: 8px; padding: 12px 16px; }
    .header .nav-products-footer a { justify-content: space-between; min-height: 44px; font-size: 12px; }
    .header .nav-menu .mobile-quick-actions { display: grid; grid-template-columns: 1fr; gap: 10px; width: 100%; margin: 24px 0 12px; padding: 22px 0 0; border-top: 1px solid var(--nav-line); background: transparent; }
    .header .mobile-quick-actions .mobile-action-link { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px; border-radius: 8px; border: 1px solid #d3deeb; background: #fff; color: var(--nav-ink); font-family: var(--nav-font); font-size: 13px; font-weight: 600; }
    .header .mobile-quick-actions .mobile-action-link:last-child { background: var(--nav-blue); border-color: var(--nav-blue); color: #fff; }
    .header .nav-menu .nav-mobile-help { display: block; }
    .header .nav-mobile-help a { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px !important; color: var(--nav-muted); }
    .header .hamburger { display: flex; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 10px; gap: 5px; border: 1px solid #d3deeb; border-radius: 8px; color: var(--nav-ink); background: #fff; }
    .header .hamburger span { width: 20px; height: 2px; background: var(--nav-ink); }
    .header .hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .header .hamburger.active span:nth-child(2) { opacity: 0; }
    .header .hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 575px) {
    .header .container { padding-inline: 16px; }
    .header .navbar { min-height: 72px; gap: 12px; }
    .header .nav-brand-name { font-size: 24px; }
    .header .nav-brand-mark { width: 29px; height: 29px; }
    .header .nav-brand-tagline { display: none; }
    .header .nav-actions { gap: 8px; }
    .header .nav-actions .nav-action-panel { padding: 10px 12px; font-size: 12px; }
    .header .nav-action-label-desktop { display: none; }
    .header .nav-action-label-mobile { display: inline; }
    .header .nav-menu { padding-inline: 20px; }
}
@media (prefers-reduced-motion: reduce) {
    .header *, .header { animation: none !important; transition: none !important; }
}
