/* Sistema final de legibilidade, ritmo vertical e ações globais — v36 */

/* Navegação: contraste estável em cabeçalho claro ou transparente. */
@media (min-width: 1281px) {
  .site-header nav > a,
  .site-header .nav-group-head > a {
    color: #2b2724;
    font-size: clamp(.82rem, .72vw, .9rem);
    font-weight: 600;
    line-height: 1.25;
  }

  .home-page .site-header:not(.is-scrolled) nav > a,
  .home-page .site-header:not(.is-scrolled) .nav-group-head > a,
  .home-page .site-header:not(.is-scrolled) .nav-group-toggle {
    color: #fff;
    text-shadow: 0 1px 12px rgba(0, 0, 0, .72);
  }

  .home-page .site-header:not(.is-scrolled) nav > a.current,
  .home-page .site-header:not(.is-scrolled) .nav-group.current .nav-group-head > a,
  .home-page .site-header:not(.is-scrolled) .nav-group.current .nav-group-toggle {
    color: #f0d39b;
  }

  /* O conteúdo começa integralmente abaixo do cabeçalho sobreposto. */
  .home-page .hero-copy {
    padding-top: 11rem;
    padding-bottom: 4rem;
  }
}

/* Ritmo editorial: evita vazios que interrompem a leitura entre blocos. */
main > .section {
  padding-top: clamp(3.75rem, 4.5vw, 4.75rem);
  padding-bottom: clamp(3.75rem, 4.5vw, 4.75rem);
}

main > .section + .section {
  margin-top: 0;
}

.section-heading,
.split-heading {
  margin-bottom: clamp(2rem, 3.5vw, 3.25rem);
}

/* Contraste premium em todas as superfícies escuras. */
:is(
  .areas, .guide, .contact, .inner-hero, .insurance-cover, .insurance-list,
  .conditions-section, .second-opinion, .specialty-contact, .pain-types,
  .pain-treatments, .pain-contact, .surgical-catalog, .surgical-opinion,
  .surgical-contact, .sports-selector, .sport-result, .sports-treatment,
  .sports-contact, .treatment-catalog, .treatment-contact, .profile-credentials,
  .profile-science, .profile-contact, .opinion-areas, .opinion-contact,
  .journey-timeline, .journey-contact, .standard-contact, .content-library.dark,
  .contact-router, .tele-limits, .structure-resources, .faq-content.dark,
  .condition-diagnosis, .condition-treatment, .condition-faq, .condition-contact,
  .surgery-techniques, .surgery-risks, .ps-alerts, .ps-treatment,
  .return-criteria, .tx-process, .tx-evidence, .tx-faq, .tx-contact,
  [class*="hero"]
) .eyebrow {
  color: #f0d39b;
}

.areas .section-title-rule::after,
.guide .section-title-rule::after,
.contact .section-title-rule::after,
.insurance-list .section-title-rule::after {
  background: rgba(240, 211, 155, .48);
}

.insurance-list > div > p,
.insurance-note,
.light-copy p {
  color: #e0d9d2;
}

.insurance-list > div:first-child .insurance-note {
  margin: 1.35rem 0 0;
  padding: 1.2rem 0 0;
  border-top: 1px solid rgba(240, 211, 155, .28);
  color: #cfc7c0;
  font-size: .78rem;
  line-height: 1.65;
}

.insurance-list > div:first-child .insurance-note strong {
  color: #f0d39b;
}

/* WhatsApp: geometria, contraste e ícone consistentes em todas as páginas. */
.floating {
  right: clamp(.9rem, 2vw, 1.5rem);
  bottom: calc(clamp(.9rem, 2vw, 1.5rem) + env(safe-area-inset-bottom));
  width: 62px;
  height: 62px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 50%;
  background: #1d8951;
  color: #fff;
  box-shadow: 0 12px 30px rgba(10, 73, 39, .34);
  line-height: 1;
}

.floating span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.floating svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.floating:hover,
.floating:focus-visible {
  background: #0f6d39;
  outline: 3px solid rgba(22, 132, 71, .25);
  outline-offset: 3px;
}

@media (max-width: 760px) {
  main > .section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .section-heading,
  .split-heading {
    margin-bottom: 2rem;
  }

  .floating {
    right: .75rem;
    bottom: calc(.75rem + env(safe-area-inset-bottom));
    width: 56px;
    height: 56px;
  }

  .floating svg {
    width: 24px;
    height: 24px;
  }
}

