/* Polish-only editorial hierarchy. The scale mirrors the approved
   multilingual system and does not alter shared components or layout. */

html[lang="pl"] body[data-seo-locale="pl"][data-page] main h1 {
  font-size: clamp(3.25rem, 4.45vw, 4rem);
  line-height: 1.02;
  letter-spacing: -.025em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main h2 {
  font-size: clamp(2.25rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

/* The shared destinations topic panel intentionally uses display typography.
   Polish keeps it clearly subordinate to the concise page H1 at every width. */
html[lang="pl"] body[data-seo-locale="pl"][data-page="destinations"]:not([data-country]) main .topic-visual-destinations .topic-visual-copy h2 {
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.1;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main .pl-hero-primary-title {
  margin-bottom: 0;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main .pl-hero-subtitle {
  max-width: 34ch;
  margin: .8rem 0 28px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(1.26rem, 1.8vw, 1.53rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -.01em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
  text-wrap: balance;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main .pl-hero-subtitle span {
  display: inline;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page="home"] .hero .pl-hero-primary-title {
  font-size: clamp(3.5rem, 5vw, 4.25rem);
  line-height: .94;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] .brand-story-copy h2 {
  font-size: clamp(2.25rem, 3.2vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.02em;
  text-wrap: balance;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main h3 {
  font-size: clamp(1.375rem, 1.7vw, 1.625rem);
  line-height: 1.22;
  letter-spacing: -.012em;
  text-wrap: balance;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main h4 {
  font-size: clamp(1.125rem, 1.4vw, 1.3125rem);
  line-height: 1.3;
  text-wrap: balance;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main .editorial-section-subheading {
  max-width: 46ch;
  margin: .65rem 0 1.5rem;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.8vw, 1.625rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -.01em;
  text-wrap: balance;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main .editorial-section-subheading em {
  color: inherit;
  font-weight: inherit;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main :is(
  .page-cta,
  .about-section-head-dark,
  .about-final-cta,
  .academy-final-cta,
  .visa
) .editorial-section-subheading {
  color: rgba(238, 231, 215, .86);
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main .pl-section-heading {
  display: block;
  max-width: 34ch;
  margin: 0 0 2rem;
  font-size: clamp(2rem, 2.75vw, 2.5rem);
  line-height: 1.12;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main :is(
  .programme-card-back-title,
  .editorial-empty-state-title
) {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.01em;
  text-wrap: balance;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main :is(
  .destinations-section-lead,
  .country-uk-empty-title
) {
  font-size: clamp(1.0625rem, 1.25vw, 1.1875rem);
  line-height: 1.5;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main :is(
  .funding-country-card-title,
  .editorial-card-heading,
  .country-dossier-title
) {
  font-size: clamp(1.25rem, 1.6vw, 1.5rem);
  line-height: 1.22;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page="universities"] main .catalogue-note-title {
  margin: 0;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(1.25rem, 1.5vw, 1.4rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.01em;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] :is(
  .hero-description,
  .inner-hero-side > p,
  .country-page-title > div:last-child > p,
  .about-hero-intro,
  .academy-catalogue-copy > p:not(.section-index),
  .careers-hero-lead,
  .contact-copy > p:not(.section-index),
  .section-head > p:last-child,
  .topic-visual-copy > p,
  .brand-story-copy > p:not(.section-index),
  .page-cta > div > p:last-child
) {
  max-width: 68ch;
  font-size: clamp(1.125rem, 1.35vw, 1.25rem);
  line-height: 1.6;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main p {
  text-wrap: pretty;
}

html[lang="pl"] body[data-seo-locale="pl"][data-page] main :is(
  p,
  h3,
  h4,
  li,
  a,
  b,
  small
) {
  overflow-wrap: break-word;
  word-break: normal;
}

html[lang="pl"] body[data-seo-locale="pl"] .country-page-country-label {
  display: block;
  margin: 25px 0 22px;
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
}

html[lang="pl"] body[data-seo-locale="pl"] .country-page-country-label + h1 {
  margin-top: 0;
}

/* Semantic-only tag corrections retain the established component styling. */
html[lang="pl"] body[data-seo-locale="pl"] .programme-card-back .programme-card-heading {
  min-height: 0;
  margin: 44px 0 18px;
  color: var(--burgundy);
  font-family: var(--serif);
  font-size: clamp(1.375rem, 1.7vw, 1.625rem);
  font-weight: 400;
  line-height: 1.22;
  letter-spacing: -.012em;
  text-wrap: balance;
}

html[lang="pl"] body[data-seo-locale="pl"] .contact-card .contact-card-heading {
  margin: 24px 0 12px;
  font-family: var(--serif);
  font-size: 2.25rem;
  font-weight: 400;
  line-height: 1.2;
}

html[lang="pl"] body[data-seo-locale="pl"] .academy-course-empty .academy-course-empty-title {
  margin: 18px 0 10px;
  font-family: var(--serif);
  font-size: 2.2rem;
  font-weight: 400;
  line-height: 1.2;
}

/* Polish explanatory copy needs one additional line on the funding cards. */
html[lang="pl"] body[data-seo-locale="pl"][data-page="funding"] :is(
  .funding-layer-card,
  .funding-layer-inner
) {
  min-height: 320px;
}

@media (min-width: 761px) and (max-width: 900px) {
  html[lang="pl"] body[data-seo-locale="pl"][data-page] main h1,
  html[lang="pl"] body[data-seo-locale="pl"][data-page="home"] .hero .pl-hero-primary-title {
    font-size: 2.75rem;
    line-height: 1.04;
    letter-spacing: -.02em;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page] main h2,
  html[lang="pl"] body[data-seo-locale="pl"][data-page] .brand-story-copy h2 {
    font-size: 2rem;
    line-height: 1.12;
    letter-spacing: -.015em;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page] main .pl-hero-subtitle {
    font-size: 1.375rem;
    line-height: 1.16;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page="destinations"][data-country] main .country-page-title .pl-hero-primary-title {
    font-size: 2.25rem;
    line-height: 1.06;
  }
}

@media (max-width: 760px) {
  html[lang="pl"] body[data-seo-locale="pl"][data-page] main h1,
  html[lang="pl"] body[data-seo-locale="pl"][data-page="home"] .hero .pl-hero-primary-title {
    font-size: clamp(2.375rem, 10.5vw, 2.75rem);
    line-height: 1.04;
    letter-spacing: -.02em;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page="academy"] .academy-catalogue-hero > * {
    min-width: 0;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page="academy"] :is(
    .academy-catalogue-copy,
    .academy-current-board
  ) {
    width: 100%;
    max-width: 100%;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page="academy"] .academy-catalogue-copy h1 {
    font-size: clamp(2.05rem, 8.8vw, 2.625rem);
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page] main h2,
  html[lang="pl"] body[data-seo-locale="pl"][data-page] .brand-story-copy h2 {
    font-size: clamp(1.75rem, 8vw, 2.125rem);
    line-height: 1.12;
    letter-spacing: -.015em;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page] main .pl-hero-subtitle {
    font-size: clamp(1.1875rem, 5.25vw, 1.375rem);
    line-height: 1.16;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page] main h3 {
    font-size: clamp(1.25rem, 5.6vw, 1.4375rem);
    line-height: 1.25;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page] main h4 {
    font-size: clamp(1.0625rem, 4.8vw, 1.1875rem);
    line-height: 1.3;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page] main .editorial-section-subheading {
    margin: .55rem 0 1.25rem;
    font-size: clamp(1.125rem, 5vw, 1.3125rem);
    line-height: 1.22;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page] main .pl-section-heading {
    margin-bottom: 1.5rem;
    font-size: clamp(1.625rem, 7vw, 1.9375rem);
    line-height: 1.16;
  }

  html[lang="pl"] body[data-seo-locale="pl"][data-page] :is(
    .hero-description,
    .inner-hero-side > p,
    .country-page-title > div:last-child > p,
    .about-hero-intro,
    .academy-catalogue-copy > p:not(.section-index),
    .careers-hero-lead,
    .contact-copy > p:not(.section-index),
    .section-head > p:last-child,
    .topic-visual-copy > p,
    .brand-story-copy > p:not(.section-index),
    .page-cta > div > p:last-child
  ) {
    font-size: clamp(1.0625rem, 4.5vw, 1.125rem);
    line-height: 1.62;
  }

  html[lang="pl"] body[data-seo-locale="pl"] .programme-card-back .programme-card-heading {
    margin-top: 36px;
    font-size: clamp(1.25rem, 5.6vw, 1.4375rem);
    line-height: 1.25;
  }

  html[lang="pl"] body[data-seo-locale="pl"] .contact-card .contact-card-heading {
    font-size: 2rem;
    line-height: 1.12;
  }
}
