/* ============================================
   STRATEGYIQ™ COMPLETE FIXES
   ============================================ */

/* ============================================
   FIX 1: BASE STRUCTURE & BODY
   ============================================ */

body {
  padding-top: 120px;
  overflow-x: hidden;
  background: #0a0a0a;
}

.scroll-container {
  position: relative;
  z-index: 1;
  background: #0a0a0a;
  isolation: isolate;
}

/* ============================================
   FIX 2: HERO SECTION SPACING & TYPOGRAPHY
   ============================================ */

.hero-section {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 140px 20px 120px;
  position: relative;
  overflow: hidden;
  margin-bottom: 60px;
  background: #0a0a0a;
  z-index: 1 !important; /* Ensure hero sits below following content */
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: transparent;
  z-index: 20;
}

.hero-section .section-content {
  max-width: 900px;
  margin: 0 auto;
}

.hero-section h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  line-height: 1.15;
  margin: 0.5em 0 0.8em;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 2;
  contain: layout style;
}

.hero-section p {
  max-width: 700px;
  margin: 1.5em auto 2em;
  line-height: 1.6;
  position: relative;
  z-index: 2;
}

.hero-section .tag {
  position: relative;
  z-index: 2;
  display: inline-block;
  margin-bottom: 1rem;
}

.hero-section .relative {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 100%;
}

/* ============================================
   FIX 3: METRICS SECTION SPACING & ISOLATION
   ============================================ */

.metrics-section {
  padding: 120px 20px 100px;
  margin-top: 0;
  position: relative;
  z-index: 10;
  background: #0a0a0a;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
  will-change: transform;
  clear: both;
  overflow: hidden;
}

.metrics-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 2px;
  background: linear-gradient(90deg, 
    rgba(255, 107, 107, 0.3), 
    rgba(78, 205, 196, 0.3)
  );
  border-radius: 2px;
}

.metrics-section h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  margin-bottom: 0.8em;
  margin-top: 0;
  position: relative;
  z-index: 15;
  contain: layout style;
}

.metrics-section > .section-content {
  position: relative;
  z-index: 11;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

/* ============================================
   FIX 4: ALL OTHER SECTIONS
   ============================================ */

.methodology-section,
.comparison-section,
.cta-section {
  background: #0a0a0a;
  padding: 100px 20px;
  z-index: 10;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

.scroll-section {
  position: relative;
  z-index: 5; /* Above hero */
  background: #0a0a0a;
  isolation: isolate;
  clear: both;
}

.scroll-section + .scroll-section {
  margin-top: 0;
  padding-top: 100px;
}

.scroll-section h1,
.scroll-section h2,
.scroll-section h3 {
  contain: layout style;
}

/* ============================================
   FIX 5: SECTION CONTENT CONSTRAINTS
   ============================================ */

.section-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 10;
}

.section-content > h2 {
  position: relative;
  z-index: 15;
  margin-top: 0;
  padding-top: 0;
}

.text-gradient-coral-teal,
.text-gradient-teal-coral {
  position: relative;
  display: inline-block;
  z-index: inherit;
}

/* ============================================
   FIX 6: HEADER NAVIGATION (HUB CONSISTENCY)
   ============================================ */

.hub-header {
  position: fixed;
  top: 40px;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 10, 10, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  z-index: 10;
}

.hub-nav-logo-img {
  height: 40px;
  width: auto;
  transition: transform 0.3s ease;
}

.header-logo:hover .hub-nav-logo-img {
  transform: scale(1.05);
}

.header-nav {
  display: flex;
  gap: 0.5rem;
  align-items: center;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  border-radius: 100px;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  background: transparent;
  border: 1px solid transparent;
}

.nav-item:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.nav-item.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(255, 107, 107, 0.15), rgba(78, 205, 196, 0.15));
  border-color: rgba(255, 107, 107, 0.3);
}

.nav-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  stroke: currentColor;
  transition: transform 0.2s ease;
}
.nav-item:hover .nav-icon {
  transform: scale(1.15);
}

/* Legacy image icon rules retained for backward compatibility (no longer used) */
.nav-icon-img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav-item:hover .nav-icon-img,
.nav-item.active .nav-icon-img {
  opacity: 1;
}

.nav-label {
  font-family: 'Inter', sans-serif;
  white-space: nowrap;
}

/* Hide close button by default (desktop) */
.header-nav .nav-close { display: none; }

