/*
 * Romanian editorial layer v1.
 *
 * Loaded only by the 18 reviewed Romanian core pages. Article pages remain
 * on their frozen production stylesheet and never receive this locale layer.
 */

html[lang="ro"] body[data-heading-contract="editorial-v1"] {
  --guga-ro-reading-width: 68ch;
  --guga-ro-h4: clamp(1.05rem, 1.25vw, 1.2rem);
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] h1 {
  max-width: 18ch;
  font-size: var(--guga-type-h1) !important;
  overflow-wrap: normal;
  hyphens: none;
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] h2:not([data-heading-role="hero-slogan"]) {
  max-width: 27ch;
  font-size: var(--guga-type-h2) !important;
  overflow-wrap: normal;
  hyphens: none;
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] h3 {
  max-width: 36ch;
  font-size: var(--guga-type-h3) !important;
  overflow-wrap: normal;
  hyphens: none;
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] h2[data-heading-role="hero-slogan"] {
  max-width: 34ch;
  font-size: var(--guga-type-hero-slogan) !important;
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] main h4 {
  max-width: 44ch;
  font-size: var(--guga-ro-h4);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.006em;
  text-wrap: balance;
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] main :is(p, li) {
  line-height: 1.65;
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] main :is(.hero-copy, .inner-hero-copy, .about-hero-copy, .contact-hero-copy) > p {
  max-width: var(--guga-ro-reading-width);
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] .programme-card-heading,
html[lang="ro"] body[data-heading-contract="editorial-v1"] .editorial-empty-state-title,
html[lang="ro"] body[data-heading-contract="editorial-v1"] .contact-card-kicker {
  margin: 0;
  font: inherit;
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] .ro-budget-country-title {
  max-width: 25ch;
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] .ro-destination-card-title {
  max-width: 30ch;
}

html[lang="ro"] body[data-heading-contract="editorial-v1"] .university-country-head h2 {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--serif);
  font-weight: 400;
}

html[lang="ro"] body[data-heading-contract="editorial-v1"][data-page="contact"] .contact-card .socials a {
  border-color: rgba(238, 231, 215, .42);
  color: var(--cream);
  text-shadow: 0 1px 10px rgba(0, 0, 0, .72);
}

html[lang="ro"] body[data-heading-contract="editorial-v1"][data-page="contact"] .site-header:not(.scrolled) .careers-header-button {
  border-color: var(--line);
  color: var(--burgundy);
}

html[lang="ro"] body[data-heading-contract="editorial-v1"][data-page="contact"] .site-header:not(.scrolled) .careers-header-button:hover,
html[lang="ro"] body[data-heading-contract="editorial-v1"][data-page="contact"] .site-header:not(.scrolled) .careers-header-button[aria-current="page"] {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--cream);
}

@media (min-width: 761px) and (max-width: 900px) {
  html[lang="ro"] body[data-heading-contract="editorial-v1"][data-page="resources"] main h1 {
    max-width: 17ch;
    font-size: 2.75rem !important;
  }
}

@media (max-width: 760px) {
  html[lang="ro"] body[data-heading-contract="editorial-v1"] .language-switch select {
    width: 170px;
  }

  html[lang="ro"] body[data-heading-contract="editorial-v1"] h1 {
    max-width: 15ch;
    font-size: var(--guga-type-h1-mobile) !important;
  }

  html[lang="ro"] body[data-heading-contract="editorial-v1"] h2:not([data-heading-role="hero-slogan"]) {
    max-width: 23ch;
    font-size: var(--guga-type-h2-mobile) !important;
  }

  html[lang="ro"] body[data-heading-contract="editorial-v1"] h2[data-heading-role="hero-slogan"] {
    max-width: 29ch;
    font-size: var(--guga-type-hero-slogan-mobile) !important;
  }

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