/* Local, editable improvements. Vendor CSS remains in assets/. */
.skip-link {
  position: fixed;
  left: 1rem;
  top: -10rem;
  z-index: 10000;
  padding: 0.75rem 1rem;
  background: #fff;
  color: #12392d;
}
.skip-link:focus { top: 1rem; }
img:where([data-seo-intrinsic]) { width: auto; height: auto; }

/* This reviewed first-screen container must not wait for Webflow to appear.
   Keep the heart's own animation, transforms and other hidden states intact. */
[data-semap-critical-content="home-hero"] { opacity: 1 !important; }
[data-semap-visible-entry] { opacity: 1 !important; }

/* Keep original appearance while correcting document heading levels.
   These selectors have the specificity of an HTML tag, so the original
   component classes (including .heading-10) continue to take precedence. */
h2:where([data-seo-original-heading="h3"]) {
  width: auto;
  margin-top: 0;
  margin-bottom: 10px;
  font-family: ivyjournal, sans-serif;
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 30px;
}
h2:where([data-seo-original-heading="h4"]),
h3:where([data-seo-original-heading="h4"]) {
  width: auto;
  margin-top: 0;
  margin-bottom: 10px;
  font-family: ivyjournal, sans-serif;
  font-size: 1.1rem;
  font-weight: 400;
  line-height: 150%;
}
a[data-seo-author] { color: inherit; text-decoration: none; }
a[data-seo-author]:hover, a[data-seo-author]:focus-visible { text-decoration: underline; }

/* Early navigation retains vendor styling. */
.semap-nav { position: relative; z-index: 1000; }
.semap-nav::before, .semap-nav::after {
  content: " ";
  grid-area: 1 / 1 / 2 / 2;
  display: table;
}
.semap-nav::after { clear: both; }
.semap-nav .w-nav-menu { display: flex; }
.semap-nav [data-semap-menu-toggle] > img { width: 24px; height: 24px; }
.semap-nav :where(.w-nav-button) {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font-family: inherit;
  font-weight: inherit;
  line-height: inherit;
  text-align: inherit;
}
.semap-nav .w-nav-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -4px;
}
.semap-nav .w-nav-button.w--open:focus-visible {
  outline-color: var(--_colors---blue--100);
}
.semap-nav .w-nav-button[hidden],
.semap-nav .w-nav-overlay[hidden],
.semap-nav [data-semap-menu-panel][hidden] { display: none !important; }

@media screen and (max-width: 991px) {
  .semap-nav .w-nav-button { display: block; }
  .semap-nav:not([data-menu-ready]) > .div-block { flex-wrap: wrap; }
  .semap-nav:not([data-menu-ready]) .w-nav-menu {
    position: static;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }
  /* Match the original overlay after early menu measurement and reparenting. */
  .semap-nav[data-animation="over-right"] .w-nav-overlay { width: auto; }
  .semap-nav[data-animation="over-right"] .w-nav-overlay,
  .semap-nav[data-animation="over-right"] [data-nav-menu-open] {
    z-index: 1;
    top: 0;
    left: auto;
  }
}

/* Keep the existing search name visible after a visitor starts typing. */
.semap-search-field {
  flex: 1 1 auto;
  min-width: 0;
  width: 100%;
}
.semap-search-field > label { margin-bottom: .375rem; }
.semap-search-field #field:focus-visible {
  outline: 3px solid var(--_colors---blue--100);
  outline-offset: 3px;
}
.semap-search-form.filters-form._2 { align-items: flex-end; }
@media screen and (max-width: 479px) {
  .semap-search-form.filters-form._2 { align-items: flex-start; }
}

/* Preserve contrast across the image behind the article collection heading. */
.card-artigos > .row { background-color: rgba(250, 248, 245, .92); }
.card-artigos .paragraph.opacity.white {
  color: var(--_colors---black--100);
  opacity: 1;
}
.semap-search-form .button-primary:is(:hover, :focus-visible, :active) {
  background-color: var(--_colors---blue--100);
}

.semap-search-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
[fs-list-element="list"] [role="listitem"][hidden],
[fs-list-element="empty"][hidden] { display: none !important; }

.autor a.autor-name,
.autor a > .autor-name.orcid {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.card-noticia-home .linear-layer.noticia {
  background-image: linear-gradient(rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .8) 100%);
}
.collection-item-medico > .linear-layer {
  background-image: linear-gradient(rgba(9, 24, 44, 0) 37%, rgba(9, 24, 44, .85) 100%);
}
.semap-search-field #field::placeholder { color: #5b5b5a; opacity: 1; }
.card-noticias .paragraph.opacity.white { opacity: 1; }
.card-noticias._2 > .row { background-color: rgba(9, 24, 44, .65); }
.card-livros > .row { background-color: rgba(9, 24, 44, .7); }

/* Keep complete news labels when visitors increase text spacing. */
.title-noticia-home { max-height: none; }

/* Allow the long headings identified by the text-spacing audit to wrap. */
.semap-specialty[data-specialty="cna"] :is(#titulo, #origem-titulo, #avaliacao-titulo, #procedimento-titulo),
.semap-specialty[data-specialty="crt"] #page-title,
.semap-specialty:is([data-specialty="mp"], [data-specialty="cdi"], [data-specialty="crt"]) .journey-intro h2 {
  min-width: 0;
  overflow-wrap: anywhere;
}

/* Preserve the complete CRT title in narrow layouts. */
@media (max-width: 390px) {
  .semap-specialty[data-specialty="crt"] #page-title {
    font-size: clamp(32px, calc(12vw - 6.8px), 40px);
  }
}

:is([data-specialty=mp],[data-specialty=cdi],[data-specialty=crt]) .journey-stages :is(li,li>div){min-width:0;overflow-wrap:break-word}
.semap-specialty .device-plate-crt>div.plate-heading{flex-wrap:wrap;column-gap:min(22px,3vw)}
.semap-specialty .device-plate-crt>div.plate-options{display:flex;flex-wrap:wrap}
.device-plate-crt .plate-options>span{flex:1}
.device-plate-crt .plate-options>span+span{flex-grow:1.4}

[data-specialty=cna] :is(#agendamento-titulo,#o-que-e-titulo,#origem>h3){overflow-wrap:break-word}
@media(max-width:450px){[data-specialty=cna] #agendamento-titulo{margin-inline-end:-22px;font-size:clamp(22px,calc(70vw/3 - 62px),29px)}}
