/* Shared language controls for the website and application. */
header select[hidden]{display:none!important}
header .language-switcher{display:inline-flex;align-items:center;flex-shrink:0;gap:4px;padding:4px;margin:0;border:1px solid #ccdccc;border-radius:14px;background:linear-gradient(145deg,#fff,#edf4e8);box-shadow:0 3px 12px #123c2b0c}
header .language-switcher button{font:inherit;font-size:.875rem;font-weight:600;line-height:1.2;border:1px solid transparent;border-radius:10px;min-height:44px;padding:10px 13px;background:transparent;color:#36513e;cursor:pointer;touch-action:manipulation;transition:background .18s,box-shadow .18s,color .18s}
header .language-switcher button[aria-pressed="true"]{background:#123c2b;color:#fff;box-shadow:0 3px 8px #123c2b25}
header .language-switcher button:focus-visible{outline:3px solid #719c39;outline-offset:3px}
header .language-switcher button:disabled{opacity:.55;cursor:wait}
@media(hover:hover) and (pointer:fine){header .language-switcher button:not(:disabled):hover{box-shadow:0 0 0 3px #84b84d26}header .language-switcher button[aria-pressed="false"]:hover{background:#dfecd4}}
@media(max-width:1200px){body:not([data-page="apply"]) header .language-switcher{margin-left:auto}}
@media(max-width:650px){body:not([data-page="apply"]) header{flex-wrap:wrap;row-gap:10px}body:not([data-page="apply"]) header .menu{margin-left:auto}body:not([data-page="apply"]) header .language-switcher{order:4;margin:0 0 0 auto}body:not([data-page="apply"]) header::after{content:'';flex-basis:100%;height:0;order:3}body[data-page="apply"] header{flex-wrap:wrap;justify-content:space-between;gap:12px}body[data-page="apply"] header>a{max-width:100%;width:250px}body[data-page="apply"] header .language-switcher{margin-left:auto}}
@media(prefers-reduced-motion:reduce){header .language-switcher button{transition:none}}

/* Shared header actions: matching height, corners, type and interaction. */
header .header-cta,header .menu{min-height:54px;border-radius:14px;font-family:inherit;font-size:.875rem;font-weight:600;line-height:1.2;white-space:nowrap;touch-action:manipulation;transition:background .18s,color .18s,box-shadow .18s;transform:none}
header .header-cta{align-items:center;gap:10px;padding:10px 16px;background:#123c2b;color:#fff;border:5px solid #edf4e8;box-shadow:0 0 0 1px #ccdccc,0 3px 12px #123c2b0c}
header .header-cta span{font-size:1rem;line-height:1}
header .menu{padding:12px 16px;border:1px solid #ccdccc;background:linear-gradient(145deg,#fff,#edf4e8);color:#36513e;box-shadow:0 3px 12px #123c2b0c}
header .menu span{margin-left:8px;font-size:1rem;line-height:1}
header .menu[aria-expanded="true"]{color:#fff;background:#123c2b;box-shadow:inset 0 0 0 4px #edf4e8,0 3px 12px #123c2b0c}
header .header-cta:focus-visible,header .menu:focus-visible{outline:3px solid #719c39;outline-offset:3px}
header .header-cta:active,header .menu:active{transform:none;box-shadow:0 0 0 3px #84b84d30}
@media(hover:hover) and (pointer:fine){header .header-cta:hover{background:#1d4c36;transform:none;box-shadow:0 0 0 1px #ccdccc,0 0 0 4px #84b84d26,0 7px 18px #24552118}header .menu:hover{box-shadow:0 0 0 3px #84b84d26}header .menu[aria-expanded="false"]:hover{background:#dfecd4}}
@media(max-width:1200px){header nav{border-color:#ccdccc;border-radius:14px;box-shadow:0 8px 28px #123c2b14}header nav a{border-radius:10px}}
@media(max-width:650px){header .menu{padding:12px 14px}}
@media(prefers-reduced-motion:reduce){header .header-cta,header .menu{transition:none!important;transform:none!important}}

/* Compact, centered phone header with a single aligned controls row. */
@media(max-width:650px){
 body:not([data-page="apply"]) header{display:grid;grid-template-columns:auto auto;justify-content:center;align-items:center;gap:8px 10px;padding:10px 12px;min-height:0;width:100%;box-sizing:border-box}
 body:not([data-page="apply"]) header::after{display:none}
 body:not([data-page="apply"]) header .brand{grid-column:1/-1;grid-row:1;justify-self:center;width:150px;max-width:100%;margin:0}
 body:not([data-page="apply"]) header .language-switcher{grid-column:1;grid-row:2;order:initial;margin:0;justify-self:stretch}
 body:not([data-page="apply"]) header .menu{grid-column:2;grid-row:2;order:initial;margin:0;min-height:50px;padding:10px 14px;border-radius:12px;font-size:.875rem}
 header .language-switcher{padding:2px;gap:2px;min-height:50px;border-radius:12px;max-width:100%}
 header .language-switcher button{min-height:44px;padding:9px 11px;border-radius:9px;font-size:.875rem}
 body:not([data-page="apply"]) header nav{width:auto;left:12px;right:12px;box-sizing:border-box}
 body:not([data-page="apply"]) header nav.open{grid-template-columns:minmax(0,1fr);gap:4px}
 body:not([data-page="apply"]) header nav a{min-width:0;overflow-wrap:anywhere}
 body[data-page="apply"] header{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;padding:10px 12px;width:100%;box-sizing:border-box}
 body[data-page="apply"] header>a{width:220px;max-width:100%;margin:0}
 body[data-page="apply"] header .language-switcher{margin:0;align-self:center}
}
