/* 동제당 웰니스 — 솔빛 팔레트 (HANDOFF-WELLNESS.md §2 · reference/design-spec) */
:root {
  --ink: #1f1e1b;
  --muted: #66615a;
  --line: #e3dccd;
  --surface: #fefdf9;
  --soft: #f1ebdf;
  --paper: #ffffff;
  --accent: #33502f;
  --deep: #1f3220;
  --gold: #7a5c2e;
  --sans: "Noto Sans KR", "Malgun Gothic", sans-serif;
  --serif: "Noto Serif KR", serif;
  --wrap: min(1320px, 100% - 48px);
}


/* ── Clinic OS 서브도메인 스킨: wellness ─────────────────────────────
   디자인 시스템 아티팩트 "Clinic OS 서브도메인 스킨"(테마 root-skin-wellness)에서 그대로 옮긴 층.
   이 사이트의 기존 변수(--ink --muted --line --surface --soft --paper --accent --deep --gold)가
   팔레트의 출처이고, 아래는 같은 값에 Clinic OS 의미 토큰 이름을 붙인 것이다.
   --accent 는 이름이 이미 같으므로 다시 선언하지 않는다(자기참조가 되면 변수가 죽는다) —
   Clinic OS 마크업(.card / .btn--primary / .section--tone-* 등)을 이 사이트에 그대로 넣어도 렌더된다.
   기존 규칙은 아무것도 바꾸지 않는다(순수 추가). 팔레트를 바꿀 때는 위 :root의 여섯 값만 고친다. */
:root[data-skin="wellness"] {
    --bg-body: var(--surface);
    --bg-surface: var(--paper);
    --surface-elevated: var(--paper);
    --bg-header: rgba(254,253,249,0.9);
    --bg-footer: var(--soft);
    --text-main: var(--ink);
    --text-muted: var(--muted);
    --text-subtle: var(--text-muted);
    --accent-soft: var(--soft);
    --accent-strong: var(--deep);
    --accent-gradient-start: var(--accent);
    --accent-gradient-end: var(--accent-strong);
    --border-subtle: var(--line);
    --danger: #b91c1c;
    --text-on-accent: #ffffff;
    --accent-highlight: var(--gold);

    /* 타이포 패밀리 — Clinic OS 이름으로 */
    --font-sans: var(--sans);
    --font-serif: var(--serif);
    --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

    /* 간격·라운드·그림자: 스킨과 무관하게 Clinic OS 값 그대로 */
    --ds-space-xs: 4px; --ds-space-sm: 8px; --ds-space-md: 16px; --ds-space-lg: 24px; --ds-space-xl: 32px; --ds-space-2xl: 48px;
    --ds-radius-sm: 4px; --ds-radius-md: 8px; --ds-radius-lg: 16px; --ds-radius-xl: 24px; --ds-radius-full: 9999px;
    --ds-shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --ds-shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --ds-shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--surface); color: var(--ink); font: 1rem/1.8 var(--sans); word-break: keep-all; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -.045em; word-break: keep-all; }
p { margin: 0; word-break: keep-all; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
:target { scroll-margin-top: 100px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: fixed; z-index: 100; left: 1rem; top: -100px; padding: .7rem 1rem; background: var(--ink); color: var(--surface); }
.skip:focus { top: 1rem; }

/* 공통 컴포넌트 (design-spec §컴포넌트) */
.kicker { font-size: 13.5px; font-weight: 500; color: var(--gold); }
.kicker--line { display: flex; align-items: center; gap: 12px; }
.kicker--line::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.btn { display: inline-flex; align-items: center; white-space: nowrap; height: 40px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--ink); color: var(--ink); transition: color .15s, border-color .15s, background .15s; }
.btn:hover { border-color: var(--accent); color: var(--accent); }
.btn--fill { border-color: transparent; background: var(--ink); color: var(--surface); font-weight: 700; }
.btn--fill:hover { background: var(--accent); color: var(--surface); }
.btn--accent { border-color: transparent; background: var(--accent); color: var(--surface); font-weight: 700; }
.btn--accent:hover { background: var(--deep); color: var(--surface); }
.btn--paper { border-color: transparent; background: var(--surface); color: var(--accent); font-weight: 700; }
.btn--paper:hover { background: var(--ink); color: var(--surface); }
.btn--lg { height: 54px; padding: 0 30px; font-size: 15.5px; }
.btn--md { height: 44px; padding: 0 20px; }
.btn--xl { height: 56px; padding: 0 32px; font-size: 16px; }
.ul-link { display: inline-flex; align-items: center; white-space: nowrap; font-size: 14px; font-weight: 500; border-bottom: 1px solid var(--ink); padding-bottom: 2px; }
.ul-link:hover { color: var(--accent); border-color: var(--accent); }
.h2 { font-size: clamp(32px, 3.6vw, 52px); line-height: 1.12; }
.lead { font-size: 16.5px; line-height: 1.85; font-weight: 300; color: var(--muted); }

/* 헤더 */
.hd { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hd__in { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; gap: 28px; padding: 14px 0; }
.brand { display: flex; align-items: center; gap: 12px; }
/* 2026-09-16 원장: 초록 상자 안 補 는 「그저 그렇다」 — 소원재(溯)처럼 상자 없이 한자만 크게. 두 줄 이름(17+12px) 높이에 맞춰 30px */
.brand__mark { font: 500 30px/1 var(--serif); color: var(--accent); }
.brand__name { display: flex; flex-direction: column; line-height: 1.25; }
.brand__name strong { font-size: 17px; font-weight: 700; letter-spacing: -.04em; }
.brand__name span { font-size: 12px; color: var(--muted); }
.nav { display: flex; gap: 26px; margin-left: auto; font-size: 14px; font-weight: 500; color: var(--muted); }
.nav a[aria-current="page"], .nav a:hover { color: var(--ink); }
.nav .btn { display: none; }
.hd .btn { flex-shrink: 0; }
.menu-btn { display: none; margin-left: auto; width: 44px; height: 44px; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
.menu-btn svg { display: block; margin: auto; }

/* 대문 */
.hero { padding: 56px 0 0; display: flex; flex-direction: column; gap: 40px; }
.hero__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 24px 80px; align-items: end; }
.hero__title { display: flex; flex-direction: column; gap: 22px; }
.hero__title h1 { font-size: clamp(44px, 7vw, 100px); line-height: 1.02; }
.hero__desc { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-bottom: 10px; }
.hero__desc > p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; font-weight: 300; max-width: 460px; }
.hero__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.hero__chips { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--muted); }
.hero__chips li { display: flex; align-items: center; gap: 8px; }
.hero__chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); }
.hero__photo { display: block; height: clamp(380px, 52vw, 720px); border-radius: 6px; overflow: hidden; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); border-bottom: 1px solid var(--line); }
.facts div { display: flex; flex-direction: column; gap: 4px; padding: 28px 24px 30px 0; border-right: 1px solid var(--line); }
.facts strong { font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.facts span { font-size: 14px; color: var(--muted); }

/* 원장 스트립 */
.strip { padding: 40px 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 24px 40px; }
.strip__face { flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--soft); }
.strip__face img { width: 100%; height: 100%; object-fit: cover; }
.strip__who { display: flex; flex-direction: column; gap: 4px; min-width: 200px; }
.strip__who .kicker { font-size: 12.5px; font-weight: 400; }
.strip__who strong { font-size: 20px; letter-spacing: -.03em; }
.strip__who span:last-child { font-size: 14px; color: var(--muted); }
.strip > p { flex: 1 1 320px; font-size: 15px; line-height: 1.75; color: var(--muted); }
.strip__btns { display: flex; gap: 10px; align-items: center; }
.strip__btns .ul-link { height: 44px; padding: 0 6px; }

/* 약속 3단 */
.who { padding: 120px 0 100px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 48px 80px; }
.who__head { display: flex; flex-direction: column; gap: 20px; align-self: start; position: sticky; top: 110px; }
.who__head .lead { max-width: 420px; }
.who__head .btn { align-self: flex-start; }
.cases { display: flex; flex-direction: column; }
.case { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 20px; padding: 32px 0; border-top: 1px solid var(--line); }
.case__no { font-size: 14px; font-weight: 500; color: var(--gold); padding-top: 6px; }
.case__body { display: flex; flex-direction: column; gap: 10px; }
.case__who { font-size: 13.5px; color: var(--muted); }
.case__body h3 { font-size: clamp(20px, 1.8vw, 26px); line-height: 1.35; letter-spacing: -.03em; }
.case__desc { font-size: 15.5px; line-height: 1.85; color: var(--muted); }
.case__check { font-size: 14.5px; line-height: 1.8; color: var(--ink); padding-left: 16px; border-left: 2px solid var(--accent); margin-top: 6px; }
.case__link { font-size: 14px; font-weight: 500; color: var(--accent); align-self: flex-start; }
.notes { display: flex; flex-direction: column; gap: 22px; padding: 36px 0 0; border-top: 1px solid var(--ink); }
.notes__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px 48px; }
.notes__grid > div { display: flex; flex-direction: column; gap: 10px; }
.notes__grid strong { font-size: 17px; letter-spacing: -.02em; }
.notes__grid p { font-size: 15px; line-height: 1.8; color: var(--muted); }
.notes__grid .ul-link, .notes__grid .case__link { align-self: flex-start; }

/* 처방 (deep) */
.rx { background: var(--deep); color: var(--surface); }
.rx__in { padding: 110px 0 120px; display: flex; flex-direction: column; gap: 64px; }
.rx__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 80px; align-items: end; }
.rx__head > div { display: flex; flex-direction: column; gap: 18px; }
.rx .kicker { color: color-mix(in srgb, var(--surface) 60%, transparent); }
.rx .h2 { color: var(--surface); }
.rx .lead { color: color-mix(in srgb, var(--surface) 78%, transparent); max-width: 460px; }
.rx__criteria { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 40px; border-top: 1px solid color-mix(in srgb, var(--surface) 25%, transparent); }
.rx__criteria > div { display: flex; flex-direction: column; gap: 8px; padding: 26px 0 30px; }
.rx__criteria strong { font-size: 17px; letter-spacing: -.02em; }
.rx__criteria span { font-size: 14.5px; line-height: 1.75; font-weight: 300; color: color-mix(in srgb, var(--surface) 72%, transparent); }
.rx__cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 40px; }
.rxcard { display: flex; flex-direction: column; gap: 18px; color: var(--surface); }
.rxcard:hover { color: var(--surface); }
.rxcard__tile { display: flex; align-items: flex-end; justify-content: space-between; aspect-ratio: 4/3; padding: 22px 24px; border-radius: 6px; background: color-mix(in srgb, var(--surface) 8%, transparent); border: 1px solid color-mix(in srgb, var(--surface) 18%, transparent); transition: border-color .15s; }
.rxcard:hover .rxcard__tile { border-color: color-mix(in srgb, var(--surface) 45%, transparent); }
.rxcard__mark { font: 500 clamp(64px, 6vw, 96px)/.85 var(--serif); }
.rxcard__mark-en { font-size: 12px; letter-spacing: .14em; color: color-mix(in srgb, var(--surface) 55%, transparent); }
.rxcard__body { display: flex; flex-direction: column; gap: 8px; }
.rxcard__label { font-size: 12.5px; letter-spacing: .08em; color: color-mix(in srgb, var(--surface) 60%, transparent); }
.rxcard__name { font-size: 24px; font-weight: 700; letter-spacing: -.035em; }
.rxcard__desc { font-size: 15px; line-height: 1.8; font-weight: 300; color: color-mix(in srgb, var(--surface) 78%, transparent); }
.rxcard__more { font-size: 14px; margin-top: 6px; border-bottom: 1px solid color-mix(in srgb, var(--surface) 40%, transparent); align-self: flex-start; padding-bottom: 2px; }
.alt { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px 64px; padding-top: 48px; border-top: 1px solid color-mix(in srgb, var(--surface) 25%, transparent); align-items: start; }
.alt__photo { display: block; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; background: color-mix(in srgb, var(--surface) 6%, transparent); border: 1px solid color-mix(in srgb, var(--surface) 15%, transparent); }
.alt__photo img { width: 100%; height: 100%; object-fit: cover; }
.alt__text { display: flex; flex-direction: column; gap: 10px; }
.alt__text > span { font-size: 13px; color: color-mix(in srgb, var(--surface) 60%, transparent); }
.alt__text h3 { font-size: clamp(22px, 2vw, 28px); letter-spacing: -.035em; }
.alt__text p { font-size: 15px; line-height: 1.8; font-weight: 300; color: color-mix(in srgb, var(--surface) 72%, transparent); }
.alt__list a { display: flex; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid color-mix(in srgb, var(--surface) 15%, transparent); color: var(--surface); }
.alt__list a:hover { color: color-mix(in srgb, var(--surface) 70%, transparent); }
.alt__list a > span { display: flex; flex-direction: column; gap: 3px; }
.alt__list strong { font-size: 17px; }
.alt__list small { font-size: 14px; font-weight: 300; color: color-mix(in srgb, var(--surface) 65%, transparent); }
.alt__list .arrow { font-size: 18px; }

