/* =========================================================
   CHARACTERS — Main class + right rolling cards
   - rail 20% wider
   - ✅ left portrait uses contain + centered (no stretch)
   - ✅ no black bands: blur background fills empty space
   ========================================================= */

:root {
    --site-header-offset: 90px;
    /* ✅ min <= max (antes estava invertido e forçava 562px) */
    --cls2-panel-h: clamp(500px, 62vh, 562px);
    /* ✅ 20% wider rail */
    --cls2-rail-w: 432px;
}

/* page + optional home background */
.cls2-page {
    padding-top: calc(var(--site-header-offset) + 24px);
    /* ✅ tira “sobra” que vira espaço antes/depois do footer */
    padding-bottom: 0;
}

    .cls2-page.home-bg {
        background: radial-gradient(1200px 700px at 20% 0%, rgba(40,120,255,.14), transparent 60%), radial-gradient(900px 520px at 80% 20%, rgba(170,90,255,.10), transparent 60%), linear-gradient(180deg, rgba(0,0,0,.54), rgba(0,0,0,.76));
    }

/* hero */
.cls2-hero {
    padding: 26px 0 14px;
    /* ✅ remove a "barra" */
    background: transparent !important;
}

.cls2-hero__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 18px;
    text-align: center;
}

.cls2-hero__title {
    margin: 0;
    font-size: 44px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255,255,255,.95);
    text-shadow: 0 14px 26px rgba(0,0,0,.55);
}

.cls2-hero__sub {
    margin: 10px auto 0;
    max-width: 900px;
    font-size: 15px;
    line-height: 1.6;
    color: rgba(255,255,255,.82);
}

/* spacing */
.cls2-wrap {
    padding-top: 12px;
    /* ✅ antes era 168px e criava scroll gigante */
    padding-bottom: 32px;
}

/* layout */
.cls2-layout {
    display: grid;
    grid-template-columns: 1fr var(--cls2-rail-w);
    gap: 18px;
    align-items: start;
}

/* =========================
   LEFT: main panel
   ========================= */

.cls2-main {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    box-shadow: 0 18px 44px rgba(0,0,0,.35);
    overflow: hidden;
    height: var(--cls2-panel-h);
}

.cls2-main__inner {
    display: grid;
    grid-template-columns: 420px 1fr;
    height: 100%; /* ✅ isso estava destruindo a altura real */
    min-height: 0;
}

.cls2-media {
    position: relative;
    background: rgba(0,0,0,.18);
    height: 100%;
    min-height: 0;
    overflow: hidden; /* ✅ importante pro blur */
}

    /* ✅ blur background to fill empty bands */
    .cls2-media::before {
        content: "";
        position: absolute;
        inset: -24px; /* sangra pra não aparecer borda do blur */
        background-image: var(--cls2-bg);
        background-size: cover;
        background-position: center;
        filter: blur(14px) saturate(1.03);
        transform: scale(1.12);
        opacity: .46;
        z-index: 0;
    }

/* ✅ FIX: portrait grande (293x392) sem distorcer */
.cls2-media__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    filter: saturate(1.05) contrast(1.02);
    z-index: 1;
}

.cls2-media__shade {
    position: absolute;
    inset: 0;
    background: radial-gradient(60% 70% at 45% 10%, rgba(255,255,255,.10), rgba(0,0,0,.35)), linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.62));
    pointer-events: none;
    z-index: 2;
}

.cls2-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.28);
    backdrop-filter: blur(6px);
    z-index: 3;
}

.cls2-badge__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 12px 22px rgba(0,0,0,.55));
}

.cls2-badge__name {
    font-weight: 900;
    letter-spacing: .4px;
    color: rgba(255,255,255,.95);
}

.cls2-badge__role {
    font-size: 12px;
    color: rgba(255,255,255,.70);
}

/* body scrolls inside */
.cls2-body {
    padding: 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) rgba(0,0,0,.18);
}

    .cls2-body::-webkit-scrollbar {
        width: 6px;
    }

    .cls2-body::-webkit-scrollbar-track {
        background: rgba(0,0,0,.18);
    }

    .cls2-body::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.18);
        border-radius: 8px;
    }

.cls2-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
}

.cls2-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cls2-tag {
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.80);
    white-space: nowrap;
}

