/* Template tutorial page. Scoped so the shared guide/support/FAQ styles stay unchanged. */
.guide-template-page {
  --guide-paper: #ffffff;
  --guide-ink: #2a2a2a;
  --guide-blue: #0054fe;
  --guide-blue-pale: #edf3ff;
  --guide-yellow: #fff5c7;
  --guide-line: rgba(42, 42, 42, 0.24);
  --guide-line-soft: rgba(42, 42, 42, 0.12);
  --guide-muted: #5e6672;
  --guide-amber-ink: #7a5a00;
  --guide-amber-bg: #f8f1de;
  --guide-max: 1256px;
}

/*
 * PSD 16-01 / 16-02 are not approximated with a new grid on desktop.
 * The shared PSD renderer keeps every source layer at its original 1440px
 * coordinate. The first 75px navigation strip is supplied by the real header.
 */
.guide-psd-section {
  overflow: hidden;
  background: #fff;
}

.guide-psd-section .guide-psd-desktop {
  width: min(100%, 1872px);
  margin-inline: auto;
}

.guide-mobile-composition {
  display: none;
}

@media (min-width: 1101px) {
  .guide-psd-section--02 {
    margin-top: 72px;
  }

  [data-psd-layout="guide-desktop-02"] [data-psd-layer="Rectangle 2"],
  [data-psd-layout="guide-desktop-02"] [data-psd-layer="구버전 안내 문구"] {
    display: none !important;
  }

  [data-psd-layout="guide-desktop-02"] [data-psd-layer="I"] { top: 140px !important; }
  [data-psd-layout="guide-desktop-02"] [data-psd-layer="서명 자리는 이미 잡혀 있어요."] { top: 151px !important; }
  [data-psd-layout="guide-desktop-02"] [data-psd-layer^="준비된 서식을 고르면"] { top: 195px !important; }

  [data-psd-layout="guide-desktop-02"] [data-psd-layer="II"] { top: 306px !important; }
  [data-psd-layout="guide-desktop-02"] [data-psd-layer="쓰던 계약서를 그대로 올리세요."] { top: 317px !important; }
  [data-psd-layout="guide-desktop-02"] [data-psd-layer^="회사에서 쓰던 PDF"] { top: 361px !important; }

  [data-psd-layout="guide-desktop-02"] [data-psd-layer="III"] { top: 473px !important; }
  [data-psd-layout="guide-desktop-02"] [data-psd-layer="엑셀 명단으로 한 번에 보내세요."] { top: 484px !important; }
  [data-psd-layout="guide-desktop-02"] [data-psd-layer^="계약서는 그대로 두고"] { top: 528px !important; }

  [data-psd-layout="guide-desktop-02"] [data-psd-layer="IV"] { top: 640px !important; }
  [data-psd-layout="guide-desktop-02"] [data-psd-layer="받는 사람은 가입하지 않아요."] { top: 652px !important; }
  [data-psd-layout="guide-desktop-02"] [data-psd-layer^="받은 링크를 열고"] { top: 696px !important; }

  html body.guide-template-page:not(.dev-mode-page) .site-beta-notice {
    display: none !important;
  }
}

.guide-template-page main {
  background: var(--guide-paper);
  color: var(--guide-ink);
  font-size: 19px;
  line-height: 1.75;
}

.guide-template-page main p,
.guide-template-page main summary,
.guide-template-page main td {
  text-wrap: pretty;
}

.guide-template-page main .container {
  width: min(calc(100% - 64px), var(--guide-max));
  max-width: none;
  padding-inline: 0;
  margin-inline: auto;
}

/* PSD 16-01: 1440 × 900 editorial opening spread. */
.help-magazine-page.guide-template-page main .guide-editorial-hero {
  min-height: 768px;
  padding-block: 30px 0;
  overflow: hidden;
  background: var(--guide-paper);
}

.guide-template-page .guide-editorial-hero .container,
.guide-template-page .guide-overview-spread .container {
  width: min(calc(100% - 128px), 1312px);
}

.guide-template-page .guide-editorial-hero .container {
  position: relative;
  min-height: 708px;
}

.guide-editorial-title {
  position: relative;
}

.guide-editorial-title h1 {
  margin: 0;
  color: #000;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.9;
}

.guide-editorial-title__question,
.guide-editorial-title__answer {
  display: block;
}

