/* Keep the homepage language control in the existing measured brand strip. */
.home-language {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  align-self: center;
  gap: 2px;
  margin-inline-start: auto;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  background: var(--panel);
  font-size: 12px;
  line-height: 1.2;
}
.home-language a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 36px;
  padding: 0 9px;
  border-radius: 3px;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.home-language a[aria-current="true"] { background: var(--accent); color: var(--bg); font-weight: 700; }
.home-language a:hover { outline: 1px solid var(--accent); }
.home-language a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.home-language-code { display: none; }
.home-localized .pc-shell-brand { gap: 8px; }
.home-localized .pc-shell-mascot { flex-shrink: 0; margin-left: 0; }
/* The homepage is dark-only; its shared shell includes both theme variants. */
.home-localized:not(.etand-page) .pc-shell-mascot.etand-mascot--day { display: none; }
.home-localized .vt-strap { min-width: 0; flex-shrink: 1; overflow: hidden; text-overflow: ellipsis; }
html[lang="ko"] .home-localized { word-break: keep-all; overflow-wrap: anywhere; }
html[lang="ko"] .home-marquee { letter-spacing: normal; }
/* Longer navigation labels must remain readable inside the expanded sidebar. */
body.home-localized:not(.pc-rail) #pcSidenav .pc-sidenav-lbl {
  min-width: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.3;
}
@media (max-width: 1279px) {
  .home-localized .vt-strap { display: none; }
}
@media (max-width: 700px) {
  .home-localized.etand-page .etand-nav { row-gap: 1rem; }
}
@media (max-width: 560px) {
  .home-language-name { display: none; }
  .home-language-code { display: inline; }
  .home-language a { padding-inline: 5px; }
}
@media (max-width: 374px) {
  .home-localized:not(.etand-page) .pc-shell-brand { flex-wrap: wrap; }
  .home-localized:not(.etand-page) .pc-shell-mascot { margin-inline-start: auto; }
  .home-localized .pc-shell-brand .home-language {
    order: 1;
    flex-basis: 100%;
    margin-inline-start: 0;
    justify-content: center;
  }
}
