
/* Color: 짙은 숲 녹색 바탕 + 민트 지역명 + 노랑 전화번호 (카드 이미지와 같은 색) */
/* Layout: 모바일 우선 한 줄 읽기 폭. 요약표 다음 숨김 목차 그리고 H2 소제목 순서 */
:root {
  --bg: #f3f6f4;
  --surface: #ffffff;
  --fg: #16201a;
  --muted: #55645b;
  --line: #d6e0d9;
  --steel: #123d2a;
  --steel-fg: #f1f6f2;
  --steel-muted: #b9cdbf;
  --accent: #1b7a4c;
  --signal: #f2c230;
  --signal-ink: #16201a;
  --note-bg: #e8f2ec;
  --mint: #78e4a5;
  --font-display: "Gothic A1", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-body: "IBM Plex Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101713; --surface: #17211b; --fg: #e5ede7; --muted: #97a99d; --line: #26352c;
    --steel: #0b2a1c; --steel-fg: #f1f6f2; --steel-muted: #a9c2b1; --accent: #5ec993;
    --signal: #f2c230; --signal-ink: #101713; --note-bg: #16261d; --mint: #78e4a5;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101713; --surface: #17211b; --fg: #e5ede7; --muted: #97a99d; --line: #26352c;
    --steel: #0b2a1c; --steel-fg: #f1f6f2; --steel-muted: #a9c2b1; --accent: #5ec993;
    --signal: #f2c230; --signal-ink: #101713; --note-bg: #16261d; --mint: #78e4a5;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { background: var(--bg); color: var(--fg); font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.8; padding-inline: 16px; padding-block: 0 4rem; word-break: keep-all; }
.wrap { max-width: 42rem; margin: 0 auto; display: grid; gap: 2.5rem; }
a { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.testbar { margin: 0 -16px; padding: .5rem 16px; background: var(--steel); color: var(--steel-muted); font-size: .8125rem; text-align: center; }

header.page { display: grid; gap: 1rem; padding-top: 1.5rem; }
.crumb { font-size: .8125rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .4rem; list-style: none; margin: 0; padding: 0; }
.crumb li + li::before { content: "›"; margin-right: .4rem; color: var(--line); }
.crumb a { color: var(--muted); text-decoration: none; }
h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; line-height: 1.38; margin: 0; }
h1 { font-size: clamp(1.55rem, 5.2vw, 2.15rem); font-weight: 900; }
h2 { font-size: 1.4rem; font-weight: 900; scroll-margin-top: 1rem; }
h3 { font-size: 1.1rem; font-weight: 700; }
.meta { font-size: .875rem; color: var(--muted); margin: 0; }

figure { margin: 0; display: grid; gap: .5rem; justify-items: center; }
figure img { width: 100%; height: auto; display: block; border-radius: 6px; background: var(--line); }
figure.portrait img { max-width: 26rem; }
section { display: grid; gap: 1rem; }
section p { margin: 0; }

.toc { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .8rem 1.1rem; }
.toc summary { cursor: pointer; font-family: var(--font-display); font-weight: 700; }
.toc ol { margin: .7rem 0 .2rem; padding-left: 1.3rem; display: grid; gap: .25rem; font-size: .9375rem; }
.toc a { color: var(--fg); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }

.summary { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 1.25rem; display: grid; gap: .9rem; }
.summary h2 { font-size: 1.1rem; }
.summary dl { margin: 0; display: grid; grid-template-columns: 6rem 1fr; gap: .55rem 1rem; }
.summary dt { color: var(--muted); font-size: .9375rem; }
.summary dd { margin: 0; min-width: 0; }



ul.symptoms { margin: 0; padding-left: 1.2rem; display: grid; gap: .35rem; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.75rem; counter-reset: s; }
.steps > li { display: grid; gap: .6rem; counter-increment: s; }
.steps h3::before { content: counter(s) "단계 "; color: var(--accent); }

.tip { background: var(--note-bg); border-radius: 8px; padding: 1rem 1.15rem; font-size: .9375rem; }
.tip strong { font-family: var(--font-display); margin-right: .4rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.chips a { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); text-decoration: none; color: var(--fg); font-size: .9375rem; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }

.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .85rem 1.1rem; }
.faq details + details { margin-top: .6rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .6rem 0 0; }

