/* 무료 가이드 UI 정리 (11/23) — 글 내용은 그대로, 보이는 모양만 바꾼다.
   1) 휴대폰에서 상자 안의 상자를 없애 글 폭을 넓힌다
   2) 제목·본문·작은 설명의 크기 차이를 분명하게
   3) 목차·카드·신청 상자를 손가락으로 누르기 쉽게 */

/* ── 읽은 만큼 차오르는 줄 (지원 브라우저만) ── */
@supports (animation-timeline:scroll()){
  body:has(.doc .toc)::before{content:"";position:fixed;top:0;left:0;right:0;height:3px;z-index:60;background:#3182f6;transform-origin:0 50%;transform:scaleX(0);animation:g-read linear both;animation-timeline:scroll(root)}
  @keyframes g-read{to{transform:scaleX(1)}}
}

/* ── 머리 ── */
.doc .label{font-size:14px;font-weight:700;color:#3182f6;margin-bottom:8px}
.doc h1{font-size:clamp(28px,4.4vw,40px);font-weight:800;line-height:1.28;letter-spacing:-.035em;color:#191f28;word-break:keep-all}
.g-meta{gap:6px;margin:14px 0 4px}
.g-meta span{font-size:12.5px;font-weight:700;color:#4e5968;background:#f2f4f6;padding:5px 10px}
.g-meta span:first-child{color:#1b64da;background:#e8f3ff}
.doc .lead{font-size:17px;color:#4e5968;line-height:1.75;margin-top:16px;word-break:keep-all}

/* ── 목차: 줄마다 누르기 쉬운 칸 ── */
.toc{background:#f9fafb;border:1px solid #eef0f3;border-radius:18px;padding:16px 8px 8px;margin:24px 0 8px}
.toc b{font-size:13px;font-weight:700;color:#8b95a1;margin:0 12px 6px;letter-spacing:0}
.toc ol{list-style:none;padding:0;margin:0;counter-reset:toc;display:block}
.toc li{counter-increment:toc;margin:0}
.doc .toc a{display:flex;align-items:center;gap:12px;min-height:48px;padding:6px 12px;border-radius:12px;color:#333d4b;font-weight:600;font-size:15.5px;text-decoration:none;line-height:1.45}
.doc .toc a::before{content:counter(toc);flex:none;width:24px;height:24px;border-radius:8px;background:#e8f3ff;color:#1b64da;font-size:12.5px;font-weight:800;display:grid;place-items:center}
.doc .toc a::after{content:"";margin-left:auto;flex:none;width:7px;height:7px;border-right:2px solid #b0b8c1;border-bottom:2px solid #b0b8c1;transform:rotate(-45deg)}
.doc .toc a:hover,.doc .toc a:active{background:#f2f4f6}

/* ── 본문 ── */
.doc h2{font-size:22px;font-weight:800;color:#191f28;margin-top:52px;margin-bottom:10px;padding-top:28px;border-top:1px solid #f2f4f6;word-break:keep-all}
.doc h3{word-break:keep-all}
.doc p,.doc li{color:#333d4b;word-break:keep-all}
.doc .muted,.doc p.muted{color:#6b7684;font-size:14px}
.doc :target{scroll-margin-top:84px}

/* 위험 신호 카드: 테두리 대신 왼쪽 색 띠 */
.sig{border:0;border-radius:16px;background:#fff6f7;padding:18px 18px 16px 20px;margin:12px 0;position:relative;overflow:hidden}
.sig::before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:#f04452}
.sig h3{font-size:17px;font-weight:800;line-height:1.45;color:#191f28;margin:0 0 8px}
.sig h3 em{color:#d22030}
.sig p{color:#4e5968;font-size:15.5px;line-height:1.72}
.sig .src{display:inline-block;margin-top:10px;font-size:12.5px;color:#6b7684;background:rgba(255,255,255,.8);border-radius:8px;padding:4px 8px;line-height:1.5}

/* 번호 목록 */
.q li{padding:16px 4px 16px 50px;border-bottom:1px solid #f2f4f6}
.q li::before{left:4px;top:16px;width:30px;height:30px}
.q li b{font-size:16px;color:#191f28}
.q li span{color:#4e5968}

.tip{background:#f2f4f6;border-radius:14px;padding:14px 16px;color:#333d4b}
.where li{border:0;background:#f9fafb;border-radius:14px}

/* ── 이메일 신청 상자 ── */
.gate{background:#fff;border:1.5px solid #c5dcfd;border-radius:24px;padding:26px 22px 22px;box-shadow:0 18px 40px -24px rgba(49,130,246,.45)}
.doc .gate h2{border-top:0;padding-top:0;margin-top:0;font-size:21px}
.gate h2::before{content:"🔒";display:block;font-size:26px;margin-bottom:8px}
.gate p{color:#4e5968;font-size:15.5px}
.gate label.f{font-size:15px;margin:18px 0 8px}
.gate input[type=email]{min-height:52px;border-radius:14px;background:#f9fafb;border:1px solid #e5e8eb}
.gate input[type=email]:focus{background:#fff}
.ck{padding:12px;border-radius:14px;background:#f9fafb;margin:10px 0;font-size:15px}
.ck input{width:22px;height:22px;margin-top:1px}
.ck small{font-size:12.5px;line-height:1.6;margin-top:4px}
.gate .btn{min-height:54px;font-size:17px;border-radius:14px}
.gate form p.muted{color:#8b95a1!important;font-size:12.5px!important}

/* ── 마지막 상담 상자 ── */
.cta-box{border-radius:24px;padding:28px 22px}
.cta-box .btn{min-height:52px;width:100%;justify-content:center;border-radius:14px}

/* ── 가이드 목록(guides.html): 레이지오웬식 구조, 우리 파랑 ── */
.g-hero{margin:-4px -4px 0;background:#3182f6;border-radius:24px;padding:30px 22px 26px;text-align:center;color:#fff;position:relative;overflow:hidden}
.g-hero::after{content:"";position:absolute;right:-40px;top:-40px;width:140px;height:140px;border-radius:50%;background:rgba(255,255,255,.08)}
.g-tag{display:inline-block;transform:rotate(-3deg);background:#fff;color:#1b64da;font-size:13px;font-weight:800;letter-spacing:.14em;padding:6px 14px;border-radius:6px;box-shadow:0 4px 0 rgba(0,0,0,.12)}
.doc .g-hero h1{color:#fff;font-size:clamp(25px,6.6vw,38px);font-weight:900;line-height:1.32;letter-spacing:-.04em;margin:16px 0 0;word-break:keep-all}
.g-hero mark{background:#fff;color:#191f28;padding:0 6px;border-radius:4px;box-decoration-break:clone;-webkit-box-decoration-break:clone}
.doc .g-hero p{color:rgba(255,255,255,.9);font-size:15.5px;line-height:1.65;margin:14px auto 0;max-width:24em;word-break:keep-all}
.gl-count{margin:26px 2px 0!important;font-size:15px!important;color:#6b7684!important}
.gl-count b{font-size:20px;color:#191f28;margin-right:1px}
.gl{gap:12px;margin:12px 0 8px}
.doc a.gc{display:block;text-decoration:none;color:#191f28;border:1px solid #e5e8eb;border-radius:20px;padding:20px 20px 18px;background:#fff}
.doc a.gc:nth-child(even){background:#f4f8ff;border-color:#dce9fc}
.doc a.gc:hover,.doc a.gc:active{border-color:#3182f6;box-shadow:0 10px 26px -16px rgba(49,130,246,.6);transform:none}
.gc .chips{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.gc .chips span{font-size:12.5px;font-weight:700;line-height:1;padding:6px 10px;border-radius:999px}
.gc .chips .c1{border:1.5px solid #191f28;color:#191f28;background:#fff;padding:5px 10px}
.gc .chips .c2{color:#1b64da;background:#e8f3ff}
.doc a.gc h2{font-size:19px;font-weight:900;line-height:1.38;letter-spacing:-.03em;margin:12px 0 6px;padding:0;border:0;color:#191f28;word-break:keep-all}
.doc a.gc p{margin:0;font-size:15px;line-height:1.62;color:#6b7684;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.doc a.gc .n{display:block;margin-top:12px;font-size:13.5px;font-weight:500;color:#8b95a1;background:none;padding:0}
.soon{border:1.5px dashed #d1d6db;background:none;border-radius:20px;text-align:center;font-size:14.5px;color:#8b95a1;padding:18px}

/* ── 가이드 본문: 열기 전 화면 ── */
.doc h1+.g-meta{margin-top:14px}
.doc .lead{position:relative;background:#fff;border:1px solid #eef0f3;border-radius:18px;padding:24px 20px 20px;margin-top:26px;color:#333d4b;box-shadow:0 10px 30px -22px rgba(25,31,40,.35)}
.doc .lead::before{content:"";position:absolute;top:-11px;left:50%;width:96px;height:22px;transform:translateX(-50%) rotate(-3deg);background:repeating-linear-gradient(45deg,#cfe2ff 0 8px,#e8f3ff 8px 16px);opacity:.95;border-radius:2px}
.toc b{display:flex!important;justify-content:space-between;align-items:baseline;font-size:16px!important;color:#191f28!important;font-weight:800!important}
.toc b small{font-size:13px;font-weight:600;color:#8b95a1}
.doc .toc a.lk::after{width:14px;height:14px;border:0;transform:none;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b0b8c1' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='11' width='16' height='10' rx='2'/%3E%3Cpath d='M8 11V7a4 4 0 0 1 8 0v4'/%3E%3C/svg%3E") center/contain no-repeat}
.doc .toc a.lk{color:#6b7684}
.doc .toc a.lk::before{background:#f2f4f6;color:#8b95a1}
.toc-note{display:flex;gap:8px;align-items:flex-start;margin:8px 12px 6px!important;padding-top:12px;border-top:1px solid #eef0f3;font-size:13.5px!important;line-height:1.6!important;color:#6b7684!important}
.toc-note::before{content:"🔒";font-size:13px;line-height:1.6}

/* ── 휴대폰: 바깥 흰 상자를 없애고 화면 폭을 다 쓴다 ── */
@media (max-width:600px){
  main .wrap:has(>.doc){width:calc(100% - 40px)}
  .doc{background:none;box-shadow:none;border-radius:0;padding:8px 0 24px}
  body:has(.doc){background:#fff}
  .doc h1{font-size:28px}
  .doc .lead{font-size:16.5px}
  .doc p,.doc li{font-size:16px;line-height:1.75}
  .doc h2{font-size:21px;margin-top:44px;padding-top:24px}
  .sig{margin-left:-4px;margin-right:-4px}
  .sig p{font-size:15.5px}
  .gate{margin-left:-6px;margin-right:-6px;padding:24px 18px 20px}
  .doc a.gc{padding:18px 16px 16px}
  .doc a.gc h2{font-size:18px}
  .g-hero{margin:0}
}

/* ── 가이드 목록 2×2 (11/23) ── */
.gl{grid-template-columns:1fr 1fr}
.gl .soon{grid-column:1/-1}
.doc a.gc{display:flex;flex-direction:column}
.doc a.gc:nth-child(even){background:#fff;border-color:#e5e8eb}
.doc a.gc:nth-child(4n+2),.doc a.gc:nth-child(4n+3){background:#f4f8ff;border-color:#dce9fc}
.doc a.gc .n{margin-top:auto;padding-top:12px}
.doc a.gc p{-webkit-line-clamp:3}
@media (max-width:600px){
  .gl{gap:10px}
  .doc a.gc{padding:14px 12px 13px;border-radius:16px}
  .gc .chips{gap:4px}
  .gc .chips span{font-size:11px;padding:5px 7px}
  .gc .chips .c1{padding:4px 7px;border-width:1.2px}
  .doc a.gc h2{font-size:15.5px;line-height:1.36;margin:10px 0 6px}
  .doc a.gc p{font-size:13px;line-height:1.55;-webkit-line-clamp:3}
  .doc a.gc .n{font-size:12px;padding-top:10px}
}
