/* Shared Korean header. All visual rules are scoped to the header and its controls. */
@font-face { font-family: GCHHeader; src: url('/assets/home/fonts/PretendardVariable.woff2') format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
html[data-gch-header] { --gh-expanded: 96px; --gh-compact: 72px; --gh-height: var(--gh-expanded); --gh-logo-scale: .75; }
html[data-gch-header].is-scrolled { --gh-height: var(--gh-compact); }
#site-header, #menu-dialog { --brand: #78181c; --text: #34312e; --paper: #fcfaf9; --muted: #79716d; --line: #e9e1dd; --tint: #f8f4f3; color: var(--text); font: 400 14px/1.8 GCHHeader, Pretendard, sans-serif; letter-spacing: normal; text-align: left; word-break: keep-all; overflow-wrap: break-word; -webkit-font-smoothing: antialiased; }
#site-header *, #site-header *::before, #site-header *::after, #menu-dialog *, #menu-dialog *::before, #menu-dialog *::after { box-sizing: border-box; }
#site-header a, #menu-dialog a { color: inherit; text-decoration: none; }
#site-header button, #menu-dialog button { margin: 0; border: 0; border-radius: 0; background: none; color: inherit; font: inherit; cursor: pointer; box-shadow: none; }
#site-header h2, #menu-dialog h2, #menu-dialog h3, #site-header p { margin: 0; font-weight: 500; line-height: 1.4; }
#site-header p { font-weight: 400; line-height: 1.8; }
#site-header a, #site-header button, #site-header summary, #menu-dialog a, #menu-dialog button { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
#site-header :focus-visible, #menu-dialog :focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
#site-header [hidden], #booking-backdrop[hidden] { display: none !important; }
html[data-gch-header] .gch-header-space { height: var(--gh-expanded); }
html[data-gch-header] #site-header { position: fixed; inset: 0 0 auto; z-index: 1100; display: flex; align-items: center; gap: 24px; width: 100%; max-width: 100vw; height: var(--gh-height); margin: 0; padding: 0 40px; background: #fff; border: 0; border-bottom: 1px solid var(--line); box-sizing: border-box; transition: height .2s; }
#site-header .brand { display: block; flex: 0 0 210px; }
#site-header .brand img { display: block; width: 210px; max-width: 100%; height: auto; margin: 0; transform-origin: left center; transition: transform .2s; }
.is-scrolled #site-header .brand img { transform: scale(var(--gh-logo-scale)); }
#site-header .primary-nav { display: flex; flex: 1; align-items: stretch; justify-content: center; align-self: stretch; gap: clamp(12px, 1.18vw, 20px); white-space: nowrap; }
#site-header .nav-item { position: relative; display: flex; align-items: center; }
#site-header .primary-nav a { position: relative; display: flex; align-items: center; min-height: 44px; font-size: 14px; font-weight: 500; }
#site-header .primary-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: var(--brand); transform: scaleX(0); transform-origin: left; transition: transform .2s; }
#site-header .nav-submenu { position: absolute; top: 100%; left: -20px; width: max-content; min-width: 168px; max-width: 260px; margin: 0; padding: 8px 20px; list-style: none; background: #fff; border: 1px solid var(--line); visibility: hidden; opacity: 0; pointer-events: none; }
#site-header .nav-submenu li { margin: 0; padding: 0; list-style: none; }
#site-header .nav-submenu a { font-weight: 400; }
#site-header .nav-item:not(.submenu-dismissed):hover > .nav-submenu,
#site-header .nav-item:not(.submenu-dismissed):focus-within > .nav-submenu { visibility: visible; opacity: 1; pointer-events: auto; }
#site-header .header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
#site-header .language-menu { position: relative; }
#site-header .language-menu summary { display: flex; align-items: center; justify-content: center; gap: 6px; min-width: 44px; min-height: 44px; font-size: 11px; list-style: none; cursor: pointer; }
#site-header summary::-webkit-details-marker { display: none; }
#site-header .language-links { position: absolute; top: 48px; right: 0; width: 128px; padding: 8px 16px; background: #fff; border: 1px solid var(--line); }
#site-header .language-links a { display: flex; align-items: center; min-height: 44px; font-size: 12px; }
#site-header .menu-toggle { width: 44px; height: 44px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; padding: 0; }
#site-header .menu-toggle span { display: block; width: 23px; height: 1px; background: currentColor; }
#site-header .booking-control { position: relative; }
#site-header .booking-toggle { display: grid; place-items: center; min-width: 72px; min-height: 44px; padding: 10px 20px; background: var(--brand); color: #fff; font-size: 14px; font-weight: 500; }
#site-header .booking-toggle:focus-visible { outline-offset: 2px; }
#booking-backdrop { display: none; }
#site-header .booking-panel { position: absolute; top: calc(100% + 12px); right: 0; width: 448px; max-width: calc(100vw - 48px); max-height: calc(100svh - var(--gh-height) - 24px); overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 24px; border: 1px solid var(--line); background: #fff; }
#site-header .booking-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; }
#site-header .booking-heading h2 { font-size: 20px; letter-spacing: -.04em; }
#site-header .booking-close { display: grid; place-items: center; width: 44px; height: 44px; margin: -8px -8px -8px 0; padding: 0; font-size: 28px; font-weight: 300; }
#site-header .booking-primary { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 64px; padding: 16px 20px; background: var(--brand); color: #fff; font-size: 18px; font-weight: 500; }
#site-header .booking-secondary { display: grid; grid-template-columns: 1fr 1fr; margin-top: 12px; border-bottom: 1px solid var(--line); }
#site-header .booking-secondary a { display: flex; align-items: center; min-height: 52px; padding-block: 8px; color: var(--brand); font-size: 14px; }
#site-header .booking-secondary a + a { justify-content: flex-end; }
#site-header .booking-note { margin-top: 20px; font-size: 12px; }
#site-header .booking-hours { margin-top: 8px; color: var(--muted); font-size: 12px; line-height: 1.8; font-variant-numeric: tabular-nums; }
#site-header .icon-arrow { position: relative; display: inline-block; flex: 0 0 18px; width: 18px; height: 18px; font-size: 0; line-height: 0; vertical-align: middle; transform: rotate(-45deg); }
#site-header .icon-arrow::before { content: ''; position: absolute; width: 15px; height: 1px; left: 1px; top: 8.5px; background: currentColor; }
#site-header .icon-arrow::after { content: ''; position: absolute; width: 9px; height: 9px; right: 2px; top: 4.5px; border-top: 1px solid; border-right: 1px solid; transform: rotate(45deg); }
#menu-dialog { position: fixed; inset: 0; width: min(1000px, calc(100% - 48px)); max-width: none; height: fit-content; max-height: calc(100svh - 48px); margin: auto; padding: 32px 40px; border: 0; border-radius: 0; background: var(--paper); overflow: auto; overscroll-behavior: contain; box-sizing: border-box; }
#menu-dialog:not([open]) { display: none; }
#menu-dialog::backdrop { background: rgba(52,49,46,.5); }
#menu-dialog .menu-dialog-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 24px; }
#menu-dialog .menu-dialog-top h2 { font-size: 24px; letter-spacing: -.04em; }
#menu-dialog .menu-close { width: 44px; height: 44px; padding: 0; font-size: 32px; font-weight: 300; }
#menu-dialog .menu-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 32px 0; }
#menu-dialog .menu-groups h3 { font-size: 17px; letter-spacing: -.025em; color: var(--brand); margin-bottom: 8px; }
#menu-dialog .menu-groups > div > a, #menu-dialog .menu-groups h3 a { display: flex; align-items: center; min-height: 44px; }
#menu-dialog .menu-groups > div > a { font-size: 14px; }
#menu-dialog .menu-dialog-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; padding-top: 24px; border-top: 1px solid var(--line); }
#menu-dialog .menu-dialog-bottom > a { color: var(--brand); font-size: 24px; }
#menu-dialog .menu-dialog-bottom > div { display: flex; gap: 16px; font-size: 12px; }
#menu-dialog .menu-dialog-bottom > div a { display: grid; place-items: center; min-width: 44px; min-height: 44px; }
html[data-gch-header] body.menu-is-open { overflow: hidden; }
html[data-gch-header] body.booking-scroll-locked { position: fixed; top: var(--booking-scroll-top); width: 100%; overflow: hidden; padding-top: 0; }
html[data-gch-header] #doz_header_wrap, html[data-gch-header] #mobile_slide_menu_wrap,
html[data-gch-header] .gch-head { display: none !important; }
html[data-gch-header='imweb'] body { padding-top: 0 !important; }
html[data-gch-header='column'] h2[id] { scroll-margin-top: calc(var(--gh-height) + 24px); }
@media (min-width: 1100px) { html[data-gch-header='column'] .gch-toc { top: calc(var(--gh-height) + 24px); } }
@media (hover: hover) {
  #site-header .menu-toggle:hover, #menu-dialog .menu-close:hover, #site-header .language-menu summary:hover, #site-header .booking-close:hover { color: var(--brand); background: var(--paper); }
  #site-header .booking-toggle:hover { filter: brightness(.94); }
  #site-header .booking-primary:hover { background: var(--text); }
  #site-header .booking-secondary a:hover { text-decoration: underline; text-underline-offset: 5px; }
  #site-header .primary-nav a:hover::after { transform: scaleX(1); }
  #site-header .primary-nav a:hover, #site-header .language-links a:hover, #menu-dialog .menu-groups a:hover { color: var(--brand); }
}
#site-header .primary-nav a:focus-visible::after { transform: scaleX(1); }
@media (max-width: 1279px) {
  html[data-gch-header] #site-header { padding-inline: clamp(24px, 6.25vw, 120px); }
  #site-header .primary-nav { display: none; }
}
@media (max-width: 1000px) {
  html[data-gch-header] { --gh-expanded: 76px; --gh-compact: 60px; --gh-logo-scale: .7894736842; }
  html[data-gch-header] #site-header { padding-inline: 40px; }
  #booking-backdrop { display: block; position: fixed; inset: var(--gh-height) 0 0; z-index: 1099; background: rgba(52,49,46,.56); touch-action: none; transition: top .2s; }
}
@media (max-width: 600px) {
  html[data-gch-header] #site-header { padding-inline: 24px; gap: 12px; }
  #site-header .brand { flex: 0 1 174px; min-width: 0; }
  #site-header .brand img { width: 174px; }
  #site-header .header-tools { flex-shrink: 0; gap: 8px; }
  #site-header .header-tools .language-menu { display: none; }
  #site-header .booking-control { position: static; }
  #site-header .booking-toggle { min-width: 60px; padding-inline: 16px; }
  #site-header .booking-panel { top: 100%; left: 0; right: 0; width: 100%; max-width: none; max-height: calc(100svh - var(--gh-height) - 64px - env(safe-area-inset-bottom)); padding: 24px; border-inline: 0; }
  #menu-dialog { width: calc(100% - 24px); max-height: calc(100svh - 24px); padding: 24px; }
  #menu-dialog .menu-dialog-top { padding-bottom: 16px; gap: 12px; }
  #menu-dialog .menu-dialog-top h2 { font-size: 22px; }
  #menu-dialog .menu-groups { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 20px; padding-block: 24px; }
  #menu-dialog .menu-groups h3 { font-size: 16px; }
  #menu-dialog .menu-groups > div > a { font-size: 13px; }
  #menu-dialog .menu-dialog-bottom > a { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { #site-header, #site-header *, #site-header *::after, #booking-backdrop { transition: none !important; } }
@media print { #site-header, #menu-dialog, #booking-backdrop, .gch-header-space { display: none !important; } }
/* Keep keyboard navigation visible above the fixed header. */
html[data-gch-header='home'] .skip-link { z-index: 1101; }
html[data-gch-header='imweb'] :is([doz_type='section'], h1[id], h2[id], h3[id]) { scroll-margin-top: calc(var(--gh-height) + 24px); }

/* The booking overlay also covers existing legacy floating controls. */
html[data-gch-header] body.booking-is-open #site-header { z-index: 100002; }
html[data-gch-header] body.booking-is-open #booking-backdrop { z-index: 100001; }
