.site-header {
  background: var(--header);
  border-bottom: 1px solid #eee;
  position: sticky;
  top: 0;
  z-index: 50;
  transform: translateY(0);
  transition: transform 140ms ease-out;
  will-change: transform;
}
.site-header.is-hidden-at-tests {
  transform: translateY(-100%);
}
.header-inner {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: inline-flex;
  align-items: center;
  color: #000;
  text-decoration: none;
}
.brand-logo {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}
.brand-mark-slot {
  width: 22px;
  height: 22px;
  margin-right: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.brand-mark-image { width: 22px; height: 22px; object-fit: contain; }
.brand-word { font-size: 26px; font-weight: 800; line-height: 1; }
.header-title {
  font-weight: 700;
  color: #000;
  text-align: right;
  font-size: 16px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.page-shell {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 24px 40px;
}
.page-shell.narrow,
.page-shell.full { max-width: 1100px; }
.stepper-wrap { margin-bottom: 32px; }
.report-stepper { margin-bottom: 32px; }
.section-heading {
  font-size: 22px;
  font-weight: 800;
  margin: 20px 0 12px;
  color: var(--text-primary);
  line-height: 1.35;
}
.section-heading sup {
  font-size: .35em;
  vertical-align: super;
  position: static;
  line-height: 0;
}
.report-footer {
  display: block;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.report-copyright {
  margin: 20px auto 40px;
  max-width: 960px;
  color: #9ca3af;
  font-size: 11px;
  text-align: center;
}

/* Reference splash behavior. The source asset remains a configurable 500x202 PNG. */
.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: #103d4b;
  background: #fff;
  visibility: visible;
  opacity: 1;
  transition: opacity 400ms cubic-bezier(.4,0,.2,1), visibility 400ms cubic-bezier(.4,0,.2,1);
  pointer-events: none;
}
.loading-screen.is-hidden { visibility: hidden; opacity: 0; }
.loading-screen-inner { display: flex; flex-direction: column; align-items: center; }
.loading-logo { width: 140px; max-width: 140px; height: auto; display: block; object-fit: contain; }
.loading-dots {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 56px;
  margin-top: 40px;
}
.loading-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  background: #103d4b;
  border-radius: 100%;
  animation: loading-bouncedelay 1s infinite ease-in-out both;
}
.loading-dot:nth-child(1) { animation-delay: -.32s; }
.loading-dot:nth-child(2) { animation-delay: -.16s; }
@keyframes loading-bouncedelay {
  0%,80%,100% { transform: scale(0); }
  40% { transform: scale(1); }
}
body.is-loading { overflow: hidden; }
body.is-loading .site-header,
body.is-loading #app { visibility: hidden; }

@media (max-width: 520px) {
  /* Mobile behavior: the verification banner stays fixed until the numeric
     MyBest Overall Score reaches the header, then slides away. */
  .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    transform: translateY(0);
    transition: transform 140ms ease-out;
    will-change: transform;
  }
  #app {
    padding-top: 53px;
  }
  .header-inner { padding: 10px 12px; }
  .brand-logo { height: 32px; width: auto; }
  .header-title { font-size: 12px; letter-spacing: .03em; }
  /* Match the reference viewport at the very end of the report: the source
     uses 12px app-shell padding on all sides at phone widths. Keeping 32px
     at the bottom made the footer sit too high and changed the final fold. */
  .page-shell { padding: 12px; }
  .stepper-wrap, .report-stepper { margin-bottom: 32px; }
}