/* 가격 */
.price { padding: 120px 0 100px; display: flex; flex-direction: column; gap: 56px; }
.price__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 80px; align-items: end; }
.price__head > div { display: flex; flex-direction: column; gap: 18px; }
.price__head .lead { max-width: 460px; }
.price__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); border-top: 1px solid var(--ink); }
.price__grid > div { display: flex; flex-direction: column; gap: 14px; padding: 36px 32px 40px 0; border-bottom: 1px solid var(--line); }
.price__label { display: flex; gap: 10px; align-items: center; font-size: 13px; color: var(--muted); }
.price__pop { font-size: 11.5px; padding: 3px 9px; border-radius: 999px; background: var(--ink); color: var(--surface); }
.price__grid h3 { font-size: 22px; letter-spacing: -.03em; }
.price__amt { font-size: clamp(34px, 3.2vw, 48px); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.price__note { font-size: 14px; line-height: 1.75; color: var(--muted); }
.price__foot { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px 80px; }
.price__sub { display: flex; flex-direction: column; gap: 14px; }
.price__sub > span { font-size: 14px; font-weight: 700; }
.price__sub div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.price__sub div span { color: var(--muted); }
.price__sub div strong { font-weight: 500; }
.price__basis { font-size: 13.5px; line-height: 1.8; color: var(--muted); align-self: end; }

/* 원장 분할형 */
.doc { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); border-top: 1px solid var(--line); }
.doc__photo { position: relative; align-self: start; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft); }
.doc__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.doc__body { display: flex; flex-direction: column; justify-content: center; gap: 44px; padding: clamp(56px, 6vw, 96px) clamp(24px, 6vw, 96px) clamp(56px, 6vw, 96px) clamp(32px, 5vw, 72px); }
.doc__head { display: flex; flex-direction: column; gap: 16px; }
.doc__head h2 { font-size: clamp(40px, 4.6vw, 72px); line-height: 1; letter-spacing: -.05em; }
.doc__head > span:last-child { font-size: 16px; color: var(--muted); }
.doc__quote { font-size: clamp(17px, 1.4vw, 21px); line-height: 1.65; font-weight: 300; max-width: 520px; }
.doc__meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); border-top: 1px solid var(--ink); }
.doc__meta > div { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px 20px 0; border-bottom: 1px solid var(--line); }
.doc__meta dt { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.doc__meta dd { font-size: 15.5px; font-weight: 500; line-height: 1.5; }
.doc__cv { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px 40px; }
.doc__cv > div { display: flex; flex-direction: column; gap: 8px; }
.doc__cv > div > span:first-child { font-size: 12px; letter-spacing: .08em; color: var(--muted); }
.doc__cv p { font-size: 14.5px; line-height: 1.6; }
.doc__btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.doc__btns .btn { height: 52px; padding: 0 28px; font-size: 15px; }
.doc__btns .ul-link { height: 52px; padding: 0 6px; font-size: 15px; }

/* 원료 확인 (soft) */
.verify { background: var(--soft); }
.verify__in { padding: 110px 0 120px; display: flex; flex-direction: column; gap: 64px; }
.verify__head { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.verify__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 56px 80px; }
.verify__col { display: flex; flex-direction: column; gap: 20px; }
.verify__col h3 { font-size: 20px; letter-spacing: -.03em; }
.verify__col > div { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.cmp { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.cmp > span:first-child { display: flex; flex-direction: column; gap: 3px; }
.cmp strong { font-size: 15.5px; }
.cmp small { font-size: 13.5px; color: var(--muted); }
.cmp > span:last-child { font-size: 14px; line-height: 1.7; color: var(--muted); }
.chk { display: flex; flex-direction: column; gap: 5px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.chk strong { font-size: 15.5px; }
.chk span { font-size: 14px; line-height: 1.7; color: var(--muted); }
.verify__bottom { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 80px; align-items: center; }
.verify__photo { display: block; aspect-ratio: 4/3; border-radius: 6px; overflow: hidden; }
.verify__photo img { width: 100%; height: 100%; object-fit: cover; }
.verify__list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.verify__list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.verify__list li > span:first-child { font-size: 13px; color: var(--gold); padding-top: 3px; }
.verify__list li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.verify__list strong { font-size: 16px; }
.verify__list small { font-size: 14px; line-height: 1.7; color: var(--muted); }

/* 문의 4단계 */
.steps { padding: 120px 0 100px; display: flex; flex-direction: column; gap: 56px; }
.steps__head { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.prep { display: flex; flex-wrap: wrap; gap: 12px 40px; align-items: baseline; padding: 22px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.prep > strong { font-size: 15px; }
.prep > span { font-size: 14.5px; color: var(--muted); }
.prep > span strong { color: var(--ink); font-weight: 500; }
.steps__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.steps__list li { display: flex; flex-direction: column; gap: 14px; padding: 32px 28px 36px 0; }
.steps__no { font-size: clamp(30px, 3vw, 44px); font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--accent); }
.steps__list strong { font-size: 18px; letter-spacing: -.02em; }
.steps__list span:last-child { font-size: 15px; line-height: 1.8; color: var(--muted); }

/* FAQ */
.faq { padding: 0 0 120px; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 80px; }
.faq__head { display: flex; flex-direction: column; gap: 18px; align-self: start; position: sticky; top: 110px; }
.faq__list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; cursor: pointer; padding: 24px 0; font-size: 18px; font-weight: 500; letter-spacing: -.02em; }
.faq__list summary::after { content: "+"; flex-shrink: 0; font-size: 26px; font-weight: 300; line-height: 1; color: var(--accent); }
.faq__list details[open] summary::after { content: "–"; }
.faq__a { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 0 0 26px; max-width: 640px; }
.faq__a p { font-size: 15.5px; line-height: 1.9; color: var(--muted); }
.faq__a a { font-size: 14px; font-weight: 500; color: var(--accent); border-bottom: 1px solid var(--accent); padding-bottom: 2px; }
.faq__more { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 28px; }
.faq__more a { font-size: 14px; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line); white-space: nowrap; }
.faq__more a:hover { border-color: var(--ink); color: var(--ink); }

/* deep CTA */
.cta { background: var(--accent); color: var(--surface); }
.cta__in { padding: 100px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 32px 80px; align-items: center; }
.cta h2 { font-size: clamp(34px, 4.2vw, 60px); line-height: 1.08; }
.cta__body { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.cta__body p { font-size: 17px; line-height: 1.8; font-weight: 300; color: color-mix(in srgb, var(--surface) 82%, transparent); max-width: 440px; }
.cta__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.cta .btn--ghost { border-color: color-mix(in srgb, var(--surface) 50%, transparent); color: var(--surface); }
.cta .btn--ghost:hover { border-color: var(--surface); color: var(--surface); }

/* 푸터 (홈 전체형, deep) */
.ft { background: var(--deep); color: var(--surface); }
.ft__in { padding: 88px 0 36px; display: flex; flex-direction: column; gap: 64px; }
.ft__top { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px 80px; align-items: end; }
.ft__brand { display: flex; flex-direction: column; gap: 18px; }
.ft__mark { font: 500 clamp(64px, 9vw, 140px)/.9 var(--serif); letter-spacing: -.02em; color: color-mix(in srgb, var(--surface) 92%, transparent); }
.ft__brand strong { font-size: clamp(22px, 2.2vw, 30px); font-weight: 700; letter-spacing: -.04em; }
.ft__brand > span:last-child { font-size: 15px; font-weight: 300; color: color-mix(in srgb, var(--surface) 70%, transparent); max-width: 380px; line-height: 1.7; }
.ft__contact { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ft__tel { font-size: clamp(26px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.04em; color: var(--surface); }
.ft__tel:hover { color: color-mix(in srgb, var(--surface) 70%, transparent); }
.ft__hours { font-size: 14.5px; font-weight: 300; line-height: 1.8; color: color-mix(in srgb, var(--surface) 70%, transparent); }
.ft__contact .btn { margin-top: 6px; height: 48px; padding: 0 24px; font-size: 14.5px; background: var(--surface); color: var(--deep); border-color: transparent; }
.ft__contact .btn:hover { background: var(--accent); color: var(--surface); }
.ft__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 40px; border-top: 1px solid color-mix(in srgb, var(--surface) 18%, transparent); }
.ft__col { display: flex; flex-direction: column; padding: 28px 0 8px; }
.ft__col h3 { font-size: 12px; font-weight: 400; letter-spacing: .12em; color: color-mix(in srgb, var(--surface) 50%, transparent); padding-bottom: 14px; }
.ft__col a, .ft__col > span { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; font-size: 15.5px; border-top: 1px solid color-mix(in srgb, var(--surface) 12%, transparent); color: var(--surface); }
.ft__col > span { color: color-mix(in srgb, var(--surface) 45%, transparent); }
.ft__col a:hover { color: color-mix(in srgb, var(--surface) 65%, transparent); }
.ft__col a small { font-size: 13px; color: color-mix(in srgb, var(--surface) 45%, transparent); }
.ft__legal { display: flex; flex-direction: column; gap: 14px; padding-top: 22px; border-top: 1px solid color-mix(in srgb, var(--surface) 18%, transparent); font-size: 12.5px; line-height: 1.8; color: color-mix(in srgb, var(--surface) 55%, transparent); }
.ft__legal p { max-width: 820px; }
.ft__bottom { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.ft__bottom a { color: inherit; }
.ft__bottom a:hover { color: var(--surface); }
.ft__bottom > span:last-child { margin-left: auto; }

/* 푸터 축약형 (가격·FAQ 등 하위 페이지) */
.ft--short { border-top: 1px solid color-mix(in srgb, var(--surface) 18%, transparent); }
.ft--short .ft__in { padding: 64px 0 36px; gap: 40px; }
.ft--short .ft__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 24px; }
.ft--short .ft__brand { gap: 10px; }
.ft--short .ft__mark { font-size: 72px; }
.ft--short .ft__brand strong { font-size: 22px; }
.ft__addr { font-size: 14.5px; font-weight: 300; line-height: 1.8; color: color-mix(in srgb, var(--surface) 70%, transparent); text-align: right; }
.ft__addr a { color: var(--surface); }
.ft__addr a:hover { color: color-mix(in srgb, var(--surface) 70%, transparent); }

/* 하위 페이지 대문 + 브레드크럼 */
.crumb { display: flex; gap: 10px; font-size: 13px; color: var(--muted); }
.crumb [aria-current] { color: var(--ink); }
.pg { padding: 64px 0 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 24px 80px; align-items: end; }
.pg__title { display: flex; flex-direction: column; gap: 18px; }
.pg__title h1 { font-size: clamp(44px, 6vw, 88px); line-height: 1.02; }
.pg__intro { display: flex; flex-direction: column; gap: 16px; padding-bottom: 10px; }
.pg__intro > p { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; font-weight: 300; color: var(--muted); max-width: 460px; }
.pg__intro > span { font-size: 13px; color: var(--muted); }
.h2--sm { font-size: clamp(30px, 3.4vw, 48px); line-height: 1.12; }
.h2--xs { font-size: clamp(28px, 3vw, 42px); line-height: 1.15; }
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 32px 80px; align-items: start; }
.split__head { display: flex; flex-direction: column; gap: 14px; }
.split__head--sticky { position: sticky; top: 100px; }
.split__head .lead { font-size: 15.5px; max-width: 400px; }
.split__head .ul-link { align-self: flex-start; font-size: 14.5px; }

/* 가격 — 한눈에 표 */
.ptable { padding: 0 0 72px; display: flex; flex-direction: column; gap: 22px; }
.ptable__scroll { overflow-x: auto; }
.ptable table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
.ptable caption { text-align: left; font-size: 12px; letter-spacing: .12em; color: var(--gold); padding-bottom: 14px; }
.ptable th { text-align: left; font-weight: 500; font-size: 13px; color: var(--muted); padding: 12px 16px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); }
.ptable td { padding: 18px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.ptable th:first-child, .ptable td:first-child { padding-left: 0; }
.ptable th:last-child, .ptable td:last-child { padding-right: 0; }
.ptable td:first-child a { font-weight: 700; font-size: 16.5px; }
.ptable td:nth-child(2), .ptable td:nth-child(3) { color: var(--muted); }
.ptable td:nth-child(3) { max-width: 320px; }
.ptable th:nth-child(n+4), .ptable td:nth-child(n+4) { text-align: right; white-space: nowrap; }
.ptable td:last-child { font-weight: 700; font-size: 17px; }
.ptable__note { font-size: 13.5px; line-height: 1.8; color: var(--muted); max-width: 760px; }

/* 가격 — 공진단 3종 카드 */
.rxsec { background: var(--paper); border-block: 1px solid var(--line); }
.rxsec__in { padding: 96px 0; display: flex; flex-direction: column; gap: 48px; }
.rxsec__head { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 80px; align-items: end; }
.rxsec__head > div { display: flex; flex-direction: column; gap: 14px; }
.rxsec__head .lead { font-size: 16px; max-width: 480px; }
.rxsec__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.pcard { display: flex; flex-direction: column; gap: 22px; padding: 36px 32px 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); transition: border-color .15s; }
.pcard:hover { border-color: var(--accent); }
.pcard__head { display: flex; flex-direction: column; gap: 8px; }
.pcard__label { font-size: 12.5px; letter-spacing: .1em; color: var(--gold); }
.pcard h3 { font-size: 26px; }
.pcard__kicker { font-size: 15px; color: var(--muted); }
.pcard__desc { font-size: 15px; line-height: 1.85; color: var(--muted); }
.pcard__points { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.pcard__points li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.pcard__points li::before { content: "—"; color: var(--gold); }
.pcard__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 6px; }
.pcard__foot span { font-size: 14px; color: var(--muted); }
.pcard__foot strong { font-size: 26px; letter-spacing: -.04em; }
.pcard--paper { background: var(--paper); max-width: 560px; }
.pcard--paper .pcard__foot { padding-top: 18px; border-top: 1px solid var(--ink); }
.cs { padding: 96px 0; }

/* 가격 — 비교 기준 3 (soft) */
.crit { background: var(--soft); border-block: 1px solid var(--line); }
.crit__in { padding: 88px 0; }
.crit__list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.crit__list > div { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.crit__list dt { font: 500 14px/1.6 var(--serif); color: var(--gold); padding-top: 4px; }
.crit__list dd { display: flex; flex-direction: column; gap: 6px; }
.crit__list strong { font-size: 17px; }
.crit__list span { font-size: 14.5px; line-height: 1.8; color: var(--muted); }

/* 가격 — 비용 FAQ 4 */
.pfaq { padding: 96px 0; }
.pfaq__list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.pfaq__list > div { display: flex; flex-direction: column; gap: 8px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pfaq__list dt { font-size: 17px; font-weight: 700; }
.pfaq__list dd { font-size: 15px; line-height: 1.85; color: var(--muted); }

/* FAQ 상세 */
.pg__intro--ink > p { color: var(--ink); }
.jumps { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }
.jumps a { padding: 6px 0; border-bottom: 1px solid var(--ink); white-space: nowrap; }
.jumps a:hover { color: var(--accent); border-color: var(--accent); }
.topics { padding: 0 0 96px; display: flex; flex-direction: column; gap: 96px; }
.topic { display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-start; }
.topic__head { flex: 1 1 240px; max-width: 300px; position: sticky; top: 100px; display: flex; flex-direction: column; gap: 12px; }
.topic__head h2 { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.15; }
.topic__head p { font-size: 15px; line-height: 1.75; font-weight: 300; color: var(--muted); }
.topic__body { flex: 999 1 400px; min-width: 0; max-width: 760px; display: flex; flex-direction: column; gap: 28px; }
.topic__body > p { font-size: 16.5px; line-height: 1.95; }
.topic__list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.topic__list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.topic__list li > span:first-child { font: 500 14px/1.6 var(--serif); color: var(--gold); padding-top: 3px; }
.topic__list li > span:last-child { display: flex; flex-direction: column; gap: 4px; }
.topic__list strong { font-size: 16.5px; }
.topic__list small { font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.topic__close { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 24px 28px; border-radius: 6px; background: var(--soft); }
.topic__close p { font-size: 15px; line-height: 1.75; max-width: 480px; }
.topic__close .btn { height: 46px; padding: 0 22px; font-size: 14.5px; }
.all { background: var(--paper); border-top: 1px solid var(--line); }
.all__in { padding: 96px 0 120px; display: flex; flex-wrap: wrap; gap: 32px 80px; align-items: flex-start; }
.all__in .faq__list { flex: 999 1 400px; min-width: 0; max-width: 760px; }
.all__in .faq__list summary { align-items: flex-start; padding: 22px 0; font-size: 17px; font-weight: 700; line-height: 1.5; }
.all__in .faq__list summary::after { color: var(--gold); font-size: 22px; }

/* 약장 진입 */
.pg--glossary { padding-bottom: 56px; gap: 32px 80px; }
.pg__mark { font: 500 clamp(64px, 8vw, 120px)/.9 var(--serif); color: var(--accent); }
.pg__title--glossary h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; }
.pg__stats { display: flex; flex-wrap: wrap; gap: 6px 24px; font-size: 13.5px; color: var(--muted); padding-top: 16px; border-top: 1px solid var(--line); }
.gsearch { padding: 0 0 96px; display: flex; flex-direction: column; gap: 32px; }
.gsearch__box { display: flex; flex-direction: column; gap: 14px; padding: 32px 32px 28px; border: 1px solid var(--ink); border-radius: 6px; background: var(--paper); }
.gsearch__box label { font-size: 13.5px; font-weight: 500; color: var(--gold); }
.gsearch__box input { width: 100%; height: 56px; padding: 0 0 0 2px; border: 0; border-bottom: 1px solid var(--line); background: transparent; font: 500 clamp(18px, 1.6vw, 24px)/1 var(--sans); color: var(--ink); letter-spacing: -.02em; }
.gsearch__box input::placeholder { color: #9a948a; }
.gsearch__box input:focus-visible { outline: 0; border-bottom-color: var(--ink); }
.gsearch__box p { font-size: 13.5px; color: var(--muted); }
.tabs { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14.5px; border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.tabs button { display: inline-flex; gap: 8px; align-items: baseline; padding: 10px 0; margin-bottom: -3px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.tabs button span { font-size: 12px; color: var(--muted); }
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.gcards li[hidden] { display: none; }
.gcard { display: flex; flex-direction: column; gap: 10px; padding: 24px 22px 22px; border: 1px solid var(--line); border-radius: 6px; background: var(--paper); height: 100%; transition: border-color .15s; }
.gcard:hover { border-color: var(--accent); color: inherit; }
.gcard__cat { font-size: 12px; letter-spacing: .08em; color: var(--gold); }
.gcard__name { font-size: 19px; font-weight: 700; letter-spacing: -.03em; }
.gcard__alias { font-size: 13.5px; color: var(--muted); }
.gcard__form { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); }
.gempty { padding: 40px 32px; border: 1px solid var(--line); border-radius: 6px; background: var(--soft); display: flex; flex-direction: column; gap: 10px; }
.gempty[hidden] { display: none; }
.gempty strong { font-size: 17px; }
.gempty p { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.dietsec { background: var(--deep); color: var(--surface); }
.dietsec__in { padding: 96px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 80px; align-items: center; }
.dietsec__head { display: flex; flex-direction: column; gap: 18px; }
.dietsec .kicker { color: color-mix(in srgb, var(--surface) 62%, transparent); }
.dietsec h2 { font-size: clamp(32px, 4vw, 56px); line-height: 1.08; }
.dietsec__head p { font-size: 16.5px; line-height: 1.8; font-weight: 300; color: color-mix(in srgb, var(--surface) 82%, transparent); max-width: 460px; }
.dietsec__side { display: flex; flex-direction: column; gap: 22px; }
.dietsec__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dietsec__grid li { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid color-mix(in srgb, var(--surface) 22%, transparent); border-radius: 6px; }
.dietsec__grid li > span:first-child { font: 500 26px/1 var(--serif); }
.dietsec__grid li > span:nth-child(2) { font-size: 14.5px; font-weight: 500; }
.dietsec__grid li > span:last-child { font-size: 12.5px; color: color-mix(in srgb, var(--surface) 62%, transparent); }
.dietsec__act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.dietsec__act .btn { height: 52px; padding: 0 28px; font-size: 15px; }
.dietsec__act span { font-size: 13px; color: color-mix(in srgb, var(--surface) 62%, transparent); }
.howto { padding: 96px 0; }
.howto__list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.howto__list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.howto__list li > span:first-child { font: 500 14px/1.6 var(--serif); color: var(--gold); padding-top: 4px; }
.howto__list li > span:last-child { display: flex; flex-direction: column; gap: 6px; }
.howto__list strong { font-size: 17px; }
.howto__list small { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.softcta { background: var(--soft); border-top: 1px solid var(--line); }
.softcta__in { padding: 72px 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; }
.softcta__text { display: flex; flex-direction: column; gap: 8px; max-width: 640px; }
.softcta__text strong { font-size: 20px; }
.softcta__text p { font-size: 15px; line-height: 1.8; color: var(--muted); }
.softcta .btn { height: 48px; padding: 0 24px; font-size: 14.5px; }

/* 약장 항목 */
.item-hero { padding: 56px 0 64px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px 80px; align-items: end; }
.item-hero--nophoto { grid-template-columns: minmax(0, 1fr); }
.item-hero__text { display: flex; flex-direction: column; gap: 20px; }
.item-hero__text .crumb { flex-wrap: wrap; }
.item-hero__text h1 { font-size: clamp(56px, 8vw, 128px); line-height: .96; letter-spacing: -.05em; }
.item-hero__lead { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; font-weight: 300; color: var(--muted); max-width: 560px; }
.item-hero__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); }
.item-hero__photo { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--soft); }
.item-hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.item { padding-bottom: 96px; display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 1fr); gap: 48px 80px; align-items: start; }
.toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.toc > span { font-size: 12.5px; letter-spacing: .08em; color: var(--gold); }
.toc ol { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.toc li { border-bottom: 1px solid var(--line); }
.toc a { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 10px 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.toc a:hover { color: var(--ink); }
.toc a > span:first-child { font-family: var(--serif); color: var(--gold); }
.toc summary { display: none; }
.article { display: flex; flex-direction: column; gap: 80px; min-width: 0; }
.article h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.15; }
.summary { display: flex; flex-direction: column; gap: 32px; }
.facts-dl { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.facts-dl > div { display: grid; grid-template-columns: minmax(0, 140px) minmax(0, 1fr); gap: 12px 28px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.facts-dl dt { font-size: 14px; font-weight: 700; padding-top: 2px; }
.facts-dl dd { display: flex; flex-direction: column; gap: 6px; font-size: 15.5px; line-height: 1.75; }
.facts-dl small { font-size: 12.5px; color: var(--gold); }
.claims { display: flex; flex-direction: column; gap: 16px; padding: 28px 32px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.claims > span { font-size: 13px; font-weight: 500; letter-spacing: .06em; color: var(--gold); }
.claims ul { display: flex; flex-direction: column; gap: 14px; }
.claims li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; font-size: 15px; line-height: 1.75; }
.claims li::before { content: "—"; color: var(--gold); }
.claims cite { font-style: normal; font-size: 13px; color: var(--muted); }
.photo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px 40px; align-items: end; padding: 32px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.photo > span { display: block; aspect-ratio: 3 / 4; max-width: 420px; border-radius: 6px; overflow: hidden; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo figcaption { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.7; color: var(--muted); }
.photo figcaption > span:first-child { font-size: 12.5px; letter-spacing: .08em; color: var(--gold); }
.photo figcaption > span:nth-child(2) { color: var(--ink); font-weight: 500; }
.photo figcaption > span:last-child { font-size: 13px; }
.sections { display: flex; flex-direction: column; gap: 64px; }
.sec { display: grid; grid-template-columns: minmax(0, 48px) minmax(0, 1fr); gap: 16px 28px; }
.sec__no { font: 500 22px/1.4 var(--serif); color: var(--gold); }
.sec__body { display: flex; flex-direction: column; gap: 18px; max-width: 720px; }
.sec__body h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }
.sec__body p { font-size: 16px; line-height: 1.9; font-weight: 300; }
.sec__body strong { font-weight: 700; }
.sec__body em { font-style: italic; }
.sec__body ul { display: flex; flex-direction: column; gap: 8px; padding: 18px 22px; background: var(--soft); border-radius: 6px; }
.sec__body li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 10px; font-size: 15px; line-height: 1.7; }
.sec__body li::before { content: "—"; color: var(--gold); }
.ifaq { display: flex; flex-direction: column; gap: 28px; }
.ifaq dl { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.ifaq dl > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 8px 40px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.ifaq dt { font-size: 17px; font-weight: 700; line-height: 1.5; }
.ifaq dd { font-size: 15px; line-height: 1.8; color: var(--muted); }
.refs { display: flex; flex-direction: column; gap: 24px; }
.refs h2 { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; }
.refs ol { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.refs li { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 1.7; }
.refs li > span:first-child { font-family: var(--serif); color: var(--gold); }
.refs li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.refs a { font-weight: 500; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line); }
.refs small { color: var(--muted); font-size: 13.5px; }
.refs__note { font-size: 13.5px; line-height: 1.8; color: var(--muted); padding: 18px 22px; background: var(--soft); border-radius: 6px; }
.related { display: flex; flex-direction: column; gap: 14px; }
.related > span { font-size: 12.5px; letter-spacing: .08em; color: var(--gold); }
.related ul { display: flex; flex-wrap: wrap; gap: 10px; }
.related .btn:hover { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.cta--row .cta__in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px 48px; padding: 88px 0; }
.cta--row .cta__text { display: flex; flex-direction: column; gap: 10px; max-width: 620px; }
.cta--row h2 { font-size: clamp(26px, 3vw, 40px); line-height: 1.15; }
.cta--row p { font-size: 15.5px; line-height: 1.8; font-weight: 300; color: color-mix(in srgb, var(--surface) 78%, transparent); }
.cta--row .btn { height: 52px; padding: 0 28px; font-size: 15px; }
.cta--row .btn--paper { color: var(--deep); }
.cta--row .btn--paper:hover { background: var(--accent); color: var(--surface); }

/* 체질 식이법 인덱스 */
.diet-hero { background: var(--deep); color: var(--surface); }
.diet-hero__in { padding: 72px 0 80px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 80px; align-items: end; }
.diet-hero__title { display: flex; flex-direction: column; gap: 18px; }
.diet-hero .crumb { color: color-mix(in srgb, var(--surface) 62%, transparent); }
.diet-hero .crumb [aria-current] { color: var(--surface); }
.diet-hero__mark { font: 500 clamp(56px, 7vw, 104px)/.9 var(--serif); color: color-mix(in srgb, var(--surface) 88%, transparent); }
.diet-hero h1 { font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; }
.diet-hero__intro { display: flex; flex-direction: column; gap: 18px; padding-bottom: 10px; }
.diet-hero__intro > p:first-child { font-size: clamp(17px, 1.4vw, 20px); line-height: 1.7; font-weight: 300; color: color-mix(in srgb, var(--surface) 84%, transparent); max-width: 480px; }
.diet-hero__intro > p:last-child { font-size: 14px; line-height: 1.7; color: color-mix(in srgb, var(--surface) 62%, transparent); padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--surface) 20%, transparent); }
.dcards { padding: 88px 0 96px; display: flex; flex-direction: column; gap: 40px; }
.dcards__head { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.dcards__head h2 { font-size: clamp(28px, 3.2vw, 44px); line-height: 1.12; }
.dcards__head p { font-size: 15.5px; line-height: 1.8; color: var(--muted); }
.dcards__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 20px; }
.dcard { display: flex; flex-direction: column; gap: 18px; padding: 30px 28px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.dcard__head { display: flex; flex-direction: column; gap: 6px; }
.dcard__hanja { font: 500 40px/1 var(--serif); color: var(--accent); }
.dcard h3 { font-size: 24px; }
.dcard__head p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.dcard__links { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.dcard__links li { border-bottom: 1px solid var(--line); }
.dcard__links a { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 2px; font-size: 15px; font-weight: 500; }
.dcard__links a span:last-child { color: var(--gold); }
.dband { background: var(--soft); border-block: 1px solid var(--line); }
.dband__in { padding: 72px 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px 80px; align-items: start; }
.dband h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.dband__text { display: flex; flex-direction: column; gap: 14px; font-size: 15.5px; line-height: 1.8; color: var(--muted); }
.dband__text a { font-weight: 700; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); align-self: flex-start; }
.dsrc { padding: 88px 0 96px; }
.dsrc__body { display: flex; flex-direction: column; gap: 24px; }
.dsrc__list { display: flex; flex-direction: column; border-top: 1px solid var(--ink); }
.dsrc__list li { display: flex; flex-direction: column; gap: 4px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.dsrc__list a, .dsrc__list strong { font-size: 16px; font-weight: 700; }
.dsrc__list a:hover { color: var(--accent); }
.dsrc__list .pub { font-size: 12.5px; color: var(--gold); }
.dsrc__list p { font-size: 14.5px; line-height: 1.7; color: var(--muted); }
.dsrc__note { font-size: 13.5px; line-height: 1.8; color: var(--muted); padding: 18px 22px; background: var(--soft); border-radius: 6px; }

/* 식이 안내문 (인쇄용) */
.doc-hero { padding: 56px 0 48px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px 80px; align-items: end; }
.doc-hero__title { display: flex; flex-direction: column; gap: 16px; }
.doc-hero__title .crumb { flex-wrap: wrap; }
.doc-hero__name { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; }
.doc-hero__hanja { font: 500 clamp(56px, 7vw, 104px)/.9 var(--serif); color: var(--accent); }
.doc-hero h1 { font-size: clamp(36px, 4.6vw, 64px); line-height: 1.04; }
.doc-hero__stage { font-size: 17px; color: var(--muted); }
.doc-hero__act { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding-bottom: 12px; }
.doc-hero__act .btn { height: 48px; padding: 0 24px; font-size: 14.5px; cursor: pointer; }
.doc-hero__act .btn:not(.btn--fill):hover { background: var(--ink); color: var(--surface); }
.doc { padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.dsec { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 24px 80px; align-items: start; padding-top: 32px; border-top: 1px solid var(--ink); }
.dsec__head { display: flex; flex-direction: column; gap: 8px; }
.dsec__no { font: 500 14px/1.6 var(--serif); color: var(--gold); }
.dsec h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.2; }
.dsec__head p { font-size: 14px; line-height: 1.7; color: var(--muted); }
.dsec__body { grid-column: span 2; }
.rules { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rules li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.75; }
.rules li > span:first-child { font: 500 14px/1.6 var(--serif); color: var(--gold); padding-top: 4px; }
.foods { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.foods > div { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.foods dt { display: inline-flex; align-self: flex-start; padding: 4px 10px; border-radius: 999px; background: var(--soft); font-size: 12.5px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.foods dd { font-size: 15.5px; line-height: 1.8; }
.life { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.life li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.75; }
.life li::before { content: "—"; color: var(--gold); }
.doc__usage { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 12px 80px; padding: 28px 32px; background: var(--soft); border-radius: 6px; }
.doc__usage strong { font-size: 15px; }
.doc__usage p { font-size: 14.5px; line-height: 1.8; color: var(--muted); grid-column: span 2; }
@media (max-width: 767px) {
  .dsec__body, .doc__usage p { grid-column: auto; }
  .diet-hero__in { padding: 48px 0 56px; }
  .dcards, .dsrc { padding-block: 56px; }
  .dband__in { padding-block: 48px; }
  .doc-hero { padding: 32px 0 24px; }
}
@media print {
  [data-noprint], .sticky, .ft { display: none !important; }
  body { background: #fff; color: #000; }
  .doc-hero, .doc { width: auto; }
  .foods > div { break-inside: avoid; border-color: #ccc; }
  .dsec { break-inside: avoid; }
  .foods dt { background: #eee; color: #000; }
}

/* deep CTA 변형 */
.cta--deep { background: var(--deep); }
.cta--deep .cta__in { padding: 96px 0; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 40px 80px; }
.cta--deep h2 { font-size: clamp(32px, 4vw, 56px); }
.cta--deep .cta__body p { font-size: 16.5px; }
.cta--deep .btn--paper { color: var(--deep); height: 52px; padding: 0 28px; font-size: 15px; }
.cta--deep .btn--paper:hover { background: var(--accent); color: var(--surface); }

/* 하단 고정 문의 바 */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: 68px; display: none; align-items: center; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.sticky.is-on { display: flex; }
.sticky__in { width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky__txt { font-size: 14.5px; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky__btns { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.sticky__btns .btn { height: 44px; padding: 0 22px; font-size: 14.5px; }
.sticky__x { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.sticky__x:hover { border-color: var(--ink); color: var(--ink); }

/* 모바일 (design-spec 06-h: 768px 미만 햄버거 → 전면 드로어) */
@media (max-width: 767px) {
  .hd .nav, .hd > .hd__in > .btn { display: none; }
  .menu-btn { display: inline-flex; align-items: center; justify-content: center; }
  /* 스크롤 잠금은 html 에 건다 — html·body 의 overflow-x: clip 때문에 body 에 걸면 잠금이 새고 sticky 헤더가 밀려 올라간다(2026-09-25) */
  html:has(body.menu-open) { overflow: hidden; }
  /* backdrop-filter가 fixed 자식의 containing block이 되므로 드로어가 열릴 때는 헤더에서 뗀다 */
  body.menu-open .hd { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface); }
  /* 메뉴가 열리면 헤더를 화면 맨 위에 고정 — iOS 에서 잠금이 새도 본문이 비치지 않게 */
  body.menu-open .hd { position: fixed; top: 0; left: 0; right: 0; }
  body.menu-open .sticky { display: none; }
  body.menu-open .hd .nav { position: fixed; top: 72px; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; flex-direction: column; gap: 0; padding: 24px; background: var(--surface); font-size: 18px; overflow-y: auto; overscroll-behavior: contain; }
  body.menu-open .hd .nav a:not(.btn) { padding: 18px 4px; border-bottom: 1px solid var(--line); color: var(--ink); }
  body.menu-open .hd .nav .btn { display: inline-flex; margin-top: 24px; height: 52px; font-size: 16px; justify-content: center; }
  .hero { padding-top: 32px; }
  .facts div { padding: 20px 16px 22px 0; }
  .who, .price, .steps { padding-block: 72px; }
  .who__head, .faq__head { position: static; }
  .rx__in, .verify__in { padding-block: 64px; }
  .alt__list a { flex-direction: column; align-items: flex-start; gap: 6px; }
  .doc__body { gap: 32px; }
  .faq { padding-bottom: 72px; }
  .cta__in { padding-block: 64px; }
  .ft__in { padding: 56px 0 28px; gap: 40px; }
  .ft__addr { text-align: left; }
  .pg { padding: 40px 0 32px; }
  .rxsec__in, .cs, .crit__in, .pfaq { padding-block: 56px; }
  .split__head--sticky { position: static; }
  .topics { gap: 64px; padding-bottom: 64px; }
  .topic__head { position: static; max-width: none; }
  .all__in { padding: 64px 0 72px; }
  /* 항목 페이지: 목차는 본문 위에서 접기 (HANDOFF §3.4-2) */
  .item-hero { padding: 32px 0 40px; }
  .item { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-bottom: 64px; }
  .toc { position: static; padding: 0; }
  .toc > span { display: none; }
  .toc summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; padding: 14px 0; border-block: 1px solid var(--ink); font-size: 14px; font-weight: 700; }
  .toc summary::after { content: "+"; color: var(--gold); font-size: 20px; line-height: 1; }
  .toc details[open] summary::after { content: "–"; }
  .toc ol { border-top: 0; }
  .article { gap: 56px; }
  .sections { gap: 44px; }
  .sec { grid-template-columns: minmax(0, 32px) minmax(0, 1fr); gap: 12px 16px; }
  .cta--row .cta__in { padding: 64px 0; }
  .sticky__txt { display: none; }
  .sticky__in { justify-content: flex-end; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   표면 레이어 — 본원(www)과 같은 「떠 있는 카드」 (2026-09-17 원장 결정)
   ──────────────────────────────────────────────────────────────────────
   원장: 「소원재·묵담재·인물노트는 종이에 적힌 느낌(플랫)이 맞는데, 웰니스·해독은
         전단지처럼 돼 버렸다 — 본원 같은 느낌이 맞다.」
   본원 홈 실측 토큰(Tailwind): 카드 rounded-2xl(16px) · 휴식 shadow-sm · hover shadow-md
   + translateY(-2px) · 사진 20px · 버튼 shadow-sm. 배경(surface) 위에 흰 카드(paper).
   위 규칙은 건드리지 않고 이 블록이 뒤에서 덮는다 — 되돌리려면 이 블록만 지운다.
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --r-card: 16px;
  --r-box: 12px;
  --r-photo: 20px;
  --sh-sm: 0 1px 2px 0 rgba(31, 30, 27, .06), 0 1px 3px 0 rgba(31, 30, 27, .05);
  --sh-md: 0 4px 6px -1px rgba(31, 30, 27, .10), 0 2px 4px -2px rgba(31, 30, 27, .08);
  --sh-lg: 0 10px 15px -3px rgba(31, 30, 27, .12), 0 4px 6px -4px rgba(31, 30, 27, .08);
  --sh-xl: 0 20px 25px -5px rgba(31, 30, 27, .14), 0 8px 10px -6px rgba(31, 30, 27, .08);
  --lift: translateY(-2px);
  --ease: .2s cubic-bezier(.2, .7, .2, 1);
}

/* 카드 3종 — 흰 종이가 배경 위에 떠 있다 */
.pcard, .gcard, .dcard {
  background: var(--paper);
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--ease), transform var(--ease), border-color var(--ease);
}
.pcard:hover, .gcard:hover, .dcard:hover, a.gcard:hover, a.pcard:hover {
  box-shadow: var(--sh-md);
  transform: var(--lift);
  border-color: color-mix(in srgb, var(--line) 70%, transparent);
}

/* 사진 타일 — 더 크게 둥글고 한 단 더 떠 있다 */
.hero__photo, .alt__photo, .verify__photo, .item-hero__photo, .photo > span {
  border-radius: var(--r-photo);
  box-shadow: var(--sh-lg);
}
.rxcard__tile {
  border-radius: var(--r-card);
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .35), 0 4px 6px -4px rgba(0, 0, 0, .25);
  transition: transform var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.rxcard:hover .rxcard__tile { transform: var(--lift); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, .4), 0 8px 10px -6px rgba(0, 0, 0, .3); }

/* 홈 — 헤어라인 목록이던 것을 카드로 (전단지 문법 → 본원 문법) */
.price__grid { border-top: 0; gap: 20px; }
.price__grid > div {
  padding: 32px 30px 34px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.price__grid > div:hover { box-shadow: var(--sh-md); transform: var(--lift); }

.steps__list { gap: 20px; }
.steps__list li {
  padding: 30px 28px 32px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--sh-sm);
}

.cases { gap: 16px; }
.case {
  padding: 28px 30px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--ease), transform var(--ease);
}
.case:hover { box-shadow: var(--sh-md); transform: var(--lift); }

.verify__list { border-top: 0; gap: 12px; }
.verify__list li {
  padding: 18px 22px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--r-box);
  background: var(--paper);
  box-shadow: var(--sh-sm);
}

.faq__list { border-top: 0; gap: 12px; }
.faq__list details {
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--sh-sm);
  transition: box-shadow var(--ease);
}
.faq__list details[open] { box-shadow: var(--sh-md); }
.faq__list summary { padding: 22px 26px; }
.faq__a { padding: 0 26px 26px; }

.strip {
  padding: 24px 28px;
  margin-top: 40px;
  border: 1px solid color-mix(in srgb, var(--line) 70%, transparent);
  border-radius: var(--r-card);
  background: var(--paper);
  box-shadow: var(--sh-sm);
}

/* 작은 박스들 */
.gsearch__box { border-radius: var(--r-card); box-shadow: var(--sh-md); border-color: color-mix(in srgb, var(--line) 70%, transparent); }
.gsearch__box:focus-within { box-shadow: var(--sh-lg); }
.gempty, .claims, .foods > div, .dietsec__grid li, .topic__close, .doc__usage, .sec__body ul, .refs__note, .dsrc__note {
  border-radius: var(--r-box);
}
.claims, .foods > div { box-shadow: var(--sh-sm); border-color: color-mix(in srgb, var(--line) 70%, transparent); }

/* 버튼 — 채움 버튼은 살짝 떠 있고, 누르면 가라앉는다 */
.btn--fill, .btn--accent, .btn--paper { box-shadow: var(--sh-sm); transition: background-color .15s, color .15s, box-shadow var(--ease), transform var(--ease); }
.btn--fill:hover, .btn--accent:hover, .btn--paper:hover { box-shadow: var(--sh-md); transform: var(--lift); }
.btn--fill:active, .btn--accent:active, .btn--paper:active { box-shadow: var(--sh-sm); transform: none; }

/* 움직임을 줄인 환경 */
@media (prefers-reduced-motion: reduce) {
  .pcard, .gcard, .dcard, .price__grid > div, .case, .rxcard__tile, .btn--fill, .btn--accent, .btn--paper, .faq__list details { transition: none; }
  .pcard:hover, .gcard:hover, .dcard:hover, .price__grid > div:hover, .case:hover, .rxcard:hover .rxcard__tile, .btn--fill:hover, .btn--accent:hover, .btn--paper:hover { transform: none; }
}

/* 폭 — 본원처럼 두 겹 (원장 9/17 「좌우폭 제한이 없으니 전단지」 → 「너무 줄이니 답답·모바일 같다」)
   본원: 섹션 배경은 화면 끝까지(풀블리드, 흰색↔연회색 교대) · 콘텐츠 폭은 섹션마다 다르다
         (카드 그리드 max-w-6xl 1152 · 일반 max-w-5xl 1024 · 읽는 글 max-w-3xl 768) · 히어로는 화면 가득.
   여기선 HTML 을 안 건드리고 CSS 만으로 같은 구조를 만든다 — 섹션 자체가 .wrap 이라 배경은
   box-shadow 100vmax 트릭으로 화면 끝까지 칠한다(clip-path 로 가로 스크롤 방지). */
:root { --wrap: min(1200px, 100% - 48px); --wrap-md: min(1040px, 100% - 48px); --wrap-sm: min(768px, 100% - 48px); }
html, body { overflow-x: clip; }

/* 읽는 섹션은 한 단 좁게 */
.who, .price, .steps, .faq, .strip, .pfaq, .crit__in, .all__in { width: var(--wrap-md); }

/* 섹션 배경 교대 — 흰색 섹션은 화면 끝까지 */
.who, .steps {
  background: var(--paper);
  box-shadow: 0 0 0 100vmax var(--paper);
  clip-path: inset(0 -100vmax);
  padding-top: 96px; padding-bottom: 96px;
  margin-top: 64px;
}
.strip { margin-bottom: 0; }
.price { padding-top: 96px; padding-bottom: 96px; }
.faq { padding-top: 96px; }
.who .case, .steps__list li { box-shadow: var(--sh-md); }        /* 흰 배경 위 흰 카드는 한 단 더 띄운다 */

/* 히어로 — 사진이 화면을 이끈다 */
.hero { padding-top: 40px; }
.hero__photo { height: clamp(420px, 56vw, 760px); }
.hero__title h1 { font-size: clamp(42px, 5.6vw, 84px); }
.facts strong { font-size: clamp(30px, 3vw, 44px); }
.rxcard__mark { font: 500 clamp(64px, 6vw, 96px)/.85 var(--serif); }
.cta h2 { font-size: clamp(34px, 4.2vw, 60px); }
.doc { width: var(--wrap); margin-inline: auto; border-top: 0; gap: 56px; }
.doc__photo { border-radius: var(--r-photo); overflow: hidden; box-shadow: var(--sh-lg); }
@media (max-width: 720px) { .doc { width: auto; } .who, .steps { margin-top: 32px; padding-top: 64px; padding-bottom: 64px; } }

/* ══════════════════════════════════════════════════════════════════════
   본원 타이포·버튼 레이어 (2026-09-25 원장 결정: 「웰니스를 본원과 똑같이」)
   ──────────────────────────────────────────────────────────────────────
   값은 www.dongjedang.com(스킨 clean) 라이브 실측. 위 규칙은 건드리지 않고
   이 블록이 뒤에서 덮는다 — 되돌리려면 이 블록만 지운다.
   · 폭·카드·섹션 여백은 9/17 표면 레이어에서 이미 본원에 맞췄다(원장 「너무 줄이니 답답」
     → 1200/1040 유지). 여기서는 아직 다른 셋만 맞춘다: 글씨체 · 버튼 · 킥커.
   · 본문 글꼴 목록은 본원과 같게 "Pretendard" → "Noto Sans KR". 본원도 Pretendard 파일은
     불러오지 않으므로 대부분의 방문자에게는 두 사이트 모두 Noto Sans KR로 보인다.
   ══════════════════════════════════════════════════════════════════════ */
:root { --sans: "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif; }
body { line-height: 1.625; }

/* 제목 — 본원: Noto Serif KR 700, 자간 -0.02em (h1~h4, 카드 제목, 로고 글자까지) */
h1, h2, h3, .h2,
.hero__title h1, .item-hero__text h1, .doc__head h2, .cta h2,
.case__body h3, .alt__text h3, .price__grid h3, .verify__col h3,
.rxcard__name, .gcard__name, .brand__name strong, .ft__brand strong {
  font-family: var(--serif);
  font-weight: 700;
  letter-spacing: -.02em;
}

/* 본문 — 본원 섹션 설명: 400, 행간 1.625 · 대문 설명: 명조 300, 행간 2 */
.lead { font-weight: 400; line-height: 1.625; }
.hero__desc > p { font-family: var(--serif); font-weight: 300; line-height: 2; }

/* 킥커 — 본원 .eyebrow: 14px 700, 자간 .12em, accent-strong, 앞 가로선 없음
   (어두운 섹션의 .rx .kicker · .dietsec .kicker 색은 위 규칙이 더 구체적이라 그대로 유지) */
.kicker { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.kicker--line::before { display: none; }

/* 버튼 — 본원: 모든 버튼 48px · 16px · 600 · 여백 0 24px · 알약 */
.btn { height: 48px; padding: 0 24px; font-size: 16px; font-weight: 600; }
/* 주 버튼(잉크·강조 채움) → 135° 그라디언트, 호버에서 역전 */
.btn--fill, .btn--accent {
  border-color: transparent;
  background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  color: var(--text-on-accent);
}
.btn--fill:hover, .btn--accent:hover {
  background: linear-gradient(135deg, var(--accent-gradient-end), var(--accent-gradient-start));
  color: var(--text-on-accent);
}
/* 보조 버튼(테두리) → 흰 바탕 + 연한 실선. 초록 띠 위 .btn--ghost·.btn--paper는 제외(흰 바탕이면 글자가 사라진다) */
:where(.btn):not(.btn--fill, .btn--accent, .btn--paper, .btn--ghost) {
  background: var(--bg-surface);
  border-color: var(--border-subtle);
  color: var(--text-main);
}

/* ── 푸터 링크 열 정리 (2026-09-25 원장: 「이 부분만 이쁘게」) ─────────────────
   열 제목이 명조·넓은 자간으로 흩어지고, 링크가 17px + 줄마다 실선이라 무거웠다.
   → 제목은 고딕 13px 라벨 + 밑줄 한 줄, 링크는 15px 가벼운 목록, ↗는 글자 옆에. */
.ft__cols { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 36px 48px; padding-top: 44px; border-top: 1px solid color-mix(in srgb, var(--surface) 16%, transparent); }
.ft__col { padding: 0; gap: 2px; }
.ft__col h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; letter-spacing: .02em; color: color-mix(in srgb, var(--surface) 62%, transparent); padding-bottom: 12px; margin-bottom: 8px; border-bottom: 1px solid color-mix(in srgb, var(--surface) 16%, transparent); }
.ft__col a, .ft__col > span { display: inline-flex; align-self: flex-start; justify-content: flex-start; align-items: center; gap: 6px; padding: 7px 0; border-top: 0; font-size: 15px; line-height: 1.5; color: color-mix(in srgb, var(--surface) 88%, transparent); }
.ft__col a:hover { color: var(--surface); }
.ft__col a small { font-size: 12px; color: color-mix(in srgb, var(--surface) 45%, transparent); transition: transform .15s, color .15s; }
.ft__col a:hover small { color: var(--surface); transform: translate(2px, -2px); }
.ft__col > span { font-size: 14px; color: color-mix(in srgb, var(--surface) 50%, transparent); }
@media (max-width: 720px) {
  .ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; padding-top: 32px; }
}

/* ── 푸터 고지·사업자 정보 정리 (2026-09-25) ── 고지 · 사업자 한 줄 · 링크와 © 한 줄 */
.ft__legal { gap: 16px; padding-top: 28px; border-top: 1px solid color-mix(in srgb, var(--surface) 16%, transparent); font-size: 12.5px; }
.ft__legal p { max-width: 760px; line-height: 1.75; color: color-mix(in srgb, var(--surface) 58%, transparent); }
.ft__bottom { align-items: center; gap: 8px 20px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--surface) 10%, transparent); font-size: 13px; }
.ft__bottom a { color: color-mix(in srgb, var(--surface) 82%, transparent); }
.ft__bottom a:hover { color: var(--surface); }
.ft__bottom > span:last-child { margin-left: auto; font-size: 12.5px; color: color-mix(in srgb, var(--surface) 55%, transparent); }
@media (max-width: 720px) {
  .ft__bottom > span:last-child { margin-left: 0; width: 100%; }
}
@media (max-width: 720px) {
}

/* ══════════════════════════════════════════════════════════════════════
   본원 전면 레이어 (2026-09-25 원장: 「선별하지 말고 다 해줘」)
   ──────────────────────────────────────────────────────────────────────
   www.dongjedang.com 라이브 실측값으로 카드·누름 효과·사진·폭·섹션 여백·헤더를 맞춘다.
   9/17 표면 레이어와 위 본원 타이포 레이어를 이 블록이 뒤에서 덮는다 — 되돌리려면 이 블록만 지운다.
   ══════════════════════════════════════════════════════════════════════ */
:root {
  --wrap: min(1120px, 100% - 48px);      /* 본원 .page-container 1120 · 좌우 24px */
  --wrap-md: min(1024px, 100% - 48px);   /* 본원 max-w-5xl 1024 — 읽는 섹션 */
  --cos-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -1px rgba(0, 0, 0, .06);
  --cos-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -2px rgba(0, 0, 0, .05);
  --cos-ease: .2s ease-out;
}

/* 헤더 — 본원 80px */
.hd__in { min-height: 80px; padding-block: 0; }

/* 카드 — 본원 .card: 흰 바탕 · 1px 회색 실선 · 16px · 중간 그림자, 올리면 4px 뜨고 테두리 강조색 */
.pcard, .gcard, .dcard, .price__grid > div, .steps__list li, .case, .verify__list li,
.faq__list details, .strip, .claims, .foods > div {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  box-shadow: var(--cos-shadow-md);
  transition: transform var(--cos-ease), box-shadow var(--cos-ease), border-color var(--cos-ease);
}
.pcard:hover, .gcard:hover, .dcard:hover, a.gcard:hover, a.pcard:hover, .price__grid > div:hover, .steps__list li:hover,
.case:hover, .verify__list li:hover, .faq__list details:hover, .strip:hover, .claims:hover, .foods > div:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: var(--cos-shadow-lg);
}
.who .case, .steps__list li { box-shadow: var(--cos-shadow-md); }   /* 9/17 「흰 배경 위 한 단 더」 해제 — 본원은 한 단계 */
.faq__list details[open] { box-shadow: var(--cos-shadow-lg); }
.who .case:hover { box-shadow: var(--cos-shadow-lg); }   /* 위 .who .case 보다 뒤에 둬야 올림 그림자가 이긴다 */

/* 사진 — 본원 16px, 그림자 없음 (둥둥 떠 보이던 것) */
.hero__photo, .alt__photo, .verify__photo, .item-hero__photo, .photo > span, .doc__photo {
  border-radius: 16px;
  box-shadow: none;
}

/* 버튼 누름 — 본원 .btn--primary: 올리면 1px 뜨고, 누르면 1px 내려가며 98% */
.btn--fill, .btn--accent, .btn--paper { box-shadow: var(--cos-shadow-md); transition: transform var(--cos-ease), box-shadow var(--cos-ease), background var(--cos-ease), color var(--cos-ease); }
.btn--fill:hover, .btn--accent:hover, .btn--paper:hover { transform: translateY(-1px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .15), 0 4px 6px -2px rgba(0, 0, 0, .1); }
.btn--fill:active, .btn--accent:active, .btn--paper:active { transform: translateY(1px) scale(.98); box-shadow: 0 2px 4px -1px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .06); }
/* 보조 버튼 — 올리면 바탕 크림, 누르면 옅은 강조 바탕 + 98% */
:where(.btn):not(.btn--fill, .btn--accent, .btn--paper, .btn--ghost) { transition: transform var(--cos-ease), background var(--cos-ease), border-color var(--cos-ease), color var(--cos-ease); }
:where(.btn):not(.btn--fill, .btn--accent, .btn--paper, .btn--ghost):hover { background: var(--bg-body); }
:where(.btn):not(.btn--fill, .btn--accent, .btn--paper, .btn--ghost):active { background: var(--accent-soft); transform: scale(.98); }
.btn--ghost:active { transform: scale(.98); }

/* 섹션 여백 — 본원 py-20(80px). 모바일은 기존 값 유지 */
@media (min-width: 721px) {
  .who, .steps, .price { padding-top: 80px; padding-bottom: 80px; }
  .who, .steps { margin-top: 48px; }
  .faq { padding-top: 80px; padding-bottom: 80px; }
  .rx__in, .verify__in, .cta__in, .rxsec__in, .cs, .crit__in, .pfaq { padding-top: 80px; padding-bottom: 80px; }
  .all__in { padding-top: 80px; padding-bottom: 80px; }
}

@media (prefers-reduced-motion: reduce) {
  .pcard, .gcard, .dcard, .price__grid > div, .steps__list li, .case, .verify__list li, .faq__list details, .strip, .claims, .foods > div,
  .btn, .btn--fill, .btn--accent, .btn--paper { transition: none; transform: none !important; }
}

/* 가격 페이지 FAQ — 선 목록 → 홈 FAQ와 같은 본원 카드 (2026-09-25 「세부 페이지도」) */
.pfaq__list { border-top: 0; gap: 12px; }
.pfaq__list > div {
  padding: 22px 26px; border: 1px solid var(--border-subtle); border-radius: 16px; background: var(--bg-surface);
  box-shadow: var(--cos-shadow-md); transition: transform var(--cos-ease), box-shadow var(--cos-ease), border-color var(--cos-ease);
}
.pfaq__list > div:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--cos-shadow-lg); }

/* ══════════════════════════════════════════════════════════════════════
   Clinic OS 컴포넌트 (2026-09-25 원장: 「페이지를 다시 짜」 — 본원 구조로 전면 재작성)
   ──────────────────────────────────────────────────────────────────────
   본원(www.dongjedang.com) 홈의 섹션 문법을 그대로 옮긴 부품. 색은 data-skin 토큰에서 온다.
   다시 짠 페이지는 이 부품만 쓴다(옛 .hero/.who/.rx … 는 아직 안 옮긴 페이지용으로 남아 있다).
   ══════════════════════════════════════════════════════════════════════ */
.page-container { width: min(1120px, 100% - 48px); margin-inline: auto; }
.page-container--narrow { width: min(1024px, 100% - 48px); }
.page-container--read { width: min(768px, 100% - 48px); }
.section { padding-block: 80px; }
.section--tone-elevated { background: var(--bg-surface); border-block: 1px solid var(--border-subtle); }
.section-header { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; margin-bottom: 48px; }
.section-header--left { align-items: flex-start; text-align: left; }
.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-strong); }
.section-title { font-family: var(--serif); font-size: clamp(28px, 3vw, 36px); line-height: 1.3; font-weight: 700; letter-spacing: -.02em; color: var(--text-main); }
.section-description { max-width: 36rem; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.7; color: var(--text-muted); }

.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row-center { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

.card { display: flex; flex-direction: column; gap: 12px; padding: 32px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px;
        box-shadow: var(--cos-shadow-md); transition: transform var(--cos-ease), box-shadow var(--cos-ease), border-color var(--cos-ease); color: var(--text-main); }
.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--cos-shadow-lg); }
.card--soft { background: var(--accent-soft); border-color: transparent; box-shadow: none; }
.card--soft:hover { border-color: var(--accent); }
/* 2026-09-27 원장: 올리브 카드(버튼과 같은 그라데이션) — 약장 「자료 읽는 방법」 네 카드 */
.card--olive { background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end)); }
.card--olive .card-title { color: var(--text-on-accent); }
.card--olive .card-body { color: rgba(255,255,255,.8); }
.card--olive .card-no { color: rgba(255,255,255,.7); }
.card--flush { padding: 0; overflow: hidden; }
.card__pad { display: flex; flex-direction: column; gap: 12px; padding: 24px 28px 28px; }
.card-no { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent-highlight); }
.card-label { font-size: 13px; font-weight: 600; color: var(--text-muted); }
.card-title { font-family: var(--serif); font-size: 20px; line-height: 1.4; font-weight: 700; letter-spacing: -.02em; color: var(--text-main); }
.card-body { font-size: 15px; line-height: 1.7; color: var(--text-muted); }
/* 2026-09-27 원장: 흰 카드 안 아이보리 상자가 튄다 — 해독 사이트엔 흰 카드 안 칠 상자가 없다. 칠 대신 윗선 하나로 구분 */
.card-note { font-size: 14px; line-height: 1.7; color: var(--text-main); padding: 14px 0 0; margin-top: auto; border-top: 1px solid var(--border-subtle); }
/* 2026-09-27: 3단 카드 — 본문 길이가 달라도 설명 줄과 링크가 세 카드에서 같은 높이에 오게 바닥에 붙인다 */
.card-note + .card-link { margin-top: 8px; }
/* 2026-09-27 원장: 옅은 카드의 링크를 올리브 알약 버튼으로 — 카드 폭으로 늘어나지 않고 바닥에 붙는다 */
.card-btn { align-self: flex-start; margin-top: auto; }
.card__pad:has(.card-btn) { flex: 1; }  /* 카드 전체가 링크인 경우(card--flush) 버튼이 세 카드 바닥에 나란히 */
.card-link { margin-top: auto; padding-top: 4px; font-size: 14px; font-weight: 600; color: var(--accent); }
a.card:hover .card-link, .card-link:hover { color: var(--accent-strong); }
.card-mark { display: flex; align-items: baseline; justify-content: space-between; padding: 28px; background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end)); }  /* 2026-09-27 원장: 한자 칸 올리브(버튼과 같은 그라데이션) */
.card-mark b { font: 500 64px/1 var(--serif); color: var(--text-on-accent); }
.card-mark small { font-size: 12px; letter-spacing: .14em; color: rgba(255,255,255,.72); }

