/* Classement MHSC v2 — scoped .mhec */

.mhec {
    --navy: #071525;
    --navy-2: #0c1e32;
    --red: #c8102e;
    --blue: #1d6fbf;
    --pink: #c02675;
    --text: #152033;
    --muted: #5c6d80;
    --line: #d7e0ea;
    --bg: #f3f6f9;
    --max: 1200px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    background: var(--bg);
    color: var(--text);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

.mhec *,
.mhec *::before,
.mhec *::after {
    box-sizing: border-box;
}

.mhec a {
    color: var(--blue);
    text-decoration: none;
}

.mhec-wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 20px;
}

.mhec-hero {
    background: var(--navy);
    color: #fff;
    padding: 36px 0 28px;
    border-top: 3px solid var(--red);
}

.mhec .mhec-hero h1 {
    margin: 0 0 8px;
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.mhec-hero p {
    margin: 0;
    color: #9db4c9;
    font-size: 15px;
    max-width: 720px;
}

.mhec-body {
    padding: 20px 0 48px;
}

.mhec-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 14px;
    -webkit-overflow-scrolling: touch;
}

.mhec-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.mhec-tab img {
    width: 22px;
    height: 14px;
    object-fit: cover;
    flex-shrink: 0;
}

.mhec-tab small {
    font-size: 11px;
    font-weight: 800;
    color: var(--muted);
}

.mhec-tab.is-on {
    background: var(--navy);
    border-color: var(--navy);
    color: #fff;
}

.mhec-tab.is-on small {
    color: #9db4c9;
}

.mhec-panel {
    display: none;
}

.mhec-panel.is-on {
    display: block;
}

.mhec-panel-h {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-size: 13px;
    color: var(--muted);
}

.mhec-panel-h strong {
    color: var(--navy);
    font-weight: 800;
}

.mhec-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 8px;
}

.mhec-age {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 10px 0 2px;
}

.mhec-age h2 {
    margin: 0;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--navy);
    white-space: nowrap;
}

.mhec-age::after {
    content: "";
    height: 1px;
    background: var(--line);
    flex: 1;
}

.mhec-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 52px;
    padding: 8px 10px 8px 12px;
    background: #fff;
    border: 1px solid var(--line);
}

.mhec-card:hover {
    border-color: #b7c6d4;
}

.mhec-card-name {
    min-width: 0;
    font-size: 13px;
    font-weight: 800;
    color: var(--navy);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mhec-genders {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}

.mhec-g {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 62px;
    height: 32px;
    padding: 0 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-decoration: none !important;
}

.mhec-g span {
    opacity: 0.85;
}

.mhec-g b {
    font-size: 13px;
}

.mhec-g--mix {
    background: #e8f1fb;
    color: var(--blue);
}

.mhec-g--mix:hover {
    background: var(--blue);
    color: #fff;
}

.mhec-g--fem {
    background: #fce7f3;
    color: var(--pink);
}

.mhec-g--fem:hover {
    background: var(--pink);
    color: #fff;
}

.mhec-note {
    background: #fff;
    border: 1px solid var(--line);
    padding: 28px 20px;
    text-align: center;
}

.mhec-note strong {
    display: block;
    font-size: 16px;
    margin-bottom: 6px;
}

.mhec-note p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
}

.mhec-ad {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px 20px 8px;
}

.mhec-ad-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9aa8b6;
    margin-bottom: 8px;
}

.mhec-ad-box {
    width: 100%;
    max-width: 728px;
    min-height: 90px;
    background: #fff;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.mhec-ad img {
    display: block;
    max-width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .mhec .mhec-hero h1 {
        font-size: 24px;
    }

    .mhec-grid {
        grid-template-columns: 1fr;
    }

    .mhec-tab span {
        display: none;
    }

    .mhec-tab.is-on span {
        display: inline;
    }
}
