body {
    margin:0;
    padding: 0;
    font-size: 18px;
}

header {
    display:flex;
    justify-content: space-between;
    align-items: center;
    margin:0;
    padding:0;
    background-color: rgb(28, 28, 72);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
nav ul {
    display: flex;
    margin-right: 1.5rem;
    padding: 0;
    gap: 15px;
    list-style: none;
    font-size: 16px;
    

}

nav ul a:link {
    color: whitesmoke;
    text-decoration: none;

}

nav ul a:hover {
    color:goldenrod
}

nav ul a:visited {
    color:whitesmoke;
}
#nav-logo-img {
    width:90px;
    max-width:20vw;
    margin-left:1.5rem;
    margin-right: 0;
    margin-top: 0;
    margin-bottom: 0;
    padding:0;

}

#prof-name {
    color:goldenrod;
    font-weight: bold;
}

#logo-name-box {
    display: flex;
    align-items: center;
    gap: 10px;
}

#logo-name-box p {
    color:whitesmoke;
}

/* Tratamento do Hero Card */

#hero-card {
    display:flex;
    align-items: center;
    justify-content: flex-start;
    width: 80%;
    height:auto;
    margin:30px auto;
    gap:10px;
    background-color: whitesmoke;
    border-radius: 15px;
    border-left: 12px solid rgb(28, 28, 72);
    box-shadow: 0 5px 8px rgba(0, 0, 0, 0.7);

}

#hero-img {
    width:50%;
    height:auto;
    margin:0;
    padding:0;
    border-radius:8px;

}

.text-with-heading {
    text-align: start;
    margin:0;
    border:0;
    padding: auto;
    background: linear-gradient(to right, whitesmoke, white);
    border-radius:15px;

}
.text-with-heading p, .text-with-heading h1 {
    margin:19px 2px;
    color: rgb(28, 28, 72);

}

.text-with-heading h1 {
    line-height: 1;
}

/* Tratamento dos 3 mini-cards*/

#cards-conteiner {
    display: flex;
    width: 80%;
    height:auto;
    margin:3rem auto;
    gap: 4rem;
    justify-content: space-between;
    align-items: center;
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:start;
    gap:0;
    border-left: 4px solid rgb(28, 28, 72);
    border-bottom: 4px solid rgb(28, 28, 72);
    background-color:whitesmoke;
    width: 33%;
    height:auto;
    border-radius: 15px;
    text-decoration: none;
    text-align: center;
    padding:0;
    color:rgb(28, 28, 72);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.7);
    transition:transform 0.3s ease, box-shadow 0.3s ease,background-color 0.3s ease;
    

}

.card:hover,.card:focus {
    transform: scale(1.05);
    box-shadow: 10px 10px 16px rgba(0, 0, 0, 0.9);
    background-color: rgb(215, 228, 243);
    
}

.img-icons-card {
  width: 100%;
  max-width: 64px; 
  height: auto;
  margin:0;
  padding:0;
}

.card p {
    line-height: 7px;
}

/* Estilizando o footer */
footer {
  padding: 1.5rem 1rem;
  text-align: center;
  background-color: rgb(28, 28, 72);
  color: whitesmoke;
}

footer h2 { margin: 0 0 .8rem; font-size: 1.3rem; }

footer a { color: inherit; text-decoration: none; }
footer a:hover { color: goldenrod; }

