/* 헤더 K — 포털형 3단: 유틸바 · 로고 줄 · 열 메가메뉴 */
.ks-header--k { background: #fff; border-top: 3px solid var(--ks-primary); }
.ks-header--k .kssh-k__top { border-bottom: 1px solid var(--ks-line, #e8e8e8); font-size: 12px; color: var(--ks-muted, #777); }
.ks-header--k .kssh-k__top .ks-container { display: flex; align-items: center; justify-content: space-between; height: 44px; }
.ks-header--k .kssh-k__top ul { display: flex; gap: 16px; margin: 0; padding: 0; list-style: none; }
.ks-header--k .kssh-k__top a { color: inherit; text-decoration: none; }
.ks-header--k .kssh-k__top a:hover { color: var(--ks-primary); }

.ks-header--k .kssh-k__brand .ks-container { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 104px; }
.ks-header--k .kssh-k__tag { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 12px; line-height: 1.3; color: #444; }
.ks-header--k .kssh-k__tag svg { flex: none; width: 56px; height: 56px; fill: var(--ks-secondary); }
.ks-header--k .kssh-k__tag b { display: block; font-size: 17px; letter-spacing: -0.5px; color: var(--ks-secondary); }
.ks-header--k .ks-logo { justify-self: center; }
.ks-header--k .ks-logo-text, .ks-header--k .ks-logo a { font-size: 32px; font-weight: 800; letter-spacing: -1.5px; color: #3f3f46; }
.ks-header--k .kssh-k__call { justify-self: end; padding: 6px 0; border-bottom: 2px solid var(--ks-primary); color: var(--ks-primary); font-size: 15px; font-weight: 700; text-decoration: none; }

.ks-header--k .kssh-k__burger { display: none; }
.ks-header--k .kssh-k__gnb { position: relative; z-index: 20; background: #fff; border-top: 1px solid var(--ks-line, #d9cfba); border-bottom: 1px solid var(--ks-line, #d9cfba); }
.ks-header--k .kssh-k__list { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); margin: 0; padding: 0; list-style: none; }
.ks-header--k .kssh-k__list li { display: grid; place-items: center; }
.ks-header--k .kssh-k__list a { font-size: 20px; font-weight: 700; line-height: 60px; letter-spacing: -0.5px; color: var(--ks-primary); text-decoration: none; }
.ks-header--k .kssh-k__list li:hover a, .ks-header--k .kssh-k__list li.is-current a { color: var(--ks-secondary); }
.ks-header--k .kssh-k__mega { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 3px solid var(--ks-primary); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.06); }
.ks-header--k .kssh-k__gnb:hover .kssh-k__mega, .ks-header--k .kssh-k__gnb:focus-within .kssh-k__mega { display: block; }
.ks-header--k .kssh-k__mega .ks-container { display: grid; grid-template-columns: repeat(var(--n, 6), 1fr); min-height: 200px; padding-top: 20px; }
.ks-header--k .kssh-k__col { padding: 0 6px 24px; border-left: 1px solid var(--ks-line, #e9e1d1); text-align: center; font-size: 13px; color: #555; }
.ks-header--k .kssh-k__col:first-child { border-left: 0; }
.ks-header--k .kssh-k__col strong { display: block; margin-bottom: 14px; font-size: 16px; color: var(--ks-primary); }
.ks-header--k .kssh-k__col ul { margin: 0; padding: 0; list-style: none; }
.ks-header--k .kssh-k__col a { display: block; padding: 4px 0; color: inherit; text-decoration: none; white-space: nowrap; }
.ks-header--k .kssh-k__col a:hover { color: var(--ks-secondary); font-weight: 600; }

@media (max-width: 820px) {
  .ks-header--k .kssh-k__brand .ks-container { grid-template-columns: 1fr; min-height: 0; padding-block: 14px; justify-items: center; gap: 10px; }
  .ks-header--k .kssh-k__brand .ks-container { position: relative; }
  .ks-header--k .kssh-k__burger { display: inline-flex; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); }
  .ks-header--k .kssh-k__tag, .ks-header--k .kssh-k__call { display: none; }
  .ks-header--k .kssh-k__list { grid-template-columns: repeat(var(--n, 6), auto); overflow-x: auto; }
  .ks-header--k .kssh-k__list a { padding: 0 12px; font-size: 15px; line-height: 52px; white-space: nowrap; }
  .ks-header--k .kssh-k__mega { display: none !important; }
}
