/**
 * Everest Stone — LevelMU light fantasy theme
 * Matches the provided design mockup (icy / mountain aesthetic)
 */

:root {
    --es-bg: #eef4f8;
    --es-bg-panel: #ffffff;
    --es-text: #1a3a4a;
    --es-text-muted: #5a7a8a;
    --es-cyan: #2bb8d4;
    --es-cyan-dark: #1a9bb5;
    --es-cyan-light: #7dd3e8;
    --es-nav-bg: linear-gradient(180deg, #ffffff 0%, #e8f4f8 100%);
    --es-shadow: 0 4px 24px rgba(26, 58, 74, 0.08);
    --es-radius: 6px;
    --es-max-width: 1140px;
    --es-gutter: clamp(12px, 3vw, 24px);
    --es-banner-blue: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    --es-banner-purple: linear-gradient(135deg, #a855f7 0%, #7c3aed 100%);
    --es-banner-pink: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}

/* ── Base ── */
html {
    overflow-x: clip;
}

.es-body {
    /*background-color: var(--es-bg); */
    background-image: url('../images/bg2.png');
    background-repeat: no-repeat;
    background-position: center top;
    background-size: 100% auto;
    color: var(--es-text);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    min-height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

#app {
    width: 100%;
    max-width: 100%;
    overflow-x: clip;
}

.es-wrap {
    width: 100%;
    max-width: var(--es-max-width);
    margin-inline: auto;
    padding-inline: var(--es-gutter);
    box-sizing: border-box;
}

.es-body img,
.es-body video,
.es-body iframe,
.es-body svg {
    max-width: 100%;
}

/* ── Top zone: header + hero (site bg is on .es-body) ── */
.es-top-zone {
    position: relative;
    background: transparent;
}

/* ── Page title inside es-content-panel ── */
.es-page-heading {
    margin: -20px -20px 24px;
    padding: 0 20px 12px;
    border-bottom: 1px solid #9dbdc8;
}

.es-page-title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0a5b75;
}

/*
.es-top-zone::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 72px;
    background: linear-gradient(180deg, transparent 0%, var(--es-bg) 100%);
    pointer-events: none;
    z-index: 1;
}
 */

/* ── Header / Nav (Everest Stone single-row navbar) ── */
.es-site-header {
    position: relative;
    z-index: 2;
    background: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.88) 0%,
        rgba(255, 255, 255, 0.45) 65%,
        transparent 100%
    );
}

.es-nav-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    min-height: 72px;
    padding: 8px 0;
}

.es-nav-logo {
    flex-shrink: 0;
    display: block;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.es-nav-logo:hover {
    filter: brightness(1.12);
}

.es-nav-logo img {
    display: block;
    max-height: 58px;
    width: auto;
}

.es-nav-center {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px 0;
}

.es-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.es-nav li a,
.es-nav li button {
    display: block;
    padding: 10px 18px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1a3050;
    text-decoration: none;
    cursor: pointer;
    background: none;
    border: none;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.es-nav li a:hover,
.es-nav li a.is-active {
    color: var(--es-cyan-dark);
}

.es-nav-lang {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 12px;
    padding-left: 12px;
    border-left: 1px solid rgba(26, 48, 80, 0.12);
}

.es-nav-social {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 16px;
    padding-left: 16px;
    border-left: 1px solid rgba(26, 48, 80, 0.12);
}

.es-nav-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #c8d4dc;
    border-radius: 50%;
    color: #1a3050;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.es-nav-social-link:hover {
    color: var(--es-cyan-dark);
    border-color: var(--es-cyan);
    background: rgba(43, 184, 212, 0.08);
}

.es-nav-flag {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #c8d4dc;
    border-radius: 50%;
    background: #fff;
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.es-nav-flag img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.es-nav-flag:hover,
.es-nav-flag.is-active {
    border-color: var(--es-cyan);
    box-shadow: 0 0 0 2px rgba(43, 184, 212, 0.15);
}

.es-nav-divider {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 14px;
    margin-top: -1px;
}

.es-nav-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    height: 1px;
    background: #b8c8d0;
}

.es-nav-divider-gem {
    position: relative;
    z-index: 1;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(3px);
    color: #2aabc7;
    font-size: 9px;
    line-height: 1;
}

.es-nav-divider-wing {
    position: relative;
    z-index: 1;
    width: 36px;
    height: 1px;
    background: #b8c8d0;
}

.es-nav-divider-wing--left {
    margin-right: 4px;
    transform: skewY(-8deg);
}

.es-nav-divider-wing--right {
    margin-left: 4px;
    transform: skewY(8deg);
}

.es-nav-mobile-btn {
    display: none;
    margin-left: auto;
    padding: 8px 12px;
    background: transparent;
    color: #1a3050;
    border: 1px solid #c8d4dc;
    border-radius: var(--es-radius);
    cursor: pointer;
    font-size: 16px;
}

@media (max-width: 992px) {
    .es-nav-bar {
        flex-wrap: wrap;
    }

    .es-nav-mobile-btn {
        display: block;
    }

    .es-nav-center {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        padding-bottom: 8px;
    }

    .es-nav-center.is-open {
        display: flex;
    }

    .es-nav {
        flex-direction: column;
        width: 100%;
    }

    .es-nav li a {
        padding: 10px 4px;
        text-align: center;
    }

    .es-nav-lang,
    .es-nav-social {
        justify-content: center;
        margin: 8px 0 0;
        padding: 12px 0 0;
        border-left: none;
        border-top: 1px solid rgba(26, 48, 80, 0.12);
    }
}

.es-logo-wrap {
    text-align: center;
    padding: 8px 0 4px;
}

.es-logo-link {
    display: inline-block;
    text-decoration: none;
    transition: filter 0.2s ease;
}

.es-logo-link:hover {
    filter: brightness(1.15);
}

.es-logo {
    display: block;
    max-height: 100px;
    width: auto;
    margin: 0 auto;
}

.es-logo-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--es-text);
    text-transform: uppercase;
    text-decoration: none;
}

