/* One shared hero treatment for signed-out, tenant-branded, and signed-in EAP pages. */
html:has(body.eap-site-page) {
  scrollbar-gutter: stable;
}

body.eap-site-page .portal-header {
  min-height: 96px !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-frame {
  align-items: stretch !important;
  aspect-ratio: 3 / 1 !important;
  background: var(--brand-sage, #f0f5ef) !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr) !important;
  height: auto !important;
  left: 50% !important;
  margin: 0 0 0 0 !important;
  max-width: 1340px !important;
  min-height: 0 !important;
  overflow: hidden !important;
  padding: 0 !important;
  position: relative !important;
  transform: translateX(-50%) !important;
  width: min(100%, 1340px) !important;
}

/* Resource detail pages retain an inset content rail after the hero. Let only
   the shared hero cross that rail so it keeps the same viewport-wide frame. */
body.eap-site-page #eap-main-content :is(.eap-content-detail, .eap-video-detail) > .eap-shared-hero-frame {
  width: min(calc(100% + 96px), 1340px) !important;
}

/* Registration and authenticated portal pages use an inner content gutter.
   Let a shared hero break through it, matching the other first-row hero pages. */
body.eap-site-page.eap-refined-portal #eap-main-content.portal-main:has(> .eap-shared-hero-frame) {
  padding-top: 0 !important;
}

body.eap-site-page.eap-refined-portal #eap-main-content.portal-main > .eap-shared-hero-frame {
  max-width: 1340px !important;
  width: min(calc(100% + var(--portal-main-gutter, 0px) + var(--portal-main-gutter, 0px)), 1340px) !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-image,
