/* Shared palette layer; the admin renderer supplies the selected color tokens. */
html[data-site-theme]:not([data-site-theme="lime"]) { accent-color: var(--dark); }
html[data-site-theme]:not([data-site-theme="lime"]) ::selection { background: var(--accent); color: var(--site-on-accent); }
html[data-site-theme]:not([data-site-theme="lime"]) body { background: var(--bg); color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .header { background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom-color: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.page-card,.calc-card:not(.dark),.feature,.editorial-card,.seo-text,.site-cookie-notice,.product-guide-grid article) { background: var(--paper); border-color: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.page h1,.page h2,.page h3,.product h3,.logo .owner-brand-title,.editorial-card h3) { color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.page-intro,.product p,.product .go,.breadcrumbs,.breadcrumbs a,.menu a,.seo-text p,.seo-text li,.product-guide-grid p,.editorial-lead,.editorial-copy p,.editorial-card p,.contact-note p,.business-service-details p) { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.hero-box,.footer,.cta,.business-contact-card,.policy-examples,.mortgage-help,.osago-note,.osago-casco,.contact-intro,.fx-offer,.calc-card.dark) { background: var(--dark); color: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.hero-box,.footer,.cta,.business-contact-card,.policy-examples,.mortgage-help,.osago-note,.osago-casco,.contact-intro,.fx-offer,.calc-card.dark) :is(h1,h2,h3) { color: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.hero-box,.footer,.cta,.business-contact-card,.policy-examples,.mortgage-help,.osago-note,.osago-casco,.contact-intro,.fx-offer,.calc-card.dark) p { color: var(--site-dark-muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .hero-refresh { --hero-text: var(--site-on-dark); --hero-muted: var(--site-dark-muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .hero-box h1 span,html[data-site-theme]:not([data-site-theme="lime"]) .contact-intro h1 span { color: var(--accent) !important; }
html[data-site-theme]:not([data-site-theme="lime"]) .footer :is(.logo .owner-brand-title,.logo span,.footer-links a) { color: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) .footer .logo .owner-brand-wordmark>small { color: var(--site-dark-muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .logo .owner-brand-wordmark>small { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.product,.products.owner-catalog .product) { background: var(--site-soft); border-color: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.product:hover,.products.owner-catalog .product:hover) { border-color: var(--dark); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.product[href] .product-icon,.products.owner-catalog .product[href] .product-icon,.business-service-icon) { background: var(--site-accent-soft); border-color: var(--line); color: var(--ink); box-shadow: none; }
html[data-site-theme]:not([data-site-theme="lime"]) .product .arrow { background: var(--paper); color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.consult.consult-refresh,.consult,.notice,.product-guide-note,.editorial-note,.contact-note,.how-intro) { background: var(--site-accent-soft); border-color: var(--line); color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .consult-refresh:after { border-color: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.consult-refresh h3,.product-guide-note b,.contact-note strong) { color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.consult-refresh p,.consult-refresh .consult-eyebrow,.how-intro p) { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .consult-refresh .consult-icon { background: var(--dark); color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .stats-refresh .stat { background: var(--paper); border-color: var(--line) !important; }
html[data-site-theme]:not([data-site-theme="lime"]) .stats-refresh .stat :is(small,span) { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .stats-refresh .stat b { color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .stats-refresh .stat:first-child { background: var(--dark); border-color: var(--dark) !important; }
html[data-site-theme]:not([data-site-theme="lime"]) .stats-refresh .stat:first-child :is(small,span) { color: var(--site-dark-muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .stats-refresh .stat:first-child b { color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .how-item { background: var(--paper); border-color: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) .how-item p { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .step { background: var(--dark); color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.btn,.header-btn):not(.ui-button) { background: var(--dark); border-color: var(--dark); color: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.btn.ghost,.hero-box .btn,.cta .btn,.business-contact-btn):not(.ui-button) { background: var(--accent); border-color: var(--accent); color: var(--site-on-accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .ui-button[data-ui-kind][data-ui-tone="primary"] { --ui-fill: var(--dark); --ui-hover: var(--site-primary-hover); --ui-ink: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) .ui-button[data-ui-kind][data-ui-tone="accent"] { --ui-fill: var(--accent); --ui-hover: var(--site-accent-hover); --ui-ink: var(--site-on-accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .ui-button[data-ui-kind][data-ui-tone="quiet"] { --ui-fill: var(--site-soft); --ui-hover: var(--site-accent-soft); --ui-ink: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .ui-button[data-ui-kind][data-ui-tone="outline"] { --ui-hover: var(--site-soft); --ui-ink: var(--ink); --ui-stroke: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) .ui-button[data-ui-kind][data-ui-tone="outline"][data-ui-surface="dark"] { --ui-hover: var(--site-primary-hover); --ui-ink: var(--site-on-dark); --ui-stroke: var(--site-dark-muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .ui-button[data-ui-kind][data-ui-surface="dark"]:focus-visible { outline-color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .site-help-button { border-color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .menu a.nav-franchise { background: var(--accent); color: var(--site-on-accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .menu a.nav-franchise:hover { background: var(--dark); color: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) .nav .menu.is-open { background: var(--paper) !important; }
html[data-site-theme]:not([data-site-theme="lime"]) .nav .menu.is-open a:hover { background: var(--site-soft); color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.site-cookie-details p,.site-cookie-actions a) { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .contact-page .contact-link:not([data-ui-brand]) { background: var(--site-soft); border-color: var(--line); color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .contact-page .contact-link :is(.icon,.go) { background: var(--paper); }
html[data-site-theme]:not([data-site-theme="lime"]) .contact-page .contact-link:not([data-ui-brand]) .contact-value { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .contact-note { border-left-color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .business-transport-list li { background: var(--site-soft); color: var(--ink); border-color: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) .business-service .text-action { color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .field :is(input,select,textarea) { background: var(--paper); color: var(--ink); border-color: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) .field :is(input,select,textarea):focus { border-color: var(--dark); box-shadow: 0 0 0 3px var(--site-accent-soft); }
/* Network colors and icons keep their official brand identity. */
html[data-site-theme]:not([data-site-theme="lime"]) :is(.osago-steps article,.osago-info-card,.fx-audience-grid article) { background: var(--site-soft); border-color: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.osago-info-accent,.fx-hero-panel,.fx-kit-visual,.fx-price-card) { background: var(--site-accent-soft); color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.osago-steps span,.fx-steps li>span) { background: var(--site-secondary); color: var(--site-on-secondary); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.text-action,.editorial-number,.fx-eyebrow,.fx-label,.fx-promises i,.fx-index a>span,.fx-service-list i,.fx-page h2 em) { color: var(--site-link); }
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product[href] .product-icon { background: var(--site-secondary-soft); color: var(--site-link); }
html[data-site-theme]:not([data-site-theme="lime"]) .fx-page { --fx-ink: var(--ink); --fx-muted: var(--muted); --fx-line: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) .fx-hero h1>span { background: none; color: var(--site-link); -webkit-text-fill-color: currentColor; }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.fx-hero-info>p,.fx-hero-info>small,.fx-hero-price span,.fx-image-caption,.fx-promises>span,.fx-price-card li,.fx-price-card small) { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .fx-hero-info .ui-button:focus-visible { outline-color: var(--site-link); }
html[data-site-theme]:not([data-site-theme="lime"]) .fx-price-card strong { color: var(--ink); }
/* Text roles are explicit on both light and nested dark surfaces. */
html[data-site-theme]:not([data-site-theme="lime"]) main :is(p,small,figcaption,.kicker) { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.hero-box,.footer,.cta,.business-contact-card,.policy-examples,.mortgage-help,.osago-note,.osago-casco,.contact-intro,.fx-offer,.calc-card.dark) :is(p,small,figcaption) { color: var(--site-dark-muted); }
html[data-site-theme]:not([data-site-theme="lime"]) :is(.hero-box,.cta,.business-contact-card,.mortgage-help,.osago-note,.osago-casco,.fx-offer) :is(.kicker,.fx-label,.fx-label>span) { color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .mortgage-help .mortgage-help-bank :is(h3,p,span,small) { color: var(--site-on-accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .fx-offer .fx-price-card :is(p,li,small,span,h3) { color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .fx-page :is(.fx-label>span,.fx-index a>span,.fx-service-list span,.fx-kit-visual span,.fx-included article>span,.fx-audience-number,.fx-audience-tag) { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .fx-offer .fx-label>span { color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .products .product-help { background: var(--dark); color: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) .products .product-help :is(h3,.go) { color: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) .products .product-help p { color: var(--site-dark-muted); }
/* The original palette stays intact; small captions get sufficient contrast. */
html[data-site-theme="lime"] :is(.breadcrumbs,main .kicker,.consult-refresh .consult-eyebrow) { color: #53634f; }
html[data-site-theme="lime"] .header .logo .owner-brand-wordmark>small { color: #53634f; }
html[data-site-theme="lime"] .stats-refresh .stat:not(:first-child) :is(small,span) { color: #53634f; }
html[data-site-theme="lime"] .products.owner-catalog .product:not([href="/insurance/osago.html"]):not(.product-help) p { color: #53634f; }
html[data-site-theme="lime"] :is(.hero-box,.osago-note,.mortgage-help,.osago-casco,.cta) .kicker { color: var(--accent); }
html[data-site-theme="lime"] .fx-page :is(p,small,figcaption,.fx-label,.fx-label>span,.fx-eyebrow,.fx-promises>span,.fx-index a>span,.fx-service-list span,.fx-kit-visual span,.fx-included article>span,.fx-audience-number,.fx-audience-tag) { color: #526247; }
html[data-site-theme="lime"] .fx-page .fx-offer :is(p,small,.fx-label,.fx-label>span) { color: #c7d1c4; }
html[data-site-theme="lime"] .fx-page .fx-offer .fx-price-card :is(p,small,span,li) { color: #526247; }
html[data-site-theme="lime"] :is(.section-lead,.how-intro p,.product-guide-grid p,.osago-info-accent li,.fx-hero-price span,.fx-image-caption) { color: #53634f; }
html[data-site-theme="lime"] .policy-examples .kicker { color: var(--accent); }
html[data-site-theme="lime"] .osago-steps p { color: #53634f; }
html[data-site-theme]:not([data-site-theme="lime"]) .policy-examples .kicker { color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product .go { color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product.product-help .go { color: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) .fx-page .fx-offer .fx-label>span { color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .fx-page .fx-offer h2 em { color: var(--accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .fx-kit { background: var(--site-soft); }
@media (max-width: 620px) {
  html[data-site-theme]:not([data-site-theme="lime"]) .products .product:not(.product-help) :is(p,.product-short-description) { color: var(--muted); }
}
/* Surface roles win over the owner's catalogue and page-specific styles.
   Light cards have an explicit boundary; featured cards keep a dark surface. */
html[data-site-theme]:not([data-site-theme="lime"]) .osago-faq-list { background: var(--paper); border-color: var(--site-card-border); }
html[data-site-theme]:not([data-site-theme="lime"]) .osago-faq summary { color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .osago-faq summary>svg,
html[data-site-theme]:not([data-site-theme="lime"]) .osago-faq-answer a { color: var(--site-link); }
@media (hover:hover) {
  html[data-site-theme]:not([data-site-theme="lime"]) .osago-faq summary:hover { background: var(--site-soft); }
}
html[data-site-theme]:not([data-site-theme="lime"]) :is(.page-card,.calc-card:not(.dark),.feature,.editorial-card,.seo-text,.product-guide-grid article,.how-item,.osago-info-card,.osago-steps article,.fx-audience-grid article) {
  background: var(--paper);
  border: 1px solid var(--site-card-border);
  color: var(--ink);
}
html[data-site-theme]:not([data-site-theme="lime"]) .products .product,
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product {
  background: var(--paper);
  border: 1px solid var(--site-card-border);
  color: var(--ink);
}
html[data-site-theme]:not([data-site-theme="lime"]) .products .product:not(.product-help) :is(h3,.go,.arrow),
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product:not(.product-help) :is(h3,.go,.arrow) { color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product:not(.product-help) :is(p,.product-short-description) { color: var(--muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .products .product .go { border-color: var(--line); }
html[data-site-theme]:not([data-site-theme="lime"]) .products .product .arrow { border-color: var(--site-card-border); }
html[data-site-theme]:not([data-site-theme="lime"]) .products .product[href="/insurance/mini-casco.html"] { background: var(--site-accent-soft); }
html[data-site-theme]:not([data-site-theme="lime"]) .products .product.product-help,
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product[href="/insurance/osago.html"] {
  background: var(--dark);
  border-color: var(--dark);
  color: var(--site-on-dark);
}
html[data-site-theme]:not([data-site-theme="lime"]) .products .product.product-help :is(h3,.go),
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product[href="/insurance/osago.html"] :is(h3,.go,.arrow) { color: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) .products .product.product-help p,
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product[href="/insurance/osago.html"] :is(p,.product-short-description) { color: var(--site-dark-muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product[href="/insurance/osago.html"] :is(.go,.arrow) { border-color: var(--site-dark-muted); }
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product[href="/insurance/osago.html"] .product-icon { background: var(--accent); color: var(--site-on-accent); }
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product[href="/insurance/osago.html"] .arrow { background: var(--dark); color: var(--site-on-dark); }
html[data-site-theme]:not([data-site-theme="lime"]) .products .product:hover { border-color: var(--ink); }
html[data-site-theme]:not([data-site-theme="lime"]) .products.owner-catalog .product[href="/insurance/osago.html"]:hover { border-color: var(--accent); }