.cls2-section {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(0,0,0,.14);
}

.cls2-label {
    font-size: 12px;
    color: rgba(255,255,255,.72);
    margin-bottom: 6px;
    letter-spacing: .2px;
}

.cls2-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.cls2-chip {
    font-size: 11px;
    padding: 5px 9px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,0,0,.14);
    color: rgba(255,255,255,.82);
}

.cls2-summary {
    margin: 0;
    font-size: 14px;
    line-height: 1.65;
    color: rgba(255,255,255,.78);
}

.cls2-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.cls2-list {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.6;
    color: rgba(255,255,255,.78);
}

    .cls2-list li {
        margin: 3px 0;
    }

    .cls2-list.is-warn {
        color: rgba(255,205,205,.90);
    }

.cls2-tip {
    padding: 10px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.05);
    color: rgba(255,255,255,.82);
    font-size: 13px;
    line-height: 1.55;
}

/* =========================
   RIGHT: cards rail (20% wider)
   ========================= */

.cls2-rail {
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    box-shadow: 0 18px 44px rgba(0,0,0,.35);
    padding: 12px;
    height: var(--cls2-panel-h);
    display: flex;
    flex-direction: column;
    min-height: 0;
}

.cls2-rail__top {
    display: grid;
    gap: 4px;
    margin-bottom: 10px;
    flex: 0 0 auto;
}

.cls2-rail__title {
    font-weight: 900;
    letter-spacing: .3px;
    color: rgba(255,255,255,.90);
}

.cls2-rail__sub {
    font-size: 12px;
    color: rgba(255,255,255,.62);
}

.cls2-rail__viewport {
    position: relative;
    flex: 1 1 auto;
    min-height: 0;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.10);
    overflow: hidden;
    background: rgba(0,0,0,.18);
}

.cls2-rail__scroll {
    height: 100%;
    overflow-y: auto;
    padding: 10px 10px;
    display: grid;
    gap: 10px;
    scrollbar-width: none;
}

    .cls2-rail__scroll::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

.cls2-rail__fade {
    position: absolute;
    left: 0;
    right: 0;
    height: 28px;
    pointer-events: none;
    z-index: 3;
}

.cls2-rail__fade--top {
    top: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.65), transparent);
}

.cls2-rail__fade--bot {
    bottom: 0;
    background: linear-gradient(0deg, rgba(0,0,0,.65), transparent);
}

/* card */
.cls2-card {
    position: relative;
    height: 112px;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.20);
    overflow: hidden;
    cursor: pointer;
    text-align: left;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
}

.cls2-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.03);
}

.cls2-card__shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.70), rgba(0,0,0,.22));
}

.cls2-card__content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 2px;
    padding: 14px 14px;
}

.cls2-card__kicker {
    font-size: 11px;
    letter-spacing: .6px;
    text-transform: uppercase;
    color: rgba(255,255,255,.70);
}

.cls2-card__name {
    font-size: 16px;
    font-weight: 900;
    letter-spacing: .2px;
    color: rgba(255,255,255,.95);
}

.cls2-card__role {
    font-size: 12px;
    color: rgba(255,255,255,.72);
}

.cls2-card:hover {
    border-color: rgba(255,255,255,.22);
    background: rgba(255,255,255,.05);
}

.cls2-card.is-active {
    border-color: rgba(255,214,140,.45);
    box-shadow: 0 0 0 2px rgba(255,214,140,.12) inset;
}

/* responsive */
@media (max-width: 1100px) {
    .cls2-layout {
        grid-template-columns: 1fr;
    }

    .cls2-main__inner {
        grid-template-columns: 1fr;
    }

    .cls2-split {
        grid-template-columns: 1fr;
    }

    .cls2-main,
    .cls2-rail {
        height: auto;
    }

    .cls2-media {
        height: 320px;
        min-height: 320px;
    }

    .cls2-body {
        overflow: visible;
    }

    .cls2-rail__viewport {
        height: 420px;
        flex: none;
    }
}
/* =========================
   FIX: stop pushing the footer down
   ========================= */

.cls2-page {
    padding-bottom: 0 !important;
}

.cls2-wrap {
    padding-bottom: 217px !important; /* antes 168px */
}
