.language-switch {
  display:flex;
  align-items:center;
  gap:3px;
  flex:none;
  color:inherit;
}
.language-switch button {
  border:0;
  background:transparent;
  color:inherit;
  font:500 var(--type-label)/1.4 var(--sans,sans-serif);
  opacity:.55;
  padding:10px 7px;
  min-height:36px;
  cursor:pointer;
  white-space:nowrap;
}
.language-switch button[aria-pressed="true"] {
  opacity:1;
  font-weight:700;
  text-decoration:underline;
  text-decoration-color:var(--accent,#da4c24);
  text-underline-offset:5px;
}
.language-switch button:hover {
  opacity:1;
}
.language-switch > span {
  opacity:.3;
  font-size:10px;
}
.language-switch button:focus-visible {
  outline:2px solid var(--accent,#da4c24);
  outline-offset:2px;
}
.gp-page:lang(ko),.k-page:lang(ko) {
  font-family:var(--sans);
}
.gp-page:lang(ko) h2,.gp-page:lang(ko) h3,.k-page:lang(ko) h2,.k-page:lang(ko) h3,.k-page:lang(ko) .k-headline {
  font-family:var(--sans);
  line-height:1.3;
}
:is(.home-page,.gp-page,.k-page) header {
  gap:25px;
}
:is(.home-page,.gp-page,.k-page) header nav {
  margin-left:auto;
}
:is(.home-page,.gp-page,.k-page) header nav a {
  color:var(--muted);
  font-size:var(--type-support);
  font-weight:500;
}
:is(.home-page,.gp-page,.k-page) header nav a:hover {
  color:var(--accent);
}
@media(max-width:700px) {
  :is(.home-page,.gp-page,.k-page) header {
    display:grid;
    grid-template-columns:1fr auto;
    gap:8px 12px;
    height:auto;
    padding:12px 20px 10px;
  }
  :is(.home-page,.gp-page,.k-page) header .brand {
    grid-column:1;
    grid-row:1;
    font-size:15px;
    gap:10px;
  }
  :is(.home-page,.gp-page,.k-page) header .brand-mark {
    width:14px;
    height:23px;
  }
  :is(.home-page,.gp-page,.k-page) header .language-switch {
    grid-column:2;
    grid-row:1;
  }
  :is(.home-page,.gp-page,.k-page) header nav {
    grid-column:1/-1;
    grid-row:2;
    margin:0;
    gap:12px;
    justify-content:space-between;
    padding-top:6px;
    border-top:1px solid var(--line);
  }
  :is(.home-page,.gp-page,.k-page) header nav a {
    display:inline-flex;
    align-items:center;
    padding-block:8px;
    min-height:36px;
    line-height:1.4;
  }
  .gp-page:lang(ko) .gp-hero-intro h2 {
    font-size:33px;
  }
  .k-page:lang(ko) .k-headline {
    font-size:clamp(26px,7.7vw,30px);
  }
  .gp-page:lang(ko) .gp-tabs button,.k-page:lang(ko) .k-studio-tabs button {
    white-space:nowrap;
  }
}
.gp-page .i18n-text,.k-page .i18n-text {
  display:contents;
  font:inherit;
  color:inherit;
  letter-spacing:inherit;
  margin:0;
  padding:0;
}

/* Korean headings use their existing phrase boundaries instead of isolated endings. */
:is(.gp-page,.k-page):lang(ko) :is(h2,.k-headline) > .i18n-text {
  display:block;
  max-width:100%;
  text-wrap:balance;
}
/* Balance short descriptions without imposing fixed breaks at a single viewport. */
.home-page:lang(ko) .hero-description,
.gp-page:lang(ko) :is(.gp-hero-intro p,.gp-section-lead,.gp-workflow p,.gp-collaboration p,.gp-project p,.gp-output-list dd),
.k-page:lang(ko) :is(.k-hero-description,.k-flow-step p,.k-section-heading > p,.k-release-copy > p,.k-game-copy > p,.k-production-flow p) {
  text-wrap:balance;
}
.home-page:lang(ko) .hero-description { max-width:35em; }
.gp-page:lang(ko) .gp-hero-intro p,
.k-page:lang(ko) .k-hero-description { max-width:34em; }
.k-page:lang(ko) .k-flow-step p { max-width:100%; }
@media (max-width:400px) {
  .gp-page:lang(ko) .gp-hero-intro h2 { font-size:30px; }
  .k-page:lang(ko) :is(.k-section-heading h2,.k-game-copy h2) { font-size:28px; }
}
