/* Área de Participantes — Afiliados Brasil
   Tokens extraídos de area-de-membros-26.psd (fonte Heebo) */

:root {
    --green: #45cb2d;
    --green-dark: #3ba02c;
    --bg: #1f2329;
    --surface: #22272e;
    --surface-2: #282e36;
    --line: #2f353d;
    --sep: #252b32;
    --side-bg: #181b20;
    --side-line: #12151a;
    --text: #fff;
    --muted: #c7c7c7;
    --ink: #1f2329;
    --error-bg: #ffd6d9;
    --error-line: #e03a3f;
    --header-h: 76px;
    --sidebar-w: 270px;
    --radius: 8px;
}

/* ---------- reset ---------- */
blockquote, body, dd, div, dl, dt, fieldset, form, h1, h2, h3, h4, h5, h6, input, li, ol, p, pre, td, textarea, th, ul { padding: 0; margin: 0; list-style-position: inside; }
table { border-collapse: collapse; border-spacing: 0; }
fieldset, img { border: 0; }
ol, ul { list-style: none; }
caption, th { text-align: left; }
*, :after, :before { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { min-height: 100%; }
img { display: block; max-width: 100%; height: auto; }
button, input, textarea { font: inherit; color: inherit; }

body {
    font-family: Heebo, system-ui, sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.6;
    color: #202529;
    background-color: #fff;
}
body.theme-dark { color: var(--text); background-color: var(--bg); min-height: 100vh; }

.wrap { width: 100%; max-width: 1024px; margin: 0 auto; position: relative; }
.wrap:after, .clear:after { content: ""; display: block; clear: both; }
.no-scroll { overflow: hidden; }
.hide { display: none; }

h1, h2, h3, h4, h5, h6 { font-family: Heebo, sans-serif; font-weight: 700; line-height: 1.2; color: inherit; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
a { color: #90b800; }
a:hover { color: var(--green); }
.theme-dark a { color: var(--green); }
.theme-dark a:hover { color: var(--green); }

/* ícones (imagens extraídas do PSD) */
.ico { display: inline-block; flex: none; width: 24px; height: 24px; object-fit: contain; }

/* ---------- cabeçalho ---------- */
.header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 20;
    height: var(--header-h);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 0 32px;
    background: var(--green);
    color: #fff;
}
.header__brand { display: flex; align-items: center; gap: 16px; }
.header__logo { width: auto; height: 40px; }
.header__title { font-size: 20px; font-weight: 700; line-height: 40px; color: #fff; }
.header__logout {
    justify-self: end;
    display: flex; align-items: center; gap: 14px;
    font-size: 14px; font-weight: 600; text-decoration: none; color: #fff;
    padding: 10px 14px; border-radius: var(--radius); background-color: transparent; transition: background-color .15s;
}
.theme-dark .header__logout, .theme-dark .header__logout:visited { color: #fff; }
.header .header__logout:hover, .theme-dark .header__logout:hover { color: #fff; background-color: #2a8a19; }
.header__logout img { width: 17px; height: 17px; }
.header--public { display: flex; align-items: center; gap: 18px; }

.menu-toggle {
    display: none;
    background: none; border: 0; cursor: pointer;
    width: 40px; height: 40px;
}
.menu-toggle span, .menu-toggle span::before, .menu-toggle span::after {
    content: ""; display: block; width: 22px; height: 2px; background: #fff; position: relative; margin: auto;
}
.menu-toggle span::before { position: absolute; top: -7px; }
.menu-toggle span::after { position: absolute; top: 7px; }

/* ---------- menu lateral ---------- */
.side__user { margin: 0 0 16px; font-size: 15px; font-weight: 600; color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.side {
    position: fixed;
    top: var(--header-h); bottom: 0; left: 0;
    width: var(--sidebar-w);
    padding: 20px 16px 12px;
    background: var(--side-bg);
    border-right: 2px solid var(--side-line);
    overflow-y: auto;
    z-index: 10;
}
.field-search {
    display: flex; align-items: center; gap: 12px;
    height: 40px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface);
    color: var(--muted);
}
.field-search .ico { width: 13px; height: 13px; }
.field-search__bt { display: flex; align-items: center; background: none; border: 0; padding: 0; cursor: pointer; }
.field-search input {
    flex: 1; min-width: 0; background: none; border: 0; outline: 0;
    font-size: 14px; font-weight: 500; color: var(--muted);
}
.field-search input::placeholder { color: var(--muted); opacity: 1; }
.field-search:focus-within { border-color: var(--green); }

.nav { list-style: none; margin-top: 14px; }
.nav li { margin-bottom: 2px; list-style: none; }
.nav__link, .nav__toggle {
    display: flex; align-items: center; gap: 14px;
    width: 100%; height: 40px; padding: 0 14px;
    border: 0; border-radius: var(--radius);
    background: none; cursor: pointer; text-align: left;
    font-size: 14px; font-weight: 500; color: var(--text); text-decoration: none;
}
.theme-dark .nav__link { color: var(--text); }
.nav__link .ico, .nav__toggle > .ico:first-child { width: 12px; height: 12px; }
/* a imagem da home é verde; branca quando o item não está ativo */
.nav__link:not(.is-active) img[src$="icon-home.png"] { filter: brightness(0) invert(1); }
.nav__link:hover, .nav__toggle:hover { background: var(--surface-2); color: var(--text); }
body.theme-dark .nav .nav__link:hover, body.theme-dark .nav .nav__toggle:hover { color: var(--text); }
.nav__link.is-active { background: var(--surface-2); color: var(--green); cursor: default; }
body.theme-dark .nav .nav__link.is-active,
body.theme-dark .nav .nav__link[aria-current="page"],
body.theme-dark .nav .nav__link.is-active:hover { color: var(--green) !important; }
.nav__sep { height: 3px; margin: 0; padding: 18px 0; background: var(--sep); background-clip: content-box; border-radius: 2px; box-sizing: content-box; }
.nav__toggle .chev { margin-left: auto; width: 12px; height: 6px; transition: transform .2s; }
.nav__toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.nav__sub { list-style: none; display: none; margin: 4px 0 0 0; }
.nav__sub.is-open { display: block; }
.nav__sub .nav__link { padding-left: 40px; font-weight: 400; }
.nav li[hidden] { display: none; }

/* ---------- conteúdo ---------- */
.main {
    min-height: calc(100vh - var(--header-h));
    background: var(--bg); color: var(--text);
    margin: var(--header-h) 0 0 var(--sidebar-w);
    padding: 54px 24px 80px;
}
.container { width: 100%; max-width: 1003px; margin: 0 auto; position: relative; }
.entry { width: 100%; text-align: left; }
.box { width: 100%; }
.box > .title, .box > h1 { margin-bottom: 0; font-size: 28px; font-weight: 700; line-height: 1.3; }
.title { color: inherit; }
.mb1 { margin-bottom: 19px; }
.mb2 { margin-bottom: 28px; }
.mb3 { margin-bottom: 40px; }
.box > .title.mb1 { margin-bottom: 40px; }

.post-content { font-size: 16px; line-height: 1.7; }
.post-content p, .post-content blockquote, .post-content ul, .post-content ol, .post-content li { margin-bottom: 22px; }
.post-content ol, .post-content ul { padding-left: 2rem; }
.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }
.post-content li { list-style-position: outside; margin-bottom: 8px; }
.post-content strong, .post-content b { font-weight: 700; }
.post-content table { width: 100%; margin-bottom: 2rem; }
.post-content table td { font-size: .9rem; padding: 1rem; border-bottom: 1px solid var(--line); }
.post-content .wp-block-table { margin: 0; }
.post-content .speaker { margin-bottom: 1rem; padding: 1.5rem; background-color: var(--surface); border-radius: var(--radius); }
.post-content .speaker .wp-block-columns { gap: 1rem; margin-bottom: 1rem; }
.post-content .speaker .wp-block-image { max-width: 320px; overflow: hidden; margin-bottom: 0; border-radius: var(--radius); }
.post-content .speaker p:last-child { margin-bottom: 0; }
.course .post-content .company { padding-top: 1.5rem; }
.single .post-content { padding-top: 2rem; }
.single .cover { margin-bottom: 1.5rem; }

/* ---------- layout utilitário ---------- */
.row { display: flex; flex-wrap: wrap; align-items: center; }
.col { padding-left: 16px; padding-right: 16px; }
.full { width: 100%; }
.half { width: 50%; }
.one-third { width: 33.33%; }
.two-third { width: 66.66%; }

/* ---------- formulários ---------- */
.form { width: 100%; max-width: 320px; position: relative; }
.form .form-field { margin-bottom: 17px; }
.form .form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; color: var(--muted); }
.form .form-input, .comment-form textarea {
    display: block; width: 100%; height: 40px; padding: 0 14px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); outline: 0;
    font-size: 15px; font-weight: 500; color: var(--text);
}
.form .form-input::placeholder { color: var(--muted); opacity: 1; }
.form .form-input:focus { border-color: var(--green); }
.form .form-input:disabled { opacity: .55; cursor: not-allowed; }
.form .loader { display: block; position: absolute; right: 0; bottom: 0; width: 32px; height: 32px; background: url(img/loading.gif) no-repeat center; background-size: 100% auto; }

.bt {
    display: inline-flex; align-items: center; justify-content: center; gap: 12px;
    height: 44px; padding: 0 28px;
    border: 0; border-radius: var(--radius);
    font-family: Heebo, sans-serif; font-size: 15px; font-weight: 500; line-height: 1;
    text-decoration: none; cursor: pointer;
    transition: background .15s;
}
.bt:focus { outline-color: var(--green); }
.bt-green, .theme-dark .bt-green { background: var(--green); color: var(--ink); }
.bt-green:hover, .theme-dark .bt-green:hover { background: var(--green); color: var(--ink); filter: brightness(1.1); }
.bt-blue { background: #0672da; color: #fff; }
.bt-black-outline { color: var(--text); border: 2px solid var(--line); }
.bt[disabled] { opacity: .55; cursor: not-allowed; }
.form .bt-green { margin-top: 5px; }

.notyf .notyf__toast { text-align: left; }

/* ---------- avisos ---------- */
.notice {
    position: relative;
    display: flex; align-items: center; gap: 22px;
    min-height: 50px; padding: 14px 20px;
    border: 1px solid var(--error-line); border-radius: var(--radius);
    background: var(--error-bg); color: var(--ink);
    font-size: 15px; font-weight: 400; line-height: 1.5;
}
.notice p { position: relative; margin: 0; padding-left: 34px; }
.notice p:before {
    content: ""; position: absolute; left: 0; top: 50%; margin-top: -6px;
    width: 12px; height: 12px;
    background: url(img/ui/icon-erro.png) no-repeat center; background-size: contain;
}
.notice a { color: var(--ink); font-weight: 500; }
.notice.success { background: #d8f5d1; border-color: var(--green-dark); }
.notice.success p:before { background-image: url(svg/success.svg); }
.notice.info { background: #d6e8ff; border-color: #2795ff; }
.notice.info p:before { background-image: url(svg/info.svg); }
.notice.warning { background: #fff4c2; border-color: #d9a800; }
.notice.warning p:before { background-image: url(svg/alert.svg); }
.post-content + .notice, .box > .notice { margin-top: 28px; }

/* ---------- tabelas (dados cadastrais / titularidade) ---------- */
.account, .ownership table { width: 100%; font-size: 14px; text-align: left; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.account th, .account td, .ownership table th, .ownership table td { padding: 0 16px; height: 40px; }
.account th, .ownership table th { background: var(--surface-2); color: var(--muted); font-weight: 500; }
.account td, .ownership table td { background: var(--surface); color: var(--muted); font-weight: 400; }
.account { margin-top: 24px; }
.ownership .bt { height: 28px; padding: 0 14px; }

/* ---------- vídeos ---------- */
.videos-search { margin-top: 0; margin-bottom: 20px; }
.videos-search .form { max-width: none; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.videos-search .form-input { max-width: 320px; flex: 1; }
.videos-search .bt-green { margin-top: 0; height: 40px; }
.videos-search small { color: var(--muted); font-size: 13px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; margin-top: 28px; }
.card { min-width: 0; }
.card .link { display: block; }
.card .link img { width: 100%; aspect-ratio: 16 / 9; height: auto; object-fit: cover; border: 2px solid transparent; border-radius: var(--radius); transition: border-color .15s, filter .15s; }
.card .link:hover img { border-color: var(--green); filter: brightness(1.12); }
.card .speaker a:hover, .card .title a:hover { color: var(--green); }
.card .title a:hover { text-decoration: none; }
.card .info { padding-top: 12px; }
.card .speaker { font-size: 14px; font-weight: 700; }
.card .speaker a, .card .title a { text-decoration: none; }
.card .speaker a { color: var(--green); }
.card .title { margin-top: 4px; font-size: 20px; font-weight: 700; line-height: 1.4; }
.card .title a { color: var(--text); }
.card .event { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* vídeo individual */
.video .data { margin-bottom: 19px; }
.video .data .item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.video .data .ico { width: 14px; height: 14px; margin-right: 0; }
.video .embed { margin-bottom: 24px; }
.video .embed iframe { width: 656px; max-width: 100%; height: 369px; border-radius: var(--radius); }
.single.video .data, .box.video .notice { margin-bottom: 24px; }

/* blog / posts */
.blog .cards { margin-top: 0; }
.video.post { display: block; }
.video.post .thumb { margin-bottom: 20px; }
.video.post .title a { color: var(--green); text-decoration: none; }
.video.post .excerpt { margin-bottom: 16px; color: var(--muted); font-size: 14px; line-height: 1.4; }
.video.post .bt { height: 38px; }

.pagination { margin-top: 40px; text-align: center; }
.pagination a, .pagination span {
    display: inline-block; margin: 0 2px; padding: 8px 14px;
    border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--surface); color: var(--muted); font-size: 13px; text-decoration: none;
}
.pagination a:hover { color: var(--green); border-color: var(--green); }
.pagination .current { background: var(--green); border-color: var(--green); color: var(--ink); }

/* ---------- credencial ---------- */
.credential { align-items: flex-start; gap: 0; }
.credential > div:first-child { padding-right: 22px; }
.credential .form { margin-top: 32px; }
.credential .mockup {
    width: 100%; max-width: 321px; aspect-ratio: 642 / 1043; height: auto !important;
    margin: 0 auto; padding: 0 !important;
    position: relative; overflow: hidden; border-radius: 16px; background-color: #fff;
    background-repeat: no-repeat; background-position: left top; background-size: cover;
    display: flex; align-items: center;
}
.credential .mockup.networking { background-image: url(img/bg-credential-networking.jpg); }
.credential .mockup.vip { background-image: url(img/bg-credential-vip.png); }
.credential .mockup.gold { background-image: url(img/bg-credential-gold.png); }
.credential .mockup.black { background-image: url(img/bg-credential-black.png); }
.credential .mockup.exhibitor { background-image: url(img/bg-credential-exhibitor.png); }
.credential .mockup .info {
    width: 77.2%; margin: 0 auto; padding: 0 6px; text-align: center; color: var(--ink);
    display: flex; flex-direction: column; gap: 4px;
}
.credential .mockup .info .field { max-width: 100%; overflow: hidden; margin: 0; font-weight: 700; font-size: 18px; line-height: 1.1; }
.credential .mockup .info .field + .field { font-size: 12px; font-weight: 500; }

/* ---------- certificado (tela de edição) ---------- */
.certified-page .form { max-width: none; }
.certified-page .form .form-input { max-width: 520px; }
.certified-page .buttons { margin-top: 32px; }
.certified-page .buttons h3 { margin-bottom: 8px; }
.certified-page .buttons p { color: var(--muted); }
.sep3 { height: 3px; margin: 28px 0 0; background: var(--sep); border-radius: 2px; }

/* ---------- páginas públicas (login / recuperar senha) ---------- */
.public { min-height: 100vh; background: var(--bg); color: var(--text); padding: calc(var(--header-h) + 54px) 24px 80px; }
.public .wrap { max-width: 320px; }
.public .wrap-content { max-width: 768px; margin-bottom: 8px; }
.public .title { text-align: left; margin-bottom: 24px; }
.public .box { padding: 0; }
.public .form-field .link, .public .link { display: inline-block; margin-top: 14px; font-size: 13px; }
.public .form .bt-green { display: flex; width: 100%; }

/* ---------- rodapé ---------- */
.footer { padding: 1rem 0; text-align: center; }

/* ---------- comentários (FAQ / posts) ---------- */
.commentlist { margin-bottom: 2rem; }
.commentlist .children { margin-left: 2rem; }
.commentlist .children .children { margin-left: 0; }
.commentlist .comment .comment-body { padding: 1.5rem; margin-bottom: 1rem; background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.commentlist .comment.bypostauthor .comment-body, .commentlist .comment.byadmin .comment-body { border-color: var(--green-dark); }
.commentlist .comment .comment-body p { margin-bottom: .75rem; }
.commentlist .comment .comment-author { display: flex; flex-wrap: nowrap; gap: .25rem; align-items: center; margin-bottom: .5rem; }
.commentlist .comment .comment-author .avatar { border-radius: 100%; }
.commentlist .comment .comment-author .fn { font-style: normal; font-weight: 700; }
.commentlist .comment .comment-meta { margin-bottom: .5rem; font-size: 12px; color: var(--muted); }
.commentlist .comment .comment-meta a:first-child { text-decoration: none; color: inherit; }
.comment-respond .comment-reply-title small { display: block; margin-bottom: .5rem; }
.comment-respond .comment-form { margin-bottom: 3rem; max-width: none; }
.comment-respond .comment-form .logged-in-as { margin-bottom: 1rem; }
.comment-respond .comment-form .required-field-message { display: none; }
.comment-respond .comment-form .comment-form-comment { margin-bottom: 1rem; }
.comment-respond .comment-form .comment-form-comment .label { display: block; font-weight: 700; margin-bottom: 8px; }
.comment-respond .comment-form .comment-form-comment textarea { width: 100%; min-width: 100%; max-width: 100%; height: 125px; min-height: 125px; max-height: 250px; padding: .75rem 1rem; }
.comment-respond .comment-form .comment-form-comment textarea:focus { border-color: var(--green); }
.comment-respond .comment-form input[type="submit"] { height: 44px; padding: 0 26px; border: 0; border-radius: var(--radius); background: var(--green); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; }

/* ---------- certificado impresso / ingresso (páginas claras) ---------- */
.theme-light { text-align: center; line-height: 1.5; }
.certified { position: relative; text-align: left; font-size: 18px; font-family: "Gotham Medium", sans-serif; width: 297mm; padding: 4rem 8rem; margin: auto; box-shadow: 0 0 10px 10px rgba(0,0,0,.1); color: #202529; }
.certified b, .certified h1 { font-family: "Gotham Black", sans-serif; }
.certified .logo { position: absolute; top: 0; right: 0; }
.certified .sidebar { position: absolute; bottom: 0; left: 0; }
.certified.afbr .title { color: #9bb74b; }
.certified.gabr .title { color: #bf3c37; }
.certified .title { font-weight: 700; text-transform: uppercase; font-size: 36px; margin-bottom: 10mm; }
.certified p { margin-bottom: 10mm; }
.certified .text { width: 140mm; }
.certified .us { display: inline-block; padding: 5mm; padding-left: 0; border-bottom: 2px solid #000; }
.certified .name { padding: 5mm 0; font-size: 24px; display: block; }
.certified .row { justify-content: space-between; }
.certified .sign b { display: block; }
.certified-buttons { padding: 2rem 0; }
@media print {
    .certified { height: 210mm; padding: 30mm; margin: 0; overflow: hidden; box-shadow: none; }
    .no-print { display: none; }
}

/* ---------- responsivo ---------- */
@media only screen and (max-width: 1100px) {
    .main { padding-top: 40px; }
}
@media only screen and (max-width: 900px) {
    .menu-toggle { display: flex; align-items: center; justify-content: center; }
    .header { grid-template-columns: auto 1fr auto; padding: 0 16px; gap: 8px; }
    .header__title { font-size: 16px; }
    .header__brand { gap: 8px; }
    .header__logout span { display: none; }
        .side { transform: translateX(-100%); transition: transform .2s; width: 280px; }
    .side.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(0,0,0,.5); }
    .main { margin-left: 0; padding: 32px 16px 56px; min-height: calc(100vh - var(--header-h)); }
    .public { padding-left: 16px; padding-right: 16px; }
    h1, .box > .title, .box > h1 { font-size: 22px; }
    .cards { grid-template-columns: 1fr; }
    .credential > div { width: 100%; padding-right: 0 !important; }
    .credential > div + div { margin-top: 32px; }
    .form { max-width: none; }
    .form .bt-green { width: 100%; }
    .video .embed iframe { height: 320px; }
}
@media only screen and (max-width: 480px) {
    .video .embed iframe { height: 220px; }
    .col { padding-left: 8px; padding-right: 8px; }
}
