/* EDUCONECX site header design (PF1, 2026-10-07). Moved from the 2 <style> blocks of layouts/header.blade.php, unchanged:
   1) site-wide base styles other pages rely on (variables, reset, .container, utilities), kept from the previous header;
   2) header v3.1 (ecxh-*), with Manrope served by the site.fonts route. Linked in the <head> by layouts/main. */
        /* Root Variables - Your Beautiful Colors */
        :root {
            --bright-amber: #FBC60C;
            --khaki-beige: #9F9A87;
            --pure-white: #FEFDFE;
            --prussian-blue: #0A1D44;
            --regal-navy: #18386E;
            --sky-blue: #5AD1E4;
            --pale-slate: #CBD1DA;
            --dark-slate: #2E5C61;
            --ivory: #F9F7E9;
            --light-gold: #EBD789;
            --primary: var(--regal-navy);
            --accent: var(--bright-amber);
            --text-dark: var(--prussian-blue);
            --text-light: var(--pure-white);
            --bg-light: var(--pure-white);
            --shadow: 0 4px 12px rgba(10, 29, 68, 0.1);
            --shadow-lg: 0 8px 24px rgba(10, 29, 68, 0.15);
            --radius: 8px;
            --radius-lg: 12px;
            --transition: all 0.3s ease;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* Container */
        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 0 20px;
            width: 100%;
        }

        @media (max-width: 768px) {
            .container {
                padding: 0 15px;
            }
        }

        @media (max-width: 480px) {
            .container {
                padding: 0 12px;
            }
        }

        /* Top Bar */
        .top-bar {
            background: var(--prussian-blue);
            color: var(--pure-white);
            padding: 8px 0;
            font-size: 0.9rem;
            position: relative;
            z-index: 1001;
        }

        .top-bar-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            flex-wrap: wrap;
            gap: 10px;
        }

        .contact-info {
            display: flex;
            gap: 20px;
            flex-wrap: wrap;
        }

        .contact-info a {
            color: var(--pure-white);
            text-decoration: none;
            display: flex;
            align-items: center;
            gap: 6px;
            opacity: 0.9;
            transition: var(--transition);
            font-size: 0.85rem;
        }

        .contact-info a:hover {
            opacity: 1;
            color: var(--bright-amber);
        }

        .contact-info i {
            font-size: 0.8rem;
        }

        .social-links {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .social-links a {
            color: var(--pure-white);
            width: 30px;
            height: 30px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            transition: var(--transition);
            text-decoration: none;
            font-size: 0.9rem;
        }

        .social-links a:hover {
            background: var(--bright-amber);
            color: var(--prussian-blue);
            transform: translateY(-2px);
        }

        /* Main Header */
        .main-header {
            background: var(--pure-white);
            box-shadow: var(--shadow);
            position: sticky;
            top: 0;
            z-index: 1000;
            transition: var(--transition);
        }

        .main-header.scrolled {
            box-shadow: var(--shadow-lg);
        }

        .header-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 12px 0;
            gap: 15px;
        }

        /* Logo */
        .logo a {
            display: block;
        }

        .navbar-brand img,
        header .logo img,
        .logo-img {
            max-height: 40px;
            height: auto;
            width: auto;
            display: block;
        }

        @media (max-width: 480px) {
            .logo-img {
                max-height: 35px;
            }
        }

        /* Desktop Navigation */
        .desktop-nav {
            flex: 1;
            display: flex;
            justify-content: center;
        }

        @media (max-width: 1200px) {
            .desktop-nav {
                display: none;
            }
        }

        .nav-menu {
            display: flex;
            list-style: none;
            gap: 24px;
        }

        .nav-menu li a {
            color: var(--text-dark);
            text-decoration: none;
            font-size: 0.95rem;
            font-weight: 500;
            padding: 6px 0;
            position: relative;
            transition: var(--transition);
            white-space: nowrap;
        }

        .nav-menu li a::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 0;
            width: 0;
            height: 2px;
            background: var(--bright-amber);
            transition: var(--transition);
        }

        .nav-menu li a:hover::after,
        .nav-menu li a.active::after {
            width: 100%;
        }

        .nav-menu li a:hover,
        .nav-menu li a.active {
            color: var(--bright-amber);
        }

        /* Header Actions */
        .header-actions {
            display: flex;
            align-items: center;
            gap: 12px;
            flex-shrink: 0;
        }

        @media (max-width: 480px) {
            .header-actions {
                gap: 6px;
            }
        }

        /* Language Selector */
        .language-selector {
            position: relative;
        }

        .lang-btn {
            background: transparent;
            border: 1px solid var(--pale-slate);
            border-radius: var(--radius-lg);
            padding: 8px 12px;
            display: flex;
            align-items: center;
            gap: 6px;
            cursor: pointer;
            font-size: 0.9rem;
            transition: var(--transition);
            background: var(--pure-white);
            height: 40px;
        }

        .lang-btn:hover {
            border-color: var(--bright-amber);
        }

        .current-flag {
            font-size: 1.1rem;
        }

        .current-lang {
            font-weight: 600;
            color: var(--text-dark);
        }

        .lang-btn i {
            color: var(--bright-amber);
            font-size: 0.7rem;
            transition: var(--transition);
        }

        .language-selector.active .lang-btn i {
            transform: rotate(180deg);
        }

        .lang-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 260px;
            background: var(--pure-white);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: var(--transition);
            z-index: 1000;
            border: 1px solid var(--pale-slate);
            overflow: hidden;
        }

        .language-selector.active .lang-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        @media (max-width: 768px) {
            .lang-dropdown {
                width: 240px;
                right: -10px;
            }
        }

        @media (max-width: 480px) {
            .lang-btn {
                padding: 6px 8px;
            }

            .current-lang {
                display: none;
            }

            .lang-dropdown {
                width: 220px;
            }
        }

        .lang-search {
            padding: 12px;
            border-bottom: 1px solid var(--pale-slate);
            display: flex;
            align-items: center;
            gap: 8px;
            background: var(--ivory);
        }

        .lang-search i {
            color: var(--khaki-beige);
            font-size: 0.9rem;
        }

        .lang-search input {
            border: none;
            background: transparent;
            width: 100%;
            outline: none;
            font-size: 0.9rem;
            color: var(--text-dark);
        }

        .lang-search input::placeholder {
            color: var(--khaki-beige);
        }

        .lang-list {
            max-height: 280px;
            overflow-y: auto;
            padding: 8px;
        }

        .lang-item {
            display: flex;
            align-items: center;
            gap: 10px;
            padding: 10px 12px;
            border-radius: var(--radius);
            cursor: pointer;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .lang-item:hover {
            background: var(--ivory);
        }

        .lang-item.active {
            background: rgba(251, 198, 12, 0.1);
            color: var(--bright-amber);
        }

        .lang-item .flag {
            font-size: 1.1rem;
        }

        .lang-item .lang-name {
            flex: 1;
            font-weight: 500;
        }

        .lang-item .lang-native {
            color: var(--khaki-beige);
            font-size: 0.8rem;
        }

        .lang-item i {
            color: var(--bright-amber);
            font-size: 0.8rem;
        }

        /* Auth Buttons */
        .auth-buttons {
            display: flex;
            gap: 8px;
        }

        .btn-login,
        .btn-register {
            padding: 8px 16px;
            border-radius: var(--radius-lg);
            font-size: 0.9rem;
            font-weight: 600;
            text-decoration: none;
            transition: var(--transition);
            white-space: nowrap;
            height: 40px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .btn-login {
            background: transparent;
            color: var(--text-dark);
            border: 1px solid var(--bright-amber);
        }

        .btn-login:hover {
            background: var(--bright-amber);
            color: var(--prussian-blue);
            transform: translateY(-2px);
        }

        .btn-register {
            background: var(--prussian-blue);
            color: var(--pure-white);
            border: 1px solid var(--prussian-blue);
        }

        .btn-register:hover {
            background: var(--bright-amber);
            border-color: var(--bright-amber);
            color: var(--prussian-blue);
            transform: translateY(-2px);
        }

        /* User Menu */
        .user-menu {
            position: relative;
        }

        .user-btn {
            background: transparent;
            border: 1px solid var(--pale-slate);
            border-radius: var(--radius-lg);
            padding: 5px 12px;
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            transition: var(--transition);
            height: 40px;
        }

        .user-btn:hover {
            border-color: var(--bright-amber);
        }

        .user-avatar,
        .user-avatar-placeholder {
            width: 28px;
            height: 28px;
            border-radius: 50%;
            object-fit: cover;
        }

        .user-avatar-placeholder {
            background: var(--prussian-blue);
            color: var(--pure-white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 0.9rem;
        }

        .user-name {
            font-weight: 600;
            color: var(--text-dark);
            font-size: 0.9rem;
            max-width: 100px;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .user-btn i {
            color: var(--bright-amber);
            font-size: 0.7rem;
            transition: var(--transition);
        }

        .user-menu:hover .user-btn i {
            transform: rotate(180deg);
        }

        .user-dropdown {
            position: absolute;
            top: calc(100% + 8px);
            right: 0;
            width: 220px;
            background: var(--pure-white);
            border-radius: var(--radius-lg);
            box-shadow: var(--shadow-lg);
            opacity: 0;
            visibility: hidden;
            transform: translateY(-10px);
            transition: var(--transition);
            z-index: 1000;
            border: 1px solid var(--pale-slate);
            overflow: hidden;
        }

        .user-menu:hover .user-dropdown {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }

        @media (max-width: 1200px) {
            .user-name {
                display: none;
            }

            .user-btn {
                padding: 5px 8px;
            }
        }

        .user-dropdown a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px 16px;
            color: var(--text-dark);
            text-decoration: none;
            transition: var(--transition);
            font-size: 0.9rem;
        }

        .user-dropdown a:hover {
            background: var(--ivory);
            color: var(--bright-amber);
            padding-left: 20px;
        }

        .user-dropdown i {
            width: 18px;
            color: var(--bright-amber);
        }

        .dropdown-divider {
            height: 1px;
            background: var(--pale-slate);
            margin: 4px 0;
        }

        /* Menu Toggle */
        .menu-toggle {
            display: none;
            flex-direction: column;
            gap: 5px;
            background: transparent;
            border: 1px solid var(--pale-slate);
            border-radius: var(--radius);
            padding: 8px;
            width: 40px;
            height: 40px;
            cursor: pointer;
            transition: var(--transition);
        }

        @media (max-width: 1200px) {
            .menu-toggle {
                display: flex;
            }
        }

        @media (max-width: 480px) {
            .menu-toggle {
                width: 36px;
                height: 36px;
                padding: 6px;
            }
        }

        .menu-toggle:hover {
            border-color: var(--bright-amber);
        }

        .menu-toggle span {
            display: block;
            width: 22px;
            height: 2px;
            background: var(--prussian-blue);
            border-radius: 2px;
            transition: var(--transition);
            margin: 0 auto;
        }

        .menu-toggle.active span:nth-child(1) {
            transform: rotate(45deg) translate(5px, 5px);
        }

        .menu-toggle.active span:nth-child(2) {
            opacity: 0;
        }

        .menu-toggle.active span:nth-child(3) {
            transform: rotate(-45deg) translate(5px, -5px);
        }

        /* Mobile Menu */
        .mobile-menu {
            position: fixed;
            top: 0;
            right: -100%;
            width: 320px;
            height: 100vh;
            background: var(--pure-white);
            z-index: 9999;
            overflow-y: auto;
            transition: right 0.3s ease;
            box-shadow: var(--shadow-lg);
            display: block;
        }

        .mobile-menu.active {
            right: 0;
        }

        @media (max-width: 768px) {
            .mobile-menu {
                width: 280px;
            }
        }

        @media (max-width: 480px) {
            .mobile-menu {
                width: 260px;
            }
        }

        .mobile-menu-header {
            padding: 20px;
            background: var(--ivory);
            border-bottom: 1px solid var(--pale-slate);
        }

        .mobile-user-info {
            display: flex;
            align-items: center;
            gap: 12px;
            position: relative;
        }

        .mobile-menu-close {
            position: absolute;
            top: -10px;
            right: -10px;
            width: 30px;
            height: 30px;
            border-radius: 50%;
            background: var(--bright-amber);
            border: none;
            color: var(--prussian-blue);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            font-size: 1rem;
            transition: var(--transition);
        }

        .mobile-menu-close:hover {
            transform: scale(1.1);
            background: var(--prussian-blue);
            color: var(--bright-amber);
        }

        .mobile-avatar {
            width: 50px;
            height: 50px;
            border-radius: 50%;
            background: var(--prussian-blue);
            color: var(--pure-white);
            display: flex;
            align-items: center;
            justify-content: center;
            font-weight: 600;
            font-size: 1.2rem;
        }

        .mobile-user-details {
            flex: 1;
            min-width: 0;
        }

        .mobile-user-name {
            display: block;
            font-weight: 600;
            color: var(--text-dark);
            margin-bottom: 4px;
            font-size: 1rem;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .mobile-user-email {
            display: block;
            font-size: 0.8rem;
            color: var(--khaki-beige);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .mobile-guest {
            display: flex;
            align-items: center;
            gap: 10px;
            color: var(--text-dark);
            font-size: 1rem;
            flex: 1;
        }

        .mobile-guest i {
            font-size: 2rem;
            color: var(--khaki-beige);
        }

        .mobile-nav {
            padding: 20px 0;
        }

        .mobile-nav-list {
            list-style: none;
        }

        .mobile-nav-list li a {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 14px 20px;
            color: var(--text-dark);
            text-decoration: none;
            transition: var(--transition);
            border-left: 3px solid transparent;
            font-size: 1rem;
        }

        .mobile-nav-list li a:hover,
        .mobile-nav-list li a.active {
            background: var(--ivory);
            color: var(--bright-amber);
            border-left-color: var(--bright-amber);
            padding-left: 24px;
        }

        .mobile-nav-list li a i {
            width: 20px;
            color: var(--bright-amber);
            font-size: 1.1rem;
        }

        .mobile-menu-section {
            padding: 20px;
            border-top: 8px solid var(--ivory);
        }

        .mobile-section-title {
            font-size: 0.9rem;
            font-weight: 600;
            color: var(--khaki-beige);
            text-transform: uppercase;
            letter-spacing: 1px;
            margin-bottom: 15px;
        }

        .mobile-auth-buttons {
            display: flex;
            flex-direction: column;
            gap: 10px;
        }

        .mobile-btn-login,
        .mobile-btn-register {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px;
            border-radius: var(--radius-lg);
            text-align: center;
            text-decoration: none;
            font-weight: 600;
            transition: var(--transition);
            font-size: 1rem;
        }

        .mobile-btn-login {
            background: transparent;
            color: var(--text-dark);
            border: 1px solid var(--bright-amber);
        }

        .mobile-btn-login:hover {
            background: var(--bright-amber);
            color: var(--prussian-blue);
        }

        .mobile-btn-register {
            background: var(--prussian-blue);
            color: var(--pure-white);
            border: 1px solid var(--prussian-blue);
        }

        .mobile-btn-register:hover {
            background: var(--bright-amber);
            border-color: var(--bright-amber);
            color: var(--prussian-blue);
        }

        .mobile-contact {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .mobile-contact a {
            display: flex;
            align-items: center;
            gap: 12px;
            color: var(--text-dark);
            text-decoration: none;
            transition: var(--transition);
            padding: 8px 0;
            font-size: 0.95rem;
        }

        .mobile-contact a:hover {
            color: var(--bright-amber);
            transform: translateX(5px);
        }

        .mobile-contact i {
            width: 20px;
            color: var(--bright-amber);
        }

        .mobile-social {
            display: flex;
            gap: 15px;
            flex-wrap: wrap;
        }

        .mobile-social a {
            width: 40px;
            height: 40px;
            background: var(--ivory);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--prussian-blue);
            transition: var(--transition);
            text-decoration: none;
            font-size: 1.1rem;
        }

        .mobile-social a:hover {
            background: var(--bright-amber);
            color: var(--prussian-blue);
            transform: translateY(-3px);
        }

        /* Overlay */
        .menu-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(10, 29, 68, 0.5);
            z-index: 9998;
            opacity: 0;
            visibility: hidden;
            transition: var(--transition);
            backdrop-filter: blur(3px);
        }

        .menu-overlay.active {
            opacity: 1;
            visibility: visible;
        }

        /* Body scroll lock */
        body.menu-open {
            overflow: hidden;
            position: fixed;
            width: 100%;
            height: 100%;
        }

        /* Utility Classes */
        .d-none {
            display: none !important;
        }

        .d-inline {
            display: inline !important;
        }

        .d-md-none {
            display: none !important;
        }

        @media (min-width: 992px) {
            .d-md-none {
                display: none !important;
            }

            .d-md-inline {
                display: inline !important;
            }
        }

        @media (max-width: 991px) {
            .d-md-none {
                display: inline !important;
            }

            .d-md-inline {
                display: none !important;
            }
        }

        /* Responsive Top Bar */
        @media (max-width: 768px) {
            .top-bar-content {
                flex-direction: column;
                text-align: center;
            }

            .contact-info {
                justify-content: center;
                gap: 15px;
            }

            .contact-info a {
                font-size: 0.8rem;
            }

            .social-links {
                justify-content: center;
            }
        }

        @media (max-width: 576px) {
            .contact-info {
                flex-direction: column;
                gap: 8px;
            }

            .contact-info a {
                justify-content: center;
            }
        }

/* ---- header v3.1 ---- */
        /* Manrope, served through Laravel (Hostinger returns 404 for brand-new static files under public/) */
        @font-face { font-family: "Manrope"; font-style: normal; font-weight: 600; font-display: swap; src: url("/site-assets/fonts/manrope-latin-600-normal.woff2") format("woff2"); }
        @font-face { font-family: "Manrope"; font-style: normal; font-weight: 700; font-display: swap; src: url("/site-assets/fonts/manrope-latin-700-normal.woff2") format("woff2"); }
        @font-face { font-family: "Manrope"; font-style: normal; font-weight: 800; font-display: swap; src: url("/site-assets/fonts/manrope-latin-800-normal.woff2") format("woff2"); }

        .ecxh-hdr {
            --ecxh-navy: #0A1D44; --ecxh-regal: #18386E; --ecxh-amber: #FBC60C; --ecxh-mint: #EAF8F7; --ecxh-mint-line: #CFE9E7;
            --ecxh-line: #E3E8F0; --ecxh-muted: #5B6B85; --ecxh-surface: #FFFFFF;
            --ecxh-font: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
            --ecxh-ease: cubic-bezier(.2, .8, .2, 1);
            --ecxh-pad: clamp(16px, 3.2vw, 56px);
            position: relative; z-index: 1000; font-family: var(--ecxh-font); color: var(--ecxh-navy); line-height: 1.3;
        }
        .ecxh-hdr a { text-decoration: none; }
        .ecxh-hdr :focus-visible { outline: 3px solid var(--ecxh-regal); outline-offset: 2px; }
        .ecxh-hdr .ecxh-top :focus-visible { outline-color: var(--ecxh-amber); }

        /* top bar */
        .ecxh-top { background: var(--ecxh-navy); color: var(--ecxh-surface); height: 36px; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 0 var(--ecxh-pad); font-size: 12.5px; position: relative; z-index: 3; }
        .ecxh-mail { color: rgba(255, 255, 255, .85); display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
        .ecxh-mail:hover { color: var(--ecxh-surface); }
        .ecxh-mail span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ecxh-lang { position: relative; }
        .ecxh-lang-btn { display: inline-flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: transparent; color: var(--ecxh-surface); font: 800 12px/1 var(--ecxh-font); letter-spacing: .04em; cursor: pointer; }
        .ecxh-lang-btn:hover, .ecxh-lang-btn[aria-expanded="true"] { border-color: var(--ecxh-amber); }
        .ecxh-chev { font-size: 9px; opacity: .8; transition: transform .2s; }
        [aria-expanded="true"] > .ecxh-chev { transform: rotate(180deg); }

        /* floating menus (language, account) */
        .ecxh-pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--ecxh-surface); border: 1px solid var(--ecxh-line); border-radius: 14px; padding: 6px; box-shadow: 0 24px 40px -20px rgba(10, 29, 68, .5); display: grid; gap: 2px; animation: ecxh-drop .18s var(--ecxh-ease) both; }
        .ecxh-pop[hidden] { display: none; }
        .ecxh-lang-menu { width: 200px; }
        .ecxh-lang-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--ecxh-navy); font-size: 14px; font-weight: 700; }
        .ecxh-lang-item:hover { background: var(--ecxh-mint); color: var(--ecxh-navy); }
        .ecxh-lang-code { width: 30px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; letter-spacing: .04em; background: var(--ecxh-line); color: var(--ecxh-regal); }
        .ecxh-lang-item[aria-current="true"] .ecxh-lang-code { background: var(--ecxh-navy); color: var(--ecxh-surface); }
        .ecxh-check { margin-left: auto; color: var(--ecxh-regal); }

        /* main bar */
        .ecxh-main { background: var(--ecxh-surface); height: 76px; display: flex; align-items: center; gap: clamp(14px, 2.2vw, 36px); padding: 0 var(--ecxh-pad); border-bottom: 1px solid var(--ecxh-line); position: relative; z-index: 2; }
        .ecxh-brand { flex: 0 0 auto; }
        .ecxh-nav { flex: 1; display: flex; justify-content: center; align-items: center; gap: clamp(6px, 1vw, 16px); min-width: 0; }
        .ecxh-grp { display: flex; align-items: center; gap: 2px; }
        .ecxh-grp.ecxh-learn { background: var(--ecxh-mint); border: 1px solid var(--ecxh-mint-line); border-radius: 16px; padding: 4px; }
        .ecxh-sep { width: 1px; height: 22px; background: var(--ecxh-line); flex: 0 0 auto; }
        .ecxh-link { display: inline-flex; align-items: center; height: 40px; padding: 0 13px; border-radius: 12px; color: var(--ecxh-navy); font-size: 14.5px; font-weight: 700; white-space: nowrap; transition: background-color .15s, color .15s; }
        .ecxh-link:hover { color: var(--ecxh-regal); }
        .ecxh-learn .ecxh-link:hover { background: var(--ecxh-surface); }
        .ecxh-link:active, .ecxh-btn:active, .ecxh-acct:active, .ecxh-burger:active { transform: translateY(1px); }

        /* signature: the page you are on is marked like a study note */
        .ecxh-hdr .ecxh-t { position: relative !important; display: inline-block; isolation: isolate; line-height: 1.2; }
        .ecxh-hdr .ecxh-link.is-on .ecxh-t::before { content: ""; position: absolute; left: -4px; right: -4px; bottom: .02em; height: .58em; z-index: -1; border-radius: 4px 8px 5px 8px; background: var(--ecxh-amber); opacity: .95; transform: skewX(-8deg); transform-origin: center; animation: ecxh-mark .38s var(--ecxh-ease) both; }
        @keyframes ecxh-mark { from { transform: skewX(-8deg) scaleX(0); } to { transform: skewX(-8deg) scaleX(1); } }
        @keyframes ecxh-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

        /* account + buttons */
        .ecxh-actions { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
        .ecxh-acct-wrap { position: relative; }
        .ecxh-acct { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px 0 5px; border-radius: 999px; border: 1px solid var(--ecxh-line); background: var(--ecxh-surface); color: var(--ecxh-navy); font: 700 14px/1 var(--ecxh-font); cursor: pointer; }
        .ecxh-acct:hover, .ecxh-acct[aria-expanded="true"] { border-color: var(--ecxh-amber); }
        .ecxh-av { width: 36px; height: 36px; border-radius: 50%; background: var(--ecxh-navy); color: var(--ecxh-surface); display: grid; place-items: center; font-weight: 800; overflow: hidden; flex: 0 0 auto; box-shadow: 0 0 0 2px var(--ecxh-surface), 0 0 0 4px var(--ecxh-amber); }
        .ecxh-av img { width: 100%; height: 100%; object-fit: cover; }
        .ecxh-nm { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ecxh-acct .ecxh-chev { font-size: 11px; color: var(--ecxh-muted); opacity: 1; }
        .ecxh-acct-menu { width: 240px; }
        .ecxh-acct-head { display: grid; gap: 2px; padding: 8px 10px 10px; }
        .ecxh-acct-head strong { font-size: 14px; font-weight: 800; }
        .ecxh-acct-head span { font-size: 12.5px; color: var(--ecxh-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
        .ecxh-acct-menu a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ecxh-navy); font-size: 14px; font-weight: 700; }
        .ecxh-acct-menu a:hover { background: var(--ecxh-mint); color: var(--ecxh-navy); }
        .ecxh-acct-menu a i { width: 16px; text-align: center; color: var(--ecxh-regal); }
        .ecxh-div { height: 1px; background: var(--ecxh-line); margin: 4px 6px; }
        .ecxh-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid transparent; font: 800 14px/1 var(--ecxh-font); white-space: nowrap; transition: background-color .15s, border-color .15s; }
        .ecxh-btn-navy { background: var(--ecxh-navy); color: var(--ecxh-surface); }
        .ecxh-btn-navy:hover { background: var(--ecxh-regal); color: var(--ecxh-surface); }
        .ecxh-btn-line { background: var(--ecxh-surface); color: var(--ecxh-navy); border-color: var(--ecxh-line); font-weight: 700; }
        .ecxh-btn-line:hover { border-color: var(--ecxh-navy); color: var(--ecxh-navy); }
        .ecxh-burger { display: none; width: 46px; height: 46px; border-radius: 999px; border: 1px solid var(--ecxh-line); background: var(--ecxh-surface); color: var(--ecxh-navy); cursor: pointer; place-items: center; font-size: 18px; }
        .ecxh-burger:hover { border-color: var(--ecxh-navy); }

        /* drawer */
        .ecxh-drawer { position: absolute; right: 0; top: 112px; z-index: 1; width: min(340px, 100%); max-height: calc(100vh - 112px); overflow-y: auto; display: grid; gap: 12px; padding: 14px; background: var(--ecxh-surface); border-left: 1px solid var(--ecxh-line); border-bottom: 1px solid var(--ecxh-line); border-radius: 0 0 0 22px; box-shadow: -20px 30px 50px -30px rgba(10, 29, 68, .6); animation: ecxh-drop .22s var(--ecxh-ease) both; }
        .ecxh-drawer[hidden] { display: none; }
        .ecxh-dgrp { display: grid; gap: 4px; }
        .ecxh-dlabel { margin: 0 0 0 10px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ecxh-muted); }
        .ecxh-dlinks { display: grid; gap: 2px; }
        .ecxh-dlinks.ecxh-learn { background: var(--ecxh-mint); border: 1px solid var(--ecxh-mint-line); border-radius: 16px; padding: 6px; }
        .ecxh-dlinks .ecxh-link { display: flex; height: 44px; padding: 0 12px; font-size: 15px; }
        .ecxh-dlinks:not(.ecxh-learn) .ecxh-link:hover { background: var(--ecxh-mint); }
        .ecxh-dguest { display: grid; padding-top: 4px; }

        @media (max-width: 1440px) { .ecxh-nav .ecxh-link { padding: 0 10px; font-size: 14px; } .ecxh-nm { max-width: 100px; } }
        @media (max-width: 1240px) { .ecxh-nav { display: none; } .ecxh-burger { display: grid; } .ecxh-actions { margin-left: auto; } }
        @media (max-width: 560px) {
            .ecxh-nm, .ecxh-acct > .ecxh-chev, .ecxh-actions > .ecxh-btn-line { display: none; }
            .ecxh-acct { padding: 0 5px; }
            .ecxh-mail span { display: none; }
            .ecxh-brand a { min-width: 0 !important; }
            .ecxh-actions > .ecxh-btn-navy { padding: 0 16px; }
            .ecxh-drawer { width: 100%; border-left: 0; border-radius: 0 0 22px 22px; box-shadow: 0 30px 50px -30px rgba(10, 29, 68, .6); }
        }
        @media (max-width: 360px) { .ecxh-brand span { font-size: 17px !important; } .ecxh-actions { gap: 6px; } }
        @media (prefers-reduced-motion: reduce) { .ecxh-link.is-on .ecxh-t::before, .ecxh-pop, .ecxh-drawer { animation: none; } .ecxh-chev { transition: none; } }
