/* PSD-authored magazine pages.
   Desktop composition is the exact 1440px PSD render, with the repeated 75px
   navigation strip removed because the site header already owns that area. */

.psd-magazine-page {
  margin: 0;
  overflow-x: clip;
  background: #fff;
  color: #111;
}

.psd-magazine-page .site-header {
  z-index: 100;
}

/* Trust starts on a white editorial canvas. Keep the glass edge, but remove the
   broad shadow/tinted layer that looked like a dirty band behind the header. */
.trust-magazine-page {
  background: #fff;
}

@media (min-width: 768px) {
  .trust-magazine-page .site-header {
    background: #fff;
  }

  .trust-magazine-page .site-header .nav {
    box-shadow:
      0 5px 16px rgba(25, 63, 152, .055),
      inset 0 1px 0 rgba(255, 255, 255, .9);
  }
}

.psd-magazine {
  --psd-design-width: 1440;
  --psd-panel-ratio: 1440 / 825;
  padding-top: 0;
  background: #fff;
}

.psd-magazine > .site-beta-notice {
  display: none !important;
}

.psd-magazine__panel {
  position: relative;
  width: min(100%, 1872px);
  aspect-ratio: var(--psd-panel-ratio);
  margin-inline: auto;
  overflow: hidden;
  background: #fff;
}

/* Chapter two uses the same clean white paper as chapter one. */
[data-psd-layout="identity-desktop-02"] [data-psd-layer="Rectangle 2"],
[data-psd-layout="identity-mobile-02"] [data-psd-layer="Rectangle 1"] {
  opacity: 0 !important;
}

/* The exported phone panel already contains the PSD-authored Recipient pixels.
   Hide the duplicate live layer so the word is rendered exactly once. */
[data-psd-layout="identity-desktop-04"] [data-psd-layer="Recipient"],
[data-psd-layout="identity-mobile-04"] [data-psd-layer="Recipient"] {
  display: none !important;
}

.psd-magazine__picture {
  display: block;
  width: 100%;
  height: 100%;
}

.psd-magazine__picture > img,
.psd-magazine__panel > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

/* Security chapters need a small editorial pause without the larger homepage spacing. */
.psd-magazine--security .psd-magazine__panel + .psd-magazine__panel {
  margin-top: 48px;
}

.psd-magazine__hotspot {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 2;
  color: transparent;
  font-size: 0;
}

.psd-magazine__hotspot:focus-visible {
  outline: 4px solid #0054ff;
  outline-offset: -8px;
}

.psd-magazine__hotspot--middle {
  left: 16.03%;
  width: 42.13%;
}

.psd-magazine__hotspot--right {
  left: 58.16%;
  right: 0;
}

.psd-magazine--identity .psd-magazine__hotspot--middle {
  left: 20.83%;
  width: 41.67%;
}

.psd-magazine--identity .psd-magazine__hotspot--right {
  left: 62.5%;
  right: 0;
}

.psd-magazine__verify-link {
  position: absolute;
  left: 29.7%;
  top: 57%;
  width: 8.4%;
  height: 7.5%;
  z-index: 2;
  border-radius: 4px;
  color: transparent;
  font-size: 0;
}

