/* Header preview shell only: banner + device toolbar + viewport frame.
   Actual header markup/styles come from site.css + nd-header.css (same as _Layout). */

:root {
  --hp-orange: #f97316;
  --hp-orange-dark: #ea580c;
}

body.hp-mvc-page {
  min-height: 100vh;
  margin: 0;
  margin-bottom: 0;
}

/* Standalone pages (e.g. Expired) without layout-body */
body.hp-mvc-page:not(.layout-body) {
  background: #f1f5f9;
}

body.hp-mvc-page.layout-body.page-preview {
  background-color: #fff;
}

.hp-mvc-stage {
  padding: 16px;
}
.hp-mvc-viewport {
  width: 100%;
  margin: 0 auto;
  transition: max-width 0.2s ease;
}

.hp-mvc-viewport.is-mobile {
  max-width: 390px;
  /* Always show a full mobile screen height in preview */
  height: 844px; /* iPhone 13/14 logical height */
  max-height: calc(100vh - 32px); /* keep within browser window */
  background: #fff;
}

/* Force mobile header UI inside preview (media queries don't react to container width). */
.hp-mvc-viewport.is-mobile .nd-header-container .nav-links {
  display: none !important;
}

.hp-mvc-viewport.is-mobile .nd-header-container .btn-biz,
.hp-mvc-viewport.is-mobile .nd-header-container .top-bar {
  display: none !important;
}

.hp-mvc-viewport.is-mobile .nd-header-container .nav-actions--cta-label-mobile .btn-biz {
  display: inline-flex !important;
  padding: 6px 12px;
  font-size: 13px;
  border-radius: 16px;
}

.hp-mvc-viewport.is-mobile .nd-header-container .hamburger {
  display: block !important;
}

.hp-mvc-viewport.is-mobile .nd-header-container .user-icon {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
}

.hp-mvc-viewport.is-mobile .nd-header-container .logo-img {
  height: 40px;
}

/* Constrain the mobile hamburger overlay to the preview frame (avoid fixed overlay on whole page) */
.hp-mvc-viewport.is-mobile .hp-mvc-frame {
  position: relative;
  overflow: hidden;
  height: 100%;
}

.hp-mvc-viewport.is-mobile .nd-header-container .mobile-overlay {
  position: absolute;
  top: 0;
  left: auto;
  /* keep the original slide-in behavior (nd-header.css uses right:-100% -> 0) */
  right: -100%;
  width: 100%;
  height: 100%;
  z-index: 50; /* above header inside frame */
}

.hp-mvc-viewport.is-mobile .nd-header-container .mobile-overlay.open {
  right: 0;
}

/* In mobile preview: no card shadow / rounded container */
.hp-mvc-viewport.is-mobile .hp-mvc-frame {
  box-shadow: none;
  border-radius: 0;
}

.hp-mvc-frame {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.08);
  overflow: visible;
}

.hp-mvc-expired {
  max-width: 480px;
  margin: 48px auto;
  padding: 32px;
  background: #fff;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
}

.hp-mvc-expired h1 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}
