/* 이용 가이드(/guide, UR-100). 공개 문서 페이지라 JS 없이 이 파일 하나로 완결한다.
   토큰은 signup.css 와 같은 제품 팔레트를 쓴다. */
:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --border: #e5e7eb;
  --ink: #111827;
  --text: #374151;
  --muted: #6b7280;
  --primary: #3446a8;
  --primary-soft: #eef1ff;
  --success: #147a4a;
  --success-soft: #ecfdf3;
  --danger: #b4233a;
  --danger-soft: #fff1f2;
  --radius-sm: 8px;
  --radius-md: 12px;
  font-family: Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--primary);
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 20;
}

.skip-link:focus { left: 0; }

.guide-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.guide-brand { display: flex; align-items: center; gap: 10px; }
.guide-logo { width: 34px; height: 34px; border-radius: 8px; }
.guide-brand strong { display: block; color: var(--ink); font-size: 16px; }
.guide-brand-sub { font-size: 12px; color: var(--muted); }

.guide-header-links { display: flex; gap: 14px; }
.guide-header-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
}
.guide-header-links a:hover { background: var(--primary-soft); }
.guide-header-links a:focus-visible,
.guide-toc a:focus-visible,
.guide-footer a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.guide-main {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 24px 60px;
}

/* 가이드는 모듈이 늘수록 길어진다. 넓은 화면에서는 목차를 옆에 고정해 어디서든 원하는 절로
   바로 갈 수 있게 한다 — 내용을 접지 않는 이유는 이 페이지가 Ctrl+F 와 인쇄로도 읽히기
   때문이고, 스크롤 위치를 따라 표시를 바꾸지 않는 이유는 이 페이지가 JS 없이 완결되기
   때문이다(UR-100). */
.guide-layout { display: block; }

@media (min-width: 1120px) {
  .guide-main { max-width: 1140px; }
  .guide-layout {
    display: grid;
    grid-template-columns: 176px minmax(0, 1fr);
    align-items: start;
    gap: 48px;
  }
  .guide-content { min-width: 0; max-width: 860px; }
  /* 옆에 고정 목차가 있으면 상단 목차는 같은 말을 두 번 하는 것이다. */
  .guide-hero .guide-toc { display: none; }
}

.guide-sidenav {
  display: none;
  position: sticky;
  top: 32px;
  gap: 2px;
}

@media (min-width: 1120px) {
  .guide-sidenav { display: grid; }
}

.guide-sidenav-title {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.guide-sidenav a {
  border-radius: var(--radius-sm);
  padding: 7px 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.guide-sidenav a:hover { background: var(--primary-soft); color: var(--primary); }
.guide-sidenav a:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.guide-hero h1 {
  color: var(--ink);
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin: 0 0 12px;
  text-wrap: balance;
}

.guide-hero > p { margin: 0 0 20px; max-width: 62ch; }

.guide-toc { display: flex; flex-wrap: wrap; gap: 8px; }
.guide-toc a {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-soft);
  border-radius: 999px;
  padding: 6px 14px;
  text-decoration: none;
}

.guide-section { margin-top: 48px; }
.guide-section h2 {
  color: var(--ink);
  font-size: 22px;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  padding-top: 12px;
  border-top: 2px solid var(--primary);
  display: inline-block;
}
.guide-section > p { margin: 0 0 16px; max-width: 68ch; }

.guide-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  background: #eef0f4;
  color: var(--muted);
  vertical-align: 1px;
}
.guide-badge.ok { background: var(--success-soft); color: var(--success); }
.guide-badge.warn { background: var(--danger-soft); color: var(--danger); }

.guide-cards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
/* 카드 묶음 바로 아래 문단이 카드에 붙어 보였다(2026-09-29 QA). */
.guide-cards + p {
  margin-top: 16px;
}

.guide-cards li {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}
.guide-cards strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }
.guide-cards span { font-size: 13.5px; color: var(--muted); line-height: 1.55; }

.guide-note {
  background: var(--primary-soft);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 14px;
}

