/* 1.0.998: one storefront palette. Status, energy and heating/cooling colors
 * retain their meaning. This final layer also covers saved WordPress blocks. */
html:root,
html body {
 --klima-navy:#102b4e;
 --klima-navy-light:#18395f;
 --klima-ink:#172b4d;
 --klima-ink-soft:#46596f;
 --klima-action:#c91f42;
 --klima-action-dark:#a71936;
 --klima-continue:var(--klima-action);
 --klima-continue-dark:var(--klima-action-dark);
 --klima-paper:#fff;
 --klima-muted:#f5f7fa;
 --klima-line:#dfe5ec;
 --klima-button-radius:8px;
 --wp--preset--color--navy:var(--klima-navy);
 --wp--preset--color--ink:var(--klima-ink);
 --wp--preset--color--action:var(--klima-action);
 --wp--preset--color--muted:var(--klima-muted);
}

/* Solid, shared navigation. Geometry and responsive behavior stay with the
 * existing header components. Counter badges keep their independent role. */
html body :is(.klima-topbar,.klima-nav,.klima-footer) {
 background:var(--klima-navy)!important;
 color:var(--klima-paper);
}
html body .klima-nav :is(.klima-header-search-trigger,.wc-block-mini-cart__button) {
 background:#ffffff0d!important;
 border:1px solid #ffffff73!important;
 color:var(--klima-paper)!important;
 box-shadow:none!important;
}
html body .klima-nav :is(.klima-header-search-trigger,.wc-block-mini-cart__button):is(:hover,:focus-visible) {
 background:#ffffff24!important;
 border-color:var(--klima-paper)!important;
 color:var(--klima-paper)!important;
}
html body .klima-nav .klima-category-menu > :is(button,summary) {
 border:1px solid #ffffff73!important;
 border-radius:var(--klima-button-radius)!important;
 background:#ffffff0d!important;
 color:var(--klima-paper)!important;
 box-shadow:none!important;
}
html body .klima-nav .klima-category-menu > :is(button,summary):is(:hover,:focus-visible,[aria-expanded="true"]) {
 background:#ffffff24!important;
 border-color:var(--klima-paper)!important;
}
html body .klima-navigation :is(.current-menu-item,.current_page_item) > a {
 background:transparent!important;
 box-shadow:none!important;
}

/* Primary actions share one opaque color, rounded corners and quiet states.
 * Avoid generic button selectors: selectors, toggles, close and quantity
 * controls must keep their own geometry and interaction states. */
html body :is(.klima-button,.klima-installation-button--primary,.klima-form-submit,.klima-calculator-submit,
 .klima-install-estimator__cta,.klima-area-finder__cta,
 .wp-block-button__link,.single_add_to_cart_button,
 .wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,
 .klima-brand-landing__button--primary),
html body.woocommerce :is(a.button,button.button,input.button),
html body .woocommerce :is(a.button,button.button,input.button) {
 border:1px solid var(--klima-action)!important;
 border-radius:var(--klima-button-radius)!important;
 background:var(--klima-action)!important;
 color:var(--klima-paper)!important;
 box-shadow:none!important;
 font-weight:700;
 text-decoration:none!important;
 transition:background-color .16s ease,border-color .16s ease,color .16s ease;
}
html body :is(.klima-button,.klima-installation-button--primary,.klima-form-submit,.klima-calculator-submit,
 .klima-install-estimator__cta,.klima-area-finder__cta,
 .wp-block-button__link,.single_add_to_cart_button,
 .wc-block-cart__submit-button,.wc-block-components-checkout-place-order-button,
 .klima-brand-landing__button--primary):is(:hover,:active),
