/* ==========================================================================
   GeroPaper — 사용 설명서(/guide) 전용. welcome.css 의 토큰(--lp-*) 위에 문서 화면만 더한다.
   모든 선택자는 gd- 접두사이거나 .gd 아래에 둔다(이 페이지에서만 불러온다).
   원칙: 흰 면 · 왼쪽 정렬 · 굵기와 크기로 위계. 한글 본문 16.5px · 행간 1.8 · 한 줄 최대 68ch · keep-all.
   색은 초록(에메랄드) 한 가지로 강조한다. 보라 · 큰 그라데이션 판은 쓰지 않는다.
   text-wrap: pretty 는 쓰지 않는다 — 사파리(WebKit 26)는 keep-all 과 함께 쓰면 영어 낱말 중간(doesn' / t)에서 줄을 바꾼다.
   ========================================================================== */
:root {
  --gd-bar-h: 48px;
  --gd-measure: 68ch;
  --gd-wash: #e3f4ec;
  --gd-wash-2: #d3eee1;
  --gd-amber-wash: #fff5e0;
  --gd-amber-text: #8a5300;
  --gd-cite: #1d5a9e;
  --gd-cite-wash: #e7effa;
  --gd-say: #075e3f;
  --gd-say-wash: #e8f5ee;
  --gd-shadow-shot: 0 1px 2px rgba(15, 30, 22, .06), 0 24px 48px -30px rgba(10, 40, 26, .38);
  --gd-video-bg: #0c1411;
  --gd-zoom-bg: rgba(8, 14, 11, .97);
}
html[data-theme="dark"] {
  --gd-wash: rgba(76, 201, 149, .13);
  --gd-wash-2: rgba(76, 201, 149, .2);
  --gd-amber-wash: rgba(245, 180, 0, .11);
  --gd-amber-text: #ffd66b;
  --gd-cite: #9cc4f5;
  --gd-cite-wash: rgba(110, 160, 230, .15);
  --gd-say: #8fe0bb;
  --gd-say-wash: rgba(76, 201, 149, .12);
  --gd-shadow-shot: 0 0 0 1px rgba(255, 255, 255, .03), 0 24px 48px -30px rgba(0, 0, 0, .85);
}

/* 읽는 페이지라 머리 메뉴 · 목차 막대 뒤로 글이 비치지 않게 불투명하게 */
.gd .lp-nav { background: var(--lp-paper); }

/* 영어 화면은 keep-all 을 풀어 준다 — 사파리(WebKit)는 keep-all 에서 아포스트로피 뒤(journal' / s)에서도 줄을 바꾼다 */
html[lang="en"] .gd { word-break: normal; }

/* 고정 머리(+ 좁은 화면의 목차 막대)가 이동한 항목을 가리지 않게 */
html.gd-page { scroll-padding-top: calc(var(--lp-nav-h) + var(--gd-bar-h) + 14px); }
@media (min-width: 1024px) { html.gd-page { scroll-padding-top: calc(var(--lp-nav-h) + 20px); } }

.gd-sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.gd .gd-ic { display: inline-block; flex-shrink: 0; vertical-align: middle; }

