/* Shared layout for the English master and all translated editions. */
.cl-template-faithful .h8-hero-wrapper .h8-hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: start;
  gap: 38px 70px;
  width: 100%;
  max-width: 1200px !important;
  padding: 204px 0 64px !important;
}
.cl-template-faithful .h8-hero-title-wrapper {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 150px;
  grid-column: 1 / -1;
  align-items: center;
  gap: 34px;
  width: 100%;
  min-width: 0;
}
.cl-template-faithful .h8-hero-title {
  width: 100%;
  max-width: none !important;
  min-width: 0;
  margin: 0 !important;
  font-size: clamp(36px, 5vw, 78px) !important;
  line-height: 1.13 !important;
  letter-spacing: -.035em;
  text-wrap: initial;
  overflow-wrap: normal;
}
.cl-template-faithful .h8-hero-title .cl-hero-title-line {
  display: block;
  white-space: nowrap;
  width: 100%;
  max-width: 100%;
}
.cl-template-faithful .h8-hero-title .cl-mobile-title-break { display: none !important; }
.cl-template-faithful .h8-hero-circle {
  position: static !important;
  inset: auto !important;
  display: flex;
  justify-content: center;
  width: 150px;
  margin: 0 !important;
  transform: none !important;
}
.cl-template-faithful .h8-hero-circle .circle-wrap { width: 150px; height: 150px; }
.cl-template-faithful .h8-hero-circle .circle-wrap .rotate-image { width: 146px; height: 146px; }
.cl-template-faithful .h8-hero-circle .circle-wrap .logo-icon,
.cl-template-faithful .h8-hero-circle .logo-icon img { width: 84px; height: 84px; }
.cl-template-faithful .h8-hero-desc {
  position: static !important;
  inset: auto !important;
  grid-column: 1;
  width: 100%;
  max-width: 560px !important;
  margin: 0 !important;
  padding: 0;
  overflow: visible;
  text-align: left;
  font-size: 18px;
  line-height: 1.65;
}
.cl-template-faithful .h8-hero-desc p { margin: 0; }
.cl-template-faithful .h8-hero-desc-icon { margin-bottom: 12px; }
.cl-template-faithful .h8-hero-desc-icon i { font-size: 48px; }
.cl-template-faithful .h8-hero-banner {
  position: static !important;
  inset: auto !important;
  grid-column: 2;
  align-self: end;
  width: 100%;
  max-width: 360px !important;
  height: 240px;
  margin: 0 !important;
}
.cl-language-switcher {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 3px;
  margin-inline-start: 8px;
  padding: 3px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 24px;
  line-height: 1;
}
.cl-language-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  min-height: 30px;
  padding: 5px;
  border-radius: 20px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.cl-language-switcher a:hover,
