.grain-language-menu-item{display:flex!important;align-items:center!important;position:relative}
.grain-language-switcher-dropdown{position:relative;display:inline-block;margin:0;padding:0}
.grain-language-switcher-dropdown summary{list-style:none}
.grain-language-switcher-dropdown summary::-webkit-details-marker{display:none}

/* Grain-native language control: subtle on the grape nav, premium rather than "utility blue". */
.grain-language-switcher-button{
  display:inline-flex;align-items:center;justify-content:center;
  width:32px;height:32px;padding:0!important;
  border:1px solid rgba(245,237,216,.55);
  border-radius:999px;
  background:rgba(245,237,216,.08);
  color:var(--cream,#F5EDD8);
  box-shadow:none;
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease,transform .16s ease;
}
.grain-language-switcher-button:hover,.grain-language-switcher-button:focus{
  background:rgba(245,200,66,.13);
  border-color:var(--yellow,#F5C842);
  color:var(--yellow,#F5C842);
  outline:none;
}
.grain-language-switcher-button svg{
  width:17px;height:17px;display:block;
  stroke:currentColor;fill:none;stroke-width:1.65;
  stroke-linecap:round;stroke-linejoin:round;
}
.grain-language-switcher-dropdown[open] .grain-language-switcher-button{
  border-color:var(--yellow,#F5C842);
  color:var(--yellow,#F5C842);
  transform:translateY(-1px);
}

.grain-language-switcher-menu{
  position:absolute;top:calc(100% + 8px);right:0;z-index:9999;
  min-width:118px;padding:7px;
  background:var(--cream,#F5EDD8);
  border:1px solid rgba(139,26,107,.16);
  border-radius:13px;
  box-shadow:0 10px 28px rgba(26,15,10,.22);
  display:flex;flex-direction:column;gap:3px;
}
.grain-language-option{
  display:flex;align-items:center;justify-content:space-between;
  padding:.5rem .7rem;border-radius:9px;
  text-decoration:none!important;
  font-size:.82rem!important;font-weight:800!important;line-height:1.2;
  color:var(--dark,#1A0F0A)!important;
  white-space:nowrap;background:transparent;
}
.grain-language-option:hover,.grain-language-option:focus{
  background:rgba(139,26,107,.08);color:var(--grape,#8B1A6B)!important;outline:none;
}
.grain-language-option.is-current{
  background:var(--grape,#8B1A6B);
  color:var(--cream,#F5EDD8)!important;
  cursor:default;
}
.grain-language-option.is-current::after{
  content:"•";font-size:1rem;line-height:1;
  color:var(--yellow,#F5C842);margin-inline-start:.45rem;
}

/* Mobile drawer is dark, so keep the globe restrained and consistent with the main nav. */
#grain-drawer .grain-language-menu-item{margin-top:.65rem;padding-top:.55rem;border-top:1px solid rgba(255,255,255,.06)}
#grain-drawer .grain-language-switcher-button{border-color:rgba(245,237,216,.45);background:rgba(245,237,216,.06)}
#grain-drawer .grain-language-switcher-menu{right:0;left:auto}
@media (max-width:900px){#grain-nav .nav-links .grain-language-menu-item{display:none!important}}