.memo { border-top: 2px dashed var(--line); padding-top: 1.5rem; display: grid; gap: .8rem; font-size: .875rem; }
.memo h2 { font-size: 1rem; color: var(--muted); }
.tablewrap { overflow-x: auto; }
.memo table { width: 100%; border-collapse: collapse; }
.memo th, .memo td { text-align: left; vertical-align: top; padding: .45rem .5rem; border-bottom: 1px solid var(--line); }
.memo th { width: 8rem; color: var(--muted); font-weight: 500; }
.memo code { font-size: .8125rem; word-break: break-all; }
.lead-box{margin:0;padding:22px 16px 18px;border-radius:16px;color:#fff;font-family:inherit;
  background:linear-gradient(160deg,#0a2618 0%,#11402b 55%,#0e4d3d 100%);box-shadow:0 8px 24px rgba(10,38,24,.25);}
.lead-box *{box-sizing:border-box;}
.lead-box .lead-sub{margin:0 0 2px;color:#fff;font-size:19px;font-weight:800;line-height:1.45;letter-spacing:-.4px;text-align:center;}
.lead-box .lead-sub b{color:#f5c84b;}
.lead-box .lead-label{display:block;font-weight:800;font-size:14.5px;color:#dcebe2;margin:16px 0 7px;}
.lead-box .lead-edit{position:relative;}
.lead-box .lead-edit input{padding-right:48px!important;}
.lead-box .lead-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:32px;height:32px;margin:0;padding:0;border:none;border-radius:50%;background:#e3ede7;color:#2c4a3a;font-size:19px;line-height:32px;cursor:pointer;}
.lead-box .lead-clear[hidden]{display:none;}
.lead-box .lead-label small{font-weight:500;color:#9db8a8;font-size:13px;margin-left:4px;}
.lead-box input[type=text],.lead-box input[type=tel],.lead-box textarea{display:block;width:100%;height:54px;padding:0 15px;font-size:17px;border:1.5px solid transparent;border-radius:10px;background:#fff;color:#14201a;font-family:inherit;-webkit-appearance:none;appearance:none;}
.lead-box textarea{height:auto;min-height:0;padding:11px 12px;line-height:1.5;resize:none;overflow:hidden;}
.lead-box textarea::placeholder{font-size:clamp(11.5px,3.4vw,13.5px);letter-spacing:-.4px;color:#9aa69f;white-space:pre;overflow:hidden;}
.lead-box input::placeholder{color:#9aa69f;}
.lead-box input:focus,.lead-box textarea:focus{outline:none;border-color:#7be3a6;box-shadow:0 0 0 4px rgba(123,227,166,.3);}
.lead-box .lead-chips{display:grid;grid-template-columns:1fr 1fr;gap:8px;}
.lead-box .lead-chips label{position:relative;display:flex;align-items:center;justify-content:center;min-height:50px;padding:8px 6px;border:1.5px solid rgba(255,255,255,.32);border-radius:10px;background:rgba(255,255,255,.06);font-size:15px;font-weight:700;color:#fff;text-align:center;line-height:1.3;cursor:pointer;-webkit-tap-highlight-color:transparent;}
.lead-box .lead-chips input{position:absolute;opacity:0;pointer-events:none;}
.lead-box .lead-chips label:has(input:checked),.lead-box .lead-chips label.on{border-color:#7be3a6;background:#7be3a6;color:#0a2618;box-shadow:0 0 0 3px rgba(123,227,166,.25);}
.lead-box .lead-chips label:has(input:focus-visible){outline:2px solid #f5c84b;outline-offset:2px;}
.lead-box .lead-chips label:first-child{grid-column:1 / -1;}
.lead-box .lead-photo-btn{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:54px;border:1.5px dashed rgba(255,255,255,.5);border-radius:10px;background:transparent;font-size:15.5px;font-weight:700;color:#fff;cursor:pointer;}
.lead-box .lead-photo-btn svg{width:22px;height:22px;flex-shrink:0;}
.lead-box .lead-thumbs{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap;}
.lead-box .lead-thumbs:empty{display:none;}
.lead-box .lead-thumb{position:relative;width:76px;height:76px;border-radius:8px;overflow:hidden;border:1px solid rgba(255,255,255,.4);}
.lead-box .lead-thumb img{width:100%;height:100%;object-fit:cover;display:block;}
.lead-box .lead-thumb button{position:absolute;top:3px;right:3px;width:24px;height:24px;margin:0;padding:0;border-radius:50%;border:none;background:rgba(10,38,24,.85);color:#fff;font-size:15px;line-height:24px;cursor:pointer;}
.lead-box .lead-agree{display:flex;gap:10px;align-items:center;margin:18px 0 4px;font-size:14px;color:#dcebe2;cursor:pointer;}
.lead-box .lead-agree input{width:22px;height:22px;flex-shrink:0;accent-color:#7be3a6;}
.lead-box details.lead-privacy{font-size:12.5px;color:#9db8a8;margin:2px 0 0 32px;line-height:1.5;}
.lead-box details.lead-privacy summary{cursor:pointer;}
.lead-box .lead-hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden;}
.lead-box .lead-btn{display:flex;align-items:center;justify-content:center;width:100%;height:58px;margin-top:16px;padding:0;font-size:18px;font-weight:800;border:none;border-radius:12px;cursor:pointer;font-family:inherit;letter-spacing:-.2px;-webkit-tap-highlight-color:transparent;}
.lead-box .lead-submit{background:#f5c84b;color:#14201a;box-shadow:0 6px 18px rgba(245,200,75,.3);}
.lead-box .lead-submit:active{background:#e8b730;}
.lead-box .lead-submit:focus-visible{outline:3px solid #fff;outline-offset:2px;}
.lead-box .lead-submit:disabled{opacity:.6;}
.lead-box .lead-msg{display:none;margin-top:12px;padding:13px 15px;border-radius:10px;font-size:15px;font-weight:700;line-height:1.5;}
.lead-box .lead-msg.ok{display:block;background:#eaf8ef;color:#13542f;}
.lead-box .lead-msg.err{display:block;background:#fdf0ef;color:#8f1d16;}
@media (min-width:640px){.lead-box{padding:26px 24px 22px;}.lead-box .lead-chips{grid-template-columns:repeat(4,1fr);}}
header.site { margin: 0 -16px; padding: .7rem 16px; background: var(--steel); }
header.site .brand { color: var(--steel-fg); font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; text-decoration: none; letter-spacing: .02em; }
footer.site { max-width: 42rem; margin: 3rem auto 0; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; display: grid; gap: .2rem; }
footer.site p { margin: 0; }
ol.flow { margin: 0; padding-left: 1.3rem; display: grid; gap: .5rem; }
ol.flow p { margin: 0; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: .85rem 1.1rem; }
.faq details + details { margin-top: .6rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin: .6rem 0 0; }
.summary p { margin: 0; }