/* ---------- 좁은 화면: 지금 장 막대 ---------- */
.gd-mbar {
  position: sticky; top: var(--lp-nav-h); z-index: 46; height: var(--gd-bar-h);
  background: var(--lp-paper);
  border-top: 1px solid var(--lp-rule); border-bottom: 1px solid var(--lp-rule);
}
.gd-mbar-btn {
  display: flex; align-items: center; gap: 8px; width: 100%; height: calc(var(--gd-bar-h) - 2px); padding: 0;
  border: 0; background: transparent; color: var(--lp-ink); font: inherit; font-size: 14.5px; text-align: left; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gd-mbar-btn > .gd-ic { color: var(--lp-ink-3); }
.gd-mb-label { flex-shrink: 0; font-weight: 600; color: var(--lp-ink-3); }
.gd-mb-sep { flex-shrink: 0; color: var(--lp-rule-2); }
.gd-mb-cur { flex: 1; min-width: 0; font-weight: 720; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gd-mb-n { margin-right: 7px; font-size: 12.5px; font-weight: 750; color: var(--lp-accent-text); }
.gd-mb-chev { display: inline-flex; flex-shrink: 0; color: var(--lp-ink-3); transition: transform 180ms var(--ease); }
.gd-mbar-btn[aria-expanded="true"] .gd-mb-chev { transform: rotate(180deg); }
@media (min-width: 1024px) { .gd-mbar { display: none; } }

/* ---------- 틀 ---------- */
.gd-main { padding: clamp(28px, 4vw, 56px) 0 clamp(80px, 9vw, 128px); }
.gd-grid { display: grid; grid-template-columns: minmax(0, 1fr); }
.gd-body { min-width: 0; max-width: 900px; }

/* 목차(넓은 화면: 왼쪽 고정 / 좁은 화면: 막대 아래로 펼침) */
.gd-aside { min-width: 0; }
@media (min-width: 1024px) {
  .gd-grid { grid-template-columns: 248px minmax(0, 1fr); column-gap: clamp(40px, 4.5vw, 76px); }
  .gd-aside-in {
    position: sticky; top: calc(var(--lp-nav-h) + 20px);
    max-height: calc(100vh - var(--lp-nav-h) - 40px); max-height: calc(100dvh - var(--lp-nav-h) - 40px);
    overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
    padding: 4px 6px 32px 2px; margin-left: -2px;
  }
}
@media (max-width: 1023px) {
  .gd-aside {
    position: fixed; left: 0; right: 0; top: calc(var(--lp-nav-h) + var(--gd-bar-h)); z-index: 45; display: none;
    max-height: calc(100vh - var(--lp-nav-h) - var(--gd-bar-h)); max-height: calc(100dvh - var(--lp-nav-h) - var(--gd-bar-h));
    overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
    background: var(--lp-paper); border-bottom: 1px solid var(--lp-rule); box-shadow: 0 30px 40px -28px rgba(0, 0, 0, .35);
  }
  .gd-aside.gd-open { display: block; }
  .gd-aside-in { width: 100%; max-width: calc(var(--lp-max) + var(--lp-gutter) * 2); margin-inline: auto; padding: 14px var(--lp-gutter) 22px; }
  .gd-toc-items { display: none !important; }       /* 좁은 화면 목차는 장만 — 항목은 검색으로 */
}

/* 검색 칸 */
.gd-search { position: relative; display: flex; align-items: center; margin-bottom: 12px; }
.gd-search-ic { position: absolute; left: 11px; display: inline-flex; color: var(--lp-ink-3); pointer-events: none; }
.gd-search-in {
  width: 100%; height: 42px; padding: 0 38px 0 34px; border-radius: 10px; border: 1px solid var(--lp-rule-2);
  background: var(--lp-raised); color: var(--lp-ink); font: inherit; font-size: 15px; outline: none;
  -webkit-appearance: none; appearance: none;
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.gd-search-in::placeholder { color: var(--lp-ink-3); opacity: 1; }
.gd-search-in:focus { border-color: var(--lp-accent); box-shadow: 0 0 0 3px var(--gd-wash-2); }
.gd-search-in::-webkit-search-cancel-button, .gd-search-in::-webkit-search-decoration { -webkit-appearance: none; display: none; }
@media (max-width: 1023px) { .gd-search-in { font-size: 16px; } }   /* iOS 확대 방지 */
.gd-search-x {
  position: absolute; right: 5px; width: 32px; height: 32px; border: 0; border-radius: 8px; background: transparent;
  display: inline-flex; align-items: center; justify-content: center; color: var(--lp-ink-3); cursor: pointer;
}
.gd-search-x:hover { color: var(--lp-ink); background: var(--lp-sunken); }
.gd-search-x[hidden] { display: none; }

/* 목차 */
.gd-toc-list, .gd-toc-items, .gd-results ul { list-style: none; margin: 0; padding: 0; }
.gd-toc-list > li + li { margin-top: 1px; }
.gd-toc-sec, .gd-res-sec {
  display: flex; align-items: baseline; gap: 10px; min-height: 38px; padding: 8px 10px; border-radius: 9px;
  font-size: 14.5px; font-weight: 600; line-height: 1.4; color: var(--lp-ink-2);
  transition: background-color 140ms var(--ease), color 140ms var(--ease);
}
.gd-toc-sec:hover, .gd-res-sec:hover { color: var(--lp-ink); background: var(--lp-sunken); }
.gd-on > .gd-toc-sec { color: var(--lp-ink); background: var(--gd-wash); }
.gd-toc-n { flex-shrink: 0; width: 19px; font-size: 12px; font-weight: 700; color: var(--lp-ink-3); font-variant-numeric: tabular-nums; }
.gd-on > .gd-toc-sec .gd-toc-n { color: var(--lp-accent-text); }
.gd-toc-items { display: none; margin: 3px 0 8px 19px; padding-left: 10px; border-left: 1px solid var(--lp-rule-2); }
.gd-on > .gd-toc-items { display: block; }
.gd-toc-item, .gd-res-item {
  position: relative; display: block; padding: 6px 10px; border-radius: 6px;
  font-size: 13.5px; line-height: 1.45; color: var(--lp-ink-3); transition: color 140ms var(--ease);
}
.gd-toc-item:hover, .gd-res-item:hover { color: var(--lp-ink); }
.gd-toc-item.gd-on { color: var(--lp-accent-text); font-weight: 650; }
.gd-toc-item.gd-on::before { content: ''; position: absolute; left: -11px; top: 7px; bottom: 7px; width: 2px; border-radius: 1px; background: var(--lp-accent); }
.gd-results ul ul { margin: 2px 0 8px 19px; padding-left: 10px; border-left: 1px solid var(--lp-rule-2); }
.gd-results mark { background: var(--gd-wash-2); color: var(--lp-accent-text); border-radius: 3px; padding: 0 1px; }
.gd-res-note, .gd-res-empty { margin: 0; padding: 4px 10px 8px; font-size: 13px; line-height: 1.55; color: var(--lp-ink-3); }

/* ---------- 머리 ---------- */
.gd-head { max-width: var(--gd-measure); padding-bottom: 8px; }
.gd-kicker { margin: 0; font-size: 14px; font-weight: 750; color: var(--lp-accent-text); }
.gd-h1 {
  margin: 10px 0 0; font-size: clamp(32px, 1.8vw + 20px, 46px); line-height: 1.15; font-weight: 810;
  letter-spacing: -.042em; color: var(--lp-ink); text-wrap: balance;
}
.gd-lead { margin: 16px 0 0; font-size: clamp(16.5px, .3vw + 15.5px, 18.5px); line-height: 1.75; color: var(--lp-ink-2); }
.gd-quick { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.gd-quick a {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 11px;
  font-size: 14px; font-weight: 650; color: var(--lp-ink-2); background: var(--lp-sunken);
  transition: color 140ms var(--ease), background-color 140ms var(--ease);
}
.gd-quick a .gd-ic, .gd-quick a .lp-ic { color: var(--lp-accent); }
.gd-quick a:hover { color: var(--lp-accent-text); background: var(--gd-wash); }
.gd-quick a.gd-quick-main { color: var(--lp-btn-fg); background: var(--lp-btn-bg); }
.gd-quick a.gd-quick-main .gd-ic, .gd-quick a.gd-quick-main .lp-ic { color: inherit; }
.gd-quick a.gd-quick-main:hover { color: var(--lp-btn-fg); background: var(--lp-btn-hover); }

/* ---------- 장 ---------- */
.gd-sec { margin-top: clamp(56px, 7vw, 96px); padding-top: clamp(28px, 3vw, 40px); border-top: 1px solid var(--lp-rule); }
.gd-head + .gd-sec { margin-top: clamp(36px, 4vw, 56px); }
.gd-sec-head { max-width: var(--gd-measure); }
.gd-sec-n {
  display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 13px; font-weight: 760;
  color: var(--lp-accent-text);
}
.gd-sec-ic {
  width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, #10a46b, #0a7a50);
}
html[data-theme="dark"] .gd-sec-ic { color: #062a1c; background: linear-gradient(135deg, #5fdcaa, #3ccf8e); }
.gd-h2 { margin: 10px 0 0; font-size: clamp(26px, 1.2vw + 19px, 34px); line-height: 1.22; font-weight: 790; letter-spacing: -.035em; color: var(--lp-ink); }
.gd-sec-lead { margin: 10px 0 0; font-size: 16.5px; line-height: 1.75; color: var(--lp-ink-2); }

/* ---------- 항목 ---------- */
.gd-item { position: relative; margin-top: clamp(36px, 4vw, 48px); }
.gd-item-text { max-width: var(--gd-measure); min-width: 0; }
.gd-h3 { position: relative; margin: 0; font-size: 19px; line-height: 1.4; font-weight: 740; letter-spacing: -.02em; color: var(--lp-ink); }
.gd-anchor {
  position: absolute; left: -28px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px;
  color: var(--lp-ink-3); opacity: 0; transition: opacity 140ms var(--ease), color 140ms var(--ease);
}
.gd-h3:hover .gd-anchor, .gd-anchor:focus-visible { opacity: 1; }
.gd-anchor:hover { color: var(--lp-accent-text); }
@media (hover: none), (max-width: 1023px) { .gd-anchor { display: none; } }

.gd-p { margin: 10px 0 0; font-size: 16.5px; line-height: 1.8; color: var(--lp-ink-2); }
.gd-ui { font-weight: 700; color: var(--lp-ink); }
.gd-kbd {
  display: inline-block; min-width: 1.7em; margin: 0 1px; padding: 0 6px; border-radius: 6px; text-align: center;
  font-family: var(--font-sans, inherit); font-size: .84em; font-weight: 650; line-height: 1.6; color: var(--lp-ink);
  background: var(--lp-raised); border: 1px solid var(--lp-rule-2); box-shadow: 0 1px 0 var(--lp-rule-2);
  vertical-align: 1px; white-space: nowrap;
}
.gd-code {
  display: inline; padding: 1px 6px; border-radius: 6px; font-family: var(--mono); font-size: .84em; font-weight: 650;
  line-height: 1.7; white-space: nowrap; color: var(--lp-ink); background: var(--lp-sunken);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.gd-code-mark { color: var(--lp-red); background: var(--lp-red-soft); }
.gd-code-cite { color: var(--gd-cite); background: var(--gd-cite-wash); }
.gd-say {
  display: inline; padding: 1px 7px; border-radius: 7px; font-size: .92em; font-weight: 650; color: var(--gd-say);
  background: var(--gd-say-wash); quotes: none; -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.gd-say::before, .gd-say::after { content: none; }
.gd-a { color: var(--lp-accent-text); font-weight: 650; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.gd-a:hover { text-decoration-thickness: 2px; }

/* 번호 단계 */
.gd-steps { list-style: none; counter-reset: gd-step; margin: 14px 0 0; padding: 0; }
.gd-steps li { position: relative; counter-increment: gd-step; padding-left: 36px; font-size: 16.5px; line-height: 1.75; color: var(--lp-ink-2); }
.gd-steps li + li { margin-top: 9px; }
.gd-steps li::before {
  content: counter(gd-step); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 7px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12.5px; font-weight: 760; color: var(--lp-accent-text); background: var(--gd-wash); font-variant-numeric: tabular-nums;
}
/* 점 목록 */
.gd-list { list-style: none; margin: 12px 0 0; padding: 0; }
.gd-list li { position: relative; padding-left: 20px; font-size: 16.5px; line-height: 1.75; color: var(--lp-ink-2); }
.gd-list li + li { margin-top: 8px; }
.gd-list li::before { content: ''; position: absolute; left: 4px; top: .78em; width: 6px; height: 6px; border-radius: 50%; background: var(--lp-accent); opacity: .55; }

/* 표 */
.gd-table-wrap {
  margin-top: 16px; max-width: 100%; overflow-x: auto; border: 1px solid var(--lp-rule); border-radius: 12px;
  -webkit-overflow-scrolling: touch; outline-offset: 2px;
}
.gd-table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.gd-table th { text-align: left; padding: 10px 14px; font-size: 13px; font-weight: 720; color: var(--lp-ink-3); background: var(--lp-sunken); white-space: nowrap; }
.gd-table td { padding: 11px 14px; border-top: 1px solid var(--lp-rule); color: var(--lp-ink-2); vertical-align: top; }
.gd-table td:first-child { font-weight: 680; color: var(--lp-ink); }
.gd-table .gd-code { white-space: nowrap; }
.gd-td-label { display: none; }
@media (max-width: 639px) {
  .gd-table { font-size: 14.5px; }
  .gd-table td:first-child { min-width: 96px; }
  /* 칸이 셋 이상인 표: 줄마다 카드로 — 가로로 밀어 보지 않아도 되게 */
  .gd-table-wide thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .gd-table-wide, .gd-table-wide tbody, .gd-table-wide tr, .gd-table-wide td { display: block; }
  .gd-table-wide tr { padding: 12px 14px 13px; }
  .gd-table-wide tr + tr { border-top: 1px solid var(--lp-rule); }
  .gd-table-wide td { padding: 3px 0; border-top: 0; min-width: 0 !important; display: flex; gap: 12px; align-items: baseline; }
  .gd-table-wide td:first-child { display: block; padding: 0 0 6px; font-size: 15.5px; }
  .gd-table-wide .gd-td-label { display: block; flex: 0 0 88px; font-size: 13px; font-weight: 650; color: var(--lp-ink-3); }
  .gd-table-wide .gd-td-v { flex: 1; min-width: 0; }
}

/* 팁 · 주의 */
.gd-tip, .gd-warn {
  display: flex; gap: 12px; margin-top: 16px; padding: 13px 16px; border-radius: 12px;
  font-size: 15.5px; line-height: 1.7; color: var(--lp-ink-2);
}
.gd-tip { background: var(--lp-sunken); }
.gd-warn { background: var(--gd-amber-wash); }
.gd-tip-label { flex-shrink: 0; font-weight: 760; color: var(--lp-accent-text); }
.gd-warn .gd-tip-label { color: var(--gd-amber-text); }
.gd-tip p, .gd-warn p { margin: 0; min-width: 0; }
@media (max-width: 639px) {
  .gd-p, .gd-steps li, .gd-list li { font-size: 16px; }
  .gd-h3 { font-size: 18px; }
  .gd-tip, .gd-warn { flex-direction: column; gap: 4px; font-size: 15px; }
}

/* ---------- 화면 캡처 ---------- */
.gd-item-shots { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.gd-shot { margin: 0; min-width: 0; }
.gd-shot-desk { flex: 1 1 100%; }
.gd-shot-phone { flex: 0 1 280px; width: 280px; max-width: 100%; }
.gd-two > .gd-shot-phone { flex-basis: calc(50% - 8px); max-width: 280px; }
.gd-shot-btn {
  position: relative; display: block; width: 100%; padding: 0; margin: 0; border: 1px solid var(--lp-rule-2);
  overflow: hidden; background: var(--lp-sunken); cursor: zoom-in; box-shadow: var(--gd-shadow-shot);
  -webkit-tap-highlight-color: transparent;
}
.gd-shot-desk .gd-shot-btn { border-radius: 12px; }
.gd-shot-phone .gd-shot-btn { border-radius: 26px; border-width: 5px; border-color: var(--lp-phone-frame); }
.gd-shot-btn img { display: block; width: 100%; height: auto; }
.gd-shot-btn:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 2px; }
.gd-shot-zoom {
  position: absolute; right: 10px; bottom: 10px; width: 32px; height: 32px; border-radius: 9px;
  display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgba(10, 18, 14, .62);
  opacity: 0; transition: opacity 160ms var(--ease);
}
.gd-shot-btn:hover .gd-shot-zoom, .gd-shot-btn:focus-visible .gd-shot-zoom { opacity: 1; }
@media (hover: none) { .gd-shot-zoom { opacity: .85; width: 28px; height: 28px; right: 8px; bottom: 8px; } }
.gd-shot-phone .gd-shot-zoom { right: 12px; bottom: 12px; }
.gd-shot-cap { margin-top: 9px; font-size: 13px; line-height: 1.55; color: var(--lp-ink-3); }
/* 넓은 화면: PC 화면 + 휴대폰 화면은 나란히, 휴대폰 화면만 있는 항목은 글 오른쪽에 */
@media (min-width: 1200px) {
  .gd-two:has(> .gd-shot-desk):has(> .gd-shot-phone) { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 20px; align-items: start; }
  .gd-two:has(> .gd-shot-desk):has(> .gd-shot-phone) > .gd-shot-phone { width: auto; max-width: none; }
  .gd-item.gd-with-phone { display: grid; grid-template-columns: minmax(0, 1fr) 250px; column-gap: 44px; align-items: start; }
  .gd-item.gd-with-phone .gd-item-shots { grid-column: 2; grid-row: 1 / span 2; margin-top: 4px; }
  .gd-item.gd-with-phone .gd-item-shots > .gd-shot-phone { flex-basis: 100%; width: 100%; max-width: none; }
  .gd-item.gd-with-phone .gd-item-video { grid-column: 1; }
}

/* ---------- 동영상 ---------- */
.gd-item-video { margin-top: 20px; min-width: 0; }
.gd-video { margin: 0; min-width: 0; }
.gd-video-phone { width: min(100%, 280px); }
@media (max-width: 639px) { .gd-video-phone { width: min(100%, 250px); } }
.gd-video-frame {
  position: relative; overflow: hidden; border-radius: 12px; background: var(--gd-video-bg);
  border: 1px solid var(--lp-rule-2); box-shadow: var(--gd-shadow-shot);
}
.gd-video-phone .gd-video-frame { border-radius: 24px; }
.gd-video-el { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; background: var(--gd-video-bg); }
.gd-video-el:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: -3px; }
.gd-video-start {
  position: absolute; inset: 0; display: block; z-index: 1; background: var(--lp-sunken); cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.gd-video-start img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.gd-video-start::after { content: ''; position: absolute; inset: 0; background: rgba(8, 14, 11, 0); transition: background-color 160ms var(--ease); }
.gd-video-start:hover::after { background: rgba(8, 14, 11, .08); }
.gd-video-start:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: -3px; }
.gd-video-play {
  position: absolute; z-index: 1; left: 50%; top: 50%; width: 68px; height: 68px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center; transform: translate(-50%, -50%);
  color: #fff; background: rgba(10, 18, 14, .74); box-shadow: 0 10px 30px -8px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.gd-video-play .gd-ic { margin-left: 4px; }
.gd-video-start:hover .gd-video-play, .gd-video-start:focus-visible .gd-video-play { transform: translate(-50%, -50%) scale(1.06); background: var(--lp-accent); }
.gd-video-dur, .gd-vg-dur {
  position: absolute; z-index: 1; right: 10px; bottom: 10px; padding: 1px 8px; border-radius: 6px;
  font-size: 13px; font-weight: 680; line-height: 1.6; color: #fff; background: rgba(10, 18, 14, .78); font-variant-numeric: tabular-nums;
}
.gd-video.gd-started .gd-video-start { display: none; }
.gd-video-err {
  position: absolute; z-index: 2; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 10px 12px; border-radius: 10px;
  font-size: 14px; line-height: 1.5; color: #fff; background: rgba(10, 18, 14, .88);
}
.gd-video-err a { color: #8fe0bb; text-decoration: underline; }
/* 자막: 영상 위에 굽지 않고 아래 띠에 — 화면 속 버튼을 가리지 않게 */
.gd-cc {
  display: flex; align-items: center; justify-content: center; min-height: 52px; margin-top: 8px; padding: 9px 14px;
  border-radius: 10px; background: var(--lp-sunken); text-align: center;
}
.gd-cc[hidden] { display: none; }
.gd-cc-text { font-size: 15.5px; font-weight: 600; line-height: 1.55; color: var(--lp-ink); text-wrap: balance; }
.gd-cc-text:empty::before { content: '\00a0'; }
.gd-video-cap { display: flex; align-items: center; gap: 7px; margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--lp-ink-3); }
.gd-video-cap > .gd-ic { flex-shrink: 0; color: var(--lp-accent); }
.gd-video-cap-t { flex: 1; min-width: 0; }
.gd-video-kind { font-weight: 720; color: var(--lp-accent-text); }
.gd-cc-btn {
  display: inline-flex; align-items: center; gap: 5px; flex-shrink: 0; min-height: 34px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--lp-rule-2); background: transparent; color: var(--lp-ink-3); font: inherit; font-size: 12.5px; font-weight: 750;
  cursor: pointer; transition: color 140ms, background-color 140ms, border-color 140ms;
}
.gd-cc-btn[aria-pressed="true"] { color: var(--lp-accent-text); border-color: transparent; background: var(--gd-wash); }
.gd-cc-btn:hover { color: var(--lp-ink); }
@media (max-width: 639px) {
  .gd-video-play { width: 56px; height: 56px; }
  .gd-video-dur { right: 8px; bottom: 8px; font-size: 12px; }
  .gd-cc-text { font-size: 15px; }
}

/* 동영상 모아보기 */
.gd-vg { margin-top: 22px; }
.gd-vg-sum { margin: 0; font-size: 14px; font-weight: 650; color: var(--lp-ink-3); }
.gd-vg-list {
  list-style: none; margin: 12px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 232px), 1fr)); gap: 22px 18px;
}
.gd-vg-list > li { min-width: 0; }
.gd-vg-card { display: flex; flex-direction: column; gap: 10px; height: 100%; border-radius: 12px; -webkit-tap-highlight-color: transparent; }
.gd-vg-card:focus-visible { outline: 3px solid var(--lp-accent); outline-offset: 3px; }
.gd-vg-thumb {
  position: relative; display: block; overflow: hidden; aspect-ratio: 16 / 10; border-radius: 10px;
  background: var(--gd-video-bg); border: 1px solid var(--lp-rule-2);
}
.gd-vg-thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; transition: transform 240ms var(--ease); }
.gd-vg-phone img { object-fit: contain; object-position: center; }
.gd-vg-card:hover .gd-vg-thumb img { transform: scale(1.025); }
.gd-vg-play {
  position: absolute; left: 50%; top: 50%; width: 44px; height: 44px; border-radius: 50%; transform: translate(-50%, -50%);
  display: inline-flex; align-items: center; justify-content: center; color: #fff;
  background: rgba(10, 18, 14, .72); box-shadow: 0 8px 22px -8px rgba(0, 0, 0, .5), inset 0 0 0 1px rgba(255, 255, 255, .18);
  transition: background-color 160ms var(--ease);
}
.gd-vg-play .gd-ic { margin-left: 2px; }
.gd-vg-card:hover .gd-vg-play, .gd-vg-card:focus-visible .gd-vg-play { background: var(--lp-accent); }
.gd-vg-dur { right: 7px; bottom: 7px; font-size: 12.5px; padding: 1px 7px; }
.gd-vg-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gd-vg-title { font-size: 16px; font-weight: 720; line-height: 1.4; letter-spacing: -.015em; color: var(--lp-ink); }
.gd-vg-card:hover .gd-vg-title { color: var(--lp-accent-text); }
.gd-vg-n { margin-right: 7px; font-size: 12.5px; font-weight: 750; color: var(--lp-accent-text); font-variant-numeric: tabular-nums; }
.gd-vg-desc { font-size: 14px; line-height: 1.6; color: var(--lp-ink-3); }
@media (max-width: 639px) {
  .gd-vg-list { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gd-vg-card { flex-direction: row; align-items: flex-start; gap: 12px; }
  .gd-vg-thumb { flex: 0 0 128px; width: 128px; }
  .gd-vg-play { width: 34px; height: 34px; }
  .gd-vg-dur { right: 5px; bottom: 5px; font-size: 11.5px; padding: 0 5px; }
  .gd-vg-title { font-size: 15.5px; }
  .gd-vg-desc { font-size: 13.5px; }
}

/* ---------- 단축키 ---------- */
.gd-keys { margin-top: 22px; }
.gd-os { display: inline-flex; padding: 3px; gap: 2px; border-radius: 11px; background: var(--lp-sunken); }
.gd-os-btn {
  min-height: 36px; padding: 0 14px; border: 0; border-radius: 8px; background: transparent; font: inherit;
  font-size: 14px; font-weight: 650; color: var(--lp-ink-3); cursor: pointer; transition: color 140ms var(--ease);
}
.gd-os-btn:hover { color: var(--lp-ink); }
.gd-os-btn[aria-checked="true"] { background: var(--lp-raised); color: var(--lp-ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.gd-kgroups { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px 48px; margin-top: 24px; }
@media (min-width: 1200px) { .gd-kgroups { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gd-kh { margin: 0 0 6px; font-size: 15px; font-weight: 740; color: var(--lp-ink); }
.gd-ktable { width: 100%; border-collapse: collapse; }
.gd-ktable tr { border-top: 1px solid var(--lp-rule); }
.gd-ktable tr:last-child { border-bottom: 1px solid var(--lp-rule); }
.gd-kact { padding: 9px 12px 9px 0; text-align: left; font-size: 15px; font-weight: 500; line-height: 1.5; color: var(--lp-ink-2); }
.gd-kkeys { padding: 9px 0; text-align: right; vertical-align: middle; }
.gd-kalts { display: inline-flex; flex-wrap: wrap; justify-content: flex-end; align-items: center; gap: 4px 0; }
.gd-kseq, .gd-kcombo { display: inline-flex; align-items: center; white-space: nowrap; }
.gd-kplus { margin: 0 3px; font-size: 12px; line-height: 1; color: var(--lp-ink-3); }
.gd-kthen { margin: 0 6px; font-size: 12px; color: var(--lp-ink-3); }
.gd-kor { margin: 0 7px; font-size: 13px; color: var(--lp-ink-3); }
.gd-keys.gd-mac .gd-kplus { display: none; }
.gd-keys.gd-mac .gd-kcombo .gd-kbd + .gd-kbd { margin-left: 2px; }

/* ---------- 자주 묻는 질문 ---------- */
.gd-faq { max-width: var(--gd-measure); border-bottom: 1px solid var(--lp-rule); }
.gd-sec-head + .gd-faq { margin-top: 20px; border-top: 1px solid var(--lp-rule); }
.gd-faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 12px 0;
  cursor: pointer; list-style: none; font-size: 16.5px; font-weight: 700; line-height: 1.5; color: var(--lp-ink);
  -webkit-tap-highlight-color: transparent;
}
.gd-faq-q::-webkit-details-marker { display: none; }
.gd-faq-q::marker { content: ''; }
.gd-faq-q:hover { color: var(--lp-accent-text); }
.gd-faq-q:focus-visible { outline: 2px solid var(--lp-accent); outline-offset: 2px; border-radius: 6px; }
.gd-faq-chev { display: inline-flex; flex-shrink: 0; color: var(--lp-ink-3); transition: transform 180ms var(--ease); }
.gd-faq[open] .gd-faq-chev { transform: rotate(180deg); }
.gd-faq-a { padding-bottom: 18px; }
.gd-faq-a .gd-p { margin-top: 0; }

/* ---------- 크게 보기 ---------- */
.gd-zoom { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: var(--gd-zoom-bg); color: #fff; }
.gd-zoom[hidden] { display: none; }
.gd-zoom-bar {
  display: flex; align-items: center; gap: 10px; flex-shrink: 0; min-height: 56px;
  padding: max(8px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) 8px max(16px, env(safe-area-inset-left));
}
.gd-zoom-cap { flex: 1; min-width: 0; margin: 0; font-size: 14px; line-height: 1.45; color: rgba(255, 255, 255, .82);
  overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gd-zoom-fit, .gd-zoom-x {
  flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; min-height: 40px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .06); color: #fff; font: inherit; font-size: 13.5px; font-weight: 650; cursor: pointer;
}
.gd-zoom-fit { padding: 0 12px; }
.gd-zoom-x { width: 42px; }
.gd-zoom-fit:hover, .gd-zoom-x:hover { background: rgba(255, 255, 255, .14); }
.gd-zoom-stage {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch;
  display: flex; padding: 8px max(12px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}
.gd-zoom-stage img { display: block; margin: auto; max-width: 100%; max-height: 100%; height: auto; border-radius: 8px; cursor: zoom-in; background: #fff; }
.gd-zoom.gd-actual .gd-zoom-stage img { max-width: none; max-height: none; cursor: zoom-out; }
/* 크게 보기 동안 뒤 페이지는 멈춘다 — body 에만 건다(html 에 걸면 고정 머리 메뉴의 기준이 바뀐다) */
html.gd-zoom-open body.lp-body { overflow: hidden; }

.gd-toast {
  position: fixed; left: 50%; bottom: max(24px, env(safe-area-inset-bottom)); z-index: 210; transform: translate(-50%, 12px);
  padding: 10px 16px; border-radius: 12px; font-size: 14px; font-weight: 650; color: var(--lp-btn-fg); background: var(--lp-btn-bg);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .45); opacity: 0; pointer-events: none;
  transition: opacity 180ms var(--ease), transform 220ms var(--ease);
}
.gd-toast.gd-show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  .gd-mb-chev, .gd-faq-chev, .gd-video-play, .gd-vg-thumb img, .gd-video-start::after, .gd-shot-zoom { transition: none; }
  .gd-vg-card:hover .gd-vg-thumb img { transform: none; }
  .gd-toast { transition: none; }
}
@media print {
  .gd-mbar, .gd-aside, .gd-quick, .gd-item-video, .gd-anchor, .gd-zoom { display: none !important; }
  .gd-grid { display: block; }
  .gd-faq-a { display: block; }
}
