.at-custom-colors{margin-top:22px;padding-top:20px;border-top:1px solid var(--panel-line,#bbb5a0)}
#at-custom-colors h3{font:600 18px/1.4 var(--sans,system-ui);margin:0 0 9px}#at-custom-colors p{font-size:13px;line-height:1.6;margin:8px 0}#at-custom-colors fieldset{padding:0;margin:0;border:0;min-width:0}#at-custom-colors fieldset:disabled{opacity:.55}
.at-custom-toggle{display:flex;align-items:center;gap:10px;min-height:48px;font-size:14px;font-weight:600}.at-custom-toggle input{width:22px;height:22px;accent-color:currentColor}
.at-color-row{display:grid;grid-template-columns:1fr 48px auto;align-items:center;gap:8px;padding:14px 0;border-top:1px solid #aaa6}.at-color-row>label{font-weight:600;font-size:14px}.at-color-row output{font:12px/1.4 ui-monospace,monospace;direction:ltr}.at-color-row input[type=color]{width:48px;height:44px;padding:3px;border:1px solid #999;border-radius:8px;background:transparent}
.at-color-slider{display:grid;grid-template-columns:44px 1fr 44px;gap:10px;align-items:center;grid-column:1/-1}.at-color-slider button{min-height:44px;border:1px solid currentColor;border-radius:50%;background:transparent;color:inherit;font:24px/1 system-ui;cursor:pointer}.at-color-slider input{min-width:0;width:100%;min-height:44px;accent-color:#86734c}.at-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
#at-custom-status[data-valid=false]{color:#b02020!important;font-weight:600}#adham-apply:disabled{opacity:.5;cursor:not-allowed}
html[data-custom-colors]{--ink:var(--at-custom-background)!important;--ink2:var(--at-custom-background)!important;--ink3:var(--at-custom-background)!important;--ivory:var(--at-custom-text)!important;--muted:var(--at-custom-text)!important;--gold:var(--at-custom-buttons)!important;--gold-hi:var(--at-custom-buttons)!important;--gold-lo:var(--at-custom-buttons)!important;background:var(--at-custom-background)!important;color:var(--at-custom-text)!important}
html[data-custom-colors] :is(body,header.site,footer,section:not(#adham-theme-panel):not(#adham-theme-panel *),.band,.hero .copy,.page-hero,.drop,.at-shortcut-bar):not(#adham-theme-panel):not(#adham-theme-panel *){background-color:var(--at-custom-background)!important;background-image:none!important;color:var(--at-custom-text)!important}
html[data-custom-colors] :is(h1,h2,h3,h4,p,.muted,.eyebrow,.phone,nav.menu a,.logo span,.at-bar-link,footer a):not(#adham-theme-panel *){color:var(--at-custom-text)!important}
html[data-custom-colors] :is(.btn.gold,.at-extra-btn,.at-shortcut-bar .at-primary,.at-drawer-book){background:var(--at-custom-buttons)!important;border-color:var(--at-custom-buttons)!important;color:var(--at-custom-button-text)!important}
html[data-custom-colors] :is(.icon-btn,.fa-brands,.soc,#adham-theme-btn){color:var(--at-custom-icons)!important;border-color:var(--at-custom-icons)!important;background-color:var(--at-custom-background)!important}
html[data-custom-colors] header.site :is(.burger,.lang-menu>summary)::before{background-color:var(--at-custom-icons)!important}
html[data-custom-colors] .at-glass-menu{--drawer-surface:var(--at-custom-background);--drawer-ink:var(--at-custom-text);--drawer-muted:var(--at-custom-text);--drawer-line:var(--at-custom-icons);--drawer-hover:transparent}
@media(prefers-reduced-motion:reduce){.at-color-row *{transition:none!important}}

/* Controls remain a fixed neutral surface while the customer previews any page color. */
#adham-theme-panel #at-custom-colors{background:transparent!important;color:#eceae1!important;padding-top:20px}#adham-theme-panel #at-custom-colors :is(label,p,h3,output){color:#eceae1!important}#adham-theme-panel #at-custom-status[data-valid=false]{color:#ffb4ab!important}
html[data-custom-colors] :is(.at-label,.at-shortcut-bar a:not(.at-primary),.at-extra-btn:not(.at-admin),.btn.line,.hero .copy :is(h1,p,.eyebrow,.phone),.hero h1 em){color:var(--at-custom-text)!important}
html[data-custom-colors] .hero::before{background:transparent!important}
html[data-custom-colors] .hero .copy{padding-top:clamp(30px,5vw,90px)!important}
html[data-custom-colors] :is(.at-extra-btn,.btn.gold,.at-shortcut-bar .at-primary,.at-drawer-book){background:var(--at-custom-buttons)!important;color:var(--at-custom-button-text)!important;border-color:var(--at-custom-buttons)!important}

html[data-custom-colors][data-custom-dark=true] .logo img,html[data-custom-colors][data-custom-dark=true] footer img[src*=logo]{content:url(/assets/logo.png)!important;filter:none!important}
html[data-custom-colors][data-custom-dark=false] .logo img,html[data-custom-colors][data-custom-dark=false] footer img[src*=logo]{content:url(/assets/logo-black.png)!important;filter:none!important}
html[data-theme] #adham-theme-panel .a11y-foot{background:#1a1d22!important;color:#eceae1!important}