.stat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.stat strong { font-size: clamp(30px, 3vw, 40px); font-weight: 700; letter-spacing: -.03em; line-height: 1; color: var(--accent); }
.stat span { font-size: 14px; color: var(--text-muted); }
.stat strong small { font-size: .45em; font-weight: 700; margin-left: 2px; letter-spacing: 0; }
.stat--olive { background: linear-gradient(135deg, var(--accent), var(--deep)); }  /* 웰니스 올리브(주 버튼과 같은 색) — 2026-09-25 원장: 금색이 어색 */
.stat--olive strong, .stat--olive span { color: #fff; }
.stat--wide { grid-column: 1 / -1; }
.stat--text strong { font-size: clamp(22px, 2.2vw, 28px); padding-top: 6px; }

.cos-photo { display: block; border-radius: 16px; overflow: hidden; background: var(--accent-soft); }
.cos-photo img { width: 100%; height: 100%; object-fit: cover; }

.hero-section { padding-block: clamp(80px, 12vw, 160px) clamp(56px, 7vw, 96px); text-align: center; }
.hero-section .eyebrow { display: block; margin-bottom: 28px; letter-spacing: .3em; font-weight: 500; }
.hero-title { font-family: var(--serif); font-size: clamp(44px, 7.5vw, 112px); line-height: 1.2; font-weight: 400; letter-spacing: -.02em; color: var(--text-main); margin-bottom: 40px; }
.hero-lead { max-width: 40rem; margin-inline: auto; font-family: var(--serif); font-size: clamp(17px, 1.5vw, 20px); line-height: 2; font-weight: 300; color: var(--text-muted); }
.hero-actions { margin-top: 40px; }
/* 배경화면 — 본원 설산 배경판에서 산 자리에 큰 달이 떠 있는 장면(그림은 build.py HERO_MOON 캔버스, 해독과 같은 장면·반대 방향).
   화면에 고정해 전 페이지의 배경으로 쓰고, 글·카드가 주인공이라 아주 옅게 깐다. 2026-09-27 원장. */
.site-backdrop { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .15; }
.site-backdrop canvas { display: block; width: 100%; height: 100%; }
/* 배경판이 비치도록 전체 폭 띠 배경만 벗긴다(본원 has-site-backdrop 과 같은 원칙) — 카드는 흰 채로 떠 있다. */
.section--tone-elevated { background: transparent; border-block-color: transparent; }
/* 대문 버튼 — 좁은 화면에선 한 줄에 하나씩, 같은 폭으로(2026-09-25 원장) */
@media (max-width: 720px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: min(100%, 320px); justify-content: center; }
}
.hero-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; margin-top: 24px; font-size: 14px; color: var(--text-muted); }
.hero-chips li { display: flex; align-items: center; gap: 8px; }
.hero-chips li::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent-highlight); }

