/* =========================================
   portal_do_inscrito — Portal do Inscrito
   Mesmo acabamento do portal_cotas: capa em
   degradê, cartões brancos, blocos com borda
   azul e revelação suave ao rolar.
========================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #f4f6f8;
    color: #333;
}

.is-hidden {
    display: none !important;
}

.container {
    max-width: 1000px;
    margin: 0 auto 1.8rem auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h3 {
    color: #0b1220;
    margin-bottom: 6px;
}

.div_titulo {
    margin: 0 0 25px 0;
    padding: 10px;
    text-align: center;
    background-color: #1a73e8;
    color: white;
    font-weight: bold;
    border-radius: 5px;
    letter-spacing: 1px;
}

.bloco_titulo {
    margin: 2rem 0 1.2rem;
    padding: 8px 12px;
    background: #eef4ff;
    border-left: 4px solid #1a73e8;
    border-radius: 4px;
    font-weight: bold;
    color: #0d47a1;
    letter-spacing: .5px;
    font-size: .95em;
}

.texto_apoio {
    margin-bottom: 1.2rem;
    font-size: .92em;
    line-height: 1.5;
    color: #41506b;
}

.obrig {
    color: #d93025;
}

.obrig_ou {
    color: #b8860b;
}

/* =========================================
   HEADER: usuário logado
========================================= */
.header_usuario {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
    line-height: 1.2;
}

