/* Approved public snapshot 2026-11-04; source hashes in manifest.json. */
/*
 * Phase 1 — Critical
 * Shared usability and responsive safeguards for linked, non-public drafts.
 * The reviewed homepage is intentionally excluded through its source-parity mode.
 */

body.bzp-published.bzp-public-phase1-critical {
  --bzp-critical-ink: var(--bzp-ds-color-heading, var(--bzp-review-navy, #101a36));
  --bzp-critical-accent: var(--bzp-ds-color-brand, var(--bzp-review-burgundy, #8a0644));
  --bzp-critical-surface: var(--bzp-ds-color-surface, #fff);
  --bzp-critical-subtle: var(--bzp-ds-color-surface-subtle, #f4f6fa);
  --bzp-critical-line: var(--bzp-ds-color-border-critical, #d8deed);
  --bzp-critical-focus: var(--bzp-ds-color-focus, #ff9bc8);
  --bzp-critical-header-height: var(--bzp-ds-layout-header-height, 84px);
  --bzp-critical-header-background: var(--bzp-ds-header-background, var(--bzp-critical-ink));
  overflow-wrap: break-word;
}

body.bzp-published.bzp-public-phase1-critical :where(.site, .site-content, #primary, #main, article, .entry-content) {
  min-width: 0;
}

body.bzp-published.bzp-public-phase1-critical :where(img, video, iframe, svg) {
  max-width: 100%;
}

body.bzp-published.bzp-public-phase1-critical :where(img, video, svg) {
  height: auto;
}

body.bzp-published.bzp-public-phase1-critical :where(.wp-block-columns, .wp-block-column, .wp-block-group, .wp-block-uagb-container, .uagb-container-inner-blocks-wrap) > * {
  min-width: 0;
}

/*
 * Historical UAGB `alignfull` wrappers add viewport gutters inside the
 * already full-bleed trust story. Neutralize that second expansion so the
 * shared trust template remains inside the viewport on narrow screens.
 */
body.bzp-published.bzp-public-phase1-critical.bzp-published-type-trust:not(.bzp-excluded-source-parity)
  .bzp-trust-story > .wp-block-uagb-container.alignfull {
  width: 100%;
  max-width: 100%;
  margin-inline: 0;
}

body.bzp-published.bzp-public-phase1-critical :where(.bzp-table-wrap, .wp-block-table) {
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-gutter: stable;
  -webkit-overflow-scrolling: touch;
}

body.bzp-published.bzp-public-phase1-critical :where(.bzp-table-wrap, .wp-block-table) table {
  margin-bottom: 0;
  width: 100%;
}

body.bzp-published.bzp-public-phase1-critical :where(
  .bzp-guide-flow,
  .bzp-incident-flow,
  .bzp-wave13-visual,
  .bzp-specialist-flow,
  .bzp-process-flow,
  .bzp-visual
) {
  max-width: 100%;
}

body.bzp-published.bzp-public-phase1-critical :where(input:not([type="checkbox"], [type="radio"], [type="submit"]), select, textarea) {
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  width: 100%;
}

body.bzp-published.bzp-public-phase1-critical :where(button:not(.ast-menu-toggle, .menu-toggle, .main-header-menu-toggle), input[type="button"], input[type="submit"], .wp-element-button, .wp-block-button__link) {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  min-height: 44px;
}

body.bzp-published.bzp-public-phase1-critical :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--bzp-critical-focus) !important;
  outline-offset: 3px;
}

body.bzp-published.bzp-public-phase1-critical :where(h1, h2, h3, p, li, a, button, label, summary) {
  text-wrap: pretty;
}

/* Solid navigation: predictable contrast and document flow on every draft type. */
body.bzp-published.bzp-public-phase1-critical #masthead,
body.bzp-published.bzp-public-phase1-critical #masthead :where(
  #ast-desktop-header,
  #ast-mobile-header,
  .ast-above-header-wrap,
  .ast-above-header-bar,
  .ast-main-header-wrap,
  .ast-primary-header-bar,
  .site-above-header-wrap,
  .site-primary-header-wrap,
  .ast-builder-grid-row-container,
  .ast-builder-grid-row
) {
  background-color: var(--bzp-critical-header-background) !important;
  background-image: none !important;
}

body.bzp-published.bzp-public-phase1-critical #masthead {
  box-shadow: 0 1px 0 rgb(255 255 255 / 12%);
  inset: auto !important;
  position: relative !important;
  width: 100% !important;
  z-index: 1000;
}

body.bzp-published.bzp-public-phase1-critical #masthead :where(
  a,
  .menu-link,
  .ast-custom-html,
  .ast-builder-html-element,
  .ast-header-html,
  .ast-menu-toggle,
  .mobile-menu-toggle-icon,
  .ast-icon
) {
  color: #fff !important;
  text-shadow: none !important;
}

body.bzp-published.bzp-public-phase1-critical #masthead :where(.ast-mobile-svg, .ast-arrow-svg) {
  fill: currentColor !important;
}

body.bzp-published.bzp-public-phase1-critical #masthead .sub-menu {
  background: var(--bzp-critical-surface) !important;
  border: 1px solid var(--bzp-critical-line) !important;
  box-shadow: 0 18px 42px rgb(16 26 54 / 20%) !important;
}

body.bzp-published.bzp-public-phase1-critical #masthead .sub-menu .menu-link {
  color: var(--bzp-critical-ink) !important;
  font-size: 14px !important;
  line-height: 1.4 !important;
}

