/* Multilingual controls remain separate from existing portfolio styles. */
.site-header .nav-row .fp1-language-picker{
  display:flex;align-items:center;gap:.45rem;flex-shrink:0;margin-left:.8rem;
}
.fp1-language-picker label{font-size:.78rem;color:#cad8f3;font-weight:600}
.fp1-language-picker select{
  color:#f6f9ff;background:#0c1b3f;border:1px solid #4867aa;
  border-radius:.6rem;max-width:146px;padding:.43rem .5rem;
  font-family:inherit;font-size:.82rem;line-height:1.5;cursor:pointer;
}
.fp1-language-picker select:focus-visible,
.fp1-language-hint button:focus-visible{outline:2px solid #69d0ff;outline-offset:3px}
.fp1-language-hint{
  display:flex;align-items:center;justify-content:center;gap:.75rem;
  padding:.6rem .9rem;background:#122653;color:#edf6ff;
  border-bottom:1px solid #456baa;font-size:.86rem;flex-wrap:wrap;text-align:center;
}
.fp1-language-hint button{
  border:1px solid #709be5;border-radius:.45rem;background:#174fbb;color:white;
  padding:.25rem .6rem;font:inherit;cursor:pointer;
}
.fp1-language-hint button:last-child{background:transparent}
@media(max-width:760px){
  .site-header .nav-row .fp1-language-picker{margin-left:auto;gap:0}
  .fp1-language-picker label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .fp1-language-picker select{max-width:123px;font-size:.77rem;padding:.35rem .2rem}
}

/* Responsive typography for translated headlines. Unlike English, several
   localized headlines contain longer unbreakable words. Keep the title inside
   its grid column rather than painting over the neighboring live-app preview. */
.home-page .home-hero::before{
  right:0; /* ambient glow must not create horizontal page scrolling */
}
.home-page .hero-copy{
  min-width:0;
}
.home-page .hero-copy h1 span{
  max-width:100%;
  min-width:0;
  overflow-wrap:break-word;
  hyphens:auto;
}
html:not([lang^="en"]) body.home-page .hero-copy h1{
  font-size:clamp(3.05rem,4.15vw,4.5rem);
  letter-spacing:-0.052em;
}
@media(max-width:1020px){
  html:not([lang^="en"]) body.home-page .hero-copy h1{
    font-size:clamp(3rem,6.7vw,4.5rem);
  }
}
@media(max-width:620px){
  html:not([lang^="en"]) body.home-page .hero-copy h1{
    font-size:clamp(2.55rem,10.5vw,3.5rem);
    line-height:1;
  }
}

/* On narrow phones, keep brand, menu and language controls in one row. */
@media(max-width:360px){
  .site-header .nav-row{gap:.35rem}
  .site-header .brand{min-width:0;gap:.4rem}
  .site-header .brand-mark{width:34px;height:34px;flex-basis:34px;border-radius:10px}
  .site-header .brand-copy strong{font-size:.83rem;white-space:nowrap}
  .site-header .nav-toggle{width:36px;height:36px;flex:0 0 36px}
  .site-header .nav-row .fp1-language-picker{margin-left:0}
  .fp1-language-picker select{max-width:94px;font-size:.7rem;padding:.3rem .15rem}
}
@media(max-width:360px){
  .home-page .showcase-window{min-height:470px}
}

/* All five rotating preview panels must fit, including the longest translations. */
@media(min-width:361px) and (max-width:420px){
  .home-page .showcase-window{min-height:440px}
}

/* Headings containing Dutch/German compound words must not widen the section. */
.home-page .home-apps-section,
.home-page .home-section-head,
.home-page .home-section-head h2{
  min-width:0;
  max-width:100%;
}
.home-page .home-section-head h2{
  overflow-wrap:break-word;
  hyphens:auto;
}

/* Prevent narrow-phone support and policy text from forcing grid tracks wider
   than the screen (including long contact addresses and compound words). */
@media(max-width:520px){
  .support-page .support-main > *,
  .support-page .support-hero-copy,
  .support-page .support-hero-v2,
  .support-page .support-response-row,
  .legal-layout,
  .legal-document,
  .legal-document .callout{min-width:0;max-width:100%}
  .support-page .support-hero-v2{grid-template-columns:minmax(0,1fr)}
  .support-page .support-main h1,
  .support-page .support-main h2{overflow-wrap:break-word;hyphens:auto}
  .support-page .support-response-row{grid-template-columns:minmax(0,1fr)}
  .support-page .support-response-row span{min-width:0;overflow-wrap:break-word}
  .legal-document ul,.legal-document ol{grid-template-columns:minmax(0,1fr)}
  .legal-document li{min-width:0;overflow-wrap:break-word}
  .legal-document a[href^="mailto:"]{overflow-wrap:anywhere}
}
@media(max-width:520px){
  .support-page .support-main a.text-link{
    max-width:100%;
    overflow-wrap:anywhere;
    white-space:normal;
  }
}

/* Long legal titles and translated setup instructions must wrap on phones. */
@media(max-width:520px){
  body:not(.home-page) main .page-hero,
  body:not(.home-page) main .page-hero h1{
    min-width:0;
    max-width:100%;
    overflow-wrap:anywhere;
    hyphens:auto;
  }
  .legal-document :is(h2,h3,p,address,li,a){
    min-width:0;
    overflow-wrap:anywhere;
    hyphens:auto;
  }
  .product-page .product-main li{
    min-width:0;
    overflow-wrap:anywhere;
    hyphens:auto;
  }
}

/* Preserve headline hierarchy after translated hero titles were made smaller
   for safe column wrapping. Section titles must not upstage the page H1. */
html body.home-page .home-section-head h2{
  font-size:clamp(2.2rem,3.25vw,3.45rem);
  line-height:1.04;
  letter-spacing:-0.045em;
}
