/*
Theme Name: Walim Na Żądanie — Modern 2027
Theme URI: https://stowarzyszeniewalimnazadanie.pl/
Author: Walim Na Żądanie
Description: Nowoczesny, responsywny motyw dla Stowarzyszenia Walim Na Żądanie. Zachowuje treść stron i menu WordPress.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: walim-modern-2027
*/

:root {
  --wnz-orange:#ff5a16; --wnz-orange2:#ff7b2e; --wnz-yellow:#ffd21c;
  --wnz-navy:#0b1220; --wnz-navy2:#111b2d; --wnz-ink:#172033;
  --wnz-muted:#667085; --wnz-bg:#f4f7fb; --wnz-white:#fff;
  --wnz-border:rgba(15,23,42,.09); --wnz-radius:24px; --wnz-radius-xl:34px;
  --wnz-shadow:0 16px 55px rgba(15,23,42,.09);
  --wnz-ease:cubic-bezier(.2,.8,.2,1);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--wnz-bg);color:var(--wnz-ink);font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;-webkit-font-smoothing:antialiased}
a{color:var(--wnz-orange);text-decoration:none}
a:hover{color:#e94b0b}
img{max-width:100%;height:auto}
h1,h2,h3,h4,h5,h6{color:var(--wnz-navy);font-weight:800;letter-spacing:-.035em;line-height:1.08}
h1{font-size:clamp(2.4rem,6vw,5rem)} h2{font-size:clamp(2rem,4vw,3.4rem)} h3{font-size:clamp(1.35rem,2.4vw,2.1rem)}
p{line-height:1.8;color:var(--wnz-muted)}
::selection{background:var(--wnz-orange);color:#fff}

/* Header */
.wnz-header{position:sticky;top:0;z-index:999;background:rgba(11,18,32,.94);backdrop-filter:blur(18px);-webkit-backdrop-filter:blur(18px);border-bottom:1px solid rgba(255,255,255,.08);box-shadow:0 10px 35px rgba(5,12,25,.16)}
.wnz-header__inner{max-width:1400px;margin:auto;min-height:92px;padding:12px 28px;display:flex;align-items:center;gap:28px}
.wnz-brand{display:flex;align-items:center;gap:14px;min-width:230px;color:#fff}
.wnz-brand img{width:64px;height:64px;object-fit:contain;border-radius:50%;filter:drop-shadow(0 6px 14px rgba(0,0,0,.25))}
.wnz-brand__name{font-size:12px;font-weight:900;line-height:1.1;letter-spacing:.04em;text-transform:uppercase;color:#fff}
.wnz-nav{margin-left:auto}.wnz-nav ul{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:6px;flex-wrap:wrap}
.wnz-nav li{margin:0}.wnz-nav a{display:flex;align-items:center;gap:7px;padding:12px 15px;border-radius:999px;color:#dce3ef;font-weight:800;font-size:13px;text-transform:uppercase;transition:.18s var(--wnz-ease)}
.wnz-nav a:hover,.wnz-nav .current-menu-item>a{color:#fff;background:rgba(255,255,255,.07)}
.wnz-nav .current-menu-item>a{box-shadow:inset 0 -2px 0 var(--wnz-orange)}
.wnz-menu-toggle{display:none}

/* Page */
.wnz-main{min-height:60vh}
.wnz-container{width:min(1200px,calc(100% - 40px));margin:auto}
.wnz-content{padding:60px 0 90px}
.wnz-card{background:rgba(255,255,255,.92);border:1px solid var(--wnz-border);border-radius:var(--wnz-radius);box-shadow:var(--wnz-shadow)}
.wnz-card--pad{padding:clamp(22px,4vw,42px)}
.wnz-page-title{margin:0 0 28px}
.wnz-entry{max-width:1100px;margin:auto}
.wnz-entry img{border-radius:18px;box-shadow:0 12px 38px rgba(15,23,42,.10)}
.wnz-entry .wp-block-image{margin:30px 0}
.wnz-entry a{color:var(--wnz-orange);text-decoration:underline;text-decoration-color:rgba(255,90,22,.3);text-underline-offset:4px}

/* Buttons */
button,input[type=submit],input[type=button],.wp-element-button,.wp-block-button__link{border:0;border-radius:999px!important;min-height:46px;padding:12px 22px!important;font-weight:800!important;color:#fff!important;background:linear-gradient(135deg,var(--wnz-orange),var(--wnz-orange2))!important;box-shadow:0 9px 26px rgba(255,90,22,.24);transition:.18s var(--wnz-ease)}
button:hover,input[type=submit]:hover,.wp-element-button:hover,.wp-block-button__link:hover{transform:translateY(-2px);box-shadow:0 16px 38px rgba(255,90,22,.34)}

/* Forms */
.wnz-entry form{background:rgba(255,255,255,.86);border:1px solid var(--wnz-border);border-radius:var(--wnz-radius-xl);padding:28px;box-shadow:var(--wnz-shadow);backdrop-filter:blur(14px)}
input,textarea,select{max-width:100%;border:1px solid rgba(15,23,42,.12)!important;border-radius:15px!important;background:#fff!important;color:var(--wnz-ink)!important;padding:13px 16px!important}
input:focus,textarea:focus,select:focus{outline:0!important;border-color:rgba(255,90,22,.65)!important;box-shadow:0 0 0 4px rgba(255,90,22,.10)!important}

/* Hero on front page */
.wnz-hero{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--wnz-navy),#18253d);color:#fff;border-radius:0 0 36px 36px;box-shadow:0 22px 60px rgba(8,16,30,.20)}
.wnz-hero:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 15% 30%,rgba(255,90,22,.28),transparent 32%),radial-gradient(circle at 85% 20%,rgba(255,210,28,.12),transparent 30%);pointer-events:none}
.wnz-hero__inner{position:relative;z-index:1;width:min(1200px,calc(100% - 40px));margin:auto;padding:90px 0 80px;display:grid;grid-template-columns:1.25fr .75fr;gap:50px;align-items:center}
.wnz-hero h1{color:#fff!important;margin:0 0 20px}
.wnz-hero p{color:#dce3ef;max-width:680px}
.wnz-kicker{display:inline-flex;padding:8px 13px;border:1px solid rgba(255,255,255,.14);border-radius:999px;background:rgba(255,255,255,.06);color:#fff;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.wnz-hero__badge{justify-self:end;width:min(320px,100%);aspect-ratio:1;border-radius:36px;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.03));border:1px solid rgba(255,255,255,.16);display:grid;place-items:center;box-shadow:0 30px 90px rgba(0,0,0,.24)}
.wnz-hero__badge img{width:68%;height:68%;object-fit:contain;border-radius:50%}

/* Footer */
.wnz-footer{background:var(--wnz-navy);color:#aeb8c9;margin-top:40px;border-top:1px solid rgba(255,255,255,.06)}
.wnz-footer__inner{width:min(1200px,calc(100% - 40px));margin:auto;padding:45px 0 25px;display:flex;justify-content:space-between;gap:30px}
.wnz-footer h3{color:#fff!important;font-size:1rem;margin:0 0 12px}.wnz-footer p{color:#9ba7ba;font-size:.9rem}.wnz-footer a{color:#cfd7e4}
.wnz-footer__bottom{border-top:1px solid rgba(255,255,255,.08);padding:16px 20px;text-align:center;font-size:12px}

/* lightbox */
.wnz-lightbox{position:fixed;inset:0;z-index:999999;display:none;align-items:center;justify-content:center;padding:20px}
.wnz-lightbox.is-open{display:flex}.wnz-lightbox__backdrop{position:absolute;inset:0;background:rgba(4,9,18,.84);backdrop-filter:blur(12px)}
.wnz-lightbox__dialog{position:relative;z-index:2;width:min(1100px,96vw);padding:14px;border-radius:28px;background:#111b2d;border:1px solid rgba(255,255,255,.14);box-shadow:0 30px 100px rgba(0,0,0,.4);display:flex;flex-direction:column;align-items:center}
.wnz-lightbox__image{max-width:100%;max-height:80vh;object-fit:contain;border-radius:18px}.wnz-lightbox__caption{color:#fff;padding:8px 12px;text-align:center}
.wnz-lightbox__close{position:absolute;right:10px;top:10px;width:42px!important;height:42px!important;min-height:42px!important;padding:0!important;font-size:28px;z-index:3;background:rgba(0,0,0,.5)!important;box-shadow:none!important}

/* Accessibility */
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid rgba(255,90,22,.42)!important;outline-offset:3px}
@media(max-width:900px){
 .wnz-header__inner{min-height:76px;padding:10px 18px}.wnz-brand{min-width:0}.wnz-brand img{width:52px;height:52px}
 .wnz-nav{display:none}.wnz-menu-toggle{display:block;margin-left:auto;background:rgba(255,255,255,.1)!important;box-shadow:none!important;width:46px;height:46px;padding:0!important}
 .wnz-nav.is-open{display:block;position:absolute;left:12px;right:12px;top:calc(100% + 8px);padding:10px;border-radius:22px;background:rgba(11,18,32,.98);box-shadow:0 20px 60px rgba(0,0,0,.3)}
 .wnz-nav.is-open ul{display:block}.wnz-nav.is-open a{border-radius:14px}.wnz-hero__inner{grid-template-columns:1fr;padding:62px 0}.wnz-hero__badge{justify-self:start;width:190px}.wnz-footer__inner{display:block}
}
@media(max-width:600px){
 .wnz-container{width:min(100% - 28px,1200px)}.wnz-content{padding:42px 0 65px}
 .wnz-brand__name{display:none}.wnz-hero{border-radius:0 0 26px 26px}.wnz-hero__inner{width:min(100% - 28px,1200px);padding:52px 0}.wnz-hero__badge{width:150px}
 h1{font-size:2.5rem}h2{font-size:2rem}
 .wnz-entry form{padding:20px;border-radius:22px}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{animation:none!important;transition:none!important}}


/* =========================================================
   MENU 1.1 — zachowanie hierarchii i rozwijanych podmenu
   ========================================================= */
.wnz-nav .wnz-menu,
.wnz-nav .wnz-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wnz-nav .wnz-menu {
  display: flex;
  align-items: center;
  gap: 5px;
}

.wnz-nav .wnz-menu > li {
  position: relative;
}

.wnz-nav .wnz-menu li {
  margin: 0;
}

.wnz-nav .wnz-menu a {
  white-space: nowrap;
}

/* strzałka przy pozycjach posiadających dzieci */
.wnz-nav .menu-item-has-children > a::after {
  content: "⌄";
  display: inline-block;
  margin-left: 7px;
  font-size: 13px;
  opacity: .8;
  transform: translateY(-1px);
  transition: transform .18s var(--wnz-ease);
}

.wnz-nav .menu-item-has-children:hover > a::after,
.wnz-nav .menu-item-has-children:focus-within > a::after {
  transform: rotate(180deg) translateY(1px);
}

/* dropdown */
.wnz-nav .sub-menu {
  position: absolute;
  left: 0;
  top: 100%;
  min-width: 245px;
  max-width: 360px;
  padding: 10px;
  display: block;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  background: rgba(11,18,32,.98);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  box-shadow: 0 22px 65px rgba(0,0,0,.28);
  transition: opacity .16s var(--wnz-ease), transform .16s var(--wnz-ease), visibility .16s;
  z-index: 1001;
}

.wnz-nav .menu-item-has-children:hover > .sub-menu,
.wnz-nav .menu-item-has-children:focus-within > .sub-menu {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.wnz-nav .sub-menu li {
  position: relative;
}

.wnz-nav .sub-menu a {
  display: flex;
  align-items: center;
  min-height: 42px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 11px;
  color: #dce3ef !important;
  font-size: 12px;
  line-height: 1.35;
  text-transform: none;
  font-weight: 800;
}

.wnz-nav .sub-menu a:hover,
.wnz-nav .sub-menu .current-menu-item > a {
  color: #fff !important;
  background: rgba(255,90,22,.13);
}

.wnz-nav .sub-menu .menu-item-has-children > a::after {
  content: "›";
  margin-left: auto;
  transform: none;
}

/* submenu of submenu opens to the right */
.wnz-nav .sub-menu .sub-menu {
  top: -10px;
  left: calc(100% + 10px);
}

.wnz-nav .sub-menu .menu-item-has-children:hover > .sub-menu,
.wnz-nav .sub-menu .menu-item-has-children:focus-within > .sub-menu {
  transform: translateX(0);
}

/* do not make the dropdown an accidental huge full-width block */
.wnz-nav .sub-menu {
  height: auto !important;
}

/* Hover bridge: the cursor can travel from the parent item into the dropdown
   without leaving the hover area and collapsing the menu. */
.wnz-nav > .wnz-menu > li > .sub-menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: -11px;
  width: 100%;
  height: 11px;
  background: transparent;
}

.wnz-nav .sub-menu .sub-menu::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 0;
  width: 11px;
  height: 100%;
  background: transparent;
}

/* mobile */
@media (max-width: 900px) {
  .wnz-nav .wnz-menu {
    display: block;
  }

  .wnz-nav .wnz-menu > li {
    position: relative;
  }

  .wnz-nav .wnz-menu a {
    white-space: normal;
  }

  .wnz-nav .sub-menu,
  .wnz-nav .sub-menu .sub-menu {
    position: static;
    min-width: 0;
    max-width: none;
    display: none;
    visibility: visible;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    background: rgba(255,255,255,.045);
    border: 0;
    box-shadow: none;
    margin: 3px 0 6px;
    padding: 5px;
  }

  .wnz-nav .menu-item-has-children:hover > .sub-menu {
    display: none;
  }

  .wnz-nav .menu-item-has-children.is-open > .sub-menu {
    display: block;
  }

  .wnz-nav .menu-item-has-children > a::after {
    content: "+";
  }

  .wnz-nav .menu-item-has-children.is-open > a::after {
    content: "−";
  }
}


/* Footer — clean modern legal/credit line */
.wnz-footer__inner {
  align-items: flex-start;
}

.wnz-footer__brand h3,
.wnz-footer__links h3 {
  margin-bottom: 10px;
}

.wnz-footer__bottom {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  text-align: left;
}

.wnz-footer__copyright,
.wnz-footer__meta {
  color: #8f9bae;
  font-size: 12px;
  line-height: 1.6;
}

.wnz-footer__meta {
  text-align: right;
}

.wnz-footer__meta strong {
  color: #d9e0ea;
  font-weight: 800;
}

.wnz-footer__meta a {
  color: #d9e0ea;
  font-weight: 800;
}

.wnz-footer__meta a:hover {
  color: var(--wnz-orange);
}

@media (max-width: 600px) {
  .wnz-footer__bottom {
    width: min(100% - 28px, 1200px);
    display: block;
    text-align: center;
  }

  .wnz-footer__meta {
    margin-top: 6px;
    text-align: center;
  }
}


/* =========================================================
   1.3 — compact desktop scale + one-line navigation
   ========================================================= */
@media (min-width: 901px) {
  .wnz-header__inner {
    max-width: 1280px;
    min-height: 76px;
    padding: 8px 22px;
    gap: 18px;
  }

  .wnz-brand {
    min-width: 205px;
    flex: 0 0 auto;
  }

  .wnz-brand img {
    width: 52px;
    height: 52px;
  }

  .wnz-nav {
    flex: 1 1 auto;
    min-width: 0;
    overflow: visible;
  }

  .wnz-nav .wnz-menu {
    flex-wrap: nowrap !important;
    justify-content: flex-end;
    white-space: nowrap;
  }

  .wnz-nav .wnz-menu > li {
    flex: 0 0 auto;
  }

  .wnz-nav a {
    padding: 10px 10px;
    font-size: 12px;
  }

  .wnz-nav .sub-menu a {
    white-space: normal;
    font-size: 12px;
  }

  .wnz-hero__inner,
  .wnz-container,
  .wnz-footer__inner,
  .wnz-footer__bottom {
    width: min(1120px, calc(100% - 36px));
  }

  .wnz-hero__inner {
    padding: 68px 0 64px;
    gap: 34px;
  }

  .wnz-hero h1 {
    font-size: clamp(2.8rem, 5vw, 4.2rem);
  }

  .wnz-content {
    padding: 48px 0 70px;
  }
}

/* Contact/form logos: keep plugin images visible and properly scaled. */
.wnz-entry img,
.wpforms-container img,
.wpcf7 img,
.elementor-widget-image img,
.wp-block-image img {
  opacity: 1 !important;
  visibility: visible !important;
}

.wpforms-container .wnz-logo,
.wpcf7 .wnz-logo {
  max-width: 180px;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto 18px;
}

/* Optional automatic logo placeholder for a form element using the
   class wnz-contact-logo. The image itself is supplied by Customizer. */
.wnz-contact-logo {
  display: block;
  width: 150px;
  height: 150px;
  margin: 0 auto 20px;
  background-image: var(--wnz-contact-logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}


/* =========================================================
   1.4 — logo + nazwa stowarzyszenia pod logo
   ========================================================= */
.wnz-brand {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  text-align: center;
}

.wnz-brand img {
  flex: 0 0 auto;
}

.wnz-brand__name {
  display: block !important;
  max-width: 180px;
  color: #fff;
  font-size: 9px;
  line-height: 1.18;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
  white-space: normal;
}

@media (min-width: 901px) {
  .wnz-brand {
    min-width: 150px;
  }

  .wnz-brand img {
    width: 50px;
    height: 50px;
  }

  .wnz-brand__name {
    max-width: 160px;
  }
}

@media (max-width: 900px) {
  .wnz-brand {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }

  .wnz-brand__name {
    max-width: 145px;
    font-size: 9px;
    text-align: left;
  }

  .wnz-brand img {
    width: 48px;
    height: 48px;
  }
}


/* =========================================================
   WALIM MODERN 2027 — PLUGIN SCALE 1.4+
   Wtyczki dziedziczą kompaktową typografię i proporcje motywu.
   Nie używamy transform:scale(), aby nie psuć pozycji elementów
   i responsywnego układu.
   ========================================================= */

/* Bazowa metryka interfejsu motywu */
:root {
  --wnz-plugin-font-size: 0.875rem;
  --wnz-plugin-line-height: 1.5;
  --wnz-plugin-radius: 16px;
  --wnz-plugin-control-height: 42px;
  --wnz-plugin-control-padding: 10px 13px;
}

/* Wszystkie typowe formularze i komponenty pluginów */
:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .wpcf7-form,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .elementor-form,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .wp-block-contact-form-7-contact-form-selector,
  .tribe-events,
  .tribe-common,
  .woocommerce
) {
  box-sizing: border-box;
  font-size: var(--wnz-plugin-font-size);
  line-height: var(--wnz-plugin-line-height);
  max-width: 100%;
}

:is(
  .wpforms-container *,
  .wpforms-container-full *,
  .wpcf7 *,
  .wpcf7-form *,
  .gform_wrapper *,
  .nf-form-cont *,
  .forminator-ui *,
  .elementor-form *,
  .everest-forms *,
  .fluentform *,
  .fluentform_wrapper *,
  .tribe-events *,
  .tribe-common *,
  .woocommerce *
) {
  box-sizing: border-box;
}

/* Kontrolki — plugin nie może nagle robić gigantycznych pól,
   jeśli motyw używa mniejszej skali. */
:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper
) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]),
textarea,
select) {
  min-height: var(--wnz-plugin-control-height);
  padding: var(--wnz-plugin-control-padding);
  font: inherit;
  line-height: 1.35;
  border-radius: var(--wnz-plugin-radius);
}

/* Przyciski pluginów */
:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper
) :is(button, input[type="submit"], input[type="button"], .button, .wpforms-submit) {
  min-height: 40px;
  padding: 9px 16px;
  font: inherit;
  font-weight: 800;
  line-height: 1.2;
  border-radius: 12px;
}

/* Typowe teksty formularzy nie mogą wracać do wielkich px z wtyczki. */
:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper
) :is(label, legend, .description, .helper-text, .wpforms-field-description, .wpcf7-not-valid-tip) {
  font-size: 0.875rem;
  line-height: 1.45;
}

/* Karty/widgety pluginów zachowują język wizualny motywu. */
:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .tribe-events,
  .tribe-common
) :is(.card, .panel, .form-card, .widget, .tribe-common-l-container) {
  border-radius: var(--wnz-plugin-radius);
}

/* Elementor: nie skalujemy całego elementu transformacją, tylko
   typografię i kontrolki, żeby nie rozjechać layoutu kolumn. */
.elementor-widget {
  --e-global-typography-text-font-size: 0.875rem;
}

.elementor-widget-text-editor,
.elementor-widget-heading,
.elementor-widget-form {
  font-size: var(--wnz-plugin-font-size);
  line-height: var(--wnz-plugin-line-height);
}

@media (min-width: 901px) {
  /* Jeżeli plugin ma własne "large" klasy, ograniczamy ich rozmiar
     do skali używanej przez nowy motyw. */
  :is(
    .wpforms-container,
    .wpforms-container-full,
    .wpcf7,
    .gform_wrapper,
    .nf-form-cont,
    .forminator-ui,
    .everest-forms,
    .fluentform,
    .fluentform_wrapper,
    .tribe-events,
    .tribe-common
  ) :is(.large, .big, .display-1, .display-2, .display-3) {
    font-size: 1.5rem !important;
    line-height: 1.1 !important;
  }
}

@media (max-width: 900px) {
  :root {
    --wnz-plugin-font-size: 0.9rem;
    --wnz-plugin-control-height: 40px;
  }

  :is(
    .wpforms-container,
    .wpforms-container-full,
    .wpcf7,
    .gform_wrapper,
    .nf-form-cont,
    .forminator-ui,
    .everest-forms,
    .fluentform,
    .fluentform_wrapper
  ) :is(input, textarea, select, button, input[type="submit"]) {
    max-width: 100%;
  }
}


/* =========================================================
   WALIM MODERN 2027 — REAL PLUGIN COMPACT OVERRIDE 1.6
   Uwaga: nie skaluje całej strony przez transform:scale().
   Celuje bezpośrednio w komponenty pluginów i typowe
   style inline/klasy dużych widgetów.
   ========================================================= */

/* PAGE CONTENT: title/content shouldn't inherit huge plugin-like sizes */
.wnz-content .entry-title,
.wnz-content .page-title,
.wnz-content h1 {
  font-size: clamp(2rem, 4vw, 3.4rem) !important;
  line-height: 1.02 !important;
  margin: 0 0 18px !important;
}

.wnz-content h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.15rem) !important;
  line-height: 1.12 !important;
}

.wnz-content h3 {
  font-size: clamp(1.15rem, 2vw, 1.55rem) !important;
}

.wnz-content p,
.wnz-content li,
.wnz-content td,
.wnz-content th {
  font-size: 0.95rem !important;
  line-height: 1.55 !important;
}

/* ---------- One Click Accessibility / Pojo ---------- */
#pojo-a11y-toolbar,
.pojo-a11y-toolbar,
.pojo-a11y-toolbar {
  font-size: 14px !important;
}

#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle,
.pojo-a11y-toolbar .pojo-a11y-toolbar-toggle {
  transform: none !important;
}

#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a,
.pojo-a11y-toolbar .pojo-a11y-toolbar-toggle a {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  padding: 0 !important;
  border-radius: 15px !important;
}

#pojo-a11y-toolbar .pojo-a11y-toolbar-overlay,
.pojo-a11y-toolbar .pojo-a11y-toolbar-overlay {
  width: 286px !important;
  max-width: calc(100vw - 28px) !important;
  padding: 12px !important;
  border-radius: 18px !important;
}

#pojo-a11y-toolbar .pojo-a11y-toolbar-title,
.pojo-a11y-toolbar .pojo-a11y-toolbar-title {
  font-size: 14px !important;
  line-height: 1.2 !important;
  padding: 8px 10px !important;
}

#pojo-a11y-toolbar .pojo-a11y-toolbar-item a,
.pojo-a11y-toolbar .pojo-a11y-toolbar-item a {
  min-height: 42px !important;
  padding: 9px 12px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  border-radius: 12px !important;
}

/* Accessibility "increase" must not make the toolbar itself enormous. */
#pojo-a11y-toolbar .pojo-a11y-btn,
.pojo-a11y-toolbar .pojo-a11y-btn {
  font-size: 13px !important;
}

/* ---------- PDF Embedder ---------- */
.pdfemb-viewer,
.pdfemb-viewer *,
.pdfemb-viewer .pdfemb-toolbar,
.pdfemb-viewer .pdfemb-toolbar * {
  box-sizing: border-box !important;
}

.pdfemb-viewer {
  max-width: 100% !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
}

.pdfemb-viewer .pdfemb-toolbar {
  min-height: 48px !important;
  height: 48px !important;
  padding: 7px 10px !important;
}

.pdfemb-viewer .pdfemb-toolbar button,
.pdfemb-viewer .pdfemb-toolbar a,
.pdfemb-viewer .pdfemb-toolbar span,
.pdfemb-viewer .pdfemb-toolbar input {
  font-size: 12px !important;
  line-height: 1 !important;
}

.pdfemb-viewer .pdfemb-toolbar button {
  min-width: 34px !important;
  width: auto !important;
  height: 34px !important;
}

.pdfemb-viewer .pdfemb-pagescontainer {
  max-width: 100% !important;
}

/* ---------- common PDF / document viewer wrappers ---------- */
.pdf-viewer,
.pdf-viewer *,
.pdfjs-viewer,
.pdfjs-viewer *,
.wp-block-embed,
.wp-block-file,
.wp-block-file *,
.dflip,
.dflip *,
.flipbook-container,
.flipbook-container * {
  box-sizing: border-box;
}

.pdf-viewer,
.pdfjs-viewer,
.dflip,
.flipbook-container {
  max-width: 100% !important;
  font-size: 13px !important;
}

.wp-block-file {
  font-size: 0.9rem !important;
}

.wp-block-file__button {
  font-size: 0.8rem !important;
  padding: 8px 13px !important;
  border-radius: 10px !important;
}

/* ---------- Generic plugin UI ----------
   Only known plugin/widget containers are affected, not the whole site. */
:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .tribe-events,
  .tribe-common,
  .woocommerce,
  .elementor-widget-form
) {
  font-size: 13px !important;
  line-height: 1.45 !important;
  max-width: 100% !important;
}

:is(
  .wpforms-container *,
  .wpforms-container-full *,
  .wpcf7 *,
  .gform_wrapper *,
  .nf-form-cont *,
  .forminator-ui *,
  .everest-forms *,
  .fluentform *,
  .fluentform_wrapper *,
  .tribe-events *,
  .tribe-common *,
  .woocommerce *,
  .elementor-widget-form *
) {
  box-sizing: border-box !important;
}

:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form
) :is(input:not([type=checkbox]):not([type=radio]):not([type=submit]), textarea, select) {
  min-height: 38px !important;
  height: auto !important;
  padding: 8px 11px !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  border-radius: 11px !important;
}

:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form
) :is(button, input[type=submit], input[type=button], .button, .wpforms-submit) {
  min-height: 38px !important;
  padding: 8px 14px !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  border-radius: 11px !important;
}

:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form
) :is(label, legend, .description, .helper-text, .wpforms-field-description, .wpcf7-not-valid-tip) {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* Kill common "huge" utility classes only inside plugins. */
:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .tribe-events,
  .tribe-common,
  .woocommerce,
  .elementor-widget-form
) :is(.display-1, .display-2, .display-3, .display-4, .h1, .h2, .h3, .large, .big) {
  font-size: 1.35rem !important;
  line-height: 1.15 !important;
}

/* Responsive plugin width */
@media (max-width: 900px) {
  .pdfemb-viewer,
  .pdf-viewer,
  .pdfjs-viewer,
  .dflip,
  .flipbook-container {
    width: 100% !important;
    max-width: 100vw !important;
  }

  .wpforms-container,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .fluentform,
  .elementor-widget-form {
    max-width: 100% !important;
  }
}


/* =========================================================
   WALIM MODERN 2027 — 1.7
   STRONG COMPACT + HEADER MENU ICONS
   ========================================================= */

/* ---------- Header menu icons ---------- */
.wnz-nav .wnz-menu a {
  gap: 6px;
}
.wnz-menu__icon {
  display: inline-block !important;
  width: 15px;
  height: 15px;
  line-height: 15px !important;
  font-size: 15px !important;
  flex: 0 0 15px;
  color: currentColor;
  opacity: .9;
}
.wnz-menu__label {
  display: inline-block;
  min-width: 0;
}
.wnz-nav .sub-menu .wnz-menu__icon {
  font-size: 13px !important;
  width: 13px;
  flex-basis: 13px;
}
@media (max-width: 900px) {
  .wnz-menu__icon {
    font-size: 14px !important;
    width: 14px;
    flex-basis: 14px;
  }
}