.btn--primary { border-color: transparent; background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end)); color: var(--text-on-accent);
                box-shadow: var(--cos-shadow-md); transition: transform var(--cos-ease), box-shadow var(--cos-ease), background var(--cos-ease); }
.btn--primary:hover { background: linear-gradient(135deg, var(--accent-gradient-end), var(--accent-gradient-start)); color: var(--text-on-accent);
                      transform: translateY(-1px); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .15), 0 4px 6px -2px rgba(0, 0, 0, .1); }
.btn--primary:active { transform: translateY(1px) scale(.98); box-shadow: 0 2px 4px -1px rgba(0, 0, 0, .1), 0 1px 2px -1px rgba(0, 0, 0, .06); }

.cos-faq { display: flex; flex-direction: column; gap: 12px; }
.cos-faq details { padding: 0; }
.cos-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 26px; cursor: pointer; font-size: 17px; font-weight: 600; line-height: 1.5; }
.cos-faq summary::after { content: "+"; flex-shrink: 0; font-size: 24px; font-weight: 300; color: var(--accent); transition: transform .2s; }
.cos-faq details[open] summary::after { transform: rotate(45deg); }
.cos-faq .faq-a { padding: 0 26px 24px; font-size: 15px; line-height: 1.8; color: var(--text-muted); }
.cos-faq .faq-a a { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: var(--accent); }