body.bzp-published.bzp-public-phase1-critical #masthead .sub-menu .menu-item:hover > .menu-link,
body.bzp-published.bzp-public-phase1-critical #masthead .sub-menu .menu-item:focus-within > .menu-link,
body.bzp-published.bzp-public-phase1-critical #masthead .sub-menu .current-menu-item > .menu-link {
  background: #edf2f7 !important;
  color: var(--bzp-critical-accent) !important;
}

@media (min-width: 922px) {
  body.bzp-published.bzp-public-phase1-critical #masthead,
  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header {
    height: var(--bzp-critical-header-height);
    min-height: var(--bzp-critical-header-height);
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header {
    position: relative;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header :where(.ast-above-header-wrap, .ast-main-header-wrap) {
    height: var(--bzp-critical-header-height);
    inset: 0;
    position: absolute;
    width: 100%;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header :where(
    .ast-above-header-bar,
    .ast-primary-header-bar,
    .site-above-header-wrap,
    .site-primary-header-wrap,
    .site-above-header-wrap > .ast-builder-grid-row,
    .site-primary-header-wrap > .ast-builder-grid-row
  ) {
    border: 0 !important;
    height: var(--bzp-critical-header-height) !important;
    min-height: var(--bzp-critical-header-height) !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .ast-main-header-wrap {
    pointer-events: none;
    z-index: 2;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .ast-main-header-wrap :where(a, button),
  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header :where(.ast-builder-menu-1, .main-navigation, #ast-hf-menu-1, #ast-hf-menu-1 .menu-item, #ast-hf-menu-1 .sub-menu) {
    pointer-events: auto !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header :where(.site-above-header-wrap, .site-primary-header-wrap) {
    box-sizing: border-box;
    margin-inline: auto;
    max-width: 1440px;
    padding-inline: var(--bzp-ds-header-gutter, clamp(24px, 4vw, 64px));
    width: 100%;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-above-header-wrap,
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-primary-header-wrap {
    box-sizing: border-box !important;
    margin-inline: auto !important;
    max-width: var(--bzp-ds-layout-wide, 1440px) !important;
    padding-inline: var(--bzp-ds-header-gutter, clamp(24px, 4vw, 64px)) !important;
    width: 100% !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-above-header-wrap > .ast-builder-grid-row,
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-primary-header-wrap > .ast-builder-grid-row {
    margin-inline: 0 !important;
    max-width: none !important;
    grid-template-columns: var(--bzp-ds-header-logo-column, 250px) minmax(0, 1fr) var(--bzp-ds-header-action-column, 188px) !important;
    width: 100% !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header :where(.site-above-header-wrap, .site-primary-header-wrap) > .ast-builder-grid-row {
    grid-template-columns: var(--bzp-ds-header-logo-column, 250px) minmax(0, 1fr) var(--bzp-ds-header-action-column, 188px) !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .site-header-above-section-left {
    grid-column: 1;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .site-header-above-section-right {
    grid-column: 3;
    justify-content: flex-end;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .site-header-primary-section-center {
    grid-column: 2;
    justify-content: center;
    min-width: 0;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header :where(.site-header-primary-section-left, .site-header-primary-section-right) {
    display: none !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .site-logo-img img.custom-logo {
    height: auto;
    max-width: var(--bzp-ds-header-logo-width, 210px);
    width: var(--bzp-ds-header-logo-width, 210px);
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header #ast-hf-menu-1 {
    align-items: center;
    flex-wrap: nowrap !important;
    justify-content: center;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header #ast-hf-menu-1 > .menu-item {
    align-items: center;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header #ast-hf-menu-1 > .menu-item > .ast-menu-toggle {
    display: none !important;
    min-height: 0;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header #ast-hf-menu-1 > .menu-item > .menu-link {
    font-size: clamp(.82rem, .68rem + .16vw, .94rem) !important;
    min-height: 44px;
    padding-inline: clamp(7px, .75vw, 12px) !important;
    white-space: nowrap;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header #ast-hf-menu-1 > .menu-item > .sub-menu {
    margin-top: 0 !important;
    max-height: calc(100vh - var(--bzp-critical-header-height));
    overflow-y: auto;
    overscroll-behavior: contain;
    top: calc(100% - 2px) !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header #ast-hf-menu-1 .menu-item:hover > .sub-menu,
  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header #ast-hf-menu-1 .menu-item:focus-within > .sub-menu,
  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header #ast-hf-menu-1 .menu-item.focus > .sub-menu {
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: translateY(0) !important;
    visibility: visible !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header #ast-hf-menu-1 .sub-menu .menu-link {
    min-height: 42px;
    padding: 10px 16px !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .ast-header-html-1 .ast-builder-html-element > div {
    font-size: 0 !important;
    line-height: 1 !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .ast-header-html-1 :where(br, em, a[href="tel:+48224481233"], a[href^="mailto:"]) {
    display: none !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .ast-header-html-1 .ast-builder-html-element > div > strong {
    display: none;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .ast-header-html-1 a[href="tel:+48224007000"] {
    align-items: center;
    border: 1px solid rgb(255 255 255 / 34%);
    border-radius: 4px;
    display: inline-flex !important;
    flex-direction: column;
    font-size: .88rem !important;
    gap: 3px;
    justify-content: center;
    line-height: 1.05;
    min-height: 44px;
    min-width: var(--bzp-ds-header-action-width, 174px);
    padding: .42rem .8rem;
    white-space: nowrap;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .ast-header-html-1 a[href="tel:+48224007000"]::before {
    color: #f3b2cf;
    content: "Zadzwoń";
    display: block;
    font-size: .61rem;
    font-weight: 700;
    letter-spacing: .11em;
    line-height: 1;
    text-transform: uppercase;
  }

  /* One desktop header contract for every linked draft type. */
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-header-above-section-left {
    display: flex !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    opacity: 1 !important;
    padding: 0 !important;
    visibility: visible !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-logo-img img.custom-logo,
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-logo-img img.astra-logo-svg,
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-logo-img .custom-logo-link img {
    height: auto !important;
    max-width: var(--bzp-ds-header-logo-width, 210px) !important;
    width: var(--bzp-ds-header-logo-width, 210px) !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-logo-img :is(.transparent-custom-logo, .sticky-custom-logo) img {
    height: auto !important;
    max-width: var(--bzp-ds-header-logo-width, 210px) !important;
    width: var(--bzp-ds-header-logo-width, 210px) !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-header-primary-section-center {
    grid-column: 2 !important;
    justify-content: center !important;
    min-width: 0;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header #ast-hf-menu-1 {
    flex-wrap: nowrap !important;
    gap: 0 !important;
    justify-content: center !important;
    margin: 0 !important;
    max-width: var(--bzp-ds-header-navigation-width, 700px) !important;
    padding: 0 !important;
    width: min(100%, var(--bzp-ds-header-navigation-width, 700px)) !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header #ast-hf-menu-1 > .menu-item > .menu-link {
    font-size: 14px !important;
    padding-inline: 8px !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-above-header-wrap,
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-above-header-wrap :where(
      .ast-above-header-bar,
      .site-above-header-wrap,
      .ast-builder-grid-row-container,
      .ast-builder-grid-row
    ) {
    background-color: var(--bzp-critical-header-background) !important;
    background-image: none !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-main-header-wrap,
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-main-header-wrap :where(
      .ast-primary-header-bar,
      .site-primary-header-wrap,
      .ast-builder-grid-row-container,
      .ast-builder-grid-row
    ) {
    background-color: transparent !important;
    background-image: none !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-primary-header-bar:is(.ast-sticky-active, .ast-header-sticked, .ast-sticky-shrunk),
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-primary-header-bar:is(.ast-sticky-active, .ast-header-sticked, .ast-sticky-shrunk)
    :where(.site-primary-header-wrap, .ast-builder-grid-row-container, .ast-builder-grid-row) {
    background-color: var(--bzp-ds-header-sticky-background, rgb(47 74 95 / 95%)) !important;
    background-image: none !important;
    height: var(--bzp-critical-header-height) !important;
    min-height: var(--bzp-critical-header-height) !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-primary-header-bar:is(.ast-sticky-active, .ast-header-sticked, .ast-sticky-shrunk)
    .site-primary-header-wrap > .ast-builder-grid-row {
    grid-template-columns: 1fr auto 1fr !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-primary-header-bar:is(.ast-sticky-active, .ast-header-sticked, .ast-sticky-shrunk)
    :where(.site-header-primary-section-left, .site-header-primary-section-right) {
    display: flex !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-primary-header-bar:is(.ast-sticky-active, .ast-header-sticked, .ast-sticky-shrunk)
    .site-header-primary-section-center {
    grid-column: auto !important;
    justify-content: center !important;
  }

  /* The page/post scope adds enough specificity to neutralize old page-level header rules. */
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity):is(.bzp-published-page, .bzp-published-post)
    #masthead #ast-desktop-header :is(.site-above-header-wrap, .site-primary-header-wrap) {
    box-sizing: border-box !important;
    margin-inline: auto !important;
    max-width: var(--bzp-ds-layout-wide, 1440px) !important;
    padding-inline: var(--bzp-ds-header-gutter, clamp(24px, 4vw, 64px)) !important;
    width: 100% !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity):is(.bzp-published-page, .bzp-published-post)
    #masthead #ast-desktop-header :is(.site-above-header-wrap, .site-primary-header-wrap) > .ast-builder-grid-row {
    column-gap: var(--bzp-ds-header-column-gap, 20px) !important;
    grid-template-columns: var(--bzp-ds-header-logo-column, 250px) minmax(0, 1fr) var(--bzp-ds-header-action-column, 188px) !important;
    margin-inline: 0 !important;
    max-width: none !important;
    width: 100% !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity):is(.bzp-published-page, .bzp-published-post)
    #masthead #ast-desktop-header .site-logo-img img {
    height: auto !important;
    max-width: var(--bzp-ds-header-logo-width, 210px) !important;
    width: var(--bzp-ds-header-logo-width, 210px) !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity):is(.bzp-published-page, .bzp-published-post)
    #masthead #ast-desktop-header #ast-hf-menu-1 {
    margin-inline: auto !important;
    max-width: var(--bzp-ds-header-navigation-width, 700px) !important;
    width: min(100%, var(--bzp-ds-header-navigation-width, 700px)) !important;
  }
}

@media (min-width: 1181px) {
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-header-above-section-right {
    display: flex !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-primary-header-bar:is(.ast-sticky-active, .ast-header-sticked, .ast-sticky-shrunk),
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .ast-primary-header-bar:is(.ast-sticky-active, .ast-header-sticked, .ast-sticky-shrunk)
    :where(.site-primary-header-wrap, .ast-builder-grid-row-container, .ast-builder-grid-row) {
    height: var(--bzp-ds-header-sticky-height, 52px) !important;
    min-height: var(--bzp-ds-header-sticky-height, 52px) !important;
  }
}

@media (min-width: 922px) and (max-width: 1180px) {
  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .site-header-above-section-right {
    display: none !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header :where(.site-above-header-wrap, .site-primary-header-wrap) > .ast-builder-grid-row {
    grid-template-columns: var(--bzp-ds-header-compact-logo-column, 190px) minmax(0, 1fr) 0 !important;
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header .site-logo-img img.custom-logo {
    max-width: var(--bzp-ds-header-compact-logo-width, 176px);
    width: var(--bzp-ds-header-compact-logo-width, 176px);
  }

  body.bzp-published.bzp-public-phase1-critical #ast-desktop-header #ast-hf-menu-1 > .menu-item > .menu-link {
    font-size: 13px !important;
    padding-inline: 6px !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header #ast-hf-menu-1 > .menu-item > .menu-link {
    font-size: 13px !important;
    padding-inline: 6px !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-above-header-wrap > .ast-builder-grid-row,
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-primary-header-wrap > .ast-builder-grid-row {
    grid-template-columns: var(--bzp-ds-header-compact-logo-column, 190px) minmax(0, 1fr) 0 !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-logo-img img.custom-logo,
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-logo-img img.astra-logo-svg,
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-logo-img .custom-logo-link img {
    max-width: var(--bzp-ds-header-compact-logo-width, 176px) !important;
    width: var(--bzp-ds-header-compact-logo-width, 176px) !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity)
    #masthead #ast-desktop-header .site-logo-img :is(.transparent-custom-logo, .sticky-custom-logo) img {
    max-width: var(--bzp-ds-header-compact-logo-width, 176px) !important;
    width: var(--bzp-ds-header-compact-logo-width, 176px) !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity):is(.bzp-published-page, .bzp-published-post)
    #masthead #ast-desktop-header :is(.site-above-header-wrap, .site-primary-header-wrap) > .ast-builder-grid-row {
    grid-template-columns: var(--bzp-ds-header-compact-logo-column, 190px) minmax(0, 1fr) 0 !important;
  }

  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity):is(.bzp-published-page, .bzp-published-post)
    #masthead #ast-desktop-header .site-logo-img img {
    max-width: var(--bzp-ds-header-compact-logo-width, 176px) !important;
    width: var(--bzp-ds-header-compact-logo-width, 176px) !important;
  }
}

@media (max-width: 921.99px) {
  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header :where(
    .ast-mobile-header-content,
    .ast-builder-menu-mobile,
    .main-header-bar-navigation,
    .main-navigation,
    #ast-hf-mobile-menu
  ) {
    background: var(--bzp-critical-ink) !important;
  }

  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header #ast-hf-mobile-menu > .menu-item > :where(.menu-link, .ast-menu-toggle) {
    background: var(--bzp-critical-ink) !important;
    border-color: rgb(255 255 255 / 16%) !important;
    color: #fff !important;
    min-height: 48px;
  }

  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header #ast-hf-mobile-menu .sub-menu,
  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header #ast-hf-mobile-menu .sub-menu .menu-link,
  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header #ast-hf-mobile-menu .sub-menu .ast-menu-toggle {
    background: #182543 !important;
    border-color: rgb(255 255 255 / 13%) !important;
    color: #e8eef8 !important;
    font-size: 14px !important;
    line-height: 1.45 !important;
    min-height: 46px;
  }

  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header #ast-hf-mobile-menu .menu-item:hover > :where(.menu-link, .ast-menu-toggle),
  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header #ast-hf-mobile-menu .menu-item.focus > :where(.menu-link, .ast-menu-toggle),
  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header #ast-hf-mobile-menu .menu-item:focus-within > :where(.menu-link, .ast-menu-toggle) {
    background: #2f4a5f !important;
    color: #fff !important;
  }

  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header .site-primary-header-wrap > .ast-builder-grid-row {
    column-gap: 16px;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    min-height: 76px;
  }

  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header .site-logo-img img.custom-logo {
    height: auto;
    max-width: min(210px, 48vw);
  }
}

@media (max-width: 720px) {
  body.bzp-published.bzp-public-phase1-critical :where(.entry-content, .bzp-content, .bzp-original-content) {
    overflow-wrap: anywhere;
  }

  body.bzp-published.bzp-public-phase1-critical :where(h1, .entry-title) {
    font-size: clamp(2rem, 9.2vw, 2.8rem) !important;
    line-height: 1.08 !important;
  }

  body.bzp-published.bzp-public-phase1-critical :where(h2) {
    font-size: clamp(1.55rem, 7vw, 2.15rem) !important;
    line-height: 1.14 !important;
  }

  body.bzp-published.bzp-public-phase1-critical :where(h3) {
    font-size: clamp(1.18rem, 5.2vw, 1.55rem) !important;
    line-height: 1.22 !important;
  }

  body.bzp-published.bzp-public-phase1-critical :where(.wp-block-buttons, .bzp-offer-cover-actions) {
    align-items: stretch;
    width: 100%;
  }

  body.bzp-published.bzp-public-phase1-critical :where(.wp-block-buttons .wp-block-button, .wp-block-buttons .wp-block-button__link) {
    width: 100%;
  }

  body.bzp-published.bzp-public-phase1-critical :where(
    .bzp-guide-flow,
    .bzp-incident-flow,
    .bzp-wave13-visual,
    .bzp-specialist-flow,
    .bzp-process-flow,
    .bzp-visual
  ) {
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
  }

  body.bzp-published.bzp-public-phase1-critical :where(
    .bzp-guide-flow,
    .bzp-incident-flow,
    .bzp-wave13-visual,
    .bzp-specialist-flow,
    .bzp-process-flow,
    .bzp-visual
  ) > svg {
    height: auto;
    max-width: none;
  }

  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header .site-primary-header-wrap > .ast-builder-grid-row {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  body.bzp-published.bzp-public-phase1-critical #masthead #ast-mobile-header .site-header-primary-section-center {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.bzp-published.bzp-public-phase1-critical *,
  body.bzp-published.bzp-public-phase1-critical *::before,
  body.bzp-published.bzp-public-phase1-critical *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

@media (max-width: 720px) {
  /* The draft marker precedes the masthead in the DOM. Keep it in flow so it
     cannot cover the logo or the mobile navigation toggle. */
  body.bzp-published.bzp-public-phase1-critical:not(.bzp-excluded-source-parity) .bzp-review-badge {
    bottom: auto;
    box-shadow: none;
    display: flex;
    justify-content: center;
    margin: 0;
    padding: var(--bzp-ds-space-2xs) var(--bzp-ds-space-sm);
    position: relative;
    right: auto;
    top: auto;
    width: 100%;
  }
}

/* wpautop can insert an empty paragraph between the numbered marker and copy.
   Exclude it from the grid and reserve the readable column for the real copy. */
body.bzp-published.bzp-public-phase1-critical .bzp-english-wave16__section-heading > p:empty {
  display: none;
}

body.bzp-published.bzp-public-phase1-critical .bzp-english-wave16__section-heading > div {
  grid-column: 2;
  min-width: 0;
}