html body.woocommerce :is(a.button,button.button,input.button):is(:hover,:active),
html body .woocommerce :is(a.button,button.button,input.button):is(:hover,:active) {
 background:var(--klima-action-dark)!important;
 border-color:var(--klima-action-dark)!important;
 color:var(--klima-paper)!important;
 box-shadow:none!important;
 transform:none!important;
}
/* The hero has intentionally stronger component specificity in its owner. */
html body .klima-home-main .klima-hero .klima-button {
 background:var(--klima-action)!important;
 border-color:var(--klima-action)!important;
 border-radius:var(--klima-button-radius)!important;
 box-shadow:none!important;
}
html body .klima-home-main .klima-hero .klima-button:is(:hover,:focus-visible) {
 background:var(--klima-action-dark)!important;
 border-color:var(--klima-action-dark)!important;
 box-shadow:none!important;
 transform:none!important;
}

/* Detail/navigation buttons are secondary, including AJAX catalogue cards. */
html body :is(.klima-button--outline,.klima-installation-button--secondary,.klima-product-calculator-cta,.klima-loop-view-product,
 .klima-compare-product__view,.klima-brand-landing__button--secondary),
html body .wp-block-button.is-style-outline .wp-block-button__link,
html body .klima-product-results li.product .klima-loop-view-product,
html body .klima-hero [href*="#klima-ai-valaszto"] {
 background:var(--klima-paper)!important;
 color:var(--klima-navy)!important;
 border:1px solid var(--klima-navy)!important;
 border-radius:var(--klima-button-radius)!important;
 box-shadow:none!important;
}
html body :is(.klima-button--outline,.klima-installation-button--secondary,.klima-product-calculator-cta,.klima-loop-view-product,
 .klima-compare-product__view,.klima-brand-landing__button--secondary):is(:hover,:active),
html body .wp-block-button.is-style-outline .wp-block-button__link:is(:hover,:active),
html body .klima-product-results li.product .klima-loop-view-product:is(:hover,:focus-visible),
html body .klima-hero [href*="#klima-ai-valaszto"]:is(:hover,:focus-visible) {
 background:var(--klima-navy)!important;
 color:var(--klima-paper)!important;
 border-color:var(--klima-navy)!important;
 box-shadow:none!important;
 transform:none!important;
}

/* A two-tone focus ring stays visible on both dark and light surfaces. */
html body :is(.klima-button,.klima-installation-button,.klima-form-submit,.klima-calculator-submit,
 .wp-block-button__link,.klima-loop-view-product,.klima-compare-product__view,
 .klima-header-search-trigger,.wc-block-mini-cart__button,
 .single_add_to_cart_button,.wc-block-components-checkout-place-order-button,
 .klima-brand-landing__button,.klima-install-estimator__cta,.klima-area-finder__cta,
 .klima-product-calculator-cta):focus-visible {
 outline:3px solid var(--klima-navy)!important;
 outline-offset:3px!important;
 box-shadow:0 0 0 3px var(--klima-paper)!important;
}
html body :is(.klima-button,.klima-form-submit,.klima-calculator-submit,
 .wp-block-button__link,.single_add_to_cart_button,
 .wc-block-components-checkout-place-order-button):is(:disabled,[aria-disabled="true"]) {
 opacity:.55;
 box-shadow:none!important;
 cursor:not-allowed;
 transform:none!important;
}

/* Catalogue panels use navy instead of purple/red decorative gradients. */
html body :is(.klima-product-filter__heading,.klima-catalog-sidebar__intro,
 .klima-filter-drawer__header,.klima-compare-hero,.klima-product-purchase-card) {
 background:var(--klima-navy)!important;
 color:var(--klima-paper)!important;
 box-shadow:none!important;
}
html body :is(.klima-product-filter__heading,.klima-catalog-sidebar__intro)::before,
html body :is(.klima-product-filter__heading,.klima-catalog-sidebar__intro)::after {
 background:none!important;
 box-shadow:none!important;
}
html body .klima-product-filter__eyebrow {
 color:#fff!important;
}
html body .klima-filter-drawer__header :is(strong,small) {
 color:var(--klima-paper)!important;
}
html body .klima-product-filter__heading :is(h1,h2,p),
html body .klima-catalog-sidebar__intro :is(strong,small) {
 color:var(--klima-paper)!important;
}
html body .klima-catalog-view-switch [aria-pressed="true"] {
 background:var(--klima-navy)!important;
 border-color:var(--klima-navy)!important;
 color:var(--klima-paper)!important;
 box-shadow:none!important;
}
html body .klima-product-results li.product {
 background:var(--klima-paper)!important;
 border-color:var(--klima-line)!important;
 box-shadow:0 4px 16px #102b4e0a!important;
}