/* ============================================
   FIX 7: MOBILE MENU
   ============================================ */

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 10;
}

.mobile-menu-toggle span {
  width: 24px;
  height: 2px;
  background: #ffffff;
  transition: all 0.3s ease;
  border-radius: 2px;
}

/* ============================================
   FIX 8: ADMIN ACCESS BUTTON POSITIONING
   ============================================ */

.admin-access-button {
  position: fixed;
  top: 140px;
  right: 2rem;
  z-index: 999;
}

/* ============================================
   FIX 9: SANDBOX INDICATOR
   ============================================ */

.sandbox-indicator {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(135deg, #ff6b6b, #4ecdc4);
  color: white;
  text-align: center;
  padding: 8px;
  font-weight: 600;
  font-size: 14px;
  z-index: 10001;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

/* ============================================
   FIX 10: RESPONSIVE / MOBILE
   ============================================ */

@media (max-width: 768px) {
  .header-nav {
    display: flex; /* override inline hidden state */
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    width: 82vw;
    max-width: 420px;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 1.25rem 1rem 2rem;
    gap: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    transform: translateX(100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.36s ease, opacity 0.3s ease, visibility 0s linear 0.36s;
    z-index: 10000;
  }

  .header-nav.mobile-active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.36s ease, opacity 0.3s ease;
  }

  /* Close button styling inside drawer */
  .header-nav .nav-close {
    display: inline-flex;
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #ffffff;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
  }
  .header-nav .nav-close:hover,
  .header-nav .nav-close:active {
    background: rgba(255,255,255,0.06);
  }

  .nav-item {
    width: 100%;
    justify-content: flex-start;
    padding: 1rem 1.25rem;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
  }

  .mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
  }

  .mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
  }

  /* Reduced motion accessibility */
  @media (prefers-reduced-motion: reduce) {
    .header-nav { transition: none; }
    .header-nav.mobile-active { transition: none; }
  }
}

/* Prevent background scroll when menu open */
body.menu-open { overflow: hidden; touch-action: none; }

@media (max-width: 1024px) {
  .hero-section {
    padding: 140px 20px 80px;
    min-height: auto;
    margin-bottom: 40px;
  }

  .hero-section h1 {
    font-size: clamp(2rem, 10vw, 3rem);
    margin: 0.5em 0 0.6em;
  }

  .metrics-section {
    padding: 80px 20px;
  }

  .metrics-section h2 {
    margin-top: 0;
  }

  .scroll-section + .scroll-section {
    padding-top: 60px;
  }
}

/* Tablet specific fixes */
@media (min-width: 769px) and (max-width: 1024px) {
  .hero-section {
    padding-bottom: 100px;
    margin-bottom: 40px;
  }
  
  .metrics-section {
    padding-top: 100px;
  }
}

/* ============================================
   PRODUCTION STRATEGYIQ MARKUP ADJUSTMENTS
   ============================================ */

/* Keep header pinned at top to match Hub */
.hub-header { top: 0; }

/* Apply spacing/isolation to metrics container in production markup */
.viewport-section.metrics-viewport section.container {
  padding: 120px 20px 100px;
  position: relative;
  z-index: 10;
  background: #0a0a0a;
  isolation: isolate;
  transform: translate3d(0, 0, 0);
  -webkit-transform: translate3d(0, 0, 0);
}

/* Align existing admin button positioning */
.admin-toggle { top: 140px; }

/* Chess Queen Icon - Fixed Position & Size */
/* Chess Queen Icon - Fixed Position & Floating Animation */
.hero-icon-wrapper {
  position: fixed !important;
  right: 100px !important;
  top: 50% !important;
  margin-top: -300px !important;
  width: 600px !important;
  height: 600px !important;
  opacity: 0.08 !important;
  transform: none !important;
  z-index: 1 !important;
  pointer-events: none;
}
.hero-icon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: brightness(1.1) saturate(1.0) drop-shadow(0 0 40px rgba(249, 111, 110, 0.25));
  mix-blend-mode: screen;
  animation: float-hero-icon 15s ease-in-out infinite;
}
@keyframes float-hero-icon {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-15px) rotate(2deg);
  }
}
/* Hero Content Must Be Above Icon */
.hero-content {
  position: relative;
  z-index: 100 !important;
}
/* Responsive */
@media (max-width: 1024px) {
  .hero-icon-wrapper {
    right: 50px !important;
    width: 400px !important;
    height: 400px !important;
    opacity: 0.06 !important;
  }
}
@media (max-width: 767px) {
  .hero-icon-wrapper {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-icon {
    animation: none;
  }
}

/* ============================================
   FIX 11: SCROLL-AWARE STATE (PAST HERO)
   ============================================ */

/* When the page has scrolled past the hero, make sure the hero can't overlap
   subsequent sections and disable any transforms that would create a new
   stacking context. */
body.past-hero .hero-section {
  z-index: 0 !important;
  transform: none !important; /* disable parallax transforms to avoid stacking context */
}

/* Further soften the background icon once we are past the hero */
body.past-hero .hero-icon-wrapper { opacity: 0.04 !important; }

/* Sections should contain their children to prevent any float or positioning
   artifacts from leaking outside and overlapping the next section. */
#publicMode .section {
  clear: both;
  overflow: hidden;
}

