/* Public site header (WebMasterPage). Self-contained: uses .sh-* classes only. */
.sh {
    --sh-primary: #233c9b;
    --sh-primary-2: #3b5bdb;
    --sh-ink: #1d2433;
    --sh-muted: #5f6b85;
    --sh-line: #e6e9f4;
    --sh-soft: #f4f6fc;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, .96);
    backdrop-filter: saturate(160%) blur(10px);
    -webkit-backdrop-filter: saturate(160%) blur(10px);
    border-bottom: 1px solid transparent;
    transition: box-shadow .2s, border-color .2s;
}

.sh.scrolled {
    border-bottom-color: var(--sh-line);
    box-shadow: 0 6px 24px rgba(20, 30, 80, .08);
}

.sh-bar {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 74px;
}

.sh-logo img {
    height: 42px;
    width: auto;
    display: block;
}

/* desktop nav */
.sh-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.sh-nav > li { position: relative; }

.sh-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 42px;
    padding: 0 14px;
    border: none;
    background: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    color: var(--sh-ink);
    cursor: pointer;
    transition: color .15s, background .15s;
}

.sh-link:hover,
.sh-nav > li:focus-within > .sh-link { color: var(--sh-primary-2); background: var(--sh-soft); }
.sh-link.active { color: var(--sh-primary); }
.sh-link.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 3px; border-radius: 3px; background: var(--sh-primary-2); }
.sh-caret { width: 14px; height: 14px; transition: transform .2s; }

.sh-drop {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    min-width: 300px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--sh-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(20, 30, 80, .14);
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, 6px);
    transition: opacity .18s, transform .18s, visibility .18s;
}

/* hover bridge so the menu does not close while moving the mouse down */
.sh-drop::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

.sh-has-drop:hover > .sh-drop,
.sh-has-drop:focus-within > .sh-drop { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.sh-has-drop:hover .sh-caret,
.sh-has-drop:focus-within .sh-caret { transform: rotate(180deg); }

.sh-drop a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--sh-ink);
    transition: background .15s;
}

.sh-drop a:hover { background: var(--sh-soft); }
.sh-drop a.active { background: var(--sh-soft); }

.sh-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(59, 91, 219, .1);
    color: var(--sh-primary-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.sh-drop b { display: block; font-size: 14px; font-weight: 700; }
.sh-drop small { display: block; font-size: 12px; color: var(--sh-muted); margin-top: 1px; }

/* actions */
.sh-actions { display: flex; align-items: center; gap: 10px; }

.sh-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    transition: background .15s, box-shadow .15s, color .15s;
}

.sh-btn-outline { border: 1.5px solid #cfd7f3; color: var(--sh-primary); }
.sh-btn-outline:hover { background: var(--sh-soft); color: var(--sh-primary); }
.sh-btn-solid { background: var(--sh-primary); color: #fff; box-shadow: 0 6px 16px rgba(35, 60, 155, .25); }
.sh-btn-solid:hover { background: #1b2f7e; color: #fff; }

.sh-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--sh-line);
    border-radius: 10px;
    background: #fff;
    color: var(--sh-ink);
    align-items: center;
    justify-content: center;
    margin-left: auto;
}

.sh-toggle svg { width: 24px; height: 24px; }

/* mobile drawer */
.sh-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 16, 40, .45);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s, visibility .25s;
    z-index: 1040;
}

.sh-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    background: #fff;
    z-index: 1050;
    transform: translateX(100%);
    transition: transform .28s ease;
    display: flex;
    flex-direction: column;
    box-shadow: -12px 0 40px rgba(10, 16, 40, .2);
}

.sh-open .sh-overlay { opacity: 1; visibility: visible; }
.sh-open .sh-drawer { transform: none; }
body.sh-locked { overflow: hidden; }

.sh-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-bottom: 1px solid var(--sh-line);
}

.sh-drawer-head img { height: 36px; width: auto; }