.redes-sociais {
  list-style: none;
  margin: 0 0 1.2rem;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.redes-sociais img { width: 45px; height: 45px; display: block; }

address {
  font-style: normal;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(245, 245, 245, .25);
  text-align: left;
}

address p {
  margin: 0;
  display: flex;
  align-items: center;
  gap: .9rem;
}

address img { width: 28px; height: 28px; flex: none; }

.contato-texto {
  display: flex;
  flex-wrap: wrap;
  gap: .2rem 1rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.contato-texto a { white-space: nowrap; }
.contato-texto a[href^="mailto"] { white-space: normal; }

@media (max-width: 700px) {
  address { width: 100%; max-width: 360px; font-size: .95rem; }
  .contato-texto { flex-direction: column; }
}

/* ===== Geral ===== */
h1, h2, #prof-name { font-family: "Merriweather", Georgia, "Times New Roman", serif; }
button, input, textarea { font-family: inherit; }
*, *::before, *::after { box-sizing: border-box; }
body { font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; color: #222; line-height: 1.6; }
img { max-width: 100%; }
nav { flex: none; }
nav ul a { white-space: nowrap; }
nav ul a[aria-current="page"] { color: goldenrod; text-decoration: underline; text-underline-offset: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ===== Páginas internas ===== */
.conteudo { width: 90%; max-width: 800px; margin: 2rem auto; color: rgb(28, 28, 72); }
.conteudo h1 { line-height: 1.2; }
.meta, .status { color: #555; font-size: .9rem; }
.obrig { color: #b00020; }

/* Formulários */
form label { display: block; margin: 1rem 0 .3rem; font-weight: bold; }
form input, form textarea {
    width: 100%; padding: .7rem; font: inherit;
    border: 2px solid #b8c2d6; border-radius: 8px; background: #fff;
}
form input:focus, form textarea:focus { outline: none; border-color: rgb(28, 28, 72); box-shadow: 0 0 0 3px rgba(218, 165, 32, .5); }
.btn {
    padding: .7rem 1.4rem; font: inherit; font-weight: bold; cursor: pointer;
    color: whitesmoke; background: rgb(28, 28, 72); border: 0; border-radius: 8px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .4);
}
.btn:hover:not(:disabled) { background: #2f2f8f; }
.btn:disabled { opacity: .4; cursor: not-allowed; }
form .btn { margin-top: 1.2rem; }
.erro { color: #b00020; font-weight: bold; }
.ok { color: #1b6e3a; font-weight: bold; }

/* Projetos */
#busca { margin-bottom: 1rem; }
.projeto, .noticia {
    background: whitesmoke; border-left: 8px solid rgb(28, 28, 72);
    border-radius: 12px; padding: 1rem 1.5rem; margin-bottom: 1.5rem;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
}
.projeto h2, .noticia h2 { margin: .2rem 0; }
.projeto img, .noticia img { display: block; width: 100%; height: auto; border-radius: 8px; margin: 1rem 0; }
.selo { display: inline-block; padding: .1rem .7rem; border-radius: 999px; background: goldenrod; color: rgb(28, 28, 72); font-weight: bold; }
.navegacao { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.bio::after { content: ""; display: block; clear: both; }
.foto-bio { float: left; width: 300px; aspect-ratio: 1 / 1; object-fit: cover; margin: .3rem 2rem 1rem 0; border-radius: 12px; box-shadow: 0 4px 8px rgba(0, 0, 0, .3); }
.bio-texto { text-align: justify; hyphens: auto; }
.bio-texto > :first-child { margin-top: 0; }

/* ===== Mobile ===== */
@media (max-width: 700px) {
    body { font-size: 16px; }
    header { flex-direction: column; padding: .5rem 0; }
    #logo-name-box { margin: 0 .5rem; }
    #logo-name-box p { margin: .5rem 0; font-size: .9rem; }
    #nav-logo-img { margin-left: .5rem; width: 60px; }
    nav ul { flex-wrap: wrap; justify-content: center; margin: 0 .5rem .5rem; gap: .4rem 1rem; }
    #hero-card { flex-direction: column; width: 92%; border-left-width: 6px; }
    #hero-img { width: 100%; }
    .text-with-heading { padding: 0 .8rem; }
    #cards-conteiner { flex-direction: column; width: 92%; gap: 1.2rem; }
    .card { width: 100%; padding: .5rem 0; }
    .card p { line-height: 1.2; }
    .foto-bio { float: none; max-width: 320px; margin: 0 auto 1rem; display: block; }
    .bio-texto { text-align: left; }
    .navegacao .btn { padding: .6rem .9rem; }
}

/* ===== LGPD ===== */
.aviso-lgpd { font-size: .9rem; background: #eef2fa; border-left: 4px solid rgb(28, 28, 72); padding: .6rem .9rem; border-radius: 6px; }
form label.consentimento { display: flex; align-items: flex-start; gap: .6rem; font-weight: normal; cursor: pointer; }
form .consentimento input { width: 1.3rem; height: 1.3rem; flex: none; margin-top: .2rem; }
.politica h2 { font-size: 1.15rem; margin: 1.5rem 0 .3rem; }
.politica p { margin: .3rem 0; }
footer .link-privacidade { margin: 1rem 0 0; font-size: .85rem; }
footer .link-privacidade a { text-decoration: underline; }

/* Campo-armadilha contra robôs (invisível para pessoas) */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== Ajustes: hero no mobile e formulário de demanda ===== */
@media (max-width: 700px) {
    .text-with-heading { text-align: center; padding: 0 1rem 1rem; }
    .text-with-heading h1 { line-height: 1.35; }
}

#form-demanda {
    background: #e4eaf6;
    border: 1px solid #c3cde3;
    border-radius: 12px;
    padding: .5rem 1.5rem 1.5rem;
    box-shadow: 0 3px 8px rgba(0, 0, 0, .15);
}
#form-demanda input:not([type="checkbox"]), #form-demanda textarea { border-color: #9fb0d3; }
@media (max-width: 700px) {
    #form-demanda { padding: .25rem 1rem 1.25rem; }
}

[hidden] { display: none !important; }

/* Filtro de situação (projetos) */
#busca { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; }
#busca input[type="search"] { flex: 1 1 260px; width: auto; padding: .7rem; font: inherit; border: 2px solid #b8c2d6; border-radius: 8px; }
#busca label[for="filtro-situacao"] { font-weight: bold; }
#busca select { padding: .7rem; font: inherit; border: 2px solid #b8c2d6; border-radius: 8px; background: #fff; color: inherit; }
@media (max-width: 700px) {
    #busca input[type="search"] { flex-basis: 100%; }
    #busca select { flex: 1; }
}

/* ===== Ajustes desktop: imagens menores e hero maior ===== */
.projeto img, .noticia img {
    width: auto;
    max-width: 100%;
    max-height: 340px;
    margin: 1rem auto;
    object-fit: contain;
}

@media (min-width: 701px) {
    #hero-card { width: 90%; max-width: 1200px; margin: 40px auto; }
    .text-with-heading { padding: 1.5rem 2rem; }
    .text-with-heading h1 { font-size: 2.3rem; line-height: 1.15; }
    .text-with-heading p { font-size: 1.15rem; line-height: 1.6; }
}

@media (max-width: 700px) {
    .projeto img, .noticia img { max-height: 260px; }
}

/* ===== Imagem à esquerda com texto contornando (estilo matéria) ===== */
.projeto, .noticia { display: flow-root; }

@media (min-width: 701px) {
    .projeto img, .noticia img {
        float: left;
        width: 340px;
        max-width: 45%;
        height: auto;
        max-height: none;
        margin: .3rem 1.5rem .8rem 0;
        object-fit: cover;
    }
}

@media (max-width: 700px) {
    .projeto img, .noticia img {
        float: none;
        width: 100%;
        max-height: none;
        margin: 1rem 0;
    }
}

/* ===== Página inicial no desktop: hero e cards alinhados, centralizados e maiores ===== */
@media (min-width: 701px) {
    #hero-card, #cards-conteiner { width: 90%; max-width: 1000px; margin-left: auto; margin-right: auto; }
    #hero-card { margin-top: 40px; margin-bottom: 2rem; }
    .text-with-heading h1 { font-size: 2.1rem; }
    .text-with-heading p { font-size: 1.1rem; }

    #cards-conteiner { gap: 1.5rem; margin-top: 0; margin-bottom: 3rem; align-items: stretch; }
    .card { flex: 1; width: auto; padding: 1.5rem 1rem 1rem; justify-content: center; }
    .img-icons-card { max-width: 88px; }
    .card p { margin: 1rem 0 .5rem; font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
}

/* ===== Foto do hero preenchendo toda a altura do cartão (desktop) ===== */
@media (min-width: 701px) {
    #hero-card { align-items: stretch; overflow: hidden; gap: 0; }
    #hero-img {
        flex: 0 0 42%;
        width: 42%;
        height: auto;
        min-height: 300px;
        object-fit: cover;
        object-position: center top;
        border-radius: 0;
    }
    .text-with-heading { flex: 1; display: flex; flex-direction: column; justify-content: center; border-radius: 0; }
}

/* ===== Projetos e notícias: imagem ao lado do texto, sem sobras de linha ===== */
.corpo p { margin: 0; line-height: 1.7; }

@media (min-width: 701px) {
    .corpo.com-img {
        display: grid;
        grid-template-columns: 340px 1fr;
        gap: 1.5rem;
        align-items: stretch;
        margin-top: 1rem;
    }
    .corpo.com-img img {
        float: none;
        width: 100%;
        max-width: none;
        height: 100%;
        min-height: 240px;
        max-height: none;
        margin: 0;
        object-fit: cover;
    }
    .corpo.com-img p { align-self: center; }
}

/* Imagem inteira, sem cortes: mantém a proporção original */
@media (min-width: 701px) {
    .corpo.com-img { align-items: center; }
    .corpo.com-img img {
        height: auto;
        min-height: 0;
        object-fit: contain;
        align-self: center;
    }
    .corpo.com-img p { align-self: center; }
}

/* ===== Menu maior no desktop ===== */
@media (min-width: 1001px) {
    nav ul { font-size: 1.15rem; gap: 1.6rem; margin-right: 2rem; }
}
@media (min-width: 701px) and (max-width: 1000px) {
    header { flex-wrap: wrap; justify-content: center; }
    nav ul { font-size: 1.05rem; gap: 1.2rem; margin: 0 1rem .6rem; }
}

/* ===== Hover do menu: barra dourada que desliza sob o link ===== */
nav ul a {
    position: relative;
    padding: .35rem 0;
    transition: color .2s ease;
}
nav ul a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #9ec5ff;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .25s ease;
}
nav ul a:hover, nav ul a:focus-visible { color: #9ec5ff; }
nav ul a[aria-current="page"], nav ul a[aria-current="page"]:hover { color: goldenrod; }
nav ul a[aria-current="page"]::after { background: goldenrod; }
nav ul a:hover::after, nav ul a:focus-visible::after, nav ul a[aria-current="page"]::after { transform: scaleX(1); }
nav ul a[aria-current="page"] { text-decoration: none; }

@media (prefers-reduced-motion: reduce) {
    nav ul a, nav ul a::after { transition: none; }
}

.navegacao-topo { margin-bottom: 1rem; }

/* ===== Modal de confirmação ===== */
.modal {
    width: min(92vw, 440px);
    padding: 2rem 1.5rem 1.5rem;
    border: 0;
    border-top: 6px solid goldenrod;
    border-radius: 14px;
    text-align: center;
    color: rgb(28, 28, 72);
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, .45);
}
.modal[open] { animation: modal-entrada .25s ease; }
.modal::backdrop { background: rgba(20, 20, 50, .6); }
.modal h2 { margin: .8rem 0 .5rem; }
.modal p { margin: 0 0 1.4rem; line-height: 1.6; }
.modal-icone {
    width: 64px; height: 64px; margin: 0 auto;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
    font-size: 2.2rem; font-weight: bold;
    color: #fff; background: #1f9d55;
}
@keyframes modal-entrada {
    from { opacity: 0; transform: translateY(12px) scale(.97); }
    to { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .modal[open] { animation: none; } }

/* Erro discreto de campo (e-mail) */
.erro-campo { display: block; margin-top: .3rem; font-size: .85rem; color: #b00020; }
#form-demanda input[aria-invalid="true"] { border-color: #b00020; }

/* ===== Notícias: estilo jornal (imagem à esquerda, texto à direita e continuando por baixo) ===== */
@media (min-width: 701px) {
    /* Desliga o grid: com grid o texto nunca passa por baixo da imagem */
    .noticia .corpo,
    .noticia .corpo.com-img { display: block; margin-top: 1rem; }
    .noticia .corpo::after { content: ""; display: block; clear: both; }

    .noticia img,
    .noticia .corpo.com-img img {
        float: left;
        width: 504px;          /* 20% maior que antes (420px) */
        max-width: 60%;        /* era 50%: na prática é este limite que define o tamanho */
        height: auto;
        min-height: 0;
        max-height: none;
        margin: .3rem 1.5rem 1rem 0;
        object-fit: contain;
        border-radius: 8px;
    }
    .noticia .corpo p,
    .noticia .corpo.com-img p { margin: 0 0 1rem; text-align: justify; hyphens: auto; }
}

/* ===== Notícias e Projetos: moldura discreta nas imagens ===== */
.noticia img,
.projeto img {
    padding: 6px;                                /* espaço entre a foto e a moldura */
    background: #fff;                            /* fundo branco, estilo foto impressa */
    border: 1px solid #c9d1e3;                   /* linha fina azul-acinzentada */
    box-shadow: 0 2px 6px rgba(28, 28, 72, .15); /* sombra leve */
}

/* ===== Institucional: subtítulos da biografia ===== */
.bio-texto h2 {
    font-size: 1.3rem;
    line-height: 1.3;
    text-align: left;                     /* título não fica justificado */
    margin: 2rem 0 .6rem;
    padding-left: .7rem;
    border-left: 4px solid goldenrod;     /* detalhe dourado, como no menu */
    display: flow-root;                   /* faz o título desviar da foto, sem esconder a barra dourada */
    color: rgb(28, 28, 72);
}
.bio-texto > h2:first-child { margin-top: 0; }
.bio-texto p { margin: 0 0 1rem; }
@media (max-width: 700px) {
    .bio-texto h2 { font-size: 1.15rem; margin-top: 1.6rem; }
}

/* ===== Notícias no celular: imagem de ponta a ponta no cartão ===== */
@media (max-width: 700px) {
    .noticia img,
    .noticia .corpo.com-img img {
        display: block;
        float: none;
        width: calc(100% + 3rem);   /* largura do cartão + o padding lateral (1.5rem de cada lado) */
        max-width: none;
        height: auto;
        max-height: none;
        margin: 1rem -1.5rem;       /* margem negativa anula o padding do cartão */
        padding: 0;
        border: 0;
        border-radius: 0;
        box-shadow: none;
    }
}


/* ===== Redes sociais: ícones alinhados ===== */
.redes-sociais {
    align-items: center;              /* centraliza na vertical */
}
.redes-sociais li,
.redes-sociais a {
    display: flex;                    /* tira o espaço "fantasma" de linha de texto */
    align-items: center;
    justify-content: center;
}
.redes-sociais a {
    width: 48px;                      /* caixa igual para os dois ícones */
    height: 48px;
}
.redes-sociais img {
    width: 44px;
    height: 44px;
    object-fit: contain;              /* o desenho cabe na caixa sem distorcer */
}
/* ===== Projetos: reserva de espaço para evitar layout shift (CLS) ===== */
/* O cartão só aparece depois do JSON carregar; esta área mantém o rodapé abaixo da dobra. */
.area-projeto, .area-noticias { min-height: 70vh; min-height: 70svh; }
/* O logo tem width/height no HTML (reserva espaço); height:auto mantém a proporção quando a largura muda no celular */
#nav-logo-img { height: auto; }

/* ===== Projetos: grade de cards ===== */
.conteudo.conteudo-grade { max-width: 1100px; }
.grade-projetos {
    list-style: none; margin: 1rem 0 0; padding: 0;
    display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.2rem;
}
.card-projeto {
    position: relative; display: flex; flex-direction: column; height: 100%;
    background: whitesmoke; border-top: 6px solid rgb(28, 28, 72); border-radius: 12px; overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, .3);
    transition: transform .2s ease, box-shadow .2s ease;
}
.card-projeto:hover { transform: translateY(-3px); box-shadow: 0 8px 16px rgba(0, 0, 0, .35); }
/* proporção fixa: o espaço do card não muda quando a imagem carrega (sem layout shift) */
.card-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center 40%; background: #dde3f0; }
.card-corpo { display: flex; flex-direction: column; gap: .4rem; padding: .9rem 1rem 1rem; flex: 1; }
.card-corpo .meta { margin: 0; }
.card-corpo .selo { align-self: flex-start; font-size: .78rem; }
.card-projeto h3 { margin: 0; font-size: 1.05rem; line-height: 1.3; }
.card-abrir {
    background: none; border: 0; padding: 0; font: inherit; font-weight: 700;
    color: rgb(28, 28, 72); text-align: left; cursor: pointer;
}
/* o botão do título cobre o card inteiro: o card todo é clicável e acessível por teclado */
.card-abrir::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }
.card-abrir:focus-visible { outline: none; }
.card-abrir:focus-visible::after { outline: 3px solid goldenrod; outline-offset: -3px; }
.card-ementa {
    margin: 0; font-size: .92rem; line-height: 1.5; color: #333;
    display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.card-ler { margin-top: auto; padding-top: .4rem; font-weight: 700; font-size: .9rem; color: rgb(28, 28, 72); }
.card-projeto:hover .card-ler { text-decoration: underline; }
.selo-sancionado { background: #1b6e3a; color: #fff; }
.selo-aprovado { background: rgb(28, 28, 72); color: #fff; }
.mais-projetos { text-align: center; margin: 1.5rem 0 .5rem; }
.mais-projetos .meta { margin: 0 0 .8rem; }
@media (prefers-reduced-motion: reduce) { .card-projeto { transition: none; } .card-projeto:hover { transform: none; } }

/* ===== Projetos: janela com o texto completo ===== */
body:has(dialog[open]) { overflow: hidden; }
.modal.modal-projeto { width: min(94vw, 760px); max-height: 90vh; padding: 0; text-align: left; overflow: auto; }
.modal-conteudo { padding: 1.4rem 1.5rem 1.5rem; }
.modal-projeto h2 { margin: .2rem 0 .4rem; font-size: 1.35rem; line-height: 1.25; }
.modal-projeto p { margin: 0 0 .8rem; }
.modal-projeto .resumo { line-height: 1.7; }
.modal-x {
    position: sticky; top: .5rem; float: right; margin: .5rem .5rem 0 0; z-index: 1;
    width: 40px; height: 40px; border: 0; border-radius: 50%;
    background: rgb(28, 28, 72); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.modal-x:hover { background: #2f2f8f; }
.modal-x:focus-visible { outline: 3px solid goldenrod; outline-offset: 2px; }
.modal-corpo { display: grid; gap: 1rem; margin-top: 1rem; }
.modal-corpo img { display: block; width: 100%; max-height: 42vh; object-fit: contain; background: #eef1f8; border-radius: 8px; }
@media (min-width: 701px) {
    .modal-corpo.com-img { grid-template-columns: 260px 1fr; align-items: start; }
    .modal-corpo img { max-height: none; aspect-ratio: 3 / 4; object-fit: cover; }
}

/* ===== Rodapé: compartilhar o site ===== */
.compartilhar { margin: 0 auto 1.4rem; max-width: 420px; }
.compartilhar p { margin: 0 0 .7rem; font-size: .95rem; }
.btn-compartilhar {
    display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.3rem;
    border: 0; border-radius: 999px; background: goldenrod; color: rgb(28, 28, 72);
    font: inherit; font-weight: 700; cursor: pointer;
}
.btn-compartilhar:hover { filter: brightness(1.1); }
.btn-compartilhar:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
/* min-height reserva a linha do aviso ("Link copiado!") para o rodapé não pular */
.compartilhar .compartilhar-aviso { min-height: 1.4em; margin: .6rem 0 0; font-size: .9rem; color: #bcd4ff; }

/* ===== Notícias: janela de leitura (imagem inteira em cima, texto embaixo) ===== */
.modal-noticia .modal-corpo img { height: auto; aspect-ratio: auto; object-fit: contain; max-height: 55vh; }
.modal-noticia .modal-texto p { margin: 0 0 1rem; line-height: 1.75; }

/* ===== Notícias: crédito da fonte (jornal, data, caderno, página) ===== */
.card-fonte { margin: 0; font-size: .78rem; line-height: 1.35; font-style: italic; color: #555; }
.modal-figura { margin: 0; }
.modal-figura figcaption { margin-top: .5rem; font-size: .85rem; line-height: 1.4; font-style: italic; color: #555; }
.modal-figura figcaption a { color: rgb(28, 28, 72); text-decoration: underline; }