.cos-list { display: flex; flex-direction: column; }
.cos-list > * { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 14px 0; border-top: 1px solid var(--border-subtle); }
.cos-list > *:first-child { border-top: 0; }
.cos-list strong { font-size: 15px; font-weight: 600; color: var(--text-main); }
.cos-list small, .cos-list span { font-size: 14px; line-height: 1.7; color: var(--text-muted); }

@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .section { padding-block: 64px; }
  .section-header { margin-bottom: 32px; }
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card { padding: 24px; }
  .hero-title { margin-bottom: 28px; }
}
@media (prefers-reduced-motion: reduce) { .card, .btn--primary { transition: none; } .card:hover, .btn--primary:hover { transform: none; } }

/* 홈 재작성 보조 부품 (Clinic OS 문법 안에서 웰니스 내용에 필요한 것만) */
.cos-gap-top { margin-top: 32px; }
.cos-row-left { justify-content: flex-start; align-items: center; gap: 12px 20px; margin-top: 4px; }
/* 2026-09-27 원장: 버튼 옆 텍스트 링크가 카드용 위 여백 때문에 아래로 처졌다 — 줄 안에서는 여백을 빼 버튼과 같은 높이에 */
.cos-row-left .card-link { margin-top: 0; padding-top: 0; }
.cos-photo--tall { aspect-ratio: 4 / 5; }
.cos-intro { align-items: center; }
.cos-intro__side { gap: 20px; }
/* 2026-09-27 원장: 홈 첫 칸 사진이 오른쪽(통계+담당 의료진)보다 위아래로 길었다 — 넓은 화면에선 사진 높이를 오른쪽 칸에 맞춰 잘라 채운다(모바일은 4:5 유지) */
@media (min-width: 721px) {
  .cos-intro { align-items: stretch; }
  .cos-intro .cos-photo--tall { aspect-ratio: auto; height: 100%; }
  .cos-intro .cos-photo--tall picture { display: block; height: 100%; }
}
.cos-stats { gap: 12px; }
.cos-stats .card { padding: 22px 12px; }
.cos-strip { gap: 16px; }
.cos-strip__who { display: flex; align-items: center; gap: 16px; }
.cos-strip__who > div { display: flex; flex-direction: column; gap: 2px; }
.cos-strip__who .eyebrow { font-size: 12px; }
.cos-strip__who strong { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: -.02em; }
.cos-strip__who span:last-child { font-size: 14px; color: var(--text-muted); }
.cos-strip__face { flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; overflow: hidden; background: var(--accent-soft); }
.cos-strip__face img { width: 100%; height: 100%; object-fit: cover; }
/* 2026-09-27: 원장 글의 줄바꿈은 넓은 화면에서만 — 모바일은 좁아 강제 줄바꿈이 짧은 토막 줄을 만든다 */
@media (max-width: 720px) { br.br-wide { display: none; } }
/* 2026-09-27 원장: 「프로필 →」은 이름 줄 오른쪽 끝으로 */
.cos-strip__profile { margin: 0 0 0 auto; padding: 0; align-self: center; white-space: nowrap; }
.card-badge { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; background: var(--accent); color: var(--text-on-accent); font-size: 12px; font-weight: 700; }  /* 2026-09-27 원장: 올리브 */
.price-amt { font-size: clamp(28px, 2.6vw, 36px); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; color: var(--accent); }
.cos-subprice { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.cos-subprice > div { display: flex; align-items: baseline; gap: 16px; font-size: 15px; }
.cos-subprice .price-amt { font-size: 24px; }
.cos-basis { margin-top: 20px; text-align: center; font-size: 13.5px; line-height: 1.7; color: var(--text-muted); }
.cos-alt { gap: 0; align-items: stretch; }
.cos-alt .cos-photo { border-radius: 0; min-height: 320px; }
.cos-alt__text { justify-content: center; padding: 36px 40px; }
.cos-alt__link { padding: 20px 22px; margin-top: 8px; gap: 6px; }
.cos-alt__link strong { font-size: 15px; }
.cos-verify { align-items: stretch; }
.cos-verify__list { padding: 12px 32px; justify-content: center; }
.cos-verify__list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; padding: 16px 0; }
.cos-verify__list li .card-no { grid-row: span 2; padding-top: 2px; }
.cos-prep { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 24px; padding: 22px 28px; }
.cos-prep strong { font-size: 15px; }
.cos-prep ul { display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 14.5px; color: var(--text-muted); }
.cos-prep ul strong { color: var(--text-main); font-weight: 600; }
/* 2026-09-27 원장: 「문의 전에 준비해 주세요」 띠 올리브(버튼과 같은 그라데이션) + 흰 글씨 */
.card.cos-prep { background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end)); color: var(--text-on-accent); }
.card.cos-prep strong, .card.cos-prep ul strong { color: var(--text-on-accent); }
.card.cos-prep ul { color: rgba(255,255,255,.78); }
.cos-cta { align-items: center; text-align: center; gap: 20px; padding: 56px 40px; }
/* 2026-09-27 원장: 약장 끝 상담 카드가 휑하다 — 올리브 판 + 흰 글씨 + 흰 알약 버튼 + 원장 얼굴 도장 */
.card.cos-cta--olive { background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end)); border-color: transparent; }
.cos-cta--olive .section-title { color: var(--text-on-accent); }
.cos-cta--olive .section-description { color: rgba(255,255,255,.82); }
.cos-cta--olive .btn--primary { background: var(--surface); color: var(--accent); }
.cos-cta--olive .btn--primary:hover { background: #fff; color: var(--deep); }
.cos-cta--olive .btn:not(.btn--primary) { border-color: rgba(255,255,255,.6); color: var(--text-on-accent); background: transparent; }  /* 전화번호 등 보조 버튼 */
.cos-cta--olive .btn:not(.btn--primary):hover { background: rgba(255,255,255,.12); border-color: #fff; }
.cos-cta__who { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: rgba(255,255,255,.92); }
.cos-cta__who .cos-strip__face { width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.55); }
.cos-next { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cos-next .section-description { margin-top: 8px; max-width: 34em; }
.cos-next__btns { display: flex; gap: 12px; flex-shrink: 0; }
@media (max-width: 720px) {
  .cos-next { flex-direction: column; align-items: stretch; }
  .cos-next__btns { flex-direction: column; }
  .cos-next__btns .btn, .cos-cta .row-center .btn { width: 100%; justify-content: center; }
  .cos-cta .row-center { flex-direction: column; align-self: stretch; }
}
@media (max-width: 720px) {
  .cos-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .cos-stats .card { padding: 16px 6px; }
  .cos-alt .cos-photo { min-height: 220px; }
  .cos-alt__text { padding: 24px; }
  .cos-verify__list { padding: 8px 20px; }
  .cos-cta { padding: 36px 22px; }
  .cos-prep { padding: 20px; }
}
.card.cos-alt { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }   /* .card 의 flex 가 .grid-2 를 덮지 않게 */
@media (max-width: 720px) { .card.cos-alt { grid-template-columns: minmax(0, 1fr); } }

/* ── 세부 페이지 (본원 프로그램 페이지 문법) ── */
.page-hero { padding-block: 56px 64px; }
.page-hero--img .page-container { align-items: center; }
.page-hero__text { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.page-title { font-family: var(--serif); font-size: clamp(40px, 5.2vw, 72px); line-height: 1.15; font-weight: 700; letter-spacing: -.02em; color: var(--text-main); }
.page-lead { max-width: 40rem; font-size: clamp(16px, 1.3vw, 18px); line-height: 1.8; color: var(--text-muted); }
.page-jumps { margin-top: 8px; }
.cos-jumps { width: 100%; max-width: 520px; padding: 4px 24px; box-sizing: border-box; }
.cos-jumps > a { grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 16px 0; color: var(--text-main); text-decoration: none; }
.cos-jumps > a:hover strong { color: var(--accent); }
.cos-jumps__arrow { color: var(--text-muted); font-size: 15px; }
.cos-chips-left { justify-content: flex-start; margin-top: 4px; }
.cos-photo--wide { aspect-ratio: 16 / 10; margin: 0; }
.cos-muted { color: var(--text-muted); font-size: 13.5px; }
.cos-points { display: flex; flex-direction: column; gap: 8px; }
.cos-points li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; font-size: 14.5px; line-height: 1.7; color: var(--text-main); }
.cos-points li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.cos-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-muted); }
.cos-split { align-items: center; }
.cos-split--top { align-items: start; }
.cos-sticky { position: sticky; top: 104px; margin-bottom: 0; }
.cos-numbered li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 2px 12px; }
.cos-numbered li > .card-no { grid-row: span 2; padding-top: 2px; }
.cos-numbered li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.cos-close { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; }
.cos-close .card-body { flex: 1 1 280px; color: var(--text-main); }