.psd-semantic {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 767px) {
  .trust-magazine-page .site-header,
  .psd-magazine-page .site-header {
    min-height: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-bottom: 1px solid rgba(90, 96, 108, .34);
    border-radius: 0;
    background: rgba(255,255,255,.78);
    box-shadow: none;
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    backdrop-filter: blur(18px) saturate(150%);
  }

  .trust-magazine-page .site-header .container,
  .psd-magazine-page .site-header .container {
    padding-inline: 0;
  }

  .trust-magazine-page .site-header .nav,
  .psd-magazine-page .site-header .nav {
    width: 100%;
    min-height: 44px;
    height: 44px;
    padding: 0 8px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .trust-magazine-page .brand,
  .psd-magazine-page .brand {
    top: 4px;
    left: 34.05%;
    gap: 6px;
    transform: none;
  }

  .trust-magazine-page .brand__mark,
  .psd-magazine-page .brand__mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }

  .trust-magazine-page .brand__word,
  .psd-magazine-page .brand__word {
    font-size: 26px;
  }

  .trust-magazine-page .nav__toggle,
  .psd-magazine-page .nav__toggle {
    position: absolute;
    top: 4px;
    left: 8px;
    width: 36px;
    height: 36px;
    margin: 0;
    border: 0;
    background: transparent;
  }

  .trust-magazine-page .nav__login,
  .psd-magazine-page .nav__login {
    min-height: 32px;
    padding: 5px 9px;
    border-radius: 4px;
    font-size: 14px;
  }

  .trust-magazine-page .nav__actions,
  .psd-magazine-page .nav__actions {
    position: absolute;
    top: 6px;
    right: 16px;
    width: auto;
    height: 32px;
    margin: 0;
  }

  .psd-magazine--security .psd-magazine__panel + .psd-magazine__panel {
    margin-top: 20px;
  }

  .psd-magazine--identity section[aria-labelledby="identity-chapter-3"] + section {
    margin-top: 36px;
  }

  /* Keep the original PSD spacing everywhere except the user-marked break
     below PART I. Move the complete following composition as one unit. */
  [data-psd-layout="trust-mobile-01"] [data-psd-layer="TRUST SERIES"],
  [data-psd-layout="trust-mobile-01"] [data-psd-layer="안전은 기본"],
  [data-psd-layout="trust-mobile-01"] [data-psd-layer="증거는 확실하게"],
  [data-psd-layout="trust-mobile-01"] [data-psd-layer="PART I / III"],
  [data-psd-layout="trust-mobile-01"] [data-psd-layer^="전자계약은 편해야 하지만"],
  [data-psd-layout="trust-mobile-01"] [data-psd-layer="종이 계약과 같은 효력이 있나요?"],
  [data-psd-layout="trust-mobile-01"] [data-psd-layer^="네. 요건을 갖추면"],
  [data-psd-layout="trust-mobile-01"] [data-psd-layer="나중에 딴말하면요?"],
  [data-psd-layout="trust-mobile-01"] [data-psd-layer^="누가 언제 어디서 어떻게 서명했는지"],
  [data-psd-layout="trust-mobile-01"] [data-psd-layer="블록체인을 쓰나요?"],
  [data-psd-layout="trust-mobile-01"] [data-psd-layer^="아니요. 표준 해시와"] {
    transform: translateY(calc(18 * var(--psd-scale) * 1px));
  }

  .psd-magazine__panel {
    width: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }

  /* The two lines touched by one pixel in the source composition. Preserve
     every other PSD coordinate and add only the requested breathing room. */
  [data-psd-layout="trust-mobile-01"] [data-psd-layer="PART I - 법적 효력"] {
    top: 37px !important;
  }

  /* The final security mobile chapter intentionally omits its desktop-only
     continuation. Tighten that canvas while keeping the closing evidence
     block together and slightly lower than in the source PSD. */
  [data-psd-layout="security-mobile-04"] {
    height: calc(590 * var(--psd-scale) * 1px) !important;
  }

  [data-psd-layout="security-mobile-04"] [data-psd-layer="보호 원칙을, 확인 가능한 근거를 제공합니다."] {
    top: 454px !important;
  }

  [data-psd-layout="security-mobile-04"] [data-psd-layer="Rectangle 3"] {
    top: 485px !important;
  }

  [data-psd-layout="security-mobile-04"] [data-psd-layer^="인증 현황"] {
    top: 489px !important;
  }

  /* The blue message panel ends at y=340 in the 414px PSD. Retain a modest
     editorial pause, but remove the unused 509px tail before the next chapter. */
  [data-psd-layout="identity-mobile-02"] {
    height: calc(520 * var(--psd-scale) * 1px) !important;
  }

  /* Identity chapters 04-06 have no separate mobile PSD. They reuse the
     individual desktop PSD layers and preserve their order, while this type
     pass restores readable mobile sizes instead of shrinking desktop text. */
  [data-psd-layout="identity-mobile-05"] [data-psd-layer="본인확인에 필요한 민감정보를 많이 쌓아 두는 것이 아니라,계약을 설명할 수 있는 최소 증거만 남기는 방식입니다."] {
    top: 154px !important;
    width: 352px !important;
    height: 54px !important;
    white-space: normal !important;
    line-height: 1.5 !important;
  }

  [data-psd-layout="identity-mobile-05"] [data-psd-layer="본인확인에 필요한 민감정보를 많이 쌓아 두는 것이 아니라,계약을 설명할 수 있는 최소 증거만 남기는 방식입니다."] span {
    font-size: 15px !important;
  }

  [data-psd-layout="identity-mobile-05"] [data-psd-layer="전자서명 효력과 데이터 보호 기준은 각각 안전 법적효력 보안 페이지에서 이어서 확인할 수 있습니다."] {
    top: 654px !important;
    width: 338px !important;
    height: 48px !important;
    white-space: normal !important;
    line-height: 1.5 !important;
  }

  [data-psd-layout="identity-mobile-05"] [data-psd-layer="전자서명 효력과 데이터 보호 기준은 각각 안전 법적효력 보안 페이지에서 이어서 확인할 수 있습니다."] span {
    font-size: 14px !important;
  }

  [data-psd-layout="identity-mobile-05"] [data-psd-layer="TRUST SERIES"] span,
  [data-psd-layout="identity-mobile-05"] [data-psd-layer="PART III / III"] span,
  [data-psd-layout="identity-mobile-05"] [data-psd-layer="Identity"] span {
    font-size: 11px !important;
  }

  .psd-magazine__panel--desktop-only {
    display: none;
  }

  .psd-magazine__panel--series-mobile {
    aspect-ratio: auto;
  }

  .psd-magazine__panel--series-mobile .psd-magazine__hotspot--middle {
    top: 43.74%;
    bottom: auto;
    left: 3.62%;
    width: 92.76%;
    height: 23.81%;
  }

  .psd-magazine__panel--series-mobile .psd-magazine__hotspot--right {
    display: block;
    top: 67.37%;
    bottom: auto;
    left: 3.62%;
    right: auto;
    width: 92.76%;
    height: 24.08%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .psd-magazine *,
  .psd-magazine *::before,
  .psd-magazine *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
