/* Language switch in the header (Header.cshtml): globe button with a dropdown of languages with flags,
   gold on the header background (slightly lighter than the footer).
   Shared by both layouts (_Layout and the cabinet _LayoutDeposit). */
header.topbar .nav-end{display:flex;align-items:center;gap:10px}
header.topbar .lang-switch{position:relative;display:flex;align-items:center;gap:8px}
header.topbar .lang-switch__current{display:block;width:26px;height:18px;flex:none;object-fit:cover;border-radius:3px;box-shadow:0 0 0 1px rgba(255,255,255,.2);cursor:pointer}
header.topbar .lang-switch__btn{
  display:inline-flex;align-items:center;justify-content:center;width:42px;height:42px;padding:0;
  border:1px solid rgba(255,255,255,.13);border-radius:999px;background:transparent;color:#f5f7fa;cursor:pointer
}
header.topbar .lang-switch__btn:hover,
header.topbar .lang-switch.is-open .lang-switch__btn{border-color:#e0c48a;color:#e0c48a}
header.topbar .lang-switch__btn svg{width:20px;height:20px;display:block}
header.topbar .lang-switch__menu{
  display:none;position:absolute;top:calc(100% + 16px);right:0;z-index:60;min-width:180px;
  margin:0;padding:6px;list-style:none;background:rgba(16,17,19,.92);-webkit-backdrop-filter:blur(16px);backdrop-filter:blur(16px);border:1px solid rgba(255,255,255,.13);border-radius:12px;
  /* shadow goes only down: a plain shadow (blur larger than the offset) leaked above the top edge
     as a dark strip at the junction with the header */
  box-shadow:0 18px 30px -12px rgba(0,0,0,.45)
}
header.topbar .lang-switch.is-open .lang-switch__menu{display:grid}
/* languages in two columns (the list will grow); filled row by row */
header.topbar .lang-switch__menu{grid-template-columns:repeat(2,minmax(175px,1fr));gap:2px 4px;min-width:0;max-height:70vh;overflow-y:auto}
@media(max-width:420px){
  header.topbar .lang-switch__menu{grid-template-columns:1fr}
}
header.topbar .lang-switch__menu li{margin:0;padding:0}
header.topbar .lang-switch__menu a{
  display:flex;align-items:center;gap:10px;padding:9px 12px;border-radius:9px;
  color:#e0c48a;font-size:14px;line-height:1.3;text-decoration:none;white-space:nowrap
}
header.topbar .lang-switch__menu a:hover{background:rgba(255,255,255,.06);color:#fff}
header.topbar .lang-switch__menu a.is-current{color:#fff;font-weight:700}
header.topbar .lang-switch__menu a.is-current::after{content:"\2713";margin-left:auto;padding-left:12px;color:#c4a36a}
header.topbar .lang-switch__flag{display:block;width:22px;height:15px;flex:none;object-fit:cover;border-radius:2px;box-shadow:0 0 0 1px rgba(255,255,255,.15)}
/* on devices with a mouse the menu opens on hover; the click (JS) stays for touch screens */
@media (hover:hover){
  header.topbar .lang-switch:hover .lang-switch__menu{display:grid}
  header.topbar .lang-switch:hover .lang-switch__btn{border-color:#e0c48a;color:#e0c48a}
}
/* invisible bridge over the gap between the button and the menu: the menu does not close while the pointer moves to it;
   the menu starts right below the header (16px under the button): overlapping the translucent header gave a dark strip */
header.topbar .lang-switch::after{content:"";position:absolute;left:0;right:0;top:100%;height:18px}
/* Header fit (the language switch added ~85px): labels never wrap; tighter gaps; between 961px and 1279px
   the "Verify an obligation" button is hidden - it duplicates the "Verification" menu item (same page) */
header.topbar .nav{gap:16px}
header.topbar .nav-links{gap:18px}
header.topbar .nav-links a,
header.topbar .nav-cta .btn,
header.topbar .user-chip{white-space:nowrap}
header.topbar .nav-end{flex:none}
@media (max-width:1279px){
  header.topbar .nav-cta .btn-ghost{display:none}
}
/* narrow desktop: the WMID chip is hidden too (it is shown on Home/Check) */
@media (max-width:1060px){
  header.topbar .user-chip{display:none}
}
/* Language switch in the footer (Footer.cshtml): current language in gold; on hover (click on touch screens)
   a black panel with all languages in a row opens above it */
footer.site-foot .foot-lang{position:relative;display:inline-flex;align-items:center;gap:10px;margin-top:20px}
footer.site-foot .foot-lang__btn{
  display:inline-flex;align-items:center;gap:6px;padding:0;border:0;background:none;
  color:#e0c48a;font:inherit;font-size:14px;cursor:pointer
}
footer.site-foot .foot-lang__btn svg{width:16px;height:16px;display:block}
footer.site-foot .foot-lang__caret{font-size:10px;transition:transform .2s ease}
/* quick switch to English next to the current language */
footer.site-foot .foot-lang__quick{color:#e0c48a;font-size:14px;text-decoration:none}
footer.site-foot .foot-lang__quick:hover{color:#fff}
footer.site-foot .foot-lang__panel{
  display:none;position:absolute;left:0;bottom:calc(100% + 10px);z-index:60;
  width:min(560px,calc(100vw - 40px));padding:14px 18px;
  flex-wrap:wrap;gap:8px 16px;
  background:#0d0c0a;border:1px solid rgba(255,255,255,.13);border-radius:12px;box-shadow:0 -8px 28px rgba(0,0,0,.45)
}
footer.site-foot .foot-lang.is-open .foot-lang__panel{display:flex}
footer.site-foot .foot-lang.is-open .foot-lang__caret{transform:rotate(180deg)}
footer.site-foot .foot-lang__panel a{color:#e0c48a;text-decoration:none;white-space:nowrap}
footer.site-foot .foot-lang__panel a:hover{color:#fff}
footer.site-foot .foot-lang__panel a.is-current{color:#fff;font-weight:700}
/* language without its own translation: a note in that language ("site in English") above the item; it appears only
   after a long hover (the pointer stopped on the item, not passing over it to another language) and hides at once */
footer.site-foot .foot-lang__panel a[data-note]:not([data-note=""]){position:relative}
footer.site-foot .foot-lang__panel a[data-note]:not([data-note=""])::after{
  content:attr(data-note);position:absolute;left:50%;bottom:calc(100% + 8px);z-index:61;
  transform:translate(-50%,4px);padding:5px 10px;border-radius:8px;
  background:#faf7f1;color:#12110f;font-size:12px;font-weight:400;line-height:1.3;white-space:nowrap;
  box-shadow:0 6px 18px rgba(0,0,0,.35);pointer-events:none;
  opacity:0;visibility:hidden;transition:opacity .15s ease,transform .15s ease,visibility 0s linear .15s
}
footer.site-foot .foot-lang__panel a[data-note]:not([data-note=""]):hover::after,
footer.site-foot .foot-lang__panel a[data-note]:not([data-note=""]):focus-visible::after{
  opacity:1;visibility:visible;transform:translate(-50%,0);
  transition:opacity .15s ease .7s,transform .15s ease .7s,visibility 0s linear .7s
}
@media (hover:hover){
  footer.site-foot .foot-lang:hover .foot-lang__panel{display:flex}
  footer.site-foot .foot-lang:hover .foot-lang__caret{transform:rotate(180deg)}
}
/* invisible bridge over the gap between the label and the panel */
footer.site-foot .foot-lang::before{content:"";position:absolute;left:0;right:0;bottom:100%;height:12px}