/* 표 — 본원 비용 안내 표 규격(14px · 칸 12/16 · 머리 500) */
.cos-table-scroll { overflow-x: auto; }
.cos-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.cos-table caption { padding: 22px 24px 8px; text-align: left; font-family: var(--serif); font-size: 18px; font-weight: 700; color: var(--text-main); }
.cos-table th { padding: 12px 16px; text-align: left; font-weight: 500; color: var(--text-muted); border-bottom: 1px solid var(--border-subtle); white-space: nowrap; }
.cos-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-subtle); vertical-align: top; }
.cos-table tr:last-child td { border-bottom: 0; }
.cos-table td:first-child a { font-weight: 600; color: var(--accent); }
.cos-table td:last-child { font-weight: 700; white-space: nowrap; }

/* 약장 검색 */
.cos-search { gap: 14px; }
.cos-search label { font-size: 14px; font-weight: 600; color: var(--accent-strong); }
.cos-search input { width: 100%; height: 56px; padding: 0 16px; border: 1px solid var(--border-subtle); border-radius: 12px; background: var(--bg-body);
                    font: 500 clamp(16px, 1.4vw, 19px)/1 var(--sans); color: var(--text-main); }
.cos-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-color: var(--accent); }
.cos-search:hover { transform: none; border-color: var(--border-subtle); box-shadow: var(--cos-shadow-md); }
.cos-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 24px; padding: 0; border: 0; }
.cos-tabs button { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; margin: 0; border: 1px solid var(--border-subtle); border-radius: 999px;
                   background: var(--bg-surface); font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all .2s ease-out; }