.es-logo-text span {
    display: block;
    font-size: 0.55rem;
    letter-spacing: 0.35em;
    color: var(--es-cyan-dark);
    margin-bottom: 2px;
}

/* ── Hero ── */
.es-hero {
    position: relative;
    z-index: 2;
    min-height: 480px;
    background: transparent;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

/*
.es-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 0%, rgba(238, 244, 248, 0.35) 100%);
    pointer-events: none;
}
    */

.es-hero-inner {
    position: relative;
    z-index: 1;
    display: flex;
    gap: clamp(12px, 2vw, 16px);
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding-bottom: clamp(28px, 6vw, 52px);
}

.es-btn-hero-png {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    flex: 0 0 auto;
    width: 314px;
    max-width: 100%;
    height: 126px;
    padding: 0 20px 15px 108px;
    box-sizing: border-box;
    text-decoration: none;
    color: #0a5a74;
    font-family: 'Times New Roman', Times, serif;
    text-align: left;
    background: center / 100% 100% no-repeat;
    transition: filter 0.2s ease;
}

.es-btn-hero-png:hover {
    filter: brightness(1.1);
}

.es-btn-hero-png--register {
    background-image: url('../images/registration-button.png');
}

.es-btn-hero-png--download {
    background-image: url('../images/download-button.png');
}

.es-btn-hero-png__title {
    display: block;
    width: 100%;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.1;
    text-shadow: #fff 0 1px;
}

.es-btn-hero-png__sub {
    display: block;
    width: 100%;
    margin-top: 2px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.2;
    text-shadow: #fff 0 1px;
}

/* ── Promo row: unified slider + account panel ── */
.es-promo-row {
    margin: 20px 0 0;
}

.es-main-grid:not(.es-promo-row) {
    margin-top: 20px;
}

.es-promo-combo {
    display: flex;
    align-items: stretch;
    background: #fff;
    box-shadow: var(--es-shadow);
    overflow: hidden;
    min-height: 340px;
}

.es-promo-combo .es-slider {
    position: relative;
    flex: 1;
    min-width: 0;
    min-height: 340px;
    overflow: hidden;
    background: #000;
    border-radius: 0;
    box-shadow: none;
}

.es-promo-combo .es-slider img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.es-slider-dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.es-slider-dot {
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.es-slider-dot.is-active {
    width: 8px;
    height: 8px;
    background: #2aadc8;
    box-shadow: 0 0 0 2px rgba(42, 173, 200, 0.35);
}

.es-slider-arrow {
    position: absolute;
    top: 0;
    bottom: 36px;
    width: 48px;
    margin: auto 0;
    height: 72px;
    z-index: 10;
    cursor: pointer;
    opacity: 0.65;
    border: none;
    background-color: transparent;
    background-repeat: no-repeat;
    background-size: 32px 32px;
    padding: 0;
    transition: opacity 0.2s ease;
}

.es-slider-arrow:hover {
    opacity: 1;
}

.es-slider-prev {
    left: 12px;
    background-image: url('../images/arrow-left.png');
    background-position: 42% center;
}

.es-slider-next {
    right: 12px;
    background-image: url('../images/arrow-right.png');
    background-position: 58% center;
}

/* Account panel — white box with corner ornaments */
.es-account-panel {
    flex-shrink: 0;
    width: min(360px, 36%);
    background:
        url('../images/fon-bg-account-top.png') top center no-repeat,
        url('../images/fon-bg-account-bottom.png') bottom center no-repeat;
    background-color: #fff;
    background-size: 100% auto, 100% auto;
    padding: 34px 28px 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-sizing: border-box;
}

.es-account-panel-title {
    margin: 0 0 18px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #0a5b75;
    text-align: center;
}

.es-account-panel-body {
    width: 100%;
    max-width: 300px;
}

.es-account-field {
    display: block;
    margin-bottom: 6px;
}

.es-account-label {
    display: block;
    margin-bottom: 4px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #3a95b2;
    text-align: center;
}

.es-account-input {
    display: block;
    width: 100%;
    padding: 10px 8px 18px;
    border: none;
    background: url('../images/input-account.png') bottom center no-repeat;
    background-size: 100% auto;
    text-align: center;
    color: #0a5b75;
    font-size: 14px;
    box-sizing: border-box;
}

.es-account-input:focus {
    outline: none;
}

.es-account-actions {
    margin-top: 8px;
    text-align: center;
}

.es-btn-account-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 281px;
    max-width: 100%;
    height: 92px;
    padding: 0 24px 26px;
    border: none;
    background: url('../images/button-login.png') center / 100% 100% no-repeat;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: filter 0.2s ease;
    box-sizing: border-box;
}

.es-btn-account-login:hover {
    filter: brightness(1.12);
}

.es-account-links {
    margin: 12px 0 0;
    text-align: center;
    font-size: 12px;
    color: #2ba3c3;
}

.es-account-links a {
    color: #2ba3c3;
    text-decoration: none;
}

.es-account-links a:hover {
    text-decoration: underline;
}

.es-account-agree {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-top: 16px;
    font-size: 11px;
    line-height: 1.45;
    color: #3d6b86;
    cursor: pointer;
}

.es-account-agree input {
    margin-top: 2px;
    flex-shrink: 0;
}

.es-account-agree a {
    color: #2ba3c3;
    text-decoration: underline;
}

.es-account-agree a:hover {
    text-decoration: none;
}

.es-account-captcha {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.es-account-welcome {
    margin: 0 0 16px;
    text-align: center;
    font-size: 14px;
    color: #0a5b75;
}

@media (max-width: 900px) {
    .es-promo-combo {
        flex-direction: column;
        min-height: 0;
    }

    .es-account-panel {
        width: 100%;
    }

    .es-promo-combo .es-slider,
    .es-promo-combo .es-slider img {
        min-height: 220px;
        height: 220px;
    }
}

/* ── Legacy fast menu (fast-links-*.jpg + hero-links-*.png overlays) ── */
.fast-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    justify-content: stretch;
    margin: 20px 0;
    width: 100%;
}

.fast-links-left,
.fast-links-center,
.fast-links-right {
    flex: 1 1 0;
    min-width: 0;
    height: 125px;
    position: relative;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    align-content: center;
    padding-left: 24px;
    padding-right: 8px;
    text-decoration: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: filter 0.25s;
    overflow: hidden;
}

.fast-links-center {
    border-left: 1px solid rgba(255, 255, 255, 0.85);
    border-right: 1px solid rgba(255, 255, 255, 0.85);
}

.fast-links-left:hover,
.fast-links-center:hover,
.fast-links-right:hover {
    filter: brightness(1.06);
}

.fast-links-left  { background-image: url('../images/fast-links-left.jpg'); }
.fast-links-center { background-image: url('../images/fast-links-center.jpg'); }
.fast-links-right { background-image: url('../images/fast-links-right.jpg'); }

.fast-links-left span,
.fast-links-center span,
.fast-links-right span {
    display: block;
    width: 100%;
    max-width: 55%;
    margin-bottom: 4px;
    font-style: italic;
    font-size: clamp(1.1rem, 2.2vw, 1.875rem);
    font-weight: bold;
    color: #fff;
    text-transform: uppercase;
    position: relative;
    z-index: 1;
    line-height: 1.1;
}

.fast-links-left p,
.fast-links-center p,
.fast-links-right p {
    font-size: 13px;
    font-style: italic;
    line-height: 1.25;
    color: #072650;
    text-shadow: rgba(255, 255, 255, 0.3) 0 1px;
    font-weight: 600;
    margin: 0;
    max-width: 52%;
    position: relative;
    z-index: 1;
}

.fast-links-center p {
    color: #3d2060;
}

.fast-links-left::before {
    content: "";
    background: url('../images/hero-links.png') no-repeat right center;
    background-size: contain;
    width: 55%;
    height: 125px;
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s;
    pointer-events: none;
}

.fast-links-left:hover::before { transform: translateX(-6px); }

.fast-links-center::before {
    content: "";
    background: url('../images/hero-links-center.png') no-repeat right center;
    background-size: contain;
    width: 55%;
    height: 125px;
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s;
    pointer-events: none;
}

.fast-links-center:hover::before { transform: translateX(-6px); }

.fast-links-right::before {
    content: "";
    background: url('../images/hero-links-right.png') no-repeat right center;
    background-size: contain;
    width: 55%;
    height: 125px;
    position: absolute;
    right: 0;
    top: 0;
    transition: transform 0.3s;
    pointer-events: none;
}

.fast-links-right:hover::before { transform: translateX(-6px); }

@media (max-width: 860px) {
    .fast-links {
        flex-wrap: wrap;
    }

    .fast-links-left,
    .fast-links-center,
    .fast-links-right {
        flex: 1 1 100%;
        border-left: none !important;
        border-right: none !important;
        margin-bottom: 4px;
    }

    .fast-links-left::before,
    .fast-links-center::before,
    .fast-links-right::before {
        opacity: 0.85;
    }
}

/* ── Sidebar widget title ornament (fon-widget-title.png) ── */
.flex-c-c {
    display: flex;
    justify-content: center;
    align-items: center;
}

.widget-right {
    margin-bottom: 16px;
    background: #fff;
    border: 1px solid rgba(43, 184, 212, 0.15);
    border-radius: var(--es-radius);
    box-shadow: var(--es-shadow);
    overflow: hidden;
}

.widget-title {
    position: relative;
    height: 65px;
    padding: 0 16px;
    box-sizing: border-box;
    background: #fff;
    font-family: Georgia, 'Times New Roman', serif;
    overflow: hidden;
}

.widget-title::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 87px;
    background: url('../images/fon-widget-title.png') top center no-repeat;
    background-size: 100% auto;
    pointer-events: none;
    z-index: 0;
}

