/* R11 localisation-only review layer; no redesign. */
.tt-language-switch{position:relative;display:inline-flex;align-items:center;justify-content:center;flex:none;gap:6px;min-width:54px;min-height:44px;padding:0 8px;border:1px solid rgba(255,255,255,.2);border-radius:3px;color:inherit;font:700 11px var(--body,Arial,sans-serif);letter-spacing:.05em;line-height:1;cursor:pointer}
.tt-language-switch:hover{border-color:var(--orange,#f2621b)}.tt-language-switch:focus-within{outline:2px solid var(--orange,#f2621b);outline-offset:3px}.tt-language-arrow{font-size:12px;opacity:.7}
.tt-language-select{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:44px!important;margin:0!important;padding:0!important;opacity:0!important;cursor:pointer;z-index:1;font:inherit}.tt-language-select{color-scheme:dark}.tt-language-select option{color:#f4f4f2;background:#12171a;font:14px Arial,sans-serif}.tt-i18n-enabled .header-tools{flex:none}
@media(max-width:1100px) and (min-width:821px){.tt-i18n-enabled .header-inner{gap:18px}.tt-i18n-enabled .header-tools{gap:10px}}
@media(max-width:760px){.tt-language-switch{min-width:48px;padding:0 6px;gap:4px}.tt-i18n-enabled .header-tools{gap:8px}}
@media(max-width:480px){.tt-i18n-enabled .header-inner{gap:8px}.tt-i18n-enabled .header-tools{gap:6px}.tt-i18n-enabled .brand-lockup{width:116px}.tt-i18n-enabled .header-contact.btn{font-size:9px;padding:8px;gap:5px;letter-spacing:0;white-space:nowrap}.tt-i18n-enabled .header-contact .arrow{display:none}.tt-language-switch{min-width:44px;padding:0 5px}}
@media(max-width:360px){.tt-i18n-enabled .brand-lockup{width:94px}.tt-i18n-enabled .header-tools{gap:4px}.tt-i18n-enabled .header-contact.btn{font-size:8px;padding:6px}.tt-i18n-enabled .menu-btn{width:36px;min-width:36px}}
html[data-tt-language]:not([data-tt-language="en"]) .legal-draft .h1,html[data-tt-language]:not([data-tt-language="en"]) .mr-oe-title{overflow-wrap:anywhere;hyphens:auto}
html[data-tt-language]:not([data-tt-language="en"]) .mr-oe-layout>div,html[data-tt-language]:not([data-tt-language="en"]) .closing-copy{min-width:0}
html[data-tt-language]:not([data-tt-language="en"]) .closing-title span{white-space:normal}
html[data-tt-language]:not([data-tt-language="en"]) .mr-oe-steps .benefit-card{min-width:0;overflow-wrap:anywhere;hyphens:auto}

/* R11: wrap translated headings; preserve fonts, colours and grid structure. */
html[data-tt-language]:not([data-tt-language="en"]) #main :is(.h1,.h2,.h3){overflow-wrap:anywhere;hyphens:auto}
html[data-tt-language]:not([data-tt-language="en"]) .benefit-grid>.benefit-card,html[data-tt-language]:not([data-tt-language="en"]) .partner-path,html[data-tt-language]:not([data-tt-language="en"]) .about-story-copy{min-width:0;overflow-wrap:anywhere;hyphens:auto}
html[data-tt-language]:not([data-tt-language="en"]) .partner-path .btn{max-width:100%;white-space:normal}

/* R11.1 / heading legibility and responsive localisation. 22 November 2026.
   This is an additive layer for the existing R11 CSS, not a new layout.
   EN/DE/SK/PL: give accented capitals enough vertical space and allow text
   to wrap at natural word boundaries instead of compressing glyphs. */
html.tt-i18n-enabled #main :is(.h1,.h2,.display,.closing-title){
  line-height:1.12;
  letter-spacing:-.022em;
  text-wrap:balance;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:auto;
}
html.tt-i18n-enabled #main .h3{
  line-height:1.2;
  letter-spacing:-.012em;
  text-wrap:balance;
  overflow-wrap:break-word;
  word-break:normal;
  hyphens:auto;
}
/* Existing hard-coded no-wrap lines may be longer after translation. */
html.tt-i18n-enabled #main :is(.martin-home .hero-copy .h1,.closing-title) span{
  white-space:normal;
}
html.tt-i18n-enabled #main :is(.hero-copy,.page-hero-copy,.mr-catalog-copy,.engineering-copy,.closing-copy,.about-story-copy,.section-heading,.partner-path,.mr-contact-info){
  min-width:0;
}
html.tt-i18n-enabled #main .partners-intro .h2{white-space:normal;}

