/*
 * "For PE firms & Operating Partners" page hero
 * Scoped under .dlh-pef so theme styles can't leak in or out.
 */

.dlh-pef {
  --dlh-pef-ink: #1a1a1a;
  --dlh-pef-secondary: #545454;
  --dlh-pef-muted: #838383;
  --dlh-pef-faint: #9d9d9d;
  --dlh-pef-green: #16a34a;
  --dlh-pef-orange: #ea580c;

  font-family: "Inter", system-ui, sans-serif;
  isolation: isolate;   /* own stacking context: nothing inside can rise above the theme's sticky nav */
  color: #000;
  background: linear-gradient(180deg, #fff 0%, #f5f5f9 53.846%, #f5f5f9 100%);
  padding: 60px 16px 62px;
  overflow: hidden;
}

.dlh-pef *,
.dlh-pef *::before,
.dlh-pef *::after { box-sizing: border-box; margin: 0; padding: 0; }
.dlh-pef p,
.dlh-pef h1,
.dlh-pef h2,
.dlh-pef li,
.dlh-pef figcaption { font-family: inherit; color: inherit; text-transform: none; }
.dlh-pef ul { list-style: none; }
.dlh-pef img { display: block; max-width: none; border: 0; box-shadow: none; border-radius: 0; }

.dlh-pef__inner {
  max-width: 992px;
  margin: 0 auto;
  display: flex; flex-direction: column; gap: 40px;
}

/* Eyebrow */
.dlh-pef-eyebrow { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.dlh-pef-eyebrow img { width: 32px; height: 32px; }
.dlh-pef .dlh-pef-eyebrow__label {
  font-size: 12px; font-weight: 600; line-height: 22px;
  letter-spacing: 4px; text-transform: uppercase;
}

/* Copy + chart */
.dlh-pef__main { display: flex; align-items: flex-start; gap: 24px; }
.dlh-pef__copy {
  flex: 0 0 473px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
}
.dlh-pef .dlh-pef__title {
  font-size: 56px; font-weight: 400; line-height: 62px; letter-spacing: -1.28px;
}
.dlh-pef .dlh-pef__lead { font-size: 24px; line-height: normal; letter-spacing: -0.18px; }
.dlh-pef .dlh-pef__text { font-size: 17px; line-height: 24px; letter-spacing: -0.18px; }

.dlh-pef__buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.dlh-pef .dlh-pef__button {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 20px;
  border: 0;
  border-radius: 48px;
  font-size: 16px; font-weight: 500; line-height: 22px;
  white-space: nowrap;
  text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.dlh-pef .dlh-pef__button--primary { background: var(--dlh-pef-ink); color: #fff; }
.dlh-pef .dlh-pef__button--primary:hover { background: #3a3a3a; }
/* Figma draws this 1px outline inside the button, so it adds no height */
.dlh-pef .dlh-pef__button--secondary { background: #fff; box-shadow: inset 0 0 0 1px #3f3f3f; color: var(--dlh-pef-ink); }
.dlh-pef .dlh-pef__button--secondary:hover { background: #f5f5f9; }
.dlh-pef .dlh-pef__button:focus-visible { outline: 2px solid var(--dlh-pef-ink); outline-offset: 3px; }

/* Bar chart card */
.dlh-pef-chart {
  flex: 1 1 0;
  min-width: 0;
  min-height: 492px;
  margin: 0;
  padding: 52px 32px 46px;
  border-radius: 24px;
  background: #fff;
  display: flex; flex-direction: column;
}
.dlh-pef-chart__head { display: flex; flex-direction: column; }
.dlh-pef .dlh-pef-chart__title { color: var(--dlh-pef-ink); font-size: 16px; font-weight: 500; line-height: 22px; }
.dlh-pef .dlh-pef-chart__subtitle { color: var(--dlh-pef-secondary); font-size: 14px; line-height: 22px; }

.dlh-pef-chart__rows {
  margin-top: 18px;
  display: flex; flex-direction: column; gap: 12px;   /* 38px rows on a 50px pitch */
}
.dlh-pef .dlh-pef-chart__row {
  display: grid; grid-template-columns: 136px minmax(0, 260px); align-items: start;
}
.dlh-pef-chart__label { display: flex; flex-direction: column; white-space: nowrap; }
.dlh-pef .dlh-pef-chart__name { color: var(--dlh-pef-ink); font-size: 14px; line-height: 22px; }
.dlh-pef .dlh-pef-chart__sector { color: var(--dlh-pef-muted); font-size: 12px; line-height: 16px; }

/* Bar lengths are relative to the longest bar, which fills the track minus room for its value.
   --dlh-pef-bar is set per row on the track so both the bar and its label can use it. */
.dlh-pef-chart__track { position: relative; display: flex; align-items: flex-start; gap: 8px; }
.dlh-pef-chart__bar {
  flex: none;
  width: calc((100% - 37px) * var(--dlh-pef-bar, 1));
  height: 27px;
  border-radius: 8px;
  background: var(--dlh-pef-green);
}
.dlh-pef-chart__row--watch .dlh-pef-chart__bar { background: var(--dlh-pef-orange); }
.dlh-pef-chart__row--pending .dlh-pef-chart__bar { background: none; border: 1px dashed var(--dlh-pef-faint); }
.dlh-pef .dlh-pef-chart__value { color: #000; font-size: 14px; line-height: 22px; white-space: nowrap; }
.dlh-pef-chart__row--pending .dlh-pef-chart__track { align-items: center; }
.dlh-pef .dlh-pef-chart__row--pending .dlh-pef-chart__value { color: var(--dlh-pef-muted); font-size: 12px; line-height: 16px; }

.dlh-pef .dlh-pef-chart__legend {
  margin-top: auto;   /* pins the legend to the bottom of the card */
  padding-top: 28px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 17px;
  color: var(--dlh-pef-ink);
  font-size: 12px; line-height: 16px;
}
.dlh-pef-chart__key { display: inline-flex; align-items: center; gap: 7px; }
.dlh-pef-chart__key::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--dlh-pef-green);
}
.dlh-pef-chart__key--watch::before { background: var(--dlh-pef-orange); }
.dlh-pef .dlh-pef-chart__note { color: var(--dlh-pef-faint); }

/* Stat cards */
.dlh-pef__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 21px; }
.dlh-pef-stat {
  min-height: 218px;
  padding: 32px;
  border-radius: 16px;
  background: #fff;
  display: flex; flex-direction: column; gap: 18px;
}
.dlh-pef .dlh-pef-stat__value {
  color: var(--dlh-pef-ink);
  font-size: 40px; font-weight: 400; line-height: normal; letter-spacing: -1.18px;
}
/* "playbook": as large as fits on one line beside the "1" in the four-across cards (40px from tablet down) */
.dlh-pef .dlh-pef-stat__unit { font-size: 34px; letter-spacing: -1.18px; }
.dlh-pef .dlh-pef-stat__caption { font-size: 14px; line-height: 22px; }

/* Tablet: chart moves below the copy, stats go 2 × 2 */
@media (max-width: 1023px) {
  .dlh-pef { padding: 60px 16px 56px; }
  .dlh-pef__main { flex-direction: column; gap: 32px; }
  .dlh-pef__copy { flex: none; max-width: 600px; }
  .dlh-pef-chart { flex: none; width: 100%; max-width: 560px; min-height: 0; padding: 40px 32px 32px; }
  .dlh-pef__stats { grid-template-columns: repeat(2, 1fr); }
  .dlh-pef-stat { min-height: 0; }
  .dlh-pef .dlh-pef-stat__unit { font-size: inherit; }
}

/* Phones */
@media (max-width: 720px) {
  .dlh-pef { padding: 60px 16px 48px; }
  .dlh-pef__inner { gap: 32px; }
  .dlh-pef .dlh-pef__title { font-size: 36px; line-height: 42px; letter-spacing: -0.8px; }
  .dlh-pef .dlh-pef__lead { font-size: 20px; }
  .dlh-pef .dlh-pef__text { font-size: 15px; line-height: 22px; }
  .dlh-pef .dlh-pef-eyebrow__label { letter-spacing: 2px; font-size: 11px; }
  .dlh-pef-chart { padding: 28px 20px 24px; }
  .dlh-pef .dlh-pef-chart__row { grid-template-columns: 112px minmax(0, 1fr); }
  .dlh-pef .dlh-pef-chart__sector { white-space: normal; }
  /* No room beside the dashed bar on phones, so "In assessment" sits inside it */
  .dlh-pef .dlh-pef-chart__row--pending .dlh-pef-chart__value {
    position: absolute; left: 0; top: 0;
    width: calc((100% - 37px) * var(--dlh-pef-bar, 1));
    height: 27px;
    display: flex; align-items: center; justify-content: center;
  }
  .dlh-pef__stats { grid-template-columns: 1fr; gap: 12px; }
  .dlh-pef-stat { padding: 24px; gap: 12px; }
}