body.eap-site-page #eap-main-content .eap-shared-hero-overlay {
  inset: 0 !important;
  pointer-events: none !important;
  position: absolute !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-image {
  z-index: 0 !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-image img {
  display: block !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  width: 100% !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-frame--contact-portrait .eap-shared-hero-image img {
  object-position: 70% 12% !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-overlay {
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,.72) 58%, rgba(255,255,255,.18) 100%) !important;
  z-index: 1 !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-copy {
  align-self: stretch !important;
  box-sizing: border-box !important;
  color: var(--brand-ink, #10231c) !important;
  display: flex !important;
  flex-direction: column !important;
  grid-column: 1 !important;
  grid-row: 1 !important;
  justify-content: space-between !important;
  max-width: 100% !important;
  min-height: 0 !important;
  padding: clamp(30px, 4vw, 56px) !important;
  position: relative !important;
  width: 100% !important;
  z-index: 2 !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-breadcrumbs,
body.eap-site-page #eap-main-content .eap-shared-hero-eyebrow {
  align-items: center !important;
  color: var(--tenant-primary, var(--brand-primary)) !important;
  display: flex !important;
  font-family: var(--eap-page-body-family, var(--brand-body)) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  gap: 8px !important;
  letter-spacing: .08em !important;
  line-height: 1.3 !important;
  margin: 0 0 12px !important;
  text-transform: uppercase !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-breadcrumbs a,
body.eap-site-page #eap-main-content .eap-shared-hero-breadcrumbs span {
  color: inherit !important;
  font: inherit !important;
  text-decoration: none !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-breadcrumb-separator {
  opacity: .55 !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-copy h1 {
  color: var(--tenant-primary, var(--brand-deep)) !important;
  font-family: var(--eap-page-heading-family, var(--brand-heading)) !important;
  font-size: 56px !important;
  font-weight: 600 !important;
  letter-spacing: -.025em !important;
  line-height: 1.04 !important;
  margin: 0 0 12px !important;
  max-width: 18ch !important;
  text-wrap: balance !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-details > p {
  color: var(--eap-muted, var(--brand-muted, #53675d)) !important;
  font-family: var(--eap-page-body-family, var(--brand-body)) !important;
  font-size: 17px !important;
  font-weight: 400 !important;
  letter-spacing: 0 !important;
  line-height: 1.5 !important;
  margin: 0 !important;
  max-width: 52ch !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-details > p + p {
  margin-top: 8px !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-details > p.eap-shared-hero-supporting-label {
  align-items: center !important;
  align-self: flex-start !important;
  background: rgba(255, 255, 255, .82) !important;
  border: 1px solid color-mix(in srgb, var(--tenant-primary, var(--brand-primary)) 24%, white) !important;
  border-radius: 999px !important;
  color: var(--tenant-primary, var(--brand-primary)) !important;
  display: inline-flex !important;
  font-family: var(--eap-page-body-family, var(--brand-body)) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  gap: 8px !important;
  margin: 14px 0 0 !important;
  padding: 7px 12px !important;
  width: fit-content !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-video {
  align-self: center !important;
  aspect-ratio: 16 / 9 !important;
  border-radius: 12px !important;
  box-shadow: 0 24px 56px rgba(7, 31, 24, .22) !important;
  grid-column: 2 !important;
  grid-row: 1 !important;
  isolation: isolate !important;
  justify-self: center !important;
  max-width: 92% !important;
  overflow: hidden !important;
  position: relative !important;
  width: min(100%, 560px) !important;
  z-index: 2 !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-video-player,
body.eap-site-page #eap-main-content .eap-shared-hero-video-cover {
  border: 0 !important;
  height: 100% !important;
  inset: 0 !important;
  position: absolute !important;
  width: 100% !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-video-player {
  background: #071f18 !important;
  object-fit: cover !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-video-cover {
  align-items: center !important;
  background: linear-gradient(180deg, rgba(7,31,24,.08) 34%, rgba(7,31,24,.83) 100%) !important;
  color: #fff !important;
  cursor: pointer !important;
  display: flex !important;
  justify-content: center !important;
  padding: 0 !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-video-play-icon {
  align-items: center !important;
  background: #fff !important;
  border-radius: 50% !important;
  display: flex !important;
  height: 72px !important;
  justify-content: center !important;
  width: 72px !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-video-play-icon::after {
  border-bottom: 10px solid transparent !important;
  border-left: 16px solid var(--tenant-primary, var(--brand-primary)) !important;
  border-top: 10px solid transparent !important;
  content: "" !important;
  margin-left: 4px !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-video-caption {
  align-self: flex-end !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  inset: auto 18px 16px !important;
  position: absolute !important;
  text-align: left !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-video-caption strong {
  color: inherit !important;
  font: 700 16px/1.3 var(--eap-page-body-family, var(--brand-body)) !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-video-caption small {
  color: inherit !important;
  font: 400 13px/1.4 var(--eap-page-body-family, var(--brand-body)) !important;
}

body.eap-site-page #eap-main-content .eap-shared-hero-video.is-playing .eap-shared-hero-video-cover {
  display: none !important;
}

body.eap-site-page #eap-main-content .eap-home-video-mobile-slot {
  display: none !important;
}

body.eap-site-page #eap-main-content .eap-hero-action-band {
  box-sizing: border-box !important;
  margin: 0 auto !important;
  max-width: 1340px !important;
  padding: 28px 24px !important;
  width: 100% !important;
}

body.eap-site-page #eap-main-content .eap-contact-action-band {
  display: flex !important;
  justify-content: center !important;
}

body.eap-site-page #eap-main-content .eap-contact-action-band .eap-contact-cards--hero {
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  margin: 0 auto !important;
  max-width: 1000px !important;
  width: 100% !important;
}

body.eap-site-page #eap-main-content .eap-contact-action-band .eap-contact-action {
  align-items: center !important;
  background: var(--brand-surface, #fffdf7) !important;
  border: 1px solid color-mix(in srgb, var(--tenant-primary, var(--brand-primary)) 36%, white) !important;
  border-radius: 8px !important;
  box-sizing: border-box !important;
  color: var(--tenant-primary, var(--brand-primary)) !important;
  display: flex !important;
  gap: 10px !important;
  justify-content: center !important;
  min-height: 64px !important;
  min-width: 0 !important;
  padding: 10px 14px !important;
  text-align: center !important;
  text-decoration: none !important;
  width: 100% !important;
}

body.eap-site-page #eap-main-content .eap-contact-action-band .eap-contact-action > span:last-child {
  align-items: center !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

body.eap-site-page #eap-main-content .eap-contact-action-band .eap-contact-action :is(strong, small) {
  color: inherit !important;
  font-family: var(--eap-page-body-family, var(--brand-body)) !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere !important;
}

body.eap-site-page #eap-main-content .eap-contact-action-band .eap-contact-action strong {
  font-size: 14px !important;
  font-weight: 700 !important;
}

body.eap-site-page #eap-main-content .eap-contact-action-band .eap-contact-action small {
  font-size: 12px !important;
}

body.eap-site-page #eap-main-content .eap-contact-action-band .eap-contact-action .button-icon {
  flex: 0 0 24px !important;
  height: 24px !important;
  width: 24px !important;
}

/* Signed-in resource routes share the home hero's flush, full-width frame.
   Categories are nested in a canvas and article pages in a detail wrapper, so
   reset the portal inset for any page whose first content includes that hero. */
body.eap-site-page.eap-refined-portal #eap-main-content.portal-main:has(.eap-shared-hero-frame) {
  padding-top: 0 !important;
}

body.eap-site-page.eap-refined-portal #eap-main-content :is(
  .portal-home > .eap-shared-hero-frame,
  .eap-dashboard-canvas > .eap-shared-hero-frame,
  .eap-category-content-page > .eap-shared-hero-frame,
  .eap-content-detail > .eap-shared-hero-frame,
  .eap-video-detail > .eap-shared-hero-frame) {
  width: min(calc(100% + var(--portal-main-gutter, 48px) + var(--portal-main-gutter, 48px)), 1340px) !important;
}

/* Keep the tenant landing action prominent across the full page rail. */
body.eap-site-page.eap-refined-portal #eap-main-content .portal-home-action-band {
  background: linear-gradient(110deg, color-mix(in srgb, var(--portal-brand) 7%, white), #fff 72%) !important;
  border-bottom: 1px solid var(--portal-line) !important;
  margin-left: calc(0px - var(--portal-main-gutter, 48px)) !important;
  padding: clamp(20px, 3vw, 32px) clamp(20px, 4vw, 54px) !important;
  width: calc(100% + var(--portal-main-gutter, 48px) + var(--portal-main-gutter, 48px)) !important;
}

body.eap-site-page.eap-refined-portal #eap-main-content .portal-home-action-band .portal-booking-card {
  background: linear-gradient(125deg, #fff, color-mix(in srgb, var(--portal-brand) 4%, white)) !important;
  border: 1px solid color-mix(in srgb, var(--portal-brand) 24%, white) !important;
  border-left: 4px solid var(--portal-brand) !important;
  border-radius: 16px !important;
  box-shadow: 0 14px 32px color-mix(in srgb, var(--portal-brand) 10%, transparent) !important;
  max-width: none !important;
  padding: clamp(22px, 3vw, 34px) !important;
  width: 100% !important;
}

body.eap-site-page.eap-refined-portal #eap-main-content .portal-home-action-band .portal-booking-card h2 {
  color: var(--portal-ink) !important;
  font-family: var(--tenant-heading-font, var(--brand-heading)) !important;
  font-size: clamp(21px, 2vw, 27px) !important;
}

body.eap-site-page.eap-refined-portal #eap-main-content .portal-home-action-band .portal-booking-card p {
  color: var(--portal-muted) !important;
  font-size: 15px !important;
}

body.eap-site-page.eap-refined-portal #eap-main-content .portal-home-action-band .portal-booking-card-icon {
  background: color-mix(in srgb, var(--portal-brand) 13%, white) !important;
  height: 48px !important;
  width: 48px !important;
}

body.eap-site-page.eap-refined-portal #eap-main-content .portal-home-action-band .portal-support-actions {
  gap: 12px 20px !important;
  grid-template-columns: minmax(220px, 1fr) minmax(180px, auto) !important;
}

body.eap-site-page.eap-refined-portal.eap-about-page #eap-main-content .eap-sales-card-section {
  background: #fff !important;
  margin: 0 !important;
  padding: clamp(30px, 5vw, 64px) clamp(20px, 4vw, 54px) !important;
}

body.eap-site-page.eap-refined-portal.eap-about-page #eap-main-content .eap-sales-card-section .eap-section-title-row {
  border-bottom: 1px solid var(--portal-line) !important;
  margin: 0 auto 24px !important;
  max-width: 1340px !important;
  padding: 0 0 20px !important;
}

body.eap-site-page.eap-refined-portal.eap-about-page #eap-main-content .eap-sales-card-section .eap-tenant-section-heading {
  color: var(--portal-ink) !important;
  font-family: var(--tenant-heading-font, var(--brand-heading)) !important;
  font-size: clamp(28px, 3vw, 38px) !important;
  line-height: 1.15 !important;
  margin: 0 !important;
}