/* Existing page-local brand aliases inherit the same source of truth. */
html body .klima-buy-page {
 --buy-ink:var(--klima-ink);
 --buy-blue:var(--klima-navy);
 --buy-red:var(--klima-action);
 --buy-line:var(--klima-line);
}
html body .klima-hero__ai-link,
html body .klima-header-search-form button {
 background:var(--klima-action);
 border-color:var(--klima-action);
 color:var(--klima-paper);
}
html body .klima-back-to-top {
 background:var(--klima-navy)!important;
 color:var(--klima-paper)!important;
 box-shadow:0 4px 14px #102b4e26!important;
}

html body .klima-home-main .klima-hero .klima-button:focus-visible {
 outline:3px solid var(--klima-navy)!important;
 outline-offset:3px!important;
 box-shadow:0 0 0 3px var(--klima-paper)!important;
}

/* 1.0.999: every dark editorial surface shares the header navy. Explicit
 * surfaces keep photography, illustrations, light cards and status colors
 * independent; decorative purple/red gradient washes are removed. */
@media screen {
html body :is(
 .klima-references-hero,.klima-about-hero,.klima-about-hero__photo,.klima-about-cta,
 .klima-services-hero,.klima-services-process,.klima-articles-hero,.klima-article-hero,.klima-article-cta,
 .klima-faq-hero,.klima-guide-hero,.klima-guide-cta,.klima-guide-property__wide,.klima-guide-types__route,
 .klima-knowledge-hero,.klima-knowledge-cta,.klima-search-hero,.klima-404__hero,
 .klima-practical-hero,.klima-practical-hero__media,.klima-practical-price__anatomy,
 .klima-calculator-hero,.klima-local-hero,.klima-local-cta,
 .klima-buy-hero,.klima-buy-survey,.klima-buy-cta,.klima-split-terms,.klima-split-cta,
 .klima-reversible-hero,.klima-reversible-winterbuild,.klima-reversible-decision__route,
 .klima-reversible-compare__note,.klima-reversible-metrics,.klima-reversible-cta,
 .klima-heating-bivalence,.klima-heating-levels__note,.klima-heating-cost,.klima-heating-operation,
 .klima-heating-panel__lifecycle,.klima-heating-use__note,
 .klima-cassette-hero,.klima-cassette-water,
 .klima-panel-hero,.klima-panel-permits__notice,.klima-panel-sizing,.klima-panel-process,.klima-panel-cta,
 .klima-pump-hero,.klima-pump-types__head,.klima-pump-benefits__paths,.klima-pump-winter,
 .klima-pump-source-map__decision,.klima-pump-airwater__scheme,.klima-pump-emitter,.klima-pump-planner__formula,
 .klima-placement-avoid,.klima-ozone-hero__media,.klima-apartment-hero,.klima-apartment-hero__media,
 .klima-brand-landing__hero,.klima-brand-guide__cta,.klima-favorites-hero,
 .klima-reference-dialog,.klima-product-video-modal,.klima-quote-selection,.klima-bonus__panel,
 .klima-mobile-filter-trigger,.klima-contact-estimate-total,.klima-order-transfer,.klima-pwa-install,
 .klima-installation-draft-bar__inner,.klima-installation-dialog__header,.klima-package-dialog__header,
 .klima-install-estimator__choices,.klima-install-estimator__result,.klima-estimator-product,
 .klima-service-area-checker,.klima-maintenance-visual,.klima-maintenance-visual__dashboard,
 .klima-calculator-progress,.klima-calculator-result,.klima-building-card,.klima-room-card,.klima-window-row,.klima-review,
 .klima-related-showcase__header,
 .klima-navigation .wp-block-navigation__responsive-container.is-menu-open,
 .klima-reversible-answer__explain aside,.klima-reversible-retrofit__grid > aside,
 .klima-reversible-decision__track article.is-critical,.klima-reversible-cost aside,
 .klima-buy-purpose__grid article.is-featured,.klima-split-systems__grid article.is-featured,
 .klima-maintenance-decision--service,.klima-practical-price__levels .is-total,
 .klima-guide-system__grid article:nth-child(2),.klima-guide-system__grid article:nth-child(3),
 .klima-guide-choice__grid .klima-guide-choice__comfort,
 .klima-heating-panel__energy article.is-heatpump,.klima-heating-panel__scenario-grid article.is-featured,
 .klima-cassette-airflow aside,.klima-cassette-water aside,
 .klima-heating-compare thead th,.klima-heating-panel__matrix thead th,
 .klima-cassette-compare thead th,.klima-guide-types__comparison thead th,
 .klima-reversible-compare thead th,.klima-compare-table__section th
) {
 background:var(--klima-navy)!important;
}
html body.woocommerce div.product #reviews #comments,
html body.klima-product-redesign div.product .klima-product-purchase-card,
html body .klima-calculator-page :is(.klima-room-card,.klima-window-row,.klima-review) {
 background:var(--klima-navy)!important;
}
/* Selected options remain distinguishable on the shared dark cards. */
html body .klima-estimator-product:is(:hover,:focus-visible,.is-selected) {
 background:var(--klima-navy-light)!important;
}
html body .klima-catalog-results-active-filters .klima-active-filters,
html body .klima-home-main .klima-efficiency.klima-native-image {
 background:var(--klima-navy)!important;
}
html body .klima-references-hero__media figcaption,
html body .klima-about-hero__badge {
 background:rgba(16,43,78,.86)!important;
}
/* Small headings need readable contrast against the lighter shared navy. */
html body :is(.klima-references-hero,.klima-about-hero,.klima-services-hero,
 .klima-articles-hero,.klima-article-hero,.klima-faq-hero,.klima-guide-hero,
 .klima-knowledge-hero,.klima-search-hero,.klima-404__hero,.klima-practical-hero,
 .klima-calculator-hero,.klima-local-hero,.klima-buy-hero,.klima-reversible-hero,
 .klima-cassette-hero,.klima-panel-hero,.klima-pump-hero,.klima-apartment-hero,
 .klima-brand-landing__hero,.klima-favorites-hero) [class*="eyebrow"] {
 color:var(--klima-paper)!important;
}
html body .klima-filter-drawer-backdrop {
 background:rgba(16,43,78,.62)!important;
}
html body .klima-install-estimator__extra-fields input[type=number],
html body .klima-install-estimator__segments input:checked + span {
 background:var(--klima-navy-light)!important;
}
html body.home .klima-benefits__copy > a.klima-button--outline {
 background:var(--klima-paper)!important;
 color:var(--klima-navy)!important;
 border-color:var(--klima-navy)!important;
}
html body.home .klima-benefits__copy > a.klima-button--outline:is(:hover,:focus-visible) {
 background:var(--klima-navy)!important;
 color:var(--klima-paper)!important;
}
html body .klima-home-main .klima-hero {
 background-color:var(--klima-navy)!important;
}
html body .klima-home-main .klima-hero::before {
 background:linear-gradient(90deg,rgba(16,43,78,.97),rgba(16,43,78,.88) 35%,rgba(16,43,78,.35) 70%,rgba(16,43,78,.08))!important;
}
html body .klima-efficiency.klima-native-image::before {
 background:linear-gradient(90deg,rgba(16,43,78,.97),rgba(16,43,78,.85))!important;
}
}

/* Long Hungarian actions must not compete for one narrow mobile row. */
@media (max-width:782px) {
 html body .klima-home-main .klima-hero .klima-actions {
  flex-wrap:wrap!important;
  gap:14px!important;
 }
 html body .klima-home-main .klima-hero .klima-button {
  flex:1 1 100%!important;
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:48px!important;
  padding:14px 18px!important;
  white-space:normal!important;
  line-height:1.35!important;
  gap:12px!important;
 }
}