/* Galerias fotográficas: proporções regulares e enquadramento consistente. */
@media (min-width: 901px) {
  .home-page .clinic .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: 320px 320px;
    gap: .8rem;
  }

  .home-page .clinic .gallery figure,
  .home-page .clinic .gallery figure.reception {
    grid-column: auto;
    grid-row: auto;
    min-height: 0;
  }

  .structure-page .facility-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 360px;
    gap: .8rem;
  }

  .structure-page .facility-grid figure,
  .structure-page .facility-grid figure.large {
    grid-column: auto;
    grid-row: auto;
  }
}

.home-page .clinic .gallery img,
.structure-page .facility-grid img {
  object-position: center 48%;
  filter: saturate(.96) contrast(1.025);
}

.home-page .clinic .gallery figure.reception img,
.structure-page .facility-grid figure.large img {
  object-position: center 42%;
}

.clinical-photo-feature {
  width: min(1120px, calc(100% - 2 * var(--page-gutter)));
  height: clamp(360px, 50vw, 620px);
  margin: clamp(2rem, 5vw, 4rem) auto;
  position: relative;
  overflow: hidden;
  background: #171513;
}

.clinical-photo-feature img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center 44%;
}

.clinical-photo-feature figcaption {
  position: absolute;
  inset: auto 0 0;
  padding: 4rem 1.5rem 1.25rem;
  background: linear-gradient(transparent, rgba(18, 15, 13, .86));
  color: #fff;
  font-size: .82rem;
  line-height: 1.5;
}

.profile-credential-feature {
  width: min(465px, calc(100% - 2 * var(--page-gutter)));
  height: auto;
  aspect-ratio: 3 / 4;
  margin-top: clamp(2rem, 4vw, 3.25rem);
  margin-bottom: clamp(3rem, 5vw, 4.5rem);
  background: #171513;
}

.profile-credential-feature img {
  object-fit: contain;
  object-position: center;
  filter: saturate(.97) contrast(1.015);
}

@media (max-width: 760px) {
  .clinical-photo-feature {
    width: calc(100% - 2.3rem);
    height: 430px;
  }

  .profile-credential-feature {
    width: min(calc(100% - 2.3rem), 465px);
    height: auto;
    aspect-ratio: 3 / 4;
  }
}

/* v43 — força a fotografia atual da recepção também na capa de Estrutura. */
.structure-hero-image {
  background-image: linear-gradient(90deg, #171513 0, transparent 25%), url('assets/clinica-recepcao-premium-v3.webp') !important;
}

/* v5 — escala legível, contraste confortável e fotografia editorial */
:root {
  --text-body: 1.0625rem;
  --text-support: .9375rem;
  --text-label: .8125rem;
  --muted: #59534e;
  --copper-dark: #7b4b31;
}

body {
  font-size: 17px;
  line-height: 1.65;
}

main p,
main li,
main address,
main dd {
  font-size: 17px !important;
  line-height: 1.65 !important;
}

main h2:not(.hero h2) {
  font-size: clamp(2.75rem, 4vw, 3.5rem);
}

.button,
.text-link,
.finder-switch button,
.finder-options button,
.treatment-links a,
.guide-options a,
.hero-contact-options > a {
  font-size: 14px !important;
  font-weight: 650;
}

.eyebrow,
.section-title-rule .eyebrow {
  font-size: 13px !important;
  color: var(--copper-dark);
}

.section-heading > p,
.split-heading > p,
.finder-instruction,
.clinic figcaption span {
  color: var(--muted);
}

.editorial-visual {
  position: relative;
  width: min(1180px, calc(100% - 2 * max(4vw, calc((100vw - 1240px) / 2))));
  height: clamp(360px, 46vw, 590px);
  margin: clamp(2.5rem, 5vw, 4.5rem) auto;
  overflow: hidden;
  background: #e8e0d7;
  box-shadow: 0 24px 55px rgba(49, 34, 25, .12);
}

.editorial-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 44%;
}

.editorial-visual figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  max-width: min(620px, 86%);
  margin: 0;
  padding: 1rem 1.35rem;
  background: rgba(24, 21, 19, .9);
  color: #f7f2ec;
  font-size: 14px;
  line-height: 1.55;
  backdrop-filter: blur(8px);
}

.editorial-visual-wide img {
  object-position: center center;
}

