/* Language switcher and Korean typography — preview and later official use. */
html[lang="ko"],
html[lang="ko"] body{
  font-family:"IBM Plex Sans KR","IBM Plex Sans",Arial,sans-serif;
}
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] .brand-text{
  font-family:"IBM Plex Sans KR","IBM Plex Sans",Arial,sans-serif;
}

.header-end{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  margin-left:auto;
}
.lang-switcher{
  position:relative;
  z-index:30;
}
.lang-switcher-toggle{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-height:44px;
  padding:6px 12px;
  border:1px solid var(--line);
  background:var(--white);
  color:var(--ink);
  font:600 14px/1.2 "IBM Plex Sans KR","IBM Plex Sans",Arial,sans-serif;
  cursor:pointer;
}
.lang-switcher-label{
  font-size:11px;
  letter-spacing:.06em;
  text-transform:uppercase;
  color:var(--muted);
  font-weight:600;
}
.lang-switcher-current{
  font-weight:600;
}
.lang-switcher-toggle::after{
  content:"";
  width:0;
  height:0;
  border-left:5px solid transparent;
  border-right:5px solid transparent;
  border-top:5px solid var(--ink);
  margin-left:2px;
}
.lang-switcher-toggle[aria-expanded="true"]::after{
  border-top:0;
  border-bottom:5px solid var(--ink);
}
.lang-switcher-panel{
  position:absolute;
  right:0;
  top:calc(100% + 6px);
  min-width:100%;
  background:var(--white);
  border:1px solid var(--line);
  box-shadow:0 8px 24px rgba(22,22,22,.08);
  padding:6px 0;
}
.lang-switcher-list,
.lang-switcher-panel noscript ul{
  list-style:none;
  margin:0;
  padding:0;
}
.lang-switcher-list a,
.lang-switcher-panel noscript a{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  min-height:44px;
  padding:8px 14px;
  text-decoration:none;
  font:500 15px/1.2 "IBM Plex Sans KR","IBM Plex Sans",Arial,sans-serif;
  color:var(--ink);
  white-space:nowrap;
}
.lang-switcher-list a:hover,
.lang-switcher-panel noscript a:hover{
  background:var(--paper-2);
}
.lang-switcher-list a.is-current,
.lang-switcher-list a[aria-current="true"]{
  font-weight:700;
}
.lang-switcher-list a.is-current::after,
.lang-switcher-list a[aria-current="true"]::after{
  content:"✓";
  font-size:13px;
  color:var(--ink);
}
.lang-notice{
  position:fixed;
  inset:0;
  z-index:80;
  display:flex;
  align-items:center;
  justify-content:center;
  background:rgba(11,11,11,.45);
  padding:24px;
}
.lang-notice[hidden]{display:none !important}
.lang-notice-card{
  background:var(--white);
  color:var(--ink);
  border:1px solid var(--line);
  max-width:28rem;
  width:100%;
  padding:28px 24px 24px;
}
.lang-notice-card p{margin:0 0 20px;font-size:16px;line-height:1.5}
.lang-missing-banner{
  max-width:var(--max);
  margin:0 auto;
  padding:14px 28px 0;
  font-size:15px;
  color:var(--ink);
}
.lang-missing-banner::before{
  content:"";
}
@media (max-width:760px){
  .lang-switcher-toggle{
    min-width:44px;
    padding:6px 10px;
  }
  .lang-switcher-label{display:none}
  .lang-switcher-current{font-size:14px}
  .lang-missing-banner{padding:12px 20px 0}
}
@media print{
  .lang-switcher,
  .lang-notice,
  .lang-missing-banner{display:none !important}
}

/* Keep Korean words and particles together on narrow screens.
   overflow-wrap:break-word is the fallback if a single token is wider than the container. */
html[lang="ko"] h1,
html[lang="ko"] h2,
html[lang="ko"] h3,
html[lang="ko"] h4,
html[lang="ko"] p,
html[lang="ko"] li,
html[lang="ko"] dt,
html[lang="ko"] dd,
html[lang="ko"] td,
html[lang="ko"] th,
html[lang="ko"] label,
html[lang="ko"] figcaption,
html[lang="ko"] blockquote,
html[lang="ko"] .lead,
html[lang="ko"] .brand-text,
html[lang="ko"] .hero-product-tile-name,
html[lang="ko"] .article-meta,
html[lang="ko"] .note,
html[lang="ko"] .kicker,
html[lang="ko"] .card p,
html[lang="ko"] .prose,
html[lang="ko"] .prose p,
html[lang="ko"] .prose li,
html[lang="ko"] .checklist-list li span,
html[lang="ko"] .footer-col a,
html[lang="ko"] footer .footer-col p,
html[lang="ko"] footer .footer-col li,
html[lang="ko"] footer .footer-contact p,
html[lang="ko"] footer .footer-bottom p,
html[lang="ko"] .compare-table td,
html[lang="ko"] .article-card p,
html[lang="ko"] .resource-search-examples,
html[lang="ko"] .card-cta-links{
  word-break:keep-all;
  overflow-wrap:break-word;
  hyphens:none;
}
html[lang="ko"] .card[id]{
  scroll-margin-top:96px;
}
html[lang="ko"] .card-cta-links{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:8px;
  margin:0 18px 20px;
}
html[lang="ko"] .card .card-cta-links .text-link{
  margin:0;
}

/* Request a quote first, language dropdown immediately to its right. */
.header-utilities{
  display:flex;
  align-items:center;
  gap:12px;
  flex:0 0 auto;
  min-width:0;
}
.header-utilities .button.small{
  white-space:nowrap;
  flex:0 0 auto;
}
@media (max-width:1100px) and (min-width:761px){
  /* Mid-width compact header: keep full nav, hide only the "Language"/"언어" caption. */
  .lang-switcher-label{display:none}
  .site-header nav{gap:12px}
}
@media (max-width:760px){
  .header-end{gap:8px;flex-shrink:0}
  .header-utilities{
    order:1;
    gap:8px;
    flex-shrink:0;
  }
  .header-end > .menu-toggle{order:2}
  .header-end > nav{order:3}
  .header-utilities .button.small{
    padding:10px 12px;
    min-height:44px;
  }
  /* Let the logo shrink so Request a quote + language + menu do not overlap it. */
  .site-header .brand{flex:1 1 auto;min-width:0}
  .site-header .brand-logo{
    max-width:100%;
    width:auto;
    height:auto;
    max-height:34px;
  }
}
@media (max-width:430px){
  .site-header{padding:8px 12px;gap:8px}
  .header-utilities{gap:6px}
  .header-end{gap:6px}
  .header-utilities .button.small{
    padding:10px 10px;
    font-size:12px;
  }
}