.widget-title h2 {
    position: relative;
    z-index: 1;
    font-size: 18px;
    text-shadow: #fff 0 1px;
    color: var(--es-text);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.widget-title-small {
    font-size: 16px;
    text-shadow: #fff 0 1px;
}

.widget-content {
    background: #fff;
    border: none;
    border-top: 1px solid #eef2f6;
    border-radius: 0;
    box-shadow: none;
    padding: 12px 14px;
}

/* ── Go to top ornament (fon-totop.png + fon-circle.png) ── */
.es-content-column .toTop-fon {
    display: flex;
    background: url('../images/fon-totop.png') center top no-repeat;
    justify-content: center;
    align-items: flex-end;
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translate(-50%, 50%);
    z-index: 2;
    margin: 0;
    width: 120px;
    height: 60px;
    pointer-events: none;
}

.es-content-column .toTop-fon .toTop {
    pointer-events: auto;
}

.toTop {
    background: url('../images/fon-circle.png') center no-repeat;
    width: 50px;
    height: 50px;
    cursor: pointer;
    display: flex;
    border: none;
    padding: 0;
}

.toTop:hover {
    box-shadow: inset 0 0 5px 0 rgba(152, 224, 229, 1);
    filter: drop-shadow(0 0 5px rgba(152, 224, 229, 0.5));
    border-radius: 50%;
}


/* ── Main grid ── */
.es-main-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 20px;
    margin-bottom: 48px;
}

