/* Aperture theme selector bridge - EP-102 mechanism. Maps theme's own hardcoded hex to canonical --color-*/--font-* tokens. */

body{background-color:var(--color-bg)!important;}
.theme-aperture{background-color:var(--color-bg)!important;font-family:var(--font-body)!important;}
.theme-aperture h1,.theme-aperture h2,.theme-aperture h3,.theme-aperture h4,.theme-aperture h5,.theme-aperture h6{font-family:var(--font-heading)!important;}

/* page/card background = #0E0E10 (bg token) */
.apt-svc-card,.apt-fullmenu,.apt-cta__btn:hover,.apt-form-submit,.apt-cta__btn,.apt-nav-arrows button:hover,.apt-contact-info__socials a:hover,.vfc-nav:hover,.vfs-nav button:hover,.vrg-nav-arrows button:hover{background-color:var(--color-bg)!important;}
.apt-cta__btn,.apt-cta__btn:hover,.apt-form-submit,.apt-nav-arrows button:hover,.apt-contact-info__socials a:hover,.vfc-nav:hover,.vfs-nav button:hover,.vrg-nav-arrows button:hover{color:var(--color-bg)!important;}

/* primary light text = #E6E6E6 (text token) */
.apt-about-hero__title,.apt-contact-hero__title,.apt-contact-info__value,.apt-cta__title,.apt-footer a,.apt-fullmenu a:hover,.apt-fullmenu a.is-active,.apt-header .apt-logo,.apt-home-empty h3,.apt-nav-arrows button,.apt-pf-empty h3,.apt-pf-filters a:hover,.apt-pf-filters a.is-active,.apt-pf-head h1,.apt-pf-meta h4,.apt-pfd-back:hover,.apt-pfd-head h1,.apt-pfd-missing h3,.apt-pfd-next a:hover,.apt-pfd-next a,.apt-section__title,.apt-services-hero__title,.apt-slide__caption,.apt-slide__explore:hover,.apt-stat__num,.apt-svc-card__cta:hover,.apt-svc-card__name,.apt-svc-card__price,.apt-testi-card__name,.apt-toggle span,.vaj-back:hover,.vaj-head h1,.vaj-missing h3,.vaj-next a:hover,.vaj-next a,.vam-back:hover,.vam-head h1,.vam-missing h3,.vam-next a:hover,.vam-next a,.vcg-card__title,.vcg-cta a:hover,.vcg-cta h2,.vcg-empty h3,.vcg-intro h1,.vfc-card__caption,.vfc-empty h3,.vfc-nav,.vfs-dots button.is-active,.vfs-empty h3,.vfs-nav button,.vfs-slide__caption,.vfs-slide__explore:hover,.vrg-count strong,.vrg-empty h3,.vrg-nav-arrows button,.vrg-slide__caption,.vrg-slide__explore:hover{color:var(--color-text)!important;}
.apt-toggle span{background-color:var(--color-text)!important;}
.vfs-dots button.is-active{background-color:var(--color-text)!important;}
.apt-nav-arrows button:hover,.apt-contact-info__socials a:hover,.vfc-nav:hover,.vfs-nav button:hover,.vrg-nav-arrows button:hover{background-color:var(--color-text)!important;border-color:var(--color-text)!important;}
.apt-pf-filters a:hover,.apt-pf-filters a.is-active,.apt-pfd-next a:hover,.apt-slide__explore:hover,.apt-svc-card__cta:hover,.vaj-next a:hover,.vam-next a:hover,.vcg-cta a:hover,.vfc-card__explore:hover,.vfs-slide__explore:hover,.vrg-slide__explore:hover{border-color:var(--color-text)!important;}

/* faded/alpha text (E6E6E6C0 / E6E6E680) -> muted */
.apt-pf-meta span,.apt-pfd-meta,.vaj-meta,.vam-meta,.apt-slide__meta,.apt-slide__peek-label{color:var(--color-text-muted)!important;}

/* muted text = #A6A6A6 / #C8C8CA / #6A6A6C (text-muted token) */
.apt-about-hero__text,.apt-contact-hero__text,.apt-contact-info__label,.apt-contact-info__socials a,.apt-footer-about,.apt-footer,.apt-fullmenu a,.apt-home-empty,.apt-pf-empty,.apt-pf-filters a,.apt-pfd-back,.apt-pfd-intro,.apt-pfd-missing,.apt-pfd-next h4,.apt-section__eyebrow,.apt-section__text,.apt-services-empty,.apt-services-hero__text,.apt-stat__label,.apt-svc-card__cta,.apt-svc-card__desc,.apt-svc-card__from,.apt-tagline,.vaj-back,.vaj-intro,.vaj-missing,.vaj-next h4,.vam-back,.vam-intro,.vam-missing,.vam-next h4,.vcg-card__row,.vcg-cta a,.vcg-empty,.vcg-intro p,.vfc-card__explore,.vfc-card__meta,.vfc-empty,.vfs-empty,.vfs-slide__explore,.vfs-slide__meta,.vrg-count,.vrg-empty,.vrg-slide__explore,.apt-testi-card__text{color:var(--color-text-muted)!important;}
.vfs-dots button{background-color:var(--color-text-muted)!important;}

/* borders using the muted gray = #A6A6A6 -> border token */
.apt-contact-info__socials a,.apt-nav-arrows button,.apt-slide__explore,.apt-svc-card__cta,.vfc-nav,.vfs-nav button,.vrg-nav-arrows button,.vcg-cta a,.vfc-card__explore,.vfs-slide__explore,.vrg-slide__explore{border-color:var(--color-border)!important;}

/* surface (card/placeholder) backgrounds = #212224 / #161618 / #1A1A1C */
.apt-pf-card,.apt-pfd-grid img,.vaj-justified img,.vam-masonry img,.apt-slide__bg,.apt-slide,.apt-testi-card,.vcg-card,.vfc-card,.vfs-slide,.vrg-slide,.apt-slide__peek{background-color:var(--color-surface)!important;}

/* hairline borders/dividers = #1E1E20 / #2A2A2C / #212224 */
.apt-pfd-next,.vaj-next,.vam-next,.vcg-cta,.apt-cta,.apt-section,.apt-services-grid,.apt-testi-card,.apt-form-row input,.apt-form-row textarea{border-color:var(--color-border)!important;}

/* accent = #84ABD5 (primary token) */
.apt-testi-card__role,.apt-cta__btn:hover,.apt-form-row input:focus,.apt-form-row textarea:focus,.apt-form-submit:hover,.apt-svc-card__icon,.apt-footer a:hover{color:var(--color-primary)!important;}
.apt-cta__btn:hover,.apt-form-submit:hover{background-color:var(--color-primary)!important;}
.apt-form-row input:focus,.apt-form-row textarea:focus{border-color:var(--color-primary)!important;}
.apt-form-alert.success{background-color:rgba(132,171,213,.12)!important;color:var(--color-primary)!important;border-color:var(--color-primary)!important;}

/* shared FAQ accordion widget (EP-107 standing checklist item, no-op if theme has no FAQ page) */
.pbmit-accordion-title{color:var(--color-text)!important;}
.accordion-button:not(.collapsed){background-color:var(--color-surface)!important;}
