/* Shared site header (top tabs) for every page, UA and EN.
   The header markup is written by scripts/build_en.py; edit its look here.
   Desktop: logo · tabs · language + donate on one row.
   ≤1240px: logo + language/donate on top, tabs below in one swipeable row.
   ≤640px:  compact phone header (smaller logo, one language button, heart-only donate). */

.ls-header{background:#0F1A2B;color:#FFFFFF}
.ls-header-in{max-width:1280px;margin:0 auto;padding:16px 32px;display:flex;flex-wrap:wrap;align-items:center;gap:16px 28px;box-sizing:border-box}

.ls-brand{display:flex;align-items:center;gap:12px;min-width:0;text-decoration:none;color:#FFFFFF}
.ls-brand:hover{color:#FFFFFF}
.ls-brand img{width:48px;height:48px;flex-shrink:0;border-radius:50%;background:#FFFFFF}
.ls-brand-text{display:flex;flex-direction:column;min-width:0;line-height:1.1}
.ls-brand-sup{font-size:11px;letter-spacing:.12em;color:#9FC4EC;text-transform:uppercase;line-height:1.35;margin-bottom:4px}
.ls-brand-name{font-family:Unbounded,sans-serif;font-weight:700;font-size:17px}

.ls-nav{display:flex;flex-wrap:wrap;gap:4px;flex:1 1 420px;justify-content:center}
.ls-nav a{display:flex;align-items:center;min-height:44px;box-sizing:border-box;padding:12px 14px;border-bottom:2px solid transparent;color:#D3DEEC;text-decoration:none;font-weight:600;font-size:15px;white-space:nowrap}
.ls-nav a:hover{color:#FFFFFF}
.ls-nav a[aria-current="page"]{color:#FFFFFF;font-weight:700;border-bottom-color:#5FA8EC}
.ls-nav a:focus-visible,.ls-lang a:focus-visible,.ls-donate:focus-visible,.ls-brand:focus-visible{outline:2px solid #8EC3F0;outline-offset:2px;border-radius:8px}

.ls-actions{display:flex;align-items:center;gap:12px}
.ls-lang{display:flex;border:1px solid #3A4D6A;border-radius:999px;padding:3px}
.ls-lang > *{display:flex;align-items:center;height:38px;padding:0 14px;border-radius:999px;font:700 13px Manrope,sans-serif;color:#D3DEEC;text-decoration:none}
.ls-lang a:hover{color:#FFFFFF}
.ls-lang .ls-lang-cur{background:#FFFFFF;color:#0F1A2B;font-weight:800}
.ls-donate{display:flex;align-items:center;justify-content:center;gap:8px;height:46px;padding:0 20px;border-radius:999px;background:#5FA8EC;color:#0F1A2B;text-decoration:none;font-weight:800;font-size:15px;white-space:nowrap}
.ls-donate:hover{color:#0F1A2B;background:#8EC3F0}
.ls-donate[aria-current="page"]{background:#FFFFFF}
.ls-donate svg{flex-shrink:0}

/* Tablet and phone: tabs move to their own row and scroll sideways instead of wrapping. */
@media (max-width:1240px){
  .ls-header-in{gap:10px 16px;padding-bottom:0}
  .ls-actions{margin-left:auto}
  .ls-nav{order:3;flex:1 0 100%;flex-wrap:nowrap;justify-content:flex-start;gap:0;
    margin:0 -32px;padding:0 18px 0 18px;overflow-x:auto;overscroll-behavior-x:contain;
    scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-padding:0 24px;
    border-top:1px solid #1C2C45;
    -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 28px),transparent);
            mask-image:linear-gradient(90deg,transparent 0,#000 14px,#000 calc(100% - 28px),transparent)}
  .ls-nav::-webkit-scrollbar{display:none}
  .ls-nav::after{content:"";flex:0 0 14px}
  .ls-nav a{border-bottom-width:3px;padding:12px 14px 11px}
}

@media (max-width:640px){
  .ls-header-in{padding:12px 16px 0;gap:10px}
  .ls-brand{gap:10px}
  .ls-brand img{width:40px;height:40px}
  .ls-brand-sup{font-size:10px;letter-spacing:.08em;margin-bottom:3px}
  .ls-brand-name{font-size:16px}
  .ls-nav{margin:0 -16px;padding:0 4px}
  .ls-nav a{font-size:14px;padding:12px 12px 11px}
  .ls-actions{gap:8px}
  /* One button that switches to the other language. */
  .ls-lang{border:0;padding:0}
  .ls-lang .ls-lang-cur{display:none}
  .ls-lang a{height:44px;padding:0 13px;border:1px solid #3A4D6A}
  .ls-donate{height:44px;padding:0 16px}
}

@media (max-width:480px){
  .ls-donate{width:44px;padding:0}
  .ls-donate-label{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
}

/* Home page background video. It is a vertical (9:16) clip stretched to cover a wide
   hero, so wide screens see only a horizontal band of it. object-position picks which
   band: 0% = top of the video, 50% = middle, 100% = bottom. The faces sit about a
   quarter of the way down, so the wider the screen, the lower the band. Tune here. */
.ls-hero-video{object-position:center 27%}                                 /* ≥1600px: big monitors */
@media (max-width:1599px){.ls-hero-video{object-position:center 18%}}       /* laptops */
@media (max-width:1100px){.ls-hero-video{object-position:center 12%}}       /* tablets, landscape */
@media (max-width:820px){.ls-hero-video{object-position:center 5%}}         /* tablets, portrait */
@media (max-width:640px){.ls-hero-video{object-position:center 30%}}        /* phones: video fills the height, band is barely cropped */
