/* The language names appear over the site, without a separate panel. */
.hd.has-language-switch .lang-switch{
  position:absolute;
  z-index:2;
  top:50%;
  left:148px;
  transform:translateY(-50%);
}
.lang-switch{color:inherit;font:400 12px/1.2 var(--serif,"Shippori Mincho",serif)}
.lang-switch summary{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-width:48px;
  min-height:44px;
  padding:0 6px 0 12px;
  border:0;
  border-left:1px solid currentColor;
  background:transparent;
  color:inherit;
  cursor:pointer;
  list-style:none;
  letter-spacing:.15em;
  opacity:.9;
  transition:opacity .25s ease;
}
.lang-switch summary:hover,.lang-switch[open] summary{opacity:1}
.lang-switch summary::-webkit-details-marker{display:none}
.lang-switch summary:focus-visible{outline:1px solid currentColor;outline-offset:2px}
.lang-switch summary::after{
  content:"";
  display:block;
  width:5px;
  height:5px;
  margin-top:-3px;
  border-right:1px solid currentColor;
  border-bottom:1px solid currentColor;
  transform:rotate(45deg);
  transition:transform .3s ease,margin-top .3s ease;
}
.lang-switch[open] summary::after{margin-top:3px;transform:rotate(225deg)}
.lang-switch nav{
  position:absolute;
  top:calc(100% + 8px);
  left:11px;
  z-index:3;
  width:max-content;
  min-width:130px;
  padding:2px 0 8px;
  color:inherit;
  animation:language-mist .65s cubic-bezier(.22,.61,.36,1) both;
}
.lang-switch nav a{
  display:block;
  width:max-content;
  max-width:190px;
  padding:6px 0;
  color:inherit;
  font:400 17px/1.55 var(--serif,"Shippori Mincho",serif);
  letter-spacing:.1em;
  text-shadow:0 0 14px rgba(245,243,237,.9);
  white-space:nowrap;
  transition:opacity .3s ease,transform .3s ease;
}
.lang-switch nav a:not([aria-current="page"]){opacity:.88}
.lang-switch nav a:hover,.lang-switch nav a:focus-visible{opacity:1;transform:translateX(3px)}
.lang-switch nav a:focus-visible{outline:1px solid currentColor;outline-offset:3px}
.lang-switch nav a[aria-current="page"]{text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px}
.hd:not(.solid):not(.open) .lang-switch nav a{
  text-shadow:0 1px 3px #000,0 0 12px rgba(0,0,0,.95);
}
@keyframes language-mist{
  from{opacity:0;filter:blur(5px);transform:translateY(-5px)}
  to{opacity:1;filter:none;transform:none}
}
@media(prefers-reduced-motion:reduce){
  .lang-switch nav{animation:none}
  .lang-switch summary,.lang-switch nav a{transition:none}
}

/* The information and policy pages have light, separate headers. */
.info-header.has-language-switch .lang-switch,
.terms-header.has-language-switch .lang-switch,
.site-header.has-language-switch .lang-switch{
  position:relative;
  z-index:12;
  top:auto;
  left:auto;
  transform:none;
  flex:0 0 auto;
  color:#272725;
}
.info-header.has-language-switch .lang-switch nav,
.terms-header.has-language-switch .lang-switch nav,
.site-header.has-language-switch .lang-switch nav{left:auto;right:0;text-align:right}
.info-header.has-language-switch .header-actions,
.terms-header.has-language-switch .header-actions{margin-left:auto}
.info-header.has-language-switch .lang-switch,
.terms-header.has-language-switch .lang-switch{margin-left:16px}
.site-header.has-language-switch{grid-template-columns:170px minmax(0,1fr) auto auto;gap:20px}
@media(max-width:1080px){
  .site-header.has-language-switch{grid-template-columns:145px minmax(0,1fr) auto auto;gap:15px}
}
@media(max-width:820px){
  .site-header.has-language-switch{display:flex;justify-content:space-between}
  .site-header.has-language-switch .lang-switch{margin-left:auto;margin-right:12px}
}
@media(max-width:760px){
  .hd.has-language-switch .hd-menu span{display:none}
  .hd.has-language-switch .lang-switch{left:65px}
  .hd.has-language-switch .lang-switch summary{min-width:44px;padding-left:9px;gap:6px}
  .hd.has-language-switch .lang-switch nav{left:-41px;min-width:0}
  .info-header.has-language-switch .lang-switch,
  .terms-header.has-language-switch .lang-switch{margin-left:8px}
  .info-header.has-language-switch .lang-switch nav,
  .terms-header.has-language-switch .lang-switch nav,
  .site-header.has-language-switch .lang-switch nav{
    position:fixed;
    top:68px;
    right:20px;
    left:auto;
    min-width:0;
  }
}
@media(max-width:340px){
  .hd.has-language-switch .hd-mark{max-width:72px}
}
