/* Classes shared by elements on several pages. */

/* Dutch/English switch (_Components/language-switcher.php). Each page sets
   its position and background. */
.language-switcher{display:flex;border:1px solid rgba(227,197,99,.55);border-radius:999px;padding:3px}
.language-switcher a{position:relative;z-index:1;border:0;background:none;color:var(--language-button-text);font:700 .74rem/1 "Public Sans";padding:7px 13px;border-radius:999px;cursor:pointer;text-decoration:none;transition:color .3s}
.language-switcher a[aria-current="true"]{color:var(--language-button-active-text)}
.language-switcher-thumb{position:absolute;top:3px;bottom:3px;left:3px;width:calc(50% - 3px);background:var(--language-thumb-background);border-radius:999px;transition:transform .35s var(--ease-out)}
.language-switcher[data-language="en"] .language-switcher-thumb{transform:translateX(100%)}

/* On phones the two language links make way for one toggle link that
   looks the same: both labels, with the thumb behind the active one. */
.language-switcher .language-toggle{display:none;padding:0}
.language-toggle span{padding:7px 13px;border-radius:999px;transition:color .3s}
.language-switcher[data-language="nl"] .language-toggle span:first-child,
.language-switcher[data-language="en"] .language-toggle span:last-child{color:var(--language-button-active-text)}
@media (max-width:720px){
  .language-switcher .language-option{display:none}
  .language-switcher .language-toggle{display:flex}
}