.es-main-grid > * {
    min-width: 0;
}

.es-content-column {
    position: relative;
    min-width: 0;
}

.es-content-panel {
    position: relative;
    background: var(--es-bg-panel);
    border-radius: var(--es-radius);
    box-shadow: var(--es-shadow);
    border: 1px solid rgba(43, 184, 212, 0.1);
    padding: 20px;
    min-height: 200px;
    overflow-x: clip;
}

@media (max-width: 900px) {
    .es-main-grid { grid-template-columns: 1fr; }
}

/* ── News feed (Last News: 1 featured + 5 list) ── */
.es-content-panel > .es-last-news {
    margin: -20px -20px 0;
    padding: 0 20px 20px;
}

.es-last-news-header {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    height: 65px;
    box-sizing: border-box;
    background: #fff;
    overflow: hidden;
    border-bottom: 1px solid #9dbdc8;
}

.es-content-panel > .es-last-news .es-last-news-header {
    margin: 0 -20px 24px;
    padding: 0 20px;
}

.es-last-news-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 87px;
    background: url('../images/border-last-news.png') top center no-repeat;
    background-size: 100% auto;
    pointer-events: none;
    z-index: 0;
}

.es-last-news-header h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: #0a5b75;
}

.es-news-more-icon {
    position: relative;
    z-index: 1;
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #2aabc7;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background 0.2s ease;
}

.es-news-more-icon:hover {
    background: #4bcde9;
}

.es-news-featured {
    display: flex;
    gap: 24px;
    margin-bottom: 8px;
}

.es-news-featured-media {
    flex-shrink: 0;
    display: block;
    width: min(280px, 42%);
}

.es-news-featured-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 328 / 225;
    object-fit: cover;
    box-shadow: 0 20px 30px rgba(16, 86, 105, 0.2);
}

.es-news-featured-body {
    flex: 1;
    min-width: 0;
}

.es-news-featured-body h3 {
    margin: 0 0 12px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
}

.es-news-featured-body h3 a,
.es-news-body h4 a {
    color: #0a5b75;
    text-decoration: none;
}

.es-news-featured-body h3 a:hover,
.es-news-body h4 a:hover {
    color: var(--es-cyan-dark);
}

.es-news-list {
    margin-top: 8px;
}

.es-news-item {
    display: flex;
    gap: 16px;
    padding: 20px 0;
    border-bottom: 1px solid #e8f0f4;
}

.es-news-item:last-child {
    border-bottom: none;
}

.es-news-thumb-link {
    flex-shrink: 0;
    display: block;
}

.es-news-thumb {
    display: block;
    width: 120px;
    height: 90px;
    object-fit: cover;
    box-shadow: 0 12px 20px rgba(16, 86, 105, 0.15);
}

.es-news-body {
    flex: 1;
    min-width: 0;
}

.es-news-body h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.es-news-excerpt {
    margin: 0;
    font-size: 13px;
    line-height: 1.55;
    color: #3a95b2;
}

.es-news-footer {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 16px;
    margin-top: 14px;
}

.es-btn-small {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 196px;
    height: 92px;
    padding: 0 20px 24px;
    border: none;
    background: url('../images/button-small.png') center / 100% 100% no-repeat;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    cursor: pointer;
    transition: filter 0.2s ease;
    box-sizing: border-box;
    flex-shrink: 0;
}

.es-btn-small:hover {
    filter: brightness(1.15);
}

.es-btn-small--compact {
    width: 162px;
    height: 72px;
    padding-bottom: 20px;
    font-size: 12px;
}

.es-btn-small--wide {
    width: 220px;
}

.es-btn-small--block {
    display: flex;
    margin-left: auto;
    margin-right: auto;
}

.es-ranking-footer {
    padding: 8px 12px 14px;
    text-align: center;
}

.es-news-date {
    font-size: 13px;
    color: #3a95b2;
}

.es-ranking-sidebar {
    padding: 8px 0 0;
}

.es-ranking-table {
    width: 100%;
    font-size: 0.78rem;
    border-collapse: collapse;
}