.header_usuario_nome {
    max-width: 16rem;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.header_usuario_sair {
    font-size: .82em;
    color: rgba(255, 255, 255, .85);
    text-decoration: none;
    padding: 2px 8px;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 20px;
    transition: background .2s, color .2s;
}

.header_usuario_sair:hover {
    background: #fff;
    color: #1557b0;
}

/* =========================================
   CAPA
========================================= */
.hero {
    position: relative;
    z-index: 0;
    overflow: hidden;
    padding: 46px 20px 64px;
    margin-bottom: -30px;
    text-align: center;
    color: #fff;
    background: linear-gradient(120deg, #0d47a1, #1a73e8, #2b8fff, #1557b0);
    background-size: 300% 300%;
    animation: heroGradiente 16s ease infinite;
}

@keyframes heroGradiente {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.hero_conteudo {
    position: relative;
    z-index: 2;
    max-width: 760px;
    margin: 0 auto;
}

.hero_tag {
    display: inline-block;
    padding: 6px 16px;
    margin-bottom: 14px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 30px;
    font-size: .8em;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    animation: surgir .8s ease both;
}

.hero_titulo {
    font-size: 2.2em;
    line-height: 1.2;
    margin-bottom: 10px;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .2);
    animation: surgir .8s .1s ease both;
}

.hero_sub {
    font-size: 1.02em;
    line-height: 1.6;
    opacity: .95;
    animation: surgir .8s .2s ease both;
}

@keyframes surgir {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero_bolhas span {
    position: absolute;
    bottom: -120px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    animation: subir 18s linear infinite;
}

.hero_bolhas span:nth-child(1) { left: 8%;  width: 90px;  height: 90px;  animation-duration: 20s; }
.hero_bolhas span:nth-child(2) { left: 28%; width: 45px;  height: 45px;  animation-duration: 14s; animation-delay: 2s; }
.hero_bolhas span:nth-child(3) { left: 52%; width: 130px; height: 130px; animation-duration: 24s; animation-delay: 1s; }
.hero_bolhas span:nth-child(4) { left: 74%; width: 60px;  height: 60px;  animation-duration: 16s; animation-delay: 4s; }
.hero_bolhas span:nth-child(5) { left: 90%; width: 100px; height: 100px; animation-duration: 22s; animation-delay: 3s; }

@keyframes subir {
    0%   { transform: translateY(0) scale(1); opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: .5; }
    100% { transform: translateY(-115vh) scale(1.2); opacity: 0; }
}

/* =========================================
   REVELAR AO ROLAR
========================================= */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .6s ease, transform .6s ease;
}

.reveal.visivel {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    .hero { animation: none; }
    .hero_bolhas { display: none; }
    .hero_tag, .hero_titulo, .hero_sub { animation: none; }
}

/* =========================================
   ESTADOS
========================================= */
.estado_carregando,
.estado_vazio {
    padding: 40px 20px;
    text-align: center;
    color: #7f8ca6;
    font-size: 1.05em;
}

.estado_carregando {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 2rem;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.estado_vazio i {
    font-size: 2.6em;
    margin-bottom: 12px;
    display: block;
    color: #c3cbd8;
}

.estado_vazio_sub {
    margin-top: 8px;
    font-size: .9em;
}

/* o painel sobe por cima da capa */
.painel {
    position: relative;
    z-index: 1;
}

/* =========================================
   ACESSO
========================================= */
.container_login {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.btn_largo {
    width: 100%;
    padding: 14px;
    font-size: 1.05em;
}

.login_links {
    margin-top: 18px;
    text-align: center;
    font-size: .9em;
    color: #9aa6bd;
}

.login_links a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: bold;
}

.login_links a:hover {
    text-decoration: underline;
}

.login_links span {
    margin: 0 8px;
}

.msg_ok {
    margin-bottom: 1.5rem;
    padding: 1rem;
    border: 1px solid #b7dfc3;
    border-radius: 5px;
    background: #e6f4ea;
    color: #1e5631;
    text-align: center;
}

.escolher_item {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 12px;
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 16px;
    background: #f8fbff;
    border: 2px solid #dbe6f7;
    border-radius: 8px;
    text-align: left;
    cursor: pointer;
    transition: border-color .2s, transform .2s;
}

.escolher_item:hover {
    border-color: #1a73e8;
    transform: translateX(4px);
}

.escolher_item strong {
    flex: 1 1 100%;
    color: #0b1220;
}

.escolher_item span {
    flex: 1;
    font-size: .88em;
    color: #41506b;
}

.escolher_item i {
    color: #1a73e8;
}

.senha_campo {
    position: relative;
}

.senha_campo input {
    padding-right: 2.5rem;
}

.btn_ver_senha {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #777;
    cursor: pointer;
}

.btn_ver_senha:hover {
    color: #1a73e8;
}

/* =========================================
   INSCRIÇÕES ABERTAS
========================================= */
.card_inscrever {
    background: linear-gradient(120deg, #fff8e1, #fff3cd);
    border-left: 5px solid #f29900;
}

.inscrever_linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.inscrever_linha strong {
    color: #6b4500;
    font-size: 1.1em;
}

.inscrever_linha p {
    margin-top: 4px;
    color: #7a5a14;
    font-size: .92em;
}

.btn_inscrever {
    background: #f29900;
}

.btn_inscrever:hover {
    background: #c77c00;
}

.card_inscrever .msg_erro {
    margin: 1rem 0 0;
}

/* =========================================
   IDENTIFICAÇÃO
========================================= */
.ident_grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px;
}

.ident_item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    background: #f8fbff;
    border: 1px solid #e2eaf7;
    border-radius: 8px;
    min-width: 0;
}

.ident_destaque {
    grid-column: 1 / -1;
    background: #eef4ff;
    border-color: #cfe0fb;
}

.ident_rotulo {
    font-size: .75em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #7f8ca6;
}

.ident_valor {
    font-size: 1.02em;
    color: #0b1220;
    overflow-wrap: anywhere;
}

.ident_destaque .ident_valor {
    font-size: 1.25em;
    font-weight: bold;
    color: #0d47a1;
}

.origem_box {
    margin-top: 16px;
    padding: 12px 16px;
    background: #e3f2fd;
    color: #0d47a1;
    border-radius: 8px;
    font-weight: bold;
}

.origem_box i {
    margin-right: 6px;
}

/* =========================================
   PAGAMENTO
========================================= */
.pag_estado {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px;
    border-radius: 10px;
}

.pag_estado p {
    color: #41506b;
    line-height: 1.5;
}

.pag_icone {
    flex: none;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6em;
    animation: selo .5s .15s cubic-bezier(.2, 1.5, .5, 1) both;
}

@keyframes selo {
    from { transform: scale(0) rotate(-90deg); }
    to   { transform: scale(1) rotate(0); }
}

.pag_pago {
    background: #e6f4ea;
    border: 1px solid #b7dfc3;
}

.pag_pago .pag_icone {
    background: #1e7e34;
    color: #fff;
}

.pag_pago h3 {
    color: #1e5631;
}

.pag_cortesia {
    background: #f3e8ff;
    border: 1px solid #dcc3f7;
}

.pag_cortesia .pag_icone {
    background: #6b21a8;
    color: #fff;
}

.pag_cortesia h3 {
    color: #4c1d95;
}

.pag_aviso {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 16px;
    background: #fff3cd;
    color: #856404;
    border-radius: 8px;
    font-weight: bold;
}

/* Variante neutra (informativa, não é alerta) — usada em "sem
   inscrição na edição em andamento" */
.pag_aviso_neutro {
    background: #e3f2fd;
    color: #0d47a1;
}

/* Sub-título do card, dizendo a qual edição o Pagamento se refere —
   ele é sempre sobre a edição em andamento, não sobre a inscrição
   aberta pelo "Trocar" acima */
.pag_ref {
    margin: -0.8rem 0 1.2rem;
    font-size: .85em;
    color: #7f8ca6;
}

/* =========================================
   HISTÓRICO DE PAGAMENTOS (edições ANTERIORES — aparece sempre que
   existir, além do cartão de cima, esteja a pessoa inscrita ou não
   na edição em andamento)
========================================= */
.historico_bloco {
    margin-top: 1.75rem;
    padding-top: 1.5rem;
    border-top: 1px dashed #e2e8f0;
}

.historico_lista {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.historico_item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
}

.historico_icone {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #eef4ff;
    color: #1a73e8;
    font-size: 1.1em;
}

.historico_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.historico_info strong {
    color: #0b1220;
}

.historico_info span {
    font-size: .88em;
    color: #41506b;
}

.historico_situacao {
    flex: none;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: .8em;
    font-weight: bold;
    white-space: nowrap;
}

.historico_situacao.pago      { background: #e6f4ea; color: #1e7e34; }
.historico_situacao.cortesia  { background: #f3e8ff; color: #6b21a8; }
.historico_situacao.pendente  { background: #fff3cd; color: #856404; }

.pag_resumo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px;
    margin-bottom: 20px;
    background: #f8fbff;
    border: 1px solid #d6e4fb;
    border-left: 4px solid #1a73e8;
    border-radius: 6px;
}

.pag_valor > span {
    display: block;
    font-size: .85em;
    color: #7f8ca6;
}

.pag_valor strong {
    font-size: 1.7em;
    color: #1a73e8;
}

.btn_pagar {
    padding: 14px 26px;
    font-size: 1.05em;
    border-radius: 40px;
    box-shadow: 0 6px 16px rgba(26, 115, 232, .3);
}

.pag_deposito {
    padding: 18px;
    border: 1px dashed #cbd8ee;
    border-radius: 8px;
}

.pag_deposito h4 {
    margin-bottom: 14px;
    color: #0d47a1;
}

.deposito_dados {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 10px;
    margin-bottom: 14px;
}

.deposito_dados div {
    display: flex;
    flex-direction: column;
    padding: 8px 12px;
    background: #f4f6fb;
    border-radius: 6px;
}

.deposito_dados .deposito_favorecido {
    grid-column: 1 / -1;
}

.deposito_dados span {
    font-size: .75em;
    text-transform: uppercase;
    color: #7f8ca6;
}

.deposito_dados strong {
    color: #0b1220;
}

.comprovante_linha {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.comprovante_status {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #7f8ca6;
    font-size: .92em;
}

.comprovante_status.enviado {
    color: #1e7e34;
    font-weight: bold;
}

.pag_deposito .msg_erro {
    margin: 1rem 0 0;
}

.campo_ajuda_inline {
    display: block;
    margin-top: 5px;
    font-size: .8em;
    color: #7f8ca6;
}

/* =========================================
   PARTICIPAÇÃO, CERTIFICADOS E ANAIS
========================================= */
.participou_box {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 18px;
    background: #e6f4ea;
    border: 1px solid #b7dfc3;
    border-radius: 10px;
}

.participou_box > i {
    font-size: 2em;
    color: #1e7e34;
}

.participou_box div {
    flex: 1;
    color: #1e5631;
}

.btn_avaliacao {
    display: inline-block;
    background: #17a2b8;
    text-decoration: none;
}

.btn_avaliacao:hover {
    background: #11808f;
}

.nao_participou_box {
    padding: 14px 18px;
    background: #fff3cd;
    color: #856404;
    border-radius: 10px;
    line-height: 1.5;
}

.certificados_lista {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.certificado_item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    transition: transform .25s, box-shadow .25s, border-color .25s;
}

.certificado_item:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 22px rgba(11, 18, 32, .1);
    border-color: #bcd3f7;
}

.certificado_icone {
    flex: none;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e6f4ea;
    color: #1e7e34;
    font-size: 1.3em;
}

.certificado_item.trabalho .certificado_icone {
    background: #fff3cd;
    color: #b26a00;
}

.certificado_info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.certificado_info strong {
    color: #0b1220;
}

.certificado_info span {
    font-size: .9em;
    color: #41506b;
    overflow-wrap: anywhere;
}

.certificado_info .certificado_motivo {
    color: #b8860b;
    font-style: italic;
}

.btn_certificado {
    background: #28a745;
}

.btn_certificado:hover {
    background: #1e7e34;
}

.anais_linha {
    display: flex;
    gap: 10px;
}

.anais_linha select {
    flex: 1;
}

.btn_anais {
    background: #6c757d;
    white-space: nowrap;
}

.btn_anais:hover {
    background: #545b62;
}

/* =========================================
   MEUS DADOS COMPLETOS
========================================= */
.btn_dados_toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 20px;
    background: #1a73e8;
    color: #fff;
    border: 0;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background .25s;
}

.btn_dados_toggle:hover {
    background: #1557b0;
}

.btn_dados_toggle i:first-child {
    margin-right: 8px;
}

.btn_dados_toggle .seta {
    transition: transform .3s;
}

.dados_aberto .btn_dados_toggle .seta {
    transform: rotate(180deg);
}

/* escondido até clicar em "Meus Dados Completos" */
.dados_painel {
    display: none;
    padding-top: 22px;
}

.dados_aberto .dados_painel {
    display: block;
    animation: surgir .45s ease both;
}

.dados_topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

.dados_alterado {
    font-size: .85em;
    color: #7f8ca6;
}

.dados_topo .btn_alterar {
    margin-left: auto;
}

#form_dados .bloco_titulo:first-child {
    margin-top: 1rem;
}

.dados_acoes {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 1rem;
}

/* modo consulta: campos parecem texto, sem cara de formulário */
#form_dados.somente_leitura input,
#form_dados.somente_leitura textarea {
    background: #f8fbff;
    border-color: #e2eaf7;
    color: #0b1220;
    cursor: default;
}

#form_dados.somente_leitura input:focus,
#form_dados.somente_leitura textarea:focus {
    box-shadow: none;
    border-color: #e2eaf7;
}

