/* One light page-heading contract for the C-end workbench. Loaded after module themes. */
#workspace .console-hero,
#workspace.board-layout .console-hero,
#workspace.board-layout #creation > .console-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 180px;
  margin: 0 0 20px;
  padding: 28px 32px;
  overflow: hidden;
  border: 1px solid #cbdcf1 !important;
  border-radius: 14px;
  background-color: #edf5ff !important;
  background-image: linear-gradient(90deg, #edf5ff 0%, #edf5fff5 32%, #edf5ff38 70%), url('/console/assets/creation-studio-hero.png') !important;
  background-size: 100% 100%, auto 125% !important;
  background-position: center, right center !important;
  background-repeat: no-repeat !important;
  box-shadow: none;
  color: #223448 !important;
}

/* Earlier themes draw extra planets and gradients with pseudo-elements. */
#workspace .console-hero::before,
#workspace .console-hero::after {
  display: none !important;
}

#workspace .console-hero > div:first-child,
#workspace .console-hero .ct-hero-copy,
#workspace .console-hero .acb-hero-copy,
#workspace .console-hero .map-hero-copy {
  position: relative;
  z-index: 1;
  width: auto;
  max-width: min(62%, 760px);
  min-width: 0;
}

#workspace .console-hero :is(h1, h2),
#workspace.board-layout #creation > .console-hero h2,
#workspace #map-leads .console-hero h2 {
  margin: 0 !important;
  color: #223448 !important;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif !important;
  font-size: 44px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.025em !important;
  overflow-wrap: anywhere;
}

#workspace .console-hero :is(.eyebrow, .ct-eyebrow, .acb-eyebrow) {
  display: block !important;
  margin: 0 0 12px !important;
  color: #337bdf !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  line-height: 1.5 !important;
  letter-spacing: 0.22em !important;
  text-transform: uppercase;
}

#workspace .console-hero :is(.muted, .ct-hero-copy > p, .acb-hero-copy > p:last-child, .map-hero-copy > p:last-child, .geo-workspace-description) {
  margin: 10px 0 0 !important;
  max-width: 680px;
  color: #56728f !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.6 !important;
  letter-spacing: 0 !important;
}

#workspace .console-hero > button {
  position: relative;
  z-index: 2;
  flex-shrink: 0;
}
#workspace .console-hero > button.secondary::after {
  content: none;
}

/* The common heading is replaced only where a module has its own first-page hero. */
#workspace .content:has(> #harness:not([hidden])) > .page-heading,
#workspace[data-active-page="sales"] .content > .page-heading {
  display: flex !important;
}

#workspace .content:has(> #creation:not([hidden])) > .page-heading,
#workspace .content:has(> #knowledge:not([hidden])) > .page-heading,
#workspace .content:has(> #acquisition:not([hidden])) > .page-heading,
#workspace .content:has(> #geo:not([hidden])) > .page-heading,
#workspace .content:has(> #map-leads:not([hidden])) > .page-heading {
  display: none !important;
}

#workspace #knowledge > .console-hero {
  width: 100%;
}

#workspace #geo .geo-workspace-hero.console-hero {
  display: block;
  text-align: left;
}
#workspace #geo .geo-workspace-hero.console-hero > :is(.eyebrow, h2, .geo-workspace-description) {
  position: relative;
  z-index: 1;
  max-width: min(62%, 760px);
}

/* GEO monitoring is a tab inside GEO, so its heading stays at section scale. */
#workspace #geo .cb-hero {
  min-height: 0;
  padding: 18px 20px;
  border-radius: 10px;
  background: #f5f8fc !important;
}
#workspace #geo .cb-hero h2 {
  font-size: 22px !important;
}

@media (max-width: 1000px) {
  #workspace .console-hero,
  #workspace.board-layout .console-hero,
  #workspace.board-layout #creation > .console-hero {
    background-size: 100% 100%, auto 110% !important;
  }
  #workspace .console-hero > div:first-child,
  #workspace .console-hero .ct-hero-copy,
  #workspace .console-hero .acb-hero-copy,
  #workspace .console-hero .map-hero-copy {
    max-width: 70%;
  }
}

@media (max-width: 720px) {
  #workspace .console-hero,
  #workspace.board-layout .console-hero,
  #workspace.board-layout #creation > .console-hero {
    align-items: flex-start;
    flex-wrap: wrap;
    min-height: 176px;
    padding: 22px 20px;
    gap: 16px;
    background-image: linear-gradient(90deg, #edf5ff 0%, #edf5ffeb 62%, #edf5ff9e 100%), url('/console/assets/creation-studio-hero.png') !important;
    background-size: 100% 100%, auto 100% !important;
    background-position: center, 70% center !important;
  }
  #workspace .console-hero > div:first-child,
  #workspace .console-hero .ct-hero-copy,
  #workspace .console-hero .acb-hero-copy,
  #workspace .console-hero .map-hero-copy {
    max-width: 100%;
  }
  #workspace #geo .geo-workspace-hero.console-hero > :is(.eyebrow, h2, .geo-workspace-description) {
    max-width: 100%;
  }
  #workspace .console-hero :is(h1, h2),
  #workspace.board-layout #creation > .console-hero h2,
  #workspace #map-leads .console-hero h2 {
    font-size: 28px !important;
  }
  #workspace .console-hero :is(.muted, .ct-hero-copy > p, .acb-hero-copy > p:last-child, .map-hero-copy > p:last-child, .geo-workspace-description) {
    font-size: 13px !important;
  }
  #workspace .console-hero > button {
    position: relative;
    right: auto;
    bottom: auto;
    align-self: flex-start;
    font-size: 13px;
  }
  #workspace #creation > .console-hero {
    padding-bottom: 104px;
  }
  #workspace .console-hero .studio-hero-motto,
  #workspace .console-hero .acb-handwriting,
  #workspace .console-hero .map-hero-motto {
    display: none;
  }
}
