/* R-04 (#111) — typographic floor and hierarchy for the base tabs (Gaston, motion & art direction).
   Loaded last. Nothing below 12 px on the base tabs; one caption size (12 px), one overline (12 px caps,
   tracked), one small-body size (13 px). Amounts keep tabular figures. Measured with
   docs/ux/R04_TYPE.md (375/390/430 px × FR/EN × light/dark). */
:root{--t-caption:12px;--t-overline:12px;--t-small:13px}

/* Overlines: card titles and table headers (uppercase, tracked, quiet colour kept from the theme). */
section.tab .card > h3{font-size:var(--t-overline);letter-spacing:.08em;line-height:1.35}
section.tab th{font-size:var(--t-overline);letter-spacing:.05em}

/* Pills: one size everywhere on the base tabs. */
section.tab .pill{font-size:var(--t-caption);line-height:1.3}

/* Captions and metadata. */
section.tab :is(.bal-note,.bal-note span,.bal-date,.card.stat > .muted,.expense-meta,.expense-source,.expense-source strong,
  .expense-delete,.bh-stat small,.bh-desc .muted,.up-main .muted,.fc-lbl b,.fc-lbl span){font-size:var(--t-caption);line-height:1.35}
section.tab .expense-delete{min-height:32px}

/* Dashboard (mobile rules in index.html shrank these to 9.5–10 px). */
@media (max-width:640px){
  #tab-dashboard table th{font-size:var(--t-overline);letter-spacing:.04em;padding:6px 4px}
  #tab-dashboard table .pill,#tab-dashboard .up-amt .pill{font-size:var(--t-caption);padding:3px 8px}
  .bh-stat small{font-size:var(--t-caption)}
}

/* Forecast month labels: the amount under each month wraps instead of shrinking. */
#tab-forecast .fc-lbl span{white-space:normal;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}

/* Planner: the period title (h3 of each pay card) is a real heading, not an overline. */
#tab-planner .card.pcard > h3{font-size:13px;letter-spacing:.04em}
/* Same floor where the mobile dashboard rules use an id selector. */
#tab-dashboard :is(.card.stat > .muted,.expense-meta,.expense-source,.expense-source span,.expense-source strong){font-size:var(--t-caption)}
@media (max-width:640px){ #tab-dashboard .grid.stat4 .muted{font-size:var(--t-caption)!important} }  /* index.html:294 forced 11 px */