body.eap-site-page.eap-refined-portal.eap-about-page #eap-main-content .eap-sales-card-grid {
  display: grid !important;
  gap: 18px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  margin: 0 auto !important;
  max-width: 1340px !important;
}

body.eap-site-page.eap-refined-portal.eap-about-page #eap-main-content .eap-sales-card-grid .eap-sales-card {
  background: linear-gradient(145deg, #fff, color-mix(in srgb, var(--portal-tint) 42%, white)) !important;
  border: 1px solid var(--portal-line) !important;
  border-radius: 16px !important;
  box-shadow: 0 10px 26px rgba(7, 31, 24, .055) !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: 46px minmax(0, 1fr) !important;
  min-height: 0 !important;
  padding: clamp(20px, 2.5vw, 30px) !important;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}

body.eap-site-page.eap-refined-portal.eap-about-page #eap-main-content .eap-sales-card-grid .eap-sales-card:hover {
  border-color: color-mix(in srgb, var(--portal-brand) 48%, white) !important;
  box-shadow: 0 16px 32px color-mix(in srgb, var(--portal-brand) 11%, transparent) !important;
  transform: translateY(-2px);
}

body.eap-site-page.eap-refined-portal.eap-about-page #eap-main-content .eap-sales-card-grid .eap-sales-card .about-value-icon {
  align-items: center;
  background: color-mix(in srgb, var(--portal-brand) 11%, white);
  border-radius: 50%;
  display: inline-flex;
  grid-row: span 2;
  height: 46px;
  justify-content: center;
  margin: 0 !important;
  width: 46px;
}

