/* Gargir language UI v2 — one consistent selector on every family page. */
nav.gargir-language-ui{box-sizing:border-box!important;display:flex!important;align-items:center!important;justify-content:center;gap:5px!important;flex-wrap:wrap!important;direction:ltr!important;padding:0!important;margin:4px 0!important;border:0!important;background:transparent!important;min-width:0!important;max-width:100%;z-index:20;line-height:1!important}
nav.gargir-language-ui>a{box-sizing:border-box!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;flex:0 0 78px!important;width:78px!important;min-width:78px!important;max-width:78px!important;height:32px!important;min-height:32px!important;padding:0 3px!important;margin:0!important;border:1px solid #c5b694!important;border-radius:18px!important;background:#fcf8ef!important;color:#244637!important;opacity:1!important;box-shadow:none!important;text-decoration:none!important;white-space:nowrap!important;font:600 12px/1.2 Arial,system-ui,sans-serif!important;text-align:center!important;direction:ltr!important;letter-spacing:0!important;transform:none!important}
nav.gargir-language-ui>a[lang="he"]{direction:rtl!important}
nav.gargir-language-ui>a[aria-current="page"]{font-weight:800!important;text-decoration:underline!important;text-underline-offset:3px!important;text-decoration-thickness:1px!important}
nav.gargir-language-ui>a:hover,nav.gargir-language-ui>a:focus-visible{background:#fcf8ef!important;color:#244637!important;border-color:#8f784e!important;outline-offset:2px!important}
/* Family landing: keep one switcher inside tools, not several rows of duplicate buttons. */
body.family-landing header.topbar{height:auto!important;min-height:80px!important;padding:9px clamp(12px,2.2vw,28px)!important;display:flex!important;align-items:center!important;gap:10px!important;flex-wrap:wrap!important}
body.family-landing header.topbar>.tools{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:6px!important;min-width:0!important;margin-inline-start:auto!important}
body.family-landing header.topbar .brand{flex:0 1 auto!important;min-width:0!important}
body.family-landing header.topbar .gargir-language-ui{margin:0!important}
body.family-landing header.topbar .tools>#lang{display:none!important}
body.family-landing header.topbar .tools>.gargir-french-button{display:none!important}
@media(max-width:1570px){body.family-landing .desktop-nav{display:none;position:absolute;top:100%;left:14px;right:14px;z-index:90;padding:20px;flex-direction:column;gap:12px;background:#fffaf1!important;box-shadow:0 14px 30px #243a342c;border:1px solid #e2d7c4;border-radius:14px}body.family-landing .desktop-nav.open{display:flex!important}body.family-landing .topbar .menu{display:inline-flex!important;align-items:center;justify-content:center;width:34px;height:34px;padding:0!important}}
@media(max-width:820px){body.family-landing header.topbar{min-height:110px!important}body.family-landing header.topbar>.tools{width:100%!important;flex:1 1 100%!important;justify-content:center!important;order:3!important}body.family-landing .hero-content{padding-top:max(180px,20vh)!important}}
@media(max-width:450px){nav.gargir-language-ui{gap:3px!important;flex-wrap:nowrap!important}nav.gargir-language-ui>a{flex-basis:62px!important;width:62px!important;min-width:62px!important;max-width:62px!important;height:30px!important;min-height:30px!important;font-size:10.5px!important}body.family-landing header.topbar{padding-inline:8px!important}body.family-landing header.topbar>.tools{gap:4px!important}body.family-landing header.topbar .menu{width:29px!important;height:30px!important}}
@media(max-width:355px){nav.gargir-language-ui>a{flex-basis:57px!important;width:57px!important;min-width:57px!important;max-width:57px!important;font-size:10px!important}}
/* Biographical, archive and kids pages retain their original visual design. */
header .gargir-language-ui{width:fit-content;max-width:100%;margin-inline:auto!important}
header.header .gargir-language-ui{margin:5px auto 10px!important}
header.museum-header .gargir-language-ui{margin-inline:auto!important}
header.figure-topbar .gargir-language-ui{margin:7px auto!important}
header.top .gargir-language-ui{margin:4px!important}
@media(max-width:680px){header.header .gargir-language-ui,header.museum-header .gargir-language-ui{margin:6px auto!important}}

/* Small screens: children’s header stacks instead of pushing the selector off-screen. */
@media(max-width:760px){header.top .top-in{flex-direction:column!important;align-items:center!important;gap:7px!important;justify-content:center!important}header.top .nav-actions{width:100%!important;display:flex!important;flex-direction:column!important;flex-wrap:wrap!important;align-items:center!important;justify-content:center!important;gap:4px!important}header.top .nav-actions .gargir-language-ui{margin:3px auto!important}header.top .nav-actions a.btn.small{font-size:12px!important;min-height:30px!important;padding:4px 10px!important}header.top .brand{font-size:14px!important;text-align:center!important}}
/* Hide skip navigation links until they receive keyboard focus. */
a.skip-link:not(:focus){position:absolute!important;clip-path:inset(50%)!important;white-space:nowrap!important;overflow:hidden!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;border:0!important}

/* v3.0: The currently displayed language is not a navigation destination.
   HTML lang reflects the actual language, including dynamically switched HE/EN. */
html[lang="he"] .gargir-language-ui a[hreflang="he"],
html[lang="en"] .gargir-language-ui a[hreflang="en"],
html[lang="fr"] .gargir-language-ui a[hreflang="fr"],
html[lang="es"] .gargir-language-ui a[hreflang="es"],
html[lang="tr"] .gargir-language-ui a[hreflang="tr"]{display:none!important;}

/* Keep the family-context bar clear of the absolutely positioned museum header.
   This also fixes the faint, overlapping header text visible in the screenshot. */
body.family-landing main#home{padding-top:80px!important;}
@media(max-width:820px){body.family-landing main#home{padding-top:110px!important;}}