.sh-close {
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 10px;
    background: var(--sh-soft);
    color: var(--sh-ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sh-close svg { width: 20px; height: 20px; }
.sh-drawer-body { flex: 1; overflow-y: auto; padding: 10px 12px; }
.sh-mnav { list-style: none; margin: 0; padding: 0; }
.sh-mnav > li { border-bottom: 1px solid var(--sh-soft); }

.sh-mlink {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 8px;
    border: none;
    background: none;
    font-size: 16px;
    font-weight: 600;
    color: var(--sh-ink);
    text-align: left;
}

.sh-mlink.active { color: var(--sh-primary-2); }
.sh-mlink[aria-expanded="true"] .sh-caret { transform: rotate(180deg); }
.sh-msub { list-style: none; margin: 0 0 10px; padding: 0 0 0 8px; display: none; }
.sh-msub.show { display: block; }

.sh-msub a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 8px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sh-muted);
}

.sh-msub a:hover, .sh-msub a.active { background: var(--sh-soft); color: var(--sh-primary); }
.sh-msub .sh-ico { width: 32px; height: 32px; font-size: 15px; }

.sh-drawer-foot { padding: 16px 18px 22px; border-top: 1px solid var(--sh-line); display: grid; gap: 10px; }
.sh-drawer-foot .sh-btn { justify-content: center; height: 46px; }
.sh-contact { display: grid; gap: 6px; margin-top: 6px; font-size: 13px; }
.sh-contact a { color: var(--sh-muted); display: inline-flex; align-items: center; gap: 8px; }
.sh-contact a:hover { color: var(--sh-primary); }

@media (max-width: 1199px) {
    .sh-link { padding: 0 10px; font-size: 14px; }
    .sh-btn { padding: 0 14px; }
}

@media (max-width: 991px) {
    .sh-nav, .sh-actions { display: none; }
    .sh-toggle { display: inline-flex; }
    .sh-bar { height: 64px; }
    .sh-logo img { height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
    .sh-drawer, .sh-overlay, .sh-drop { transition: none; }
}

/* ===== Public site footer (WebMasterPage): .sf-* classes ===== */
.sf {
    background: radial-gradient(800px 300px at 10% 0%, rgba(59, 91, 219, .25), transparent 60%), #111c4a;
    color: rgba(255, 255, 255, .72);
    font-size: 14px;
}

.sf-top {
    display: grid;
    grid-template-columns: 1.4fr 1fr 0.8fr 1.1fr;
    gap: 40px;
    padding: 64px 0 48px;
}

.sf-brand img { display: block; width: 150px; height: auto; margin-bottom: 18px; }
.sf-brand p { line-height: 1.75; margin: 0; max-width: 380px; }



.sf h3 {
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    margin: 6px 0 18px;
    position: relative;
    padding-bottom: 12px;
}

.sf h3::after { content: ""; position: absolute; left: 0; bottom: 0; width: 32px; height: 3px; border-radius: 3px; background: #5b7bff; }
.sf ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.sf a { color: rgba(255, 255, 255, .72); transition: color .15s; }
.sf a:hover { color: #fff; }
.sf-col ul a { display: inline-flex; align-items: center; gap: 6px; }
.sf-col ul a:hover { transform: translateX(2px); }
.sf-contact li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.6; }

.sf-contact i {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #9db0ff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
}

.sf-bottom { border-top: 1px solid rgba(255, 255, 255, .1); background: rgba(0, 0, 0, .15); }

.sf-bottom .container-xl {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
    padding-top: 18px;
    padding-bottom: 18px;
    font-size: 13px;
}

.sf-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; }

@media (max-width: 991px) {
    .sf-top { grid-template-columns: 1fr 1fr; gap: 32px; padding: 48px 0 36px; }
    .sf-brand { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
    .sf-top { grid-template-columns: 1fr; }
    .sf-bottom .container-xl { flex-direction: column; text-align: center; }
    .sf-legal { justify-content: center; }
}
