/**
 * Resident workspace hero hierarchy — StepCheck, Summary, Project Hub, Private Project Workspace.
 * Hero primary title must remain the largest text on the page (desktop and phone).
 */
body.bp-resident-workspace {
  --bp-rw-hero-primary: clamp(1.62rem, 3.45vw, 2.05rem);
  --bp-rw-hero-subline: clamp(1.05rem, 2.15vw, 1.28rem);
  --bp-rw-section-heading: clamp(1.12rem, 2.15vw, 1.38rem);
}

/* Guided-tool compact headers (Summary, Project Hub) */
body.bp-resident-workspace .bp-guided-workspace-header .hero-title,
body.bp-resident-workspace .bp-guided-workspace-header h1.hero-title {
  font-size: var(--bp-rw-hero-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

body.bp-resident-workspace .bp-guided-workspace-header .hero-subline {
  margin: 0.28rem 0 0;
  font-size: var(--bp-rw-hero-subline);
  font-weight: 650;
  line-height: 1.28;
  color: rgba(255, 255, 255, 0.9);
  max-width: 40rem;
}

body.bp-resident-workspace .bp-guided-workspace-header .hero-support {
  margin-top: 0.45rem;
  font-size: 0.92rem;
  font-weight: 400;
}

/* StepCheck workspace header */
body.bp-resident-workspace #stepcheck-hero .sc-workspace-title {
  font-size: var(--bp-rw-hero-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

body.bp-resident-workspace #stepcheck-hero .sc-workspace-purpose {
  font-size: var(--bp-rw-hero-subline);
  font-weight: 650;
  line-height: 1.28;
}

/* Private Project Workspace header */
body.bp-resident-workspace .bp-rpp-workspace-header h1:not(.bp-rpp-title-identity) {
  font-size: var(--bp-rw-hero-primary);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

body.bp-resident-workspace .bp-rpp-workspace-header h1.bp-rpp-title-identity {
  font-size: var(--bp-rw-hero-primary);
  letter-spacing: -0.03em;
  text-transform: none;
  font-weight: 800;
  color: #fff;
}

body.bp-resident-workspace .bp-rpp-workspace-header .bp-rpp-header-support {
  font-size: 0.92rem;
  font-weight: 400;
}

/* Section headings stay below hero primary on workspace pages */
body.bp-resident-workspace .bp-section-title,
body.bp-resident-workspace .bp-section-head > h2,
body.bp-resident-workspace .card > .bp-section-head h2,
body.bp-resident-workspace .card > h2.bp-section-title,
body.bp-resident-workspace .card h2.report-heading,
body.bp-resident-workspace .card h2 {
  font-size: var(--bp-rw-section-heading);
  letter-spacing: -0.02em;
  line-height: 1.18;
}

body.bp-resident-workspace .pf-section-heading {
  font-size: var(--bp-rw-section-heading);
}

body.bp-resident-workspace .bp-rpp-card h2 {
  font-size: var(--bp-rw-section-heading);
}

body.bp-resident-workspace .card h3,
body.bp-resident-workspace .bp-rpp-card h3 {
  font-size: clamp(1rem, 1.9vw, 1.12rem);
}

@media (max-width: 700px) {
  body.bp-resident-workspace {
    --bp-rw-hero-primary: clamp(1.52rem, 6.2vw, 1.82rem);
    --bp-rw-hero-subline: clamp(1rem, 4.5vw, 1.15rem);
    --bp-rw-section-heading: clamp(1.08rem, 4.8vw, 1.22rem);
  }
}