/* A tiny, invisible element we place after the hero to detect when the
   document is scrolled past it. */
.hero-sentinel { position: relative; width: 100%; height: 1px; }

/* VS circle for comparison section */
.comparison-wrapper {
  position: relative;
  margin-top: 50px;
}
.comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 80px;
  align-items: center;
  position: relative;
}
.vs-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: #0a0a0b;
  border: 3px solid var(--coral);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  font-weight: 900;
  color: #fff;
  box-shadow: 0 0 60px rgba(249,111,110,.6),
              0 0 100px rgba(249,111,110,.3) inset;
  z-index: 10;
}
@media (max-width: 1024px) {
  .vs-circle { display: none; }
}

/* Drawer alignment with Advisory styles */
@media (max-width: 1024px) {
  /* Hidden state: left-side off-canvas, advisory-like */
  .header-nav {
    /* Left-side panel, below header */
    position: fixed;
    top: 90px; /* mobile/tablet top offset below header */
    left: 0;
    right: auto;
    height: calc(100vh - 90px);
    width: 90%;
    max-width: 400px;

    /* Advisory visual style */
    background: rgba(20, 20, 20, 0.95);
    border: 1px solid rgba(249, 111, 110, 0.30);
    border-right: none;
    border-radius: 0 24px 24px 0; /* rounded on right side */
    padding: 32px;
    overflow-y: auto;
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);

    /* Slide-in animation */
    transform: translateX(-100%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: 10001;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease, visibility 0s linear 0.4s;

    /* Stack items like advisory */
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
    justify-content: flex-start;
  }

  /* Open state */
  .header-nav.mobile-active {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
  }

  /* Close button in drawer */
  .header-nav .nav-close {
    width: 40px;
    height: 40px;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: rgba(255,255,255,0.7);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto; /* align to right */
    transition: all 0.3s ease;
  }
  .header-nav .nav-close:hover { background: rgba(249, 111, 110, 0.2); color: #f96f6e; }

  /* Drawer links styled like advisory */
  .header-nav .nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin-bottom: 8px;
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04);
  }
  .header-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    transform: translateX(4px);
  }
  .header-nav .nav-item.active {
    background: linear-gradient(135deg, #f96f6e, #2ed3c6);
    color: #ffffff;
    box-shadow: 0 8px 25px rgba(249, 111, 110, 0.3);
    border-color: rgba(255,255,255,0.2);
  }
  .header-nav .nav-icon { width: 18px; height: 18px; flex-shrink: 0; }
  .header-nav .nav-label { font-size: 14px; font-weight: 500; }

  /* Integrated scrollbar like advisory */
  .header-nav {
    scrollbar-width: thin;
    scrollbar-color: rgba(249, 111, 110, 0.6) transparent;
  }
  .header-nav::-webkit-scrollbar { width: 8px; background: transparent; }
  .header-nav::-webkit-scrollbar-track { background: transparent; margin: 8px 0; }
  .header-nav::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(249, 111, 110, 0.4) 0%, rgba(46, 211, 198, 0.4) 100%);
    border-radius: 4px;
    border: 2px solid transparent;
    background-clip: content-box;
    transition: all 0.3s ease;
  }
  .header-nav::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(249, 111, 110, 0.7) 0%, rgba(46, 211, 198, 0.7) 100%);
    background-clip: content-box;
  }
}

/* Mobile fine-tuning (≤768px) */
@media (max-width: 768px) {
  .header-nav {
    top: 90px; /* below mobile header (≈70px) plus spacing */
    height: calc(100vh - 90px);
    width: 95%;
    max-width: 320px;
    border-radius: 0 20px 20px 0;
    padding: 24px;
  }
}