.es-ranking-table thead tr {
    color: var(--es-text-muted);
    border-bottom: 1px solid #e8f0f4;
}

.es-ranking-table th,
.es-ranking-table td {
    padding: 6px 4px;
}

.es-ranking-col-rank {
    width: 24px;
    text-align: center;
    font-weight: 700;
    color: var(--es-cyan-dark);
}

.es-ranking-badge {
    display: inline-block;
    vertical-align: middle;
    height: 24px;
    width: auto;
    max-width: 24px;
    object-fit: contain;
}

.es-ranking-num {
    display: inline-block;
    min-width: 16px;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--es-cyan-dark);
    text-align: center;
    line-height: 1;
}

.es-ranking-col-name {
    text-align: left;
}

.es-ranking-col-name a {
    color: var(--es-text);
    text-decoration: none;
    font-weight: 600;
}

.es-ranking-col-name a:hover {
    color: var(--es-cyan-dark);
}

.es-ranking-col-stat {
    text-align: center;
}

.es-ranking-table tbody tr {
    border-bottom: 1px solid #f0f4f8;
}

.es-ranking-table sup {
    color: #e05;
    font-size: 0.65rem;
}

/* ── Rankings page layout ── */
.es-ranking-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

@media (min-width: 900px) {
    .es-ranking-layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }
}

.es-ranking-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.es-ranking-nav-panel {
    background: #fff;
    border: 1px solid #d8e8ef;
    border-radius: var(--es-radius);
    overflow: hidden;
    box-shadow: var(--es-shadow);
}

.es-ranking-nav-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 10px 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--es-cyan-dark);
    background: linear-gradient(180deg, #f0f8fb, #e8f4f8);
    border-bottom: 1px solid #d8e8ef;
}

.es-ranking-nav-title i {
    color: var(--es-cyan);
    font-size: 0.75rem;
}

.es-ranking-nav-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 6px;
}

.es-ranking-nav-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 7px 10px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--es-text-muted);
    font-size: 0.75rem;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.es-ranking-nav-btn i {
    width: 14px;
    text-align: center;
    font-size: 0.68rem;
    flex-shrink: 0;
}

.es-ranking-nav-btn:hover {
    background: #eef6fa;
    color: var(--es-cyan-dark);
}

.es-ranking-nav-btn.is-active {
    background: var(--es-cyan-dark);
    color: #fff;
}

.es-ranking-search {
    display: flex;
    gap: 6px;
    padding: 8px;
}

.es-ranking-search input {
    flex: 1;
    min-width: 0;
    padding: 7px 10px;
    border: 1px solid #c5dde8;
    border-radius: var(--es-radius);
    font-size: 0.75rem;
    background: #f8fcfe;
}

.es-ranking-search input:focus {
    outline: none;
    border-color: var(--es-cyan);
}

.es-ranking-search button {
    flex-shrink: 0;
    width: 34px;
    border: none;
    border-radius: var(--es-radius);
    background: var(--es-cyan-dark);
    color: #fff;
    cursor: pointer;
}

.es-ranking-content {
    min-width: 0;
}

.es-ranking-panel {
    background: #fff;
    border: 1px solid #d8e8ef;
    border-radius: var(--es-radius);
    box-shadow: var(--es-shadow);
    overflow: hidden;
}

.es-ranking-panel--shell {
    min-height: 320px;
}

.es-ranking-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(180deg, #f0f8fb, #e8f4f8);
    border-bottom: 1px solid #d8e8ef;
}

.es-ranking-toolbar-title {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--es-cyan-dark);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.es-ranking-toolbar-filter {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.72rem;
    color: var(--es-text-muted);
}

.es-ranking-toolbar-filter select {
    padding: 5px 8px;
    border: 1px solid #c5dde8;
    border-radius: var(--es-radius);
    font-size: 0.72rem;
    background: #fff;
    color: var(--es-text);
}

.es-ranking-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.es-ranking-table--main {
    table-layout: fixed;
    width: 100%;
    font-size: 0.74rem;
}

.es-ranking-table--main th {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--es-text-muted);
    white-space: nowrap;
}

.es-ranking-table--main th sup {
    font-size: 0.58rem;
    color: #999;
    text-transform: none;
}

.es-ranking-table--main td {
    padding: 5px 4px;
    vertical-align: middle;
}

.es-ranking-table--main tbody tr:hover {
    background: #f5fafc;
}

.es-ranking-col-char {
    width: auto;
    min-width: 120px;
    text-align: left;
}

.es-ranking-col-guild {
    width: 72px;
    max-width: 72px;
    text-align: left;
}

.es-ranking-col-loc {
    width: 88px;
    max-width: 88px;
    text-align: left;
}

