@charset "UTF-8";
/* 사용가이드 허브 + 가이드 모달. 토큰은 tokens.css 만 읽는다. */

.gh, .gd, .gd-doc {
  --gh-ink: #16223A;
  --gh-paper: #FBFAF7;
  --gh-line: rgba(22, 34, 58, .1);
  --gh-soft: #F3F5FA;
  --gh-lav: #F4F0FB;
  --gh-max: 1200px;
  --gh-ease: cubic-bezier(.32, .72, 0, 1);
  --gh-t: .45s var(--gh-ease);
  --gh-ring: inset 0 0 0 1px rgba(var(--primary-rgb), .28);
  /* 쉬는 상태와 hover 의 그림자는 같은 층 구조(inset 1겹 + 바깥 2겹)여야 한다 — 구조가 다르면 transition 없이 뚝 바뀐다. */
  --gh-shadow: 0 1px 2px rgba(22, 34, 58, .04), 0 20px 40px -20px rgba(22, 34, 58, .24);
  --gh-shadow-rest: 0 1px 2px rgba(22, 34, 58, 0), 0 20px 40px -20px rgba(22, 34, 58, 0);
  word-break: keep-all;
}
.gh {
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 136px;
}
.gh-preview { padding: 12px 24px; background: var(--accent-blue-soft); color: var(--primary); font-size: 14px; font-weight: 700; text-align: center; }
.gh-wrap { width: min(var(--gh-max), 100% - 48px); margin-inline: auto; }
.gh-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--primary); }
.gh-tag { align-self: flex-start; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: var(--radius-full); background: var(--accent-blue-soft); color: var(--primary); }
.gh-h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; letter-spacing: -.04em; font-weight: 700; }
.gh-sub { font-size: 17px; line-height: 1.7; color: var(--text-muted); }
.gh-head { display: flex; flex-direction: column; gap: 12px; }
.gh-head--row { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* 카드 톤 — 추천 카드 시각 영역, 전체 가이드 카드 머리띠가 같은 톤을 쓴다 */
.is-blue  { --tone: #EAF0FB; --tone-2: #F1EDFB; --tone-ink: var(--primary); }
.is-green { --tone: #E8F4EE; --tone-2: #F2F6E8; --tone-ink: #2F7A57; }
.is-peach { --tone: #FBEDE6; --tone-2: #F6EEF6; --tone-ink: #B0603A; }
.is-lav   { --tone: #EFEBFA; --tone-2: #E9F1FB; --tone-ink: #6A4FC4; }

/* ---------- Hero (가운데 정렬 — 기획 배치) ---------- */
.gh-hero { position: relative; padding: 120px 0 0; background: linear-gradient(180deg, #EAF0FA 0%, #F6F8FC 50%, #fff 100%); }
.gh-hero .gh-wrap { display: flex; flex-direction: column; align-items: center; gap: 64px; }
.gh-hero__copy { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.gh-hero .gh-eyebrow { padding: 8px 16px; border-radius: var(--radius-full); background: #fff; box-shadow: inset 0 0 0 1px var(--gh-line); }
.gh-hero h1 { font-size: clamp(34px, 5.4vw, 66px); line-height: 1.18; letter-spacing: -.055em; font-weight: 800; }
.gh-hero h1 em { font-style: normal; color: var(--primary); }
.gh-hero__lead { font-size: 18px; line-height: 1.8; color: var(--text-muted); }
.gh-hero__actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; }
.gh-hero__actions .gh-btn { height: 56px; padding: 0 28px; font-size: 16px; }

/* 고객 무대 (파노라마) */
.gh-stage__art { width: 100%; position: relative; border-radius: 32px; overflow: hidden; aspect-ratio: 1600 / 520; background: #F6F3EC; box-shadow: 0 40px 80px -40px rgba(22, 34, 58, .35), inset 0 0 0 1px var(--gh-line); }
.gh-stage__art img { width: 100%; height: 100%; object-fit: cover; animation: gh-drift 18s ease-in-out infinite alternate; }
@keyframes gh-drift { from { transform: scale(1.02); } to { transform: scale(1.08) translateX(-1.5%); } }

/* ---------- 파트너 등록 안내 (x-admin.setup-guide 본문 재사용 — 안쪽 스타일은 partner-setup.css 소유) ---------- */
.gh-setup { width: 100%; display: flex; flex-direction: column; gap: 24px; padding: 32px; border-radius: 28px; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--gh-line); text-align: left; }
.gh-setup__title { font-size: 22px; letter-spacing: -.03em; font-weight: 700; }

/* ---------- 처음 이용 추천 (글 → 그림 → 버튼) ---------- */
.gh-featured { display: flex; flex-direction: column; gap: 32px; }
.gh-featured__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gh-fcard { display: flex; flex-direction: column; border-radius: 24px; background: #fff; overflow: hidden; box-shadow: inset 0 0 0 1px var(--gh-line), 0 1px 2px rgba(22, 34, 58, .03), 0 20px 40px -20px rgba(22, 34, 58, .1); cursor: pointer; }
.gh-fcard__copy { display: flex; flex-direction: column; gap: 10px; padding: 28px 28px 24px; }
.gh-fcard__step { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--tone-ink); }
.gh-fcard h3 { font-size: 22px; letter-spacing: -.03em; font-weight: 700; }
.gh-fcard p { font-size: 15px; line-height: 1.65; color: var(--text-muted); min-height: 3.3em; }
.gh-fcard__visual { position: relative; margin-inline: 16px; aspect-ratio: 16 / 10; border-radius: 16px; overflow: hidden; background: var(--tone); }
.gh-fcard__visual img { width: 100%; height: 100%; object-fit: cover; }
.gh-fcard__visual figcaption { position: absolute; left: 12px; bottom: 12px; padding: 6px 12px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .9); backdrop-filter: blur(6px); font-size: 12px; font-weight: 600; color: var(--gh-ink); }
.gh-fcard__cta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 28px 24px; font-size: 15px; font-weight: 600; color: var(--gh-ink); text-align: left; }
.gh-fcard__cta span { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px var(--gh-line); color: var(--text-sub); }

/* ---------- 전체 사용가이드 (3열 카드) ---------- */
.gh-library { display: flex; flex-direction: column; gap: 24px; }
.gh-library__bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.gh-library__count { flex: 1 0 auto; font-size: 14px; color: var(--text-sub); }
.gh-library__count b { color: var(--gh-ink); }
.gh-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.gh-chip { height: 36px; padding: 0 14px; border-radius: var(--radius-full); font-size: 14px; font-weight: 600; color: var(--text-muted); background: #fff; box-shadow: inset 0 0 0 1px var(--gh-line); }
.gh-chip[aria-pressed="true"] { background: var(--gh-ink); color: #fff; box-shadow: none; }
.gh-search { position: relative; flex: 0 1 280px; }
.gh-search i { position: absolute; left: 16px; top: 50%; translate: 0 -50%; font-size: 14px; color: var(--text-desc); pointer-events: none; }
.gh-search input { width: 100%; height: 40px; padding: 0 16px 0 40px; border: 0; border-radius: var(--radius-full); background: #fff; box-shadow: inset 0 0 0 1px var(--gh-line); font-size: 14px; color: var(--gh-ink); transition: box-shadow var(--ease-default); }
.gh-search input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--primary), 0 0 0 4px rgba(var(--primary-rgb), .1); }
.gh-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.gh-card { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 18px; padding: 24px; border-radius: 20px; background: #fff; box-shadow: inset 0 0 0 1px var(--gh-line), var(--gh-shadow-rest); text-align: left; }
.gh-card__band { display: flex; flex-direction: row-reverse; justify-content: space-between; align-items: center; }
.gh-card__no { font-size: 14px; font-weight: 700; color: var(--text-desc); font-variant-numeric: tabular-nums; }
.gh-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 18px; background: var(--tone); color: var(--tone-ink); }
.gh-card__body { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.gh-card__cat { font-size: 12px; font-weight: 600; color: var(--tone-ink); }
.gh-card__body strong { font-size: 18px; letter-spacing: -.02em; }
.gh-card__body p { font-size: 14px; line-height: 1.6; color: var(--text-sub); }
.gh-card__foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--gh-line); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-desc); }
.gh-card__foot span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-sub); }
.gh-card__foot > i { font-style: normal; font-size: 14px; color: var(--text-sub); }
/* 마지막 줄 빈칸을 문의 카드가 채운다 — --r3/--r2 는 남은 칸 수 */
.gh-grid__ask { grid-column: span var(--r3); }
.gh-grid__empty { grid-column: 1 / -1; padding-block: 40px; text-align: center; font-size: 15px; color: var(--text-sub); }
.gh-card--ask { background: var(--gh-soft); }
.gh-card--ask .gh-card__band { flex-direction: row; }
.gh-card--ask .gh-card__icon { background: #fff; color: var(--primary); }

/* ---------- WHY ---------- */
.gh-why { display: flex; flex-direction: column; gap: 48px; }
.gh-why__intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
.gh-why__art { border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; background: #fff; box-shadow: var(--sh-1), inset 0 0 0 1px var(--gh-line); }
.gh-why__art img { aspect-ratio: 3 / 2; object-fit: cover; }
.gh-why__art figcaption { padding: 16px 20px; font-size: 14px; color: var(--text-sub); text-align: center; }
.gh-values { display: flex; gap: 8px; flex-wrap: wrap; }
.gh-values span { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: var(--radius-full); background: #fff; box-shadow: inset 0 0 0 1px var(--gh-line); font-size: 15px; font-weight: 600; }
.gh-values i { color: var(--primary); font-style: normal; }
.gh-for { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gh-for article { display: flex; flex-direction: column; gap: 14px; padding: 36px; border-radius: 24px; background: #fff; box-shadow: inset 0 0 0 1px var(--gh-line); }
.gh-for__top { display: flex; align-items: center; gap: 10px; }
.gh-for__top i { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-blue-soft); color: var(--primary); font-style: normal; }
.gh-for small { font-size: 12px; font-weight: 700; letter-spacing: .14em; color: var(--primary); }
.gh-for h3 { font-size: 23px; line-height: 1.4; letter-spacing: -.03em; }
.gh-for p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.gh-for ul { display: flex; flex-direction: column; gap: 10px; padding-top: 18px; border-top: 1px solid var(--gh-line); }
.gh-for li { display: flex; gap: 10px; font-size: 15px; }
.gh-for li::before { content: '✓'; color: var(--primary); font-weight: 700; }
/* 보는 사람 쪽 카드를 어둡게 — 서버가 사용자 유형으로 is-me 를 붙인다 */
.gh-for article.is-me { background: var(--gh-ink); color: #fff; box-shadow: none; }
.gh-for article.is-me .gh-for__top i { background: rgba(255, 255, 255, .1); color: #9DB8E8; }
.gh-for article.is-me small, .gh-for article.is-me li::before { color: #9DB8E8; }
.gh-for article.is-me p { color: rgba(255, 255, 255, .7); }
.gh-for article.is-me ul { border-color: rgba(255, 255, 255, .14); }

/* ---------- Journey (일러스트 + 지그재그 단계) ---------- */
.gh-journey { background: var(--gh-ink); color: #fff; padding-block: 104px; }
.gh-journey .gh-wrap { display: flex; flex-direction: column; gap: 40px; }
.gh-journey .gh-eyebrow { color: #9DB8E8; }
.gh-journey .gh-sub { color: rgba(255, 255, 255, .65); text-align: right; }
.gh-reel { aspect-ratio: 1200 / 400; border-radius: 24px; overflow: hidden; background: #F6F3EC; }
.gh-reel img { width: 100%; height: 100%; object-fit: cover; }
.gh-track--client { --cols: 4; }
.gh-track--partner { --cols: 3; }
.gh-track { display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); column-gap: 36px; row-gap: 40px; }
.gh-track li { position: relative; grid-row: var(--r); grid-column: var(--c); }
.gh-track li::after { position: absolute; color: rgba(157, 184, 232, .55); font-size: 16px; line-height: 1; }
.gh-track li[data-dir="right"]::after { content: '→' / ''; right: -26px; top: 50%; translate: 0 -50%; }
.gh-track li[data-dir="left"]::after { content: '←' / ''; left: -26px; top: 50%; translate: 0 -50%; }
.gh-track li[data-dir="down"]::after { content: '↓' / ''; bottom: -30px; left: 50%; translate: -50% 0; }
.gh-track button { width: 100%; height: 100%; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 18px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); color: inherit; text-align: left; }
.gh-track__no { font-size: 13px; font-weight: 700; color: #9DB8E8; font-variant-numeric: tabular-nums; }
.gh-track div { display: flex; flex-direction: column; gap: 6px; }
.gh-track strong { font-size: 17px; letter-spacing: -.02em; }
.gh-track small { font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .6); }
.gh-journey__foot { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, .55); }
.gh-btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--radius-full); font-size: 15px; font-weight: 600; }
.gh-btn--line { color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.gh-btn--primary { background: var(--primary); color: #fff; }
.gh-btn--ghost { background: #fff; color: var(--gh-ink); box-shadow: inset 0 0 0 1px var(--gh-line); }

/* ---------- 문의 (설명 + 실제 문의 폼) ---------- */
.gh-ask { background: var(--gh-soft); padding-block: 104px; }
.gh-ask .gh-wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
.gh-ask__links { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.gh-ask__links a { display: flex; justify-content: space-between; align-items: center; padding: 16px 18px; border-radius: 14px; background: #fff; font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--gh-line); }
.gh-form { display: flex; flex-direction: column; gap: 20px; padding: 36px; border-radius: 24px; background: #fff; box-shadow: var(--sh-1); }
.gh-field { display: flex; flex-direction: column; gap: 8px; }
.gh-field label { font-size: 14px; font-weight: 700; }
.gh-field label span { color: var(--state-up); }
.gh-field label small { font-weight: 500; color: var(--text-desc); }
.gh-field textarea { width: 100%; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--gray-200); background: #fff; font: inherit; font-size: 15px; color: var(--gh-ink); min-height: 160px; resize: vertical; line-height: 1.6; transition: border-color var(--ease-default), box-shadow var(--ease-default); }
.gh-field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(var(--primary-rgb), .1); }
.gh-field__count { align-self: flex-end; font-size: 12px; color: var(--text-desc); }
.gh-file { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; border: 1px dashed var(--gray-300); font-size: 14px; color: var(--text-sub); }
.gh-field .gh-file span { color: inherit; }
.gh-file b { flex-shrink: 0; white-space: nowrap; padding: 6px 12px; border-radius: 8px; background: var(--gh-soft); color: var(--gh-ink); font-size: 13px; }
.gh-form__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding-top: 8px; font-size: 13px; line-height: 1.6; color: var(--text-sub); }


/* ---------- 반응형 (허브) ---------- */
@media (max-width: 1023px) {
  .gh { gap: 104px; }
  .gh-featured__grid { grid-template-columns: minmax(0, 1fr); }
  .gh-fcard { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .gh-fcard__visual { grid-row: 1 / span 2; grid-column: 2; margin: 16px 16px 16px 0; aspect-ratio: auto; }
  .gh-fcard__cta { align-self: end; }
  .gh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-grid__ask { grid-column: span var(--r2); }
  .gh-why__intro, .gh-ask .gh-wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .gh-track.gh-track { --cols: 2; }
  .gh-track li { grid-row: auto; grid-column: auto; }
  .gh-track li::after { display: none; }
  .gh-reel { aspect-ratio: 16 / 7; }
}
@media (max-width: 767px) {
  .gh-setup { padding: 20px 16px; border-radius: 20px; }
  .gh { gap: 80px; }
  .gh-wrap { width: calc(100% - 32px); }
  .gh-hero { padding-top: 64px; }
  .gh-hero .gh-wrap { gap: 40px; }
  .gh-hero h1 { font-size: 30px; }
  .gh-hero__actions .gh-btn { height: 50px; padding: 0 22px; font-size: 15px; }
  .gh-stage__art { border-radius: 20px; aspect-ratio: 4 / 3; }
  .gh-grid__ask { grid-column: auto; }
  .gh-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 18px; }
  .gh-card__band { align-self: start; }
  .gh-card__no { display: none; }
  .gh-card__body p { font-size: 13px; }
  .gh-search { flex-basis: 100%; }
  .gh-chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -16px; padding-inline: 16px; scrollbar-width: none; }
  .gh-chip { flex-shrink: 0; }
  .gh-hero__lead { font-size: 15px; }
  .gh-hero__lead br { display: none; }
  .gh-fcard { display: flex; }
  .gh-fcard__visual { margin: 0 16px; aspect-ratio: 16 / 9; }
  .gh-fcard__copy { padding: 24px 20px 20px; }
  .gh-fcard__cta { align-self: stretch; padding: 16px 20px 20px; }
  .gh-grid, .gh-for, .gh-track { grid-template-columns: minmax(0, 1fr); }
  .gh-track.gh-track { --cols: 1; }
  .gh-track { row-gap: 8px; }
  .gh-track button { flex-direction: row; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; }
  .gh-track__no { width: 22px; flex-shrink: 0; }
  .gh-track div { gap: 2px; }
  .gh-track strong { font-size: 15px; }
  .gh-track small { font-size: 13px; }
  .gh-for article { padding: 28px 24px; }
  .gh-journey, .gh-ask { padding-block: 72px; }
  .gh-journey .gh-sub { text-align: left; }
  .gh-reel { aspect-ratio: 4 / 3; border-radius: 16px; }
  .gh-form { padding: 24px 20px; }
  .gh-form__foot .gh-btn { width: 100%; justify-content: center; }
}
/* =========================================================
   가이드 모달 (.gd) + 본문 블록 (.gb-*)
   ========================================================= */
.gd { width: min(1120px, 100vw - 48px); height: calc(100dvh - 48px); max-width: none; max-height: none; margin: auto; padding: 0; border: 0; border-radius: 24px; background: #fff; color: var(--gh-ink); box-shadow: 0 30px 80px rgba(16, 49, 107, .3); overflow: hidden; }
.gd[open] { display: flex; flex-direction: column; animation: gd-in .45s var(--gh-ease); }
.gd::backdrop { background: rgba(16, 26, 46, .45); backdrop-filter: blur(4px); }
@keyframes gd-in { from { opacity: 0; transform: translateY(24px) scale(.985); } }

.gd__bar { display: flex; align-items: center; gap: 16px; padding: 14px 20px 14px 28px; border-bottom: 1px solid rgba(22, 34, 58, .08); flex-shrink: 0; }
.gd__crumb { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--text-sub); white-space: nowrap; overflow: hidden; }
.gd__crumb strong { color: var(--gh-ink); overflow: hidden; text-overflow: ellipsis; }
.gd__crumb i { color: var(--gray-300); font-style: normal; }
.gd__icon { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: var(--text-muted); font-size: 16px; }
.gd__icon:hover { background: var(--gray-100); color: var(--gh-ink); }
.gd__progress { height: 2px; background: var(--gray-100); flex-shrink: 0; }
.gd__progress span { display: block; height: 100%; width: 0; background: var(--primary); transition: width .1s linear; }

.gd__scroll { outline: none; flex: 1; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.gd__layout { display: grid; grid-template-columns: 200px minmax(0, 720px); gap: 64px; justify-content: center; padding: 40px 40px 72px; }
.gd__toc { position: sticky; top: 32px; align-self: start; display: flex; flex-direction: column; gap: 4px; padding-top: 4px; }
.gd__toc small { font-size: 12px; font-weight: 700; letter-spacing: .1em; color: var(--text-desc); padding: 0 12px 8px; }
.gd__toc a { display: flex; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; line-height: 1.4; color: var(--text-sub); }
.gd__toc a span { font-variant-numeric: tabular-nums; color: var(--text-desc); font-weight: 600; }
.gd__toc a:hover { color: var(--gh-ink); background: var(--gray-50); }
.gd__toc a[aria-current="true"] { background: var(--accent-blue-soft); color: var(--primary); font-weight: 600; }
.gd__toc a[aria-current="true"] span { color: var(--primary); }

.gd__article { display: flex; flex-direction: column; gap: 64px; min-width: 0; }
.gd__intro { display: flex; flex-direction: column; gap: 20px; }
.gd__cover { border-radius: 20px; overflow: hidden; aspect-ratio: 3 / 1; background: var(--gh-soft); }
.gd__cover img { width: 100%; height: 100%; object-fit: cover; }
.gd__cat { font-size: 13px; font-weight: 700; color: var(--primary); letter-spacing: .04em; }
.gd__intro h1 { font-size: clamp(28px, 3.4vw, 38px); line-height: 1.3; letter-spacing: -.04em; font-weight: 800; }
.gd__lead { font-size: 18px; line-height: 1.7; color: var(--text-muted); }
.gd__meta { display: flex; gap: 14px; font-size: 13px; color: var(--text-desc); }

/* 섹션 = 목차 한 칸. 섹션 안 블록 리듬은 섹션이 gap 으로 소유한다. */
.gb-section { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 24px; }
.gb-section > h2 { display: flex; flex-direction: column; gap: 8px; font-size: 25px; line-height: 1.4; letter-spacing: -.03em; font-weight: 700; }
.gb-section > h2 small { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--primary); }

.gb-p { font-size: 16px; line-height: 1.8; color: #2E3746; }
.gb-p strong { color: var(--gh-ink); font-weight: 700; background: linear-gradient(transparent 62%, rgba(var(--primary-rgb), .12) 62%); }
.gb-h3 { font-size: 19px; letter-spacing: -.02em; font-weight: 700; padding-top: 8px; }
.gb-list { display: flex; flex-direction: column; gap: 10px; }
.gb-list li { display: flex; gap: 12px; font-size: 16px; line-height: 1.7; color: #2E3746; }
.gb-list li::before { content: ''; flex-shrink: 0; width: 6px; height: 6px; margin-top: 11px; border-radius: 50%; background: var(--primary); }

/* 표 */
.gb-table { overflow-x: auto; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--gh-line); }
.gb-table table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.6; }
.gb-table thead th { background: var(--gh-soft); font-size: 13px; font-weight: 700; color: var(--text-muted); text-align: left; padding: 12px 18px; white-space: nowrap; }
.gb-table tbody th, .gb-table td { padding: 16px 18px; text-align: left; vertical-align: top; border-top: 1px solid var(--gh-line); }
.gb-table tbody th { font-weight: 700; white-space: nowrap; color: var(--gh-ink); }
.gb-table td { color: #2E3746; }
.gb-table tr.is-total th, .gb-table tr.is-total td { background: var(--accent-blue-soft); color: var(--primary); font-weight: 700; }
.gb-table td.is-num, .gb-table th.is-num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 600px) {
    .gb-table table { font-size: 14px; }
    .gb-table thead th, .gb-table tbody th, .gb-table td { padding: 12px; white-space: normal; }
}

/* 안내 상자 */
.gb-callout { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; padding: 18px 20px; border-radius: 16px; font-size: 15px; line-height: 1.7; }
.gb-callout > i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-style: normal; }
.gb-callout > div { display: flex; flex-direction: column; gap: 4px; }
.gb-callout b { font-size: 14px; }
.gb-callout--tip { background: var(--accent-blue-soft); color: #22406E; }
.gb-callout--tip > i { background: var(--primary); color: #fff; }
.gb-callout--note { background: var(--gray-50); color: var(--text-muted); box-shadow: inset 0 0 0 1px var(--gh-line); }
.gb-callout--note > i { background: var(--gray-200); color: var(--text-muted); }
.gb-callout--warn { background: var(--accent-orange-soft); color: #7A4B05; }
.gb-callout--warn > i { background: var(--accent-orange); color: #fff; }
.gb-callout--example { background: var(--gh-lav); color: #3F3170; }
.gb-callout--example > i { background: var(--secondary); color: #fff; }
.gb-callout__tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.gb-callout__tags span { font-size: 13px; font-weight: 600; padding: 5px 10px; border-radius: 8px; background: #fff; }

/* 타임라인 */
.gb-timeline { display: flex; flex-direction: column; }
.gb-timeline li { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 20px; padding-bottom: 28px; }
.gb-timeline li:last-child { padding-bottom: 0; }
.gb-timeline li:not(:last-child)::before { content: ''; position: absolute; left: 19.5px; top: 44px; bottom: 4px; width: 1px; background: linear-gradient(var(--gray-300), var(--gray-200)); }
.gb-timeline__no { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 700; color: var(--primary); background: #fff; box-shadow: inset 0 0 0 1.5px rgba(var(--primary-rgb), .35); font-variant-numeric: tabular-nums; }
.gb-timeline li > div { display: flex; flex-direction: column; gap: 6px; padding-top: 8px; }
.gb-timeline strong { font-size: 17px; letter-spacing: -.02em; }
.gb-timeline p { font-size: 15px; line-height: 1.7; color: var(--text-muted); }

/* 단계 카드 (가로) */
.gb-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.gb-steps li { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 20px; border-radius: 16px; background: var(--gh-soft); }
.gb-steps li:not(:last-child)::after { content: '→'; position: absolute; right: -11px; top: 50%; translate: 0 -50%; z-index: 1; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: 0 0 0 1px var(--gh-line); font-size: 11px; color: var(--text-sub); }
.gb-steps span { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .06em; }
.gb-steps strong { font-size: 16px; letter-spacing: -.02em; }
.gb-steps p { font-size: 14px; line-height: 1.6; color: var(--text-muted); }

/* 항목 카드 (제목 + 정의 목록) */
.gb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gb-card { display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: 16px; box-shadow: inset 0 0 0 1px var(--gh-line); }
.gb-card__title { display: flex; align-items: center; gap: 10px; }
.gb-card__title span { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--gh-ink); color: #fff; font-size: 12px; font-weight: 700; }
.gb-card__title h3 { font-size: 17px; letter-spacing: -.02em; }
.gb-card dl { display: flex; flex-direction: column; gap: 10px; }
.gb-card dl div { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 14px; line-height: 1.6; }
.gb-card dt { font-weight: 600; color: var(--gh-ink); }
.gb-card dd { color: var(--text-muted); }

/* 방법 선택 (본문 내 이동 카드) */
.gb-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gb-route { display: flex; flex-direction: column; gap: 8px; padding: 24px; border-radius: 18px; text-align: left; background: #fff; box-shadow: inset 0 0 0 1px var(--gh-line), var(--gh-shadow-rest); }
.gb-route span { font-size: 12px; font-weight: 700; color: var(--primary); }
.gb-route strong { font-size: 18px; letter-spacing: -.02em; }
.gb-route p { font-size: 14px; color: var(--text-muted); }
.gb-route b { margin-top: 8px; font-size: 14px; color: var(--primary); }

/* 말풍선 예시 */
.gb-quote { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border-radius: 20px 20px 20px 6px; background: var(--gh-ink); color: #fff; font-size: 16px; line-height: 1.7; max-width: 560px; }
.gb-quote small { font-size: 12px; font-weight: 700; letter-spacing: .08em; color: #9DB8E8; }

/* 메뉴 경로 */
.gb-path { display: flex; flex-direction: column; gap: 10px; padding: 18px 20px; border-radius: 16px; background: var(--gray-50); box-shadow: inset 0 0 0 1px var(--gh-line); }
.gb-path small { font-size: 13px; color: var(--text-sub); }
.gb-path ol { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gb-path li { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 700; }
.gb-path li + li::before { content: '›'; color: var(--text-desc); font-weight: 400; }

/* 이동 버튼: 다른 가이드(보조) / 실제 화면(주) */
.gb-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.gb-action { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; border-radius: 14px; font-size: 15px; font-weight: 600; }
.gb-action--guide { background: var(--gh-soft); color: var(--gh-ink); }
.gb-action--go { background: var(--primary); color: #fff; }
.gb-action small { font-weight: 500; opacity: .7; }
.gb-actions__hint { font-size: 13px; color: var(--text-sub); }

/* 체크리스트 */
.gb-check { display: flex; flex-direction: column; gap: 16px; padding: 24px; border-radius: 20px; background: var(--gh-soft); }
.gb-check__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.gb-check__head div { display: flex; flex-direction: column; gap: 4px; }
.gb-check__head small { font-size: 13px; font-weight: 600; color: var(--primary); }
.gb-check__head strong { font-size: 17px; }
.gb-check__count { font-size: 14px; font-weight: 700; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.gb-check__bar { height: 6px; border-radius: 3px; background: #fff; overflow: hidden; }
.gb-check__bar span { display: block; height: 100%; width: 0; background: var(--accent-green); border-radius: inherit; transition: width .4s var(--gh-ease); }
.gb-check ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.gb-check label { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 12px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px transparent; cursor: pointer; height: 100%; }
.gb-check input { appearance: none; width: 26px; height: 26px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--gray-300); display: grid; place-items: center; cursor: pointer; transition: all var(--ease-default); }
.gb-check input::after { content: '✓'; font-size: 13px; font-weight: 800; color: #fff; transform: scale(0); transition: transform .3s var(--gh-ease); }
.gb-check input:checked { background: var(--accent-green); box-shadow: none; }
.gb-check input:checked::after { transform: scale(1); }
.gb-check label div { display: flex; flex-direction: column; gap: 4px; padding-top: 2px; }
.gb-check label strong { font-size: 15px; letter-spacing: -.01em; }
.gb-check label span { font-size: 14px; line-height: 1.55; color: var(--text-muted); }
.gb-check input:checked + div strong { color: var(--text-sub); text-decoration: line-through; text-decoration-color: var(--gray-300); }
.gb-check__note { font-size: 13px; color: var(--text-sub); }

/* 접이식 */
.gb-disc { border-radius: 16px; box-shadow: inset 0 0 0 1px var(--gh-line); }
.gb-disc summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-size: 16px; font-weight: 600; cursor: pointer; list-style: none; }
.gb-disc summary::-webkit-details-marker { display: none; }
.gb-disc summary::after { content: '+'; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--gh-soft); font-size: 18px; font-weight: 400; transition: transform .3s var(--gh-ease); }
.gb-disc[open] summary::after { transform: rotate(45deg); }
.gb-disc__body { display: flex; flex-direction: column; gap: 16px; padding: 0 22px 22px; }

/* 그림 (1~2장) */
.gb-figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.gb-fig { display: flex; flex-direction: column; gap: 12px; }
.gb-fig__label { display: flex; flex-direction: column; gap: 2px; }
.gb-fig__label small { font-size: 12px; font-weight: 700; color: var(--primary); }
.gb-fig__label strong { font-size: 15px; }
.gb-fig img { border-radius: 14px; box-shadow: 0 0 0 1px var(--gh-line); background: var(--gh-soft); }
.gb-fig figcaption { font-size: 14px; line-height: 1.6; color: var(--text-sub); }

/* 문서 미리보기 카드 */
.gb-doc { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: center; padding: 20px; border-radius: 20px; background: var(--gh-lav); box-shadow: inset 0 0 0 1px transparent, var(--gh-shadow-rest); text-align: left; width: 100%; }
.gb-doc__thumb { aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: var(--shadow-card); rotate: -3deg; transition: rotate .4s var(--gh-ease); }
.gb-doc:hover .gb-doc__thumb { rotate: 0deg; }
.gb-doc__thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.gb-doc__body { display: flex; flex-direction: column; gap: 6px; }
.gb-doc__body small { font-size: 12px; font-weight: 700; color: #5B45A8; letter-spacing: .06em; }
.gb-doc__body strong { font-size: 18px; letter-spacing: -.02em; }
.gb-doc__body span { font-size: 14px; color: var(--text-muted); }
.gb-doc__body b { margin-top: 6px; font-size: 14px; color: #5B45A8; }

/* 금액 비교 */
.gb-compare { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gb-compare article { display: flex; flex-direction: column; gap: 12px; padding: 24px; border-radius: 18px; background: var(--gh-soft); }
.gb-compare article:last-child { background: var(--accent-blue-soft); }
.gb-compare small { font-size: 12px; font-weight: 700; color: var(--text-sub); letter-spacing: .04em; }
.gb-compare h3 { font-size: 19px; letter-spacing: -.02em; }
.gb-compare p { font-size: 14px; line-height: 1.65; color: var(--text-muted); }
.gb-formula { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.gb-formula span { font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 10px; background: #fff; }
.gb-formula i { font-style: normal; color: var(--text-desc); font-weight: 700; }
.gb-formula em { font-style: normal; color: var(--primary); }


/* 가이드 끝: 피드백 + 이전·다음 가이드 */
.gd__end { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; border-top: 1px solid var(--gh-line); }
.gd__vote { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 20px 24px; border-radius: 16px; background: var(--gray-50); }
.gd__vote strong { font-size: 15px; }
.gd__vote div { display: flex; gap: 8px; }
.gd__vote button { height: 40px; padding: 0 16px; border-radius: var(--radius-full); background: #fff; box-shadow: inset 0 0 0 1px var(--gh-line); font-size: 14px; font-weight: 600; }
.gd__vote button[aria-pressed="true"] { background: var(--primary); color: #fff; box-shadow: none; }
.gd__siblings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gd__sibling { display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: 20px; box-shadow: inset 0 0 0 1px var(--gh-line), var(--gh-shadow-rest); text-align: left; }
.gd__sibling--prev { flex-direction: row-reverse; text-align: right; }
.gd__sibling img { width: 96px; flex-shrink: 0; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 12px; }
.gd__sibling div { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gd__sibling small { font-size: 12px; font-weight: 700; color: var(--primary); letter-spacing: .06em; }
.gd__sibling strong { font-size: 16px; letter-spacing: -.02em; }
.gd__sibling span { font-size: 13px; color: var(--text-sub); }
.gd__sibling > i { font-style: normal; font-size: 20px; color: var(--primary); }

/* 문서 미리보기 다이얼로그 */
.gd-doc { width: min(760px, 100vw - 48px); max-height: calc(100dvh - 48px); margin: auto; padding: 0; border: 0; border-radius: 20px; overflow: hidden; }
.gd-doc[open] { display: flex; flex-direction: column; }
.gd-doc::backdrop { background: rgba(16, 26, 46, .6); }
.gd-doc__scroll { overflow-y: auto; padding: 24px; background: var(--gray-100); }
.gd-doc__scroll img { border-radius: 8px; box-shadow: var(--shadow-card); margin-inline: auto; }

/* ---------- 반응형 ---------- */
@media (max-width: 1023px) {
  .gd__layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 24px 56px; }
  .gd__toc { position: sticky; top: 0; z-index: 2; flex-direction: row; overflow-x: auto; gap: 6px; margin-inline: -24px; padding: 12px 24px; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--gh-line); scrollbar-width: none; }
  .gd__toc small { display: none; }
  .gd__toc a { flex-shrink: 0; white-space: nowrap; background: var(--gray-50); }
  .gd__article { padding-top: 24px; }
}
@media (max-width: 767px) {

  .gd { width: 100vw; height: 100dvh; border-radius: 0; }
  .gd__bar { padding: 10px 12px 10px 20px; }
  .gd__layout { padding: 0 16px 48px; }
  .gd__toc { margin-inline: -16px; padding-inline: 16px; }
  .gd__article { gap: 48px; }
  .gd__cover { aspect-ratio: 2 / 1; border-radius: 14px; }
  .gd__lead { font-size: 16px; }
  .gb-section > h2 { font-size: 21px; }
  .gb-cards, .gb-routes, .gb-compare, .gb-check ul { grid-template-columns: minmax(0, 1fr); }
  .gb-steps { grid-template-columns: minmax(0, 1fr); }
  .gb-steps li:not(:last-child)::after { content: '↓'; right: 50%; top: auto; bottom: -11px; translate: 50% 0; }
  .gb-doc { grid-template-columns: 88px minmax(0, 1fr); gap: 16px; }
  .gd__siblings { grid-template-columns: minmax(0, 1fr); }
  .gd__sibling img { display: none; }
  .gd-doc { width: 100vw; max-height: 100dvh; border-radius: 0; }
}
@media (max-width: 1023px) { .gb-section { scroll-margin-top: 72px; } }

/* ---------- 스크롤 등장 — 한 번만, 짧게 ---------- */
[data-reveal] { opacity: 0; translate: 0 28px; transition: opacity .8s var(--gh-ease), translate .8s var(--gh-ease); transition-delay: calc(var(--i) * 80ms); }
[data-reveal].is-in { opacity: 1; translate: 0 0; }
/* 추천 카드는 hover 전환도 가진다 — 등장 지연은 opacity·translate 에만 건다. */
.gh-fcard[data-reveal] { transition: opacity .8s var(--gh-ease) calc(var(--i) * 80ms), translate .8s var(--gh-ease) calc(var(--i) * 80ms), transform var(--gh-t), box-shadow var(--gh-t), background-color var(--gh-t), color var(--gh-t); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; translate: none; transition: none; }
  .gh-stage__art img { animation: none; }
}

/* ---------- Hover — 카드는 뜨고, 버튼은 뜨지 않는다 ---------- */
.gh-fcard, .gh-card, .gh-track button, .gh-ask__links a, .gb-route, .gb-doc, .gd__sibling, .gb-check label,
.gh-btn, .gb-action, .gh-chip, .gd__toc a, .gd__icon {
  transition: transform var(--gh-t), box-shadow var(--gh-t), background-color var(--gh-t), color var(--gh-t);
}
.gh-btn > span, .gb-action > span, .gh-fcard__cta span, .gh-card__foot > i, .gh-ask__links a span, .gd__sibling > i { transition: transform var(--gh-t), background-color var(--gh-t), color var(--gh-t), box-shadow var(--gh-t); }
.gh-fcard__visual img, .gd__sibling img { transition: transform .9s var(--gh-ease); }

@media (hover: hover) {
  .gh-fcard:hover, .gh-card:hover, .gb-route:hover, .gb-doc:hover, .gd__sibling:hover { transform: translateY(-4px); box-shadow: var(--gh-ring), var(--gh-shadow); }
  .gh-track button:hover { transform: translateY(-4px); background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(157, 184, 232, .45); }
  .gb-check label:hover { box-shadow: var(--gh-ring); }

  .gh-fcard:hover .gh-fcard__visual img, .gd__sibling:hover img { transform: scale(1.03); }
  .gh-btn:hover > span, .gb-action:hover > span, .gh-fcard:hover .gh-fcard__cta span, .gh-card--ask:hover .gh-card__foot > i,
  .gh-ask__links a:hover span, .gd__sibling:hover > i { transform: translateX(4px); }
  .gd__sibling--prev:hover > i { transform: translateX(-4px); }
  .gh-fcard:hover .gh-fcard__cta span { background: var(--primary); color: #fff; box-shadow: none; }
  .gh-card--ask:hover .gh-card__foot > i { color: var(--primary); }

  .gh-btn--primary:hover, .gb-action--go:hover { background: var(--gh-ink); }
  .gh-btn--ghost:hover, .gh-ask__links a:hover { color: var(--gh-ink); box-shadow: inset 0 0 0 1px rgba(22, 34, 58, .45); }
  .gh-btn--line:hover { box-shadow: inset 0 0 0 1px #fff; }
  .gb-action--guide:hover { background: var(--gray-100); }
  .gh-chip:not([aria-pressed="true"]):hover { color: var(--gh-ink); background: var(--gh-soft); }
}
.gh-fcard:active, .gh-card:active, .gh-track button:active, .gb-route:active, .gb-doc:active, .gd__sibling:active { transform: translateY(-2px) scale(.99); transition-duration: .12s; }
.gh-btn:active, .gb-action:active, .gh-chip:active { transform: scale(.97); transition-duration: .12s; }

/* ---------- 전체 가이드 쪽 나누기 (한 쪽 9개, 전부 그려 둔 목록을 JS 가 나눈다) ---------- */
.gh-pager { display: flex; justify-content: center; gap: 6px; }
.gh-pager[hidden] { display: none; }
.gh-pager button { min-width: 40px; height: 40px; padding: 0 12px; border-radius: var(--radius-full); display: grid; place-items: center; font-size: 15px; font-weight: 600; color: var(--text-muted); transition: background-color var(--gh-t), color var(--gh-t), box-shadow var(--gh-t); }
.gh-pager button[aria-label] { box-shadow: inset 0 0 0 1px var(--gh-line); font-size: 13px; }
.gh-pager button[aria-current="page"] { background: var(--gh-ink); color: #fff; }
.gh-pager button:disabled { opacity: .35; cursor: default; }
@media (hover: hover) {
  .gh-pager button:not([aria-current]):not(:disabled):hover { background: var(--gh-soft); color: var(--gh-ink); }
}
.gh-grid.is-paging > li:not([hidden]) { animation: gh-page-in .5s var(--gh-ease) both; }
@keyframes gh-page-in { from { opacity: 0; translate: 0 12px; } }
@media (prefers-reduced-motion: reduce) { .gh-grid.is-paging > li { animation: none; } }
