/* Revisamed Blog — componentes públicos compartilhados, setembro de 2026. */
/* Navegação: somente o sublinhado identifica a página ativa. */
.site-header .main-nav a[aria-current="page"],
html[data-theme="dark"] .site-header .main-nav a[aria-current="page"] {
  background:transparent; border-radius:0; box-shadow:none;
}
.site-header .main-nav a {padding-block:28px; text-decoration:none;}
.site-header .main-nav a::after {
  content:""; display:block; position:absolute; left:50%; right:50%; bottom:16px;
  height:3px; border-radius:4px; background:#00a880; transition:left .2s,right .2s;
}
.site-header .main-nav a:hover::after,
.site-header .main-nav a[aria-current="page"]::after {display:block; left:0; right:0;}
html[data-theme="dark"] .site-header .main-nav a::after {background:#4ddbb3;}

/* Atalhos da home: altura guiada pelo conteúdo. */
.blog-home .hero-grid > .feature-card {min-height:0; height:auto; padding:23px 21px 19px;}
.blog-home .hero-grid .feature-card h2 {margin:17px 0 8px;}
.blog-home .hero-grid .feature-card p {margin:0;}
.blog-home .hero-grid .feature-link {margin-top:20px; padding-top:0;}
.blog-home .top-area {padding-block:32px;}

/* A mesma thumb em notícias, editais, temas, busca e home. */
body .news-grid {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:20px;}
body .news-card {
  min-width:0; overflow:hidden; border:1px solid #dde6ee; border-radius:16px;
  color:#082942; background:#fff; box-shadow:0 6px 18px rgb(8 41 66 / 5%);
  transition:transform .25s,box-shadow .25s,border-color .25s;
}
body .news-card:hover {transform:translateY(-4px); border-color:#a9cbed; box-shadow:0 15px 30px rgb(8 41 66 / 12%);}
body .news-card > a {display:flex; height:100%; flex-direction:column; color:inherit; text-decoration:none;}
body .news-card__media {position:relative; width:100%; aspect-ratio:1.85; overflow:hidden; background:#eaf0f5;}
body .news-card__media img {display:block; width:100%; height:100%; object-fit:cover; transition:transform .4s;}
body .news-card:hover .news-card__media img {transform:scale(1.035);}
body .news-card__body {display:flex; flex:1; flex-direction:column; min-height:130px; padding:15px 16px 13px;}
body .news-card__body > .eyebrow {margin:0 0 7px; color:#007f68; font-size:10px; line-height:1.4; font-weight:800; letter-spacing:.12em;}
body .news-card h3 {
  display:-webkit-box; -webkit-box-orient:vertical; -webkit-line-clamp:2; overflow:hidden;
  min-height:44px; margin:0 0 17px; color:inherit; font-size:16px; line-height:1.4; font-weight:700; letter-spacing:-.025em;
}
body .news-card .news-meta {display:flex; align-items:center; justify-content:space-between; gap:8px; margin-top:auto; padding-top:12px; border-top:1px solid #e8eef4; color:#718298; font-size:11px; line-height:1.4;}
body .news-card .read {color:#2278dd; font-size:11px; font-weight:800; letter-spacing:.07em;}
body .news-card time {white-space:nowrap;}
.listing-heading {display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:24px;}
.listing-heading h2 {margin:0; font-size:clamp(23px,2vw,28px); line-height:1.2; letter-spacing:-.035em;}

/* Ação dos temas e cabeçalho do calendário. */
.button.button--themes {min-height:46px; gap:16px; padding:9px 12px 9px 20px; border:1px solid #cfbff0; border-radius:12px; color:#5934a3; background:linear-gradient(120deg,#fff,#f3edff); box-shadow:0 5px 16px rgb(81 53 162 / 7%); font-size:13px; font-weight:750; text-decoration:none;}
.button--themes .button__arrow {display:grid; place-items:center; width:28px; height:28px; border-radius:50%; color:#fff; background:#6950bf; font-size:18px; transition:transform .2s;}
.button--themes:hover {border-color:#9173d6; box-shadow:0 9px 24px rgb(81 53 162 / 16%);}
.button--themes:hover .button__arrow {transform:translateX(2px);}
.cms-calendar-section .editais {padding:28px; border:1px solid #dce7f0; border-radius:22px; background:#fff; box-shadow:0 10px 30px rgb(8 41 66 / 5%);}
.cms-calendar-section .heading-row {margin-bottom:24px;}
.cms-calendar-section .heading-group {display:flex; align-items:center; gap:17px;}
.cms-calendar-section .heading-icon {display:grid; place-items:center; flex:0 0 54px; width:54px; height:54px; border:1px solid #fff6; border-radius:16px; color:#fff; background:linear-gradient(145deg,#4193fa,#1668d0); box-shadow:0 8px 18px rgb(47 128 237 / 22%);}
.cms-calendar-section .heading-icon .icon {display:block; width:29px; height:29px; fill:none; stroke:currentColor; stroke-width:1.9;}
.cms-calendar-section .heading-group h2 {margin:0 0 7px; color:#082942; font-size:clamp(23px,2vw,28px); line-height:1.2; letter-spacing:-.035em;}
.cms-calendar-section .heading-group p {margin:0; color:#5c7289; font-size:14px; line-height:1.6;}

/* Materiais: componente único para a home e a página do tema. */
.resource-grid {display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:18px;}
.resource-grid .resource-card {
  position:relative; isolation:isolate; display:flex; flex-direction:column; align-items:flex-start;
  min-width:0; min-height:315px; width:100%; overflow:hidden; padding:26px 24px 23px;
  border:1px solid #ffffff42; border-radius:23px; color:#fff; text-align:left; font:inherit;
  background:linear-gradient(145deg,#1057bb,#216cc6); box-shadow:0 12px 28px rgb(8 41 66 / 10%);
  text-decoration:none; transition:transform .25s,box-shadow .25s; cursor:pointer;
}
.resource-grid .resource-card::before {content:""; position:absolute; z-index:-1; width:260px; height:260px; right:-145px; top:-145px; border:1px solid #ffffff30; border-radius:50%; box-shadow:0 0 0 38px #ffffff05; pointer-events:none;}
.resource-grid .resource-card::after {display:none;}
.resource-grid .resource-card--video {background:linear-gradient(145deg,#5135a2,#7057bd);}
.resource-grid .resource-card--pdf {background:linear-gradient(145deg,#1057bb,#216cc6);}
.resource-grid .resource-card--map {background:linear-gradient(145deg,#008d78,#00aa96);}
.resource-grid .resource-card:hover {transform:translateY(-5px); box-shadow:0 20px 35px rgb(8 41 66 / 17%);}
.resource-grid .resource-card__number {position:absolute; top:24px; right:22px; color:#ffffff66; font-size:26px; font-weight:850; line-height:1;}
.resource-grid .resource-card__visual {display:grid; place-items:center; flex:0 0 76px; width:76px; height:76px; margin:0 0 24px; border:1px solid #ffffff70; border-radius:24px; color:#fff; background:linear-gradient(145deg,#ffffff42,#ffffff15); box-shadow:inset 0 1px #ffffff40,0 10px 22px #00000010; transform:rotate(-5deg); transition:transform .25s;}
.resource-grid .resource-card:hover .resource-card__visual {transform:rotate(2deg);}
.resource-grid .resource-card__visual .icon {width:38px; height:38px; stroke-width:2;}
.resource-grid .resource-card__type {margin:0 0 10px; color:#fff; font-size:10px; line-height:1.4; font-weight:850; letter-spacing:.09em; text-transform:uppercase;}
.resource-grid .resource-card h3 {margin:0 0 10px; color:inherit; font-size:21px; line-height:1.22; font-weight:750; letter-spacing:-.04em;}
.resource-grid .resource-card p {margin:0 0 20px; color:#fff; font-size:13px; line-height:1.55;}
.resource-grid .resource-action {display:flex; width:100%; align-items:center; justify-content:space-between; gap:12px; margin-top:auto; padding-top:8px; color:inherit; font-size:11px; font-weight:800;}
.resource-grid .resource-action i {display:grid; place-items:center; width:32px; height:32px; flex:0 0 32px; border-radius:50%; background:#ffffff33; color:#fff; font-style:normal; font-size:15px;}
.resource-grid .resource-card--flash {color:#082942; border-color:#eccb75; background:radial-gradient(circle at 92% 7%,#ffe0689e,transparent 40%),linear-gradient(145deg,#fdf7db,#fff9d2 52%,#fffbe3); box-shadow:0 12px 28px rgb(178 117 5 / 12%);}
.resource-grid .resource-card--flash::before {border-color:#b2750547; box-shadow:0 0 0 38px #eeb63a12;}
.resource-grid .resource-card--flash .resource-card__number {color:#b2750566;}
.resource-grid .resource-card--flash .resource-card__visual {background:linear-gradient(145deg,#f4c972,#dea232); border-color:#ffffffb3; box-shadow:inset 0 1px #ffffff8c,0 5px 8px #8f5d0033,0 15px 26px #b2750566;}
.resource-grid .resource-card--flash .resource-card__type,
.resource-grid .resource-card--flash .resource-action {color:#865800;}
.resource-grid .resource-card--flash p {color:#55647e;}
.resource-grid .resource-card--flash .resource-action i {background:#dea232; box-shadow:0 8px 16px #b2750538;}

/* Flashcards: as duas faces definem a altura, sem barra interna. */
.flash-study {min-width:0; max-width:100%;}
.flashcard-stage {height:auto; min-height:0; width:100%;}
.flashcard {height:auto; min-width:0;}
.flashcard__inner {display:grid; height:auto; min-width:0;}
.flashcard__face {
  position:relative; inset:auto; grid-area:1 / 1; width:100%; min-width:0;
  min-height:clamp(270px,43vh,390px); height:auto; padding:32px 42px;
  overflow:hidden; overflow:clip; overflow-wrap:anywhere;
}
.flashcard__face > * {max-width:100%; transform:none;}
.flashcard__face h3 {margin:0; font-size:clamp(24px,2.5vw,34px); line-height:1.22;}
.flashcard__face p {margin-top:16px;}
.flashcard__label {margin-bottom:18px;}
.resource-modal__content {overflow-x:hidden;}
.flash-local-note {margin:0 0 14px; line-height:1.5;}

/* Contraste consistente em todos os templates públicos. */
html[data-theme="dark"] {color-scheme:dark;}
html[data-theme="dark"] body {--navy:#eaf3ff; --gray:#afc3d8; --line:#29445f; --color-navy:#eaf3ff; --color-graphite:#dce9f6; --color-gray:#afc3d8; --color-gray-light:#29445f; --color-off-white:#0d243d;}
html[data-theme="dark"] .page-hero,
html[data-theme="dark"] .cms-page-content .page-hero {color:#f0f6ff; background:radial-gradient(circle at 8% 16%,#2f80ed35,transparent 40%),radial-gradient(circle at 90% 80%,#00b38826,transparent 42%),linear-gradient(125deg,#0a1d36,#0c303b);}
html[data-theme="dark"] .page-hero h1,
html[data-theme="dark"] .post-hero h1,
html[data-theme="dark"] .listing-heading h2,
html[data-theme="dark"] .cms-calendar-section .heading-group h2 {color:#f0f6ff;}
html[data-theme="dark"] .page-hero p,
html[data-theme="dark"] .page-hero .breadcrumb,
html[data-theme="dark"] .cms-calendar-section .heading-group p {color:#bfd1e3;}
html[data-theme="dark"] .eyebrow {color:#69e0c2;}
html[data-theme="dark"] body .news-card {background:#0d243d; color:#eaf3ff; border-color:#29445f; box-shadow:0 8px 24px #0002;}
html[data-theme="dark"] body .news-card__media {background:#17344e;}
html[data-theme="dark"] body .news-card .news-meta {border-color:#29445f; color:#acc2d8;}
html[data-theme="dark"] body .news-card .read {color:#87bfff;}
html[data-theme="dark"] body .news-card__body > .eyebrow {color:#69e0c2;}
html[data-theme="dark"] .cms-calendar-section .editais,
html[data-theme="dark"] .table-wrap {background:#0d243d; border-color:#29445f;}
html[data-theme="dark"] .button.button--themes {color:#e4d6ff; border-color:#5b478c; background:linear-gradient(120deg,#251e3b,#342953);}
html[data-theme="dark"] .button--outline {color:#95c6ff; border-color:#37638b; background:#102d48;}
html[data-theme="dark"] .site-header .blog-search {color:#eaf3ff; background:#0d2541; border-color:#294a68;}
html[data-theme="dark"] .site-header .blog-search input {color:#eaf3ff;}
html[data-theme="dark"] .site-header .blog-search input::placeholder {color:#b1c4d9;}
html[data-theme="dark"] .site-header .blog-search > button {color:#83beff;}
html[data-theme="dark"] .blog-search-popup {background:#0d2541; color:#eaf3ff; border-color:#294a68;}
html[data-theme="dark"] .blog-search-option {color:#eaf3ff;}
html[data-theme="dark"] .blog-search-option:hover,
html[data-theme="dark"] .blog-search-option[aria-selected="true"] {color:#fff; background:#183b58;}
html[data-theme="dark"] .blog-search-option small,
html[data-theme="dark"] .blog-search-message,
html[data-theme="dark"] .blog-search-popup__label {color:#b1c4d9;}
html[data-theme="dark"] .blog-search-all {color:#94c7ff; border-color:#294a68;}
html[data-theme="dark"] .blog-search-all:hover {background:#183b58;}
html[data-theme="dark"] .article-content :is(h2,h3,h4),
html[data-theme="dark"] .side-card h2,
html[data-theme="dark"] .blog-about-intro h2 {color:#edf5ff;}
html[data-theme="dark"] .article-content,
html[data-theme="dark"] .blog-about-intro > p {color:#c5d5e5;}
html[data-theme="dark"] .article-content a {color:#88bfff;}
html[data-theme="dark"] .useful-actions button {color:#b2e8dc; background:#103b3f; border-color:#2f655f;}
html[data-theme="dark"] .useful-actions button[aria-pressed="true"] {color:#fff; background:#087f67;}
html[data-theme="dark"] .cms-cookie-dialog {color:#edf5ff; background:#0d243d; border-color:#29445f;}
html[data-theme="dark"] .cms-cookie-dialog p {color:#b6cade;}
html[data-theme="dark"] .cms-cookie-dialog a {color:#94c7ff;}
html[data-theme="dark"] .cms-cookie-actions button {color:#dcecff; background:#173b59; border-color:#315473;}
html[data-theme="dark"] .cms-cookie-actions button:last-child {background:#176ec8; color:#fff;}
html[data-theme="dark"] .flash-local-note {color:#afc3d8;}
html[data-theme="dark"] .flash-local-note button {color:#94c7ff;}
html[data-theme="dark"] .cms-pdf-controls {color:#eaf3ff; background:#102b46;}
html[data-theme="dark"] .cms-pdf-controls button {background:#183b58; color:#a7d3ff; border-color:#365975;}
html[data-theme="dark"] .cms-pdf-text {color:#eaf3ff; background:#102b46;}

@media (max-width:1100px) {
  body .news-grid,.resource-grid {grid-template-columns:repeat(2,minmax(0,1fr));}
  .resource-grid .resource-card {min-height:300px;}
}
@media (max-width:1050px) {
  .site-header .main-nav a {padding:13px 0;}
  .site-header .main-nav a::after {bottom:6px;}
  .site-header .main-nav a[aria-current="page"]::after {right:auto; width:28px;}
}
@media (max-width:767px) {
  .cms-calendar-section .editais {padding:21px 15px;}
  .cms-calendar-section .heading-group {gap:13px; align-items:flex-start;}
  .cms-calendar-section .heading-icon {width:46px; height:46px; flex-basis:46px;}
  .cms-calendar-section .heading-group h2 {font-size:23px;}
  .cms-calendar-section .heading-group p {font-size:13px;}
  .flashcard__face {padding:27px 24px; min-height:300px;}
  .flashcard__face h3 {font-size:24px;}
  .blog-home .spotlight > .heading-row {align-items:flex-start; flex-wrap:wrap; gap:15px;}
}
@media (max-width:560px) {
  body .news-grid,.resource-grid {grid-template-columns:minmax(0,1fr);}
  body .news-card__body {min-height:124px;}
  .resource-grid .resource-card {min-height:300px; padding:25px;}
  .blog-home .hero-grid > .feature-card {min-height:0;}
  .blog-home .hero-grid .feature-link {margin-top:18px;}
}
@media (prefers-reduced-motion:reduce) {
  .news-card,.news-card__media img,.resource-card,.resource-card__visual {transition:none;}
}

html[data-theme="dark"] .feature-card--editais .feature-link {color:#9acbff;}
html[data-theme="dark"] .cms-filters input::placeholder,
html[data-theme="dark"] .cms-public-search input::placeholder {color:#a9bfd5; opacity:1;}

/* Alinhamento dos CTAs quando os títulos quebram em telas intermediárias. */
.blog-home .hero-grid .feature-link {margin-top:auto; padding-top:20px;}
.heading-row > .button {flex-shrink:0; white-space:nowrap;}
@media(max-width:767px){.blog-home .heading-row{flex-wrap:wrap; gap:15px;}}
@media(max-width:560px){.blog-home .hero-grid .feature-link{margin-top:auto; padding-top:18px;}}
