/* Shared KR/GLOBAL navigation. Load after market-specific styles. */
:root {
  --site-header-height: 66px;
  --gnb-control-size: 44px;
  --gnb-dock-gap: 2px;
  --gnb-dock-width: calc(6 * var(--gnb-control-size) + 5 * var(--gnb-dock-gap));
}
.site-header {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  height: var(--site-header-height);
}
.site-header > .brand { grid-column: 1; justify-self: start; min-width: 0; }
.site-header > .header-utility { grid-column: 2; gap: 18px; }
/* Center the six destinations, not the whole cluster: search/theme flow to their right. */
.site-header .gnb-control-cluster {
  position: absolute;
  top: 50%;
  left: 50%;
  width: var(--gnb-dock-width);
  height: var(--gnb-control-size);
  gap: 6px;
  transform: translate(-50%, -50%);
  overflow: visible;
}
.site-header .gnb-control-cluster > .dock {
  flex: 0 0 var(--gnb-dock-width);
  width: var(--gnb-dock-width);
  gap: var(--gnb-dock-gap);
}
.site-header .dock__item {
  flex: 0 0 var(--gnb-control-size);
  width: var(--gnb-control-size);
  height: var(--gnb-control-size);
}
.site-header :is(.gnb-search-button, .gnb-appearance-button) {
  flex: 0 0 var(--gnb-control-size);
  width: var(--gnb-control-size);
  height: var(--gnb-control-size);
}
/* Reserve room for the optional active-job indicator at compact desktop widths. */
@media (min-width: 960px) and (max-width: 1439px) {
  .site-header { gap: 10px; }
  .site-header > .header-utility { gap: 6px; }
}
@media (max-width: 959px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; }
  .site-header .gnb-control-cluster {
    position: static;
    width: auto;
    height: var(--gnb-control-size);
    gap: 4px;
    transform: none;
  }
  .site-header .gnb-control-cluster > .dock,
  .site-header > .header-utility { display: none; }
  .site-header:has(.header-active-job--mobile:not([hidden])) {
    grid-template-columns: minmax(0, 1fr) auto auto auto;
  }
}
@media (max-width: 720px) {
  :root { --site-header-height: 68px; }
}
/* Explicit slots keep labels out of the leading-icon column, even after localization. */
.mobile-drawer nav a { grid-template-columns: 28px minmax(0, 1fr) 24px; }
.mobile-drawer nav a > svg:first-child { display: block; grid-column: 1; grid-row: 1; }
.mobile-drawer nav a > span { grid-column: 2; grid-row: 1; min-width: 0; }
.mobile-drawer nav a > svg.trailing { grid-column: 3; grid-row: 1; }
.mobile-drawer nav a[data-mobile-shop] > span { white-space: nowrap; }


/* Keep both wordmarks inside their grid slot on narrow phones. */
@media (max-width:400px) {
  .site-header > .brand { width:100%; max-width:100%; }
  html[data-labs-market="GLOBAL"] .site-header > .brand { font-size:clamp(14px,calc(12vw - 24px),22px); }
}