.guide-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  font-size: 14px;
}
.guide-table th, .guide-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.guide-table thead th { background: #f2f4f8; color: var(--ink); font-size: 13px; }
.guide-table tbody tr:last-child td { border-bottom: none; }
.guide-table td:first-child { font-weight: 700; color: var(--ink); white-space: nowrap; }

/* 표가 좁은 화면에서 페이지를 밀지 않도록 자체 스크롤 컨테이너로 만든다 */
.guide-table-wrap { overflow-x: auto; }

.guide-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.guide-steps > li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 20px 18px 58px;
  position: relative;
}
.guide-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.guide-steps h3 { margin: 0 0 6px; font-size: 16px; color: var(--ink); }
.guide-steps h3 em, .guide-steps p em, .guide-faq em {
  font-style: normal;
  font-weight: 700;
  color: var(--primary);
}
.guide-steps p { margin: 0; font-size: 14px; max-width: 66ch; }
.guide-steps p + p { margin-top: 8px; }
.guide-steps.compact > li { padding: 14px 18px 14px 58px; font-size: 14px; }
.guide-steps.compact > li::before { top: 14px; }
.guide-steps.compact strong { color: var(--ink); }

.guide-faq { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.guide-faq > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.guide-faq dt { font-weight: 700; color: var(--ink); font-size: 15px; margin-bottom: 6px; }
.guide-faq dd { margin: 0; font-size: 14px; max-width: 70ch; }

.guide-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--muted);
}
.guide-footer nav { display: flex; gap: 16px; }
.guide-footer a { color: var(--primary); font-weight: 600; text-decoration: none; }

@media (max-width: 720px) {
  .guide-main { padding: 28px 16px 48px; }
  .guide-hero h1 { font-size: 26px; }
  .guide-cards, .guide-cards.three { grid-template-columns: 1fr; }
  .guide-footer { flex-direction: column; align-items: flex-start; }
}

/* 화면 캡처. 브라우저 창 안에 든 것처럼 보이게 해서 본문 글과 그림을 눈으로 구분한다.
   이미지 자체에는 창 장식을 굽지 않는다 — 장식이 필요 없어지면 CSS 만 고치면 되고,
   scripts/capture-guide-shots.mjs 가 다시 만드는 그림은 순수한 화면으로 남는다. */
.guide-shot {
  margin: 14px 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--surface);
}
.guide-shot::before {
  content: "";
  display: block;
  height: 26px;
  border-bottom: 1px solid var(--border);
  background-color: var(--bg);
  background-repeat: no-repeat;
  background-image:
    radial-gradient(circle 4px at 14px 13px, var(--border) 98%, transparent 100%),
    radial-gradient(circle 4px at 30px 13px, var(--border) 98%, transparent 100%),
    radial-gradient(circle 4px at 46px 13px, var(--border) 98%, transparent 100%);
}
/* width·height 속성이 캡처한 실제 크기라, 본문보다 좁은 그림은 그 크기 그대로 또렷하게 나온다.
   넓은 그림만 본문 폭에 맞춰 줄인다 — 세로 상한을 두면 좁고 긴 그림의 글자가 뭉개진다. */
.guide-shot img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}
.guide-shot figcaption {
  padding: 8px 12px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--muted);
  background: var(--bg);
}

/* 폰 캡처 둘을 나란히 — 세로 그림은 한 줄에 하나면 너무 길다. */
.guide-shot-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.guide-shot-row .guide-shot img {
  max-width: 300px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .guide-shot-row {
    grid-template-columns: 1fr;
  }
}

/* 개인정보 처리방침(privacy.html) — 가이드와 같은 틀을 쓰고, 사실 목록과 초안 안내만 더한다(UR-154). */
.privacy-main h1 { color: var(--ink); font-size: 28px; margin: 0 0 12px; }
.privacy-main .guide-section:first-of-type { margin-top: 24px; }
.privacy-main ul { padding-left: 1.2em; line-height: 1.7; }
.privacy-main li { margin: 0 0 6px; }
.privacy-facts { display: grid; gap: 0; margin: 12px 0; border-top: 1px solid var(--line, #e3e7ef); }
.privacy-facts > div { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line, #e3e7ef); }
.privacy-facts dt { font-weight: 700; color: var(--ink); }
.privacy-facts dd { margin: 0; }
@media (max-width: 560px) { .privacy-facts > div { grid-template-columns: 1fr; gap: 2px; } }
[data-company] { background: #fff3c4; border-radius: 4px; padding: 0 4px; }
