.abes-participants-page {
    --abes-participants-blue: #075eb2;
    --abes-participants-blue-dark: #053d75;
    --abes-participants-sky: #44a9ef;
    --abes-participants-ink: #102a43;
    --abes-participants-muted: #61758a;
    --abes-participants-line: #dce7f1;
    --abes-participants-surface: #ffffff;
    --abes-participants-soft: #f3f8fc;
    color: var(--abes-participants-ink);
    background: var(--abes-participants-soft);
    overflow: clip;
}

.abes-participants-page *,
.abes-participants-page *::before,
.abes-participants-page *::after {
    box-sizing: border-box;
}

.abes-participants-shell {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}

.abes-participants-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(68px, 9vw, 126px) 0 clamp(58px, 7vw, 92px);
    color: #fff;
    background:
        radial-gradient(circle at 82% 18%, rgba(111, 199, 255, .36), transparent 28%),
        radial-gradient(circle at 12% 92%, rgba(54, 177, 174, .26), transparent 32%),
        linear-gradient(128deg, #053a70 0%, #075eb2 54%, #0a84cc 100%);
}

.abes-participants-hero::before,
.abes-participants-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
}

.abes-participants-hero::before {
    width: 360px;
    height: 360px;
    top: -220px;
    right: 7vw;
}

.abes-participants-hero::after {
    width: 180px;
    height: 180px;
    right: 22vw;
    bottom: -118px;
}

.abes-participants-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    color: #bde6ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.abes-participants-eyebrow::before {
    content: "";
    width: 30px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
}

.abes-participants-hero h1 {
    max-width: 820px;
    margin: 0;
    color: #fff;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 760;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.abes-participants-intro {
    max-width: 700px;
    margin-top: 24px;
    color: rgba(255, 255, 255, .84);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.65;
}

.abes-participants-intro > :first-child { margin-top: 0; }
.abes-participants-intro > :last-child { margin-bottom: 0; }

.abes-participants-event {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 30px;
    padding: 9px 14px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, .1);
    backdrop-filter: blur(8px);
    font-size: 13px;
    font-weight: 650;
}

.abes-participants-event > span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #7ee0b8;
    box-shadow: 0 0 0 5px rgba(126, 224, 184, .16);
}

.abes-participants-directory {
    min-height: 360px;
    padding: clamp(58px, 8vw, 104px) 0 clamp(76px, 10vw, 132px);
}

.abes-participants-page--without-hero .abes-participants-directory {
    padding-top: clamp(34px, 5vw, 68px);
}

.abes-participants-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 38px);
}

.abes-participant-item {
    min-width: 0;
    animation: abes-participant-reveal .55s both;
    animation-delay: min(calc(var(--participant-index) * 55ms), 440ms);
}

