/* Identidade compartilhada e página inicial. Sem fontes ou recursos externos. */
:root {
  --ink: #202535;
  --muted: #686c7d;
  --bg: #f7f8fa;
  --surface: #fff;
  --line: #e4e6ee;
  --brand: #454bd2;
  --brand-soft: #eeeefb;
  --accent: #dfef94;
  --radius: 14px;
  --shadow: none;
}
body { -webkit-font-smoothing: antialiased; }
::selection { background: #dfe6a9; color: #202535; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
.wrap { max-width: 1192px; padding-left: 32px; padding-right: 32px; }
.main { padding-top: 36px; padding-bottom: 64px; }
.day, .day h3, #resultado, #conteudo { scroll-margin-top: 110px; }
.icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.skip-link { position: fixed; left: 16px; top: -70px; z-index: 20; padding: 12px 20px; background: var(--brand); color: #fff; border-radius: 8px; }
.skip-link:focus { top: 8px; }
button, .button { border-radius: 9px; font-size: 0.9rem; padding: 12px 20px; transition: background .15s, transform .15s; }
.button:hover { text-decoration: none; }
button:not(:disabled):hover, .button:hover { filter: brightness(.97); }
.search input, .filters input, .filters select, .hero-search input, .busca-ies input, .prova-email-linha input { border-radius: 9px; }
.site-header { background: #fff; }
.header-row { flex-wrap: nowrap; min-height: 84px; gap: 28px; }
.logo { font-size: 20px; font-weight: 650; letter-spacing: -.7px; white-space: nowrap; gap: 10px; }
.logo svg { width: 32px; height: 32px; }
.logo b { color: var(--ink); font-weight: 800; }
.logo-period { color: var(--brand); }
.header-row .search { position: relative; margin-left: auto; max-width: 220px; min-width: 150px; }
.header-row .search > .icon { position: absolute; top: 12px; left: 12px; width: 17px; height: 17px; color: #848899; }
.header-row .search input { padding: 10px 12px 10px 36px; font-size: 13px; border-color: transparent; background: #f5f6f9; }
.header-nav { display: flex; align-items: center; gap: 24px; white-space: nowrap; }
.header-nav a { display: inline-flex; gap: 7px; align-items: center; font-size: 13px; font-weight: 600; color: #606475; }
.header-nav a + a { margin-left: 0; }
.header-nav a:hover { color: var(--brand); text-decoration: none; }
.header-nav a.is-active:not(.nav-daily) { color: var(--brand); text-decoration: underline; text-underline-offset: 8px; text-decoration-thickness: 2px; }
.header-nav .nav-daily { color: var(--brand); }
.nav-daily .icon { width: 18px; height: 18px; }
.nav-daily.is-active { background: var(--brand-soft); padding: 8px 10px; border-radius: 7px; }
.footer-layout { display: grid; grid-template-columns: 1fr 1.5fr auto; gap: 50px; align-items: center; padding-top: 32px; padding-bottom: 32px; }
.footer-brand { display: grid; gap: 7px; }
.footer-brand strong { font-size: 21px; letter-spacing: -.6px; color: var(--ink); }
.footer-brand strong span { color: var(--brand); }
.footer-brand > span { font-size: 11px; }
.site-footer p { padding: 0; font-size: 11px; line-height: 1.7; }
.site-footer a { color: var(--muted); font-size: 12px; }

/* A prova do dia tem prioridade visual; o acervo vem logo depois. */
.home-welcome { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 1px 0 26px; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 750; letter-spacing: 1.5px; margin: 0 0 9px; }
.home-welcome h1 { font-size: 27px; font-weight: 700; letter-spacing: -.9px; margin: 0; }
.welcome-note { color: var(--muted); font-size: 12px; margin-bottom: 3px; }
.daily-hero { display: grid; grid-template-columns: 1.22fr 1fr; background: #373ca0; color: white; border-radius: 20px; min-height: 373px; overflow: hidden; position: relative; }
.daily-copy { padding: 36px 0 38px 40px; position: relative; z-index: 1; }
.daily-badge { display: inline-flex; align-items: center; gap: 8px; color: #eef4c9; font-size: 9px; letter-spacing: 1.45px; font-weight: 700; }
.daily-badge > span { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; }
.daily-copy h2 { font-size: clamp(42px, 4.4vw, 61px); line-height: 1.05; font-weight: 750; letter-spacing: -2.5px; margin: 17px 0 18px; }
.daily-copy h2 > span { color: var(--accent); }
.daily-lead { font-size: 19px; font-weight: 500; line-height: 1.5; margin: 0 0 13px; letter-spacing: -.3px; }
.daily-description { color: #d4d5f0; font-size: 13px; line-height: 1.7; margin: 0; }
.daily-actions { display: flex; align-items: center; gap: 19px; margin-top: 25px; }
.daily-start { display: inline-flex; gap: 30px; align-items: center; background: var(--accent); color: #2b3323; padding: 14px 20px; font-size: 13px; }
.daily-start:hover { background: #ebf8b9; }
.daily-start .icon { width: 18px; height: 18px; }
.daily-actions > span { color: #dcddf3; font-size: 11px; }
.daily-art { position: relative; min-width: 0; display: grid; place-items: center; padding: 0 30px 8px 10px; }
.orbit { position: absolute; border: 1px solid #555bb3; border-radius: 50%; width: 410px; height: 410px; }
.orbit-one { right: -6px; top: -10px; }
.orbit-two { right: -64px; top: -68px; width: 526px; height: 526px; }
.challenge-sheet { z-index: 1; width: 318px; background: #fffefa; color: var(--ink); border-radius: 12px; padding: 23px; transform: rotate(-6deg); box-shadow: 10px 15px 0 #292e86; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; font-size: 8px; letter-spacing: 1.3px; font-weight: 700; color: #6b6d7f; }
.sheet-top .icon { width: 20px; height: 20px; color: var(--brand); }
.sheet-title { font-size: 22px; line-height: 1.4; letter-spacing: -.8px; margin: 18px 0 22px; }
.sheet-title strong { font-weight: 750; }
.challenge-steps { display: flex; align-items: flex-end; gap: 7px; height: 66px; }
.challenge-steps span { flex: 1; display: grid; place-items: center; height: 34px; border-radius: 7px 7px 3px 3px; background: #eeeffa; color: #51569a; font-size: 13px; font-weight: 750; }
.challenge-steps span:nth-child(2) { height: 42px; background: #e2e3f6; }
.challenge-steps span:nth-child(3) { height: 50px; background: #cccfed; }
.challenge-steps span:nth-child(4) { height: 58px; background: #aaaedf; color: #343b81; }
.challenge-steps span:nth-child(5) { height: 66px; background: var(--accent); color: #3b4825; }
.difficulty-line { display: flex; justify-content: space-between; font-size: 8px; color: #7a7d89; margin: 7px 0 20px; }
.sheet-bottom { display: flex; justify-content: space-between; border-top: 1px solid #e6e6e8; padding-top: 13px; color: #707483; font-size: 9px; }
.sheet-bottom > span { color: var(--brand); font-size: 16px; line-height: 1; }
.daily-seal { position: absolute; z-index: 2; right: 26px; bottom: 39px; display: flex; align-items: center; gap: 9px; transform: rotate(5deg); background: var(--accent); padding: 12px 16px; border-radius: 9px; color: #374126; box-shadow: 0 3px 10px #282d7820; }
.daily-seal > .icon { width: 28px; height: 28px; padding: 5px; border: 1px solid #a8bc5c; border-radius: 50%; }
.daily-seal > span { font-size: 10px; line-height: 1.4; font-weight: 650; }
.art-spark { position: absolute; z-index: 2; color: #dfef94; line-height: 1; }
.spark-one { font-size: 53px; right: 34px; top: 24px; transform: rotate(10deg); }
.spark-two { font-size: 32px; left: 24px; bottom: 29px; font-weight: 300; }

.study-section, .exam-library, .next-step { margin-top: 42px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 21px; }
.section-heading h2 { font-size: 25px; font-weight: 700; letter-spacing: -.75px; margin: 0; }
.section-heading .eyebrow { font-size: 9px; margin-bottom: 8px; }
.section-heading p:not(.eyebrow) { margin: 9px 0 0; font-size: 12px; color: var(--muted); max-width: 480px; }
.study-search { display: flex; align-items: center; gap: 10px; width: 375px; flex-shrink: 0; padding: 7px 7px 7px 15px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.study-search > .icon { width: 18px; height: 18px; color: #9598a6; }
.study-search input { font: inherit; font-size: 12px; min-width: 0; width: 100%; border: 0; background: transparent; color: var(--ink); padding: 5px 0; }
.study-search:focus-within { outline: 2px solid var(--brand); outline-offset: 2px; }
.study-search input:focus { outline: none; }
.study-search button { padding: 8px; border-radius: 7px; }
.study-search button .icon { width: 17px; height: 17px; }
.home-areas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.subject-card { display: grid; grid-template-columns: 1fr auto; padding: 18px 19px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink); transition: border-color .15s, transform .15s; }
.subject-card:hover { text-decoration: none; border-color: var(--brand); transform: translateY(-2px); }
.subject-card > strong { grid-column: 1 / -1; font-size: 13px; font-weight: 650; margin-top: 13px; }
.subject-count { grid-column: 1; color: var(--muted); font-size: 11px; margin-top: 5px; }
.subject-icon { grid-column: 1 / -1; grid-row: 1; width: 35px; height: 35px; display: grid; place-items: center; border-radius: 9px; color: #a7633d; background: #fff1e6; }
.subject-icon .icon { width: 21px; height: 21px; }
.subject-humanas .subject-icon { background: #efecfa; color: #8864b6; }
.subject-natureza .subject-icon { background: #e8f4ed; color: #418369; }
.subject-matematica .subject-icon { background: #ebeffe; color: #596bca; }
.subject-arrow { grid-row: 3; grid-column: 2; color: #9396a7; }
.subject-arrow .icon { width: 16px; height: 16px; }
.text-link { display: inline-flex; align-items: center; gap: 10px; font-size: 11px; font-weight: 650; white-space: nowrap; }
.text-link .icon { width: 16px; height: 16px; }
.exam-library { border-top: 1px solid var(--line); padding-top: 35px; }
.exam-collection { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.exam-collection > summary { display: flex; align-items: center; gap: 15px; cursor: pointer; padding: 17px 21px; list-style: none; }
.exam-collection > summary::-webkit-details-marker, .older-editions > summary::-webkit-details-marker { display: none; }
.board-monogram { width: 41px; height: 41px; border-radius: 10px; background: #eeeefa; color: var(--brand); display: grid; place-items: center; font-size: 18px; font-weight: 750; letter-spacing: -1px; }
.board-name { font-size: 14px; font-weight: 700; }
.board-name small { display: block; font-size: 10px; font-weight: 400; color: var(--muted); margin-top: 3px; }
.collection-count { margin-left: auto; font-size: 10px; color: var(--muted); }
.collection-toggle { display: grid; place-items: center; width: 25px; height: 25px; font-size: 21px; font-weight: 300; color: #888b9c; }
.exam-collection[open] > summary .collection-toggle { transform: rotate(45deg); }
.collection-content { padding: 0 21px 19px; }
.collection-content .edition-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.collection-content .edition-card { background: #f8f9fc; border: 1px solid #eceef3; border-radius: 8px; padding: 13px; }
.collection-content .edition-year { font-size: 12px; margin-bottom: 10px; }
.collection-content .edition-days { gap: 7px; }
.collection-content .edition-days a { background: #fff; border: 1px solid #e8eaf1; border-radius: 6px; font-size: 10px; padding: 8px 3px; flex-basis: 64px; }
.collection-content .edition-days a span { font-size: 10px; margin-top: 3px; }
.collection-content .board-intro { font-size: 12px; max-width: 850px; }
.collection-link { display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 10px; margin-top: 14px; }
.collection-link .icon { width: 14px; height: 14px; }
.older-editions > summary { list-style: none; cursor: pointer; color: var(--muted); font-size: 11px; margin: 15px 0 10px; display: flex; gap: 12px; align-items: center; }
.older-editions > summary span { font-size: 18px; line-height: 1; }
.older-editions[open] > summary span { transform: rotate(45deg); }
.path-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 15px; }
.path-card { display: flex; flex-direction: column; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 23px; color: var(--ink); }
.path-card:hover { text-decoration: none; border-color: var(--brand); }
.path-icon { color: var(--brand); }
.path-card h3 { font-size: 16px; letter-spacing: -.3px; margin: 17px 0 8px; font-weight: 650; }
.path-card p { font-size: 12px; color: var(--muted); line-height: 1.8; margin: 0 0 22px; }
.path-link { font-size: 11px; font-weight: 650; color: var(--brand); display: flex; width: 100%; justify-content: space-between; align-items: center; margin-top: auto; }
.path-link .icon { width: 17px; height: 17px; }
.medicine-path { background: #f0f0fc; border-color: #e5e5f6; }

/* A mesma base visual se estende ao acervo e às páginas de consulta. */
.page-title { margin-bottom: 24px; }
.page-title h1 { font-size: 32px; letter-spacing: -1px; margin-bottom: 8px; }
.page-title p { font-size: 14px; }
.filters { background: #fff; padding: 14px; border: 1px solid var(--line); border-radius: 12px; gap: 10px; }
.filters input, .filters select { font-size: 13px; }
.question-card { padding: 22px 24px; gap: 12px; }
.question-card:hover { background: #fdfdff; }
.card-meta { font-size: 12px; }
.excerpt { font-size: 15px; line-height: 1.7; }
.crumbs { margin-bottom: 22px; font-size: 12px; }
.question-head h1 { font-size: 29px; letter-spacing: -.8px; }
.question-meta { font-size: 13px; }
.question-body, .context { padding: 26px; }
.question-body .alternativa { border-radius: 9px; padding: 13px 15px; margin: 9px 0; }
.prova-aviso { max-width: 620px; margin: 35px auto; padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); }
.prova-aviso h1 { font-size: 30px; letter-spacing: -.8px; }
.prova-aviso p { color: var(--muted); line-height: 1.8; }
.prova-aviso form, .prova-aviso .button { margin-top: 16px; }
.data thead th, .data thead .fixa { background: #f7f8fc; }
.data th, .data td { padding: 12px 15px; }

@media (max-width: 1050px) {
  .header-row { gap: 18px; }
  .header-row .search { max-width: 165px; }
  .header-nav { gap: 17px; }
  .header-nav a { font-size: 12px; }
  .daily-copy { padding-left: 30px; }
  .daily-lead { font-size: 17px; }
  .daily-description { font-size: 12px; }
  .challenge-sheet { width: 285px; padding: 21px; }
  .daily-art { padding-right: 10px; }
  .daily-seal { right: 13px; bottom: 38px; }
  .spark-one { right: 15px; }
  .welcome-note { display: none; }
  .study-search { width: 330px; }
}
@media (max-width: 820px) {
  .header-row .search { display: none; }
  .header-nav { margin-left: auto; }
  .daily-hero { grid-template-columns: 1.3fr 1fr; }
  .daily-copy { padding-left: 24px; }
  .daily-art { transform: scale(.88); transform-origin: center; }
  .daily-actions { gap: 11px; }
  .daily-actions > span { font-size: 10px; }
  .daily-start { gap: 12px; padding: 13px 16px; }
  .study-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .study-search { width: 100%; }
  .home-areas { gap: 10px; }
  .subject-card { padding: 14px; }
  .subject-card > strong { font-size: 12px; }
  .footer-layout { gap: 24px; grid-template-columns: 1fr 1.3fr; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .main { padding-top: 26px; padding-bottom: 40px; }
  .header-row { min-height: 0; padding-top: 16px; padding-bottom: 0; flex-wrap: wrap; gap: 7px; }
  .logo { font-size: 18px; }
  .logo svg { width: 28px; height: 28px; }
  .header-nav { display: flex; width: 100%; margin: 0; justify-content: space-between; gap: 8px; padding: 0 0 3px; }
  .header-nav a { font-size: 11px; min-height: 40px; }
  .nav-daily .icon { width: 14px; height: 14px; }
  .nav-daily.is-active { padding: 0; background: transparent; }
  .home-welcome { margin-bottom: 20px; }
  .home-welcome h1 { font-size: 23px; max-width: 290px; line-height: 1.25; }
  .home-welcome .eyebrow { font-size: 8px; letter-spacing: 1.2px; margin-bottom: 9px; }
  .daily-hero { display: block; min-height: 0; border-radius: 16px; }
  .daily-copy { padding: 26px 24px 27px; }
  .daily-badge { font-size: 8px; letter-spacing: 1px; }
  .daily-copy h2 { font-size: 45px; letter-spacing: -2px; margin: 18px 0 16px; }
  .daily-lead { font-size: 16px; line-height: 1.6; letter-spacing: -.2px; }
  .daily-description { font-size: 12px; margin-top: 14px; }
  .desktop-break { display: none; }
  .daily-actions { flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; }
  .daily-start { width: 100%; justify-content: space-between; padding: 14px 18px; font-size: 13px; }
  .daily-actions > span { align-self: center; font-size: 10px; }
  .daily-art { display: none; }
  .study-section, .exam-library, .next-step { margin-top: 32px; }
  .section-heading { gap: 15px; margin-bottom: 16px; }
  .section-heading h2 { font-size: 22px; line-height: 1.25; }
  .section-heading .eyebrow { font-size: 8px; letter-spacing: 1.2px; }
  .section-heading p:not(.eyebrow) { font-size: 11px; line-height: 1.7; }
  .study-search input { font-size: 12px; }
  .home-areas { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .subject-card { padding: 16px; }
  .subject-card > strong { font-size: 12px; }
  .subject-count { font-size: 10px; }
  .exam-library { padding-top: 27px; }
  .exam-library > .section-heading { flex-direction: column; align-items: flex-start; }
  .text-link { font-size: 11px; }
  .exam-collection > summary { gap: 10px; padding: 15px; }
  .board-monogram { width: 34px; height: 34px; font-size: 16px; }
  .board-name { font-size: 13px; }
  .board-name small { font-size: 9px; max-width: 170px; }
  .collection-count { display: none; }
  .collection-toggle { margin-left: auto; }
  .collection-content { padding: 0 14px 16px; }
  .collection-content .edition-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .collection-content .edition-days a { flex-basis: 42px; }
  .collection-content .edition-card { padding: 11px; }
  .collection-content .edition-days a span { font-size: 9px; }
  .path-grid { grid-template-columns: 1fr; }
  .path-card { padding: 22px; }
  .footer-layout { grid-template-columns: 1fr; gap: 20px; }
  .page-title h1 { font-size: 27px; }
  .filters { padding: 12px; grid-template-columns: 1fr 1fr; }
  .filters button { grid-column: 1 / -1; }
  .question-card { padding: 18px; }
  .question-body, .context { padding: 18px; }
}
@media (max-width: 359px) {
  .header-nav { gap: 5px; }
  .header-nav a { font-size: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .subject-card, button, .button { transition: none; }
}