.cl-language-switcher a:focus-visible { color: #fff; background: rgba(255,255,255,.15); }
.cl-language-switcher a[aria-current="page"] { color: #07172f; background: #fff; }
.hamburger-area .cl-language-switcher { margin: 20px 0 8px; }
.header-8 .header-wrapper { gap: 16px; }
.header-8 .site-logo { flex: 0 0 auto; }
html[lang="de"] .header-8 .mainmenu ul > li > a,
html[lang="ru"] .header-8 .mainmenu ul > li > a { font-size: 13px; }
html[lang="de"] .cl-prose,
html[lang="ru"] .cl-prose { overflow-wrap: anywhere; }
@media (max-width: 1279px) {
  .header-8 .mainmenu { display: none !important; }
  .header-8 .header-button { display: none !important; }
  .header-8 .mobile_menu_bar { display: inline-flex !important; }
  .header-8 .cl-language-switcher { margin-inline-start: auto; }
}
@media (max-width: 991px) {
  .cl-template-faithful .h8-hero-wrapper .h8-hero-content {
    padding-top: 178px !important;
    gap: 30px;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  }
  .cl-template-faithful .h8-hero-title-wrapper { grid-template-columns: minmax(0, 1fr) 112px; gap: 20px; }
  .cl-template-faithful .h8-hero-title { font-size: clamp(31px, 4.65vw, 48px) !important; }
  .cl-template-faithful .h8-hero-circle,
  .cl-template-faithful .h8-hero-circle .circle-wrap { width: 112px; height: 112px; }
  .cl-template-faithful .h8-hero-circle .circle-wrap .rotate-image { width: 108px; height: 108px; }
  .cl-template-faithful .h8-hero-circle .circle-wrap .logo-icon,
  .cl-template-faithful .h8-hero-circle .logo-icon img { width: 64px; height: 64px; }
}
@media (max-width: 767px) {
  .cl-template-faithful .h8-hero-wrapper .h8-hero-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding: 140px 0 42px !important;
  }
  .cl-template-faithful .h8-hero-title-wrapper { display: block; }
  .cl-template-faithful .h8-hero-title { font-size: clamp(23px, 6.2vw, 43px) !important; line-height: 1.2 !important; }
  .cl-template-faithful .h8-hero-title .cl-hero-title-line { text-align: center !important; }
  .cl-template-faithful .h8-hero-circle { margin: 22px auto 0 !important; }
  .cl-template-faithful .h8-hero-desc { grid-column: 1; max-width: 100% !important; font-size: 16px; }
  .cl-template-faithful .h8-hero-banner { grid-column: 1; justify-self: end; width: 100%; height: auto; aspect-ratio: 3 / 2; }
  .cl-template-faithful .h8-hero-banner img { width: 100%; height: 100%; }
  .header-8 .header-wrapper { gap: 8px; }
  .header-8 .site-logo .logo { width: clamp(124px, 38vw, 180px) !important; }
  .header-8 .cl-language-switcher { margin-inline-start: auto; gap: 0; padding: 2px; }
  .header-8 .cl-language-switcher a { min-width: 27px; min-height: 30px; padding: 4px; font-size: 11px; }
  .header-8 .cl-menu-label { display: none; }
  .header-8 .mobile_menu_bar { min-width: 32px; padding: 5px; }
}
/* Keep the original sans-serif heading style while web fonts load. */
:root { --tj-ff-heading: 'Libre Franklin', Arial, sans-serif; }
@media (min-width: 1280px) {
  .header-8 .header-wrapper { flex-wrap: nowrap; }
  .header-8 .mainmenu { flex: 0 1 auto; min-width: 0; margin-inline: auto 0 !important; }
  .header-8 .mainmenu > ul { display: flex; flex-wrap: nowrap; gap: 22px; }
  .header-8 .mainmenu > ul > li { margin-inline: 0 !important; }
  .header-8 .mainmenu > ul > li > a { white-space: nowrap; }
  .header-8 .header-button { flex: 0 0 auto; }
  .header-8 .cl-language-switcher { margin-inline-start: 0; }
}
@media (min-width: 1280px) and (max-width: 1599px) {
  .header-8 .site-logo .logo { width: 184px !important; }
  .header-8 .header-wrapper { gap: 12px; }
  .header-8 .mainmenu > ul { gap: 18px; }
  .header-8 .mainmenu > ul > li > a { font-size: 13px; }
  .header-8 .header-button .btn_text { font-size: 13px; }
  .header-8 .header-button .btn_text > span { padding-inline: 12px; }
}
@media (max-width: 767px) {
  .header-8 .topbar_note { font-size: 11px; line-height: 1.4; }
  .header-8 .topbar_note > a { display: none; }
}
/* A compact selector keeps all five language names accessible on small screens. */
details.cl-language-switcher {
  position: relative;
  display: block;
  width: 64px;
  padding: 0;
  color: #fff;
  background: #07172f;
  border-radius: 22px;
}
details.cl-language-switcher > summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px;
  border-radius: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}
details.cl-language-switcher > summary::-webkit-details-marker { display: none; }
details.cl-language-switcher > summary:focus-visible,
details.cl-language-switcher a:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.cl-language-arrow { width: 6px; height: 6px; border-right: 1.5px solid; border-bottom: 1.5px solid; transform: translateY(-2px) rotate(45deg); }
details.cl-language-switcher[open] .cl-language-arrow { transform: translateY(2px) rotate(225deg); }
.cl-language-options {
  position: absolute;
  z-index: 1001;
  top: calc(100% + 8px);
  right: 0;
  width: 180px;
  padding: 7px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  background: #07172f;
  box-shadow: 0 8px 26px rgba(0,0,0,.25);
}
details.cl-language-switcher:not([open]) > .cl-language-options { display: none; }
details.cl-language-switcher .cl-language-options a {
  display: flex;
  justify-content: flex-start;
  min-height: 38px;
  padding: 9px 12px;
  border-radius: 7px;
  font-size: 14px;
  line-height: 1.4;
}
.hamburger-area details.cl-language-switcher { width: 180px; }
.hamburger-area .cl-language-options { position: static; width: 100%; margin-top: 8px; }
html[lang="es"] .cl-prose,
html[lang="fr"] .cl-prose { overflow-wrap: anywhere; }
@media (max-width: 767px) {
  .header-8 details.cl-language-switcher { width: 60px; padding: 0; }
  .header-8 details.cl-language-switcher > summary { min-height: 34px; }
}