/* ---------- Global content typography ----------
   1.4 remains the visual base, but page content cannot become gigantic
   because a page builder/plugin supplies a large heading size. */
.wnz-content {
  font-size: 15px !important;
}
.wnz-content .wnz-entry {
  max-width: 1040px;
}
.wnz-content .wnz-page-title,
.wnz-content .entry-title,
.wnz-content .page-title,
.wnz-content > .wnz-container > h1,
.wnz-content > .wnz-entry > h1 {
  font-size: clamp(2.05rem, 4vw, 3.25rem) !important;
  line-height: 1.04 !important;
  margin-top: 0 !important;
  margin-bottom: 18px !important;
}
.wnz-entry h1 {
  font-size: clamp(2rem, 3.8vw, 3.15rem) !important;
}
.wnz-entry h2 {
  font-size: clamp(1.45rem, 2.6vw, 2.15rem) !important;
}
.wnz-entry h3 {
  font-size: clamp(1.15rem, 2vw, 1.5rem) !important;
}
.wnz-entry :is(p, li, td, th, figcaption, label) {
  font-size: 0.94rem !important;
  line-height: 1.58 !important;
}

/* WordPress block/editor output that often carries huge inline sizes */
.wnz-entry :is(.has-huge-font-size, .has-large-font-size) {
  font-size: 1rem !important;
  line-height: 1.55 !important;
}
.wnz-entry :is(.wp-block-heading.has-huge-font-size, .wp-block-heading.has-large-font-size) {
  font-size: clamp(1.45rem, 2.6vw, 2.15rem) !important;
}

