/*
 InSolutions /a/ledger — Compact card typography correction R2.1
 PURPOSE: ensure compact headers are visibly stronger than supporting copy.
 CONTRACT: compact headers = 12px / 700; compact regular text = 11px / 400.
 SCOPE: /a/ledger intelligence/card surfaces only.
 NO geometry changes. NO hero changes. NO shell changes. NO JS. NO :root mutation.
*/

/* ---- AI summary / Key insights / Data trust / Next best actions ---- */
#ledger-v127-root .lispec-feed-ai :is(h3,.lispec-badge),
#ledger-v127-root .lfv5-feed-ai :is(h3,.lfv5-badge),
[data-v125-module="ledger"] .lispec-feed-ai :is(h3,.lispec-badge) {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

#ledger-v127-root .lispec-feed-ai :is(.lispec-insight b,.lispec-action b,.lispec-provenance b),
#ledger-v127-root .lfv5-feed-ai :is(.lfv5-insight b,.lfv5-action b,.lfv5-provenance b),
[data-v125-module="ledger"] .lispec-feed-ai :is(.lispec-insight b,.lispec-action b,.lispec-provenance b) {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

#ledger-v127-root .lispec-feed-ai :is(p,small,em,.lispec-provenance span),
#ledger-v127-root .lfv5-feed-ai :is(p,small,em,.lfv5-provenance span),
[data-v125-module="ledger"] .lispec-feed-ai :is(p,small,em,.lispec-provenance span) {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

/* Keep the AI Summary narrative headline visually distinct from compact labels. */
#ledger-v127-root .lispec-feed-summary h2,
#ledger-v127-root .lfv5-summary h2,
[data-v125-module="ledger"] .lispec-feed-summary h2 {
  font-size: 16px !important;
  line-height: 21px !important;
  font-weight: 700 !important;
}

/* ---- Six KPI cards ---- */
#ledger-v127-root .lispec-kpi .lispec-kpi-head,
#ledger-v127-root .lispec-kpi .lispec-kpi-head span,
#ledger-v127-root :is(.lfv5-kpi,.lfv6-kpi,.lfv7-kpi) :is([class*="head"],[class*="label"]),
[data-v125-module="ledger"] .lispec-kpi .lispec-kpi-head {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

#ledger-v127-root .lispec-kpi small,
#ledger-v127-root :is(.lfv5-kpi,.lfv6-kpi,.lfv7-kpi) small,
[data-v125-module="ledger"] .lispec-kpi small {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

/* KPI numerical values stay prominent. */
#ledger-v127-root .lispec-kpi > strong,
[data-v125-module="ledger"] .lispec-kpi > strong {
  font-size: 24px !important;
  line-height: 29px !important;
  font-weight: 700 !important;
}

/* ---- Chart / Operational intelligence compact headings ---- */
#ledger-v127-root :is(.lispec-feed-chart,.lispec-operational) h3,
[data-v125-module="ledger"] :is(.lispec-feed-chart,.lispec-operational) h3 {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

#ledger-v127-root :is(.lispec-chart-legend span,.lispec-operational small),
[data-v125-module="ledger"] :is(.lispec-chart-legend span,.lispec-operational small) {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

#ledger-v127-root .lispec-operational .lispec-op-item b,
[data-v125-module="ledger"] .lispec-operational .lispec-op-item b {
  font-size: 12px !important;
  line-height: 16px !important;
  font-weight: 700 !important;
}

/* Compact action/view controls inside these two cards use the regular 11px tier. */
#ledger-v127-root :is(.lispec-feed-chart,.lispec-operational) button,
[data-v125-module="ledger"] :is(.lispec-feed-chart,.lispec-operational) button {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 500 !important;
}

/* Explicitly avoid changing hero, page tabs, shell navigation or drawer typography. */
