/* Palette tokens are applied early from the visitor's saved selection. */
html[data-vatan-theme="mine"]{--theme-bg:#fafaf7;--theme-panel:#fff;--theme-soft:#e8eef0;--theme-ink:#26383f;--theme-muted:#50656d;--theme-accent:#425d68;--theme-line:#cad8dc}
html[data-vatan-theme="zirkonyum"]{--theme-bg:#f4f6f7;--theme-panel:#fff;--theme-soft:#e2e9ed;--theme-ink:#25333a;--theme-muted:#53636c;--theme-accent:#425d6c;--theme-line:#c7d3d9}
html[data-vatan-theme="seftali"]{--theme-bg:#fff6f1;--theme-panel:#fffdfa;--theme-soft:#fbe5d9;--theme-ink:#382922;--theme-muted:#745849;--theme-accent:#984123;--theme-line:#efd1c0}
html[data-vatan-theme="pembe"]{--theme-bg:#fff5f4;--theme-panel:#fffdfd;--theme-soft:#f9e1e3;--theme-ink:#3b292c;--theme-muted:#75575c;--theme-accent:#923c4b;--theme-line:#efccd1}
html[data-vatan-theme="adacayi"]{--theme-bg:#f3f8f4;--theme-panel:#fff;--theme-soft:#e0eee4;--theme-ink:#213c31;--theme-muted:#4f6b5d;--theme-accent:#32654e;--theme-line:#c9ddce}
html[data-vatan-theme="lacivert"]{--theme-bg:#f3f6fa;--theme-panel:#fff;--theme-soft:#e3eaf3;--theme-ink:#1f3043;--theme-muted:#4e647c;--theme-accent:#284d72;--theme-line:#cbd6e3}
html[data-vatan-theme="ege"]{--theme-bg:#f0f9f8;--theme-panel:#fff;--theme-soft:#dcefeb;--theme-ink:#1f3938;--theme-muted:#4c6966;--theme-accent:#176a64;--theme-line:#c2ded9}
html[data-vatan-theme]:not([data-vatan-theme="vatan"]){--ink:var(--theme-ink);--paper:var(--theme-bg);--sage:var(--theme-soft);--line:var(--theme-line);--muted:var(--theme-muted)}
html[data-vatan-theme]:not([data-vatan-theme="vatan"]) body{background:var(--theme-bg)!important;color:var(--theme-ink)!important}
html[data-vatan-theme]:not([data-vatan-theme="vatan"]) :is(.site-header,.corp-dropdown__panel,.ref-services,.clinic,.team,.partners-section,.home-team,.treatment-page-head,.service-content,.article-page,.article-content,.treatment-section){background-color:var(--theme-bg)!important}
html[data-vatan-theme]:not([data-vatan-theme="vatan"]) :is(.intro,.home-row--about .intro,.home-row--about .clinic,.feature-banner__copy,.knowledge-teaser__inner,.review-card,.ref-service-card,.partner-grid article,.appointment-card,.service-card,.treatment-card){background:var(--theme-soft)!important;border-color:var(--theme-line)!important;color:var(--theme-ink)!important}
html[data-vatan-theme]:not([data-vatan-theme="vatan"]) :is(.ref-service-card h3,.ref-section-header h2,.home-team__intro h2,.feature-banner__copy h2,.knowledge-teaser h2,.treatment-page-head h1,.service-content h1,.service-content h2){color:var(--theme-ink)!important}
html[data-vatan-theme]:not([data-vatan-theme="vatan"]) :is(h1 em,h2 em,.eyebrow:not(.light),.ref-kicker,.text-link,.feature-banner__eyebrow,.knowledge-link,.home-team__intro h2 em){color:var(--theme-accent)!important}
html[data-vatan-theme]:not([data-vatan-theme="vatan"]) :is(.ref-btn-dark,.btn-dark,.feature-banner__button,.ref-service-icon){background:var(--theme-accent)!important;color:white!important;border-color:var(--theme-accent)!important}
html[data-vatan-theme]:not([data-vatan-theme="vatan"]) .ref-service-icon svg{stroke:white!important}
html[data-vatan-theme]:not([data-vatan-theme="vatan"]) :is(.site-header nav a:hover,.corp-dropdown__toggle:hover){color:var(--theme-accent)!important}
.theme-switch{flex:none;direction:ltr}
.theme-trigger{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center;gap:7px;padding:7px 14px;border:1px solid #185e65;border-radius:24px;background:#246e72;color:#fff;font:700 13px/1.2 var(--font,sans-serif);cursor:pointer;white-space:nowrap;transition:background-color .2s,box-shadow .2s}
.theme-trigger:hover,.theme-trigger[aria-expanded="true"]{background:#174f55;box-shadow:0 5px 15px #1c68664a}.theme-trigger svg{width:19px;height:19px;flex:none}.theme-trigger:focus-visible,.theme-dialog :focus-visible{outline:3px solid #d07826;outline-offset:3px}
.theme-dialog{box-sizing:border-box;width:min(590px,calc(100% - 32px));max-width:none;max-height:calc(100dvh - 32px);margin:auto;padding:30px;border:1px solid #e9ddcf;border-radius:24px;background:#fffcf8;color:#302922;box-shadow:0 26px 85px #241b1466;overflow:auto;font-family:var(--font,sans-serif)}
.theme-dialog::backdrop{background:#1d2829ad}.theme-dialog__heading{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;margin-bottom:22px}.theme-dialog__eyebrow{margin:0 0 7px;color:#9a4b1a;font-size:11px;font-weight:800;letter-spacing:.12em}.theme-dialog h2{margin:0;color:#302922;font-size:clamp(23px,4vw,30px);line-height:1.2}.theme-dialog__subtitle{margin:8px 0 0;color:#6d6056;font-size:14px}.theme-dialog__close{width:44px;height:44px;flex:none;display:grid;place-items:center;border:1px solid #e8d8ca;border-radius:50%;background:#fff;color:#433128;cursor:pointer}.theme-dialog__close svg{width:19px;height:19px}
.theme-dialog__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.theme-option{display:flex;align-items:center;gap:12px;min-width:0;min-height:71px;padding:12px;border:1px solid #e6ded5;border-radius:14px;background:#fff;color:#302922;text-align:start;font:700 13px/1.3 var(--font,sans-serif);cursor:pointer;transition:border-color .2s,box-shadow .2s,transform .2s}.theme-option:hover{border-color:#b9703b;transform:translateY(-2px)}.theme-option[aria-pressed="true"]{border-color:#a84a0c;box-shadow:0 0 0 2px #dba46e55}.theme-option__swatches{display:flex;flex:none;padding:4px;background:#f5f1ec;border-radius:20px}.theme-option__swatches i{width:17px;height:17px;border-radius:50%;border:1px solid #0002}.theme-option__swatches i+i{margin-inline-start:-5px}.theme-option__name{flex:1;overflow-wrap:anywhere}.theme-option__check{opacity:0;color:#a84a0c;font-size:17px}.theme-option[aria-pressed="true"] .theme-option__check{opacity:1}.theme-dialog__reset{display:block;margin:20px auto 0;padding:9px 12px;border:0;background:none;color:#824019;font:700 13px var(--font,sans-serif);text-decoration:underline;cursor:pointer}
@media(prefers-reduced-motion:no-preference){.theme-dialog[open]{animation:theme-enter .24s ease both}@keyframes theme-enter{from{opacity:0;transform:translateY(12px) scale(.97)}to{opacity:1;transform:none}}}
@media(max-width:1000px){.theme-trigger{width:44px;padding:0}.theme-trigger span{display:none}}
@media(max-width:380px){.theme-dialog{width:calc(100% - 20px);padding:20px 16px;border-radius:18px}.theme-option{gap:7px;padding:9px 7px;font-size:12px}.theme-option__swatches i{width:14px;height:14px}.header-utilities{gap:3px}.site-header .brand img{width:92px}}
@media(prefers-reduced-motion:reduce){.theme-option,.theme-trigger{transition:none}.theme-option:hover{transform:none}}
