.scv-language-control{display:flex;align-items:center;flex-wrap:wrap;gap:6px 8px;font:600 13px/1.35 Inter,Arial,sans-serif}
.scv-language-control .scv-language-label{margin-right:4px;color:inherit;font-size:12px;font-weight:500}
.scv-language-control button{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-height:48px;min-width:64px;margin:0;padding:8px 12px;border:1px solid #cbdcf0;border-radius:6px;background:#fff;color:#21456f;font:600 13px/1.35 Inter,Arial,sans-serif;cursor:pointer;text-decoration:none}
.scv-language-control button[aria-pressed=true]{color:#174db5;border-color:transparent;background:#edf8fa;box-shadow:none}
.scv-language-control button:focus-visible{outline:2px solid #6edadd;outline-offset:2px}
.scv-requester-account-panel .scv-language-control{border-top:1px solid #e0e8f2;margin-top:6px;padding:8px 4px 2px;color:#526782}
.scv-requester-account-panel .scv-language-control .scv-language-label{flex-basis:100%}
.scv-global-header .scv-requester-account-panel .scv-language-control button{display:inline-flex;width:auto;min-width:88px;padding:8px;border:1px solid #cbdcf0;border-radius:6px;justify-content:center}
.scv-mobile-menu-panel-v40 .scv-language-control{margin-top:8px;padding-top:8px;border-top:1px solid #e0e8f2}
.scv-language-utility{justify-content:flex-end;max-width:1300px;margin:8px auto 12px;padding:0 16px;color:#526782}
html[lang=es] .scv-global-links{gap:12px}
html[lang=es] :is(.discovery-request-tabs>button,.scv-profile-section-nav>button,.scv-owner-action-bar a,.scv-owner-action-bar button){white-space:normal}
@media(max-width:700px){.scv-language-control .scv-language-label{margin-right:2px}}
@media(max-width:640px){html[lang=es] body .hero-primary-actions .btn{white-space:normal!important;font-size:12px!important;line-height:13px!important;padding:4px 6px!important;height:38px!important;min-height:38px!important;text-align:center}}
@media(prefers-reduced-motion:reduce){.scv-language-control button{transition:none!important}}
.scv-language-dropdown{position:relative;flex:0 0 auto;color:#21456f;font:600 13px/1.35 Inter,Arial,sans-serif}
.scv-language-dropdown > summary{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:6px;min-height:48px;padding:4px 8px;border:1px solid #d5e3f4;border-radius:6px;background:#fff;color:inherit;cursor:pointer;list-style:none;white-space:nowrap}
.scv-language-dropdown > summary::-webkit-details-marker{display:none}
.scv-language-dropdown > summary::marker{content:""}
.scv-language-dropdown > summary svg{width:18px;height:18px;flex:0 0 18px;fill:none;stroke:currentColor;stroke-width:1.6}
.scv-language-dropdown > summary:focus-visible{outline:2px solid #6edadd;outline-offset:3px}
.scv-language-dropdown[open] .scv-language-caret{transform:rotate(180deg)}
.scv-language-current,.scv-language-current-flag{display:none}
.scv-language-code{display:inline}
.scv-language-dropdown .scv-language-panel{position:absolute;right:0;top:calc(100% + 6px);z-index:2;box-sizing:border-box;display:flex;flex-direction:column;align-items:stretch;gap:2px;width:min(150px,calc(100vw - 16px));margin:0;padding:4px;border:1px solid #d5e3f4;border-radius:6px;background:#fff;color:#21456f;box-shadow:0 8px 24px #07183326;transform:translateX(var(--scv-language-shift,0px))}
.scv-language-dropdown:not([open]) .scv-language-panel{display:none}
.scv-language-dropdown .scv-language-panel > .scv-language-label{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.scv-language-control button{display:grid;grid-template-columns:12px minmax(0,1fr) 22px;gap:6px;padding:4px 8px}
.scv-language-flag,.scv-language-current-flag{width:22px;height:15px;object-fit:cover;border-radius:6px;flex:0 0 22px}
.scv-language-check{visibility:hidden;font-size:12px}
.scv-language-control button[aria-pressed=true] .scv-language-check{visibility:visible}
.scv-language-choice-name{white-space:nowrap;text-align:left}
.scv-language-dropdown .scv-language-panel button{width:100%;min-height:48px;border-color:transparent;background:#fff;color:#21456f;text-align:left}
.scv-language-dropdown .scv-language-panel button[aria-pressed=true]{border-color:transparent;background:#edf8fa;color:#174db5;box-shadow:none}
.scv-language-dropdown .scv-language-panel button:hover{background:#edf4ff}
#scvLanguageHeader{display:block}
#scvLanguageHeader > summary,.scv-pdf-topbar #scvLanguageUtility > summary{
 width:100%;min-width:44px;min-height:44px;padding:4px;
 border:0;background:transparent;gap:4px;
}
:is(#scvLanguageHeader,.scv-pdf-topbar #scvLanguageUtility) .scv-language-current-flag{display:block;width:27px;height:18px;flex-basis:27px}
:is(#scvLanguageHeader,.scv-pdf-topbar #scvLanguageUtility) > summary > svg{display:none}
.scv-global-nav.qr-header-row:has(> #scvLanguageHeader) > .qr-back{order:4}
@media(min-width:701px){.scv-global-nav.qr-header-row > #scvLanguageHeader{margin-inline-start:auto}}
html body #scv-site-footer .scv-footer-bottom:has(> #scvLanguageFooter){display:grid!important;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 12px!important}
#scvLanguageFooter{margin-left:auto;color:#b9cce5}
#scvLanguageFooter > summary{min-width:44px;min-height:44px;padding:4px 8px;border:0;background:transparent;gap:4px}
#scvLanguageFooter > summary > svg{display:none}
#scvLanguageFooter .scv-language-current-flag{display:block;width:27px;height:18px;flex-basis:27px}
@media(min-width:701px){
 #scvLanguageFooter > summary{width:80px;justify-content:flex-start}
 #scvLanguageFooter .scv-language-code{flex:0 0 20px;text-align:start}
}
.scv-global-header .scv-header-search-desktop .scv-header-search-submit{
  box-sizing:border-box;
  flex:0 0 52px;
  width:52px;
  min-width:52px;
  padding-inline:0;
}
.scv-header-search-panel .scv-header-search-panel-form .scv-header-search-panel-submit{
  box-sizing:border-box;
  flex:0 0 52px;
  width:52px;
  min-width:52px;
  padding-inline:0;
}
#scvLanguageFooter .scv-language-panel{top:auto;bottom:calc(100% + 6px)}
#scvLanguageFooter > summary:focus-visible{outline-offset:2px}
@media(min-width:701px){
 #scvLanguageHeader{order:3;grid-area:actions;justify-self:start;margin-right:10px;width:80px}
}
@media(min-width:701px) and (max-width:1100px){
 #scvLanguageHeader{margin-left:0;margin-right:0}
 .scv-global-header .scv-global-brand{margin-right:0}
 .scv-global-header .scv-mobile-header-actions{margin-left:auto}
 .scv-global-header :is(.scv-requester-account,.scv-account-placeholder){order:4}
 .scv-global-header[data-scv-account-state=guest] .scv-mobile-header-actions{order:4;margin-left:0}
 .scv-global-header[data-scv-account-state=guest] #scvLanguageHeader{margin-left:auto}
 .scv-global-header:not([data-scv-account-header]) .scv-mobile-header-actions{order:4;margin-left:0}
 .scv-global-header:not([data-scv-account-header]) #scvLanguageHeader{margin-left:auto}
 .scv-global-header[data-scv-account-minimal] .scv-account-visitor{order:4;margin-left:0}
 .scv-global-header[data-scv-account-minimal] #scvLanguageHeader{margin-inline-start:auto}
 .scv-global-header[data-scv-account-minimal] :is(.scv-requester-account,.scv-account-placeholder){margin-inline-start:0}
}
@media(min-width:1101px){
 html body .scv-global-header:has(#scvLanguageHeader)[data-scv-account-state=guest] .scv-header-search-desktop{width:200px;min-width:0;max-width:200px}
 html body .scv-global-header:has(#scvLanguageHeader) .scv-global-links{min-width:0;flex-wrap:wrap;row-gap:4px;justify-content:center}
 html body .scv-global-header:has(#scvLanguageHeader) .scv-global-actions{justify-self:end}
}
@media(min-width:1101px) and (max-width:1320px){
 .scv-global-header:has(#scvLanguageHeader){--scv-language-width:80px}
 #scvLanguageHeader{width:80px}
 #scvLanguageHeader .scv-language-current{display:none}
 #scvLanguageHeader .scv-language-code{display:inline}
 html body .scv-global-header:has(#scvLanguageHeader) .scv-header-search-desktop{width:clamp(170px,calc(100vw - 1020px),270px);min-width:0;max-width:270px}
}
@media (max-width:700px),
       (orientation:landscape) and (max-height:500px) and (max-width:1100px) and (pointer:coarse) {
 .scv-global-header{
  --scv-mobile-language-logo-width:clamp(76px,calc(100vw - 242px),140px);
 }
 .scv-global-header .scv-global-nav:has(> #scvLanguageHeader){justify-content:flex-start !important;column-gap:6px !important}
 .scv-global-header .scv-global-nav:has(> #scvLanguageHeader) > .scv-global-brand{
  order:1;
  width:var(--scv-mobile-language-logo-width) !important;
  flex:0 0 var(--scv-mobile-language-logo-width);
  min-width:0;
  margin-inline:0 !important;
 }
 .scv-global-header .scv-global-nav:has(> #scvLanguageHeader) > .scv-global-brand .scv-global-logo-img{
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
 }
 .scv-global-header .scv-global-nav > #scvLanguageHeader{
  order:2 !important;
  width:44px;
  flex:0 0 44px;
  margin-inline:0 auto;
 }
 .scv-global-header #scvLanguageHeader > summary,
 #scvLanguageFooter > summary,
 .scv-pdf-topbar #scvLanguageUtility > summary{
  width:44px;
  min-width:44px;
  height:44px;
  min-height:44px;
  gap:4px;
  padding:0;
 }
 #scvLanguageHeader .scv-language-current-flag,
 #scvLanguageFooter .scv-language-current-flag,
 .scv-pdf-topbar #scvLanguageUtility .scv-language-current-flag{display:block;width:23px;height:16px;flex-basis:23px}
 :is(#scvLanguageHeader,#scvLanguageFooter,.scv-pdf-topbar #scvLanguageUtility) > summary :is(.scv-language-code,svg){display:none}
 .scv-global-header .scv-global-nav > .scv-mobile-header-actions{order:3 !important;margin-inline-start:0 !important}
 .scv-global-header .scv-global-nav > :is(.scv-requester-account,.scv-account-placeholder,.scv-account-visitor){order:4 !important;margin-inline-start:0 !important}
 .scv-pdf-topbar{justify-content:flex-start;gap:6px}
 .scv-pdf-topbar .scv-pdf-topbar-actions{display:contents}
 .scv-pdf-topbar .scv-pdf-brand img{width:clamp(84px,calc(100vw - 214px),140px)}
 .scv-pdf-topbar [data-scv-utility-language]{margin-inline-end:auto}
}

@media (max-width:360px) {
 .scv-global-header .scv-global-nav:has(> #scvLanguageHeader) { column-gap:4px !important; }
 .scv-global-header .scv-mobile-header-actions { gap:4px; }
}
@media (max-width:340px) {
 .scv-global-header .scv-mobile-header-actions:has(.scv-requester-header-discover:not([hidden])) .scv-header-search-toggle {
  display:none !important;
 }
}

@media (max-width:320px) {
 .scv-global-header .scv-mobile-header-actions:has(.scv-owner-header-discover:not([hidden])) .scv-header-search-toggle {
  display:none !important;
 }
}

/* Locale-sized controls keep their existing rows and native actions. */
@media(max-width:700px) {
 html[lang=es] body.scv-compact-editor #scvCommandSaveBtn { white-space:normal !important; overflow-wrap:normal; line-height:1.25; }
}
@media(max-width:760px) {
 html[lang=es] body.owner-mode .hero .portrait-stack .scv-owner-share-actions > #shareProfileBtn svg,
 html[lang=es] body.public-profile-page .hero .scv-public-utility-grid .scv-public-profile-utilities #shareProfileBtn svg { display:none !important; }
}
@media(max-width:360px) {
 html[lang=es] body.owner-mode .hero .portrait-stack .scv-owner-share-actions > #shareProfileBtn svg,
 html[lang=es] body.public-profile-page .hero .scv-public-utility-grid .scv-public-profile-utilities #shareProfileBtn svg { display:block !important; }
 html[lang=es] body.owner-mode .hero .portrait-stack .scv-owner-share-actions > #shareProfileBtn :is(.scv-share-profile-label,.scv-share-copied),
 html[lang=es] body.public-profile-page .hero .scv-public-utility-grid .scv-public-profile-utilities #shareProfileBtn > span { display:none !important; }
}


/* Compact Spanish desktop captions; the existing mobile/tablet controls remain authoritative. */
@media(min-width:1101px){
 html[lang=es] body .scv-global-header:has(#scvLanguageHeader) .scv-global-links{flex-wrap:nowrap;gap:12px}
 html[lang=es] body .scv-global-header .scv-global-login{min-width:78px}
 html[lang=es] body .scv-global-header .scv-global-create{width:auto;min-width:120px}
 html[lang=es] body .scv-global-header:has(#scvLanguageHeader)[data-scv-account-state=guest] .scv-header-search-desktop{width:270px;min-width:0;max-width:270px}
}
@media(min-width:1101px) and (max-width:1320px){
 html[lang=es] body .scv-global-header:has(#scvLanguageHeader) .scv-header-search-desktop{width:250px;min-width:0;max-width:250px}
 html[lang=es] body .scv-global-header:has(#scvLanguageHeader) .scv-global-links{gap:10px}
}

/* French header uses the same compact desktop tracks. */
@media(min-width:1101px){
 html[lang=fr] body .scv-global-header:has(#scvLanguageHeader) .scv-global-links{flex-wrap:nowrap;gap:12px}
 html[lang=fr] body .scv-global-header .scv-global-login{min-width:78px}
 html[lang=fr] body .scv-global-header .scv-global-create{width:auto;min-width:120px}
 html[lang=fr] body .scv-global-header:has(#scvLanguageHeader)[data-scv-account-state=guest] .scv-header-search-desktop{width:270px;min-width:0;max-width:270px}
}
@media(min-width:1101px) and (max-width:1320px){
 html[lang=fr] body .scv-global-header:has(#scvLanguageHeader) .scv-header-search-desktop{width:260px;min-width:0;max-width:260px}
 html[lang=fr] body .scv-global-header:has(#scvLanguageHeader) .scv-global-links{gap:10px}
}

/* Keep the third choice readable in the existing narrow-menu fallback. */
#scvLanguageAccount [data-scv-language-choice=fr],
#scvLanguageMobile [data-scv-language-choice=fr] { grid-column: 1 / -1; }

/* Keep long French labels within their existing control rows. */
html[lang=fr] :is(.discovery-request-tabs>button,.scv-profile-section-nav>button,.scv-owner-action-bar a,.scv-owner-action-bar button){white-space:normal}
@media(max-width:640px){
 html[lang=fr] body .hero-primary-actions .btn{white-space:normal!important;font-size:12px!important;line-height:13px!important;padding:4px 6px!important;height:38px!important;min-height:38px!important;text-align:center}
}
@media(max-width:700px){
 html[lang=fr] body.scv-compact-editor #scvCommandSaveBtn{white-space:normal!important;line-height:1.25}
}

@media(min-width:1101px){
}

/* Armenian uses the existing compact navigation tracks and flexible captions. */
@media (min-width:1101px) {
 html[lang|=hy] body .scv-global-header:has(#scvLanguageHeader) .scv-global-links { flex-wrap:nowrap; gap:clamp(6px, .65vw, 12px); }
 html[lang|=hy] body .scv-global-header .scv-global-login { min-width:78px; }
 html[lang|=hy] body .scv-global-header .scv-global-create { width:auto; min-width:120px; }
 html[lang|=hy] body .scv-global-header:has(#scvLanguageHeader) .scv-header-search-desktop { width:100%; min-width:0; max-width:260px; }
}
@media (max-width:700px) {
 html[lang|=hy] body .hero-primary-actions .btn {
  white-space:normal!important; font-size:12px!important; line-height:13px!important; padding:4px 6px!important;
 }
}
#scvLanguageAccount:has([data-scv-language-choice=hy]) [data-scv-language-choice=fr],
#scvLanguageMobile:has([data-scv-language-choice=hy]) [data-scv-language-choice=fr] { grid-column:auto; }
html[lang|=hy] :is(.discovery-request-tabs>button,.scv-profile-section-nav>button,.scv-owner-action-bar a,.scv-owner-action-bar button) {
 white-space:normal;
 overflow-wrap:anywhere;
}


/* Serve consistent Armenian glyphs while retaining the existing Latin faces. */
@font-face {
 font-family:"Noto Sans Armenian";
 src:url("../fonts/noto-sans-armenian.ttf") format("truetype");
 font-style:normal;
 font-weight:100 900;
 font-display:swap;
 unicode-range:U+0530-058F,U+FB13-FB17;
}
html[lang|=hy] body,
html[lang|=hy] body :where(h1,h2,h3,h4,p,label,summary,a,button,input,select,textarea,strong,span,small,li,dd,dt,time) {
 font-family:"Noto Sans Armenian",Inter,system-ui,Arial,sans-serif !important;
}


html[lang|=hy] :is(#scvParentSimple,#scvSimpleLoading) h1 .scv-parent-mobile-omit { display:inline !important; }
@media(max-width:640px) {
 html[lang|=hy] #scv-site-footer .scv-footer-nav {
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:14px !important;
 }
 html[lang|=hy] #scv-site-footer .scv-footer-col {
  padding-inline:0 !important;
  border-inline:0 !important;
  min-width:0;
 }
 html[lang|=hy] #scv-site-footer .scv-footer-col :is(a,h3) {
  white-space:normal !important;
  overflow-wrap:break-word;
 }
}

html[lang|=hy] #scvAccountSettingsDialog .scv-danger-zone summary { text-transform:none !important; }

.scv-started-compact { display:none !important; }

@media (max-width:700px),
       (orientation:landscape) and (max-height:500px) and (max-width:1100px) and (pointer:coarse) {
  html:lang(hy) .scv-started-compact:not(:empty) { display:block !important; }
  html:lang(hy) #metaStarted:has(+ .scv-started-compact:not(:empty)) {
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip-path:inset(50%) !important;
    white-space:nowrap !important;
  }
}

/* Shared return action. Its fixed inline size also fits Zurück and Indietro. */
:root { --scv-back-width:104px; --scv-back-height:44px; }
:where(a,button)[data-scv-back]:not([hidden]):not([aria-hidden="true"]) {
  display:inline-flex;
  align-items:center;
  justify-content:center;
}
html body [data-scv-back]:is(a,button) {
  box-sizing:border-box;
  width:var(--scv-back-width) !important;
  min-width:var(--scv-back-width) !important;
  max-width:var(--scv-back-width) !important;
  height:var(--scv-back-height) !important;
  min-height:var(--scv-back-height) !important;
  max-height:var(--scv-back-height) !important;
  flex:0 0 auto;
  padding:4px 10px !important;
  gap:6px;
  font-size:14px !important;
  white-space:nowrap !important;
  line-height:1.2 !important;
  letter-spacing:normal !important;
}
#height_preview, #metaPhysical, #metaPhysical .scv-physical-height-v617 {
  white-space:normal !important;
  overflow-wrap:normal !important;
  word-break:normal !important;
}

/* Discovery desktop applies a content zoom. Keep the actual Back target at the shared size. */
@media screen and (min-width:1101px) and (hover:hover) and (pointer:fine) {
  :is(#discoveryProfileView,#discoveryAccount) [data-scv-back] {
    zoom:calc(1 / 0.9);
  }
}

/* Header slot geometry is shared by guest, account, sign-in and utility routes. */
:root {
  --scv-language-slot:80px;
  --scv-language-gap:14px;
  --scv-language-account-track:272px;
  --scv-language-nav-limit:1300px;
  --scv-language-nav-inset:36px;
}
.scv-language-boot-flag {
  background:var(--scv-boot-flag,url("/assets/flags/svg/gb.svg")) center / cover no-repeat;
}
.scv-language-boot-code::after { content:var(--scv-boot-code,"EN"); }
html[data-scv-language=es] { --scv-boot-flag:url("/assets/flags/svg/es.svg"); --scv-boot-code:"ES"; }
html[data-scv-language=fr] { --scv-boot-flag:url("/assets/flags/svg/fr.svg"); --scv-boot-code:"FR"; }
html[data-scv-language=hy] { --scv-boot-flag:url("/assets/flags/svg/am.svg"); --scv-boot-code:"HY"; }

html[data-scv-language]:not([data-scv-language=en])
  .scv-global-nav:has(> [data-scv-language-shell])
  :is(.scv-global-links,.scv-header-search-desktop,.scv-global-actions) { visibility:hidden; }

@media (min-width:1101px) and (max-width:1320px) {
  :root {
    --scv-language-gap:12px;
    --scv-language-nav-limit:1240px;
    --scv-language-nav-inset:22px;
  }
}
@media (min-width:1101px) {
  .scv-global-header, .scv-pdf-topbar {
    --scv-language-brand-track:180px;
    --scv-language-search-track:clamp(190px,calc(100vw - 1100px),250px);
  }
  html body .scv-global-header > .scv-global-nav:has(> #scvLanguageHeader) {
    width:min(var(--scv-language-nav-limit),calc(100% - 2 * var(--scv-language-nav-inset)));
    max-width:none;
    display:grid;
    column-gap:var(--scv-language-gap);
    grid-template-columns:var(--scv-language-brand-track) var(--scv-language-search-track) minmax(0,1fr) var(--scv-language-slot) var(--scv-language-account-track);
    grid-template-areas:"brand search links language actions";
  }
  html body .scv-global-header.scv-header-focused > .scv-global-nav:has(> #scvLanguageHeader) {
    grid-template-columns:var(--scv-language-brand-track) minmax(0,1fr) var(--scv-language-slot) var(--scv-language-account-track);
    grid-template-areas:"brand links language actions";
  }
  html body .scv-global-header[data-scv-account-minimal] > .scv-global-nav:has(> #scvLanguageHeader),
  html body .scv-global-header > .scv-global-nav.qr-header-row:has(> #scvLanguageHeader) {
    grid-template-columns:minmax(0,1fr) var(--scv-language-slot) var(--scv-language-account-track);
    grid-template-areas:"brand language actions";
  }
  .qr-header-row > .qr-back { grid-area:actions; justify-self:end; }
  .scv-global-nav > #scvLanguageHeader {
    grid-area:language;
    justify-self:start;
    margin-inline:0;
    width:var(--scv-language-slot);
  }
  html[lang] body .scv-global-header > .scv-global-nav:has(> #scvLanguageHeader) .scv-header-search-desktop {
    width:100%;
    min-width:0;
    max-width:none;
  }
  html[lang] body .scv-global-header > .scv-global-nav:has(> #scvLanguageHeader) .scv-global-links {
    flex-wrap:nowrap;
    gap:8px;
  }
  html body .scv-global-header > .scv-global-nav:has(> #scvLanguageHeader) .scv-account-visitor {
    width:auto;
    min-width:0;
    max-width:100%;
    justify-self:end;
    gap:10px;
  }
  .scv-pdf-topbar [data-scv-utility-language] {
    position:absolute;
    inset-inline-start:calc(50% + min(var(--scv-language-nav-limit) / 2, 50% - var(--scv-language-nav-inset)) - var(--scv-language-slot) - var(--scv-language-gap) - var(--scv-language-account-track));
    inset-block-start:50%;
    transform:translateY(-50%);
    width:var(--scv-language-slot);
  }
  .scv-pdf-topbar #scvLanguageUtility .scv-language-code { display:inline; }
}
@media (min-width:1101px) and (max-width:1320px) {
  .scv-global-header, .scv-pdf-topbar { --scv-language-brand-track:168px; }
}
@media (min-width:701px) and (max-width:1100px) {
  html body .scv-global-header > .scv-global-nav:has(> #scvLanguageHeader) {
    position:relative;
    width:min(900px,calc(100% - 28px));
    max-width:none;
  }
  html body .scv-global-nav > #scvLanguageHeader {
    position:absolute;
    inset-inline-start:calc(100% - 200px);
    inset-block-start:50%;
    margin-inline:0;
    transform:translateY(-50%);
    width:var(--scv-language-slot);
  }
  .scv-pdf-topbar [data-scv-utility-language] {
    position:absolute;
    inset-inline-start:calc(50% + min(450px,50% - 14px) - 200px);
    inset-block-start:50%;
    transform:translateY(-50%);
    width:var(--scv-language-slot);
  }
  .scv-pdf-topbar #scvLanguageUtility .scv-language-code { display:inline; }
}
@media (orientation:landscape) and (max-height:500px) and (min-width:701px) and (max-width:1100px) and (pointer:coarse) {
  html body .scv-global-nav > #scvLanguageHeader {
    position:relative;
    inset:auto;
    transform:none;
    width:44px;
    margin-inline:0 auto;
  }
  .scv-pdf-topbar [data-scv-utility-language] { position:static; inset:auto; transform:none; width:auto; }
  .scv-pdf-topbar #scvLanguageUtility .scv-language-code { display:none; }
}


@media (min-width:701px) {
  html { scrollbar-gutter:stable; }
  :is(#scvLanguageHeader,.scv-pdf-topbar #scvLanguageUtility) > summary {
    justify-content:flex-start;
    padding-inline-start:8px;
  }
  :is(#scvLanguageHeader,.scv-pdf-topbar #scvLanguageUtility) .scv-language-code {
    flex:0 0 20px;
    text-align:start;
  }
}
@media (orientation:landscape) and (max-height:500px) and (min-width:701px) and (max-width:1100px) and (pointer:coarse) {
  html { scrollbar-gutter:auto; }
  :is(#scvLanguageHeader,.scv-pdf-topbar #scvLanguageUtility) > summary {
    justify-content:center;
    padding-inline:0;
  }
}

/* The compact menu shares the links track, keeping the language slot fixed. */
@media (min-width:1101px) and (max-width:1240px) {
  .scv-global-header { --scv-language-search-track:250px; }
  .scv-global-header:not(.scv-header-focused) > .scv-global-nav:has(> .scv-global-links):has(.scv-mobile-menu-toggle-v40) > .scv-global-links {
    display:none;
  }
  .scv-global-header:not(.scv-header-focused) > .scv-global-nav:has(> .scv-global-links) > .scv-mobile-header-actions:has(.scv-mobile-menu-toggle-v40) {
    display:flex;
    grid-area:links;
    justify-self:center;
  }
  .scv-global-header:not(.scv-header-focused) > .scv-global-nav:has(> .scv-global-links) > .scv-mobile-header-actions > :not(.scv-mobile-menu-toggle-v40) {
    display:none;
  }
  .scv-mobile-menu-toggle-v40 {
    display:inline-grid;
    place-items:center;
    width:44px;
    height:44px;
    padding:0;
    border-radius:6px;
  }
}

/* Keep the wider search field to the left of the tablet language slot. */
@media (min-width:701px) and (max-width:1100px) and (min-height:501px),
       (min-width:701px) and (max-width:1100px) and (pointer:fine) {
  html body .scv-global-header:not(.scv-header-focused) > .scv-global-nav:has(> #scvLanguageHeader) > .scv-header-search-desktop {
    display:flex;
    order:2;
    flex:0 0 auto;
    width:clamp(176px,calc(100vw - 520px),250px);
    min-width:0;
    max-width:none;
  }
  .scv-global-header:not(.scv-header-focused) > .scv-global-nav:has(> .scv-header-search-desktop) .scv-header-search-toggle {
    display:none;
  }
  html body .scv-global-header > .scv-global-nav:has(> .scv-header-search-desktop) > .scv-mobile-header-actions {
    margin-inline-start:auto;
  }
}


/* Match header control sizing through the homepage's content-density scaling. */
@media (min-width:981px) {
  body:has(> .scv-page-content > #home) #scvLanguageFooter { zoom:calc(1 / 0.93); }
}