#form_dados.somente_leitura .dados_acoes,
#form_dados.somente_leitura .btn_cep {
    display: none;
}

#form_dados.somente_leitura .cep_campo input {
    border-radius: 4px;
}

#form_dados input.fixo {
    background: #f1f3f6;
    color: #555;
    cursor: not-allowed;
}

/* =========================================
   FORMULÁRIO
========================================= */
.form-group {
    margin-bottom: 1.3rem;
}

.form-group-container {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

label {
    font-weight: bold;
    display: block;
    margin-bottom: 5px;
    color: #555;
}

input[type="text"],
input[type="email"],
input[type="password"],
select,
textarea {
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1em;
    width: 100%;
    font-family: Arial, sans-serif;
    background: #fff;
    transition: border-color .3s, box-shadow .3s;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, .15);
    outline: none;
}

.msg_erro {
    display: none;
    margin-bottom: 1.5rem;
    color: #721c24;
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    background: #f8d7da;
    padding: 1rem;
    text-align: center;
    font-weight: bold;
}

.msg_erro.tremendo {
    animation: tremer .4s;
}

@keyframes tremer {
    0%, 100% { transform: translateX(0); }
    25%      { transform: translateX(-6px); }
    75%      { transform: translateX(6px); }
}

.btn {
    padding: 10px 20px;
    background-color: #e9ecef;
    border: 1px solid #ccc;
    color: #333;
    cursor: pointer;
    border-radius: 4px;
    font-size: 1em;
    transition: .3s;
}