.guide-editorial-title__question {
  font-size: clamp(84px, 9.3vw, 134px);
}

.guide-editorial-title__answer {
  margin-top: 8px;
  margin-left: 35%;
  font-size: clamp(82px, 10.85vw, 156px);
  white-space: nowrap;
}

.guide-editorial-title__answer em {
  color: var(--guide-blue);
  font-style: normal;
}

.guide-editorial-title__time {
  position: absolute;
  top: 30px;
  right: 0;
  color: #000;
  font-size: 58px;
  font-weight: 800;
  line-height: 1;
}

.guide-editorial-title__manual {
  position: absolute;
  right: 8px;
  bottom: -32px;
  color: #000;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
}

.guide-editorial-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 84px;
}

.guide-editorial-facts article {
  min-height: 118px;
  padding: 20px 18px 0 0;
  border-top: 4px solid #000;
}

.guide-editorial-facts article:nth-child(even) {
  margin-top: 146px;
}

.guide-editorial-facts h2 {
  margin: 0;
  color: #000;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.25;
}

.guide-editorial-facts p {
  margin: 12px 0 0;
  color: #575757;
  font-size: 17px;
  line-height: 1.6;
}

.guide-editorial-next {
  position: absolute;
  bottom: 0;
  left: 0;
  display: inline-flex;
  align-items: flex-end;
  gap: 22px;
  color: #000;
  font-size: 45px;
  line-height: 1;
  text-decoration: none;
}

.guide-editorial-next__arrows {
  display: inline-flex;
  gap: 18px;
}

.guide-editorial-next__arrows i {
  position: relative;
  display: block;
  width: 58px;
  height: 68px;
  background: var(--guide-blue);
}

.guide-editorial-next__arrows i:nth-child(2) {
  background: #000;
}

.guide-editorial-next__arrows i::after {
  position: absolute;
  bottom: -18px;
  left: 50%;
  width: 0;
  height: 0;
  border-top: 22px solid var(--guide-blue);
  border-right: 29px solid transparent;
  border-left: 29px solid transparent;
  content: "";
  transform: translateX(-50%);
}

.guide-editorial-next__arrows i:nth-child(2)::after {
  border-top-color: #000;
}

/* PSD 16-02: roman-number overview, rewritten as four scannable points. */
.guide-template-page .guide-overview-spread {
  min-height: 780px;
  padding: 86px 0 90px;
  border-top: 1px solid var(--guide-line-soft);
  background: var(--guide-paper);
}

.guide-overview-spread__head {
  margin-bottom: 38px;
}

.guide-overview-spread__head p,
.guide-overview-spread__head h2 {
  margin: 0;
  color: #000;
  font-size: 32px;
  letter-spacing: -0.025em;
  line-height: 1.35;
}

.guide-overview-spread__head p em {
  color: var(--guide-blue);
  font-style: normal;
}

.guide-overview-spread__head h2 {
  font-weight: 800;
}

