/* Round 1: scoped additions; existing content and site-wide styles stay intact. */
.round1-metal .hero {
  position: relative;
  isolation: isolate;
  background: transparent;
}
.round1-metal .round1-hero-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
}
.round1-metal .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(0, 28, 64, .28);
  pointer-events: none;
}
/* Default-hidden prevents initial flashes; the observer is the only show gate. */
body.round1-metal, body.round1-resin, body.round1-oem {
  padding-bottom: 0;
}
.round1-metal .bar, .round1-resin .persistent-cta, .round1-oem-cta {
  display: none;
}
.round1-resin main {
  padding-top: 100px !important;
}
@media (max-width: 1024px) {
  .round1-resin main { padding-top: 60px !important; }
}
@media (max-width: 767px) {
  body.round1-sticky-visible {
    padding-bottom: calc(var(--round1-sticky-height, 92px) + env(safe-area-inset-bottom));
  }
  .round1-sticky[data-round1-visible="true"] {
    display: flex;
  }
  .round1-resin .persistent-cta, .round1-oem-cta {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 45;
    justify-content: center;
    padding: 10px 20px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #d5e0e8;
  }
  .round1-oem-cta a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 52px;
    background: #edae31;
    color: #16273a;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
  }
  .round1-oem-cta b { margin-left: 12px; }
}
/* Match the former header h1 anchor without changing logo content. */
#top-head .round1-logo {
  margin: 0;
  font: inherit;
}
#top-head .round1-logo .head-logo {
  width: 50px;
  height: 53px;
  background: url("/wp-content/themes/hubzou/common/img/logo.svg") no-repeat center / 100%;
  text-indent: -9999px;
  display: block;
}
@media (max-width: 1024px) {
  #top-head .round1-logo .head-logo {
    width: 36px;
    height: 38px;
  }
}

/* Invisible observation range; absolute positioning adds no layout height. */
.round1-trigger-range {
  position: absolute;
  top: 0;
  left: 0;
  width: 1px;
  pointer-events: none;
  opacity: 0;
}

/* V3: only measured orphan-line endings; allow internal wrapping when enlarged. */
.round1-wrap-phrase {
  display: inline-block;
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Keep the existing responsive OEM footer-logo ratio with intrinsic dimensions. */
.round1-oem #footer img.logo {
  height: auto;
}