/* Longer German, Slovak and Polish headings use slightly smaller display sizes;
   English retains its original scale, with less cramped leading and tracking. */
html.tt-i18n-enabled[data-tt-language]:not([data-tt-language="en"]) .martin-home .hero-copy .h1:not([translate="no"]){
  font-size:clamp(43px,5.3vw,78px);
}
html.tt-i18n-enabled[data-tt-language]:not([data-tt-language="en"]) .martin-spec-layout .engineering-copy .h2{
  font-size:clamp(32px,3.0vw,50px);
}
html.tt-i18n-enabled[data-tt-language]:not([data-tt-language="en"]) .mr-catalog-copy .h1{
  font-size:clamp(39px,4.8vw,72px);
}
html.tt-i18n-enabled[data-tt-language]:not([data-tt-language="en"]) .martin-page-hero.page-hero .h1{
  font-size:clamp(38px,4.4vw,64px);
}
html.tt-i18n-enabled[data-tt-language]:not([data-tt-language="en"]) .closing-copy .closing-title{
  font-size:clamp(24px,3vw,43px);
}
/* Explanatory text must also remain readable as cards become narrower. */
html.tt-i18n-enabled #main :is(.eyebrow,.lead,.benefit-card p,.closing-copy p){
  overflow-wrap:break-word;
}
html.tt-i18n-enabled[data-tt-language]:not([data-tt-language="en"]) #main .eyebrow{
  letter-spacing:.18em;
  line-height:1.5;
}

@media (max-width:760px){
  html.tt-i18n-enabled #main :is(.h1,.h2,.display,.closing-title){
    line-height:1.16;
    letter-spacing:-.014em;
  }
  html.tt-i18n-enabled #main .h3{line-height:1.24;letter-spacing:-.008em}
  html.tt-i18n-enabled #main .martin-home .hero-copy .h1{
    font-size:clamp(34px,9vw,58px);
  }
  html.tt-i18n-enabled #main .martin-spec-layout .engineering-copy .h2{
    font-size:clamp(28px,7.5vw,41px);
  }
  html.tt-i18n-enabled #main .mr-catalog-copy .h1{
    font-size:clamp(33px,8.3vw,54px);
  }
  html.tt-i18n-enabled #main .martin-page-hero.page-hero .h1{
    font-size:clamp(31px,8vw,52px);
  }
  html.tt-i18n-enabled #main .closing-copy .closing-title{
    font-size:clamp(24px,6vw,33px);
  }
}
@media(max-width:390px){
  html.tt-i18n-enabled #main :is(.h1,.h2,.h3,.display,.closing-title){
    letter-spacing:0;
    overflow-wrap:break-word;
  }
}
/* Override R11's old overflow-wrap:anywhere on translated headings, which
   could split ordinary words prematurely even when a natural line break fits. */
html.tt-i18n-enabled[data-tt-language]:not([data-tt-language="en"]) #main :is(.h1,.h2,.h3){
  overflow-wrap:break-word;
  word-break:normal;
}

/* R11 E: prevent narrow homepage programme text from widening the page. */
@media(max-width:360px){
  html.tt-i18n-enabled #main .range-top{grid-template-columns:minmax(0,1fr)}
  html.tt-i18n-enabled #main .range-top>div{min-width:0}
  html.tt-i18n-enabled #main .range-top .h2{overflow-wrap:anywhere}
}