.btn:hover:not(:disabled) {
    background-color: #dcdcdc;
}

.btn:disabled {
    opacity: .7;
    cursor: not-allowed;
}

.btn-action {
    padding: 12px 20px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: bold;
    transition: background .3s, transform .2s;
}

.btn-action:hover:not(:disabled) {
    background: #1557b0;
    transform: translateY(-2px);
}

.btn-action:disabled {
    background: #6c757d;
    cursor: not-allowed;
    opacity: .8;
    transform: none;
}

/* CEP com busca ViaCEP */
.cep_campo {
    display: flex;
    align-items: stretch;
}

.cep_campo input {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.btn_cep {
    flex: none;
    width: 2.8rem;
    border: 1px solid #ccc;
    border-left: 0;
    border-top-right-radius: 4px;
    border-bottom-right-radius: 4px;
    background: #eef4ff;
    color: #1a73e8;
    cursor: pointer;
    transition: background .2s, color .2s;
}

.btn_cep:hover:not(:disabled) {
    background: #1a73e8;
    color: #fff;
}

.cep_msg {
    display: block;
    margin-top: 4px;
    font-size: .78em;
    color: #b8860b;
    min-height: 1em;
}

/* =========================================
   TOAST
========================================= */
.toast {
    position: fixed;
    left: 50%;
    bottom: 26px;
    z-index: 400;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    background: #0b1220;
    color: #fff;
    border-radius: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .3);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: opacity .3s, transform .3s;
}