.guide-overview-list {
  display: grid;
  gap: 0;
  max-width: 920px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-overview-list li {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  min-height: 132px;
  align-items: center;
}

.guide-overview-list__roman {
  color: var(--guide-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 92px;
  line-height: 0.8;
  white-space: nowrap;
}

.guide-overview-list h3 {
  margin: 0 0 9px;
  font-size: 31px;
  line-height: 1.25;
}

.guide-overview-list h3 a {
  color: #000;
  text-decoration-thickness: 2px;
  text-decoration-color: transparent;
  text-underline-offset: 6px;
}

.guide-overview-list h3 a:hover,
.guide-overview-list h3 a:focus-visible {
  color: var(--guide-blue);
  text-decoration-color: currentColor;
}

.guide-overview-list p {
  margin: 0;
  color: #575757;
  font-size: 18px;
  line-height: 1.65;
}

.guide-template-page .guide-magazine-blockers .section__head {
  max-width: 840px;
  margin-inline: auto;
}

.guide-template-page .guide-magazine-blockers .lede,
.guide-template-page .guide-magazine-final p {
  font-size: 19px;
  line-height: 1.75;
}

.guide-template-page .guide-old-help-note {
  max-width: var(--sd-container-reading);
  margin: 34px auto 0;
}

.guide-template-page .guide-magazine-final .btn--secondary {
  border-color: #fff;
  color: var(--guide-blue);
  background: #fff;
}

.guide-template-page .guide-template-start {
  padding-top: 104px;
}

.guide-template-page .guide-section {
  padding: 72px 0;
}

.guide-template-page .guide-section + .guide-section {
  border-top: 1px solid var(--guide-line-soft);
}

.guide-template-page .guide-section__head {
  max-width: 74ch;
  margin-bottom: 40px;
}

.guide-template-page .guide-eyebrow {
  margin: 0 0 14px;
  color: var(--guide-muted);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.guide-template-page .guide-h1,
.guide-template-page .guide-h2,
.guide-template-page .guide-h3 {
  color: var(--guide-ink);
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.guide-template-page .guide-h1 {
  margin: 0 0 18px;
  font-size: clamp(35px, 5vw, 59px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.guide-template-page .guide-h2 {
  margin: 0 0 14px;
  font-size: clamp(27px, 3.2vw, 41px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.18;
}

.guide-template-page .guide-h3 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.4;
}

.guide-template-page .guide-lede {
  max-width: 70ch;
  margin: 0;
  color: var(--guide-muted);
  font-size: 20px;
  line-height: 1.75;
}

.guide-template-page .guide-highlight {
  background: linear-gradient(transparent 56%, var(--guide-yellow) 56%);
  font-style: normal;
}

.guide-template-page .guide-quote {
  padding: 1px 7px;
  border-radius: 4px;
  background: var(--guide-blue-pale);
  color: var(--guide-blue);
  font-weight: 700;
  white-space: nowrap;
}

.guide-template-page .guide-fork {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  border-top: 3px solid var(--guide-ink);
  border-bottom: 1px solid var(--guide-line);
}

.guide-template-page .guide-fork > div {
  padding: 26px 28px 30px;
}

.guide-template-page .guide-fork > div + div {
  border-left: 1px solid var(--guide-line-soft);
}

.guide-template-page .guide-fork__no {
  display: block;
  margin-bottom: 10px;
  color: var(--guide-blue);
  font: 800 41px/1 Pretendard, sans-serif;
  letter-spacing: -0.04em;
}

.guide-template-page .guide-fork h2 {
  margin: 0 0 6px;
  color: var(--guide-ink);
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.guide-template-page .guide-fork p {
  margin: 0 0 12px;
  color: var(--guide-muted);
  font-size: 18px;
}

.guide-template-page .guide-fork .guide-fork__who {
  margin: 0;
  padding-top: 10px;
  border-top: 1px solid var(--guide-line-soft);
  color: var(--guide-ink);
  font-size: 16px;
}

.guide-template-page .guide-steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-template-page .guide-step {
  position: relative;
  padding: 26px 0 26px 74px;
  border-top: 1px solid var(--guide-line-soft);
}

.guide-template-page .guide-step:first-child {
  border-top-color: var(--guide-line);
}

.guide-template-page .guide-step__no {
  position: absolute;
  top: 24px;
  left: 0;
  width: 46px;
  color: var(--guide-blue);
  font: 800 35px/1 Pretendard, sans-serif;
  letter-spacing: -0.04em;
  text-align: right;
}

.guide-template-page .guide-step p {
  max-width: 72ch;
  margin: 0 0 10px;
}

.guide-template-page .guide-step p:last-child {
  margin-bottom: 0;
}

.guide-template-page .guide-step ul {
  max-width: 72ch;
  margin: 10px 0 0;
  padding-left: 18px;
}

.guide-template-page .guide-step li {
  margin-bottom: 5px;
}

.guide-template-page .guide-shot {
  width: fit-content;
  max-width: 100%;
  margin: 18px 0 4px;
  overflow: hidden;
  border: 2px dashed var(--guide-line);
  border-radius: 10px;
  background: #fff;
}

.guide-template-page .guide-shot__caption {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
  padding: 11px 14px;
  border-bottom: 1px dashed var(--guide-line);
  background: #ffffff;
}

.guide-template-page .guide-shot__tag {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 3px;
  background: var(--guide-ink);
  color: #fff;
  font: 700 11.5px/1 Pretendard, sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.guide-template-page .guide-shot__what {
  color: var(--guide-ink);
  font-size: 17px;
  font-weight: 700;
}

.guide-template-page .guide-shot__how {
  width: 100%;
  margin: 0;
  color: var(--guide-muted);
  font-size: 18px;
  line-height: 1.65;
}

.guide-template-page .guide-shot__media {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: #ffffff;
  text-align: center;
}

.guide-template-page .guide-shot__link {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  line-height: 0;
  outline-offset: 5px;
}

.guide-template-page .guide-shot__link:focus-visible {
  outline: 3px solid var(--guide-blue);
}

.guide-template-page .guide-shot img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  border: 0;
  object-fit: contain;
  image-rendering: auto;
}

.guide-template-page .guide-shot--compact .guide-shot__link {
  max-width: 264px;
}

.guide-template-page .guide-shot--compact {
  width: min(100%, 304px);
}

.guide-template-page .guide-shot--s01 {
  width: min(100%, 1085px);
}

.guide-template-page .guide-shot--s03 {
  width: min(100%, 1147px);
}

.guide-template-page .guide-shot--s04 {
  width: min(100%, 1134px);
}

.guide-template-page .guide-shot--s05 {
  width: min(100%, 893px);
}

.guide-template-page .guide-shot--s06 {
  width: min(100%, 1112px);
}

.guide-template-page .guide-shot--s08 {
  width: min(100%, 1058px);
}

/* SHOT 02: keep the screenshot scale, but mask its empty right-hand strip. */
.guide-template-page .guide-shot--mask-right {
  width: min(calc(90.1% + 4px), 1059px);
}

.guide-template-page .guide-shot--mask-right .guide-shot__media {
  overflow: hidden;
  justify-content: flex-start;
}

.guide-template-page .guide-shot--mask-right .guide-shot__link {
  flex: 0 0 111%;
  max-width: none;
}

.guide-template-page .guide-shot--mask-right img {
  width: 100%;
  max-width: none;
}

@media (min-width: 861px) {
  .guide-template-page .guide-shot--desktop-screen {
    display: grid;
    width: min(100%, 440px);
    height: calc(100vh - 64px);
    height: min(820px, calc(100svh - 64px));
    grid-template-rows: auto minmax(0, 1fr);
  }

  .guide-template-page .guide-shot--desktop-screen .guide-shot__media {
    min-height: 0;
    overflow: hidden;
  }

  .guide-template-page .guide-shot--desktop-screen .guide-shot__link {
    width: 100%;
    height: 100%;
  }

  .guide-template-page .guide-shot--desktop-screen img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.guide-template-page .guide-table {
  width: 100%;
  margin: 18px 0 0;
  border-collapse: collapse;
  font-size: 18px;
}

.guide-template-page .guide-table th,
.guide-template-page .guide-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--guide-line-soft);
  text-align: left;
  vertical-align: top;
}

.guide-template-page .guide-table th {
  border-bottom-color: var(--guide-line);
  color: var(--guide-muted);
  font-size: 11.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.guide-template-page .guide-table td:first-child {
  font-weight: 700;
  white-space: nowrap;
}

.guide-template-page .guide-note {
  margin: 18px 0 0;
  padding: 14px 16px;
  border-left: 3px solid var(--guide-blue);
  background: #fff;
  font-size: 18px;
}

.guide-template-page .guide-note strong {
  color: var(--guide-blue);
}

.guide-template-page .guide-note--warn {
  border-left-color: var(--guide-amber-ink);
  background: var(--guide-amber-bg);
}

.guide-template-page .guide-note--warn strong {
  color: var(--guide-amber-ink);
}

.guide-template-page .guide-prep {
  display: inline-block;
  margin-inline: 5px;
  padding: 4px 7px;
  border-radius: 3px;
  background: var(--guide-amber-bg);
  color: var(--guide-amber-ink);
  font: 700 12px/1 Pretendard, sans-serif;
  vertical-align: middle;
}

@media (max-width: 1100px) {
  .guide-psd-section .guide-psd-desktop {
    display: none;
  }

  .guide-mobile-composition {
    display: block;
  }

  .guide-editorial-title__answer {
    margin-left: 18%;
    font-size: clamp(72px, 11vw, 112px);
  }

  .guide-editorial-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
  }

  .guide-editorial-facts article:nth-child(even) {
    margin-top: 0;
  }

  .help-magazine-page.guide-template-page main .guide-editorial-hero,
  .guide-template-page .guide-editorial-hero .container {
    min-height: 0;
  }

  .guide-editorial-next {
    position: static;
    margin-top: 58px;
  }
}

@media (max-width: 860px) {
  .guide-template-page main .container {
    width: calc(100% - 36px);
  }

  .help-magazine-page.guide-template-page main .guide-editorial-hero,
  .guide-template-page .guide-overview-spread {
    padding-block: 58px 72px;
  }

  .guide-template-page .guide-editorial-hero .container,
  .guide-template-page .guide-overview-spread .container {
    width: calc(100% - 36px);
  }

  .guide-editorial-title__question {
    padding-right: 42px;
    font-size: clamp(58px, 18vw, 86px);
  }

  .guide-editorial-title__answer {
    margin: 14px 0 0;
    font-size: clamp(48px, 14.5vw, 70px);
    line-height: 0.98;
    white-space: normal;
  }

  .guide-editorial-title__time {
    top: 8px;
    font-size: 35px;
  }

  .guide-editorial-title__manual {
    display: none;
  }

  .guide-editorial-facts {
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 52px;
  }

  .guide-editorial-facts article {
    min-height: 0;
    padding: 18px 0 26px;
  }

  .guide-editorial-facts h2 {
    font-size: 26px;
  }

  .guide-editorial-facts p {
    font-size: 18px;
  }

  .guide-editorial-next {
    align-items: center;
    margin-top: 34px;
    font-size: 31px;
  }

  .guide-editorial-next__arrows {
    gap: 10px;
  }

  .guide-editorial-next__arrows i {
    width: 26px;
    height: 34px;
  }

  .guide-editorial-next__arrows i::after {
    bottom: -10px;
    border-top-width: 12px;
    border-right-width: 13px;
    border-left-width: 13px;
  }

  .guide-overview-spread__head {
    margin-bottom: 26px;
  }

  .guide-overview-spread__head p,
  .guide-overview-spread__head h2 {
    font-size: 27px;
  }

  .guide-overview-list li {
    grid-template-columns: 66px minmax(0, 1fr);
    min-height: 158px;
    padding: 22px 0;
    border-top: 1px solid var(--guide-line-soft);
  }

  .guide-overview-list li:last-child {
    border-bottom: 1px solid var(--guide-line-soft);
  }

  .guide-overview-list__roman {
    align-self: start;
    padding-top: 4px;
    font-size: 56px;
  }

  .guide-overview-list h3 {
    font-size: 25px;
  }

  .guide-overview-list p {
    font-size: 18px;
  }

  .guide-template-page .guide-section {
    padding: 52px 0;
  }

  .guide-template-page .guide-fork {
    grid-template-columns: 1fr;
  }

  .guide-template-page .guide-fork > div + div {
    border-top: 1px solid var(--guide-line-soft);
    border-left: 0;
  }

  .guide-template-page .guide-step {
    padding-top: 56px;
    padding-left: 0;
  }

  .guide-template-page .guide-step__no {
    top: 20px;
    left: 0;
    width: auto;
    font-size: 31px;
    text-align: left;
  }

  .guide-template-page .guide-table,
  .guide-template-page .guide-table tbody,
  .guide-template-page .guide-table tr,
  .guide-template-page .guide-table td {
    display: block;
    width: 100%;
  }

  .guide-template-page .guide-table thead {
    display: none;
  }

  .guide-template-page .guide-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--guide-line);
  }

  .guide-template-page .guide-table td {
    padding: 3px 0;
    border: 0;
  }

  .guide-template-page .guide-table td:first-child {
    color: var(--guide-muted);
    font-size: 16px;
    white-space: normal;
  }
}

@media (max-width: 480px) {
  .guide-editorial-title__answer {
    font-size: clamp(44px, 14vw, 58px);
  }

  .guide-overview-spread__head p,
  .guide-overview-spread__head h2 {
    font-size: 25px;
  }

  .guide-overview-list li {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  .guide-overview-list__roman {
    font-size: 46px;
  }

  .guide-overview-list h3 {
    font-size: 23px;
  }

  .guide-template-page .guide-h1 {
    font-size: clamp(35px, 11vw, 47px);
  }

  .guide-template-page .guide-fork > div {
    padding-inline: 18px;
  }

  .guide-template-page .guide-shot__caption {
    align-items: center;
    padding: 10px 11px;
  }

  .guide-template-page .guide-shot__how {
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  .guide-template-page *,
  .guide-template-page *::before,
  .guide-template-page *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
