html[data-theme="light"]{--ink:#f5efe2;--ink2:#fffaf0;--ink3:#fffaf0;--ivory:#28241b;--muted:#554c3c;--gold:#67522c;--gold-hi:#67522c;--gold-lo:#67522c;--line:#554c3c;color-scheme:light}
html[data-theme="sage"]{--ink:#dce9d5;--ink2:#f2f6ee;--ink3:#f2f6ee;--ivory:#203c2b;--muted:#36513c;--gold:#2e593d;--gold-hi:#2e593d;--gold-lo:#2e593d;--line:#36513c;color-scheme:light}
html[data-theme="dark"]{--ink:#14161a;--ink2:#1a1d22;--ink3:#1a1d22;--ivory:#eceae1;--muted:#a29d8c;--gold:#c7c1a5;--gold-hi:#c7c1a5;--gold-lo:#c7c1a5;--line:#a29d8c;color-scheme:dark}
html[data-theme="contrast"]{--ink:#000000;--ink2:#0a0a0a;--ink3:#0a0a0a;--ivory:#ffffff;--muted:#f0f0f0;--gold:#efe3c4;--gold-hi:#efe3c4;--gold-lo:#efe3c4;--line:#f0f0f0;color-scheme:dark}
/* New palettes are opt-in. Original theme rules and the default page retain their colors. */
html[data-adham-palette] .btn.gold{background:linear-gradient(120deg,#e6d7be,#c7c1a5 55%,#b4ad8f)!important;color:#14161a!important;border-color:var(--muted)}
html[data-adham-palette] :is(.eyebrow,.logo small,.chip,.btn.line){color:var(--gold-hi)}
html[data-adham-palette] :is(input,textarea,select){color:var(--ivory);background:var(--ink2);border-color:var(--muted)}
html[data-adham-palette] :is(.nl-form,.news,.cform) input{background:var(--ink2);color:var(--ivory)}
html[data-adham-palette] :is(input,textarea)::placeholder{color:var(--muted);opacity:1}
html[data-adham-palette] :is(a,button,input,textarea,select,summary):focus-visible{outline:3px solid var(--ivory);outline-offset:3px;box-shadow:0 0 0 6px var(--ink)}
/* Fixed neutral panel: swatches preview the page without changing the legibility of the controls. */
#adham-theme-btn{position:fixed;left:18px;bottom:72px;z-index:2147482500;width:52px;height:52px;display:grid;place-items:center;padding:0;border-radius:50%;border:1px solid #c7c1a5;background:#1a1d22;color:#eceae1;cursor:pointer;box-shadow:0 4px 18px #0005}
#adham-theme-panel{position:fixed;left:18px;bottom:136px;z-index:2147482501;width:min(456px,calc(100vw - 36px));max-height:calc(100dvh - 156px);display:flex;flex-direction:column;border:1px solid #857c65;border-radius:20px;background:#1a1d22;color:#eceae1;box-shadow:0 14px 50px #0006;font:15px/1.45 Inter,system-ui,sans-serif;isolation:isolate;overflow:hidden;box-sizing:border-box;color-scheme:dark;padding:0;margin:0;text-align:start}
#adham-theme-panel[hidden]{display:none!important}
#adham-theme-panel *{box-sizing:border-box;letter-spacing:normal}
#adham-theme-panel :is(h2,h3,p,span,legend,output){color:inherit!important}
#adham-theme-panel button{font:inherit;color:inherit;cursor:pointer;min-height:44px;border:1px solid #8b8472;background:transparent;border-radius:10px;padding:8px 12px;box-shadow:none}
#adham-theme-panel button:hover{background:#2b3038}
#adham-theme-panel :is(button,summary,input):focus-visible,#adham-theme-btn:focus-visible{outline:3px solid #f3df9d;outline-offset:3px}
#adham-theme-panel .a11y-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 14px;border-bottom:1px solid #474a4c;background:#1a1d22}
#adham-theme-panel .a11y-kicker{display:block;font-size:10px;letter-spacing:.16em;color:#c7c1a5!important;margin-bottom:5px}
#adham-theme-panel h2{font:600 25px/1.2 Georgia,serif;margin:0}
#adham-theme-panel #adham-theme-x{font:26px/1 system-ui;padding:0;flex:0 0 44px;width:44px}
#adham-theme-panel .a11y-body{overflow-y:auto;overscroll-behavior:contain;padding:14px 20px 12px;min-height:0;scrollbar-gutter:stable;scroll-padding:12px}
#adham-theme-panel .a11y-intro{margin:0 0 14px;font-size:14px;color:#c8c6bd!important}
#adham-theme-panel .a11y-section{border:0;border-top:1px solid #474a4c;margin:0;padding:0}
#adham-theme-panel summary{font-weight:600;font-size:16px;padding:13px 2px;cursor:pointer;min-height:44px;list-style:revert}
#adham-theme-panel fieldset{min-width:0;border:0;margin:0;padding:0 0 14px}
#adham-theme-panel legend{font-size:14px;font-weight:600;padding:0;margin-bottom:5px}
#adham-theme-panel #adham-color-help{font-size:13px;color:#c8c6bd!important;margin:0 0 12px}
#adham-theme-panel .a11y-preview{padding:13px 14px;border-radius:12px;background:var(--sample-bg);color:var(--sample-ink)!important;margin-bottom:16px;border:1px solid #857c65}
#adham-theme-panel .a11y-preview div{display:flex;align-items:center;justify-content:space-between;gap:8px}
#adham-theme-panel .a11y-preview strong{font:27px/1 Georgia,serif;color:inherit}
#adham-theme-panel .a11y-preview span{font-weight:600;font-size:13px}
#adham-theme-panel .a11y-preview p{font-size:14px;margin:5px 0 10px}
#adham-theme-panel .a11y-sample-line{display:block;width:60%;height:5px;border-radius:4px;background:linear-gradient(90deg,var(--sample-accent),#c7c1a5)}
#adham-theme-panel .a11y-group+.a11y-group{margin-top:16px}
#adham-theme-panel h3{font:600 13px/1.4 Inter,system-ui,sans-serif;margin:0 0 9px;color:#c8c6bd!important}
#adham-theme-panel .a11y-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px 8px}
#adham-theme-panel .a11y-choice{position:relative;display:flex;flex-direction:column;gap:6px;cursor:pointer;min-width:0;padding:3px;border-radius:10px}
#adham-theme-panel .a11y-choice input{position:absolute;left:8px;top:8px;width:18px;height:18px;margin:0;opacity:0}
#adham-theme-panel .a11y-swatch{height:58px;display:flex;align-items:center;justify-content:center;position:relative;border-radius:9px;background:var(--swatch);color:var(--swatch-ink)!important;border:1px solid #8b8472}
#adham-theme-panel .a11y-swatch>span:first-child{font:23px/1 Georgia,serif}
#adham-theme-panel .a11y-swatch i{position:absolute;bottom:9px;width:26px;height:2px;background:currentColor}
#adham-theme-panel .a11y-check{display:none;position:absolute;right:5px;top:3px;font:700 14px/1.2 system-ui}
#adham-theme-panel input:checked+.a11y-swatch{outline:2px solid #f3df9d;outline-offset:2px}
#adham-theme-panel input:checked+.a11y-swatch .a11y-check{display:block}
#adham-theme-panel input:focus-visible+.a11y-swatch{outline:3px solid #fff;outline-offset:3px}
#adham-theme-panel .a11y-choice-name{text-align:center;font-size:12px;line-height:1.35;overflow-wrap:anywhere}
#adham-theme-panel .a11y-size{display:flex;align-items:center;gap:8px;padding:0 0 14px;flex-wrap:wrap}
#adham-theme-panel .a11y-size>span{flex:1;font-size:14px}
#adham-theme-panel .a11y-size button{width:44px;padding:8px 0}
#adham-theme-panel .a11y-size output{min-width:45px;text-align:center;font-size:14px}
#adham-theme-panel button:disabled{opacity:.55;cursor:default}
#adham-theme-panel .a11y-foot{padding:12px 20px 16px;border-top:1px solid #474a4c;background:#1a1d22}
#adham-theme-panel #adham-theme-status{font-size:12px;line-height:1.45;margin:0 0 9px;color:#c8c6bd!important;min-height:18px}
#adham-theme-panel .a11y-actions{display:flex;align-items:stretch;gap:10px;flex-wrap:wrap}
#adham-theme-panel .a11y-actions button{flex:1;font-size:13px}
#adham-theme-panel #adham-apply{background:linear-gradient(120deg,#e6d7be,#c7c1a5);color:#14161a;border-color:#c7c1a5;font-weight:700}
@media(max-width:480px){#adham-theme-panel{left:10px;bottom:134px;width:calc(100vw - 20px);max-height:calc(100dvh - 148px);border-radius:16px}#adham-theme-panel .a11y-head{padding:14px 14px 12px}#adham-theme-panel .a11y-body{padding:12px 14px}#adham-theme-panel .a11y-foot{padding:10px 14px 12px}#adham-theme-panel .a11y-grid{gap:9px 6px}#adham-theme-panel .a11y-swatch{height:52px}}
@media(max-height:520px){#adham-theme-panel{top:8px;bottom:8px;max-height:calc(100dvh - 16px)}}
@media(forced-colors:active){#adham-theme-panel,#adham-theme-btn{background:Canvas;color:CanvasText;border:1px solid CanvasText}#adham-theme-panel .a11y-swatch{forced-color-adjust:none}#adham-theme-panel input:checked+.a11y-swatch{outline-color:Highlight}#adham-theme-panel input:focus-visible+.a11y-swatch{outline:3px solid Highlight}#adham-theme-panel #adham-apply{background:ButtonFace;color:ButtonText;border:1px solid ButtonText}}
@media(print){#adham-theme-btn,#adham-theme-panel{display:none!important}}

/* Keep the theme chooser controls readable under every page palette. */
html[data-theme] #adham-theme-panel .a11y-foot{background:#1a1d22!important;color:#eceae1!important}

/* Four calm appearances. Light palettes always use dark readable ink. */
.magic-sweep{display:none!important}
.hero{background-image:var(--adham-home-image,url(/assets/hero.jpg))!important;animation:none!important}
html[data-adham-palette=light] .magic-layer{display:none!important}
html[data-adham-palette=light] .logo img,html[data-adham-palette=light] footer img[src*="logo"]{content:url(/assets/logo-black.png)!important;filter:none!important;background:transparent!important}
html[data-adham-palette=light] .hero::before{background:linear-gradient(90deg,color-mix(in srgb,var(--ink) 97%,transparent) 0%,color-mix(in srgb,var(--ink) 92%,transparent) 40%,color-mix(in srgb,var(--ink) 10%,transparent) 76%)!important}
html[dir=rtl][data-adham-palette=light] .hero::before{background:linear-gradient(270deg,color-mix(in srgb,var(--ink) 97%,transparent) 0%,color-mix(in srgb,var(--ink) 92%,transparent) 45%,color-mix(in srgb,var(--ink) 10%,transparent) 80%)!important}
html[data-adham-palette=light] .hero :is(h1,h1 em,p,.lead,.phone,.eyebrow){color:var(--ivory)!important}
html[data-adham-palette=light] .hero .btn.line{color:var(--ivory)!important;background:var(--ink2)!important;border-color:var(--gold)}
html[data-adham-palette=light] :is(.lp-hero h1,.lp-hero h1 em,.lp-hero p,.lp-hero .crumbs,.lp-hero .crumbs a){color:#f3efe4!important}
html[data-adham-palette=dark] .hero :is(h1,h1 em,p,.lead,.phone,.eyebrow){color:#f3efe4!important}
html[data-adham-palette=dark] .hero .btn.line{color:#eceae1;background:#14161a;border-color:#c7c1a5}
#adham-theme-panel .a11y-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
#adham-theme-panel .a11y-preview{display:none}
#adham-theme-panel .a11y-foot{background:#1a1d22!important;color:#eceae1!important}
html[data-adham-palette=light] :is(a,button,input,textarea,select,summary):focus-visible{outline-color:var(--ivory);box-shadow:0 0 0 6px var(--ink)}
@media(max-width:760px){
 .hero{background-size:auto 62%!important;background-position:76% 0!important;animation:none!important}
 html[data-adham-palette=light] .hero::before,html[dir=rtl][data-adham-palette=light] .hero::before{background:linear-gradient(180deg,transparent 0%,transparent 30%,color-mix(in srgb,var(--ink) 96%,transparent) 50%,var(--ink) 60%)!important}
 html[data-adham-palette=light] .hero .copy{padding-top:clamp(230px,44vw,350px)!important}
}
