/* Site-wide palette layer. Loaded after the legacy and homepage styles so one
   admin-owned set of variables controls every public surface consistently. */
body{background:var(--theme-card);color:var(--theme-text);color-scheme:var(--theme-control-scheme)}
::selection{background:var(--theme-accent-soft);color:var(--theme-text)}
:focus-visible{outline-color:var(--theme-link)}
.brand-mark,.reference-home .brand-mark{background:var(--theme-accent);color:var(--theme-on-accent);box-shadow:none}
.brand-mark.brand-mark-image,.reference-home .brand-mark.brand-mark-image{background:#ffffff;color:#15243b;border-color:var(--theme-border)}
.brand-type strong,.site-footer .brand-type strong,.reference-home .brand-type strong{color:var(--theme-text)}
.brand-type small,.reference-home .brand-type small{color:var(--theme-muted)}

/* Global navigation, announcement and footer. */
.announcement{background:color-mix(in srgb,var(--theme-accent) 9%,var(--theme-header));border-color:var(--theme-border);color:var(--theme-text)}
.announcement-inner>a{color:var(--theme-link-nav)}
.announcement-pip{background:var(--theme-accent);box-shadow:0 0 0 4px var(--theme-accent-soft)}
.site-header,.reference-home .site-header{background:var(--theme-header);border-bottom-color:var(--theme-border);box-shadow:0 3px 18px rgba(0,0,0,.04)}
.primary-nav>a,.reference-home .primary-nav>a{color:var(--theme-text)}
.primary-nav>a:hover,.primary-nav>a.active,.reference-home .primary-nav>a:hover,.reference-home .primary-nav>a.active{background:color-mix(in srgb,var(--theme-accent) 12%,var(--theme-header));color:var(--theme-link-nav)}
.nav-menu-btn,.reference-home .nav-menu-btn{color:var(--theme-text);border-color:var(--theme-border)}
.btn-accent,.nav-actions .btn-accent,.reference-home .nav-actions .btn-accent{background:var(--theme-accent);color:var(--theme-on-accent);box-shadow:0 7px 24px rgba(0,0,0,.12)}
.btn-accent:hover,.nav-actions .btn-accent:hover,.reference-home .nav-actions .btn-accent:hover{background:color-mix(in srgb,var(--theme-accent) 85%,var(--theme-hero));color:var(--theme-on-accent)}
.btn-dark,.closing-cta .btn-dark{background:var(--theme-hero);color:var(--theme-hero-text)}
.btn-dark:hover{filter:brightness(1.14)}
.btn-outline-dark{color:var(--theme-text);border-color:var(--theme-border);background:var(--theme-card)}
.btn-outline-dark:hover{background:var(--theme-accent-soft);border-color:var(--theme-accent)}
.btn-outline-light{color:var(--theme-hero-text);border-color:color-mix(in srgb,var(--theme-hero-text) 32%,var(--theme-hero));background:transparent}
.btn-outline-light:hover{background:color-mix(in srgb,var(--theme-hero-text) 9%,var(--theme-hero));border-color:var(--theme-hero-text)}
.btn-link-dark,.text-link{color:var(--theme-link)}
.text-link{border-bottom-color:var(--theme-border)}
.site-footer,.reference-home .site-footer{background:var(--theme-footer);color:var(--theme-footer-text);border-color:var(--theme-border)}
.site-footer .brand-type strong,.reference-home .site-footer .brand-type strong,.footer-top h3,.reference-home .footer-top h3{color:var(--theme-footer-text)}
.site-footer .brand-type small,.footer-brand-column p,.footer-contact p,.reference-home .footer-brand-column p,.reference-home .footer-contact p,.footer-links>a,.footer-contact>a,.reference-home .footer-links>a,.reference-home .footer-contact>a,.footer-bottom,.reference-home .footer-bottom{color:var(--theme-footer-text)}
.footer-socials a,.reference-home .footer-socials a{background:color-mix(in srgb,var(--theme-accent) 12%,var(--theme-footer));color:var(--theme-link-footer)}
.footer-socials a:hover,.footer-links>a:hover,.footer-contact>a:hover,.reference-home .footer-links>a:hover,.reference-home .footer-contact>a:hover,.footer-bottom a,.reference-home .footer-bottom a{color:var(--theme-link-footer)}
.footer-bottom,.reference-home .footer-bottom{border-top-color:var(--theme-border)}

/* Inner-page banners and content sections. */
.hero,.interior-hero,.detail-hero{background:linear-gradient(115deg,var(--theme-hero),color-mix(in srgb,var(--theme-hero) 86%,var(--theme-accent)));color:var(--theme-hero-text)}
.interior-copy h1 em,.drivers-hero h1 em,.detail-dot,.eyebrow,.detail-kicker,.aside-icon{color:var(--theme-hero-highlight)}
.hero-description,.interior-copy p,.detail-hero p,.drivers-hero-copy>p,.hero-search-hint,.interior-aside>span:last-child{color:var(--theme-hero-text);opacity:.83}
.interior-aside{background:color-mix(in srgb,var(--theme-accent) 11%,var(--theme-hero));border-color:color-mix(in srgb,var(--theme-hero-text) 28%,var(--theme-hero))}
.detail-hero-watermark{background:color-mix(in srgb,var(--theme-accent) 10%,var(--theme-hero));color:color-mix(in srgb,var(--theme-accent) 47%,var(--theme-hero));border-color:color-mix(in srgb,var(--theme-accent) 27%,var(--theme-hero))}
.file-illustration,.contact-hero-decoration>span{background:color-mix(in srgb,var(--theme-accent) 12%,var(--theme-hero));border-color:color-mix(in srgb,var(--theme-hero-text) 20%,var(--theme-hero));color:var(--theme-hero-text)}
.file-front{background:color-mix(in srgb,var(--theme-accent) 23%,var(--theme-hero));border-color:var(--theme-hero-highlight)}
.file-front-icon,.file-art-spark,.contact-hero-decoration{color:var(--theme-hero-highlight)}
.file-front-icon{background:color-mix(in srgb,var(--theme-accent) 15%,var(--theme-hero))}
.file-front strong,.file-front small{color:var(--theme-hero-text)}
.interior-grid{background-image:linear-gradient(color-mix(in srgb,var(--theme-hero-text) 8%,transparent) 1px,transparent 1px),linear-gradient(90deg,color-mix(in srgb,var(--theme-hero-text) 8%,transparent) 1px,transparent 1px)}
.hero-search{background:var(--theme-card);border-color:var(--theme-border);color:var(--theme-muted)}
.hero-search input,.catalog-search input{color:var(--theme-text)}
.hero-search button,.chat-send{background:var(--theme-accent);color:var(--theme-on-accent)}
.hero-search button:hover{filter:brightness(.9)}
.eyebrow-dark,.overline{color:var(--theme-link)}
.section,.listings-section,.download-catalog,.contact-section,.detail-content-section,.legal-section,.workflow-section{background:var(--theme-card);color:var(--theme-text)}
.download-section,.legal-heading,.not-found-section{background:var(--theme-page)}
.section h2,.closing-cta h2,.legal-heading h1,.not-found-inner h1,.catalog-heading h2{color:var(--theme-text)}
.section-subtitle,.catalog-heading>p,.service-disclaimer,.section-side-note,.legal-heading p,.legal-body p,.not-found-inner p,.detail-breadcrumb{color:var(--theme-muted)}
.service-card,.service-list-card,.driver-card,.download-preview-card,.contact-option,.detail-side-card{background:var(--theme-card);border-color:var(--theme-border);color:var(--theme-text)}
.service-card:hover,.service-list-card:hover,.driver-card:hover,.download-preview-card:hover,.contact-option:hover{border-color:var(--theme-accent)}
.service-card p,.service-list-body p,.driver-card>p,.download-preview-card p,.contact-option p,.prose p,.workflow-step p{color:var(--theme-muted)}
.service-symbol,.download-symbol,.step-icon,.contact-option-icon,.contact-option-featured .contact-option-icon,.contact-other-icon,.side-card-badge,.status-tag,.download-banner-icon,.process-row>span{background:var(--theme-accent-soft);color:var(--theme-link)}
.service-category,.download-type,.service-card-bottom,.service-list-foot,.download-preview-bottom,.download-banner-icon,.contact-option-eyebrow,.contact-option>strong,.contact-option-arrow,.contact-other a,.legal-body a,.side-card-foot a,.driver-card-title:hover,.result-line>span:first-child{color:var(--theme-link)}
.service-list-body h3 a:hover,.legal-end a:hover,.detail-breadcrumb a:hover{color:var(--theme-link)}
.download-type,.download-preview-bottom>span:last-child,.driver-card-type,.driver-card-title>svg,.card-number,.service-disclaimer svg,.sort-control,.result-line,.driver-source small,.side-card-foot{color:var(--theme-muted)}
.heading-count,.empty-state>span{background:var(--theme-accent-soft);color:var(--theme-link)}
.empty-state{border-color:var(--theme-border);background:var(--theme-card)}
.empty-state p{color:var(--theme-muted)}
.driver-tags span{background:var(--theme-accent-soft);color:var(--theme-text)}
.driver-source span{color:var(--theme-text)}
.sort-control select{background:var(--theme-card);color:var(--theme-text)}
.filter-chip,.type-tab,.catalog-search,.sort-control,.contact-other,.contact-other>div+div{border-color:var(--theme-border)}
.filter-chip{background:var(--theme-card);color:var(--theme-muted)}
.filter-chip:hover{color:var(--theme-link);border-color:var(--theme-accent)}
.filter-chip.active{color:var(--theme-on-accent);background:var(--theme-accent);border-color:var(--theme-accent)}
.type-tab{color:var(--theme-muted)}
.type-tab.active{color:var(--theme-link);border-bottom-color:var(--theme-accent)}
.type-tab span{background:var(--theme-accent-soft);color:var(--theme-link)}
.catalog-search,.catalog-search input,.sort-control select,.chat-compose textarea,.chat-name-wrap input{background:var(--theme-card);color:var(--theme-text)}
.catalog-search input::placeholder,.hero-search input::placeholder,.chat-compose textarea::placeholder,.chat-name-wrap input::placeholder{color:var(--theme-muted)}
.catalog-search:focus-within,.hero-search:focus-within{border-color:var(--theme-accent);box-shadow:0 0 0 3px var(--theme-accent-soft)}
.driver-download-btn,.service-list-foot>a{background:var(--theme-accent-soft);color:var(--theme-link)}
.driver-download-btn:hover,.service-list-foot>a:hover{background:var(--theme-accent);color:var(--theme-on-accent)}
.download-banner,.catalog-note,.side-help,.contact-tip,.contact-option-featured,.process-box,.detail-disclaimer,.checksum-card,.contact-other{background:color-mix(in srgb,var(--theme-accent) 6%,var(--theme-card));border-color:var(--theme-border);color:var(--theme-text)}
.download-banner strong,.download-banner span:not(.download-banner-icon),.catalog-note strong,.catalog-note p,.side-help strong,.side-help p,.contact-tip strong,.contact-tip p,.detail-disclaimer p,.process-row p,.side-facts span,.side-facts strong,.contact-other p,.checksum-card code{color:var(--theme-muted)}
.catalog-note>svg,.side-help>span,.contact-tip>span,.side-help button,.checksum-card>div,.checksum-card button{color:var(--theme-link)}
.process-box h3,.process-row strong,.detail-side-card h3{color:var(--theme-text)}
.process-row,.side-facts>div,.download-controls,.contact-other>div+div{border-color:var(--theme-border)}
.checksum-card code{background:var(--theme-page)}
.closing-cta{background:linear-gradient(135deg,var(--theme-accent),color-mix(in srgb,var(--theme-accent) 75%,var(--theme-hero)));color:var(--theme-on-accent)}
.closing-cta h2,.closing-cta .eyebrow,.closing-cta p,.closing-cta .btn-link-dark{color:var(--theme-on-accent)}
.closing-art>span{background:var(--theme-hero);color:var(--theme-hero-text)}
.not-found-code,.stat-value,.stat-strip-note strong{color:var(--theme-text)}
.not-found-code span{color:var(--theme-link)}

/* Reference-inspired homepage: keep the original card layout and measurements. */
.reference-home,.reference-home-main{background:var(--theme-page);color:var(--theme-text)}
.ref-update-ticker{background:linear-gradient(105deg,var(--theme-cta),var(--theme-accent));box-shadow:0 4px 18px rgba(0,0,0,.06)}
.ref-update-inner{background:var(--theme-card)}
.ref-update-label{background:var(--theme-cta);color:var(--theme-on-cta);box-shadow:none}
.ref-update-track{color:var(--theme-text)}
.ref-promo{background:linear-gradient(105deg,var(--theme-card),color-mix(in srgb,var(--theme-accent) 7%,var(--theme-card)));border-color:var(--theme-border)}
.ref-promo-kicker,.ref-promo-copy>p,.ref-status-subtitle,.ref-status-footnote,.ref-status-footnote #refExchangeRate,.ref-tools-zone p,.ref-driver-link{color:var(--theme-muted)}
.ref-live-dot,.ref-heading-pulse,.ref-footnote-dot,.ref-type-caret:after{background:var(--theme-accent);box-shadow:none}
.ref-promo h1,.ref-status-heading h2,.ref-status-card h3,.ref-tools-zone h2,.ref-modal-title h2{color:var(--theme-text)}
.reference-home .ref-promo h1 span,.reference-home .ref-overline,.reference-home .ref-status-heading .ref-overline,.reference-home .ref-usdt-price,.reference-home .ref-tools-icon,.reference-home .ref-tool-chip svg,.ref-driver-link:hover{color:var(--theme-link-page)}
.reference-home .ref-promo-primary{background:var(--theme-accent);color:var(--theme-on-accent);box-shadow:0 9px 21px rgba(0,0,0,.12)}
.reference-home .ref-promo-primary:hover{filter:brightness(.92)}
.ref-promo-secondary,.ref-tool-chip,.ref-modal-full-link{color:var(--theme-link-page)}
.ref-status-card,.ref-tools-zone,.ref-no-services{background:var(--theme-card);border-color:var(--theme-border);color:var(--theme-text)}
.ref-status-card:hover{border-color:var(--theme-accent)}
.ref-bdt-price,.ref-availability.online{background:var(--theme-online-soft);color:var(--theme-online);border-color:color-mix(in srgb,var(--theme-online) 28%,var(--theme-online-soft))}
.ref-availability.offline{background:var(--theme-offline-soft);color:var(--theme-offline);border-color:color-mix(in srgb,var(--theme-offline) 28%,var(--theme-offline-soft))}
.ref-tools-icon,.ref-tool-chip,.ref-modal-icon{background:var(--theme-accent-soft);color:var(--theme-link)}
.ref-tool-chip{border-color:var(--theme-border)}
.ref-tool-chip:hover{background:var(--theme-accent-soft);border-color:var(--theme-accent)}
.ref-driver-button{background:linear-gradient(135deg,var(--theme-cta),color-mix(in srgb,var(--theme-cta) 70%,#102033));color:var(--theme-on-cta);box-shadow:0 9px 24px rgba(0,0,0,.13)}
.ref-driver-button:hover{box-shadow:0 12px 26px rgba(0,0,0,.2)}
.ref-driver-modal{background:var(--theme-page);color:var(--theme-text)}
.ref-modal-back,.ref-modal-card{background:var(--theme-card);border-color:var(--theme-border);color:var(--theme-text)}
.ref-modal-back:hover{border-color:var(--theme-accent);color:var(--theme-link)}
.ref-modal-title p,.ref-modal-card p,.ref-modal-warning{color:var(--theme-muted)}
.ref-modal-card>a{background:var(--theme-accent);color:var(--theme-on-accent)}
.ref-modal-card>a:hover{filter:brightness(.92)}

/* Chat is available from all public pages, including the homepage. */
.chat-panel,.chat-form,.chat-welcome,.chat-bubble.admin{background:var(--theme-card);color:var(--theme-text);border-color:var(--theme-border)}
.chat-head,.reference-home .chat-head{background:var(--theme-hero);color:var(--theme-hero-text)}
.chat-head small,.chat-close{color:var(--theme-hero-text)}
.chat-avatar{background:var(--theme-accent-soft);color:var(--theme-link)}
.chat-welcome-icon{background:transparent;color:var(--theme-link)}
.chat-messages{background:var(--theme-page);scrollbar-color:var(--theme-border) transparent}
.chat-welcome p,.chat-welcome small,.chat-name-wrap label,.chat-alternatives,.chat-alternatives a{color:var(--theme-muted)}
.chat-bubble.visitor{background:var(--theme-accent-soft);color:var(--theme-text)}
.chat-form,.chat-alternatives,.chat-compose,.chat-name-wrap input{border-color:var(--theme-border)}
.chat-compose:focus-within,.chat-name-wrap input:focus{border-color:var(--theme-accent)}
.chat-alternatives{background:var(--theme-card)}
.chat-alternatives a{color:var(--theme-link)}
.chat-toggle,.reference-home .chat-toggle{background:var(--theme-accent);border:1px solid var(--theme-accent);color:var(--theme-on-accent)}
.chat-toggle:hover,.reference-home .chat-toggle:hover{box-shadow:0 12px 28px rgba(0,0,0,.18)}
.site-update-toast{background:var(--theme-hero);color:var(--theme-hero-text);border-color:var(--theme-accent)}

@media(max-width:870px){.primary-nav,.reference-home .primary-nav{background:var(--theme-header);border-top-color:var(--theme-border)}.primary-nav>a,.reference-home .primary-nav>a{color:var(--theme-text)}.primary-nav .nav-mobile-server,.reference-home .primary-nav .nav-mobile-server{color:var(--theme-link-nav)!important}}
