/* Shared heading style. Keep labels, financial values and the loader separate. */
body :is(h1, h2, h3, h4, h5, h6):not(.stairs-title) {
  background: none;
  color: #f2f2f4;
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.025em;
  text-transform: none;
  text-wrap: balance;
  overflow-wrap: break-word;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: currentColor;
}

body h1:not(.stairs-title) {
  line-height: 1.05;
  letter-spacing: -.045em;
}

body :is(.hero, .page-head) h1 {
  font-size: clamp(42px, 6vw, 76px);
}

body :is(.section-heading, .section-head) h2,
body h2.content-title {
  line-height: 1.1;
  letter-spacing: -.035em;
}

body :is(h1, h2, h3, h4, h5, h6):not(.stairs-title) span {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

body.finance-page {
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.finance-page :is(
  .metric strong,
  .goal-row strong,
  .partner-control-stat strong,
  .partner-summary-item > strong,
  .partner-received-grid dd,
  .distribution-confirm-total strong,
  .weekly-best strong,
  .weekly-item strong,
  .operation-status-item strong,
  .api-control-stat strong,
  .transfer-item strong
) {
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  font-optical-sizing: auto;
  font-weight: 600;
  letter-spacing: -.035em;
}

body.finance-page :is(p, small, td, input, select, textarea) {
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
}

/* Match the calmer, more legible rhythm used by the warmup workspace. */
body.finance-page {
  font-weight: 400;
  line-height: 1.55;
}

body.finance-page :is(p, small, td, input, select, textarea) {
  font-weight: 500;
  line-height: 1.55;
}

body.finance-page :is(.button, button, .topbar, footer) {
  font-family: "Inter Tight", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: .01em;
}

body.finance-page :is(
  .mono,
  .eyebrow,
  .metric-label,
  .tag,
  label,
  th,
  time,
  .top-status,
  .distribution-status,
  .operation-status-item span,
  .access-admin-meta,
  .access-admin-stat span,
  .distribution-confirm-head span,
  .distribution-confirm-total span
) {
  font-family: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}

body.finance-page :is(
  .chart-help,
  .mix-caption,
  .weekly-meta,
  .weekly-change,
  .weekly-note,
  .weekly-empty,
  .partner-cost-note p,
  .access-admin-feedback
) {
  font-size: 12px;
  line-height: 1.55;
}

body.finance-page :is(
  .operation-status-item span,
  .access-admin-meta,
  .access-admin-stat span,
  .distribution-confirm-head span,
  .distribution-confirm-total span
) {
  font-size: 9px;
  line-height: 1.35;
}

@media (max-width: 640px) {
  body :is(.hero, .page-head) h1 {
    font-size: clamp(36px, 9.5vw, 52px);
    line-height: 1.08;
    letter-spacing: -.035em;
  }
}
