:root {
  --ksg-font-sans: "Archivo", Arial, sans-serif;
  --ksg-type-h1-size: 48px;
  --ksg-type-h1-line: 56px;
  --ksg-type-h2-size: 40px;
  --ksg-type-h2-line: 48px;
  --ksg-type-h3-size: 32px;
  --ksg-type-h3-line: 40px;
  --ksg-type-eyebrow-size: 14px;
  --ksg-type-eyebrow-line: 20px;
  --ksg-type-body-size: 16px;
  --ksg-type-body-line: 28px;
  --ksg-type-lead-size: 20px;
  --ksg-type-lead-line: 29px;
  --ksg-type-cta-size: 16px;
}

html,
body,
input,
select,
button,
textarea {
  font-family: var(--ksg-font-sans) !important;
}

body {
  font-size: var(--ksg-type-body-size);
  line-height: var(--ksg-type-body-line);
  font-weight: 400;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.font-3xl, .font-2xl, .font-xl, .font-lg, .font-md, .font-sm, .font-xs, .font-xxs,
.font-3xl-bold, .font-2xl-bold, .font-xl-bold, .font-lg-bold, .font-md-bold, .font-sm-bold, .font-xs-bold {
  font-family: var(--ksg-font-sans) !important;
}

h1, .h1 {
  font-size: var(--ksg-type-h1-size) !important;
  line-height: var(--ksg-type-h1-line) !important;
  font-weight: 700 !important;
  letter-spacing: -0.025em !important;
  font-stretch: 112%;
}

h2, .h2 {
  font-size: var(--ksg-type-h2-size) !important;
  line-height: var(--ksg-type-h2-line) !important;
  font-weight: 700 !important;
  letter-spacing: -0.022em !important;
  font-stretch: 110%;
}

h3, .h3 {
  font-size: var(--ksg-type-h3-size) !important;
  line-height: var(--ksg-type-h3-line) !important;
  font-weight: 600 !important;
  letter-spacing: -0.018em !important;
}

h4, .h4 {
  font-size: 26px !important;
  line-height: 34px !important;
  font-weight: 600 !important;
}

h5, .h5 {
  font-size: 22px !important;
  line-height: 30px !important;
  font-weight: 600 !important;
}

h6, .h6 {
  font-size: 18px !important;
  line-height: 25px !important;
  font-weight: 600 !important;
}

.font-3xl { font-size: 30px !important; line-height: 40px !important; }
.font-2xl { font-size: 24px !important; line-height: 34px !important; }
.font-xl { font-size: 20px !important; line-height: 30px !important; }
.font-lg { font-size: 18px !important; line-height: 28px !important; }
.font-md { font-size: 16px !important; line-height: 28px !important; }
.font-sm { font-size: 14px !important; line-height: 22px !important; }
.font-xs { font-size: 12px !important; line-height: 18px !important; }

.font-3xl-bold { font-size: 30px !important; line-height: 38px !important; font-weight: 700 !important; }
.font-2xl-bold { font-size: 24px !important; line-height: 32px !important; font-weight: 700 !important; }
.font-xl-bold { font-size: 20px !important; line-height: 28px !important; font-weight: 700 !important; }
.font-lg-bold { font-size: 18px !important; line-height: 26px !important; font-weight: 700 !important; }
.font-md-bold { font-size: 16px !important; line-height: 24px !important; font-weight: 700 !important; }
.font-sm-bold { font-size: 14px !important; line-height: 20px !important; font-weight: 700 !important; }
.font-xs-bold { font-size: 12px !important; line-height: 18px !important; font-weight: 700 !important; }

.btn-tag,
.eyebrow,
[class*="-eyebrow"],
.ksg-section-eyebrow {
  font-family: var(--ksg-font-sans) !important;
  font-size: var(--ksg-type-eyebrow-size) !important;
  line-height: var(--ksg-type-eyebrow-line) !important;
  font-weight: 600 !important;
  letter-spacing: 0.04em !important;
}

.btn,
.btn-link,
.btn-link-medium,
.btn-brand-1,
.btn-brand-2,
.btn-brand-1-big,
.btn-brand-2-big,
.ksg-solution-btn {
  font-family: var(--ksg-font-sans) !important;
}

.btn-link,
.btn-link-medium,
.ksg-solution-btn {
  font-size: var(--ksg-type-cta-size) !important;
}

.ksg-navigation,
.ksg-navigation a,
.header,
.header a,
.mobile-header-wrapper-style,
.mobile-header-wrapper-style a,
.footer,
.footer a {
  font-family: var(--ksg-font-sans) !important;
}

/* Long-form intro copy may opt into the DP World-like 20px lead scale. */
.ksg-lead,
.lead,
.content-detail > p:first-of-type {
  font-size: var(--ksg-type-lead-size) !important;
  line-height: var(--ksg-type-lead-line) !important;
}

/* Spanish strings are commonly longer than their EN/TR counterparts. Keep
   headings and commercial CTAs inside their components without shrinking the
   site-wide type scale or affecting the other locales. */
body[data-locale="es"] main :is(h1, h2, h3, h4, h5, h6) {
  min-width: 0;
  overflow-wrap: break-word;
  hyphens: auto;
  text-wrap: balance;
}

body[data-locale="es"] main :is(.btn, button, [class*="cta"], [class*="card"]) {
  min-width: 0;
}

@media (min-width: 1200px) and (max-width: 1499.98px) {
  body[data-locale="es"] #site-header .ksg-desktop-navigation .main-menu > li > a {
    padding-right: 5px;
    padding-left: 5px;
    font-size: 12px;
  }

  body[data-locale="es"] #site-header .ksg-desktop-navigation .main-menu > li.has-children > a {
    padding-right: 18px;
  }
}

@media (max-width: 991.98px) {
  h1, .h1 {
    font-size: 42px !important;
    line-height: 50px !important;
  }

  h2, .h2 {
    font-size: 36px !important;
    line-height: 44px !important;
  }

  h3, .h3 {
    font-size: 28px !important;
    line-height: 36px !important;
  }
}

@media (max-width: 575.98px) {
  h1, .h1 {
    font-size: 36px !important;
    line-height: 43px !important;
    letter-spacing: -0.02em !important;
  }

  h2, .h2 {
    font-size: 30px !important;
    line-height: 38px !important;
  }

  h3, .h3 {
    font-size: 25px !important;
    line-height: 32px !important;
  }

  .btn-tag,
  .eyebrow,
  [class*="-eyebrow"],
  .ksg-section-eyebrow {
    font-size: 13px !important;
    line-height: 18px !important;
  }

  .ksg-lead,
  .lead,
  .content-detail > p:first-of-type {
    font-size: 18px !important;
    line-height: 27px !important;
  }

  body[data-locale="es"] main :is(.btn, .btn-link, .btn-link-medium, .btn-brand-1, .btn-brand-2, .btn-brand-1-big, .btn-brand-2-big) {
    height: auto;
    min-height: 46px;
    white-space: normal !important;
    line-height: 1.3 !important;
    text-align: center;
  }
}
