/*
 * GUGA Portuguese editorial layer (pt-BR).
 * Scoped to the reviewed 18-page core; frozen article pages never load it.
 */

html[lang="pt"] body[data-heading-contract="editorial-v1"] main :is(
  .programme-card-heading,
  .editorial-empty-state-title,
  .destinations-section-lead,
  .contact-card-kicker
) {
  margin: 0;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  line-height: inherit;
  text-transform: inherit;
}

html[lang="pt"] body[data-heading-contract="editorial-v1"] main .pt-budget-country-title,
html[lang="pt"] body[data-heading-contract="editorial-v1"] main .pt-destination-card-title {
  margin: 0;
}

html[lang="pt"] body[data-heading-contract="editorial-v1"] main .country-page-title h1 {
  max-width: 18ch;
}

/* The shared legacy layouts contain more-specific oversized selectors. The
 * reviewed Portuguese contract owns the hierarchy on all 18 core pages. */
html[lang="pt"] body[data-heading-contract="editorial-v1"] main h1 {
  font-size: var(--guga-type-h1) !important;
  line-height: 1.02 !important;
  letter-spacing: -.025em !important;
}

html[lang="pt"] body[data-heading-contract="editorial-v1"] main h2:not([data-heading-role="hero-slogan"]) {
  font-size: var(--guga-type-h2) !important;
  line-height: 1.1 !important;
}

html[lang="pt"] body[data-heading-contract="editorial-v1"] main h3 {
  font-size: var(--guga-type-h3) !important;
  line-height: 1.22 !important;
}

html[lang="pt"] body[data-heading-contract="editorial-v1"] main h2[data-heading-role="hero-slogan"] {
  font-size: var(--guga-type-hero-slogan) !important;
  line-height: 1.18 !important;
}

html[lang="pt"] body[data-heading-contract="editorial-v1"] main .editorial-hero-subheading,
html[lang="pt"] body[data-heading-contract="editorial-v1"] main .about-hero-subheading,
html[lang="pt"] body[data-heading-contract="editorial-v1"] main .hero-subheading {
  max-width: 34ch;
}

@media (max-width: 760px) {
  html[lang="pt"] body[data-heading-contract="editorial-v1"] main h1 {
    font-size: var(--guga-type-h1-mobile) !important;
    line-height: 1.04 !important;
  }

  html[lang="pt"] body[data-heading-contract="editorial-v1"] main h2:not([data-heading-role="hero-slogan"]) {
    font-size: var(--guga-type-h2-mobile) !important;
    line-height: 1.12 !important;
  }

  html[lang="pt"] body[data-heading-contract="editorial-v1"] main h3 {
    font-size: var(--guga-type-h3-mobile) !important;
    line-height: 1.25 !important;
  }

  html[lang="pt"] body[data-heading-contract="editorial-v1"] main h2[data-heading-role="hero-slogan"] {
    font-size: var(--guga-type-hero-slogan-mobile) !important;
    line-height: 1.22 !important;
  }

  html[lang="pt"] body[data-heading-contract="editorial-v1"] main .country-page-title h1 {
    max-width: 16ch;
  }
}