.es-ranking-char {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.es-ranking-char-meta {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.es-ranking-char-name {
    color: var(--es-text);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.es-ranking-char-name:hover {
    color: var(--es-cyan-dark);
}

.es-ranking-class-icon {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    object-fit: contain;
    border-radius: 3px;
}

.es-ranking-vip {
    display: inline-block;
    font-size: 0.58rem;
    font-weight: 600;
    line-height: 1;
    padding: 1px 4px;
    border-radius: 2px;
}

.es-ranking-vip--free { color: #888; }
.es-ranking-vip--gold { color: #b8860b; }
.es-ranking-vip--platinum { color: #4682b4; }
.es-ranking-vip--diamond { color: #8b5cf6; }
.es-ranking-vip--vip { color: #e67e22; }

.es-ranking-guild,
.es-ranking-loc {
    display: block;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--es-text-muted);
    font-size: 0.72rem;
}

.es-ranking-muted {
    color: #bbb;
}

.es-ranking-reset-stats {
    font-size: 0.65rem;
    line-height: 1.3;
}

.es-ranking-reset-stats span {
    display: block;
}

.es-ranking-empty {
    text-align: center;
    padding: 32px 16px !important;
    color: var(--es-text-muted);
    font-size: 0.82rem;
}

.es-ranking-exec-time {
    margin: 0;
    padding: 8px 14px 12px;
    text-align: center;
    font-size: 0.68rem;
    color: var(--es-text-muted);
}

.es-ranking-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 48px 24px;
    text-align: center;
    color: var(--es-text-muted);
}

.es-ranking-placeholder i {
    font-size: 2rem;
    color: #c5dde8;
}

.es-ranking-placeholder strong {
    color: var(--es-cyan-dark);
    font-size: 0.9rem;
}

.es-ranking-placeholder p {
    margin: 0;
    font-size: 0.78rem;
    max-width: 260px;
}

.es-ranking-disabled {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 20px;
    background: #fff8e6;
    border: 1px solid #f0d080;
    border-radius: var(--es-radius);
    color: #8a6d00;
    font-size: 0.82rem;
}

.es-ranking-disabled i {
    font-size: 1.2rem;
    margin-top: 2px;
}

.es-ranking-disabled p {
    margin: 4px 0 0;
    font-size: 0.78rem;
}

.es-ranking-loader {
    display: none;
    padding: 48px;
    text-align: center;
}

.htmx-request .es-ranking-loader {
    display: block;
}

.htmx-request .es-ranking-content-inner > *:not(.htmx-indicator) {
    display: none;
}

.es-ranking-spinner {
    width: 32px;
    height: 32px;
    margin: 0 auto;
    border: 2px solid #d8e8ef;
    border-top-color: var(--es-cyan);
    border-radius: 50%;
    animation: es-spin 0.7s linear infinite;
}

@keyframes es-spin {
    to { transform: rotate(360deg); }
}

.es-ranking-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 12px 10px 4px;
}

.es-ranking-page-btn,
.es-ranking-page-num {
    padding: 5px 10px;
    border: 1px solid #c5dde8;
    border-radius: var(--es-radius);
    background: #fff;
    color: var(--es-cyan-dark);
    font-size: 0.72rem;
    cursor: pointer;
    transition: background 0.15s;
}

.es-ranking-page-btn:hover:not(:disabled),
.es-ranking-page-num:hover:not(:disabled) {
    background: #eef6fa;
}

.es-ranking-page-btn:disabled,
.es-ranking-page-num:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.es-ranking-page-num.is-active {
    background: var(--es-cyan-dark);
    color: #fff;
    border-color: var(--es-cyan-dark);
}

.es-ranking-page-ellipsis {
    padding: 0 4px;
    color: var(--es-text-muted);
    font-size: 0.72rem;
}

.es-ranking-page-info {
    margin: 0;
    padding: 4px 10px 12px;
    text-align: center;
    font-size: 0.68rem;
    color: var(--es-text-muted);
}

.es-news-view-all {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e8f0f4;
    text-align: center;
}

.es-news-empty {
    margin: 0;
    font-size: 14px;
    color: var(--es-text-muted);
}

@media (max-width: 768px) {
    .es-news-featured {
        flex-direction: column;
    }

    .es-news-featured-media {
        width: 100%;
    }

    .es-news-item {
        flex-direction: column;
    }

    .es-news-thumb {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 10;
    }
}

.es-section-title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--es-text);
    margin: 0 0 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--es-cyan);
}

.es-btn-read {
    display: inline-block;
    padding: 6px 18px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, var(--es-cyan-light), var(--es-cyan-dark));
    border-radius: 50px;
    transition: opacity 0.2s;
}

.es-btn-read:hover { opacity: 0.85; }

.es-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 20px;
    list-style: none;
    padding: 0;
}

.es-pagination a,
.es-pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    color: var(--es-text-muted);
    border: 1px solid #c5dde8;
    border-radius: var(--es-radius);
    background: #fff;
}

.es-pagination a:hover,
.es-pagination .is-active {
    background: var(--es-cyan);
    color: #fff;
    border-color: var(--es-cyan);
}

/* ── Sidebar widgets ── */
.es-widget {
    background: var(--es-bg-panel);
    border-radius: var(--es-radius);
    box-shadow: var(--es-shadow);
    border: 1px solid rgba(43, 184, 212, 0.1);
    margin-bottom: 16px;
    overflow: hidden;
}

.es-widget-header {
    padding: 12px 16px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--es-text);
    border-bottom: 2px solid var(--es-cyan);
    background: linear-gradient(180deg, #fff, #f4fafc);
}

.es-widget-body { padding: 14px 16px; }

/* TOP SERVERS widget (online.png / offline.png + progress-bar.png) */
.es-top-servers-content {
    padding: 6px 8px 10px;
}

.es-top-servers {
    padding: 0;
}

.es-top-server {
    margin-bottom: 10px;
    text-align: center;
}

