/* V1.0.4 – persistent top brand + language bar.
   Existing card / contact interactions stay untouched. */

/* The V1.0.2 stylesheet had overridden the original sticky header with relative.
   Restore sticky positioning without converting the header to position:fixed:
   the header keeps its space in the document and content will not jump. */
body > header.wrap:not(.pecky-header) {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
  background: var(--paper, #f8faff) !important;
  isolation: isolate;
}
body > header.wrap:not(.pecky-header)::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: var(--paper, #f8faff);
  border-bottom: 1px solid rgba(41, 82, 227, .12);
  box-shadow: 0 4px 12px rgba(16, 24, 47, .045);
  pointer-events: none;
  z-index: -1;
}
body > header.wrap .nav--minimal {
  position: relative;
  z-index: 1;
}

/* Keep the same small brand / language header visible on detail pages too. */
body > header.detail-header,
body.pecky-page > header.pecky-header,
body > header.press-header,
body > header:has([data-brand-logo]):not(.wrap):not(.detail-header):not(.press-header) {
  position: sticky !important;
  top: 0 !important;
  z-index: 120 !important;
  background: #f8faff;
  isolation: isolate;
}
body > header.detail-header::before,
body.pecky-page > header.pecky-header::before,
body > header.press-header::before,
body > header:has([data-brand-logo]):not(.wrap):not(.detail-header):not(.press-header)::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: #f8faff;
  border-bottom: 1px solid rgba(41, 82, 227, .1);
  box-shadow: 0 4px 12px rgba(16, 24, 47, .035);
  pointer-events: none;
  z-index: -1;
}

@media (max-width: 760px) {
  body > header.wrap .nav--minimal {
    height: 64px;
    min-height: 64px;
  }
  body > header.wrap:not(.pecky-header)::before {
    box-shadow: 0 2px 8px rgba(16, 24, 47, .035);
  }
}