body.eap-site-page.eap-refined-portal.eap-about-page #eap-main-content .eap-sales-card-grid .eap-sales-card > strong {
  align-self: center;
  color: var(--portal-ink) !important;
  font-size: 18px !important;
  line-height: 1.3 !important;
}

body.eap-site-page.eap-refined-portal.eap-about-page #eap-main-content .eap-sales-card-grid .eap-sales-card > p {
  color: var(--portal-muted) !important;
  font-size: 14px !important;
  grid-column: 2;
  line-height: 1.6 !important;
  margin: 0 !important;
}

@media (max-width: 760px) {
  body.eap-site-page.eap-refined-portal #eap-main-content .portal-home-action-band .portal-support-actions {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  body.eap-site-page.eap-refined-portal.eap-about-page #eap-main-content .eap-sales-card-grid {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

body.eap-site-page #eap-main-content .eap-register-form-section {
  box-sizing: border-box !important;
  margin: 0 auto !important;
  max-width: 1340px !important;
  padding: clamp(28px, 4vw, 56px) 24px !important;
  width: 100% !important;
}

body.eap-site-page #eap-main-content .eap-register-form-section .eap-login-panel {
  align-self: stretch !important;
  background: var(--brand-surface, #fffdf7) !important;
  border: 1px solid color-mix(in srgb, var(--tenant-primary, var(--brand-primary)) 14%, white) !important;
  border-radius: 12px !important;
  box-shadow: 0 16px 40px rgba(7, 31, 24, .08) !important;
  margin: 0 auto !important;
  max-width: 560px !important;
  padding: clamp(22px, 3vw, 36px) !important;
  width: 100% !important;
}

