/* Minimal, accessible DE/EN page-to-page language navigation; no JavaScript. */
.en-locale-switch{display:inline-flex;align-items:center;gap:2px;flex:0 0 auto;padding:3px;border:1px solid #dfe3df;background:#fff;border-radius:999px;white-space:nowrap;line-height:1;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;box-shadow:0 1px 5px rgba(0,0,0,.035);vertical-align:middle}
.en-locale-switch a,.en-locale-switch span{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:35px;min-height:29px;padding:0 8px;font-size:12px;font-weight:700;letter-spacing:.015em;text-decoration:none;border-radius:999px;color:#4b534d;background:transparent;line-height:1.2}
.en-locale-switch a:hover{background:#f5f5f4;color:#121814}
.en-locale-switch a:focus-visible{outline:2px solid #a47b00;outline-offset:2px}
.en-locale-switch [aria-current="page"]{background:#ffcf27;color:#161712}
.en-locale-switch--hero{float:right;margin:0 0 9px 14px;position:relative;z-index:2}
.en-locale-switch--header{margin-left:8px}
@media(max-width:600px){.en-locale-switch a,.en-locale-switch span{min-width:31px;min-height:28px;padding:0 6px;font-size:11px}.en-locale-switch--header{margin-left:2px}.en-locale-switch--hero{margin:0 0 8px 9px}}
/* Existing editorial nav hides its first child at narrow widths; keep language switch links visible. */
@media(max-width:420px){.site-header .nav .en-locale-switch a:first-child{display:inline-flex}}
@media(max-width:360px){.site-header .shell{flex-wrap:wrap;gap:7px;padding-top:6px;padding-bottom:6px}.site-header .shell>.nav{flex:1 1 100%;justify-content:flex-end;flex-wrap:wrap}}

/* Existing dashboard topbar: one fixed location for DE/EN on calculator/legal pages. */
html body.dashboard-page > .dashboard-topbar > .en-locale-switch{
  position:absolute;right:clamp(12px,2.5vw,36px);top:50%;transform:translateY(-50%);
  z-index:3;margin:0;
}
/* Keep the existing header available even with an expanded desktop sidebar. */
@media(min-width:981px){
  html body.dashboard-page:not(.dashboard-sidebar-collapsed) > .dashboard-topbar{display:flex;}
  html body.dashboard-page:not(.dashboard-sidebar-collapsed) > .dashboard-topbar > .dashboard-menu-button{visibility:hidden;pointer-events:none;}
  html body.dashboard-page:not(.dashboard-sidebar-collapsed) > .dashboard-topbar > .dashboard-topbar-logo{visibility:hidden;}
}
@media(max-width:355px){
  html body.dashboard-page > .dashboard-topbar .dashboard-topbar-logo img{width:122px;}
  html body.dashboard-page > .dashboard-topbar > .en-locale-switch a,
  html body.dashboard-page > .dashboard-topbar > .en-locale-switch span{min-width:29px;padding-inline:5px;font-size:11px;}
}
/* Black icon strokes on the existing yellow circle of the §35a result card. */
html body.dashboard-page main .summary-card .summary-header span.coin-icon{color:#101312!important;}
html body.dashboard-page main .summary-card .summary-header span.coin-icon svg{stroke:#101312!important;}

/* Display the existing DE/EN control in the homepage scroll-only navigation. */
.scroll-nav{display:flex;align-items:center;gap:8px}
.scroll-nav>.en-locale-switch{margin:0 2px 0 3px}
@media(max-width:850px){.scroll-nav>.scroll-nav-mobile{flex:1 1 auto;min-width:0}.scroll-nav>.en-locale-switch{margin:0 2px 0 0}}
