/* Explicit footer language choice; automatic homepage defaults live in the Worker. */
.language-switch{display:flex;align-items:center;gap:5px;margin-left:auto;margin-right:20px;font:500 12px/1 var(--font-sans,Arial,sans-serif);white-space:nowrap}
.language-switch a{display:flex;align-items:center;justify-content:center;min-width:32px;min-height:40px;color:var(--muted,#666);text-decoration:none;border-radius:20px}
.language-switch a[aria-current="page"]{color:var(--ink,#111);text-decoration:underline;text-underline-offset:4px}
.language-switch a:focus-visible{outline:2px solid var(--accent,#4233ff);outline-offset:2px}
.language-switch span{color:#aaa;font-weight:400}
html:lang(en) body .menu-toggle::before{content:"Menu"}
html:lang(it) body .menu-toggle::before{content:"Menu"}
@media(max-width:699px){html:lang(en) .resource-preview figcaption::before{content:"Swipe the preview horizontally. "}html:lang(it) .resource-preview figcaption::before{content:"Scorri l’anteprima orizzontalmente. "}html:lang(en) .resource-table::before{content:"You can scroll the table horizontally."}html:lang(it) .resource-table::before{content:"Puoi scorrere la tabella orizzontalmente."}}
@media(max-width:600px){.language-switch{margin-right:8px;gap:0;font-size:11px}.language-switch a{min-width:28px;min-height:44px}}
/* Stacked translated tables need a full-width caption rather than a
   browser-generated caption column alongside their block rows. */
@media(max-width:699px){
  html:is(:lang(en),:lang(it)) .post-table--stack caption{
    display:block;
    width:100%;
    margin-bottom:10px;
    text-align:left;
    line-height:1.5;
  }
}

.footer-language .language-switch { margin: 0; gap: 4px; }
.footer-language .language-switch a { color: #b8b8bd; min-width: 36px; }
.footer-language .language-switch a[aria-current="page"] { color: #fff; }
@media(max-width:699px) {
  .footer-language .language-switch { font-size: .75rem; }
  .footer-language .language-switch a { min-width: 44px; min-height: 44px; }
}