.cos-tabs button:hover { border-color: var(--accent); color: var(--accent); }
.cos-tabs button[aria-selected="true"] { border-color: transparent; background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end)); color: var(--text-on-accent); }
.cos-tabs button[aria-selected="true"] span { color: inherit; opacity: .8; }
.cos-terms { gap: 16px; }
.cos-terms li[hidden] { display: none; }
.cos-term { height: 100%; padding: 22px 22px 20px; gap: 6px; }
.cos-term .card-label { font-size: 12px; color: var(--accent-highlight); }
.cos-term .card-title { font-size: 18px; }
.cos-term .card-body { font-size: 13.5px; }
.cos-term__form { margin-top: auto; padding-top: 8px; font-size: 12.5px; color: var(--text-muted); }
.cos-empty { margin-top: 16px; }
.cos-empty[hidden] { display: none; }   /* .card 의 display:flex 가 hidden 속성을 덮어 검색 전에도 '결과 없음'이 보이던 문제(2026-09-25) */

/* 약장 항목 — 목차 카드 + 본문 카드 */
.cos-article { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start; }
.cos-article__main { gap: 24px; min-width: 0; }
.card.cos-toc { position: sticky; top: 104px; padding: 22px 20px; gap: 10px; }
.card.cos-toc:hover { transform: none; border-color: var(--border-subtle); box-shadow: var(--cos-shadow-md); }
.card.cos-toc ol { display: flex; flex-direction: column; border: 0; }
.card.cos-toc li { border: 0; }
.card.cos-toc a { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 6px; padding: 7px 0; font-size: 13.5px; line-height: 1.5; color: var(--text-muted); }
.card.cos-toc a:hover { color: var(--accent); }
.card.cos-toc summary { display: none; }
.cos-h2 { font-family: var(--serif); font-size: clamp(22px, 2vw, 26px); line-height: 1.35; font-weight: 700; letter-spacing: -.02em; color: var(--text-main); }
.cos-dl { display: flex; flex-direction: column; }
.cos-dl > div { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 6px 20px; padding: 14px 0; border-top: 1px solid var(--border-subtle); }
.cos-dl dt { font-size: 14px; font-weight: 600; color: var(--text-muted); }
.cos-dl dd { display: flex; flex-direction: column; gap: 4px; font-size: 15px; line-height: 1.7; }
.cos-dl small { font-size: 13px; color: var(--text-muted); }
.cos-claims { gap: 10px; }
.cos-claims ul { display: flex; flex-direction: column; gap: 10px; }
.cos-claims li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; font-size: 14.5px; line-height: 1.75; }
.cos-claims li::before { content: ""; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); }
.cos-claims cite { font-style: normal; font-size: 13px; color: var(--text-muted); }
.cos-figure { margin: 0; display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); align-items: end; }
.cos-figure .cos-photo { display: block; aspect-ratio: 3 / 4; border-radius: 0; }
.cos-figure .cos-photo img { width: 100%; height: 100%; object-fit: cover; }
.cos-figure figcaption { gap: 4px; }
.cos-body { gap: 0; padding: 8px 36px; }
.cos-body:hover, .summary.card:hover, .cos-refs:hover, .cos-figure:hover { transform: none; border-color: var(--border-subtle); box-shadow: var(--cos-shadow-md); }
.cos-sec { display: flex; flex-direction: column; gap: 10px; padding: 32px 0; border-top: 1px solid var(--border-subtle); scroll-margin-top: 100px; }
.cos-sec:first-child { border-top: 0; }
.cos-refs { gap: 16px; }
.cos-refs li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.6; }
.cos-refs li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.cos-refs a { font-weight: 600; color: var(--text-main); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--border-subtle); }
.cos-refs a:hover { color: var(--accent); }
.cos-basis--left { text-align: left; margin-top: 0; }
.cos-related { display: flex; flex-direction: column; gap: 12px; }
.cos-related__list { list-style: none; margin: 0; padding: 0; }
.cos-related .cos-term .card-body { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ifaq { display: flex; flex-direction: column; gap: 16px; }
.ifaq .card:hover, .cos-faq details[open]:hover { transform: none; }
#summary, #faq, #refs { scroll-margin-top: 100px; }

/* 본원 긴 글 — .prose-custom (Tailwind preflight가 지운 것을 되살림) */
.prose-custom { font-size: 16px; line-height: 1.75; color: var(--text-main); }
.prose-custom > * + * { margin-top: 1rem; }
.prose-custom ul, .prose-custom ol { padding-left: 1.4em; }
.prose-custom ul { list-style: disc; }
.prose-custom ol { list-style: decimal; }
.prose-custom li { margin: .35em 0; padding-left: .2em; }
.prose-custom li::marker { color: var(--accent); }
.prose-custom strong { font-weight: 700; color: var(--text-main); }
.prose-custom em { font-style: italic; }
.prose-custom a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose-custom blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent-soft); color: var(--text-muted); }

@media (max-width: 900px) {
  .cos-article { grid-template-columns: minmax(0, 1fr); }
  .card.cos-toc { position: static; }
  .card.cos-toc > .card-label { display: none; }
  .card.cos-toc summary { display: flex; justify-content: space-between; cursor: pointer; padding: 0; border: 0; font-size: 14px; font-weight: 700; }
  .card.cos-toc summary::after { content: "+"; color: var(--accent); }
  .card.cos-toc details[open] summary::after { content: "–"; }
  .cos-sticky { position: static; }
}
@media (max-width: 720px) {
  .page-hero { padding-block: 32px 48px; }
  .cos-body { padding: 4px 22px; }
  .cos-dl > div { grid-template-columns: minmax(0, 1fr); }
  .cos-figure { grid-template-columns: minmax(0, 1fr); }
  .cos-table { min-width: 600px; font-size: 13.5px; }
  .cos-table caption { position: sticky; left: 0; }
}

/* 드시는 약으로 찾기 /glossary/by-drug/ (2026-09-27 시안) — 표 대신 카드. 등급은 칸 머리 색 한 줄로만 구분하고 카드 바탕은 흰색 그대로 */
.ix-pills { margin-top: 0; }
.ix-panel__head { margin: 8px 0 24px; }
.ix-panel__head .section-description { margin-top: 8px; }
.ix-formula { margin-bottom: 40px; border-left: 3px solid var(--accent); }
.ix-formula .card-body { color: var(--text-main); }
.ix-tier { margin-top: 40px; }
.ix-tier__head { display: flex; align-items: baseline; gap: 10px; font-family: var(--serif); font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--text-main);
  padding-top: 14px; border-top: 2px solid var(--accent); }