.es-top-server:last-child {
    margin-bottom: 0;
}

.es-server-head {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 0;
}

.es-server-name {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    color: #0a5b75;
    letter-spacing: 0.04em;
}

.es-server-status-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}

.es-top-server .progress-bar {
    position: relative;
    height: 34px;
    max-width: 100%;
    margin: 0 auto;
    padding: 13px 14px 0;
    box-sizing: border-box;
}

.es-top-server .progress-bar::after {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../images/progress-bar.png') center / 100% 100% no-repeat;
    pointer-events: none;
}

.es-top-server .es-server-progress-fill {
    display: block;
    position: relative;
    z-index: 1;
    height: 3px;
    width: 0;
    max-width: 100%;
    background: url('../images/status-on.jpg') repeat-x;
    transition: width 0.5s ease;
}

.es-top-server .status {
    margin: 0;
    font-size: 12px;
    color: #2aa9c6;
    text-align: center;
}

.es-top-server .status-off {
    margin: 0;
    font-size: 12px;
    color: #ff8686;
    text-align: center;
}

/* ── Footer ── */
.es-footer {
    background: linear-gradient(180deg, #e8f4f8, #dceef4);
    border-top: 1px solid rgba(43, 184, 212, 0.15);
    padding: 24px 0;
    margin-top: 20px;
}

.es-footer-inner.es-wrap {
    max-width: var(--es-max-width);
    margin-inline: auto;
    padding-inline: var(--es-gutter);
}

.es-footer-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.es-footer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
    width: 100%;
}

@media (min-width: 768px) {
    .es-footer-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.es-footer-col-title {
    margin: 0 0 10px;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--es-cyan-dark);
}

.es-footer-col-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.es-footer-col-list li + li {
    margin-top: 6px;
}

.es-footer-col-list a {
    font-size: 0.82rem;
    color: var(--es-text-muted);
    text-decoration: none;
    transition: color 0.2s;
}

.es-footer-col-list a:hover {
    color: var(--es-cyan-dark);
}

.es-footer-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding-top: 20px;
    border-top: 1px solid rgba(43, 184, 212, 0.15);
}

.es-footer-logo {
    display: block;
    max-height: 56px;
    width: auto;
}

.es-footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}

.es-footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    color: var(--es-cyan-dark);
    box-shadow: var(--es-shadow);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
}

.es-footer-social a:hover {
    background: var(--es-cyan);
    color: #fff;
}

.es-footer-copy {
    text-align: center;
    font-size: 0.75rem;
    color: var(--es-text-muted);
    margin: 0;
}

.es-form-intro {
    text-align: center;
    font-size: 0.85rem;
    color: var(--es-text-muted);
    margin: 0 0 20px;
}

.es-form-alert {
    padding: 10px 12px;
    margin-bottom: 14px;
    border-radius: var(--es-radius);
    font-size: 0.82rem;
}

.es-form-alert--success {
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.35);
    color: #166534;
}

.es-form-alert--error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #991b1b;
}

.es-form-footer-link {
    text-align: center;
    margin-top: 16px;
    font-size: 0.85rem;
}

.es-form-footer-link a {
    color: var(--es-cyan-dark);
    text-decoration: none;
}

.es-form-footer-link a:hover {
    text-decoration: underline;
}

.es-form-page {
    max-width: 480px;
    margin: 0 auto;
}

.es-form-page label {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--es-text);
    margin-bottom: 4px;
}

.es-form-page input,
.es-form-page select {
    width: 100%;
    padding: 10px 12px;
    margin-bottom: 14px;
    border: 1px solid #c5dde8;
    border-radius: var(--es-radius);
    font-size: 0.85rem;
    background: #f8fcfe;
    box-sizing: border-box;
}

.es-form-page input:focus {
    outline: none;
    border-color: var(--es-cyan);
}

.es-btn-submit {
    width: 100%;
    padding: 14px;
    background: linear-gradient(180deg, var(--es-cyan-light), var(--es-cyan-dark));
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    margin-top: 8px;
}

/* Prose for CMS pages */
.es-prose { font-size: 0.9rem; line-height: 1.7; color: var(--es-text); }
.es-prose h1, .es-prose h2, .es-prose h3 { color: var(--es-text); margin-top: 1.5em; }
.es-prose a { color: var(--es-cyan-dark); }

/* ── Inner content: remap shared dark/Epic partials to Everest light palette ── */
.es-content-panel .bg-theme-panel {
    background: var(--es-bg-panel) !important;
    border-color: rgba(43, 184, 212, 0.15) !important;
}

.es-content-panel .border-white\/5,
.es-content-panel .divide-white\/5 > :not([hidden]) ~ :not([hidden]) {
    border-color: #e8f0f4 !important;
}

.es-content-panel .bg-black\/20,
.es-content-panel .bg-black\/10,
.es-content-panel .bg-black\/30,
.es-content-panel .bg-black\/50 {
    background: #f4f9fb !important;
}

.es-content-panel .text-white,
.es-content-panel .prose-invert {
    color: var(--es-text) !important;
}

.es-content-panel .text-gray-300,
.es-content-panel .text-gray-400,
.es-content-panel .text-gray-500,
.es-content-panel .text-gray-600 {
    color: var(--es-text-muted) !important;
}