.toast i {
    color: #4ade80;
}

.toast.aberto {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* =========================================
   FOOTER
========================================= */
.footer {
    text-align: right;
    padding: 1rem 1.5rem;
    color: white;
    font-size: .85em;
    background-color: var(--primary-blue);
    margin-top: 2rem;
}

/* =========================================
   MOBILE
========================================= */
@media (max-width: 768px) {
    .hero { padding: 34px 16px 56px; }
    .hero_titulo { font-size: 1.6em; }

    .container { padding: 20px 16px; border-radius: 0; }

    .form-group-container {
        flex-direction: column;
        gap: 0;
    }

    .form-group-container .form-group {
        width: 100% !important;
    }

    .header_usuario_nome { max-width: 9rem; }

    .certificado_item { flex-wrap: wrap; }
    .certificado_item .btn-action,
    .certificado_item .btn { width: 100%; }

    .historico_item { flex-wrap: wrap; }

    .anais_linha { flex-direction: column; }

    .pag_estado { flex-direction: column; text-align: center; }
    .pag_resumo .btn_pagar { width: 100%; }

    .dados_acoes { flex-direction: column-reverse; }
    .dados_acoes button { width: 100%; }
}

/* documento: só exibição */
.doc_ajuda {
    margin: -.6rem 0 0;
}

/* =========================================
   PRIMEIRO ACESSO (inscritos de edições anteriores)
========================================= */
.aviso_sem_senha {
    margin-bottom: 1.5rem;
    padding: 16px;
    background: #fff3cd;
    border-left: 4px solid #f29900;
    border-radius: 6px;
    color: #6b4500;
    text-align: center;
}

.aviso_sem_senha p {
    margin-bottom: 12px;
    line-height: 1.5;
}

.primeiro_acesso {
    display: flex;
    gap: 14px;
    margin-top: 22px;
    padding: 16px;
    background: #f8fbff;
    border: 1px dashed #cbd8ee;
    border-radius: 8px;
}

.primeiro_acesso > i {
    font-size: 1.6em;
    color: #1a73e8;
    margin-top: 2px;
}

.primeiro_acesso strong {
    color: #0d47a1;
}

.primeiro_acesso p {
    margin: 4px 0 8px;
    font-size: .88em;
    line-height: 1.45;
    color: #41506b;
}

.primeiro_acesso a {
    font-size: .9em;
    font-weight: bold;
    color: #1a73e8;
    text-decoration: none;
}

.primeiro_acesso a:hover {
    text-decoration: underline;
}

/* =========================================
   MURAL DE NOVIDADES
   Cards em 2 colunas, com o texto contido: novidade longa fica
   recolhida atrás do "Ler mais" para os cards não desalinharem.
========================================= */
.mural_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    align-items: start;
}