/* ---------- One Click Accessibility / common accessibility toolbar ----------
   Narrow the actual floating widget rather than scaling the page. */
:is(
  #pojo-a11y-toolbar,
  .pojo-a11y-toolbar,
  #accessibility-menu,
  .accessibility-menu,
  .accessibility-widget,
  .a11y-toolbar,
  .a11y-panel
) {
  font-size: 13px !important;
}

:is(
  #pojo-a11y-toolbar .pojo-a11y-toolbar-overlay,
  .pojo-a11y-toolbar .pojo-a11y-toolbar-overlay,
  #accessibility-menu .accessibility-panel,
  .accessibility-menu .accessibility-panel,
  .accessibility-widget .accessibility-panel,
  .a11y-toolbar .a11y-panel,
  .a11y-panel
) {
  width: 270px !important;
  max-width: calc(100vw - 28px) !important;
  padding: 10px !important;
  border-radius: 16px !important;
}

:is(
  #pojo-a11y-toolbar .pojo-a11y-toolbar-title,
  .pojo-a11y-toolbar .pojo-a11y-toolbar-title,
  .accessibility-widget .title,
  .a11y-panel .title
) {
  font-size: 13px !important;
  padding: 7px 9px !important;
}

:is(
  #pojo-a11y-toolbar .pojo-a11y-toolbar-item a,
  .pojo-a11y-toolbar .pojo-a11y-toolbar-item a,
  .accessibility-menu button,
  .accessibility-widget button,
  .a11y-panel button
) {
  min-height: 40px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
  border-radius: 11px !important;
}

/* ---------- PDF/document widgets ----------
   The screenshot shows the document toolbar as the other oversized widget. */
:is(
  .pdfemb-viewer,
  .pdf-viewer,
  .pdfjs-viewer,
  .dflip,
  .flipbook-container
) {
  max-width: 100% !important;
  font-size: 12px !important;
}

.pdfemb-viewer .pdfemb-toolbar {
  height: 44px !important;
  min-height: 44px !important;
  padding: 5px 8px !important;
}
.pdfemb-viewer .pdfemb-toolbar :is(button, a, span, input) {
  font-size: 11px !important;
  line-height: 1 !important;
}
.pdfemb-viewer .pdfemb-toolbar button {
  width: 30px !important;
  min-width: 30px !important;
  height: 30px !important;
  padding: 0 !important;
}

/* PDF Embedder often inherits a large document title/toolbar font. */
.pdfemb-viewer :is(.pdfemb-title, .pdfemb-toolbar, .pdfemb-pagescontainer) {
  font-size: 12px !important;
}

/* ---------- Generic plugin hard cap ----------
   Only inside known plugin containers; the rest of the site is untouched. */
:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form,
  .tribe-common,
  .tribe-events,
  .woocommerce
) {
  font-size: 13px !important;
  line-height: 1.45 !important;
}

:is(
  .wpforms-container *,
  .wpforms-container-full *,
  .wpcf7 *,
  .gform_wrapper *,
  .nf-form-cont *,
  .forminator-ui *,
  .everest-forms *,
  .fluentform *,
  .fluentform_wrapper *,
  .elementor-widget-form *,
  .tribe-common *,
  .tribe-events *,
  .woocommerce *
) {
  box-sizing: border-box !important;
}

:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form
) :is(input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]), textarea, select) {
  font-size: 13px !important;
  line-height: 1.35 !important;
  min-height: 38px !important;
  padding: 8px 11px !important;
  border-radius: 10px !important;
}

:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form
) :is(button, input[type="submit"], input[type="button"], .button, .wpforms-submit) {
  font-size: 12px !important;
  line-height: 1.2 !important;
  min-height: 38px !important;
  padding: 8px 14px !important;
  border-radius: 10px !important;
}

:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form
) :is(label, legend, .description, .helper-text, .wpforms-field-description, .wpcf7-not-valid-tip) {
  font-size: 12px !important;
  line-height: 1.4 !important;
}

/* Prevent common plugin display classes from becoming billboard-sized. */
:is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form,
  .tribe-common,
  .tribe-events
) :is(.display-1, .display-2, .display-3, .display-4, .h1, .h2, .h3, .large, .big, .has-huge-font-size, .has-large-font-size) {
  font-size: 1.3rem !important;
  line-height: 1.15 !important;
}

/* Don't let plugin iframes create an oversized visual box. */
.wnz-entry iframe {
  max-width: 100% !important;
}

