#colophon,
#colophon .elementor,
#colophon .elementor-widget-text-editor,
#colophon .elementor-widget-text-editor p,
#colophon .elementor-widget-text-editor a {
  color: #ffffff !important;
}

#colophon a {
  text-decoration-color: currentColor;
}

/* The header search widget points at the old WordPress search endpoint, which
   does nothing on this static build. Hide it until real site search exists. */
.elementor-widget-hfe-search-button {
  display: none !important;
}

/* The header has no stacking context, so on mobile the open hamburger dropdown
   (absolutely positioned, overflowing the header box) is painted under the page
   content that follows it in the DOM — hero images, Elementor containers.
   Give the header its own layer above the page body. */
#masthead {
  position: relative;
  z-index: 999;
}

@media (min-width: 768px) {
  .hfe-nav-menu__layout-horizontal .hfe-nav-menu {
    flex-wrap: nowrap;
  }

  .hfe-nav-menu a,
  .hfe-nav-menu .hfe-menu-item,
  .hfe-nav-menu .hfe-sub-menu-item {
    white-space: nowrap;
  }

  .hfe-nav-menu__layout-horizontal .hfe-nav-menu > li > a,
  .hfe-nav-menu__layout-horizontal .hfe-nav-menu > li > .hfe-has-submenu-container > a {
    padding-inline: 8px;
    font-size: 15px;
  }

  /* post-1011.css pins the dropdown panel to a fixed `width: 220px`, so the grey
     (#F3F3F3) background stays 220px wide while `white-space: nowrap` lets longer
     labels (most Polish translations) spill past its right edge. Let the panel
     size to its widest item instead, keeping 220px as the minimum. Selector
     matches that rule's specificity and wins on load order. */
  .elementor-1011 .elementor-element.elementor-element-578c0c4 ul.sub-menu {
    width: max-content;
    min-width: 220px;
    max-width: 90vw;
  }
}

/* Missing per-page Elementor CSS leaves --display unset, so containers compute
   to display:inline (breaking width/max-width/padding). Restore the flex layout
   Elementor's own base CSS expects; real per-page rules (higher specificity)
   still win wherever they exist, e.g. on the homepage. */
.e-con {
  --display: flex;
}

/* Match the homepage's own section spacing (5rem/3rem) for top-level content
   sections that are missing their page-specific padding. */
.page-content > .elementor > .e-con-boxed {
  --padding-top: 5rem;
  --padding-bottom: 5rem;
  --padding-left: 3rem;
  --padding-right: 3rem;
}

@media (max-width: 767px) {
  .page-content > .elementor > .e-con-boxed {
    --padding-top: 2.5rem;
    --padding-bottom: 2.5rem;
    --padding-left: 1rem;
    --padding-right: 1rem;
  }
}

/* Elementor "icon + label" card rows (e.g. the "Water in your fluid power
   systems can lead to:" list, and the FEATURES grids on the product pages).
   The per-page Elementor CSS that laid these out — flex row, card background,
   icon sizing — was never captured in the mirror, so they rendered as bare
   stacked lines with oversized glyphs. Rebuild the intended look: a centered,
   wrapping grid of equal cards. Everything is keyed off the icon widget so only
   real icon/label cards are touched, and cards that also carry a button or an
   image (hero-style blocks) are left alone. */
.page-content .e-con.e-child:has(> .e-con.e-child > .e-con-inner > .elementor-widget-icon) {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
  margin-block: 1.75rem;
}

.page-content .e-con.e-child:has(> .e-con-inner > .elementor-widget-icon):not(:has(.elementor-widget-button)):not(:has(.elementor-widget-image)) {
  flex: 1 1 calc(33.333% - 11px);
  min-width: 150px;
  max-width: 360px;
  padding: 22px 18px;
  background: #f6f6f6;
  border: 1px solid #e4e4e4;
  border-radius: 10px;
}

.page-content .e-con.e-child:has(> .e-con-inner > .elementor-widget-icon):not(:has(.elementor-widget-button)):not(:has(.elementor-widget-image)) > .e-con-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: center;
}

.page-content .e-con.e-child:has(> .e-con-inner > .elementor-widget-icon) .elementor-widget {
  margin: 0;
}

.page-content .e-con.e-child:has(> .e-con-inner > .elementor-widget-icon) .elementor-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  font-size: 24px;
  background: #ffffff;
  border: 1px solid #e4e4e4;
  border-radius: 50%;
}

.page-content .e-con.e-child:has(> .e-con-inner > .elementor-widget-icon) .elementor-icon i {
  font-size: 24px;
  line-height: 1;
  color: var(--e-global-color-secondary, #a50022);
}

.page-content .e-con.e-child:has(> .e-con-inner > .elementor-widget-icon) .elementor-widget-text-editor p,
.page-content .e-con.e-child:has(> .e-con-inner > .elementor-widget-icon) .elementor-heading-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}

@media (max-width: 767px) {
  .page-content .e-con.e-child:has(> .e-con-inner > .elementor-widget-icon):not(:has(.elementor-widget-button)):not(:has(.elementor-widget-image)) {
    flex-basis: 42%;
    max-width: none;
  }
}