body.eap-site-page #eap-main-content .eap-hero-action-band > .eap-marketing-actions {
  align-items: stretch !important;
  display: grid !important;
  gap: 12px !important;
  grid-template-columns: repeat(auto-fit, minmax(180px, 240px)) !important;
  justify-content: center !important;
  margin: 0 auto !important;
  max-width: 100% !important;
  width: 100% !important;
}

body.eap-site-page #eap-main-content .eap-hero-action-band .action-button {
  align-items: center !important;
  box-sizing: border-box !important;
  display: inline-flex !important;
  font-family: var(--eap-page-body-family, var(--brand-body)) !important;
  grid-column: auto !important;
  justify-content: center !important;
  margin: 0 !important;
  min-height: 48px !important;
  min-width: 0 !important;
  padding: 12px 16px !important;
  text-align: center !important;
  width: 100% !important;
}

@media (min-width: 720px) and (max-width: 1079px) {
  body.eap-site-page .portal-header {
    min-height: 84px !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-frame {
    aspect-ratio: 3 / 2 !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-copy {
    padding: 30px 32px !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-copy h1 {
    font-size: 40px !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-details > p {
    font-size: 16px !important;
  }

  body.eap-site-page #eap-main-content .eap-hero-action-band > .eap-marketing-actions {
    grid-template-columns: repeat(2, minmax(0, 240px)) !important;
  }
}

@media (max-width: 719px) {
  body.eap-site-page #eap-main-content :is(.eap-content-detail, .eap-video-detail) > .eap-shared-hero-frame {
    width: min(calc(100% + 36px), 1340px) !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-frame {
    aspect-ratio: auto !important;
    height: auto !important;
    max-width: none !important;
    min-height: 352px !important;
    width: 100% !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-copy {
    gap: 24px !important;
    grid-column: 1 / -1 !important;
    padding: 18px 20px 22px !important;
    width: 100% !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-copy h1 {
    font-size: 32px !important;
    line-height: 1.04 !important;
    margin-bottom: 8px !important;
    max-width: 15ch !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-details > p {
    font-size: 15px !important;
    line-height: 1.45 !important;
    max-width: 38ch !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-breadcrumbs,
  body.eap-site-page #eap-main-content .eap-shared-hero-eyebrow {
    font-size: 11px !important;
    margin-bottom: 8px !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-frame--contact-portrait .eap-shared-hero-image img {
    object-position: var(--eap-tenant-mobile-hero-position, 70% 12%) !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-image img {
    object-position: var(--eap-tenant-mobile-hero-position, 50% 50%) !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-copy {
    justify-content: space-between !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-overlay {
    background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,.96) 34%, rgba(255,255,255,.72) 58%, rgba(255,255,255,.18) 100%) !important;
  }

  body.eap-site-page #eap-main-content .eap-shared-hero-video {
    display: none !important;
  }

  body.eap-site-page #eap-main-content .eap-home-video-mobile-slot {
    display: block !important;
    margin: 0 auto 24px !important;
    max-width: 1340px !important;
    padding: 0 20px !important;
  }

  body.eap-site-page #eap-main-content .eap-home-video-mobile-slot .eap-shared-hero-video {
    display: block !important;
    margin: 0 auto !important;
    max-width: 560px !important;
    width: 100% !important;
  }

  body.eap-site-page #eap-main-content .eap-hero-action-band {
    padding: 22px 20px !important;
  }

  body.eap-site-page #eap-main-content .eap-contact-action-band {
    padding: 22px 20px !important;
  }

  body.eap-site-page #eap-main-content .eap-contact-action-band .eap-contact-cards--hero {
    grid-template-columns: minmax(0, 1fr) !important;
    width: min(100%, 420px) !important;
  }

  body.eap-site-page #eap-main-content .eap-register-form-section {
    padding: 24px 20px !important;
  }

  body.eap-site-page #eap-main-content .eap-hero-action-band > .eap-marketing-actions {
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100% !important;
  }
}