.ix-tier__head span { font-family: inherit; font-size: 14px; font-weight: 600; color: var(--text-muted); }
.ix-tier__head--avoid { border-top-color: #9a3b2e; }
.ix-tier__head--steady { border-top-color: var(--gold); }
.ix-tier__note { margin: 6px 0 20px; font-size: 15px; color: var(--text-muted); }
.ix-grid { list-style: none; padding: 0; margin: 0; gap: 20px; }
.ix-card { display: flex; flex-direction: column; gap: 10px; }
.ix-card .card-title { font-size: 18px; }
.ix-card .card-body { flex: 1; }
.ix-card--avoid .card-title { color: #9a3b2e; }
.ix-src { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--text-muted); padding-top: 10px; border-top: 1px solid var(--border-subtle); margin: 0; }
.ix-src span { font-weight: 600; }
.ix-src a { color: var(--text-muted); text-decoration: underline; text-underline-offset: 2px; }
.ix-links { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0; font-size: 14px; }
.ix-links a { color: var(--accent); font-weight: 600; }
.ix-omit { margin-top: 36px; font-size: 14px; color: var(--text-muted); }
.ix-sources { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 32px; }
.ix-sources a { color: var(--text-main); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 720px) {
  .ix-sources { grid-template-columns: minmax(0, 1fr); }
  .ix-tier__head { font-size: 20px; }
}
.ix-kind { display: flex; align-items: baseline; gap: 8px; margin: 28px 0 14px; font-size: 15px; font-weight: 700; color: var(--accent); }
.ix-kind:first-child { margin-top: 0; }
.ix-kind span { font-size: 13px; font-weight: 600; color: var(--text-muted); }
/* 약장 첫 화면 입구 · 원료 페이지 「이런 약을 드신다면」 */
.ix-entry { margin-bottom: 24px; border-left: 3px solid var(--accent); color: var(--text-main); text-decoration: none; }
.ix-entry__go { font-size: 15px; font-weight: 700; color: var(--accent); }
.ix-box { gap: 14px; }
.ix-box ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.ix-box li { padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.ix-box li:last-child { border-bottom: 0; padding-bottom: 0; }
.ix-box li strong { font-size: 16px; color: var(--text-main); }
.ix-box li p { margin: 6px 0 0; font-size: 15px; line-height: 1.7; color: var(--text-muted); }
.ix-box__tier { display: inline-block; margin-left: 8px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; background: var(--accent-soft); color: var(--accent); }
.ix-box__tier--avoid { background: #f6e6e2; color: #9a3b2e; }
.ix-box__more { font-size: 15px; font-weight: 700; color: var(--accent); }
/* 원료 페이지 머리 — 「이런 약을 드신다면 진찰 때 꼭 말씀하세요」 한 줄 + 약 묶음 칩 → #with-drugs */
.ix-badges { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft);
  text-decoration: none; border: 1px solid transparent; max-width: 560px; }
.ix-badges:hover { border-color: var(--accent); }
.ix-badges__lead { font-size: 13.5px; font-weight: 700; color: var(--accent); }
.ix-badges__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ix-chip { padding: 4px 11px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface); color: var(--text-main); border: 1px solid var(--border-subtle); }
.ix-chip--avoid { color: #9a3b2e; border-color: #e3c3bb; background: #fbf1ee; }
/* 「어디서 가져왔는지」 박스형 카드(9/27) */
.ix-src-cat { margin: 32px 0 14px; font-size: 15px; font-weight: 700; color: var(--accent); }
.ix-src-cat:first-of-type { margin-top: 8px; }
.ix-src-card { display: flex; flex-direction: column; gap: 8px; }
.ix-src-card .card-title { font-size: 18px; }
.ix-src-card .card-body { flex: 1; font-size: 14.5px; }
.ix-src-card__links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0; padding-top: 10px; border-top: 1px solid var(--border-subtle); font-size: 14px; }
.ix-src-card__links a { color: var(--accent); font-weight: 700; text-decoration: none; }
.ix-src-card__links a:hover { text-decoration: underline; }
.ix-src-cards--wide { display: grid; grid-template-columns: minmax(0, 1fr); }
.ix-src-cards--wide .ix-src-card { flex-direction: row; align-items: center; gap: 24px; }
.ix-src-cards--wide .ix-src-card .card-title { flex: 0 0 auto; }
.ix-src-cards--wide .ix-src-card__links { border-top: 0; padding-top: 0; flex: 0 0 auto; }
@media (max-width: 720px) { .ix-src-cards--wide .ix-src-card { flex-direction: column; align-items: flex-start; gap: 8px; } }
/* 참고한 자료 — 본원 참고자료 모양(흰 카드 한 장, 제목 + 연한 서지 한 줄), 9/27 */
.ix-refs { gap: 0; padding: 36px 40px; }
.ix-refs__head { font-family: var(--serif); font-size: 24px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; color: var(--text-main); margin: 0 0 22px; }
.ix-refs__list { list-style: none; padding: 0 0 0 20px; margin: 0; display: grid; gap: 22px; }
.ix-refs__list li { display: flex; flex-direction: column; gap: 6px; }
.ix-ref__title { font-size: 16.5px; line-height: 1.6; color: var(--text-main); }
.ix-ref__meta { font-size: 14px; line-height: 1.6; color: #a8a295; }
.ix-ref__meta a { color: #a8a295; text-decoration: underline dotted; text-underline-offset: 3px; }
.ix-ref__meta a:hover { color: var(--accent); }
.ix-refs__note { margin: 26px 0 0; padding-top: 18px; border-top: 1px solid var(--border-subtle); font-size: 14px; color: var(--text-muted); }
@media (max-width: 720px) { .ix-refs { padding: 26px 22px; } .ix-refs__list { padding-left: 8px; } .ix-refs__head { font-size: 21px; } }
/* 약장 「자료 읽는 방법」 — 모바일 2칸은 한 줄에 4~5자씩 끊겨 흉함(원장 9/27) → 한 장씩, 번호·제목 한 줄 */
@media (max-width: 720px) {
  .cos-howto { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cos-howto .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 8px; align-items: baseline; padding: 20px 22px; }
  .cos-howto .card-no { grid-column: 1; }
  .cos-howto .card-title { grid-column: 2; font-size: 19px; margin: 0; }
  .cos-howto .card-body { grid-column: 1 / -1; margin: 0; }
}
/* 홈 「문의부터 진찰, 수령까지」 4단계 — 같은 이유로 모바일 한 장씩 */
@media (max-width: 720px) {
  .cos-steps { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .cos-steps .card { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 12px; row-gap: 6px; align-items: baseline; padding: 20px 22px; }
  .cos-steps .price-amt { grid-column: 1; font-size: 22px; }
  .cos-steps .card-title { grid-column: 2; margin: 0; }
  .cos-steps .card-body { grid-column: 1 / -1; margin: 0; }
}
/* 참고한 자료는 부차 정보 — 작게(원장 9/27 「크게 보일 필요 없다」) */
.ix-refs { padding: 24px 28px; box-shadow: none; }
.ix-refs__head { font-family: inherit; font-size: 17px; margin-bottom: 14px; }
.ix-refs__list { padding-left: 0; gap: 12px; }
.ix-refs__list li { gap: 2px; }
.ix-ref__title { font-size: 14px; line-height: 1.55; word-break: keep-all; }
.ix-ref__meta { font-size: 12.5px; line-height: 1.5; word-break: keep-all; }
.ix-refs__note { margin-top: 16px; padding-top: 12px; font-size: 12.5px; }
@media (max-width: 720px) { .ix-refs { padding: 20px 18px; } .ix-refs__head { font-size: 16px; } }
/* 드시는 약 버튼 — 분야별 줄(원장 9/27: 17개 한 벽 → 분야 묶음, 드롭다운 금지) */
.ix-pills { display: grid; gap: 12px; margin: 0 0 8px; }
.ix-cat { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 12px; }
.ix-cat__label { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: -.01em; }
.ix-cat__pills { display: flex; flex-wrap: wrap; gap: 8px; }
.ix-cat__pills button { display: inline-flex; align-items: center; height: 38px; padding: 0 15px; margin: 0; border: 1px solid var(--border-subtle); border-radius: 999px;
  background: var(--bg-surface); font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all .2s ease-out; white-space: nowrap; }
.ix-cat__pills button:hover { border-color: var(--accent); color: var(--accent); }
.ix-cat__pills button[aria-selected="true"] { border-color: transparent; background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end)); color: var(--text-on-accent); }
@media (max-width: 720px) {
  .ix-pills { gap: 14px; }
  .ix-cat { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .ix-cat__label { font-size: 12.5px; }
  .ix-cat__pills { gap: 6px; }
  .ix-cat__pills button { height: 34px; padding: 0 12px; font-size: 13.5px; }
}
/* 약장 입구 카드 올리브 판(원장 9/27 「눈에 띄게」) · 버튼 묶음 아래 간격 */
.ix-entry.card--olive { border: 0; border-left: 0; }
.ix-entry.card--olive .card-label { color: rgba(255,255,255,.75); }
.ix-entry.card--olive .ix-entry__go { display: inline-flex; align-self: flex-start; align-items: center; height: 40px; padding: 0 18px; border-radius: 999px;
  background: var(--surface); color: var(--accent); font-size: 14.5px; }
.ix-entry.card--olive:hover { transform: translateY(-2px); }
.ix-pills { margin-bottom: 36px; }
/* 여러 약 동시 선택(원장 9/27 「약을 하나만 먹는 경우가 없다」) — 겹쳐 걸리는 원료 모음 */
.ix-hint { margin: 0 0 16px; font-size: 14.5px; color: var(--text-muted); }
.ix-hint strong { color: var(--accent); }
.ix-cat__pills button[aria-pressed="true"] { border-color: transparent; background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end)); color: var(--text-on-accent); }
.ix-overlap { margin: 0 0 36px; border-left: 3px solid #9a3b2e; gap: 12px; }
.ix-overlap ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.ix-ov { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 0; border-top: 1px solid var(--border-subtle); }
.ix-ov:first-child { border-top: 0; padding-top: 4px; }
.ix-ov strong { font-size: 16px; color: var(--text-main); }
.ix-ov span { grid-column: 1; font-size: 13.5px; color: var(--text-muted); }
.ix-ov em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.ix-ov--avoid strong { color: #9a3b2e; }
.ix-ov--avoid em { background: #f6e6e2; color: #9a3b2e; }
/* 고른 약 PDF 저장(원장 9/27 「파일로 갖고 폰으로 계속 볼 수 있게」) */
.ix-save { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin: 0 0 28px; }
.ix-save span { font-size: 13px; color: var(--text-muted); flex: 1 1 260px; }
.ix-print-head { display: none; }
@media print {
  @page { margin: 14mm 12mm; }
  .hd, .ft, .sticky, .site-backdrop, .page-hero, .ix-pills, .ix-hint, .ix-save, .ix-links, .ix-refs, .cos-cta, .ix-omit { display: none !important; }
  .section:has(.cos-cta), .section:has(.ix-refs) { display: none !important; }
  .section { padding: 0 !important; background: #fff !important; }
  .ix-print-head { display: grid; gap: 4px; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 2px solid #33502f; }
  .ix-print-head strong { font-size: 18px; color: #000; }
  .ix-print-head span { font-size: 11px; color: #555; }
  .card, .ix-card, .ix-overlap, .ix-formula { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .ix-grid, .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  .ix-card { padding: 10px 12px !important; gap: 4px !important; }
  .ix-card .card-title { font-size: 13.5px !important; }
  .ix-card .card-body { font-size: 11.5px !important; line-height: 1.5 !important; }
  .ix-src { font-size: 9.5px !important; padding-top: 4px !important; }
  .ix-tier { margin-top: 14px !important; break-inside: avoid-page; }
  .ix-tier__head { font-size: 15px !important; padding-top: 6px !important; }
  .ix-tier__note { font-size: 11px !important; margin: 2px 0 8px !important; }
  .ix-panel__head .section-title { font-size: 20px !important; }
  .ix-panel { break-before: auto; margin-bottom: 18px; }
  .ix-overlap { margin-bottom: 18px !important; }
  a { color: #000 !important; text-decoration: none !important; }
}
@media print {
  .skip { display: none !important; }
  .ix-tier { break-inside: auto !important; }
  .ix-tier__head { break-after: avoid; }
}
@media print { #ix-print-drugs { font-size: inherit !important; color: inherit !important; } }
/* 모바일 하단 4칸 바(백록담 방식, 원장 9/27) — PC는 기존 sticky */
.tabbar { display: none; }
@media (max-width: 720px) {
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(4, 1fr);
    height: calc(64px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom);
    background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -4px 16px rgba(0,0,0,.05); }
  .tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--ink); text-decoration: none; font-size: 12.5px; font-weight: 600; }
  .tabbar svg { width: 22px; height: 22px; }
  .tabbar__main { background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end)); color: var(--text-on-accent) !important; }
  .sticky, .sticky.is-on { display: none !important; }
  body { padding-bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media print { .tabbar { display: none !important; } body { padding-bottom: 0 !important; } }
/* 하단 바 5칸(원장 9/27 2차): 홈·전화·톡톡·진료 문의·네이버예약 */
@media (max-width: 720px) {
  .tabbar { grid-template-columns: repeat(5, 1fr); }
  .tabbar a { font-size: 12px; }
  .tabbar img { width: 24px; height: 24px; }
  .tabbar__nbook { color: #03a94f !important; }
}
/* 하단 바 얇게(원장 9/27 「너무 두껍다」) 64→54px */
@media (max-width: 720px) {
  .tabbar { height: calc(54px + env(safe-area-inset-bottom)); }
  .tabbar a { gap: 2px; font-size: 11.5px; }
  .tabbar svg { width: 20px; height: 20px; }
  .tabbar img { width: 21px; height: 21px; }
  body { padding-bottom: calc(54px + env(safe-area-inset-bottom)); }
}
/* 하단 바 더 얇아 보이게(원장 9/27, 참고: 통칸 배경 없는 바) — 50px(올리브 통칸은 유지 — 원장 9/27) */
@media (max-width: 720px) {
  .tabbar { height: calc(50px + env(safe-area-inset-bottom)); }
  body { padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
}
/* 진료 문의 통칸 배경 없음 — 원장 최종 결정(9/27): 글자·아이콘만 강조 */
@media (max-width: 720px) { .tabbar__main { background: none !important; color: var(--accent) !important; font-weight: 800; } }
.ix-intro { margin: 0 0 20px; padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--accent); font-size: 14.5px; font-weight: 600; }
/* 드시는 약 모바일 편의성(원장 9/28 「보기 힘들다」) — 검색창·작은 버튼·접는 카드·하단 선택 띠 */
.ix-search { margin: 0 0 18px; padding: 18px 20px; border-radius: 16px; background: var(--bg-surface); border: 1px solid var(--border-subtle); box-shadow: var(--cos-shadow-md); }
.ix-search label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; color: var(--text-main); }
.ix-search input { width: 100%; height: 48px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--border-subtle); background: var(--surface); font-size: 16px; color: var(--text-main); }
.ix-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ix-found { margin: 8px 0 0; font-size: 13.5px; color: var(--text-muted); }
.ix-found.is-hit { color: var(--accent); font-weight: 700; }
.ix-bar { display: none; }
@media (max-width: 720px) {
  .ix-cat__label { font-size: 12px; }
  .ix-cat__pills { gap: 5px; }
  .ix-cat__pills button { height: 32px; padding: 0 11px; font-size: 13px; }
  .ix-pills { gap: 10px; margin-bottom: 24px; }
  .ix-hint { font-size: 13.5px; margin-bottom: 12px; }
  .ix-save { display: none; }
  /* 접는 카드: 이름만 한 줄, 눌러서 펼침 */
  .ix-card--tell, .ix-card--steady { padding: 14px 16px !important; gap: 6px !important; cursor: pointer; box-shadow: none; }
  .ix-card--tell .card-title, .ix-card--steady .card-title { font-size: 16px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
  .ix-card--tell .card-title::after, .ix-card--steady .card-title::after { content: "▾"; font-size: 13px; color: var(--text-muted); transition: transform .2s; }
  .ix-card--tell.open .card-title::after, .ix-card--steady.open .card-title::after { transform: rotate(180deg); }
  .ix-card--tell:not(.open) > :not(.card-title), .ix-card--steady:not(.open) > :not(.card-title) { display: none !important; }
  .ix-grid { gap: 8px !important; }
  /* 하단 선택 띠(하단 5칸 바 바로 위) */
  .ix-bar:not([hidden]) { position: fixed; left: 0; right: 0; bottom: calc(50px + env(safe-area-inset-bottom)); z-index: 44; display: flex; align-items: center; gap: 6px;
    padding: 8px 10px; background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-top: 1px solid var(--line); }
  .ix-bar__chips { flex: 1; display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; }
  .ix-bar__chips::-webkit-scrollbar { display: none; }
  .ix-bar__chips button { flex: none; height: 30px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 700; }
  .ix-bar__go, .ix-bar__pdf { flex: none; height: 34px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 700; }
  .ix-bar__go { border: 0; background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end)); color: var(--text-on-accent); }
  .ix-bar__pdf { border: 1px solid var(--line); background: var(--surface); color: var(--text-main); }
  body:has(.ix-bar:not([hidden])) { padding-bottom: calc(100px + env(safe-area-inset-bottom)); }
}
@media print {
  .ix-search, .ix-bar { display: none !important; }
  .ix-card > * { display: revert !important; }
  .ix-card .card-title::after { content: none !important; }
}
/* .card{display:flex} 가 hidden 속성을 덮어쓰던 것(안내 카드가 안 사라짐, 9/28) */
#ix-empty[hidden], #ix-overlap[hidden], .ix-panel[hidden], .ix-bar[hidden] { display: none !important; }
/* 검색 「찾기」 버튼(원장 9/28) */
.ix-search__row { display: flex; gap: 8px; margin: 0; }
.ix-search__row input { flex: 1; min-width: 0; }
.ix-search__btn { flex: none; height: 48px; padding: 0 20px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--accent-gradient-start), var(--accent-gradient-end));
  color: var(--text-on-accent); font-size: 15.5px; font-weight: 700; cursor: pointer; }
.ix-tip { margin: 8px 0 0; padding: 10px 12px; border-radius: 10px; background: var(--accent-soft); font-size: 13px; line-height: 1.6; color: var(--text-muted); }
.ix-tip strong { color: var(--accent); }
.ix-search__row textarea { flex: 1; min-width: 0; min-height: 48px; max-height: 160px; padding: 12px 16px; border-radius: 12px; border: 1px solid var(--border-subtle);
  background: var(--surface); font: inherit; font-size: 16px; line-height: 1.45; color: var(--text-main); resize: none; overflow-y: auto; }
.ix-search__row textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ix-search__row { align-items: flex-start; }

/* 사진 붙여넣기 안내 — 제목·2단계·작은 주석으로 나눔 (9/28 원장 「지저분하다」) */
.ix-search__row textarea::placeholder { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ix-tip { margin: 12px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--accent-soft); color: var(--text-muted); }
.ix-tip__head { display: flex; align-items: center; gap: 6px; margin: 0 0 8px; font-size: 14px; font-weight: 700; color: var(--accent); }
.ix-tip__steps { margin: 0; padding: 0; list-style: none; counter-reset: tip; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.ix-tip__steps li { counter-increment: tip; display: flex; align-items: center; gap: 7px; font-size: 14px; line-height: 1.5; color: var(--text-main); }
.ix-tip__steps li::before { content: counter(tip); flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.ix-tip__steps strong { color: var(--accent); }
.ix-tip__note { margin: 8px 0 0; font-size: 12px; line-height: 1.5; color: var(--text-muted); }

/* 공통 안심 카드 — 「한약, 끊지 않으셔도 됩니다」(9/28 원장: 혈압약 말고 공통 자리에) */
.ix-calm { margin: 0 0 18px; padding: 16px 18px; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-left: 4px solid var(--accent); }
.ix-calm p { margin: 0; font-size: 14.5px; line-height: 1.7; color: var(--text-main); }
.ix-calm__title { margin-bottom: 6px !important; font-size: 16px !important; font-weight: 700; color: var(--accent) !important; }
.ix-calm__src { margin-top: 8px !important; font-size: 12.5px !important; line-height: 1.6 !important; color: var(--text-muted) !important; }
.ix-calm__src a { color: var(--text-muted); text-decoration: underline; }
@media print { .ix-calm { display: none; } }

/* 간·신장 주의 태그(9/28 원장) — organ_tox.json */
.tox-tags { display: inline-flex; flex-wrap: wrap; gap: 4px; margin-left: 6px; vertical-align: middle; }
.tox-tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; line-height: 1.5; letter-spacing: -0.01em; white-space: nowrap; }
.tox-tag--liver { background: #FBEFE6; color: #9A4A12; border: 1px solid #EFCFB5; }
.tox-tag--kidney { background: #F1ECF7; color: #5B3F86; border: 1px solid #D9CCEA; }
.tox-box { margin-top: 16px; padding: 12px 16px; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border-subtle); }
.tox-box .tox-tags { margin: 0 0 6px; }
.tox-box p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--text-main); }
.tox-box small { display: block; margin-top: 6px; font-size: 12px; color: var(--text-muted); }
.tox-box small a { color: var(--text-muted); text-decoration: underline; }
