:root {
    --cev-blue: #144A9E;
    --cev-blue-2: #1E90FF;
    --cev-ink: #10223B;
    --cev-muted: #8091A5;
    --cev-line: #DCE6F0;
    --cev-soft: #F5F9FD;
}

/* Astra still owns Blog/article content, but not the site chrome. */
body.cev-universal-header-active #masthead,
body.cev-universal-header-active header#masthead,
body.cev-universal-header-active .site-header:not(.cev-header),
body.cev-universal-header-active .ast-mobile-header-wrap,
body.cev-universal-header-active .ast-desktop-header-content {
    display: none !important;
}

.cev-header,
.cev-header * { box-sizing: border-box; }

.cev-header {
    position: sticky;
    top: 0;
    z-index: 99990;
    width: 100%;
    margin: 0;
    border-bottom: 1px solid rgba(220,230,240,.86);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(18px);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Helvetica, Arial, sans-serif;
    transition: box-shadow .2s ease;
}

body.admin-bar .cev-header { top: 32px; }
.cev-header.is-scrolled { box-shadow: 0 10px 30px rgba(15,31,53,.06); }
.cev-header .cev-wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.cev-header__inner { min-height: 68px; display: flex; align-items: center; gap: 26px; }
.cev-brand { display: inline-flex; width: 154px; flex: 0 0 auto; }
.cev-brand img { display: block; width: 154px; height: auto; }
.cev-nav { display: flex; align-items: center; justify-content: center; gap: 23px; margin-left: auto; }
.cev-nav > a, .cev-nav__drop-button { color: #3E526C !important; text-decoration: none !important; font-size: 13px; line-height: 1; font-weight: 680; }
.cev-nav > a:hover, .cev-nav__drop-button:hover { color: var(--cev-blue) !important; }
.cev-nav__drop { position: relative; }
.cev-nav__drop-button { appearance: none; display: inline-flex; align-items: center; gap: 5px; padding: 12px 0; border: 0; background: none; font-family: inherit; cursor: pointer; }
.cev-nav__drop-menu { position: absolute; left: -28px; top: calc(100% + 8px); display: none; width: 320px; padding: 9px; border: 1px solid var(--cev-line); border-radius: 16px; background: #fff; box-shadow: 0 25px 70px rgba(15,31,53,.14); }
.cev-nav__drop.is-open .cev-nav__drop-menu { display: grid; }
.cev-nav__drop-menu a { display: grid; gap: 4px; padding: 13px 14px; border-radius: 11px; color: var(--cev-ink) !important; text-decoration: none !important; }
.cev-nav__drop-menu a:hover { background: var(--cev-soft); }
.cev-nav__drop-menu strong { font-size: 14px; }
.cev-nav__drop-menu span { color: var(--cev-muted); font-size: 12px; line-height: 1.45; }
.cev-header__actions { display: flex; align-items: center; gap: 12px; }
.cev-header .cev-button { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 0 16px; border-radius: 11px; background: linear-gradient(135deg,#1E90FF,#144A9E); color: #fff !important; text-decoration: none !important; font-size: 13px; font-weight: 760; box-shadow: 0 10px 22px rgba(30,144,255,.18); }
.cev-menu-toggle { display: none; width: 42px; height: 42px; padding: 10px; border: 1px solid var(--cev-line); border-radius: 11px; background: #fff; cursor: pointer; }
.cev-menu-toggle span { display: block; height: 2px; margin: 4px 0; border-radius: 999px; background: var(--cev-ink); }
.cev-mobile-nav { display: none; border-top: 1px solid var(--cev-line); background: #fff; }
.cev-mobile-nav__inner { display: grid; gap: 2px; padding: 12px 0 20px; }
.cev-mobile-nav__inner > a:not(.cev-button) { padding: 12px 6px; color: #3E526C !important; text-decoration: none !important; font-size: 14px; font-weight: 650; }

@media (max-width: 900px) {
    .cev-nav { display: none; }
    .cev-menu-toggle { display: block; }
    .cev-header__actions .cev-button { display: none; }
    .cev-mobile-nav.is-open { display: block; }
}

@media (max-width: 782px) {
    body.admin-bar .cev-header { top: 46px; }
}

@media (max-width: 650px) {
    .cev-header .cev-wrap { width: min(100% - 26px, 1160px); }
    .cev-header__inner { min-height: 62px; }
    .cev-brand, .cev-brand img { width: 140px; }
}
