/* Shared site navigation. Prefixed with sn- so it never collides with page styles. */

.sn-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, .94);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid transparent;
    transition: border-color .25s ease, box-shadow .25s ease;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}
.sn-header.is-scrolled {
    border-bottom-color: #e4e7ec;
    box-shadow: 0 10px 30px -22px rgba(16, 24, 40, .35);
}

.sn-wrap {
    width: min(1200px, calc(100% - 64px));
    margin: 0 auto;
    height: 72px;
    display: flex;
    align-items: center;
    gap: 32px;
}

.sn-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.sn-brand img { display: block; height: 34px; width: auto; }

/* Desktop navigation */
.sn-nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }

.sn-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 13px;
    border: 0;
    border-radius: 9px;
    background: none;
    font: 500 15px/1 Inter, -apple-system, sans-serif;
    color: #344054;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, background-color .2s ease;
}
.sn-link:hover { color: #0f1728; background: #f5f7fb; }
.sn-link[aria-current="page"] { color: #0f1728; background: #eef3fb; }
.sn-link:focus-visible,
.sn-btn:focus-visible,
.sn-toggle:focus-visible,
.sn-card:focus-visible,
.sn-foot:focus-visible,
.sn-login:focus-visible { outline: 2px solid #0066ff; outline-offset: 2px; }

/* Products dropdown */
.sn-dd { position: relative; }
.sn-chev { transition: transform .2s ease; }
.sn-dd.open > .sn-trigger .sn-chev,
.sn-dd:hover > .sn-trigger .sn-chev,
.sn-dd:focus-within > .sn-trigger .sn-chev { transform: rotate(180deg); }
.sn-dd.open > .sn-trigger,
.sn-dd:focus-within > .sn-trigger { color: #0f1728; background: #f5f7fb; }

/* The panel starts 12px above its visible box, so the pointer never leaves the menu while crossing the gap. */
.sn-panel {
    position: absolute;
    top: 100%;
    left: -14px;
    width: 470px;
    padding-top: 12px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.sn-panel-inner {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: 16px;
    box-shadow: 0 28px 56px -18px rgba(16, 24, 40, .24);
    padding: 10px;
}
.sn-dd:hover > .sn-panel,
.sn-dd:focus-within > .sn-panel,
.sn-dd.open > .sn-panel { opacity: 1; visibility: visible; transform: none; }

.sn-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.sn-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: background-color .2s ease;
}
.sn-card:hover { background: #f5f7fb; }
.sn-ci {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: #eaf2ff;
    color: #0066ff;
}
.sn-card strong { display: block; font: 600 14.5px/1.3 Inter, sans-serif; color: #0f1728; }
.sn-card small { display: block; margin-top: 3px; font: 400 12.5px/1.45 Inter, sans-serif; color: #667085; }
.sn-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 6px 4px 2px;
    padding: 12px 12px 10px;
    border-top: 1px solid #eef1f6;
    font: 600 14px/1 Inter, sans-serif;
    color: #0066ff;
    text-decoration: none;
    border-radius: 0 0 10px 10px;
}
.sn-foot:hover { color: #0050cc; }

/* Actions */
.sn-actions { display: flex; align-items: center; gap: 6px; }
.sn-login {
    padding: 10px 12px;
    border-radius: 9px;
    font: 500 15px/1 Inter, sans-serif;
    color: #344054;
    text-decoration: none;
}
.sn-login:hover { color: #0f1728; background: #f5f7fb; }
.sn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    background: #0066ff;
    color: #fff;
    font: 600 14.5px/1 Inter, sans-serif;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 1px 2px rgba(16, 24, 40, .1), 0 8px 18px -8px rgba(0, 102, 255, .55);
    transition: background-color .2s ease, transform .2s ease;
}
.sn-btn:hover { background: #0050cc; transform: translateY(-1px); }

.sn-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid #d0d5dd;
    border-radius: 10px;
    background: #fff;
    color: #0f1728;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.sn-mobile-only { display: none; }

/* Mobile and tablet: a full-width sheet under the bar */
@media (max-width: 1080px) {
    .sn-wrap { width: calc(100% - 40px); gap: 16px; }
    .sn-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
    .sn-login, .sn-btn.sn-desktop-only { display: none; }
    .sn-toggle { display: inline-flex; }

    .sn-nav {
        position: fixed;
        top: 72px;
        left: 0;
        right: 0;
        bottom: 0;
        margin: 0;
        padding: 8px 20px 32px;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        overflow-y: auto;
        opacity: 0;
        visibility: hidden;
        transform: translateY(-6px);
        transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
    }
    .sn-header.menu-open .sn-nav { opacity: 1; visibility: visible; transform: none; }

    .sn-link {
        width: 100%;
        justify-content: space-between;
        padding: 18px 6px;
        border-radius: 0;
        border-bottom: 1px solid #eef1f6;
        font-size: 17px;
    }
    .sn-link:hover { background: none; }
    .sn-link[aria-current="page"] { background: none; color: #0066ff; }

    .sn-dd { width: 100%; }
    .sn-panel {
        position: static;
        width: auto;
        padding: 0;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    .sn-dd.open > .sn-panel { display: block; }
    .sn-panel-inner { border: 0; box-shadow: none; padding: 6px 0 10px; }
    .sn-cards { grid-template-columns: 1fr; }
    .sn-foot { margin: 4px 0 0; }

    .sn-actions { margin-left: auto; }
    .sn-mobile-only { display: block; margin-top: 28px; }
    .sn-mobile-only .sn-login { display: block; padding: 14px 6px; font-size: 17px; border-radius: 0; }
    .sn-mobile-only .sn-btn { display: flex; width: 100%; height: 52px; margin-top: 12px; font-size: 16px; }
}

@media (max-width: 480px) {
    .sn-wrap { width: calc(100% - 32px); }
    .sn-actions .sn-btn { height: 40px; padding: 0 14px; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
    .sn-header, .sn-nav, .sn-panel, .sn-link, .sn-btn, .sn-chev { transition: none !important; }
}