/* Backdrop overlay like advisory while menu open */
body.menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 10000; /* behind drawer (10001) */
  /* Enable click-outside-to-close by allowing the overlay to receive clicks */
  pointer-events: auto;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .header-nav { transition: none; }
  .header-nav.mobile-active { transition: none; }
}

/* Ensure drawer sits above overlay and is visible when menu open */
@media (max-width: 1024px) {
  .menu-open .header-nav,
  .menu-open .header-nav.mobile-active {
    z-index: 10002 !important; /* higher than body.menu-open::before (10000) */
  }

  /* Guarantee drawer is rendered across tablet/mobile breakpoints */
  .hub-header .header-nav { display: flex !important; }
}

/* Embed shell for frente.html content */
#frente-shell {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
}

/* ============================================
   TABLET DRAWER REVAMP (match IMCServices color scheme)
   - Center aligned options, smooth animation
   - No blues; use ink/teal/coral palette
   ============================================ */
@media (min-width: 769px) and (max-width: 1024px) {
  /* Base closed state (centered modal panel, hidden by default) */
  .header-nav {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.98);
    transform-origin: center;
    width: min(640px, 92vw);
    max-height: 80vh;
    background: rgba(8, 8, 10, 0.92); /* Services overlay tone */
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    backdrop-filter: blur(10px) saturate(120%);
    -webkit-backdrop-filter: blur(10px) saturate(120%);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
    padding: 56px 24px 24px; /* extra top padding to clear the X */
    display: flex;
    flex-direction: column;
    align-items: center; /* center items horizontally */
    justify-content: center; /* center options vertically */
    gap: 12px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    -ms-overflow-style: none;
    scrollbar-width: thin;
    transition: opacity 280ms ease, transform 280ms ease, visibility 0s linear 280ms;
  }

  .header-nav.mobile-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 280ms ease, transform 280ms ease;
  }

  /* Close (X) button - high contrast, accessible */
  .header-nav .nav-close {
    display: inline-flex !important;
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background 180ms ease, color 180ms ease, transform 180ms ease, border-color 180ms ease;
    z-index: 1;
  }
  .header-nav .nav-close:hover {
    background: rgba(255, 255, 255, 0.10);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
  }
  .header-nav .nav-close:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
  }

  /* Option items - match Services scheme, centered list */
  .header-nav .nav-item {
    width: 100%;
    max-width: 520px;
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--ink-dim);
    font-size: 1.05rem;
    text-decoration: none;
    transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
  }
  .header-nav .nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--teal);
    border-color: rgba(255, 255, 255, 0.16);
    transform: translateY(-2px);
  }
  .header-nav .nav-item:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
  }
  .header-nav .nav-item.active {
    color: var(--ink);
    border-color: rgba(46, 211, 198, 0.5);
    background: rgba(46, 211, 198, 0.10);
  }

  /* Icon sizing and rendering (crisp, larger) */
  .header-nav .nav-icon,
  .header-nav .nav-icon-img {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    -ms-interpolation-mode: nearest-neighbor;
  }
  .header-nav .nav-label { font-weight: 600; letter-spacing: 0.01em; }

  /* Smooth scroll and momentum for the list */
  .header-nav { -webkit-overflow-scrolling: touch; }

  /* Motion reduction */
  @media (prefers-reduced-motion: reduce) {
    .header-nav { transition: none; }
    .header-nav.mobile-active { transition: none; }
  }
}

/* Minor mobile polish (≤768px): keep left drawer, but refine spacing/padding */
@media (max-width: 768px) {
  .header-nav .nav-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 10px;
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.85);
  }
  .header-nav { padding-top: 56px; }
}
#frenteFrame {
  width: 100%;
  min-height: calc(100vh - 80px);
  display: block;
  border: 0;
  background: transparent;
}

/* Remove overly aggressive hiding of modal and admin toggle.
   Public Mode content and Admin modal/button should remain available. */
/* Intentionally left blank to avoid hiding #publicMode, #adminModal, and .admin-toggle */

/* Ensure Admin modal sits above any overlay/backdrop and drawer */
#adminModal {
  z-index: 10003 !important; /* above body.menu-open::before (10000) and drawer (10002) */
}

/* Make sure the Admin toggle button is visible by default */
.admin-toggle {
  display: inline-flex !important;
}
