@charset "UTF-8";

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* COLORS - PALETAS */
:root {
    --backgroundColor: white;
    --black: #000;
    --gray: #6c6c6d;
    --white: white;
    --azulClaro: #247EA6;
    --roxo: #7c0476;
    --green: #0f8000;
    --colorNav: #1A2A3B;
    --blackWhite: black;
    --cardBorder: #d9d9d9;
    --imgFilterReverse: none;
    --imgFilterDark: none;

    --gold: #cca043;
    --blue: #1e3a60;
    --ink: #17263b;
    --muted: #596778;
    --line: #e1e6ec
}

.paleta1 {
    --backgroundColor: white;
    --black: #000;
    --gray: #6c6c6d;
    --white: white;
    --azulClaro: #247EA6;
    --roxo: #7c0476;
    --green: #388d25;
    --colorNav: #1A2A3B;
    --blackWhite: black;
    --cardBorder: #d9d9d9;
    --imgFilterReverse: none;
    --imgFilterDark: none;

    --gold: #cca043;
    --blue: #1e3a60;
    --ink: #17263b;
    --muted: #596778;
    --line: #e1e6ec
}

.paleta2 {
    --backgroundColor: #0f172a;
    --black: #000;
    --gray: #9ca3af;
    --white: white;
    --azulClaro: #0d4a64;
    --roxo: #8b0285;
    --green: #388d25;
    --colorNav: #132333;
    --blackWhite: #f3f4f6;
    --cardBorder: #1e293b;
    --imgFilterReverse: invert(1);
    --imgFilterDark: brightness(50%);

    --gold: #cca043;
    --blue: #1e3a60;
    --ink: #17263b;
    --muted: #596778;
    --line: #e1e6ec
}

img {
    filter: var(--imgFilterDark);
}

body {
    position: relative;
    background-color: var(--backgroundColor);
    color: var(--ink);
    height: 100%;
    transition: background-color 0.3s ease, color 0.3s ease;
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65
}

html {
    scroll-behavior: smooth
}

/* POS HEADER IMAGE */
.secPosHeader {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 35vw;
    min-height: 200px;
    max-height: 500px;
    background-image: url('/arquivos/imagens/background/astronomy.webp');
    background-size: cover;
    background-color: var(--white);
    background-repeat: no-repeat;
    background-position: center;
    filter: var(--imgFilterDark);
}


a {
    color: inherit;
    text-decoration: none
}

a:hover {
    color: #8a641a
}

a:focus-visible,button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 5px
}

img {
    max-width: 100%;
    height: auto;
    display: block
}

.wrap {
    width: min(1120px,calc(100% - 64px));
    margin: auto
}

header {
    position: relative;
    border-bottom: 1px solid var(--line);
    background: #fff
}

.header {
    height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px
}

.brand {
    display: block;
    flex-shrink: 0
}

.brand img {
    width: 194px;
    height: auto
}

nav {
    display: flex;
    flex: 1 1 auto;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    font-size: 14px;
    font-weight: 600
}

#navLinks {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-width: 0;
    gap: 29px;
    white-space: nowrap
}

#navLinks > a {
    flex: 0 0 auto
}

#navLinks > a[hidden] {
    display: none
}

nav a:hover {
    text-decoration: underline;
    text-underline-offset: 7px
}

.menu {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    padding: 0;
    background: none;
    border: 0;
    border-radius: 50%;
    font-size: 26px;
    color: var(--blue);
    cursor: pointer
}

.menu:hover {
    background: #f1f3f5
}

#menu-and-search {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.skip {
    position: absolute;
    left: 20px;
    top: -100px;
    background: #fff;
    padding: 10px;
    z-index: 9
}

.skip:focus {
    top: 10px
}

.hero {
    background: linear-gradient(90deg,rgba(8,18,32,.96),rgba(8,18,32,.7) 45%,rgba(8,18,32,.06)),url('/arquivos/imagens/background/astronomy.webp') center 52%/cover;
    color: #fff
}

.hero-inner {
    padding-top: 78px;
    padding-bottom: 36px
}

.eyebrow {
    font-size: 12px;
    letter-spacing: 2.2px;
    font-weight: 700;
    color: #9b761e
}

.hero .eyebrow {
    color: var(--gold)
}

h1,h2,h3,p {
    margin-top: 0
}

h1 {
    font-size: clamp(36px,5.6vw,72px);
    line-height: 1.08;
    letter-spacing: -2px;
    margin: 20px 0 25px
}

h2 {
    font-size: 32px;
    letter-spacing: -1px;
    line-height: 1.2
}

.hero p {
    font-size: 19px;
    line-height: 1.6;
    color: #e0e5ed;
    margin-bottom: 30px
}

.button {
    display: inline-block;
    padding: 12px 26px;
    border-radius: 3px;
    font-size: 14px;
    font-weight: bold;
    background: var(--gold);
    color: #17263b
}

.button:hover {
    background: #dfb75e;
    color: #17263b
}

