/* Keep primary navigation visible, with compact horizontal rows on smaller screens. */
html[data-theme] body:has(> .site-header) main [id] {
  scroll-margin-top: calc(var(--wdg-header-height, 160px) + 16px) !important;
}

html[data-theme] body .site-header .container.nav-wrap {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px 16px !important;
  padding-block: 10px !important;
  min-height: 0 !important;
}

html[data-theme] body .site-header .container.nav-wrap > .brand {
  order: 0 !important;
  flex: 0 1 auto;
  min-width: 0;
}

html[data-theme] body .site-header .container.nav-wrap > :is(.theme-light-group-v212,.mobile-light-slot-v212) {
  order: 1 !important;
  flex: 0 0 auto;
  margin: 0 !important;
}

html[data-theme] body .site-header .container.nav-wrap > .menu-btn {
  display: none !important;
}

html[data-theme] body .site-header .container.nav-wrap > .site-nav {
  position: static !important;
  inset: auto !important;
  order: 2 !important;
  display: flex !important;
  flex: 0 1 auto;
  flex-direction: row !important;
  flex-wrap: wrap !important;
  align-items: stretch !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  width: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
  opacity: 1 !important;
  transform: none !important;
  border: 0 !important;
}

html[data-theme] body .site-header .container.nav-wrap > .site-nav > a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto;
  width: auto !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  padding: 9px 10px !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

@media (max-width: 1120px) {
  html[data-theme] body .site-header .container.nav-wrap > .site-nav {
    flex-basis: 100%;
    width: 100% !important;
    justify-content: space-between !important;
  }
}

@media (max-width: 760px) {
  html[data-theme] body .site-header .container.nav-wrap {
    gap: 8px 12px !important;
    padding-block: 8px !important;
  }
  html[data-theme] body .site-header .container.nav-wrap > .brand {
    font-size: 14px !important;
  }
  html[data-theme] body .site-header .container.nav-wrap > .site-nav > a {
    padding-inline: 7px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 560px) {
  html[data-theme] body .site-header .container.nav-wrap > .site-nav {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px !important;
  }
  html[data-theme] body .site-header .container.nav-wrap > .site-nav > .nav-cta {
    grid-column: span 2;
  }
}

/* v258: keep utilities available without giving them equal weight with the project action. */
html[data-theme] body .site-header .theme-light-group-v212 {
  opacity: .72;
  transform: scale(.94);
  transform-origin: right center;
  transition: opacity .18s ease;
}
html[data-theme] body .site-header .theme-light-group-v212:is(:hover,:focus-within) { opacity: 1; }
html[data-theme] body .header-discount-inner {
  min-height: 36px !important;
  padding-block: 4px !important;
  gap: 6px 10px !important;
}
html[data-theme] body .header-discount-inner > [data-header-coupon-copy] {
  flex: 0 1 auto !important;
  margin: 0 !important;
  font-size: .76rem !important;
  line-height: 1.25 !important;
  opacity: .78;
}
html[data-theme] body .header-discount-banner .discount-pulse {
  width: 6px !important;
  height: 6px !important;
  box-shadow: none !important;
  opacity: .58;
}
html[data-theme] body .header-coupon-form { gap: 5px !important; }
html[data-theme] body .header-coupon-form label { font-size: .62rem !important; }
html[data-theme] body .header-coupon-form input {
  width: 92px !important;
  min-height: 30px !important;
  padding: 4px 8px !important;
  font-size: .72rem !important;
}
html[data-theme] body .header-coupon-apply {
  min-height: 30px !important;
  padding: 5px 10px !important;
  font-size: .72rem !important;
}
html[data-theme] body .header-discount-inner > [data-coupon-message] { display: none !important; }
html[data-theme] body.coupon-active .header-discount-inner > [data-coupon-message],
html[data-theme] body .header-discount-inner > [data-coupon-message].is-error {
  display: block !important;
  max-width: min(250px, 42vw);
  margin: 0 !important;
  padding: 5px 8px !important;
  border-radius: 6px;
  background: rgba(255, 250, 242, .94) !important;
  color: #3f2852 !important;
  -webkit-text-fill-color: #3f2852 !important;
  font-size: .63rem !important;
  line-height: 1.25 !important;
  text-shadow: none !important;
}
html[data-theme] body .header-discount-inner > [data-coupon-message].is-error {
  border: 1px solid rgba(165, 48, 74, .42);
  color: #761d35 !important;
  -webkit-text-fill-color: #761d35 !important;
}
html[data-theme] body .sitewide-entry-discount { display: none !important; }

.sales-intent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.sales-proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 20px 0 0;
  padding: 1px;
  list-style: none;
  background: color-mix(in srgb, var(--studio-border, #8c7aa4) 74%, transparent);
  border: 1px solid color-mix(in srgb, var(--studio-border, #8c7aa4) 72%, transparent);
  border-radius: var(--studio-radius-small, 3px);
}
.sales-proof-strip > * {
  min-width: 0;
  padding: 12px 14px;
  background: color-mix(in srgb, var(--studio-surface, #fffaf2) 94%, transparent);
  color: var(--studio-ink, #24133c);
}
html:root body main .sales-proof-strip.sales-proof-strip.sales-proof-strip > li {
  background: rgba(255, 250, 242, .97) !important;
  color: #24133c !important;
  -webkit-text-fill-color: #24133c !important;
  text-shadow: none !important;
}
html:root body main .sales-proof-strip.sales-proof-strip.sales-proof-strip :is(a,strong,b) {
  color: #24133c !important;
  -webkit-text-fill-color: #24133c !important;
  text-shadow: none !important;
}
html:root body main .sales-proof-strip.sales-proof-strip.sales-proof-strip span {
  color: #4f405f !important;
  -webkit-text-fill-color: #4f405f !important;
  text-shadow: none !important;
}
.sales-proof-strip strong,
.sales-proof-strip b {
  display: block;
  color: var(--studio-ink, #24133c);
  font-size: .78rem;
  line-height: 1.25;
}
.sales-proof-strip span {
  display: block;
  margin-top: 3px;
  color: var(--studio-copy, #554861);
  font-size: .7rem;
  line-height: 1.4;
}
.sales-proof-strip a { text-decoration: none; }
.sales-proof-strip a:is(:hover,:focus-visible) strong {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.package-guidance-inline,
.package-live-proof {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  padding: 18px 20px;
  background: color-mix(in srgb, var(--studio-surface, #fffaf2) 90%, var(--studio-accent-soft, #dff2f1));
  border: 1px solid var(--studio-border, #c4b8cf);
  border-left: 4px solid var(--studio-accent, #167f86);
  border-radius: var(--studio-radius-small, 3px);
}
.package-guidance-inline p,
.package-live-proof p {
  margin: 0;
  color: var(--studio-copy, #554861);
}
.package-guidance-inline strong,
.package-live-proof strong { color: var(--studio-ink, #24133c); }

@media (max-width: 760px) {
  html[data-theme] body .site-header .theme-light-group-v212 {
    opacity: .86;
    transform: none;
  }
  html[data-theme] body .header-discount-inner > [data-header-coupon-copy],
  html[data-theme] body .header-discount-banner .discount-pulse,
  html[data-theme] body .header-coupon-form label { display: none !important; }
  html[data-theme] body .header-discount-inner { justify-content: flex-end !important; }
  html[data-theme] body .header-discount-inner > [data-coupon-message] { max-width: 100%; }
  .sales-proof-strip { grid-template-columns: 1fr; }
  .package-guidance-inline,
  .package-live-proof { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .sales-intent-actions > .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html[data-theme] body .site-header .theme-light-group-v212 { transition: none; }
}