.es-content-panel .text-theme-gold,
.es-content-panel .text-theme-accent,
.es-content-panel .hover\:text-theme-gold:hover {
    color: var(--es-cyan-dark) !important;
}

.es-content-panel .bg-theme-accent,
.es-content-panel .bg-theme-accent\/20,
.es-content-panel .bg-theme-accent\/10 {
    background: rgba(43, 184, 212, 0.12) !important;
}

.es-content-panel .border-theme-accent\/30,
.es-content-panel .border-theme-accent\/20 {
    border-color: rgba(43, 184, 212, 0.25) !important;
}

.es-content-panel .hover\:bg-white\/5:hover,
.es-content-panel .hover\:bg-white\/10:hover {
    background: #eef6fa !important;
}

.es-content-panel .group:hover .group-hover\:text-theme-accent,
.es-content-panel a.text-blue-300,
.es-content-panel a.text-blue-500 {
    color: var(--es-cyan-dark) !important;
}

.es-content-panel .prose-invert :where(h1, h2, h3, h4, strong, th) {
    color: var(--es-text) !important;
}

.es-content-panel .prose-invert :where(p, li, td) {
    color: var(--es-text-muted) !important;
}

.es-content-panel .prose-invert :where(a) {
    color: var(--es-cyan-dark) !important;
}

/* Downloads page (shared partial inline styles) */
.es-content-panel .download-page > section:first-child > header {
    display: none;
}

.es-content-panel .download-page .download-meta-item {
    background: #f4f9fb !important;
}

.es-content-panel .download-page .download-meta-item + .download-meta-item {
    border-left-color: #e8f0f4 !important;
}

.es-content-panel .download-page .download-meta {
    border-top-color: #e8f0f4 !important;
}

.es-content-panel .download-page .download-table-head {
    background: #f4f9fb !important;
    border-bottom-color: #e8f0f4 !important;
    color: var(--es-text-muted) !important;
}

.es-content-panel .download-page .download-table-row {
    background: #fff !important;
}

.es-content-panel .download-page .download-table-row + .download-table-row,
.es-content-panel .download-page .download-row-group + .download-row-group {
    border-top-color: #e8f0f4 !important;
}

.es-content-panel .download-page .download-icon {
    background: #f4f9fb !important;
    border-color: #d8e8ef !important;
}

.es-content-panel .download-page .download-mirrors-panel {
    background: #f8fcfe !important;
    border-top-color: #e8f0f4 !important;
}

.es-content-panel .download-page .download-mirror-link {
    color: var(--es-text) !important;
}

.es-content-panel .download-page .download-mirror-link:hover {
    background: #eef6fa !important;
    color: var(--es-cyan-dark) !important;
}

.es-content-panel .download-page .dl-btn--primary {
    background: var(--es-cyan) !important;
}

.es-content-panel .download-page .dl-btn--primary:hover {
    background: var(--es-cyan-dark) !important;
}

.es-content-panel .download-page .dl-btn--muted {
    background: #f4f9fb !important;
    border-color: #c5dde8 !important;
    color: var(--es-text) !important;
}

.es-content-panel .download-page .dl-btn--muted:hover {
    background: #eef6fa !important;
}

.es-content-panel .download-page h3.text-white,
.es-content-panel .download-page .text-sm.font-medium.text-white,
.es-content-panel .download-page dd.text-white {
    color: var(--es-text) !important;
}

.es-content-panel .download-page .text-theme-gold {
    color: var(--es-cyan-dark) !important;
}

/* ── Responsive layout (overflow + breakpoints) ── */
.es-promo-row,
.es-promo-combo,
.es-main-grid {
    width: 100%;
    max-width: 100%;
}

@media (max-width: 1024px) {
    .es-nav li a,
    .es-nav li button {
        padding: 10px 12px;
        font-size: 12px;
    }

    .fast-links-left,
    .fast-links-center,
    .fast-links-right {
        flex: 1 1 calc(33.333% - 2px);
        min-width: 220px;
    }
}

@media (max-width: 992px) {
    .es-hero {
        min-height: clamp(280px, 52vw, 420px);
    }
}

@media (max-width: 768px) {
    .es-hero {
        min-height: clamp(240px, 58vw, 360px);
    }

    .es-hero-inner {
        flex-direction: column;
        align-items: stretch;
    }

    .es-btn-hero-png {
        width: min(314px, 100%);
        margin-inline: auto;
    }

    .es-content-panel {
        padding: 16px;
    }

    .es-page-heading {
        margin: -16px -16px 20px;
        padding: 0 16px 12px;
    }

    .es-content-panel > .es-last-news {
        margin: -16px -16px 0;
        padding: 0 16px 16px;
    }

    .es-content-panel > .es-last-news .es-last-news-header {
        margin: 0 -16px 20px;
        padding: 0 16px;
    }

    .es-account-panel {
        padding: 28px 16px 24px;
    }

    .es-btn-small {
        width: min(196px, 100%);
    }

    .es-btn-small--wide {
        width: min(220px, 100%);
    }
}

@media (max-width: 480px) {
    :root {
        --es-gutter: 12px;
    }

    .es-nav-logo img {
        max-height: 46px;
    }

    .es-btn-hero-png {
        height: 112px;
        padding: 0 16px 12px 92px;
    }

    .es-btn-hero-png__title {
        font-size: 19px;
    }

    .es-btn-hero-png__sub {
        font-size: 12px;
    }
}