.abes-participant-card {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.abes-participant-card:focus-visible {
    outline: 3px solid #f0a33c;
    outline-offset: 5px;
}

.abes-participant-photo-wrap,
.abes-participant-photo,
.abes-participant-photo-placeholder {
    display: block;
    width: 100%;
}

.abes-participant-photo,
.abes-participant-photo-placeholder {
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

.abes-participant-photo-placeholder {
    display: grid;
    place-items: center;
    color: #fff;
    background: linear-gradient(145deg, #075eb2, #41a5d8);
    font-size: clamp(44px, 7vw, 76px);
    font-weight: 760;
    letter-spacing: -.06em;
}

.abes-participant-copy strong,
.abes-participant-headline,
.abes-participant-modern-action,
.abes-participant-classic-action {
    display: block;
}

/* Opção moderna */
.abes-participants-page--modern .abes-participant-card {
    overflow: hidden;
    height: 100%;
    border: 1px solid rgba(7, 94, 178, .09);
    border-radius: 26px;
    background: var(--abes-participants-surface);
    box-shadow: 0 18px 46px rgba(16, 42, 67, .09);
    transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.abes-participants-page--modern .abes-participant-card:hover {
    transform: translateY(-8px);
    border-color: rgba(7, 94, 178, .24);
    box-shadow: 0 28px 64px rgba(16, 42, 67, .16);
}

.abes-participants-page--modern .abes-participant-photo-wrap {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 4.7;
    background: #e9f1f7;
}

.abes-participants-page--modern .abes-participant-photo {
    transition: transform .5s cubic-bezier(.2, .75, .25, 1);
}

.abes-participants-page--modern .abes-participant-card:hover .abes-participant-photo {
    transform: scale(1.045);
}

.abes-participants-page--modern .abes-participant-photo-wrap::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34%;
    pointer-events: none;
    background: linear-gradient(to top, rgba(3, 33, 61, .3), transparent);
}

.abes-participant-card-action {
    position: absolute;
    z-index: 2;
    right: 16px;
    bottom: 16px;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    color: #fff;
    background: rgba(5, 61, 117, .72);
    backdrop-filter: blur(8px);
    font-size: 20px;
    transition: transform .25s ease, background .25s ease;
}

.abes-participants-page--modern .abes-participant-card:hover .abes-participant-card-action {
    transform: rotate(45deg);
    background: var(--abes-participants-blue);
}

.abes-participants-page--modern .abes-participant-copy {
    display: flex;
    min-height: 190px;
    padding: 24px 24px 25px;
    flex-direction: column;
}

.abes-participants-page--modern .abes-participant-copy strong {
    color: var(--abes-participants-ink);
    font-size: clamp(20px, 2vw, 24px);
    line-height: 1.17;
    letter-spacing: -.025em;
}

.abes-participants-page--modern .abes-participant-headline {
    margin-top: 10px;
    color: var(--abes-participants-muted);
    font-size: 14px;
    line-height: 1.5;
}

.abes-participant-modern-action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 22px;
    color: var(--abes-participants-blue);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.abes-participant-modern-action span {
    font-size: 18px;
    transition: transform .2s ease;
}

.abes-participant-card:hover .abes-participant-modern-action span {
    transform: translateX(4px);
}

/* Opção clássica, inspirada na página atual */
.abes-participants-page--classic {
    background: #fff;
}

.abes-participants-page--classic .abes-participants-directory {
    background: #fff;
}

.abes-participants-page--classic .abes-participants-grid {
    row-gap: clamp(46px, 6vw, 72px);
}

.abes-participants-page--classic .abes-participant-card {
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.abes-participants-page--classic .abes-participant-card:hover,
.abes-participants-page--classic .abes-participant-card:focus,
.abes-participants-page--classic .abes-participant-card:active {
    color: inherit !important;
    background: transparent !important;
    box-shadow: none !important;
}

.abes-participants-page--classic .abes-participant-photo-wrap {
    overflow: hidden;
    width: min(100%, 260px);
    aspect-ratio: 1;
    border: 8px solid #f1f7fb;
    border-radius: 50%;
    background: #eaf2f8;
    box-shadow: 0 14px 36px rgba(16, 42, 67, .1);
    transition: transform .28s ease, border-color .28s ease, box-shadow .28s ease;
}

.abes-participants-page--classic .abes-participant-card:hover .abes-participant-photo-wrap {
    transform: translateY(-5px);
    border-color: #d9effd;
    box-shadow: 0 22px 44px rgba(7, 94, 178, .17);
}

.abes-participants-page--classic .abes-participant-copy {
    display: flex;
    width: 100%;
    min-height: 172px;
    align-items: center;
    flex-direction: column;
}

.abes-participants-page--classic .abes-participant-copy strong {
    margin-top: 18px;
    color: #087fc5;
    font-size: clamp(19px, 2vw, 23px);
    font-weight: 520;
    line-height: 1.18;
}

.abes-participants-page--classic .abes-participant-headline {
    max-width: 260px;
    margin-top: 8px;
    color: var(--abes-participants-muted);
    font-size: 13px;
    line-height: 1.45;
}

.abes-participant-classic-action {
    margin-top: auto;
    padding: 11px 22px;
    border: 1px solid #37a3e4;
    border-radius: 999px;
    color: #167dc0;
    background: #fff;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .055em;
    text-transform: uppercase;
    transition: color .2s ease, background .2s ease, box-shadow .2s ease;
}

.abes-participants-page--classic .abes-participant-card:hover .abes-participant-classic-action {
    color: #fff;
    background: #1688cd;
    box-shadow: 0 9px 24px rgba(22, 136, 205, .22);
}

/* Estado vazio */
.abes-participants-empty {
    max-width: 720px;
    margin-inline: auto;
    padding: clamp(42px, 6vw, 70px) 28px;
    border: 1px dashed #b9cedf;
    border-radius: 26px;
    background: rgba(255, 255, 255, .75);
    text-align: center;
}

.abes-participants-empty > span {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 20px;
    place-items: center;
    border-radius: 20px;
    color: #fff;
    background: linear-gradient(135deg, var(--abes-participants-blue), var(--abes-participants-sky));
    font-size: 30px;
}

.abes-participants-empty h2 {
    margin: 0;
    color: var(--abes-participants-ink);
    font-size: clamp(24px, 4vw, 34px);
}

.abes-participants-empty p {
    max-width: 520px;
    margin: 13px auto 0;
    color: var(--abes-participants-muted);
    font-size: 16px;
    line-height: 1.6;
}

/* Modal compartilhado */
.abes-participant-modal[hidden] { display: none !important; }

.abes-participant-modal {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    padding: 24px;
    place-items: center;
}

.abes-participant-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(4, 24, 43, .72);
    backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity .22s ease;
}

.abes-participant-modal-dialog {
    position: relative;
    z-index: 1;
    overflow: hidden auto;
    width: min(760px, 100%);
    max-height: min(720px, calc(100vh - 48px));
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 26px;
    background: #fff;
    box-shadow: 0 34px 90px rgba(0, 18, 35, .32);
    opacity: 0;
    transform: translateY(18px) scale(.975);
    transition: opacity .22s ease, transform .22s ease;
}

.abes-participant-modal.is-open .abes-participant-modal-backdrop,
.abes-participant-modal.is-open .abes-participant-modal-dialog {
    opacity: 1;
}

.abes-participant-modal.is-open .abes-participant-modal-dialog {
    transform: translateY(0) scale(1);
}

.abes-participant-modal-close {
    position: absolute;
    z-index: 3;
    top: 18px;
    right: 18px;
    display: grid;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0 0 3px;
    place-items: center;
    border: 1px solid #dbe6ef;
    border-radius: 50%;
    color: var(--abes-participants-ink);
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 8px 22px rgba(16, 42, 67, .1);
    font: 300 30px/1 Arial, sans-serif;
    cursor: pointer;
}

.abes-participant-modal-close:hover,
.abes-participant-modal-close:focus-visible {
    color: #fff;
    background: var(--abes-participants-blue);
    outline: none;
}

.abes-participant-modal-layout {
    display: block;
}

.abes-participant-modal-media {
    position: relative;
    overflow: hidden;
    width: 96px;
    height: 96px;
    flex: 0 0 96px;
    border: 5px solid #edf5fb;
    border-radius: 50%;
    background: linear-gradient(145deg, #075eb2, #41a5d8);
    box-shadow: 0 10px 26px rgba(16, 42, 67, .14);
}

.abes-participant-modal-media img,
.abes-participant-modal-media span {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 24%;
}

.abes-participant-modal-media span {
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 28px;
    font-weight: 760;
    letter-spacing: -.07em;
}

.abes-participant-modal-content {
    padding: 42px 48px 44px;
}

.abes-participant-modal-profile {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 20px;
    padding-right: 48px;
}

.abes-participant-modal-identity {
    min-width: 0;
}

.abes-participant-modal-eyebrow {
    color: var(--abes-participants-blue);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.abes-participant-modal-content h2 {
    margin: 8px 0 0;
    color: var(--abes-participants-ink);
    font-size: clamp(28px, 4vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.abes-participant-modal-headline {
    margin: 8px 0 0;
    color: var(--abes-participants-blue);
    font-size: 16px;
    font-weight: 650;
    line-height: 1.45;
}

.abes-participant-modal-summary {
    margin: 28px 0 0;
    color: var(--abes-participants-muted);
    font-size: 16px;
    line-height: 1.7;
}

.abes-participant-modal-details {
    display: grid;
    margin: 26px 0 0;
    padding: 20px 0;
    border-block: 1px solid var(--abes-participants-line);
    gap: 15px;
}

.abes-participant-modal-detail {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    gap: 16px;
}

.abes-participant-modal-detail dt,
.abes-participant-modal-detail dd {
    margin: 0;
    line-height: 1.45;
}

.abes-participant-modal-detail dt {
    color: #7990a5;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.abes-participant-modal-detail dd {
    color: var(--abes-participants-ink);
    font-size: 14px;
    font-weight: 600;
    white-space: pre-line;
}

.abes-participant-modal-socials {
    display: flex;
    margin-top: 24px;
    flex-wrap: wrap;
    gap: 10px;
}

.abes-participant-modal-socials:empty { display: none; }

.abes-participant-modal-socials a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    border: 1px solid #c9dbe9;
    border-radius: 999px;
    color: var(--abes-participants-blue);
    background: #f8fbfd;
    font-size: 13px;
    font-weight: 750;
    text-decoration: none;
}

.abes-participant-modal-socials a:hover,
.abes-participant-modal-socials a:focus-visible {
    border-color: var(--abes-participants-blue);
    color: #fff;
    background: var(--abes-participants-blue);
    outline: none;
}

body.abes-participant-modal-open { overflow: hidden; }

@keyframes abes-participant-reveal {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1020px) {
    .abes-participants-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 780px) {
    .abes-participants-shell { width: min(100% - 32px, 680px); }
    .abes-participants-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .abes-participants-page--modern .abes-participant-copy { min-height: 176px; padding: 20px; }
    .abes-participant-modal { align-items: center; padding: 14px; }
    .abes-participant-modal-dialog { max-height: calc(100dvh - 28px); border-radius: 26px 26px 18px 18px; }
    .abes-participant-modal-content { padding: 34px 28px 36px; }
}

@media (max-width: 520px) {
    .abes-participants-shell { width: min(100% - 28px, 460px); }
    .abes-participants-hero { padding-block: 58px 54px; }
    .abes-participants-hero h1 { font-size: clamp(36px, 12vw, 50px); }
    .abes-participants-grid { grid-template-columns: 1fr; gap: 28px; }
    .abes-participants-page--modern .abes-participant-item { width: min(100%, 390px); margin-inline: auto; }
    .abes-participants-page--classic .abes-participant-item { width: min(100%, 330px); margin-inline: auto; }
    .abes-participants-page--classic .abes-participants-grid { row-gap: 48px; }
    .abes-participants-page--classic .abes-participant-photo-wrap { width: min(82vw, 270px); }
    .abes-participant-modal-close { top: 14px; right: 14px; width: 40px; height: 40px; }
    .abes-participant-modal-content { padding: 28px 20px 30px; }
    .abes-participant-modal-profile { align-items: flex-start; gap: 14px; padding-right: 38px; }
    .abes-participant-modal-media { width: 74px; height: 74px; flex-basis: 74px; border-width: 4px; }
    .abes-participant-modal-media span { font-size: 22px; }
    .abes-participant-modal-content h2 { font-size: clamp(24px, 8vw, 30px); }
    .abes-participant-modal-eyebrow { font-size: 9px; letter-spacing: .1em; }
    .abes-participant-modal-headline { font-size: 14px; }
    .abes-participant-modal-summary { margin-top: 24px; font-size: 15px; line-height: 1.65; }
    .abes-participant-modal-detail { grid-template-columns: 1fr; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
    .abes-participant-item { animation: none; }
    .abes-participant-card,
    .abes-participant-photo,
    .abes-participant-photo-wrap,
    .abes-participant-modal-backdrop,
    .abes-participant-modal-dialog { transition: none !important; }
}
