/*
 InSolutions /a/ledger — Universal compact typography normalization R2.6
 User-approved final contract for Ledger Feed intelligence/card/drawer surfaces:
   - compact headings: 14px / 700
   - regular/supporting text: 11px / 400 unless an existing control/value role requires otherwise
 Baseline: R2.5 remains loaded underneath; this file is the final override.
 Exclusions: product hero/workspace title, shell/top-nav/left-nav, main page tabs,
 prominent KPI/metric values, geometry, spacing, routing and JavaScript.
*/

/* ------------------------------------------------------------------
   HEADING CONTRACT — 14px / bold
   ------------------------------------------------------------------ */

/* Key Insights item headings */
#ledger-v127-root[data-screen="ledger-feed"] .lfv7-root .lfv6-insight b,
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-root .lfv6-insight b {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

/* Next Best Actions: card title + row headings */
#ledger-v127-root[data-screen="ledger-feed"] .lfv7-root .lfv6-actions h3,
#ledger-v127-root[data-screen="ledger-feed"] .lfv7-root .lfv6-actions b,
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-root .lfv6-actions h3,
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-root .lfv6-actions b {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

/* Data Trust card title + Provenance */
#ledger-v127-root[data-screen="ledger-feed"] .lfv7-root .lfv6-trust h3,
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-root .lfv6-trust h3,
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-provenance b {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

/* Operational Intelligence card title + item headings */
#ledger-v127-root[data-screen="ledger-feed"] .lfv7-root .lfv6-op-head h3,
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-root .lfv6-op-head h3,
#ledger-v127-root[data-screen="ledger-feed"] .lfv7-root .lfv6-op-row b,
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-root .lfv6-op-row b {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

/* Operational Intelligence legacy drill-down title */
#ledger-v127-root[data-screen="ledger-feed"] .lfv5-overlay header h3 {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

/* Source Performance table headers */
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-root .lfx27-tr.head,
#ledger-v127-root[data-screen="ledger-feed"] .lfx27-tr.head,
#ledger-v127-root[data-screen="ledger-feed"] .lfx27-tr.head > span {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

/* Source Performance / Attention Queue compact panel headings */
#ledger-v127-root[data-screen="ledger-feed"] .lfx27-panel-head h3,
#ledger-v127-root[data-screen="ledger-feed"] .lfx27-panel-head > div > span,
#ledger-v127-root[data-screen="ledger-feed"] .lfx27-attention b {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

/* AI Copilot bold heading */
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-root .lfx23-launch b,
#ledger-v127-root[data-screen="ledger-feed"] .lfx23-launch b {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

/* Universal Contextual Drawer internal + action headings */
#ins-uci-drawer-root .ins-uci-narrative h3,
#ins-uci-drawer-root .ins-uci-analysis-item h3,
#ins-uci-drawer-root .ins-uci-ai-context h3,
#ins-uci-drawer-root .ins-uci-automation-def h3,
#ins-uci-drawer-root .ins-uci-action-list h3 {
  font-size: 14px !important;
  line-height: 18px !important;
  font-weight: 700 !important;
}

/* ------------------------------------------------------------------
   REGULAR / SUPPORTING CONTRACT — 11px / regular
   Do not touch prominent metrics, badges, controls, hero or shell.
   ------------------------------------------------------------------ */

/* Key Insights supporting copy */
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-insight :is(p,span,small,em) {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

/* Data Trust supporting copy (metric value is intentionally excluded) */
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-trust :is(p,small),
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-provenance :is(span,small) {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

/* Next Best Actions supporting copy */
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-actions :is(p,small,em),
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-actions li > span:not(:first-child) {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

/* Operational Intelligence supporting copy */
#ledger-v127-root[data-screen="ledger-feed"] .lfv6-op-row :is(p,span,small,em) {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

/* Source Performance record/body text; table column headers remain 14px above. */
#ledger-v127-root[data-screen="ledger-feed"] button.lfx27-tr.row,
#ledger-v127-root[data-screen="ledger-feed"] .lfx27-tr.row,
#ledger-v127-root[data-screen="ledger-feed"] .lfx27-tr.row > span,
#ledger-v127-root[data-screen="ledger-feed"] .lfx27-tr.row > span:first-child b {
  font-size: 11px !important;
  line-height: 15px !important;
}

/* Attention Queue supporting/body/meta text */
#ledger-v127-root[data-screen="ledger-feed"] .lfx27-attention :is(p,span,small,em) {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

/* AI Copilot supporting copy */
#ledger-v127-root[data-screen="ledger-feed"] .lfx23-launch :is(p,span,small,em) {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}

/* Universal drawer supporting copy. Keep controls/tabs/buttons untouched. */
#ins-uci-drawer-root :is(
  .ins-uci-narrative,
  .ins-uci-analysis-item,
  .ins-uci-ai-context,
  .ins-uci-automation-def,
  .ins-uci-action-list
) :is(p,small,em) {
  font-size: 11px !important;
  line-height: 15px !important;
  font-weight: 400 !important;
}
