/* 멍케어 사용 설명서(/intro/guide/) — intro.css 위에 얹는다. 색은 대표 파랑 하나 + 회색(깔끔하게) */
@view-transition { navigation: auto; } /* 소개 ↔ 설명서 넘어갈 때 부드럽게(지원 브라우저만) */
.ic { width: 18px; height: 18px; flex-shrink: 0; vertical-align: -3px; }
body.guide { --g-line: #e6ecf5; }
.brand small { font-size: 13px; font-weight: 700; color: #62584e; margin-left: 4px; }
.top-in .g-back { margin-left: auto; }
.top-in .brand { margin-right: 0; }
.top-in .btn { margin-left: 0; }
.top-in { gap: 8px; }
/* 휴대폰: 머리글 아래 차례 칩(가로로 밀기) */
.g-chips { display: flex; gap: 6px; overflow-x: auto; padding: 0 var(--gutter) 10px; scrollbar-width: none; }
.g-chips::-webkit-scrollbar { display: none; }
.g-chips a { flex-shrink: 0; font-size: 14px; font-weight: 700; color: var(--soft); text-decoration: none; padding: 7px 14px; border-radius: 999px; background: #f3f6fb; transition: background 0.2s, color 0.2s; }
.g-chips a.on { background: var(--btn); color: #fff; }
@media (min-width: 1024px) { .g-chips { display: none; } }
html { scroll-padding-top: calc(var(--head) + 64px); }
@media (min-width: 1024px) { html { scroll-padding-top: calc(var(--head) + 20px); } }

/* 첫 부분: 제목 + 궁금한 것 카드 */
.g-hero { padding: 28px 0 8px; }
.g-hero .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
.g-title { font-size: clamp(34px, 7vw, 56px); font-weight: 900; letter-spacing: -0.04em; display: block; }
.g-title mark { color: var(--btn); background: linear-gradient(transparent 64%, #ffe1c2 64%, #ffe9a8 92%, transparent 92%); }
.g-lead { margin-top: 10px; font-size: 18px; color: var(--soft); }
.g-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 22px; }
@media (min-width: 720px) { .g-cards { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
.g-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 16px; background: #fff; border: 1px solid var(--border); border-radius: 20px; text-decoration: none; color: var(--text); transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s; }
.g-card:hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgba(43, 70, 120, 0.12); border-color: #c9daf2; }
.g-card-ic { width: 26px; height: 26px; color: var(--btn); margin-bottom: 6px; }
.g-card b { font-size: 17px; }
.g-card span { font-size: 13.5px; color: var(--soft); line-height: 1.45; padding-right: 14px; }
.g-card-go { position: absolute; right: 12px; bottom: 14px; width: 16px; height: 16px; color: #b3c3da; transition: transform 0.2s; }
.g-card:hover .g-card-go { transform: translateX(3px); color: var(--btn); }

/* 목차(넓은 화면 왼쪽에 붙어 있음) + 본문 */
.g-layout { display: grid; gap: 24px; padding-top: 24px; padding-bottom: 40px; }
.g-side { display: none; }
@media (min-width: 1024px) {
  .g-layout { grid-template-columns: 250px 1fr; gap: 40px; align-items: start; }
  .g-side { display: block; position: sticky; top: calc(var(--head) + 16px); max-height: calc(100vh - var(--head) - 32px); overflow-y: auto; padding-right: 6px; }
}
.g-side-title { font-size: 13px; font-weight: 800; color: var(--soft); margin-bottom: 8px; }
.g-side ul { list-style: none; margin: 0; padding: 0; }
.g-side > ul > li { margin-bottom: 4px; }
.g-side-sec { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px; font-weight: 800; font-size: 15px; color: var(--text); text-decoration: none; }
.g-side-sec .ic { color: var(--soft); }
.g-side-sec.on { background: var(--accent-soft); color: var(--btn); }
.g-side-sec.on .ic { color: var(--btn); }
.g-side ul ul { display: none; padding: 2px 0 6px 36px; }
.g-side li.open ul { display: block; }
.g-side ul ul a { display: block; padding: 4px 0; font-size: 13.5px; color: var(--soft); text-decoration: none; line-height: 1.4; }
.g-side ul ul a:hover, .g-side ul ul a.on { color: var(--btn); }

/* 기능 구역 */
.g-content { min-width: 0; }
.g-sec { margin-bottom: 28px; padding: 24px 20px; background: #fff; border: 1px solid var(--border); border-radius: 26px; }
@media (min-width: 720px) { .g-sec { padding: 32px; } }
.js .g-sec { opacity: 0; transform: translateY(24px); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1); }
.js .g-sec.in { opacity: 1; transform: none; }
.g-sec-head { display: grid; gap: 18px; padding-bottom: 20px; border-bottom: 1px solid var(--g-line); margin-bottom: 8px; }
@media (min-width: 720px) { .g-sec-head { grid-template-columns: 1fr 170px; align-items: start; } }
.g-sec-num { font-size: 13px; font-weight: 900; color: var(--btn); letter-spacing: 0.08em; }
.g-sec-head h2 { display: flex; align-items: center; gap: 10px; font-size: clamp(26px, 4.4vw, 34px); font-weight: 900; margin: 2px 0 8px; }
.g-sec-head h2 .ic { width: 28px; height: 28px; color: var(--btn); }
.g-sum { font-size: 17px; line-height: 1.7; color: var(--text); }
.g-qlist { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.g-qlist a { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; font-weight: 600; color: var(--text); text-decoration: none; padding: 8px 10px 8px 14px; background: #f3f6fb; border-radius: 999px; transition: background 0.2s, color 0.2s; }
.g-qlist a:hover { background: var(--accent-soft); color: var(--btn); }
.g-qlist .ic { width: 14px; height: 14px; color: #9fb2cc; }
.g-sec-shot { margin: 0; justify-self: center; width: 150px; }
@media (min-width: 720px) { .g-sec-shot { width: 170px; } }
.g-sec-shot img, .g-shot img { border-radius: 18px; border: 4px solid #fff; box-shadow: 0 10px 24px rgba(43, 70, 120, 0.16); }
.g-sec-shot figcaption, .g-shot figcaption { font-size: 12px; color: var(--soft); text-align: center; margin-top: 6px; }

/* 질문 하나 */
.g-q { padding: 22px 0 6px; border-top: 1px solid var(--g-line); transition: background 0.6s; }
.g-sec-head + .g-q { border-top: none; }
.g-q.flash { background: #f2f7ff; }
.g-q h3 { position: relative; font-size: 20px; font-weight: 800; padding-left: 14px; margin-bottom: 10px; }
.g-q h3::before { content: ""; position: absolute; left: 0; top: 0.3em; bottom: 0.3em; width: 4px; border-radius: 4px; background: var(--btn); }
.g-q p { font-size: 16.5px; line-height: 1.75; color: #3d3430; margin-bottom: 10px; }
.g-q b { color: var(--text); }
.g-steps { list-style: none; counter-reset: s; margin: 4px 0 12px; padding: 0; display: grid; gap: 8px; }
.g-steps li { counter-increment: s; position: relative; padding: 10px 14px 10px 46px; background: #f7f9fc; border-radius: 14px; font-size: 16px; line-height: 1.6; }
.g-steps li::before { content: counter(s); position: absolute; left: 12px; top: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--btn); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.g-ex { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
.g-ex-label { width: 100%; font-size: 13px !important; font-weight: 800; color: var(--soft) !important; margin: 0 !important; }
.g-ex span { font-size: 15px; padding: 8px 12px; background: var(--accent-soft); color: #1f4f8c; /* 대비 4.5:1 이상 */ border-radius: 14px 14px 14px 4px; font-weight: 600; }
.g-tip, .g-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; font-size: 15px !important; line-height: 1.65 !important; }
.g-tip { background: #f3f6fb; }
.g-tip .ic { color: var(--btn); margin-top: 3px; }
.g-tip b { color: var(--btn) !important; margin-right: 4px; }
.g-note { background: #fff7f2; border: 1px solid #f7dccb; }
.g-note .ic { color: #b0563a; margin-top: 3px; }
.g-table { margin: 4px 0 12px; border: 1px solid var(--g-line); border-radius: 16px; overflow: hidden; }
.g-table div { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; }
.g-table div + div { border-top: 1px solid var(--g-line); }
.g-table dt { padding: 12px 14px; background: #f7f9fc; font-weight: 800; font-size: 15px; line-height: 1.5; }
.g-table dd { margin: 0; padding: 12px 14px; font-size: 15px; line-height: 1.6; color: #3d3430; }
.g-shot { margin: 6px 0 14px; width: 160px; }
.g-dogs { display: grid; gap: 10px; margin: 6px 0 12px; }
@media (min-width: 720px) { .g-dogs { grid-template-columns: repeat(3, 1fr); } }
.g-dog { display: grid; grid-template-columns: 84px 1fr; column-gap: 12px; align-items: center; padding: 12px; background: #f7f9fc; border-radius: 18px; }
.g-dog img { grid-row: span 3; width: 84px; }
@media (min-width: 720px) { .g-dog { grid-template-columns: 1fr; text-align: center; } .g-dog img { grid-row: auto; width: 110px; margin: 0 auto 6px; } }
.g-dog p { margin: 0 !important; font-size: 14.5px !important; line-height: 1.5 !important; }
.g-dog-name { font-size: 18px !important; font-weight: 900; color: var(--text) !important; }
.g-dog-name span { font-size: 13px; font-weight: 600; color: var(--soft); }
.g-dog-role { font-weight: 800; color: var(--btn) !important; }
.g-next { display: flex; align-items: center; gap: 10px; margin-top: 18px; padding: 16px 18px; border-radius: 18px; background: var(--btn); color: #fff; text-decoration: none; transition: transform 0.2s; }
.g-next:hover { transform: translateX(4px); }
.g-next span { font-size: 13px; opacity: 0.85; }
.g-next b { font-size: 17px; margin-right: auto; }
.g-more { text-align: center; color: var(--soft); font-size: 15px; }
.g-top { position: fixed; right: 16px; bottom: calc(18px + env(safe-area-inset-bottom)); width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid var(--border); box-shadow: 0 8px 20px rgba(43, 70, 120, 0.15); display: flex; align-items: center; justify-content: center; color: var(--btn); opacity: 0; pointer-events: none; transition: opacity 0.25s, transform 0.25s; transform: translateY(10px); }
.g-top.show { opacity: 1; pointer-events: auto; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .g-sec { opacity: 1; transform: none; transition: none; }
  .g-card, .g-next, .g-top { transition: none; }
  @view-transition { navigation: none; }
}
/* 설명서 머리글은 차례 칩까지 덮으므로 비치지 않게 흰 바탕 + 아래 선 */
.guide .top { background: #fff; border-bottom-color: var(--g-line); }
