/* Shared homepages: stylesheet loaded only by the five language homepages. Preserve the existing 18px language row. */
html .language-toolbar .shell{max-width:none;width:100%;position:relative;gap:0}
.ip-train{height:18px;min-width:0;flex:1 1 auto;position:relative;overflow:hidden;isolation:isolate;line-height:0;--ip-center:50%}
.ip-train-track{position:absolute;left:var(--ip-center);top:0;height:18px;will-change:transform}
.ip-train-slot{position:absolute;top:0;width:160px;height:18px;display:flex;align-items:center;justify-content:center}
.ip-train-logo{display:block;height:16px;background-image:url('/assets/ip-brands-source.png');background-repeat:no-repeat;flex:none}
.ip-train-focus{position:absolute;left:var(--ip-center);transform:translateX(-50%);top:0;width:90px;height:18px;box-sizing:border-box;border:0;background:#ffff00;opacity:0;transition:none;z-index:-1}
.ip-train.is-paused .ip-train-focus{opacity:1}
html .language-toolbar .language-switch{flex:0 0 auto;position:relative;z-index:2}
@media(prefers-reduced-motion:reduce){.ip-train-focus{transition:none}.ip-train-track{will-change:auto}}

@media(max-width:600px){.ip-train-focus{width:70px}}

/* One inward light sweep per pause; contained within the 18px toolbar. */
.ip-train{--ip-focus-half:45px}
.ip-train::before,.ip-train::after{
 content:"";position:absolute;top:0;width:10px;height:18px;pointer-events:none;z-index:3;opacity:0;
 background:linear-gradient(90deg,transparent,#fff 45%,#fff 55%,transparent);
 box-shadow:0 0 5px 1px #fff9
}
.ip-train::before{left:calc(var(--ip-center) - var(--ip-focus-half))}
.ip-train::after{left:calc(var(--ip-center) + var(--ip-focus-half) - 10px)}
.ip-train.is-paused::before{animation:ip-light-from-left .5s ease-out both}
.ip-train.is-paused::after{animation:ip-light-from-right .5s ease-out both}
@keyframes ip-light-from-left{
 0%{opacity:0;transform:translateX(0)}
 12%{opacity:1}
 72%{opacity:1}
 100%{opacity:0;transform:translateX(calc(var(--ip-focus-half) - 5px))}
}
@keyframes ip-light-from-right{
 0%{opacity:0;transform:translateX(0)}
 12%{opacity:1}
 72%{opacity:1}
 100%{opacity:0;transform:translateX(calc(5px - var(--ip-focus-half)))}
}
@media(max-width:600px){.ip-train{--ip-focus-half:35px}}
@media(prefers-reduced-motion:reduce){.ip-train.is-paused::before,.ip-train.is-paused::after{animation:none;opacity:0}}

/* Shared fixed 18px row: reserve the same height in normal flow. */
html{scroll-padding-top:18px}
html body{padding-top:18px}
html .language-toolbar{position:fixed;top:0;left:0;right:0;width:100%;z-index:1000;background:#f0f5fb!important}
html.ip-overlay-open .language-toolbar{visibility:hidden;pointer-events:none}
.ip-train.ip-suspended::before,.ip-train.ip-suspended::after{animation:none!important;opacity:0!important}
.ip-train.ip-suspended .ip-train-track{will-change:auto}
@media(pointer:coarse){
 html .language-toolbar a.flag-language{position:relative}
 html .language-toolbar a.flag-language::before{content:"";position:absolute;top:0;bottom:0;left:-4px;right:-4px}
}
