#intra-fit-command picture.contents {
  display: contents;
}

/* Hero PC/mobile <picture>: layout-transparent so absolute inset + object-cover still fill. */
section.relative.mt-0.min-h-\[calc\(100svh_-_var\(--navbar-height\)\)\] picture.contents {
  display: contents;
}

/* Hero subtitle + Command CTA — Inter ExtraBold (match top nav) */
p[data-cms^='home.hero.slide'][data-cms$='.subtitle'],
button[data-cms^='home.hero.slide'][data-cms$='.commandBtn'],
button[data-cms^='home.hero.slide'][data-cms$='.commandBtn'] span {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* Hide hero CMS copy until home.js applies live banners (avoids stale bake flash). */
html.if-hero-pending [data-cms^='home.hero.slide'] {
  visibility: hidden;
}
html.if-hero-ready [data-cms^='home.hero.slide'] {
  visibility: visible;
}

/*
 * Short viewports: when the hero copy stack is taller than the overflow-hidden
 * hero, fall back to start alignment instead of clipping. No plate / rounded bar
 * — Command 说明 keeps the original border-l + text-shadow treatment.
 */
section.relative.mt-0.min-h-\[calc\(100svh_-_var\(--navbar-height\)\)\]
  > .pointer-events-none.absolute.inset-0.z-10.flex {
  align-items: safe center;
  box-sizing: border-box;
  padding-bottom: 3.25rem; /* keep stack clear of carousel dots */
}

/* Carousel crossfade + ensure motion placeholders become visible when JS runs */
#intra-fit-command [aria-label="Command slide dots"] button[role="tab"] {
  font-size: 0;
  line-height: 0;
  color: transparent;
  overflow: hidden;
}

#intra-fit-command .relative.z-10.isolate .absolute.inset-0[style*="opacity"] {
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

section.relative.mt-0.min-h-\[calc\(100svh_-_var\(--navbar-height\)\)\] .absolute.inset-0.z-0 .absolute.inset-0[style*="opacity"] {
  transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.if-command-expanded:not(.hidden) {
  animation: if-fade-in 0.35s ease-out;
}

@keyframes if-fade-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Apply for Access modal — explicit z-index (Tailwind z-[500] not in prerender CSS) */
#if-apply-access-dialog.if-dialog-root {
  position: fixed;
  inset: 0;
  z-index: 500;
  isolation: isolate;
}

#if-apply-access-dialog.if-dialog-root:not(.hidden) {
  display: block;
}

#if-apply-access-dialog .if-dialog-backdrop {
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.6);
}

#if-apply-access-dialog .if-dialog-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  overflow-y: auto;
  align-items: flex-start;
  justify-content: center;
  padding: 1rem;
}

@media (min-width: 768px) {
  #if-apply-access-dialog .if-dialog-wrap {
    align-items: center;
    padding: 1.5rem;
  }
}

#if-apply-access-dialog .if-dialog-panel {
  position: relative;
  z-index: 1;
  width: calc(100% - 2rem);
  max-width: 56rem;
  max-height: min(95vh, 960px);
  margin: 2rem 0;
  overflow-y: auto;
  border-radius: 0.5rem;
  border: 1px solid #e4e4e7;
  background: #fafafa;
  padding: 1.5rem;
  box-shadow: 0 25px 50px -12px rgb(0 0 0 / 0.25);
}

@media (min-width: 640px) {
  #if-apply-access-dialog .if-dialog-panel {
    padding: 2rem;
  }
}

@media (min-width: 768px) {
  #if-apply-access-dialog .if-dialog-panel {
    padding: 2.5rem;
  }
}

/* Standards block — intro column top-aligns with left eyebrow */
@media (min-width: 1024px) {
  [aria-labelledby="home-standards-heading"] .flex.flex-1.flex-col.items-start.gap-8 {
    padding-top: 0 !important;
  }
}
