/* 뿌리 — 페이지별 테마. 본문 배경만 바꾸고, 카드·헤더는 읽기 색을 유지한다. */
.ig-header{box-shadow:inset 0 4px 0 var(--ig-accent);background:rgba(255,252,248,.96)}
.ig-mast{max-width:var(--ig-content-w);margin:36px auto 0;padding:0 24px;display:flex;justify-content:space-between;align-items:baseline;gap:12px}
.ig-mast__kicker{margin:0;font-size:12px;font-weight:700;letter-spacing:.02em;color:var(--ig-text-secondary)}
.ig-mast__en{margin:0;font-size:12px;font-weight:800;letter-spacing:.16em;color:var(--ig-accent)}
.ig-single{padding-top:16px}
.iga-kicker{margin:0 0 8px;font-size:12px;font-weight:800;letter-spacing:.14em;color:var(--ig-accent)}
body.theme-legal .ig-page{background:#fff;border:1px solid #e4e4e1;border-radius:18px;margin-top:28px;box-shadow:0 10px 30px rgba(28,22,18,.04)}
body.theme-legal .ig-page h1::before{content:"가이드 · 문서";display:block;font-family:Pretendard,system-ui,sans-serif;font-size:12px;letter-spacing:.16em;font-weight:700;color:var(--ig-accent);margin-bottom:10px}

/* 하단 치과 찾기 밴드도 페이지 색을 따른다 */
.igb{background:transparent;border-top:1px solid color-mix(in srgb,var(--ig-accent) 28%,#e7e0d6)}
.igb-head h2,.igb-head h2 small,.igp-brand__name{color:var(--ig-primary-dark)}
.igb-head h2 small{color:var(--ig-accent)}
.igb-head h2 i,.igb-search button,.igp-near button,.igp-hero-search button,.igp-brand__name i,.igp-cl a,.igp-cl a:nth-child(2){background:var(--ig-primary)!important;box-shadow:none!important;color:#fff!important}
.igb-guide a:hover,.igp-near-item:hover,.igp-new a:hover{border-color:var(--ig-accent)}

body.theme-osstem{background:#e8eef5;--ig-primary:#1f4e79;--ig-primary-light:#3d6a99;--ig-primary-dark:#0d2238;--ig-accent:#1f4e79;--ig-accent-hover:#16385a;--ig-text:#122033;--ig-text-secondary:#3d5168;--ig-border:#d3deea;--ig-bg-soft:#f4f8fb;--ig-bg-muted:#e3ebf3}
body.theme-osstem .ig-single-hero{border-radius:6px 64px 6px 64px}
body.theme-dentium{background:#e5f4ef;--ig-primary:#0f6e56;--ig-primary-light:#1c9578;--ig-primary-dark:#0c3b32;--ig-accent:#0f6e56;--ig-accent-hover:#0b5341;--ig-text:#10261f;--ig-text-secondary:#3c5c52;--ig-border:#cfe4dc;--ig-bg-soft:#f3faf7;--ig-bg-muted:#e3f3ec}
body.theme-dentium .ig-single-hero{border-radius:22px}
body.theme-neo{background:#f0edfb;--ig-primary:#5346b0;--ig-primary-light:#7468c9;--ig-primary-dark:#2a2158;--ig-accent:#5346b0;--ig-accent-hover:#3d328c;--ig-text:#221c40;--ig-text-secondary:#514878;--ig-border:#ddd6f3;--ig-bg-soft:#f7f5fd;--ig-bg-muted:#ebe6f8}
body.theme-neo .ig-single-hero{border-radius:18px;outline:6px solid color-mix(in srgb,var(--ig-accent) 22%,white);outline-offset:5px}
body.theme-dio{background:#fbeee6;--ig-primary:#b5521a;--ig-primary-light:#d1713a;--ig-primary-dark:#6e2e12;--ig-accent:#b5521a;--ig-accent-hover:#8c3d12;--ig-text:#3a2418;--ig-text-secondary:#6d5142;--ig-border:#f0d7c8;--ig-bg-soft:#fff6f1;--ig-bg-muted:#f8e6da}
body.theme-dio .ig-single-hero{border-radius:4px 4px 48px 48px}
body.theme-megagen{background:#f6f1e6;--ig-primary:#6e5420;--ig-primary-light:#8d7030;--ig-primary-dark:#1a1a1a;--ig-accent:#6e5420;--ig-accent-hover:#513d16;--ig-text:#1c1c1c;--ig-text-secondary:#5c5346;--ig-border:#e6dcc8;--ig-bg-soft:#fbf8f2;--ig-bg-muted:#f0e9da}
body.theme-megagen .ig-single-hero{border-radius:2px}
body.theme-compare,body.theme-korea,body.theme-index{background:#f4efe6;--ig-primary:#9a4318;--ig-primary-light:#c45c26;--ig-primary-dark:#1c1612;--ig-accent:#9a4318;--ig-accent-hover:#7a3412;--ig-text:#1c1612;--ig-text-secondary:#5e5148;--ig-border:#e4d9cc;--ig-bg-soft:#fbf7f2;--ig-bg-muted:#f0e7db}
body.theme-compare .ig-single-hero,body.theme-korea .ig-single-hero,body.theme-index .ig-single-hero{border-radius:18px 18px 4px 18px}
body.theme-fixture{background:#eef1f4;--ig-primary:#3e4c59;--ig-primary-light:#5c6b78;--ig-primary-dark:#242b31;--ig-accent:#3e4c59;--ig-accent-hover:#2a343d;--ig-text:#1c242b;--ig-text-secondary:#51606c;--ig-border:#d5dee6;--ig-bg-soft:#f5f7f9;--ig-bg-muted:#e6ecf1}
body.theme-fixture .ig-single-hero{border-radius:8px}
body.theme-abutment{background:#f6f1ea;--ig-primary:#7a5a3c;--ig-primary-light:#9a7756;--ig-primary-dark:#3d3428;--ig-accent:#7a5a3c;--ig-accent-hover:#5c422b;--ig-text:#2c241c;--ig-text-secondary:#6a5848;--ig-border:#e7d9c8;--ig-bg-soft:#fbf7f2;--ig-bg-muted:#f1e6d8}
body.theme-abutment .ig-single-hero{border-radius:40px 8px}
body.theme-crown{background:#fbf7f3;--ig-primary:#6b5344;--ig-primary-light:#8a7262;--ig-primary-dark:#3a3430;--ig-accent:#6b5344;--ig-accent-hover:#4e3b30;--ig-text:#2b2623;--ig-text-secondary:#6d6158;--ig-border:#eadfd6;--ig-bg-soft:#fff;--ig-bg-muted:#f4ece6}
body.theme-crown .ig-single-hero{border-radius:80px 80px 12px 12px}
body.theme-surface{background:#e6f4f2;--ig-primary:#0f766e;--ig-primary-light:#14988d;--ig-primary-dark:#12343a;--ig-accent:#0f766e;--ig-accent-hover:#0c574f;--ig-text:#10282a;--ig-text-secondary:#3d6160;--ig-border:#c9e4e0;--ig-bg-soft:#f3fbfa;--ig-bg-muted:#e1f3f0}
body.theme-surface .ig-single-hero{border-radius:12px;box-shadow:inset 0 0 0 8px rgba(15,118,110,.12)}
body.theme-front{background:#fbf3f6;--ig-primary:#8d4a62;--ig-primary-light:#b16d84;--ig-primary-dark:#4a2433;--ig-accent:#8d4a62;--ig-accent-hover:#6d3348;--ig-text:#3a2230;--ig-text-secondary:#735062;--ig-border:#f0d5e0;--ig-bg-soft:#fff7f9;--ig-bg-muted:#f8e8ee}
body.theme-front .ig-single-hero{border-radius:90px 90px 18px 18px}
body.theme-molar{background:#f6f1e6;--ig-primary:#8a5a14;--ig-primary-light:#b07828;--ig-primary-dark:#2a241c;--ig-accent:#8a5a14;--ig-accent-hover:#6a430e;--ig-text:#2a241c;--ig-text-secondary:#665845;--ig-border:#eadcc4;--ig-bg-soft:#fbf8f2;--ig-bg-muted:#f3ead8}
body.theme-molar .ig-single-hero{border-radius:10px}
body.theme-bone{background:#f7f3ec;--ig-primary:#7a6240;--ig-primary-light:#9a8160;--ig-primary-dark:#3d3224;--ig-accent:#7a6240;--ig-accent-hover:#5c492f;--ig-text:#2e261c;--ig-text-secondary:#6a5c4a;--ig-border:#e6dccb;--ig-bg-soft:#fbf8f3;--ig-bg-muted:#f1e9dc}
body.theme-bone .ig-single-hero{border-radius:28px 8px 28px 8px}
body.theme-price{background:#fbf6e8;--ig-primary:#8a6a12;--ig-primary-light:#b08a22;--ig-primary-dark:#3d300c;--ig-accent:#8a6a12;--ig-accent-hover:#6a5010;--ig-text:#2c2410;--ig-text-secondary:#6a5c38;--ig-border:#eadcb4;--ig-bg-soft:#fffbf1;--ig-bg-muted:#f6edd4}
body.theme-price .ig-single-hero{border-radius:0}
body.theme-lifespan{background:#eef1fb;--ig-primary:#2a4494;--ig-primary-light:#4a64b4;--ig-primary-dark:#1e2a4a;--ig-accent:#2a4494;--ig-accent-hover:#1d3274;--ig-text:#1a2240;--ig-text-secondary:#465078;--ig-border:#d5dcf3;--ig-bg-soft:#f5f7fd;--ig-bg-muted:#e6ebf8}
body.theme-lifespan .ig-single-hero{border-radius:999px 16px 16px 16px}
body.theme-pros{background:#eef6f0;--ig-primary:#2f6b45;--ig-primary-light:#4d8a62;--ig-primary-dark:#1c3326;--ig-accent:#2f6b45;--ig-accent-hover:#214e32;--ig-text:#1a2c22;--ig-text-secondary:#4a6554;--ig-border:#d2e4d8;--ig-bg-soft:#f5fbf7;--ig-bg-muted:#e5f2ea}
body.theme-pros .ig-single-hero{border-radius:16px 16px 16px 48px}
body.theme-import{background:#f7f4ea;--ig-primary:#1c2740;--ig-primary-light:#3a4d74;--ig-primary-dark:#1c2740;--ig-accent:#6e5418;--ig-accent-hover:#1c2740;--ig-text:#1c2740;--ig-text-secondary:#4e5a72;--ig-border:#e2dcc8;--ig-bg-soft:#fbfaf4;--ig-bg-muted:#f0ecdf}
body.theme-import .ig-single-hero{border-radius:16px;box-shadow:10px 0 0 #1c2740, -10px 0 0 #6e5418}
body.theme-process{background:#e7f2f8;--ig-primary:#1d5f86;--ig-primary-light:#3d82ad;--ig-primary-dark:#16324f;--ig-accent:#1d5f86;--ig-accent-hover:#164a68;--ig-text:#142838;--ig-text-secondary:#3e5a70;--ig-border:#cfe0ea;--ig-bg-soft:#f3f9fc;--ig-bg-muted:#e3f0f6}
body.theme-process .ig-single-hero{border-radius:16px}
body.theme-choice{background:#f3f6ec;--ig-primary:#4f6b2c;--ig-primary-light:#6d8a48;--ig-primary-dark:#2a331c;--ig-accent:#4f6b2c;--ig-accent-hover:#3a5020;--ig-text:#222818;--ig-text-secondary:#556348;--ig-border:#dce6cc;--ig-bg-soft:#f8fbf3;--ig-bg-muted:#eaf1df}
body.theme-choice .ig-single-hero{border-radius:8px 8px 8px 40px}
body.theme-find,body.theme-map{background:#f4f0e6;--ig-primary:#1e4d45;--ig-primary-light:#2f6d62;--ig-primary-dark:#14332e;--ig-accent:#1e4d45;--ig-accent-hover:#14382f;--ig-text:#1c2422;--ig-text-secondary:#52625e;--ig-border:#ddd4c4;--ig-bg-soft:#fbf8f2;--ig-bg-muted:#efe8da}
body.theme-clinic{background:#f8f1ea;--ig-primary:#7a3044;--ig-primary-light:#a04d62;--ig-primary-dark:#3c1824;--ig-accent:#7a3044;--ig-accent-hover:#5c2232;--ig-text:#2c1a20;--ig-text-secondary:#6d5160;--ig-border:#eddde2;--ig-bg-soft:#fff8f6;--ig-bg-muted:#f6e8ea}
body.theme-legal{background:#f3f3f1;--ig-primary:#333;--ig-primary-light:#555;--ig-primary-dark:#222;--ig-accent:#555;--ig-accent-hover:#222;--ig-text:#222;--ig-text-secondary:#555;--ig-border:#e4e4e1;--ig-bg-soft:#fafafa;--ig-bg-muted:#eee}

@media (max-width:640px){
  .ig-mast{margin-top:20px;padding:0 16px;flex-direction:column;align-items:flex-start;gap:4px}
  body.theme-import .ig-single-hero{box-shadow:none}
  body.theme-neo .ig-single-hero{outline-offset:0}
}
