
/* V33 language selection: compact and responsive */
.rle-lang{position:relative;margin-left:auto;flex-shrink:0;font:inherit;z-index:30}.rle-lang>button{font:inherit;display:flex;align-items:center;gap:7px;padding:7px 9px;border:1px solid #d7deea;border-radius:7px;background:#fff;color:#173f8b;cursor:pointer}.rle-lang>button:focus-visible,.rle-lang a:focus-visible{outline:2px solid #1958bb;outline-offset:2px}.rle-lang-panel{position:absolute;top:calc(100% + 5px);right:0;min-width:190px;padding:5px;background:#fff;border:1px solid #d7deea;border-radius:8px;box-shadow:0 8px 24px #0a21442b}.rle-lang-panel[hidden]{display:none}.rle-lang-panel a{display:flex;justify-content:space-between;gap:8px;padding:9px 12px;border-radius:5px;font-size:14px;text-decoration:none;color:#12356c;white-space:nowrap}.rle-lang-panel a:hover{background:#eff4fc}.rle-lang-globe{font-size:17px;line-height:1}.rle-lang-short{display:none}@media(max-width:760px){.header-row .rle-lang{margin-left:auto;margin-right:8px}.rle-lang>button{padding:8px 9px}.rle-lang-label,.rle-lang-arrow{display:none}.rle-lang-short{display:inline;font-size:11px}.rle-lang-panel{min-width:194px}.header-row .menu{flex-shrink:0}}

/* V33 mobile logo-only repair: keep the complete RLE mark inside the viewport.
   No product, translation, navigation or desktop styles are changed. */
@media (max-width:850px){
  .header .header-row{gap:8px;justify-content:space-between;min-width:0}
  .header .brand{min-width:0;flex:0 1 auto;gap:9px}
  .header .brand-motion{flex:0 0 90px;width:90px;min-width:90px;max-width:90px;overflow:visible}
  .header .brand-motion img{display:block;width:90px;min-width:90px;max-width:90px;height:auto;flex-shrink:0;object-fit:contain}
  .header .menu{flex:0 0 auto}
  .header .rle-lang{flex:0 0 auto;margin-left:0;margin-right:0}
}
@media (max-width:580px){
  .header .brand>span:last-child{display:none}
  .header .brand{flex:0 0 90px;width:90px;max-width:90px}
  .header .header-row{column-gap:8px}
  .header .menu{margin-left:auto}
}

/* V33 mobile-only header and viewport fit repair, Nov 2026.
   Keep logo, menu and language switch visible without horizontal overflow;
   preserve existing desktop styles and all content. */
@media screen and (max-width: 850px) {
  .header .header-row {
    display: grid !important;
    grid-template-columns: 90px minmax(0, 1fr) auto;
    column-gap: 8px !important;
    align-items: center;
    width: min(100% - 32px, var(--content-max, 1200px));
    max-width: 100%;
    min-width: 0;
    margin-inline: auto;
    box-sizing: border-box;
  }
  .header .brand { grid-column: 1; min-width: 0; width: 90px; max-width: 90px; overflow: visible; }
  .header .brand > span:last-child { display: none !important; }
  .header .brand-motion { flex: 0 0 90px; width: 90px; min-width: 90px; max-width: 90px; overflow: visible; }
  .header .brand-motion img { display: block; width: 90px; max-width: 90px; height: auto; }
  .header .menu { grid-column: 2; justify-self: end; margin: 0 !important; min-width: 42px; flex-shrink: 0; }
  .header .rle-lang { grid-column: 3; justify-self: end; margin: 0 !important; min-width: 0; max-width: 84px; }
  .header .rle-lang > button { box-sizing: border-box; max-width: 100%; }
  .approved-hero-frame { box-sizing: border-box; width: calc(100% - 32px) !important; max-width: 1200px; margin-inline: auto !important; }
  .approved-hero-frame > img { max-width: 100%; height: auto; }
  .container:not(.header-row) { box-sizing: border-box; max-width: 100%; }
}
@media screen and (max-width: 360px) {
  .header .header-row { grid-template-columns: 76px minmax(0, 1fr) auto; column-gap: 6px !important; }
  .header .brand, .header .brand-motion, .header .brand-motion img { width: 76px; min-width: 76px; max-width: 76px; }
  .header .brand-motion { flex-basis: 76px; }
  .header .rle-lang > button { padding: 6px 7px; }
}

/* V33 desktop navigation alignment only: align main menu nearer language selector.
   Mobile layouts <= 850px remain governed by the existing mobile rules above. */
@media screen and (min-width: 1100px) {
  .header .header-row > .nav {
    margin-left: auto;
  }
  .header .header-row > .rle-lang {
    margin-left: 12px;
  }
}

/* V33 mobile German About Us text overflow: scoped fix */
@media screen and (max-width: 850px) {
  .rv19 .rv19-hero-grid {grid-template-columns:minmax(0,1fr);max-width:100%}
  .rv19 .rv19-hero-grid > * {min-width:0;max-width:100%}
  .rv19 h1,.rv19 .rv19-lead,.rv19 .rv19-copy,.rv19 h2,.rv19 p {max-width:100%;overflow-wrap:anywhere;word-break:normal}
}

/* Keep the active indicator out of the navigation's layout. */
.header .nav > a { position: relative; }
.header .nav > a.active::after {
  position: absolute;
  inset-inline: 0;
  inset-block-start: 100%;
}

/* Keep the same header geometry before and after the language picker mounts. */
@media screen {
  html { scrollbar-gutter: stable; }

  html:lang(en) { --rle-language-label: "English"; --rle-language-short: "EN"; }
  html:lang(es) { --rle-language-label: "Español"; --rle-language-short: "ES"; }
  html:lang(pt-BR) { --rle-language-label: "Português (Brasil)"; --rle-language-short: "PT"; }
  html:lang(de) { --rle-language-label: "Deutsch"; --rle-language-short: "DE"; }
  html:lang(fr) { --rle-language-label: "Français"; --rle-language-short: "FR"; }
  html:lang(it) { --rle-language-label: "Italiano"; --rle-language-short: "IT"; }
  html:lang(pl) { --rle-language-label: "Polski"; --rle-language-short: "PL"; }

  .header .header-row { position: relative; }
  .header .header-row::after {
    content: "🌐 " var(--rle-language-label, "English") " ⌄";
    visibility: hidden;
    flex: none;
    margin-inline-start: auto;
    padding-inline: 10px;
    white-space: nowrap;
  }
  .header .header-row > .rle-lang {
    position: absolute;
    inset-inline-end: 0;
    inset-block: 0;
    block-size: max-content;
    margin-block: auto;
  }
}
@media screen and (min-width: 1100px) {
  .header .header-row::after { margin-inline-start: 12px; }
}
@media screen and (max-width: 850px) {
  .header .nav > a.active::after {
    inset-inline: 5px;
    inset-block-start: auto;
    inset-block-end: 5px;
    margin-top: 0;
  }
  .header .header-row::after {
    content: "";
    grid-column: 3;
    inline-size: 84px;
    margin: 0;
    padding: 0;
  }
  /* Keep the existing full-width mobile menu anchored to the sticky header. */
  .header .header-row { position: static; }
  .header .header-row > .rle-lang {
    grid-column: auto;
    top: 50%;
    bottom: auto;
    block-size: auto;
    inset-inline-end: max(16px, calc((100% - var(--content-max, 1200px)) / 2));
    transform: translateY(-50%);
  }
}
@media screen and (max-width: 760px) {
  .header .header-row::after {
    content: var(--rle-language-short, "EN");
    inline-size: auto;
    font-size: 11px;
    padding-inline: 22px;
  }
}
@media screen and (max-width: 360px) {
  .header .header-row::after { padding-inline: 20px; }
}

/* Match the inner-page logo baseline to the existing desktop homepage. */
@media screen and (min-width: 851px) and (hover: hover) and (pointer: fine) {
  .header .brand-motion > img { align-self: flex-start; }
}