.hero-note {
    margin-top: 65px;
    padding-top: 21px;
    border-top: 1px solid #ffffff36;
    font-size: 12px;
    letter-spacing: 1.5px;
    color: var(--gold)
}

.hero-note span {
    letter-spacing: 0;
    color: #fff;
    margin-left: 22px;
    font-size: 14px
}

.latest {
    padding-top: 62px;
    padding-bottom: 66px
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 28px
}

.section-head h2 {
    margin: 0
}

.section-head span {
    color: var(--muted);
    font-size: 14px
}

.grid {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 38px
}

.photo {
    display: block;
    overflow: hidden;
    border-radius: 9px
}

.photo img {
    width: 100%;
    aspect-ratio: 1.767;
    object-fit: cover;
    transition: transform .35s
}

.photo:hover img {
    transform: scale(1.025)
}

.meta {
    font-size: 12px;
    color: #846015;
    font-weight: bold;
    letter-spacing: 1.2px;
    margin: 19px 0 9px
}

.meta span {
    color: var(--muted);
    font-weight: normal;
    letter-spacing: 0;
    margin-left: 10px
}

.card h3 {
    font-size: 25px;
    line-height: 1.25;
    letter-spacing: -.6px;
    margin-bottom: 12px
}

.card p {
    color: var(--muted);
    margin-bottom: 0
}

.focus {
    background: var(--blue);
    color: #fff;
    text-align: center
}

.focus-inner {
    padding: 54px 0
}

.focus .eyebrow {
    color: #e2bd67
}

.focus h2 {
    font-size: 42px;
    margin: 15px 0
}

.focus p {
    color: #dbe4ef
}

footer {
    background: #112640;
    color: #e6edf5;
    padding: 50px 0 0
}

.foot {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 55px
}

footer .brand {
    background: white;
    width: 200px;
    padding: 8px;
    border-radius: 3px
}

footer .brand img {
    width: 184px
}

footer h2 {
    font-size: 14px;
    letter-spacing: .5px;
    margin: 0 0 18px;
    color: var(--gold)
}

footer p {
    font-size: 14px;
    color: #bfcada;
    margin: 18px 0
}

footer a {
    display: block;
    font-size: 14px;
    margin-bottom: 9px
}

footer a:hover {
    color: var(--gold)
}

.copyright {
    border-top: 1px solid #ffffff1c;
    padding: 20px 0;
    margin-top: 30px;
    font-size: 12px;
    color: #bfcada
}

.article {
    max-width: 820px;
    padding: 50px 0 75px
}

.article h1 {
    font-size: clamp(36px,5vw,58px);
    margin-top: 18px
}

.breadcrumb {
    font-size: 14px;
    font-weight: normal;
    margin-bottom: 30px;
    gap: 10px;
    color: var(--muted)
}

.lead {
    font-size: 21px;
    color: var(--muted);
    line-height: 1.6
}

.byline {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 30px
}

.article section {
    scroll-margin-top: 30px
}

.article section h2,.article>h2 {
    margin: 35px 0 17px;
    font-size: 29px
}

.article section p {
    font-size: 18px;
    line-height: 1.85
}

nav.toc {
    display: flex;
    flex-direction: column;
    width: 100%;
    align-items: baseline;
    justify-content: baseline;
    border-left: 3px solid var(--gold);
    padding: 16px 24px;
    background: #f3f6fa;
    margin: 35px 0;
}

.toc h2 {
    font-size: 18px;
    margin-bottom: 10px;
    letter-spacing: 0;
}

