/* Center the main content in the space below the header with native snapping. */
html.has-native-section-gestures [data-page="location.html"] #location-opening > .design-body {
  scroll-snap-align: center;
  scroll-snap-stop: always;
  scroll-margin-top: 0;
}
@media (max-width: 680px) {
  html.has-native-section-gestures [data-page="location.html"] #location-directions {
    scroll-snap-align: center;
    scroll-snap-stop: always;
    scroll-margin-top: 0;
  }
}
.page-design[data-page="location.html"] .location-directions__intro {
  grid-template-columns: minmax(320px, .6fr) minmax(0, 1fr);
  gap: clamp(32px, 3vw, 48px);
}
.page-design[data-page="location.html"] .location-directions__intro .design-kicker { margin-bottom: 16px; font-size: 14px; letter-spacing: .02em; }
.page-design[data-page="location.html"] .location-directions__intro .design-title { margin-top: 0; margin-bottom: 20px; font-size: clamp(34px, 3.25vw, 44px); text-wrap: balance; }
.page-design[data-page="location.html"] .location-directions__intro .design-lead { margin-bottom: 24px; font-size: clamp(20px, 1.65vw, 22px); line-height: 1.7; }
.location-directions__contacts { display: flex; flex-wrap: wrap; gap: 16px clamp(24px, 3vw, 40px); margin: 0; }
.location-directions__contacts dt { color: var(--design-muted); font-size: 15px; line-height: 1.5; }
.location-directions__contacts dd { display: flex; align-items: center; min-height: 44px; margin: 0; font-size: clamp(20px, 1.8vw, 24px); line-height: 1.5; }
.location-directions__contacts a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }
.design-body .location-directions__figure { width: min(100%, 840px); margin: 0 auto; }
.location-directions__map {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}
.location-directions__map { overflow: hidden; }
.location-directions__map text { font-family: Pretendard, sans-serif; fill: var(--ink); }
.location-directions__map .landmark { font-size: 25px; font-weight: 550; fill: #586570; }
.location-directions__map .direction { font-size: 22px; font-weight: 550; fill: #586570; }
.location-directions__map .road-label { font-size: 23px; font-weight: 600; }
.location-directions__map .road { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.location-directions__map .leader { fill: none; stroke: #a7b3bc; stroke-width: 1.5; stroke-linecap: round; }
.location-directions__map .anchor-dot { fill: #7c8b96; }
.location-directions__map .anchor-dot circle { transform-box: fill-box; transform-origin: center; }
.location-directions__map .symbol { color: #586570; }
.location-directions__map [data-map-reveal="headquarters"] { transform-box: fill-box; transform-origin: center; }
.location-directions__enlarge { border: 0; padding: 0; background: none; font: inherit; cursor: zoom-in; }
.location-directions__figure figcaption { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; font-size: 18px; }
.location-directions__figure figcaption > span { font-weight: 600; }
@media (max-width: 1100px) {
  /* Keep the directions beside the copy at tablet widths: stacking also
     enlarged the SVG and pushed this opening well past its snap viewport. */
  .page-design[data-page="location.html"] .location-directions__intro { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; }
}
@media (max-width: 680px) {
  .page-design[data-page="location.html"] #location-opening { padding-block: 16px; }
  .page-design[data-page="location.html"] .location-directions__intro { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .location-directions__map { max-height: min(36svh, 300px); }
  .page-design[data-page="location.html"] .location-directions__intro .design-kicker { margin-bottom: 12px; font-size: 13px; }
  .page-design[data-page="location.html"] .location-directions__intro .design-title { margin-bottom: 16px; font-size: clamp(28px, 7.7vw, 32px); }
  .page-design[data-page="location.html"] .location-directions__intro .design-lead { margin-bottom: 20px; font-size: 18px; }
  .location-directions__contacts dt { font-size: 14px; }
  .location-directions__figure figcaption { font-size: 16px; }
}
.location-map__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}
.design-body .location-map__heading h2 { margin-bottom: 0; }
.location-map__heading [data-icon] { --icon-size: 18px; }
.location-map { overflow-anchor: none; }
.location-map__frame {
  position: relative;
  height: clamp(300px, calc(100svh - var(--site-header-height) - 310px), 520px);
  overflow: hidden;
  border: 1px solid var(--design-line);
  background: var(--design-surface);
}
.location-map__canvas { position: relative; z-index: 0; width: 100%; height: 100%; }
.location-map__navigation { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.location-map__jump {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid var(--design-line);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink);
  font: 550 15px / 1.4 Pretendard, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}
.location-map__jump:hover { border-color: var(--accent); color: var(--accent); }
.location-map__jump[aria-pressed="true"] { border-color: var(--accent); background: var(--accent); color: var(--paper); }
.location-map__fallback {
  display: flex;
  height: 100%;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 24px;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.location-map__pin { --icon-size: 36px; color: var(--accent); }
.design-body .location-map__status { margin: 0; color: var(--design-muted); font-size: 16px; }
.design-body .location-map__address { max-width: 32em; margin: 0; color: var(--ink); font-size: 18px; }
.page-design[data-page="location.html"] [hidden] { display: none; }
.location-map__marker {
  position: relative;
  display: grid;
  place-items: center;
  width: max-content;
  min-width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateX(-50%);
  cursor: pointer;
}
.location-map__marker-name {
  display: grid;
  place-items: center;
  min-height: 30px;
  padding: 5px 8px;
  border: 2px solid var(--paper);
  border-radius: var(--radius-control);
  background: var(--accent);
  color: var(--paper);
  box-shadow: 0 2px 8px rgb(0 0 0 / .16);
  font: 600 13px / 1.2 Pretendard, sans-serif;
  white-space: nowrap;
}
.location-map__marker[aria-pressed="true"] .location-map__marker-name { background: var(--ink); }
.location-map__marker::after {
  position: absolute;
  top: calc(100% - 9px);
  left: calc(50% - 7px);
  border: 7px solid transparent;
  border-top-color: var(--accent);
  content: '';
}
.location-map__marker[aria-pressed="true"]::after { border-top-color: var(--ink); }
.location-map__locations {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--design-line);
}
.location-map__location {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: 10px;
  min-width: 0;
  padding: 24px 20px;
  border-bottom: 1px solid var(--design-line);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.design-body .location-map__location h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-size: 20px;
}
.design-body .location-map__location-address { margin: 0; color: var(--design-muted); font-size: 16px; }
.location-map__phone { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 16px; text-decoration: underline; text-underline-offset: 4px; }
.location-map__contacts { margin-top: 20px; }
.location-map__contacts summary { width: fit-content; padding-block: 10px; color: var(--accent); font-weight: 550; cursor: pointer; }
.location-map__contacts summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.design-body .location-map__location-note { margin: 0; color: var(--design-muted); font-size: 14px; }
.location-map__selection {
  position: relative;
  margin-top: 20px;
  padding: 20px 64px 20px 20px;
  border-left: 3px solid var(--accent);
  background: var(--design-surface);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
.design-body .location-map__selection h3 { margin: 0 0 8px; font-size: 20px; }
.location-map__selection h3 { padding-right: 36px; }
.location-map__selection-close {
  position: absolute;
  top: 4px;
  right: 4px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--design-muted);
  cursor: pointer;
}
.location-map__selection-close [data-icon] { --icon-size: 18px; }
.location-map__selection-close:hover { color: var(--ink); }
.design-body .location-map__selection p { margin: 0; font-size: 16px; }
.design-body .location-map__selection .location-map__selected-note { margin-top: 6px; color: var(--design-muted); font-size: 14px; }
.location-map__selection .location-map__phone { margin-top: 4px; }
/* Selected contact details appear when the widget changes state. */
html.has-company-motion .location-map__selection [data-company-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}
@media (min-width: 681px) {
  .location-map__selection {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    column-gap: 24px;
    padding: 16px 64px 16px 20px;
  }
  .location-map__selection :is(h3, p) { grid-column: 1; }
  .location-map__selection .location-map__phone { grid-column: 2; grid-row: 1 / 3; align-self: center; margin: 0; }
}
.location-map[data-state="ready"] .location-map__selection:not([hidden]) {
  position: absolute;
  z-index: 2;
  left: 16px;
  bottom: 34px;
  display: block;
  width: min(360px, calc(100% - 32px));
  max-height: calc(100% - 52px);
  overflow: auto;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--design-line);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-control);
  background: var(--paper);
  box-shadow: 0 6px 20px rgb(0 0 0 / .12);
}
.location-map[data-state="ready"] .location-map__selection h3 { margin-bottom: 6px; font-size: 18px; }
.location-map[data-state="ready"] .location-map__selection .location-map__phone { margin-top: 4px; }
.page-design[data-page="location.html"] :is(button, a):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
@media (max-width: 680px) {
  .location-map[data-state="ready"] .location-map__selection { left: 12px; width: calc(100% - 24px); padding: 12px; }
  .location-map__heading { align-items: start; flex-wrap: wrap; gap: 12px; margin-bottom: 20px; }
  .location-map__frame { height: clamp(240px, 42svh, 380px); }
  .location-map__fallback { padding-inline: 20px; }
  .design-body .location-map__address { font-size: 16px; }
  .location-map__locations { grid-template-columns: 1fr; }
  .location-map__location { padding-inline: 0; }
}
@media (min-width: 681px) and (max-width: 1000px) {
  .location-map__locations { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