.mural_card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e2eaf7;
    border-left: 4px solid #1a73e8;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow .25s, transform .25s;
}

/* Layout "linha inteira" — a novidade ocupa as duas colunas da grade,
   para um destaque maior que o card comum. */
.mural_card.mural_linha {
    grid-column: 1 / -1;
}

.mural_card:hover {
    box-shadow: 0 6px 18px rgba(11, 18, 32, .1);
    transform: translateY(-2px);
}

.mural_card_cab {
    padding: 14px 18px 0;
}

.mural_data {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: .72em;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: .6px;
    color: #7f8ca6;
}

.mural_titulo {
    margin: 6px 0 0;
    font-size: 1.12em;
    line-height: 1.3;
    color: #0d47a1;
}

/* Vídeo — mesma "lite embed" do cartão de cotas: só carrega o player
   do YouTube quando o visitante clica na miniatura. */
.mural_video {
    position: relative;
    margin: 12px 18px 0;
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #000;
    cursor: pointer;
}

.mural_video img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: .85;
    transition: opacity .3s, transform .5s;
}

.mural_video:hover img {
    opacity: 1;
    transform: scale(1.04);
}

.mural_video_play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 2.6em;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
    pointer-events: none;
    transition: transform .3s;
}

.mural_video:hover .mural_video_play {
    transform: scale(1.15);
}

.mural_video iframe {
    width: 100%;
    height: 100%;
    border: 0;
}

/* O corpo vem do editor: entra como HTML, com as tags que o
   administrador usou. A altura fica presa até o "Ler mais". */
.mural_texto {
    position: relative;
    max-height: 13rem;
    overflow: hidden;
    padding: 10px 18px 0;
    font-size: .93em;
    line-height: 1.6;
    color: #41506b;
    transition: max-height .3s ease;
}

.mural_card.aberto .mural_texto {
    max-height: none;
}

/* Card com marca manual de corte ("Quebra de página" no editor): o
   resumo que chega já é exatamente o texto até a marca — sem clamp
   por altura e sem véu, porque não há nada "escondido por CSS" para
   avisar; o corte é editorial, não visual. */
.mural_card.mural_marcado .mural_texto {
    max-height: none;
}

.mural_card.mural_marcado .mural_texto::after {
    display: none;
}

/* Véu que avisa que o texto continua */
.mural_texto::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3.2rem;
    background: linear-gradient(rgba(255, 255, 255, 0), #fff);
    pointer-events: none;
}

.mural_card.aberto .mural_texto::after,
.mural_card.curto .mural_texto::after {
    display: none;
}

.mural_texto p {
    margin-bottom: .7rem;
}

.mural_texto ul,
.mural_texto ol {
    margin: 0 0 .7rem 1.2rem;
}

.mural_texto img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: .3rem 0;
}

.mural_texto a {
    color: #1a73e8;
    overflow-wrap: anywhere;
}

.mural_texto table {
    width: 100%;
    border-collapse: collapse;
}

.mural_texto table td,
.mural_texto table th {
    border: 1px solid #e2eaf7;
    padding: 6px 8px;
}

.mural_rodape {
    padding: 4px 18px 14px;
}

.mural_ler {
    padding: 0;
    border: none;
    background: none;
    color: #1a73e8;
    font-size: .88em;
    font-weight: bold;
    cursor: pointer;
}

.mural_ler:hover {
    text-decoration: underline;
}

.mural_ler i {
    margin-left: 4px;
    font-size: .85em;
}

@media (max-width: 768px) {
    .mural_grid {
        grid-template-columns: 1fr;
    }
}