@media (max-width: 760px) {
  main h2:not(.hero h2) {
    font-size: clamp(2.125rem, 9vw, 2.625rem);
  }

  .editorial-visual {
    width: calc(100% - 2.3rem);
    height: 440px;
    margin: 2rem auto 3rem;
  }

  .editorial-visual figcaption {
    max-width: 94%;
    padding: .9rem 1rem;
  }
}

/* Escala tipográfica e contraste globais — auditoria v39 */
:root {
  --text-body: 1rem;
  --text-support: .875rem;
  --text-label: .875rem;
  --dark-accent-readable: #f2d7a3;
  --dark-copy-readable: #e7e1dc;
}

body {
  font-size: var(--text-body);
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main p,
main li,
main address,
main dd {
  font-size: max(var(--text-body), 16px) !important;
  line-height: 1.7 !important;
}

main .lead {
  font-size: clamp(1.1rem, 1.8vw, 1.45rem) !important;
  line-height: 1.55 !important;
}

main .insurance-note {
  font-size: max(.875rem, 14px) !important;
  line-height: 1.65 !important;
}

.eyebrow,
.section-title-rule .eyebrow,
.treatment-catalog article > span,
.situations article > span,
.articles article > span,
.process li > span,
.pillars b,
.photo span,
.tag {
  font-size: max(var(--text-label), 14px) !important;
  line-height: 1.45;
}

.button,
.text-link,
.site-header nav a,
.nav-submenu strong,
.nav-submenu small,
.guide-options a,
.surgery-list a,
.articles a,
footer a,
footer p,
footer strong,
.cookie-settings {
  font-size: max(var(--text-support), 14px) !important;
  line-height: 1.5;
}

small,
.legal-updated,
.doctor-id small,
.contact-choice small,
.footer-registration {
  font-size: max(.8125rem, 13px) !important;
  line-height: 1.55;
}

:is(
  .areas, .guide, .contact, .inner-hero, .insurance-cover, .insurance-list,
  .conditions-section, .second-opinion, .specialty-contact, .pain-types,
  .pain-treatments, .pain-contact, .surgical-catalog, .surgical-opinion,
  .surgical-contact, .sports-selector, .sport-result, .sports-treatment,
  .sports-contact, .treatment-catalog, .treatment-contact, .profile-credentials,
  .profile-science, .profile-contact, .opinion-areas, .opinion-contact,
  .journey-timeline, .journey-contact, .standard-contact, .content-library.dark,
  .contact-router, .tele-limits, .structure-resources, .faq-content.dark,
  .condition-diagnosis, .condition-treatment, .condition-faq, .condition-contact,
  .surgery-techniques, .surgery-risks, .ps-alerts, .ps-treatment,
  .return-criteria, .tx-process, .tx-evidence, .tx-faq, .tx-contact,
  [class*="hero"]
) :is(.eyebrow, article > span, article > b, .section-title-rule span) {
  color: var(--dark-accent-readable) !important;
}

:is(
  .areas, .guide, .contact, .inner-hero, .insurance-cover, .insurance-list,
  .conditions-section, .second-opinion, .specialty-contact, .pain-types,
  .pain-treatments, .pain-contact, .surgical-catalog, .surgical-opinion,
  .surgical-contact, .sports-selector, .sport-result, .sports-treatment,
  .sports-contact, .treatment-catalog, .treatment-contact, .profile-credentials,
  .profile-science, .profile-contact, .opinion-areas, .opinion-contact,
  .journey-timeline, .journey-contact, .standard-contact, .content-library.dark,
  .contact-router, .tele-limits, .structure-resources, .faq-content.dark,
  .condition-diagnosis, .condition-treatment, .condition-faq, .condition-contact,
  .surgery-techniques, .surgery-risks, .ps-alerts, .ps-treatment,
  .return-criteria, .tx-process, .tx-evidence, .tx-faq, .tx-contact,
  [class*="hero"]
) :is(p, li, small) {
  color: var(--dark-copy-readable);
}

@media (max-width: 760px) {
  h1 { line-height: 1.02; }
  h2 { line-height: 1.1; }
  h3 { line-height: 1.2; }

  .eyebrow,
  .section-title-rule .eyebrow {
    letter-spacing: .13em;
  }
}
/* v4 — editorial photography and contact page proportion system */
.contact-page .contact-hero {
  align-items: center;
}

.contact-page .contact-hero > div:first-child {
  align-self: center;
  min-width: 0;
}

.contact-page .contact-hero h1 {
  max-width: 9.5ch;
  font-size: clamp(3.35rem, 4.65vw, 5.35rem);
  line-height: .98;
  text-wrap: balance;
}

.contact-page .hero-contact-router {
  align-self: center;
  min-width: 0;
  padding: clamp(1.35rem, 2vw, 2rem) !important;
}

.contact-page .hero-contact-router > p {
  max-width: 48rem;
  font-size: .82rem;
}

.contact-page .hero-contact-options > a {
  min-height: 62px;
  padding: .72rem .8rem !important;
  font-size: .72rem !important;
  line-height: 1.35;
}

@media (min-width: 1281px) {
  .contact-page .contact-hero {
    grid-template-columns: minmax(22rem, .78fr) minmax(42rem, 1.22fr);
    gap: clamp(3rem, 5vw, 6rem);
    min-height: calc(100vh - 96px);
    padding-block: clamp(4.5rem, 7vh, 7rem);
  }
}

@media (max-width: 1280px) {
  .contact-page .contact-hero h1 {
    max-width: 12ch;
    font-size: clamp(3rem, 7vw, 4.6rem);
  }
}

@media (max-width: 760px) {
  .contact-page .contact-hero {
    gap: 2.25rem;
    padding-block: 3.25rem;
  }

  .contact-page .contact-hero h1 {
    max-width: 11ch;
    font-size: clamp(2.65rem, 12vw, 3.55rem);
  }

  .contact-page .hero-contact-router {
    padding: 1.15rem !important;
  }

  .contact-page .hero-contact-options > a {
    min-height: 68px;
    font-size: .76rem !important;
  }
}

/* Auditoria 2026-09-14: consentimento discreto, legibilidade e alvos de toque. */
.cookie-consent {
  right: 1rem;
  bottom: 1rem;
  left: auto;
  width: min(580px, calc(100% - 2rem));
  grid-template-columns: minmax(0, 1fr);
  gap: .9rem;
  margin: 0;
  padding: 1.1rem 1.2rem;
}

.cookie-consent strong { font-size: 1.05rem; }
.cookie-consent p { max-width: none; font-size: .82rem; line-height: 1.55; }
.cookie-actions { justify-content: flex-end; }
.cookie-actions button {
  min-height: 48px;
  padding: .8rem 1rem;
  font-size: .8rem;
}

.eyebrow,
.authority span,
.profile-proof span { font-size: .8rem; }

.finder-conditions a,
.guide-options a,
.hero-contact-options > a,
.surgery-groups article > a,
.surgery-groups li a,
.specialty-articles a,
.content-layout aside > a,
.library-grid a,
.directory-groups a,
.treatment-accordion summary,
.social-links a {
  font-size: 14px !important;
  line-height: 1.45;
}

.surgery-groups article > a,
.surgery-groups li a,
.specialty-articles a,
.content-layout aside > a,
.library-grid a,
.directory-groups a { min-height: 44px; }

footer a,
footer p,
footer strong,
.cookie-settings {
  font-size: .8rem !important;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .cookie-consent {
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
    width: auto;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    padding: 1rem;
  }

  .cookie-consent p { font-size: .8rem; }
  .cookie-actions { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .cookie-actions button { padding: .75rem .55rem; font-size: .78rem; }

  .hero-contact-options > a,
  .guide-options a,
  .finder-conditions a {
    min-height: 56px;
    font-size: 14px !important;
  }
}

/* Regra final de legibilidade para ações e links de conteúdo. */
main a,
main button,
main summary,
.contact-page .hero-contact-options > a {
  font-size: 14px !important;
  line-height: 1.45;
}

/* Ajustes finais da capa em telas pequenas. */
@media (max-width: 760px) {
  .home-page .hero-copy .text-link {
    color: #f0d39b !important;
    border-bottom-color: #f0d39b;
    text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
  }

  .home-page .authority {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 0;
  }

  .home-page .authority span {
    display: flex;
    min-height: 58px;
    padding: .7rem .75rem;
    align-items: center;
    justify-content: center;
    border-right: 1px solid rgba(255, 255, 255, .2);
    border-bottom: 1px solid rgba(255, 255, 255, .2);
    white-space: normal;
    text-align: center;
    line-height: 1.35;
  }

  .home-page .authority span:nth-child(even) { border-right: 0; }

  .home-page .authority span:last-child {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
  }
}

/* Sistema cromático consolidado — v53. */
:root {
  --paper: #f8f5ef;
  --paper-alt: #eee6dc;
  --ink: #211f1d;
  --muted: #59534e;
  --deep: #171513;
  --deep-raised: #211d1a;
  --copper: #7b4b31;
  --copper-dark: #7b4b31;
  --dark-accent-readable: #f2d7a3;
  --dark-copy-readable: #e7e1dc;
}

body,
main { background-color: var(--paper); }

/* A home preserva o escuro na capa e na conversão final. */
.home-page .areas {
  background: var(--paper);
  color: var(--ink);
}

.home-page .areas .section-heading.light p,
.home-page .areas .pillars p,
.home-page .areas .pillars li {
  color: var(--muted) !important;
}

.home-page .pillars { background: rgba(123, 75, 49, .18); }

.home-page .pillars article,
.home-page .pillars .featured {
  background: #fff;
  color: var(--ink);
}

.home-page .areas :is(.eyebrow, .pillars b, .pillars a, .tag) {
  color: var(--copper) !important;
}

.home-page .areas .tag {
  border-color: rgba(123, 75, 49, .5);
  background: var(--paper-alt);
}

.home-page .hero-copy .text-link {
  color: #f0d39b !important;
  border-bottom-color: #f0d39b;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .55);
}

:is(.treatment-showcase, .reviews, .location-final, .care-paths, .clinical-paths) {
  background-color: var(--paper-alt);
}

main :is(.eyebrow, .section-title-rule .eyebrow) { color: var(--copper-dark); }

/* Destaques claros sobre fundos escuros nunca usam cobre de baixo contraste. */
:is(
  .hero, .guide, .contact, .inner-hero, .insurance-cover, .insurance-list,
  .conditions-section, .second-opinion, .specialty-contact, .pain-types,
  .pain-treatments, .pain-contact, .surgical-catalog, .surgical-opinion,
  .surgical-contact, .sports-selector, .sport-result, .sports-treatment,
  .sports-contact, .treatment-catalog, .treatment-contact, .profile-credentials,
  .profile-science, .profile-contact, .opinion-areas, .opinion-contact,
  .journey-timeline, .journey-contact, .standard-contact, .content-library.dark,
  .contact-router, .tele-limits, .structure-resources, .faq-content.dark,
  .condition-diagnosis, .condition-treatment, .condition-faq, .condition-contact,
  .surgery-techniques, .surgery-risks, .ps-alerts, .ps-treatment,
  .return-criteria, .tx-process, .tx-evidence, .tx-faq, .tx-contact,
  [class*="hero"]
) :is(.eyebrow, article > span, article > b, .section-title-rule span, .text-link) {
  color: var(--dark-accent-readable) !important;
}

/* Correção editorial comum para fotografias inseridas no conteúdo. */
main img { filter: saturate(.94) contrast(1.02) brightness(1.01); }

/* Direcionador sem mockup: usa toda a largura útil. */
.guide.guide-single {
  grid-template-columns: minmax(0, 1fr);
}

.guide.guide-single .guide-intro {
  width: min(1120px, 100%);
  margin-inline: auto;
}

/* Home v57: simetria cirúrgica, conteúdo compacto e conversão final. */
.home-page .home-surgery-shortcuts-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-top: 2rem;
}

.home-page .home-surgery-shortcuts-three a {
  min-height: 152px;
  padding: 1.25rem;
  border-top: 3px solid var(--copper);
  box-shadow: 0 12px 30px rgba(48, 32, 23, .06);
}

.home-page .home-surgery-shortcuts-three span {
  color: var(--copper-dark);
  font-size: 12.5px;
}

.home-page .home-surgery-shortcuts-three strong {
  font-size: 1.08rem;
}

.home-page .content .articles article {
  min-height: 0;
  height: auto;
  padding-bottom: 1.25rem;
}

.home-page .content .articles article h3 {
  min-height: 3.9em;
  margin: 1rem .75rem .8rem 0;
}

.home-page .content .articles article a {
  margin-top: auto;
}

.home-page .content-layout aside {
  align-self: start;
}

.home-page .reviews.reviews-single {
  display: block;
  padding-block: clamp(4.5rem, 7vw, 6.5rem);
}

.home-page .reviews-single .reviews-intro {
  width: min(960px, 100%);
  margin-inline: auto;
}

.home-page .reviews-single .reviews-intro h2 {
  max-width: 16ch;
  font-size: clamp(2.8rem, 4.7vw, 4.8rem);
}

.home-page .reviews-single .reviews-intro > p {
  max-width: 54rem;
}

.home-page .reviews-single .reviews-actions {
  display: flex;
  width: min(760px, 100%);
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  margin-top: 2rem;
}

.home-page .reviews-single .reviews-actions > span:nth-of-type(2) {
  flex-basis: 100%;
}

.home-page .reviews-single .reviews-actions .button {
  min-width: 220px;
}

.home-page .guide.guide-single {
  background: linear-gradient(135deg, #211d1a 0%, #171513 100%);
  border-top: 1px solid rgba(242, 215, 163, .22);
  border-bottom: 1px solid rgba(242, 215, 163, .14);
}

.home-page .guide-single .guide-intro > p {
  max-width: 48rem;
}

.home-page .guide-single .guide-options {
  gap: .8rem;
}

.home-page .guide-single .guide-options a {
  min-height: 68px;
  padding: .8rem .9rem;
  background: rgba(255, 255, 255, .018);
  border-color: rgba(242, 215, 163, .32);
}

.home-page .guide-single .guide-options a:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .home-page .home-surgery-shortcuts-three {
    grid-template-columns: 1fr;
  }

  .home-page .home-surgery-shortcuts-three a {
    min-height: 128px;
  }
}

@media (max-width: 760px) {
  .home-page .content .articles article h3 {
    min-height: 0;
  }

  .home-page .reviews-single .reviews-intro h2 {
    max-width: 100%;
    font-size: clamp(2.35rem, 10vw, 3rem);
  }

  .home-page .reviews-single .reviews-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .home-page .reviews-single .reviews-actions .button {
    width: 100%;
    min-width: 0;
  }

  .home-page .guide-single .guide-options a:last-child:nth-child(odd) {
    grid-column: auto;
  }
}

/* Auditoria móvel profunda — v54.
   Neutraliza regras antigas e genéricas de `nav` que atingiam os breadcrumbs,
   normaliza a primeira dobra e garante leitura/ações sem cortes em 320–760 px. */
@media (max-width: 1280px) {
  .breadcrumbs {
    position: static !important;
    inset: auto !important;
    z-index: auto;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100%;
    margin: 0 !important;
    background: var(--deep) !important;
    border-bottom: 1px solid rgba(242, 215, 163, .14);
  }

  .breadcrumbs > * { flex: 0 0 auto; }
}

/* Exceções cromáticas encontradas na varredura das 75 páginas. */
.home-page .finder-switch button:not(.active),
.home-page .finder-tabs button:not(.active) {
  color: var(--muted) !important;
}

.home-page .finder-switch button.active,
.home-page .finder-tabs button.active,
.home-page .finder-result .eyebrow,
.contact-page .contact-hero aside > span,
.hub-page .content-library.dark .eyebrow,
.hub-page .editorial-hero aside > span,
.faq-page .faq-content.dark .eyebrow,
.faq-page .faq-hero aside > span,
.journey-page .journey-timeline :is(.eyebrow, article span, article > b),
.profile-page :is(.profile-science, .profile-credentials) :is(.eyebrow, article span),
.surgical-page :is(.surgical-opinion, .surgical-shortcuts) :is(.eyebrow, article span, a > span) {
  color: var(--dark-accent-readable) !important;
}

.journey-page .journey-timeline article span,
.profile-page .science-photo-card div > span,
.surgical-page .surgical-shortcuts a > span,
.contact-page .contact-hero aside > span,
.hub-page .editorial-hero aside > span,
.faq-page .faq-hero aside > span {
  font-size: 12.5px !important;
  line-height: 1.4;
}

.home-page .finder-switch button.active,
.home-page .finder-tabs button.active {
  color: #fff !important;
}

.home-page .process li > span {
  color: var(--ink) !important;
}

.hub-page .content-library.dark a,
.faq-page .faq-content.dark a {
  color: var(--dark-accent-readable) !important;
}

.sports-page .sports-selector {
  color: var(--ink);
}

.sports-page .sports-selector :is(.eyebrow, h2) {
  color: var(--copper-dark) !important;
}

.sports-page .sports-selector p,
.sports-page .sports-selector article p {
  color: var(--muted) !important;
}

.structure-page .structure-resources :is(p, small),
.structure-page .validated-insurer-list :is(p, li) {
  color: var(--muted) !important;
}

@media (max-width: 760px) {
  :root {
    --mobile-gutter: 1.15rem;
    --mobile-section-space: 4rem;
    --safe-float-bottom: calc(1rem + env(safe-area-inset-bottom));
  }

  html {
    overflow-x: clip;
    scroll-padding-top: 88px;
  }

  body {
    min-width: 0;
    overflow-x: clip;
    font-size: 16px;
    line-height: 1.65;
  }

  .site-header {
    height: 80px;
    padding-inline: var(--mobile-gutter);
  }

  .site-header .brand {
    width: min(72vw, 255px);
    max-width: min(72vw, 255px);
  }

  .site-header .brand img {
    width: 100%;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
  }

  .menu-button {
    flex: 0 0 56px;
    width: 56px;
    min-height: 56px;
    padding: 0;
  }

  .site-header nav {
    top: 80px;
    max-height: calc(100dvh - 80px);
  }

  .breadcrumbs {
    min-height: 44px;
    padding: .72rem var(--mobile-gutter) !important;
    gap: .55rem !important;
    overflow-x: auto !important;
    overscroll-behavior-inline: contain;
    white-space: nowrap !important;
    scrollbar-width: none;
    font-size: 12.5px !important;
    line-height: 1.35;
  }

  .breadcrumbs::-webkit-scrollbar { display: none; }
  .breadcrumbs a { color: #d7cec7; }
  .breadcrumbs span { color: var(--dark-accent-readable); }
  .breadcrumbs strong { color: #fff; }

  main,
  main > section,
  main > article,
  main > div,
  main section > div,
  main section > aside {
    min-width: 0;
  }

  main :is(h1, h2, h3, p, li, a, button, summary, strong, span) {
    max-width: 100%;
  }

  main h1 {
    font-size: clamp(2.35rem, 10.5vw, 3.15rem);
    line-height: 1.02;
    letter-spacing: -.035em;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
  }

  .condition-page .condition-hero h1,
  .surgery-detail-page .surgery-detail-hero h1,
  .pain-sport-detail .ps-hero h1,
  .treatment-detail-page .tx-hero h1 {
    width: 100%;
    max-width: 100%;
    font-size: clamp(2.2rem, 9.6vw, 2.8rem);
    line-height: 1.04;
  }

  main h2,
  main h2:not(.hero h2),
  .condition-page h2,
  .surgery-detail-page h2,
  .pain-sport-detail h2,
  .treatment-detail-page h2 {
    max-width: 100%;
    font-size: clamp(2rem, 8.5vw, 2.65rem);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
  }

  main h3 {
    font-size: clamp(1.3rem, 5.8vw, 1.65rem);
    line-height: 1.22;
  }

  main :is(p, li) {
    font-size: 1rem;
    line-height: 1.65;
  }

  main :is(.eyebrow, article > span, article > b, .section-title-rule span) {
    font-size: 12.5px !important;
    line-height: 1.4;
  }

  .section,
  .inner-hero,
  .condition-hero,
  .surgery-detail-hero,
  .ps-hero,
  .tx-hero {
    padding: var(--mobile-section-space) var(--mobile-gutter);
  }

  .condition-hero,
  .surgery-detail-hero,
  .ps-hero,
  .tx-hero {
    min-height: 0;
    gap: 2.25rem;
    align-items: start;
  }

  :is(.condition-statement, .surgery-statement, .ps-statement, .tx-statement) {
    font-size: clamp(1.22rem, 5.5vw, 1.48rem) !important;
    line-height: 1.48 !important;
  }

  .condition-hero > div > p:not(.condition-statement),
  .surgery-detail-hero > div > p:not(.surgery-statement),
  .ps-hero > div > p:not(.ps-statement),
  .tx-hero > div > p:not(.tx-statement) {
    font-size: 1rem;
    line-height: 1.65;
  }

  main .actions {
    width: 100%;
    margin: 1.75rem 0 0;
    gap: 1rem;
    align-items: stretch;
  }

  main .actions .button {
    width: 100%;
    min-height: 54px;
    padding: .9rem 1rem;
    text-align: center;
  }

  main .actions .text-link {
    display: flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    text-align: center;
  }

  .condition-hero aside,
  .surgery-detail-hero aside,
  .ps-hero aside,
  .tx-hero aside {
    width: 100%;
    padding: 1.35rem;
  }

  main [class$="-grid"],
  main [class*="-grid "] {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  main :is(.split-heading, .condition-two-columns, .condition-causes,
    .condition-diagnosis, .condition-surgery, .condition-recovery,
    .surgery-purpose, .surgery-planning, .surgery-decision-detail,
    .surgery-recovery-detail, .ps-alerts, .ps-evaluation, .ps-goals,
    .tx-evaluation, .tx-indications, .tx-integrated, .tx-evidence,
    .tele-hero, .tele-prepare, .journey-prep) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 2rem;
  }

  main :is(img, video, iframe) {
    max-width: 100%;
  }

  main img:not([class*="hero"]):not([class*="cover"]) {
    height: auto;
  }

  main :is(table, pre) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
  }

  main :is(input, select, textarea) {
    max-width: 100%;
    font-size: 16px;
  }

  .floating {
    right: .85rem;
    bottom: var(--safe-float-bottom);
    width: 48px;
    height: 48px;
    z-index: 40;
    box-shadow: 0 8px 22px rgba(0, 0, 0, .26);
  }

  .floating svg {
    width: 21px;
    height: 21px;
  }

  .cookie-consent {
    right: .65rem;
    bottom: calc(.65rem + env(safe-area-inset-bottom));
    left: .65rem;
    width: auto;
  }
}

@media (max-width: 390px) {
  :root { --mobile-gutter: 1rem; }

  .site-header .brand {
    width: min(70vw, 225px);
    max-width: min(70vw, 225px);
  }

  main h1 { font-size: clamp(2.15rem, 10.8vw, 2.7rem); }

  .condition-page .condition-hero h1,
  .surgery-detail-page .surgery-detail-hero h1,
  .pain-sport-detail .ps-hero h1,
  .treatment-detail-page .tx-hero h1 {
    font-size: clamp(2.05rem, 10vw, 2.55rem);
  }
}

/* Home v59: somente alinhamento das avaliações e dimensão da fotografia cirúrgica. */
.home-page .reviews-single .reviews-intro {
  display: grid;
  justify-items: center;
  text-align: center;
}

.home-page .reviews-single .reviews-intro h2,
.home-page .reviews-single .reviews-intro > p {
  margin-inline: auto;
}

.home-page .reviews-single .reviews-actions {
  display: grid;
  grid-template-columns: repeat(2, 220px);
  justify-content: center;
  width: 100%;
}

.home-page .reviews-single .reviews-actions > strong {
  justify-self: end;
}

.home-page .reviews-single .reviews-actions > .stars {
  justify-self: start;
}

.home-page .reviews-single .reviews-actions > span:nth-of-type(2) {
  grid-column: 1 / -1;
  justify-self: center;
}

.home-page .reviews-single .reviews-actions .button {
  width: 220px;
  min-width: 220px;
}

@media (min-width: 761px) {
  .home-page .surgery-photo {
    min-height: 540px;
    max-height: 540px;
    align-self: center;
    background-position: center 28%;
  }
}

@media (max-width: 760px) {
  .home-page .reviews-single .reviews-actions {
    grid-template-columns: 1fr;
  }

  .home-page .reviews-single .reviews-actions > strong,
  .home-page .reviews-single .reviews-actions > .stars,
  .home-page .reviews-single .reviews-actions > span:nth-of-type(2) {
    grid-column: 1;
    justify-self: center;
  }

  .home-page .reviews-single .reviews-actions .button {
    width: 100%;
    min-width: 0;
  }
}

/* Home v60: ritmo vertical mais compacto entre seções, sem redimensionar o conteúdo. */
@media (min-width: 761px) {
  .home-page main > .section {
    padding-top: clamp(3.75rem, 5vw, 5rem);
    padding-bottom: clamp(3.75rem, 5vw, 5rem);
  }

  .home-page main > .reviews.reviews-single {
    padding-top: clamp(3.75rem, 5vw, 5rem);
    padding-bottom: clamp(3.75rem, 5vw, 5rem);
  }
}

@media (max-width: 760px) {
  .home-page main > .section {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .home-page main > .surgery {
    padding-top: 0;
  }

  .home-page main > .reviews.reviews-single {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }
}
