/* Contextual marquees use the large original Bornwiz visual language. */
.bw-site-marquee,
.bw-site-marquee * { box-sizing:border-box; }

.bw-site-marquee.bw-phm-wrap {
  position:relative!important; z-index:2; display:flex!important; width:100%!important;
  max-width:none!important; margin:0!important; padding:clamp(16px,2.3vw,25px) 0!important;
  border-top:1px solid rgba(255,255,255,.07)!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
  color:#fff; background:#111!important; overflow:hidden!important;
}
.bw-site-marquee .bw-phm-track {
  display:flex!important; width:max-content!important; max-width:none!important;
  animation:bw-site-phm-run 25s linear infinite!important; will-change:transform;
}
.bw-site-marquee.bw-phm-wrap--reverse .bw-phm-track { animation-direction:reverse!important; }
.bw-site-marquee:hover .bw-phm-track { animation-play-state:paused!important; }
.bw-site-marquee.is-visible-motion .bw-phm-track { will-change:transform; }
.bw-site-marquee.is-offscreen .bw-phm-track { animation-play-state:paused!important; will-change:auto; }
.bw-site-marquee .bw-phm-inner {
  display:flex!important; flex:0 0 auto!important; align-items:center!important;
  width:auto!important; padding-right:clamp(20px,3vw,40px)!important;
}
.bw-site-marquee .bw-phm-inner span {
  display:inline-flex!important; align-items:center!important; gap:clamp(14px,2vw,30px)!important;
  margin:0 clamp(16px,2.5vw,42px) 0 0!important; padding:0!important;
  color:#fff!important; font:820 clamp(24px,3.2vw,42px)/1 system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif!important;
  letter-spacing:-.045em!important; text-transform:uppercase!important; white-space:nowrap!important;
}
.bw-site-marquee .bw-phm-inner span.bw-phm-outline {
  color:transparent!important; -webkit-text-stroke:1px rgba(255,255,255,.42)!important;
}
.bw-site-marquee .bw-phm-star {
  display:block!important; width:clamp(16px,1.8vw,23px)!important; height:clamp(16px,1.8vw,23px)!important;
  flex:0 0 auto!important; color:#2f82ff!important;
}
.bw-site-marquee .bw-phm-outline .bw-phm-star { color:rgba(255,255,255,.36)!important; }

@keyframes bw-site-phm-run {
  from { transform:translate3d(0,0,0); }
  to { transform:translate3d(-50%,0,0); }
}

.bw-footer-google-proof {
  display:inline-grid!important; min-height:52px; grid-template-columns:20px auto auto; align-items:center; gap:6px 10px;
  color:#cfd5de!important; font-size:.78rem; font-weight:680; line-height:1.35; text-decoration:none!important;
}
.bw-footer-google-proof>img { display:block!important; width:20px!important; height:20px!important; object-fit:contain; }
.bw-footer-google-proof__copy { display:grid; gap:2px; }
.bw-footer-google-proof__stars { color:#f4b400; font-size:.62rem; letter-spacing:.04em; line-height:1; }
.bw-footer-google-proof__verified { color:#9fa8b5; font-size:.62rem; font-weight:600; }
.bw-footer-google-proof>span:last-child { color:#79aef9; }

/* Divi prints the featured image and an English date before the editorial
 * header. Keep the semantic title first, then reuse the real image below it. */
.single-post #main-content .et_pb_post>.et_post_meta_wrapper:first-child { display:none!important; }
.bornwiz-article-featured {
  width:min(1180px,calc(100% - 32px)); margin:34px auto 48px!important;
  border:1px solid rgba(255,255,255,.12); border-radius:24px; background:#11151b; overflow:hidden;
}
.bornwiz-article-featured img { display:block!important; width:100%!important; max-height:620px; object-fit:cover; }

/* The early mobile wordmark is emitted at wp_body_open. It must never appear
 * on desktop, where the regular site navigation owns the brand. */
.bw-mob-notch--early { display:none!important; }

/* The Divi mobile brand lives in the footer document. It must nevertheless
 * remain a viewport control on every route, including editorial templates. */
@media (max-width:980px) {
  /* The homepage bundle is compiled inside its single Divi Code module. Keep
   * the public hero clear even immediately after a plugin-only update, before
   * any optional WordPress re-adoption of that compiled module. */
  html body .bw-studio .bw-hero {
    padding-top:calc(82px + env(safe-area-inset-top,0px))!important;
  }
  html body .bw-mob-notch,
  html body:has(.bornwiz-editorial) .bw-mob-notch,
  html body:has(.bornwiz-signal) .bw-mob-notch {
    position:fixed!important; top:calc(14px + env(safe-area-inset-top,0px))!important; right:auto!important; bottom:auto!important;
    left:calc(14px + env(safe-area-inset-left,0px))!important; z-index:2147482000!important; margin:0!important;
    transform:none!important; opacity:1!important; visibility:visible!important; animation:none!important; transition:none!important;
  }
  html body .bw-mob-notch--early {
    display:flex!important; width:auto!important; height:auto!important; min-width:0!important; min-height:0!important;
    align-items:center!important; justify-content:center!important; padding:9px 28px!important;
    border:1px solid rgba(255,255,255,.09)!important; border-radius:50px!important;
    background:rgba(14,14,14,.88)!important; box-shadow:0 8px 24px rgba(0,0,0,.4)!important;
    -webkit-backdrop-filter:blur(25px) saturate(1.5)!important; backdrop-filter:blur(25px) saturate(1.5)!important;
    text-decoration:none!important; overflow:visible!important;
  }
  html body .et-l--footer .bw-mob-notch { display:none!important; }
  html body .bw-mob-notch > img,
  html body:has(.bornwiz-editorial) .bw-mob-notch > img,
  html body:has(.bornwiz-signal) .bw-mob-notch > img {
    display:block!important; width:auto!important; height:22px!important; aspect-ratio:350/80;
    transform:none!important; opacity:1!important; visibility:visible!important;
    animation:none!important; transition:none!important;
  }
  .bw-site-marquee .bw-phm-track { animation-duration:18s!important; }
  .bw-site-marquee .bw-phm-inner span { gap:14px!important; margin-right:18px!important; font-size:23px!important; }
  .bw-site-marquee .bw-phm-star { width:15px!important; height:15px!important; }
  html body:not(.home) #page-container { padding-bottom:calc(92px + env(safe-area-inset-bottom,0px))!important; }
  .bornwiz-article-featured { width:calc(100% - 32px); margin:24px auto 38px!important; border-radius:16px; }
}

@media (max-width:782px) {
  html body.admin-bar .bw-mob-notch,
  html body.admin-bar:has(.bornwiz-editorial) .bw-mob-notch,
  html body.admin-bar:has(.bornwiz-signal) .bw-mob-notch { top:2px!important; }
}

@media (min-width:783px) and (max-width:980px) {
  html body.admin-bar .bw-mob-notch,
  html body.admin-bar:has(.bornwiz-editorial) .bw-mob-notch,
  html body.admin-bar:has(.bornwiz-signal) .bw-mob-notch {
    top:calc(46px + env(safe-area-inset-top,0px))!important;
  }
}

@media (prefers-reduced-motion:reduce) {
  .bw-site-marquee .bw-phm-track { width:100%!important; animation:none!important; }
  .bw-site-marquee .bw-phm-inner { width:100%!important; flex-wrap:wrap; justify-content:center; gap:10px 0; padding-inline:14px!important; }
  .bw-site-marquee .bw-phm-inner:nth-child(2) { display:none!important; }
}