/* Keep plugin containers from overflowing the content column. */
.wnz-entry :is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form,
  .pdfemb-viewer,
  .pdf-viewer,
  .pdfjs-viewer,
  .dflip,
  .flipbook-container
) {
  width: 100% !important;
  max-width: 100% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@media (min-width: 901px) {
  .wnz-content {
    padding-top: 48px !important;
    padding-bottom: 72px !important;
  }

  .wnz-container {
    width: min(1120px, calc(100% - 44px)) !important;
  }
}

@media (max-width: 900px) {
  .wnz-content .wnz-page-title,
  .wnz-content .entry-title,
  .wnz-content .page-title {
    font-size: clamp(1.8rem, 8vw, 2.5rem) !important;
  }
}


/* =========================================================
   WALIM MODERN 2027 — MOBILE MENU FIX 1.8
   Touch devices never use :hover to open submenus.
   ========================================================= */
@media (max-width: 900px) {
  html, body {
    overflow-x: hidden !important;
  }

  .wnz-header,
  .wnz-header__inner {
    width: 100%;
    max-width: 100%;
  }

  .wnz-header__inner {
    position: relative;
    min-width: 0;
    box-sizing: border-box;
  }

  .wnz-brand {
    min-width: 0 !important;
    max-width: calc(100% - 58px);
    flex: 1 1 auto;
  }

  .wnz-brand__name {
    max-width: 145px !important;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .wnz-menu-toggle {
    flex: 0 0 46px;
    position: relative;
    z-index: 10002;
  }

  .wnz-nav {
    z-index: 10001;
    box-sizing: border-box;
    overflow-x: hidden !important;
  }

  .wnz-nav.is-open {
    max-height: calc(100dvh - 92px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  .wnz-nav .wnz-menu,
  .wnz-nav .wnz-menu > li,
  .wnz-nav .wnz-menu > li > a {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  .wnz-nav .wnz-menu > li {
    display: block;
  }

  .wnz-nav .wnz-menu > li > a {
    display: flex !important;
    align-items: center;
    min-height: 44px;
    padding: 9px 12px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .wnz-nav .wnz-menu__label {
    min-width: 0;
    max-width: 100%;
  }

  .wnz-nav .wnz-menu__icon {
    flex: 0 0 15px !important;
    width: 15px !important;
  }

  /* IMPORTANT: on phones only JS-controlled .is-open opens a submenu.
     CSS :hover / :focus-within cannot accidentally open it. */
  .wnz-nav .menu-item-has-children > .sub-menu,
  .wnz-nav .menu-item-has-children:hover > .sub-menu,
  .wnz-nav .menu-item-has-children:focus-within > .sub-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    transform: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    margin: 3px 0 6px !important;
    padding: 5px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .wnz-nav .menu-item-has-children.is-open > .sub-menu {
    display: block !important;
  }

  .wnz-nav .sub-menu a {
    display: flex !important;
    align-items: center;
    width: 100% !important;
    min-height: 40px !important;
    box-sizing: border-box !important;
    padding: 8px 10px !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .wnz-nav .sub-menu .sub-menu {
    margin-left: 0 !important;
  }

  /* no desktop hover bridge on touch */
  .wnz-nav > .wnz-menu > li > .sub-menu::before,
  .wnz-nav .sub-menu .sub-menu::before {
    display: none !important;
  }

  /* Keep the + / − indicator inside the row, never outside viewport. */
  .wnz-nav .menu-item-has-children > a::after {
    margin-left: auto !important;
    flex: 0 0 auto;
  }
}

/* Devices that actually have a mouse keep the desktop hover behavior. */
@media (hover: hover) and (pointer: fine) and (min-width: 901px) {
  .wnz-nav .menu-item-has-children:hover > .sub-menu,
  .wnz-nav .menu-item-has-children:focus-within > .sub-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }
}


/* =========================================================
   WALIM MODERN 2027 — LIGHT / WHITE PALETTE
   ========================================================= */
:root {
  --wnz-navy: #ffffff !important;
  --wnz-dark: #ffffff !important;
  --wnz-bg: #ffffff !important;
  --wnz-text: #172033 !important;
  --wnz-muted: #5d6878 !important;
  --wnz-card: #ffffff !important;
  --wnz-border: #e5e9ef !important;
  --wnz-orange: #ff5a1f !important;
  --wnz-orange-2: #ff7a3d !important;
  --wnz-shadow: 0 14px 40px rgba(20, 30, 45, .10) !important;
}

/* White site canvas */
html, body {
  background: #ffffff !important;
  color: #172033 !important;
}

/* Header */
.wnz-header {
  background: rgba(255,255,255,.96) !important;
  color: #172033 !important;
  border-bottom: 1px solid #e7ebf0 !important;
  box-shadow: 0 8px 28px rgba(20,30,45,.08) !important;
}

.wnz-header a,
.wnz-nav a {
  color: #172033 !important;
}

.wnz-nav a:hover,
.wnz-nav .current-menu-item > a,
.wnz-nav .current_page_item > a {
  color: #ff5a1f !important;
}

.wnz-nav .wnz-menu > li > a::after {
  background: #ff5a1f !important;
}

.wnz-brand__name {
  color: #172033 !important;
}

/* Header dropdowns */
.wnz-nav .sub-menu {
  background: #ffffff !important;
  border: 1px solid #e5e9ef !important;
  box-shadow: 0 18px 42px rgba(20,30,45,.14) !important;
}
.wnz-nav .sub-menu a {
  color: #172033 !important;
}
.wnz-nav .sub-menu a:hover {
  color: #ff5a1f !important;
  background: #f7f9fb !important;
}

/* Hero and normal content */
.wnz-hero,
.wnz-content {
  background: #ffffff !important;
  color: #172033 !important;
}

.wnz-hero h1,
.wnz-hero h2,
.wnz-content h1,
.wnz-content h2,
.wnz-content h3,
.wnz-content h4,
.wnz-content h5,
.wnz-content h6 {
  color: #111827 !important;
}

.wnz-content p,
.wnz-content li,
.wnz-content td,
.wnz-content th {
  color: #4e5a6c !important;
}

/* Cards / content boxes */
.wnz-card,
.wnz-entry,
.wnz-content .wp-block-group,
.wnz-content .wp-block-column {
  color: #172033;
}

.wnz-card {
  background: #ffffff !important;
  border-color: #e5e9ef !important;
  box-shadow: 0 12px 34px rgba(20,30,45,.08) !important;
}

/* Footer stays light too */
.wnz-footer {
  background: #ffffff !important;
  color: #172033 !important;
  border-top: 1px solid #e5e9ef !important;
}
.wnz-footer a,
.wnz-footer__copyright,
.wnz-footer__meta {
  color: #5d6878 !important;
}
.wnz-footer__meta strong,
.wnz-footer__meta a {
  color: #172033 !important;
}
.wnz-footer__meta a:hover {
  color: #ff5a1f !important;
}

/* Accessibility floating button */
:is(.pojo-a11y-toolbar-toggle, #pojo-a11y-toolbar .pojo-a11y-toolbar-toggle) {
  background: #ff5a1f !important;
  color: #ffffff !important;
}

/* =========================================================
   HARD FRONT-END SCALE
   The Customizer value now genuinely controls Kubio + plugins.
   ========================================================= */
:root {
  --wnz-kubio-scale: 0.88;
}

/* Scale the actual rendered UI of supported plugin/Kubio roots.
   CSS zoom keeps layout/click coordinates aligned better than transform:scale(). */
body:not(.wp-admin) :is(
  .wp-block-kubio,
  [class*="kubio"],
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form,
  .tribe-common,
  .tribe-events,
  .woocommerce,
  .pdfemb-viewer,
  .pdf-viewer,
  .pdfjs-viewer,
  .dflip,
  .flipbook-container
) {
  zoom: var(--wnz-kubio-scale) !important;
}

/* Don't zoom nested plugin descendants twice. */
body:not(.wp-admin) :is(
  .wp-block-kubio,
  [class*="kubio"],
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form,
  .tribe-common,
  .tribe-events,
  .woocommerce,
  .pdfemb-viewer,
  .pdf-viewer,
  .pdfjs-viewer,
  .dflip,
  .flipbook-container
) :is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .everest-forms,
  .fluentform,
  .fluentform_wrapper,
  .elementor-widget-form
) {
  zoom: 1 !important;
}

/* Kubio editor/admin must never inherit frontend zoom. */
.wp-admin :is(.wp-block-kubio, [class*="kubio"]) {
  zoom: 1 !important;
}

/* Reassert compact typography after Kubio's own inline/generated CSS. */
body:not(.wp-admin) :is(.wp-block-kubio, [class*="kubio"]) :is(h1,h2,h3,h4,h5,h6,p,li) {
  max-width: 100% !important;
}

body:not(.wp-admin) :is(.wp-block-kubio, [class*="kubio"]) :is(h1,h2,h3) {
  margin-top: 0 !important;
}

/* Avoid double scaling the entire page through accessibility zoom. */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}


/* =========================================================
   WALIM MODERN 2027 — v2.1 HEADER POLISH
   ========================================================= */

/* White, rounded header shell — stays compact and single-line. */
.wnz-header {
  background: rgba(255,255,255,.98) !important;
  border: 0 !important;
  border-bottom: 1px solid #e8edf3 !important;
  border-radius: 0 0 18px 18px !important;
  box-shadow: 0 8px 30px rgba(20,30,45,.07) !important;
}

.wnz-header__inner {
  max-width: 1440px !important;
  min-height: 72px !important;
  padding: 7px 22px !important;
  margin: 0 auto !important;
  box-sizing: border-box !important;
}

/* Logo + text: neat compact block */
.wnz-brand {
  min-width: 195px !important;
  gap: 10px !important;
}

.wnz-brand img {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
}

.wnz-brand__name {
  font-size: 11px !important;
  line-height: 1.08 !important;
  letter-spacing: .01em !important;
  color: #172033 !important;
}

/* One-line navigation with rounded active/hover states. */
@media (min-width: 901px) {
  .wnz-nav {
    overflow: visible !important;
  }

  .wnz-nav .wnz-menu {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 2px !important;
  }

  .wnz-nav .wnz-menu > li {
    flex: 0 0 auto !important;
  }

  .wnz-nav .wnz-menu > li > a {
    min-height: 42px !important;
    padding: 9px 12px !important;
    border-radius: 999px !important;
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    font-size: 13px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    color: #273247 !important;
    transition: background .16s ease, color .16s ease, box-shadow .16s ease !important;
  }

  .wnz-nav .wnz-menu > li > a:hover {
    color: #172033 !important;
    background: #f3f6f9 !important;
  }

  .wnz-nav .wnz-menu > li.current-menu-item > a,
  .wnz-nav .wnz-menu > li.current_page_item > a,
  .wnz-nav .wnz-menu > li.current-menu-ancestor > a {
    color: #172033 !important;
    background: #f7f9fb !important;
    box-shadow: inset 0 -2px 0 #ff5a1f !important;
  }

  /* IMPORTANT: dropdown arrows are dark, never orange. */
  .wnz-nav .menu-item-has-children > a::after {
    color: #687385 !important;
    background: transparent !important;
    -webkit-text-fill-color: #687385 !important;
    font-size: 11px !important;
    opacity: 1 !important;
    margin-left: 5px !important;
  }

  .wnz-nav .menu-item-has-children:hover > a::after,
  .wnz-nav .menu-item-has-children:focus-within > a::after {
    color: #273247 !important;
    -webkit-text-fill-color: #273247 !important;
  }

  /* Submenu: white card, rounded and readable. */
  .wnz-nav .sub-menu {
    background: #ffffff !important;
    border: 1px solid #e5eaf0 !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 45px rgba(20,30,45,.13) !important;
    padding: 8px !important;
  }

  .wnz-nav .sub-menu a {
    color: #273247 !important;
    background: transparent !important;
    border-radius: 10px !important;
    font-size: 12px !important;
  }

  .wnz-nav .sub-menu a:hover,
  .wnz-nav .sub-menu .current-menu-item > a {
    color: #172033 !important;
    background: #f5f7fa !important;
  }

  .wnz-nav .sub-menu .menu-item-has-children > a::after {
    color: #687385 !important;
    -webkit-text-fill-color: #687385 !important;
  }

  /* Orange is reserved for real action/accent states, not arrows. */
  .wnz-nav .menu-item-has-children > a::after {
    background: none !important;
  }
}

/* Mobile header: white rounded shell and neutral arrows. */
@media (max-width: 900px) {
  .wnz-header {
    border-radius: 0 0 16px 16px !important;
  }

  .wnz-header__inner {
    padding: 8px 14px !important;
    min-height: 66px !important;
  }

  .wnz-nav .menu-item-has-children > a::after {
    color: #687385 !important;
    -webkit-text-fill-color: #687385 !important;
    background: transparent !important;
  }

  .wnz-nav .menu-item-has-children.is-open > a::after {
    color: #687385 !important;
    -webkit-text-fill-color: #687385 !important;
  }
}


/* =========================================================
   WALIM MODERN 2027 — v2.2 COMPACT HERO
   ========================================================= */
.wnz-hero {
  border-radius: 0 0 28px 28px !important;
}

.wnz-hero__inner {
  width: min(1120px, calc(100% - 44px)) !important;
  padding: 54px 0 48px !important;
  grid-template-columns: 1.35fr .65fr !important;
  gap: 34px !important;
}

.wnz-hero h1 {
  font-size: clamp(2rem, 4.3vw, 3.55rem) !important;
  line-height: 1.03 !important;
  margin: 0 0 14px !important;
  max-width: 760px !important;
}

.wnz-hero p {
  max-width: 620px !important;
  font-size: .94rem !important;
  line-height: 1.58 !important;
  margin: 0 !important;
}

.wnz-kicker {
  padding: 6px 11px !important;
  font-size: 10px !important;
}

.wnz-hero__badge {
  width: min(245px, 100%) !important;
  border-radius: 28px !important;
  justify-self: end !important;
}

@media (max-width: 900px) {
  .wnz-hero__inner {
    width: min(100% - 28px, 1120px) !important;
    padding: 42px 0 38px !important;
    grid-template-columns: 1fr !important;
  }
  .wnz-hero h1 {
    font-size: clamp(1.9rem, 8vw, 2.8rem) !important;
  }
  .wnz-hero__badge {
    width: 165px !important;
    justify-self: start !important;
  }
}

@media (max-width: 600px) {
  .wnz-hero__inner {
    padding: 34px 0 32px !important;
  }
  .wnz-hero__badge {
    width: 135px !important;
  }
}


/* =========================================================
   WALIM MODERN 2027 — REUSABLE MODALS
   ========================================================= */
.wnz-modal {
  position: fixed !important;
  inset: 0 !important;
  z-index: 1000000 !important;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 22px;
}
.wnz-modal.is-open { display: flex !important; }

.wnz-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 15, 28, .58);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.wnz-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(680px, 94vw);
  max-height: min(760px, 88vh);
  overflow: auto;
  background: #fff;
  color: #172033;
  border: 1px solid #e5e9ef;
  border-radius: 26px;
  box-shadow: 0 30px 100px rgba(15, 23, 42, .24);
  padding: 30px;
  animation: wnzModalIn .18s ease-out;
}

.wnz-modal__dialog h2,
.wnz-modal__dialog h3 {
  margin-top: 0;
  color: #111827;
}

.wnz-modal__dialog p,
.wnz-modal__dialog li {
  color: #536074;
}

.wnz-modal__close {
  position: absolute !important;
  top: 12px;
  right: 12px;
  width: 40px !important;
  min-width: 40px !important;
  height: 40px !important;
  min-height: 40px !important;
  padding: 0 !important;
  border: 1px solid #e5e9ef !important;
  background: #f5f7fa !important;
  color: #172033 !important;
  box-shadow: none !important;
  font-size: 23px !important;
  line-height: 1 !important;
}

.wnz-modal__close:hover {
  background: #fff !important;
  color: #ff5a1f !important;
  transform: none !important;
}

.wnz-modal__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.wnz-modal__trigger {
  cursor: pointer;
}

body.wnz-modal-open {
  overflow: hidden !important;
}

@keyframes wnzModalIn {
  from { opacity: 0; transform: translateY(8px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 600px) {
  .wnz-modal {
    padding: 12px;
  }
  .wnz-modal__dialog {
    width: 96vw;
    max-height: 90vh;
    border-radius: 20px;
    padding: 23px 19px;
  }
}


/* =========================================================
   WALIM MODERN 2027 — v3.0 DEFINITIVE FRONTEND
   ========================================================= */

/* Global light surface / readable contrast */
html, body {
  background: #fff !important;
  color: #172033 !important;
  overflow-x: hidden;
}

body {
  font-size: 16px;
}

img {
  max-width: 100%;
}

/* ---------------------------------------------------------
   HEADER — desktop
   --------------------------------------------------------- */
.wnz-header {
  background: rgba(255,255,255,.98) !important;
  color: #172033 !important;
  border-bottom: 1px solid #e7ebf0 !important;
  border-radius: 0 0 18px 18px !important;
  box-shadow: 0 8px 28px rgba(20,30,45,.07) !important;
  position: relative;
  z-index: 9000;
}

.wnz-header__inner {
  width: min(1480px, calc(100% - 32px)) !important;
  max-width: 1480px !important;
  min-height: 72px !important;
  margin: 0 auto !important;
  padding: 7px 12px !important;
  box-sizing: border-box !important;
  position: relative;
}

.wnz-brand {
  min-width: 190px !important;
  color: #172033 !important;
}

.wnz-brand img {
  width: 52px !important;
  height: 52px !important;
  border-radius: 50% !important;
  object-fit: contain !important;
}

.wnz-brand__name {
  color: #172033 !important;
  font-size: 11px !important;
  line-height: 1.08 !important;
}

/* Desktop menu is one line. */
@media (min-width: 901px) {
  .wnz-nav {
    margin-left: auto !important;
    overflow: visible !important;
    min-width: 0 !important;
  }

  .wnz-nav .wnz-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 1px !important;
    white-space: nowrap !important;
  }

  .wnz-nav .wnz-menu > li {
    flex: 0 0 auto !important;
    position: relative !important;
  }

  .wnz-nav .wnz-menu > li > a {
    display: flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 8px 10px !important;
    border-radius: 999px !important;
    color: #273247 !important;
    font-size: 12px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
  }

  .wnz-nav .wnz-menu > li > a:hover {
    color: #172033 !important;
    background: #f3f6f9 !important;
  }

  .wnz-nav .wnz-menu > li.current-menu-item > a,
  .wnz-nav .wnz-menu > li.current-menu-ancestor > a,
  .wnz-nav .wnz-menu > li.current_page_item > a {
    color: #172033 !important;
    background: #f7f9fb !important;
    box-shadow: inset 0 -2px 0 #ff5a1f !important;
  }

  .wnz-nav .menu-item-has-children > a::after {
    content: "⌄" !important;
    color: #687385 !important;
    -webkit-text-fill-color: #687385 !important;
    background: transparent !important;
    font-size: 11px !important;
    margin-left: 5px !important;
  }

  .wnz-nav .menu-item-has-children:hover > a::after,
  .wnz-nav .menu-item-has-children:focus-within > a::after {
    color: #273247 !important;
    -webkit-text-fill-color: #273247 !important;
  }

  .wnz-nav .sub-menu {
    background: #fff !important;
    border: 1px solid #e5e9ef !important;
    border-radius: 16px !important;
    box-shadow: 0 18px 45px rgba(20,30,45,.14) !important;
    padding: 8px !important;
    min-width: 230px !important;
    z-index: 10000 !important;
  }

  .wnz-nav .sub-menu a {
    color: #273247 !important;
    background: transparent !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1.3 !important;
  }

  .wnz-nav .sub-menu a:hover,
  .wnz-nav .sub-menu .current-menu-item > a {
    color: #172033 !important;
    background: #f5f7fa !important;
  }

  /* No orange dropdown arrows. */
  .wnz-nav .sub-menu .menu-item-has-children > a::after {
    color: #687385 !important;
    -webkit-text-fill-color: #687385 !important;
  }
}

/* ---------------------------------------------------------
   MOBILE HEADER — white panel + dark readable text
   --------------------------------------------------------- */
@media (max-width: 900px) {
  .wnz-header {
    z-index: 100000 !important;
    border-radius: 0 0 16px 16px !important;
  }

  .wnz-header__inner {
    width: 100% !important;
    min-height: 66px !important;
    padding: 7px 14px !important;
    display: flex !important;
    align-items: center !important;
  }

  .wnz-brand {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    max-width: calc(100% - 58px) !important;
  }

  .wnz-brand img {
    width: 50px !important;
    height: 50px !important;
  }

  /* Hamburger is intentionally dark so it is visible on white. */
  .wnz-menu-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    min-height: 44px !important;
    margin-left: auto !important;
    padding: 0 !important;
    border: 1px solid #dfe5ec !important;
    border-radius: 14px !important;
    background: #172033 !important;
    color: #fff !important;
    box-shadow: 0 8px 22px rgba(23,32,51,.14) !important;
    font-size: 0 !important;
    line-height: 1 !important;
    z-index: 100003 !important;
  }

  .wnz-menu-toggle::before {
    content: "☰";
    font-size: 20px;
    color: #fff;
  }

  .wnz-menu-toggle[aria-expanded="true"]::before {
    content: "×";
    font-size: 27px;
  }

  /* White dropdown panel — dark text, never dark-on-dark. */
  .wnz-nav,
  .wnz-nav.is-open {
    display: none !important;
    position: absolute !important;
    left: 10px !important;
    right: 10px !important;
    top: calc(100% + 8px) !important;
    width: auto !important;
    max-height: calc(100dvh - 88px) !important;
    padding: 9px !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    background: #fff !important;
    color: #172033 !important;
    border: 1px solid #e5e9ef !important;
    border-radius: 20px !important;
    box-shadow: 0 24px 70px rgba(15,23,42,.18) !important;
    z-index: 100002 !important;
  }

  .wnz-nav.is-open {
    display: block !important;
  }

  .wnz-nav .wnz-menu,
  .wnz-nav .wnz-menu > li,
  .wnz-nav .wnz-menu > li > a {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .wnz-nav .wnz-menu {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .wnz-nav .wnz-menu > li {
    display: block !important;
    margin: 0 !important;
  }

  .wnz-nav .wnz-menu > li > a {
    display: flex !important;
    align-items: center !important;
    min-height: 46px !important;
    padding: 10px 12px !important;
    border-radius: 13px !important;
    color: #172033 !important;
    background: transparent !important;
    font-size: 13px !important;
    line-height: 1.25 !important;
    font-weight: 800 !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
  }

  .wnz-nav .wnz-menu > li > a:hover,
  .wnz-nav .wnz-menu > li > a:focus-visible,
  .wnz-nav .wnz-menu > li.current-menu-item > a,
  .wnz-nav .wnz-menu > li.current-menu-ancestor > a {
    color: #172033 !important;
    background: #f4f7fa !important;
    box-shadow: inset 3px 0 0 #ff5a1f !important;
  }

  .wnz-nav .wnz-menu__icon {
    color: #536074 !important;
    -webkit-text-fill-color: #536074 !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    margin-right: 4px !important;
  }

  .wnz-nav .wnz-menu__label {
    color: inherit !important;
    min-width: 0 !important;
  }

  /* Mobile arrows are grey, not orange. */
  .wnz-nav .menu-item-has-children > a::after,
  .wnz-nav .menu-item-has-children:hover > a::after,
  .wnz-nav .menu-item-has-children:focus-within > a::after,
  .wnz-nav .menu-item-has-children.is-open > a::after {
    content: "⌄" !important;
    color: #687385 !important;
    -webkit-text-fill-color: #687385 !important;
    background: transparent !important;
    margin-left: auto !important;
    font-size: 13px !important;
    transform: none !important;
  }

  .wnz-nav .menu-item-has-children.is-open > a::after {
    transform: rotate(180deg) !important;
  }

  /* Touch controlled submenus: only .is-open reveals them. */
  .wnz-nav .menu-item-has-children > .sub-menu,
  .wnz-nav .menu-item-has-children:hover > .sub-menu,
  .wnz-nav .menu-item-has-children:focus-within > .sub-menu {
    display: none !important;
    position: static !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 3px 0 6px !important;
    padding: 5px !important;
    background: #f7f9fb !important;
    border: 1px solid #e7ebf0 !important;
    border-radius: 14px !important;
    box-shadow: none !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: none !important;
    overflow: hidden !important;
  }

  .wnz-nav .menu-item-has-children.is-open > .sub-menu {
    display: block !important;
  }

  .wnz-nav .sub-menu a {
    display: flex !important;
    align-items: center !important;
    min-height: 40px !important;
    padding: 9px 10px !important;
    color: #273247 !important;
    background: transparent !important;
    border-radius: 10px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
  }

  .wnz-nav .sub-menu a:hover,
  .wnz-nav .sub-menu .current-menu-item > a {
    color: #172033 !important;
    background: #fff !important;
  }
}

/* ---------------------------------------------------------
   HERO / PAGE SCALE
   --------------------------------------------------------- */
.wnz-hero {
  min-height: 0 !important;
}

.wnz-hero__inner {
  width: min(1120px, calc(100% - 44px)) !important;
  padding: 42px 0 38px !important;
  gap: 30px !important;
}

.wnz-hero h1 {
  font-size: clamp(1.9rem, 3.7vw, 3.05rem) !important;
  line-height: 1.04 !important;
  margin-bottom: 12px !important;
}

.wnz-hero p {
  font-size: .9rem !important;
  line-height: 1.52 !important;
}

.wnz-hero__badge {
  width: min(220px, 100%) !important;
  border-radius: 24px !important;
}

@media (max-width: 900px) {
  .wnz-hero__inner {
    width: calc(100% - 28px) !important;
    padding: 34px 0 30px !important;
    gap: 20px !important;
  }

  .wnz-hero h1 {
    font-size: clamp(1.8rem, 8vw, 2.6rem) !important;
  }

  .wnz-hero__badge {
    width: 150px !important;
  }
}

/* ---------------------------------------------------------
   MODALS — final polish
   --------------------------------------------------------- */
.wnz-modal__dialog {
  width: min(700px, 94vw) !important;
  border-radius: 24px !important;
}

.wnz-modal__trigger {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px !important;
  padding: 10px 18px !important;
  border-radius: 999px !important;
  color: #fff !important;
  background: linear-gradient(135deg,#ff5a1f,#ff7a3d) !important;
}

.wnz-modal__trigger:hover {
  transform: translateY(-1px) !important;
}

.wnz-modal__content img {
  border-radius: 16px !important;
  max-width: 100% !important;
  height: auto !important;
}

/* ---------------------------------------------------------
   PLUGINS / EMBEDS — common compact, white card treatment
   --------------------------------------------------------- */
body:not(.wp-admin) :is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .fluentform,
  .fluentform_wrapper,
  .tribe-common,
  .tribe-events,
  .pdfemb-viewer,
  .pdf-viewer,
  .pdfjs-viewer,
  .dflip,
  .flipbook-container
) {
  border-radius: 18px !important;
}

body:not(.wp-admin) :is(
  .wpforms-container,
  .wpforms-container-full,
  .wpcf7,
  .gform_wrapper,
  .nf-form-cont,
  .forminator-ui,
  .fluentform,
  .fluentform_wrapper
) {
  color: #172033 !important;
}

/* Footer */
.wnz-footer {
  background: #fff !important;
  color: #172033 !important;
  border-top: 1px solid #e7ebf0 !important;
}

.wnz-footer a {
  color: #536074 !important;
}

.wnz-footer a:hover {
  color: #ff5a1f !important;
}

/* Accessibility floating controls stay orange/white and visible. */
.wnz-header ~ .pojo-a11y-toolbar-toggle,
#pojo-a11y-toolbar .pojo-a11y-toolbar-toggle {
  background: #ff5a1f !important;
  color: #fff !important;
}


/* Hero can be moved below page content from the Customizer. */
.wnz-hero {
  margin-inline: auto !important;
}

.wnz-hero__copy {
  min-width: 0 !important;
}

@media (min-width: 901px) {
  .wnz-hero__inner {
    min-height: 0 !important;
  }
}


/* =========================================================
   v3.2 — RESPONSIVE WIDE LAYOUT + HIGH-CONTRAST HERO
   ========================================================= */

/* Fluid site width: use the monitor without making content absurdly wide. */
:root {
  --wnz-content-max: 1600px;
  --wnz-gutter: clamp(16px, 3vw, 48px);
  --wnz-card-radius: 22px;
}

.wnz-container,
.wnz-header__inner,
.wnz-hero__inner {
  width: min(var(--wnz-content-max), calc(100vw - (var(--wnz-gutter) * 2))) !important;
  max-width: var(--wnz-content-max) !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Give normal WordPress/Kubio content more breathing room on large monitors. */
.wnz-content {
  width: 100% !important;
}

.wnz-content > .wnz-container {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.wnz-card {
  border-radius: var(--wnz-card-radius) !important;
}

/* Prevent giant typography while allowing the layout itself to become wider. */
.wnz-page-title {
  font-size: clamp(2rem, 3.4vw, 3.6rem) !important;
  line-height: 1.05 !important;
}

.wnz-entry {
  font-size: clamp(.95rem, .2vw + .9rem, 1.08rem) !important;
}

/* Hero: readable light card, dark text, orange used only as accent. */
.wnz-hero {
  background: #f5f7fa !important;
  color: #111827 !important;
  border: 1px solid #e5e9ef !important;
  border-radius: 0 0 30px 30px !important;
  box-shadow: 0 12px 40px rgba(17,24,39,.06) !important;
}

.wnz-hero__inner {
  min-height: 0 !important;
  padding: clamp(38px, 5vw, 76px) 0 clamp(34px, 4vw, 58px) !important;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, .75fr) !important;
}

.wnz-hero__copy {
  color: #111827 !important;
}

.wnz-hero .wnz-kicker {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 32px !important;
  padding: 7px 13px !important;
  color: #172033 !important;
  background: #fff !important;
  border: 1px solid #dce2e9 !important;
  border-radius: 999px !important;
  font-size: .76rem !important;
  font-weight: 800 !important;
  letter-spacing: .04em !important;
}

.wnz-hero h1 {
  color: #0f172a !important;
  text-shadow: none !important;
  font-size: clamp(2.15rem, 4.5vw, 4.6rem) !important;
  line-height: .99 !important;
  letter-spacing: -.045em !important;
  max-width: 900px !important;
}

.wnz-hero p {
  color: #334155 !important;
  max-width: 760px !important;
  font-size: clamp(.95rem, .25vw + .88rem, 1.12rem) !important;
  line-height: 1.65 !important;
}

.wnz-hero__badge {
  background: #fff !important;
  border: 1px solid #dfe5ec !important;
  box-shadow: 0 20px 50px rgba(15,23,42,.10) !important;
  border-radius: 28px !important;
  padding: clamp(18px, 2.5vw, 34px) !important;
}

/* Wide desktop: use available monitor width. */
@media (min-width: 1200px) {
  :root {
    --wnz-content-max: 1680px;
    --wnz-gutter: 34px;
  }

  .wnz-header__inner {
    min-height: 76px !important;
  }

  .wnz-content {
    padding-top: 22px !important;
    padding-bottom: 44px !important;
  }
}

@media (min-width: 1600px) {
  :root {
    --wnz-content-max: 1780px;
    --wnz-gutter: 42px;
  }
}

@media (min-width: 1900px) {
  :root {
    --wnz-content-max: 1880px;
    --wnz-gutter: 50px;
  }
}

/* Tablets: keep it wide but stack only when the viewport actually needs it. */
@media (max-width: 1050px) {
  .wnz-hero__inner {
    grid-template-columns: minmax(0, 1fr) 240px !important;
    gap: 28px !important;
  }
}

@media (max-width: 900px) {
  :root {
    --wnz-gutter: 14px;
  }

  .wnz-container,
  .wnz-header__inner,
  .wnz-hero__inner {
    width: calc(100vw - 28px) !important;
  }

  .wnz-hero {
    border-radius: 0 0 22px 22px !important;
  }

  .wnz-hero__inner {
    display: flex !important;
    flex-direction: column !important;
    padding: 34px 0 32px !important;
  }

  .wnz-hero h1 {
    font-size: clamp(2rem, 10vw, 3.2rem) !important;
  }

  .wnz-hero p {
    font-size: .95rem !important;
  }

  .wnz-hero__badge {
    width: min(170px, 60vw) !important;
    align-self: center !important;
  }
}

/* Small phones */
@media (max-width: 480px) {
  .wnz-container,
  .wnz-header__inner,
  .wnz-hero__inner {
    width: calc(100vw - 20px) !important;
  }

  .wnz-hero__inner {
    padding: 28px 0 !important;
  }

  .wnz-hero h1 {
    font-size: clamp(1.8rem, 11vw, 2.6rem) !important;
  }

  .wnz-hero .wnz-kicker {
    font-size: .68rem !important;
  }

  .wnz-hero p {
    font-size: .88rem !important;
    line-height: 1.55 !important;
  }
}

/* Common wide plugin/content blocks: don't artificially keep them narrow. */
.wnz-content :is(
  .wp-block-group,
  .wp-block-cover,
  .wp-block-columns,
  .wp-block-table,
  .wp-block-embed,
  .wp-block-image,
  .wp-block-gallery
) {
  max-width: 100% !important;
}

/* Tables / embedded plugin viewers get horizontal room on desktop, not giant text. */
.wnz-content :is(table, iframe, .pdfemb-viewer, .pdf-viewer, .pdfjs-viewer, .dflip) {
  max-width: 100% !important;
}


/* =========================================================
   v3.4 — COMPACT HERO (SAFE KUBIO COMPATIBILITY)
   ========================================================= */
.wnz-hero__inner {
  padding-top: clamp(24px, 3vw, 42px) !important;
  padding-bottom: clamp(24px, 3vw, 40px) !important;
  gap: clamp(18px, 2.5vw, 30px) !important;
}

.wnz-hero h1 {
  font-size: clamp(1.85rem, 3.4vw, 3.45rem) !important;
  line-height: 1.01 !important;
  max-width: 760px !important;
  margin-top: 10px !important;
  margin-bottom: 10px !important;
}

.wnz-hero p {
  max-width: 650px !important;
  font-size: clamp(.86rem, .18vw + .82rem, 1rem) !important;
  line-height: 1.52 !important;
}

.wnz-hero__badge {
  width: min(190px, 100%) !important;
  padding: 20px !important;
}

@media (max-width: 900px) {
  .wnz-hero__inner {
    padding-top: 24px !important;
    padding-bottom: 25px !important;
  }

  .wnz-hero h1 {
    font-size: clamp(1.7rem, 8.5vw, 2.65rem) !important;
  }

  .wnz-hero__badge {
    width: 145px !important;
  }
}

/* Safe wide-layout helpers: only our own theme containers are widened.
   Kubio's internal grid/column geometry is left intact. */
@media (min-width: 1200px) {
  .wnz-content > .wnz-container {
    width: min(100%, 1760px) !important;
  }
}
@media (min-width: 1600px) {
  .wnz-content > .wnz-container {
    width: min(100%, 1840px) !important;
  }
}
@media (min-width: 1900px) {
  .wnz-content > .wnz-container {
    width: min(100%, 1940px) !important;
  }
}


/* v3.5 — desktop header: menu closer to logo */
@media (min-width: 901px) {
  .wnz-header__inner {
    display: flex !important;
    align-items: center !important;
  }

  .wnz-brand {
    flex: 0 0 auto !important;
    margin-right: clamp(14px, 1.8vw, 30px) !important;
  }

  .wnz-nav {
    margin-left: 0 !important;
    margin-right: auto !important;
    flex: 0 1 auto !important;
    max-width: none !important;
  }

  .wnz-nav .wnz-menu {
    justify-content: flex-start !important;
  }
}

/* v3.9 — submenu icons use the selected global icon size. */
.wnz-nav .sub-menu .wnz-menu__icon{font-size:var(--wnz-menu-icon-size,13px)!important;width:var(--wnz-menu-icon-size,13px)!important;height:var(--wnz-menu-icon-size,13px)!important;line-height:var(--wnz-menu-icon-size,13px)!important;flex-basis:var(--wnz-menu-icon-size,13px)!important;}