.toc a, .related a {
    display: block;
    color: var(--blue);
    margin: 7px 0;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.related {
    border-top: 1px solid var(--line);
    margin-top: 45px;
    padding-top: 30px;
}

.related h2 {
    font-size: 24px;
}

.title-materia {
    font:
        normal
        small-caps
        bold
        clamp(3rem, 9vw, 4rem)
        Cambria, Cochin, Georgia, Times, 'Times New Roman', serif;
    color: var(--white);
    text-shadow: 0 2px 8px #000000a6;
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.scientists_phrase {
    margin: 0px auto 50px auto;
    width: 90vw;
    max-width: 900px;
    padding: 20px 15px;
    color: var(--ink);
    background-color: var(--backgroundColor);
} .scientists_phrase p {
    font-size: 1em;
    font-style: italic;
} .scientists_phrase p:first-child {
    margin-bottom: 20px;
}

.materia .item, .materia .item h2 {
    background-color: var(--ink);
    border: 5px solid var(--ink);
}


.formula {
    font-weight: bold;
    text-wrap: nowrap;
} 

.imagem-conteudo {
    margin: 100px auto;
    display: flex;
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
} .imagem-conteudo img {
    max-height: 300px;
    max-width: 90vw;
    filter: var(--imgFilterReverse);
}

.article-toc {
    display: flex;
    flex-direction: column;
    border: 2px solid var(--gray);
    background-color: var(--backgroundColor);
    border-radius: 19px;
} .article-toc li {
    padding: 5px 0px;
    list-style-type: none;
} .article-toc a {
    color: var(--ink);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 10px;
} .article-toc a:hover {
    background-color: var(--ink);
    color: var(--backgroundColor);
    text-decoration: none;
    font-weight: bold;
} .article-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
    border-radius: 8px;
    width: 100%;
    object-fit: cover
}

.science-note {
    padding: 1rem 1.2rem;
    margin: 1.5rem 0;
    border-left: 4px solid #777;
    background: var(--backgroundColor);
    color: var(--ink);
}

.questao {
    border: 2px solid var(--ink);
    color: var(--gray);
    background-color: var(--backgroundColor);
    padding: 50px 0px 50px 30px;
} .questao_child {
    min-height: 330px;
    margin: 50px auto;
} .questao h2 {
    color: var(--ink);
} .resposta {
    margin: 10px;;
} .alternativa ul {
    margin: 30px;
    list-style-type: upper-alpha;
} .resposta {
    display: none;
} .mostrar_resposta {
    background-color: var(--ink);
    width: fit-content;
    padding: 5px 10px;
    border-radius: 10px;
    color: var(--backgroundColor);
    font-weight: bolder;
    margin-top: 20px;
    cursor: pointer;
} section.questao {
    counter-reset: numero-questao;
} .questao_child p.pergunta::before {
    color: var(--ink);
    counter-increment: numero-questao;
    content: counter(numero-questao) ". ";
}

.cta-ensino-medio {
    text-align: center;
    margin: 100px auto;
} .cta-ensino-medio > h2 {
    font-size: 2em;
} .cta-ensino-medio_box {
    border-radius: 20px;
    box-shadow: 1px 12px 20px 4px #00000059;
}

.assunto-container {
    width: 100%;
    max-width: 1300px;
    margin: 20px auto;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.assunto-container span {
    font-weight: bold;
}

.topic-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.topic-sections {
    text-align: left;
    padding: 20px 25px;
}

.topic-sections h1, .topic-sections h2, .topic-sections h3 {
    color: var(--gray);
    margin: 50px auto;
}

.topic-sections h1 {
    font-size: 3em;
    text-align: center;
}

.topic-sections h2 {
    font-size: 2em;
    text-align: center;
}

.topic-sections h3 {
    font-size: 1.5em;
}

.topic-sections p {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 12px;
    font-size: 1.5em;
} .topic-sections li a {
    text-decoration: none;
    color: var(--ink);
    background-color: var(--backgroundColor);
} .topic-sections li a:hover {
    color: var(--backgroundColor);
    background-color: var(--ink);
} 

figure img {
    width: 100%;
}

/* ====== PÁGINA DE BUSCA ====== */


.search-page {
    width: 100%;
    min-height: 70vh;
}

.search-container {
    width: min(900px, 90%);
    margin: 60px auto;
}

.search-container h1 {
    margin-bottom: 25px;
}

.search-page-form {
    display: flex;
    gap: 10px;
    margin-bottom: 35px;
}

.search-page-form input {
    flex: 1;
    padding: 14px 18px;
    border: 1px solid #ccc;
    border-radius: 8px;
    font: inherit;
}

.search-page-form button {
    padding: 14px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
    font-weight: 600;
}

.search-count {
    margin-bottom: 25px;
}

.search-results {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.search-result {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
}

.search-result-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 160px;
    overflow: hidden;
}

.search-result-image img {
    width: 100%;
    height: 100%;
    min-height: 160px;
    object-fit: cover;
    transition: transform .3s ease;
}

.search-result-image:hover img {
    transform: scale(1.04);
}

.search-result-content {
    align-self: center;
    padding: 22px 22px 22px 0;
}

.search-result h2 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}

.search-result p {
    margin-bottom: 12px;
    line-height: 1.6;
}

.search-result-link {
    font-weight: 600;
}

.search-empty {
    margin-top: 40px;
    text-align: center;
}

.legenda {
    font-size: 0.85rem;
    color: var(--gray);
    margin-top: 8px;
}


/* ====== PESQUISA DO HEADER ====== */

#searchButton {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
}

#searchButton:hover {
    background: #f1f3f5;
    color: #8a641a;
}

#headerSearch {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 30;
    width: 100%;
    padding: 22px 32px;
    background: #fff;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 10px 20px #00000012;
}

#headerSearch[hidden] {
    display: none;
}

#headerSearch form {
    width: min(800px, 100%);
    margin: auto;
}

.search-label {
    display: block;
    margin-bottom: 8px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
}

.header-search-field {
    display: flex;
    gap: 10px;
}

.header-search-field input {
    flex: 1;
    min-width: 0;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font: inherit;
}

.header-search-field input:focus {
    border-color: var(--gold);
    outline: 2px solid #cca04330;
}

.header-search-field button {
    height: 46px;
    padding: 0 24px;
    border: 0;
    border-radius: 6px;
    background: var(--blue);
    color: #fff;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.header-search-field button:hover {
    background: #294d79;
}
/* Reservar espaco para imagens antes do carregamento */
.photo { aspect-ratio: 1.767; }
.photo img { display: block; height: 100%; }
/* Evitar deslocamento por alteracoes de layout durante animacoes */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
