.language-switch{position:relative;flex:0 0 auto;color:#e6edf0;font-size:.8rem;z-index:65;margin-left:6px}
.language-switch summary{display:flex;align-items:center;justify-content:center;gap:8px;min-width:66px;min-height:44px;padding:8px;cursor:pointer;list-style:none;border:1px solid #697984;border-radius:3px;letter-spacing:.06em}
.language-switch summary::-webkit-details-marker{display:none}
.language-switch summary:hover,.language-switch[open] summary{background:#1b2b34;border-color:#99d8ee}
.language-options{position:absolute;right:0;top:calc(100% + 10px);display:grid;min-width:176px;background:#101c24;border:1px solid #536c7c;box-shadow:0 12px 30px #0006;padding:6px;border-radius:4px}
.language-options a{display:block;min-height:44px;padding:10px 14px;white-space:nowrap;color:#e6edf0}
.language-options a:hover,.language-options a[aria-current=true]{background:#253b47;color:#b5e6f8}
.language-switch :focus-visible{outline:2px solid #b5e6f8;outline-offset:3px}
.language-reset-status{display:block;margin-top:12px}
.header .menu-toggle{flex:0 0 44px;flex-direction:column;align-items:center;justify-content:center;gap:6px}
.header .menu-toggle span{width:24px;height:2px;margin:0;flex:0 0 2px}
html:not([lang="pt-PT"]) .header{gap:16px;padding-inline:4%}
html:not([lang="pt-PT"]) .desktop-nav{gap:16px;font-size:.8rem}
html:not([lang="pt-PT"]) .hero h1{font-size:clamp(3.5rem,5.7vw,6.6rem);max-width:760px}
html:not([lang="pt-PT"]) .hero h1 em{white-space:normal}
html:not([lang="pt-PT"]) :is(h1,h2,h3,.button,.wizard-progress li){overflow-wrap:break-word;hyphens:auto}
@media(max-width:1500px){.header .desktop-nav{display:none}.header .menu-toggle{display:flex}.header .brand-logo{margin-right:auto}.header .button.small{margin-left:0}.header .language-switch{margin-left:0}.header{gap:16px}}
@media(max-width:700px){.header{gap:12px!important}.header .button.small{display:none}.header .brand-logo{max-width:140px}.language-switch summary{min-width:61px}.language-options{right:-40px}html:not([lang="pt-PT"]) .hero h1{font-size:clamp(2.75rem,10.4vw,4.5rem)}html:not([lang="pt-PT"]) .hero-actions{flex-wrap:wrap}html:not([lang="pt-PT"]) .hero-actions .button{white-space:normal}html:not([lang="pt-PT"]) .wizard-progress{gap:8px}html:not([lang="pt-PT"]) .wizard-progress li{font-size:.7rem}}

/* Country flags accompany language names; labels remain accessible. */
.language-options a{display:flex;align-items:center;gap:10px}
.language-flag{display:inline-flex;align-items:center;justify-content:center;width:24px;flex:0 0 24px;font-family:Apple Color Emoji,Segoe UI Emoji,Noto Color Emoji,sans-serif;font-size:20px;line-height:1;letter-spacing:0}

/* Keep the open language panel inside narrow foldable cover displays. */
@media(max-width:350px){.header .language-options{position:fixed;left:12px;right:12px;top:78px;min-width:0;max-width:calc(100vw - 24px)}}
