/* Shared language controls. */
.language-switch{display:flex;align-items:center;justify-content:center;gap:3px;padding:4px;border:1px solid rgba(72,47,30,.25);border-radius:12px;background:#f6f1e6;box-sizing:border-box}
.language-option{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:7px 9px;border-radius:8px;color:#684a32;font:700 12px/1.3 Pretendard,"Noto Sans KR","Noto Sans TC","Microsoft JhengHei","Noto Sans JP","Yu Gothic",Meiryo,Arial,sans-serif;text-decoration:none;white-space:nowrap}
.language-option:hover{background:#eee4d2}
.language-option[aria-current="true"]{background:#482f1e;color:#e0c477;cursor:default}
.language-option:focus-visible{outline:3px solid #917025;outline-offset:2px}
.site-nav.has-language-switch{grid-template-columns:minmax(220px,1.35fr) repeat(var(--nav-link-count,5),minmax(0,1fr)) auto}
.site-nav.has-language-switch .site-brand,.site-nav.has-language-switch .site-link{white-space:normal;overflow-wrap:anywhere}
.site-nav.has-language-switch .site-link{word-break:keep-all}
html[lang="ko"] .site-nav.has-language-switch .site-brand{white-space:nowrap;overflow-wrap:normal}
.scene-nav.has-language-switch{flex-wrap:wrap}
.scene-nav.has-language-switch .language-switch{margin-left:auto}
@media(max-width:1100px){
  .site-nav.has-language-switch{grid-template-columns:repeat(var(--nav-link-count,5),minmax(0,1fr))}
  .site-nav.has-language-switch .site-brand{grid-column:1/4;grid-row:1;text-align:left}
  .site-nav.has-language-switch .language-switch{grid-column:4/-1;grid-row:1;justify-self:end}
  .site-nav.has-language-switch .site-link{grid-row:2}
}
@media(max-width:700px){
  .site-nav.has-language-switch .site-brand{grid-column:1/-1;grid-row:1}
  .site-nav.has-language-switch .language-switch{grid-column:1/-1;grid-row:2;justify-self:stretch}
  .site-nav.has-language-switch .site-link{grid-row:3}
}
@media(max-width:620px){
  .language-switch{gap:2px;padding:3px}
  .language-option{min-height:36px;padding:7px;font-size:11px}
  .site-nav.has-language-switch .site-brand{font-size:13px}
}

/* The map keeps a measured header so its canvas never overlaps the language menu. */
.atlas-header.has-language-switch{height:auto;min-height:64px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px;gap:10px}
.atlas-header.has-language-switch nav{flex-wrap:wrap}
.atlas-header.has-language-switch + .atlas{height:calc(100dvh - var(--atlas-header-height,64px))}
@media(max-width:1000px){.atlas-header.has-language-switch .language-switch{flex-basis:100%;justify-content:center}}
@media(max-width:760px){.atlas-header.has-language-switch{min-height:52px;gap:6px;padding:7px 12px}.atlas-header.has-language-switch .atlas-brand{font-size:12px}.atlas-header.has-language-switch nav{margin-left:auto;gap:10px}}
