/* 가이드 페이지 디자인 — 앱과 같은 색을 쓰되, 읽기에 맞춰 글자를 키웠다. */

:root {
  --mint: #087F68;
  --mint-dk: #066956;
  --mint-lt: #E9F8F3;
  --navy: #14263A;
  --slate: #42566C;
  --gray: #6B7C8E;
  --line: #E3EAF0;
  --bg: #FFFFFF;
  --soft: #F6F9FB;
  --tk-A: #087F68;
  --tk-B: #276A93;
  --tk-C: #956515;
  --r: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Malgun Gothic', sans-serif;
  color: var(--navy);
  background: var(--bg);
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

a { color: var(--mint); text-decoration: none; }
/* 밑줄은 글자 아래로 살짝 내리고 g·y 꼬리에서 끊기지 않게 이어 긋는다.
   기본값(skip-ink: auto)이면 꼬리마다 구멍이 나 '깨진 줄'처럼 보인다. */
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-skip-ink: none; }
img { max-width: 100%; height: auto; }

/* ── 위쪽 메뉴 ───────────────────────────────────────────── */
.gnb {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 24px;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { font-size: 20px; font-weight: 900; color: var(--navy); letter-spacing: -.5px; }
/* 로고에는 밑줄을 긋지 않는다 — 900 굵기라 줄이 글자에 붙어 지저분해 보인다. */
.brand:hover { text-decoration: none; opacity: .78; }
.brand b { color: var(--mint); }
.brand i { font-style: normal; font-size: 13px; font-weight: 700; color: var(--gray); margin-left: 4px; }
.gnb nav { display: flex; align-items: center; gap: 4px; }
.gnb nav a {
  padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 700; color: var(--slate);
}
.gnb nav a:hover { background: var(--soft); text-decoration: none; }
.gnb nav a.on { color: var(--mint); background: var(--mint-lt); }
.gnb nav a.cta {
  margin-left: 6px; background: var(--mint); color: #fff;
  box-shadow: 0 6px 18px rgba(8, 127, 104, .22);
}
.gnb nav a.cta:hover { background: var(--mint-dk); }

/* ── 목록 페이지 ─────────────────────────────────────────── */
.list { max-width: 1080px; margin: 0 auto; padding: 48px 24px 72px; }
.list .hd { text-align: center; margin-bottom: 48px; }
.list .hd h1 { font-size: 38px; font-weight: 900; letter-spacing: -1px; }
.list .hd p { margin-top: 12px; font-size: 16px; color: var(--slate); }
.grp { margin-bottom: 52px; }
.gh { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.gh h2 { font-size: 22px; font-weight: 900; display: flex; align-items: center; gap: 9px; }
.gh p { font-size: 14px; color: var(--gray); flex: 1; }
.gh a { font-size: 14px; font-weight: 700; white-space: nowrap; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.tk-A { background: var(--tk-A); }
.dot.tk-B { background: var(--tk-B); }
.dot.tk-C { background: var(--tk-C); }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: 20px; }
.card {
  display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
  background: #fff; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.card:hover {
  transform: translateY(-3px); border-color: #CBD9E3;
  box-shadow: 0 14px 34px rgba(20, 38, 58, .10); text-decoration: none;
}
.card img { display: block; width: 100%; aspect-ratio: 1200/630; object-fit: cover; background: var(--soft); }
.cb { padding: 16px 18px 18px; }
.cb h3 { margin: 9px 0 7px; font-size: 16px; font-weight: 800; line-height: 1.45; color: var(--navy); }
.cb p {
  font-size: 13.5px; color: var(--gray); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.cb .rd { display: block; margin-top: 10px; font-size: 12px; color: #94A5B4; font-weight: 600; }

.tag {
  display: inline-block; padding: 3px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800; color: #fff;
}
.tag.tk-A { background: var(--tk-A); }
.tag.tk-B { background: var(--tk-B); }
.tag.tk-C { background: var(--tk-C); }

/* ── 글 페이지 ───────────────────────────────────────────── */
.art { max-width: 780px; margin: 0 auto; padding: 34px 24px 72px; }
.crumb { font-size: 13px; color: var(--gray); margin-bottom: 16px; }
.crumb a { color: var(--gray); font-weight: 600; }
.art > h1 { font-size: 34px; font-weight: 900; line-height: 1.38; letter-spacing: -1px; }
.art .lede { margin-top: 14px; font-size: 17px; color: var(--slate); line-height: 1.72; }
.art .meta {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: 18px 0 24px; font-size: 13px; color: var(--gray); font-weight: 600;
}
.art .meta span:not(.tag)::before { content: '·'; margin-right: 10px; color: #C3CFD9; }
.art .meta .tag + span::before { content: none; }
.hero { width: 100%; border-radius: var(--r); border: 1px solid var(--line); display: block; }

.toc {
  margin: 30px 0 8px; padding: 20px 24px;
  background: var(--soft); border: 1px solid var(--line); border-radius: var(--r);
}
.toc b { display: block; font-size: 14px; margin-bottom: 10px; color: var(--navy); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 14.5px; margin: 5px 0; color: var(--slate); }
.toc a { color: var(--slate); font-weight: 600; }
.toc a:hover { color: var(--mint); }

/* 본문 */
.doc { font-size: 16.5px; }
.doc h2 {
  margin: 52px 0 16px; padding-top: 14px; font-size: 25px; font-weight: 900;
  line-height: 1.45; letter-spacing: -.5px; border-top: 2px solid var(--line);
}
.doc h3 { margin: 34px 0 12px; font-size: 19px; font-weight: 800; line-height: 1.5; }
.doc h4 { margin: 24px 0 8px; font-size: 16.5px; font-weight: 800; color: var(--slate); }
.doc p { margin: 15px 0; }
.doc ul, .doc ol { margin: 15px 0 15px 22px; }
.doc li { margin: 7px 0; }
.doc li > ul, .doc li > ol { margin: 6px 0 6px 18px; }
.doc strong { font-weight: 800; }
.doc code {
  padding: 2px 6px; border-radius: 6px; background: #EEF3F7;
  font-family: ui-monospace, 'Consolas', monospace; font-size: .89em; color: #24506B;
}
.doc blockquote {
  margin: 22px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--mint);
  color: var(--slate);
}
.doc blockquote p { margin: 6px 0; }
.doc figure { margin: 28px 0; }
.doc figure img { width: 100%; border-radius: 12px; border: 1px solid var(--line); display: block; }
/* 휴대폰 화면 캡처(shots/m-*)는 세로로 길어 본문 폭을 다 쓰면 부담스럽다 — 폭을 줄여 가운데 둔다. */
.doc figure img[src*="/shots/m-"] { max-width: 300px; margin: 0 auto; }
.doc figcaption {
  margin-top: 10px; font-size: 13px; color: var(--gray); text-align: center; line-height: 1.6;
}
.doc hr { margin: 40px 0; border: 0; border-top: 1px solid var(--line); }

/* 표 */
.tw { overflow-x: auto; margin: 24px 0; -webkit-overflow-scrolling: touch; }
.tw table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.tw th, .tw td { padding: 11px 14px; border: 1px solid var(--line); text-align: left; line-height: 1.6; }
.tw th { background: var(--soft); font-weight: 800; white-space: nowrap; }
.tw tbody tr:nth-child(even) { background: #FBFDFE; }

/* 상자 */
.box { margin: 26px 0; padding: 20px 22px; border-radius: var(--r); font-size: 15.5px; }
.box p { margin: 8px 0; }
.box p:first-child { margin-top: 0; }
.box p:last-child { margin-bottom: 0; }
.box ul, .box ol { margin: 8px 0 8px 20px; }
.box.tip { background: var(--mint-lt); border: 1px solid #BEE7DA; }
.box.warn { background: #FBF1DB; border: 1px solid #EBD8AE; }
.box.cta {
  background: linear-gradient(135deg, #0B8C73, #0A6E5C); color: #fff; text-align: center;
  box-shadow: 0 10px 30px rgba(8, 127, 104, .22);
}
.box.cta strong { color: #fff; }
.box.cta a {
  display: inline-block; margin-top: 12px; padding: 11px 22px; border-radius: 10px;
  background: #fff; color: var(--mint); font-weight: 800; font-size: 15px;
}
.box.cta a:hover { text-decoration: none; background: #F0FBF7; }

/* 단계 */
.steps { counter-reset: st; margin: 26px 0; padding: 0; list-style: none; }
.steps li {
  counter-increment: st; position: relative; padding: 0 0 18px 46px;
  border-left: 2px solid var(--line); margin-left: 15px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  content: counter(st); position: absolute; left: -16px; top: -2px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--mint); color: #fff;
  font-size: 14px; font-weight: 800; display: grid; place-items: center;
}
.steps li b { display: block; font-size: 16.5px; font-weight: 800; line-height: 1.5; }
.steps li span { display: block; margin-top: 3px; font-size: 15px; color: var(--slate); }

/* 그림(SVG) */
.dg { margin: 30px 0; text-align: center; }
.dg svg { max-width: 100%; height: auto; }
.dg .cap { margin-top: 10px; font-size: 13px; color: var(--gray); }

/* 이어 읽기 */
.rel { margin-top: 64px; padding-top: 34px; border-top: 2px solid var(--line); }
.rel h2 { font-size: 21px; font-weight: 900; margin-bottom: 20px; }

/* ── 아래쪽 ──────────────────────────────────────────────── */
.gft { border-top: 1px solid var(--line); background: var(--soft); }
.ftcta {
  max-width: 780px; margin: 0 auto; padding: 56px 24px 48px; text-align: center;
}
.ftcta h2 { font-size: 26px; font-weight: 900; letter-spacing: -.6px; }
.ftcta p { margin-top: 10px; font-size: 15.5px; color: var(--slate); }
.ftcta a {
  display: inline-block; margin-top: 20px; padding: 14px 30px; border-radius: 12px;
  background: var(--mint); color: #fff; font-weight: 800; font-size: 16px;
  box-shadow: 0 10px 26px rgba(8, 127, 104, .24);
}
.ftcta a:hover { background: var(--mint-dk); text-decoration: none; }
.ftin {
  max-width: 1080px; margin: 0 auto; padding: 26px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
}
.ftl b { font-size: 16px; font-weight: 900; }
.ftl span { display: block; font-size: 13px; color: var(--gray); }
.ftin nav { display: flex; gap: 16px; flex-wrap: wrap; }
.ftin nav a { font-size: 13.5px; color: var(--slate); font-weight: 600; }
.cp { padding: 0 24px 26px; text-align: center; font-size: 12px; color: #9AAAB8; }

/* ── 좁은 화면 ───────────────────────────────────────────── */
@media (max-width: 720px) {
  .gnb { padding: 11px 16px; gap: 8px; }
  .brand { font-size: 17px; }
  .brand i { display: none; }
  .gnb nav { gap: 0; }
  .gnb nav a { padding: 7px 8px; font-size: 13px; }
  .gnb nav a.cta { padding: 8px 12px; }
  .art { padding: 24px 18px 56px; }
  .art > h1 { font-size: 26px; }
  .art .lede { font-size: 15.5px; }
  .doc { font-size: 16px; }
  .doc h2 { font-size: 21px; margin: 40px 0 14px; }
  .doc h3 { font-size: 17.5px; }
  .list { padding: 32px 18px 56px; }
  .list .hd h1 { font-size: 28px; }
  .cards { grid-template-columns: 1fr; }
  .ftcta { padding: 40px 18px 34px; }
  .ftcta h2 { font-size: 21px; }
  .steps li { padding-left: 40px; }
}

/* 네이버·다음 앱 내 브라우저에서 글자 크기가 멋대로 커지는 것 방지 */
body { -webkit-text-size-adjust: 100%; }
