/* Page insets, breadcrumbs, sticky navigation and anchor offsets use this same height. */
html:root {
  --kf-header: 70px;
  --kf-dock: 0px;
  --kf-stack: var(--kf-header);
}

.fb-header {
  --bar: #0a152a;
  --bar-rule: #35445b;
  background: var(--bar) !important;
  color: white !important;
  border-bottom-color: var(--bar-rule) !important;
  backdrop-filter: none;
}
.fb-header:not(.site-header)[data-film-header].is-over-film:not([data-menu-open="true"]):not(:has(details[open])) {
  background: linear-gradient(#050c16c9, #050c160d) !important;
}
.fb-header .fb-header-inner,
.fb-header .fb-nav { flex-wrap: nowrap; }
.fb-header .fb-brand img {
  width: auto;
  height: calc(var(--kf-header) - 18px);
  max-width: 145px;
}
.fb-header .fb-nav > .fb-service-link,
.fb-header .fb-menu > summary,
.fb-header .fb-compact-reviews { color: white !important; }
.fb-header .fb-disclosure { border-color: #d7dee8; }
.fb-header .fb-service-link:is(:hover, :focus-visible, [aria-current]) > span,
.fb-header .fb-menu:is([open], [data-current]) > summary > span,
.fb-header .fb-menu > summary:is(:hover, :focus-visible) > span {
  text-decoration-color: #d7dee8;
}
.fb-header .fb-panel {
  color: #f3f6fa;
  background: var(--bar);
  border-color: var(--bar-rule);
}
.fb-header .fb-panel a:is(:hover, :focus-visible, [aria-current="page"]) {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.fb-header .fb-actions a:first-child,
.fb-header .fb-menu-toggle,
.fb-header .fb-native-menu summary {
  color: white;
  background: transparent;
  border-color: #8d9bb0;
}
.fb-header .fb-actions a:first-child:hover {
  background: #192c47;
  border-color: white;
}
.fb-header .fb-actions a:last-child,
.fb-header .fb-compact-consult {
  height: 48px;
  padding: 0 22px 0 26px;
  border: 1px solid #ffffffbf;
  border-radius: 2px;
  color: #ffffff;
  background: #050c168c;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: .02em;
  white-space: nowrap;
}
.fb-header .fb-actions a:last-child::after,
.fb-header .fb-compact-consult::after {
  content: "→" / "";
  margin-inline-start: 16px;
  font-weight: 400;
}
.fb-header .fb-actions a:last-child:hover,
.fb-header .fb-compact-consult:hover {
  background: #ffffff;
  border-color: #ffffff;
  color: #0a152a;
}
.fb-header .fb-actions a:last-child:focus-visible,
.fb-header .fb-compact-consult:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}
.fb-header :is(.fb-actions a, .fb-compact-consult, .fb-compact-reviews):is(:hover, [aria-current]) {
  box-shadow: inset 0 0 0 1px white;
}
.fb-header :focus-visible { outline-color: #ffffff; }
.fb-menu-toggle span,
.fb-menu-toggle span::before,
.fb-menu-toggle span::after { background: white; }
.fb-menu-toggle[aria-expanded="true"] span { background: transparent; }

@media (max-width: 1100px) {
  .fb-header .fb-nav {
    top: var(--kf-header) !important;
    max-height: calc(100dvh - var(--kf-header));
    background: var(--bar) !important;
    border-color: var(--bar-rule);
  }
  .fb-header .fb-menu > summary,
  .fb-header .fb-nav > .fb-service-link { border-bottom-color: var(--bar-rule) !important; }
  .fb-header .fb-panel { background: #11213a; }
  .fb-header .fb-compact-reviews {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    margin-top: 12px;
    padding: 0 16px;
    border: 1px solid #8d9bb0 !important;
    border-radius: 6px;
    font-size: 14px !important;
  }
}
@media (max-width: 800px) {
  html:root { --kf-header: 60px; }
  .fb-header .fb-brand img { height: calc(var(--kf-header) - 12px); }
}

/* The native disclosure uses the same header row when JavaScript is off. */
@media (scripting: none) {
  .fb-header .fb-header-inner {
    min-height: var(--kf-header);
    padding-block: 0;
  }
}
@media (scripting: none) and (max-width: 1100px) {
  .fb-header .fb-nav {
    position: absolute !important;
    width: 100% !important;
    max-height: calc(100dvh - var(--kf-header)) !important;
    overflow-y: auto;
  }
  .fb-header:has(.fb-native-menu[open]) .fb-nav {
    padding-inline: var(--khic-gutter) !important;
  }
}

/* The shared bar takes the place of the old header stack on production pages. */
html:root:has(.site-header) {
  --kf-header: 88px;
  --kf-stack: calc(var(--kf-header) + var(--kf-dock));
}

.site-header,
.site-header-map {
  --sh-night: #050c16;
  --sh-navy: #0a152a;
  --sh-accent: #ffffff;
  --sh-soft: rgb(255 255 255 / 76%);
  --sh-rule: rgb(255 255 255 / 16%);
  --sh-edge: clamp(36px, 4vw, 80px);
  --sh-frame: min(1680px, calc(100% - 2 * var(--sh-edge)));
  font: 400 16px/1.5 Pretendard, "Malgun Gothic", sans-serif;
  letter-spacing: normal;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.fb-header.site-header {
  display: block;
  background: var(--sh-navy) !important;
  color: white !important;
  border: 0 !important;
  backdrop-filter: none;
  transition: background-color .18s ease;
  /* Equal space between the logo, each menu label and the consult link. */
  --nav-space: clamp(48px, 15.33vw - 129.3px, 99px);
  --nav-width: calc(4 * var(--nav-space) + 426px);
  --tools-width: calc(var(--nav-space) - var(--row-gap) + 136px);
  --row-gap: clamp(18px, 1.8vw, 32px);
  --nav-gap: clamp(12px, 1.25vw, 24px);
}
.site-header[data-film-header]:not([data-scrolled], [data-card-open]) {
  background: transparent !important;
}
.site-header > .fb-header-edge { bottom: 0; }

:is(.site-header, .site-header-map) :where(h2, h3, p, ul) { margin: 0; }
:is(.site-header, .site-header-map) :where(h2, h3) { letter-spacing: normal; text-wrap: wrap; }
.sh-link-list { padding: 0; list-style: none; }
.site-header a, .site-header-map a { color: inherit; text-decoration: none; }
:is(.site-header, .site-header-map) button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}
:is(.site-header, .site-header-map) :focus-visible {
  outline: 2px solid white;
  outline-offset: 4px;
}
.site-header [hidden] { display: none !important; }

.sh-bar {
  display: grid;
  grid-template-columns: minmax(214px, 1fr) var(--nav-width) var(--tools-width);
  column-gap: var(--row-gap);
  width: var(--sh-frame);
  margin-inline: auto;
}
.sh-bar { height: var(--kf-header); align-items: center; }
.sh-brand { display: inline-flex; width: fit-content; max-width: 100%; align-items: center; }
.sh-wordmark { display: block; font-size: 22px; width: 9.663em; height: auto; aspect-ratio: 9663 / 1883; }
.sh-primary {
  display: grid;
  grid-template-columns: repeat(5, max-content);
  justify-content: space-between;
  gap: var(--nav-gap);
  grid-column: 2;
  min-width: 0;
}
.sh-primary-item { position: relative; }
.sh-primary, .sh-primary-item { height: 100%; }
.site-header .sh-trigger {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  font-size: 17px;
  font-weight: 550;
  white-space: nowrap;
}
.sh-trigger::after {
  content: "";
  position: absolute;
  bottom: 0;
  inset-inline: 0;
  height: 2px;
  background: var(--sh-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .16s ease;
}
.sh-trigger:is([aria-expanded="true"], [aria-current])::after { transform: scaleX(1); }
.site-header .sh-trigger:focus-visible { outline-offset: -2px; }
.sh-tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
}
.sh-consult {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.sh-consult { min-height: 44px; font-size: 17px; font-weight: 550; }
:is(.sh-consult, .sh-map-title):hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.sh-link-arrow { position: relative; width: 9px; height: 9px; }
.sh-link-arrow::before, .sh-link-arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
}
.sh-link-arrow::before { width: 7px; height: 7px; border: solid currentColor; border-width: 1px 1px 0 0; }
.sh-link-arrow::after { width: 11px; border-top: 1px solid; transform: rotate(-45deg); transform-origin: right; }
.sh-open-map, .sh-close-map { display: grid; place-items: center; width: 44px; height: 44px; flex: none; }
.sh-hamburger, .sh-close-icon { position: relative; display: block; width: 24px; height: 17px; }
.sh-hamburger::before, .sh-hamburger::after, .sh-hamburger i, .sh-close-icon::before, .sh-close-icon::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 1.5px;
  background: currentColor;
}
.sh-hamburger::before { top: 0; }
.sh-hamburger i { top: calc(50% - .75px); }
.sh-hamburger::after { bottom: 0; }
.sh-close-icon::before, .sh-close-icon::after { top: 50%; }
.sh-close-icon::before { transform: rotate(45deg); }
.sh-close-icon::after { transform: rotate(-45deg); }

.site-header .sh-card {
  position: absolute;
  top: 100%;
  left: -22px;
  box-sizing: border-box;
  width: 344px;
  max-height: calc(100dvh - var(--kf-stack));
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  padding: 4px 22px 7px;
  list-style: none;
  border-radius: 0 0 5px 5px;
  background: white;
  color: var(--sh-navy);
  box-shadow: 0 14px 36px #050c162c;
}
/* Keep the last card within the space between its trigger and the viewport edge. */
.sh-primary-item:last-child .sh-card {
  left: min(-22px, calc(100% + var(--tools-width) + var(--row-gap) + var(--sh-edge) - 354px));
}
.sh-card li + li { border-top: 1px solid #dadce0; }
.site-header .sh-card a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 0;
  color: var(--sh-navy);
  font-size: 17px;
  letter-spacing: -.025em;
}
.sh-card strong { font-weight: 640; }
.sh-card small { display: block; margin-top: 3px; color: #62666d; font-size: 13px; font-weight: 400; }
.sh-chevron {
  flex: none;
  width: 8px;
  height: 8px;
  margin-right: 3px;
  border: solid #777;
  border-width: 1px 1px 0 0;
  transform: rotate(45deg);
}
.site-header .sh-card a:is(:hover, :focus-visible) { background: #f5f5f5; color: #142d5b; }
.site-header .sh-card a:focus-visible { outline-color: #142d5b; outline-offset: 0; }
.sh-card a[aria-current] strong, .sh-consult[aria-current], .sh-map-title[aria-current],
.sh-link-list a:is(:hover, :focus-visible, [aria-current]) {
  text-decoration: underline;
  text-underline-offset: 4px;
}

html:has(.site-header-map[open]), body:has(.site-header-map[open]) { overflow: hidden; }
.site-header-map {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--sh-navy);
  color: white;
}
.site-header-map::backdrop { background: var(--sh-night); backdrop-filter: none; }
.sh-map-shell {
  display: flex;
  flex-direction: column;
  width: var(--sh-frame);
  min-height: 100%;
  margin-inline: auto;
}
.sh-map-top {
  display: flex;
  flex: none;
  justify-content: space-between;
  align-items: center;
  height: var(--kf-header);
  border-bottom: 1px solid var(--sh-rule);
}
.sh-map-content { padding-block: clamp(28px, 5.5vh, 66px) 36px; }
.sh-map-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
  border-bottom: 1px solid #ffffff66;
}
.sh-map-heading { font-size: clamp(30px, 3.1vw, 50px); font-weight: 550; letter-spacing: -.055em; }
.site-header-map .sh-close-map { border: 1px solid #ffffff45; border-radius: 50%; cursor: pointer; }
.sh-close-icon { width: 18px; }
.sh-map-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(16px, 2.4vw, 44px);
  padding-top: clamp(32px, 6vh, 76px);
}
.sh-map-group { min-width: 0; }
.sh-map-group h3 { font-size: clamp(20px, 1.8vw, 31px); font-weight: 580; letter-spacing: -.055em; }
.sh-map-number {
  display: block;
  color: transparent;
  -webkit-text-stroke: 1px #d3d6dc;
  font-size: clamp(84px, 8.9vw, 160px);
  font-weight: 240;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.075em;
  line-height: 1.02;
}
.sh-map-group:is([data-current], [data-expanded], :focus-within) .sh-map-number {
  color: white;
  -webkit-text-stroke: 0;
}
.sh-map-title { display: inline-block; margin-top: 20px; }
.sh-map-toggle { display: none; }
.site-header-map .sh-map-links { margin-top: 18px; padding-top: 17px; border-top: 1px solid #ffffff50; }
.site-header-map .sh-map-links a { display: table; padding: 6px 0; font-size: 16px; color: #d4d6db; }
.site-header-map .sh-map-links a:is(:hover, :focus-visible, [aria-current]) { color: white; text-decoration: underline; }
@media (width < 1200px) {
  html:root:has(.site-header) { --kf-header: 60px; }
  .site-header, .site-header-map { --sh-edge: clamp(16px, 4vw, 40px); }
  .sh-bar { grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; }
  .sh-wordmark { font-size: clamp(14px, 4.8vw, 17px); }
  .sh-primary { display: none; }
  .sh-tools { gap: 12px; }
  .sh-consult { font-size: 14px; font-weight: 500; }
  .sh-open-map { margin-right: -7px; }
  .sh-hamburger { width: 22px; }

}

@media (max-width: 800px) {
  .site-header-map { --sh-edge: 22px; scroll-padding-top: 84px; }
  .sh-map-content { padding-block: 0 max(40px, env(safe-area-inset-bottom)); }
  .sh-map-heading-row {
    position: sticky;
    z-index: 1;
    top: 0;
    padding-block: 18px 14px;
    background: var(--sh-navy);
  }
  .sh-map-heading { font-size: 29px; }
  .sh-map-grid { display: block; padding: 0; }
  .sh-map-group { border-bottom: 1px solid #ffffff40; }
  .sh-map-group h3 { position: relative; display: flex; align-items: center; gap: 20px; min-height: 88px; }
  .sh-map-number { min-width: 58px; font-size: 52px; }
  .sh-map-title, .sh-map-links { display: none; }
  .site-header-map .sh-map-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    min-height: 44px;
    text-align: left;
    font-size: 22px;
    cursor: pointer;
  }
  .sh-map-toggle::before { content: ""; position: absolute; inset: 0; }
  .sh-fold-icon { position: relative; width: 14px; height: 14px; flex: none; }
  .sh-fold-icon::before, .sh-fold-icon::after {
    content: "";
    position: absolute;
    inset: 50% 0 auto;
    height: 1px;
    background: currentColor;
  }
  .sh-fold-icon::after { transform: rotate(90deg); }
  .sh-map-group[data-expanded] .sh-fold-icon::after { display: none; }
  .sh-map-group[data-expanded] .sh-map-links { display: block; }
  .site-header-map .sh-map-links { border: 0; margin: 0 0 14px 78px; padding: 0; }
  .site-header-map .sh-map-links a { min-height: 44px; padding: 10px 0; }
}

@media (scripting: none) {
  .fb-header.site-header { height: var(--kf-header) !important; }
  .site-header[data-film-header]:not([data-scrolled], [data-card-open]) { background: var(--sh-navy) !important; }
  .site-header button.sh-open-map { display: none; }
  .sh-native-menu summary { cursor: pointer; list-style: none; }
  .sh-native-menu summary::-webkit-details-marker { display: none; }
  .sh-native-panel {
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - var(--kf-header));
    padding: 12px var(--sh-edge) 24px;
    overflow-y: auto;
    overscroll-behavior: contain;
    background: var(--sh-navy);
  }
  .sh-native-group { padding: 10px 0; border-top: 1px solid var(--sh-rule); }
  .sh-native-group summary { padding: 5px 0; font-weight: 550; }
  .sh-native-group summary::after { content: "+" / ""; margin-inline-start: 10px; }
  .sh-native-group[open] summary::after { content: "−" / ""; }
  .sh-native-group .sh-link-list { margin-inline-start: 12px; }
  .sh-native-group a { display: inline-block; padding-block: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .sh-trigger::after { transition: none; }
}
