/* Expert and case templates extend the established Neofin Home V3 system. */
.nf-home.nf-detail .nf-detail-section {
  padding: 96px 100px;
  width: 100%;
  min-width: 0;
  background: var(--nf-beige);
}
.nf-home.nf-detail .nf-detail-inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  gap: 32px;
  min-width: 0;
}
.nf-home.nf-detail .nf-detail-section--green {
  --nf-focus: var(--nf-mint);
  background: var(--nf-green);
  color: var(--nf-beige);
}
.nf-home.nf-detail .nf-detail-section--pale { background: var(--nf-pale); }
.nf-home.nf-detail .nf-detail-preview {
  padding-block: 14px;
  background: var(--nf-pale);
  border-bottom: 1px solid var(--nf-line);
}
.nf-home.nf-detail .nf-detail-preview-label {
  color: var(--nf-green);
  font-size: 14px;
  line-height: 21px;
}
.nf-home.nf-detail :is(.nf-detail-display,.nf-detail-heading,.nf-detail-subheading,.nf-detail-fact-label) .elementor-heading-title {
  font: inherit;
  line-height: inherit;
  letter-spacing: inherit;
  color: inherit;
  overflow-wrap: anywhere;
}
.nf-home.nf-detail .nf-detail-display {
  color: var(--nf-green);
  font-size: clamp(44px, 4.44445vw, 64px);
  line-height: 1.0625;
  font-weight: 700;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.nf-home.nf-detail .nf-detail-heading {
  color: var(--nf-green);
  font-size: 40px;
  line-height: 46px;
  font-weight: 600;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.nf-home.nf-detail .nf-detail-subheading {
  color: var(--nf-green);
  font-size: 26px;
  line-height: 32px;
  font-weight: 600;
}
.nf-home.nf-detail .nf-detail-role {
  color: var(--nf-mint);
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.nf-home.nf-detail .nf-detail-lead {
  color: var(--nf-muted);
  font-size: 20px;
  line-height: 30px;
  max-width: 60ch;
}
.nf-home.nf-detail .nf-detail-body {
  color: var(--nf-ink);
  font-size: 18px;
  line-height: 28px;
  max-width: 70ch;
}
.nf-home.nf-detail :is(.nf-detail-body,.nf-detail-lead,.nf-detail-role,.nf-detail-preview-label,.nf-detail-fact-value,.nf-detail-portrait-label,.nf-detail-portrait-caption) p { margin: 0; }
.nf-home.nf-detail :is(.nf-detail-body,.nf-detail-lead,.nf-detail-role,.nf-detail-fact-value) { overflow-wrap: anywhere; }
.nf-home.nf-detail .nf-detail-section--green :is(.nf-detail-display,.nf-detail-heading,.nf-detail-body) { color: var(--nf-beige); }
.nf-home.nf-detail .nf-detail-section--green .nf-detail-lead { color: var(--nf-pale); }
.nf-home.nf-detail .nf-detail-identity {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
  gap: 80px;
  align-items: center;
}
.nf-home.nf-detail .nf-detail-intro { gap: 24px; align-items: flex-start; }
.nf-home.nf-detail .nf-detail-intro .nf-detail-button { margin-top: 8px; }
.nf-home.nf-detail .nf-detail-portrait-slot { gap: 20px; align-items: center; }
.nf-home.nf-detail .nf-detail-portrait-circle {
  width: min(100%, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--nf-pale);
  align-items: center;
  justify-content: center;
}
.nf-home.nf-detail .nf-detail-portrait-label {
  color: var(--nf-green);
  font-size: 28px;
  font-weight: 600;
  line-height: 34px;
  text-align: center;
}
.nf-home.nf-detail .nf-detail-portrait-caption {
  color: var(--nf-pale);
  font-size: 14px;
  line-height: 21px;
  text-align: center;
}
.nf-home.nf-detail .nf-detail-portrait-image { width: min(100%, 320px); align-self: center; }
.nf-home.nf-detail .nf-detail-portrait-image img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; }
.nf-home.nf-detail .nf-detail-editorial {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.8fr);
  column-gap: 100px;
  align-items: start;
}
.nf-home.nf-detail .nf-detail-prose { gap: 24px; align-items: flex-start; min-width: 0; }
.nf-home.nf-detail .nf-detail-button { width: auto; max-width: 100%; align-self: flex-start; }
.nf-home.nf-detail .nf-detail-button .elementor-button { white-space: normal; }
.nf-home.nf-detail .nf-detail-conversation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 64px;
  align-items: center;
}
.nf-home.nf-detail .nf-detail-conversation > .nf-detail-button { align-self: center; }
.nf-home.nf-detail .nf-detail-case-hero { gap: 32px; }
.nf-home.nf-detail .nf-detail-case-hero :is(.nf-detail-display,.nf-detail-lead) { max-width: 980px; }
.nf-home.nf-detail .nf-detail-facts-section { padding-block: 40px; }
.nf-home.nf-detail .nf-detail-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.nf-home.nf-detail .nf-detail-fact { gap: 8px; }
.nf-home.nf-detail .nf-detail-fact-label { color: var(--nf-muted); font-size: 16px; line-height: 24px; font-weight: 400; }
.nf-home.nf-detail .nf-detail-fact-value { color: var(--nf-green); font-size: 22px; line-height: 28px; font-weight: 600; }
.nf-home.nf-detail .nf-detail-result-note { border-top: 1px solid var(--nf-line); padding-top: 24px; }
@media (max-width: 1199px) {
  .nf-home.nf-detail .nf-detail-section { padding: 64px 48px; }
  .nf-home.nf-detail .nf-detail-preview { padding-block: 14px; }
  .nf-home.nf-detail .nf-detail-identity { gap: 40px; grid-template-columns: minmax(0, 1.5fr) minmax(220px, 1fr); }
  .nf-home.nf-detail .nf-detail-editorial { column-gap: 48px; }
  .nf-home.nf-detail .nf-detail-conversation { gap: 40px; }
  .nf-home.nf-detail .nf-detail-facts-section { padding-block: 32px; }
}
@media (max-width: 767px) {
  .nf-home.nf-detail .nf-detail-section { padding: 40px 24px; }
  .nf-home.nf-detail .nf-detail-preview { padding-block: 12px; }
  .nf-home.nf-detail .nf-detail-inner { gap: 24px; }
  .nf-home.nf-detail :is(.nf-detail-identity,.nf-detail-editorial,.nf-detail-conversation,.nf-detail-facts) { grid-template-columns: minmax(0, 1fr); }
  .nf-home.nf-detail .nf-detail-identity { gap: 40px; }
  .nf-home.nf-detail .nf-detail-display { font-size: 40px; line-height: 44px; }
  .nf-home.nf-detail .nf-detail-heading { font-size: 28px; line-height: 34px; }
  .nf-home.nf-detail .nf-detail-subheading { font-size: 24px; line-height: 30px; }
  .nf-home.nf-detail .nf-detail-role { font-size: 22px; line-height: 28px; }
  .nf-home.nf-detail .nf-detail-lead { font-size: 18px; line-height: 27px; }
  .nf-home.nf-detail .nf-detail-body { font-size: 17px; line-height: 26px; }
  .nf-home.nf-detail .nf-detail-portrait-circle, .nf-home.nf-detail .nf-detail-portrait-image { max-width: 224px; }
  .nf-home.nf-detail .nf-detail-facts { gap: 24px; }
  .nf-home.nf-detail .nf-detail-facts-section { padding-block: 32px; }
  .nf-home.nf-detail .nf-detail-conversation > .nf-detail-button { align-self: flex-start; }
}
@media (max-width: 359px) {
  .nf-home.nf-detail .nf-detail-display { font-size: 36px; line-height: 40px; }
}
