/* Website shell kept outside the embedded detail-page package. */
html,
body {
  -webkit-user-select: text;
  user-select: text;
}

img,
video,
svg {
  -webkit-user-select: none;
  user-select: none;
}

.detail-site-header {
  position: sticky;
  z-index: 9999;
  top: 0;
  width: 100%;
  min-height: 76px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 12px max(22px, 4.6vw);
  border-bottom: 1px solid rgba(141, 171, 183, .24);
  background: rgba(255, 253, 249, .96);
  box-shadow: 0 10px 30px rgba(55, 82, 94, .07);
  backdrop-filter: blur(18px);
  font-family: GmarketSans, "210 OmniGothic", sans-serif;
}

.detail-site-header a {
  text-decoration: none;
}

.detail-site-header__brand {
  width: max-content;
  color: #72777b;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: .34em;
}

.detail-site-header__brand-logo {
  display: block;
  width: 122px;
  height: 32px;
  object-fit: contain;
  object-position: left center;
}

.detail-site-header nav {
  display: flex;
  gap: 0;
}

.detail-site-header nav a {
  position: relative;
  padding: 8px 27px;
  color: #536c7b;
  font-size: 13px;
  font-weight: 700;
}

.detail-site-header nav a + a::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 0;
  width: 1px;
  height: 15px;
  background: linear-gradient(to bottom, transparent, rgba(74, 118, 145, .42), transparent);
  transform: translateY(-50%);
}

.detail-site-header nav a.is-active {
  color: #1769b0;
}

.detail-site-header__store {
  position: relative;
  justify-self: end;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  padding: 7px 8px 7px 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(110deg, #0d4e95 0%, #0872bd 100%);
  box-shadow: 0 10px 24px rgba(8, 76, 145, .2);
  color: #fff;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: -.045em;
  transition: transform .24s ease, box-shadow .24s ease, filter .24s ease;
}

.detail-site-header__store > span {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: #fff;
  color: #0c61aa;
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  transition: transform .24s ease;
}

.detail-site-header__store:hover,
.detail-site-header__store:focus-visible {
  box-shadow: 0 14px 30px rgba(8, 76, 145, .28);
  filter: saturate(1.08);
  transform: translateY(-2px);
}

.detail-site-header__store:hover > span,
.detail-site-header__store:focus-visible > span {
  transform: translate(2px, -2px);
}

/* The deployed power animation is already cropped to its presentation frame;
   applying the source-package offset again removes the headline. */
.page--original-refined .motion-full--power {
  height: auto;
}

.page--original-refined .motion-full--power img {
  transform: none;
}

/* Keep the numbered operation badges fully inside the guide canvas. */
.page--original-refined .mode-guide__rail {
  padding-top: 40px;
  overflow: visible;
}

@media (max-width: 700px) {
  .detail-site-header {
    min-height: 62px;
    height: 62px;
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-rows: 1fr;
    gap: clamp(5px, 1.7vw, 10px);
    padding: 0 clamp(8px, 2.7vw, 13px);
  }

  .detail-site-header__brand {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }

  .detail-site-header__brand-logo {
    width: clamp(59px, 17.5vw, 72px);
    height: auto;
  }

  .detail-site-header nav {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: stretch;
    justify-content: space-evenly;
    min-width: 0;
    height: 34px;
  }

  .detail-site-header nav a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 2px;
    font-size: clamp(8px, 2.45vw, 10px);
    white-space: nowrap;
  }

  .detail-site-header__store {
    grid-column: 3;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    min-height: 34px;
    height: 34px;
    gap: 6px;
    padding: 4px 4px 4px 9px;
    font-size: clamp(8px, 2.2vw, 10px);
    line-height: 1;
    white-space: nowrap;
  }

  .detail-site-header__store > span {
    width: 24px;
    height: 24px;
    flex-basis: 24px;
    font-size: 14px;
    line-height: 24px;
  }
}
