/* Calm typography layer (user 2026-11-27: "letters are very big").
   Font SIZES were fine (14px body); the problem was weight: nav, buttons, labels and table text
   were 600-800 everywhere, so the page read as large and loud. Loaded LAST on both the desktop
   and mobile pages; caps weights (also the inline style="font-weight:800" from the JS views)
   and tightens a few sizes. Numbers and P&L stay semibold so they still stand out. */

body {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, sans-serif;
  font-weight: 400;
  font-size: 13.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* Inline weights written by the JS views */
[style*="font-weight:800"], [style*="font-weight: 800"],
[style*="font-weight:900"], [style*="font-weight: 900"] { font-weight: 600 !important; }
[style*="font-weight:700"], [style*="font-weight: 700"] { font-weight: 600 !important; }

/* Headings: clear but not shouting */
h1, .page-hdr h1 { font-size: 19px !important; font-weight: 600 !important; letter-spacing: -0.01em; }
h2 { font-size: 15px; font-weight: 600; }
h3, .card h3, .card-title { font-size: 13.5px !important; font-weight: 600 !important; }
.brand { font-weight: 650 !important; }

/* Sidebar navigation: regular weight, active item medium */
.nav-grp-title { font-weight: 600 !important; }
.nav-link { font-weight: 400 !important; font-size: 13px !important; }
.nav-link.active { font-weight: 500 !important; }
.brand small { font-weight: 400 !important; }

/* Buttons, chips, tabs, badges */
button, .tool-btn, .chip, .pill, .tab, .eagle-tab, .btn { font-weight: 500 !important; }
.badge { font-weight: 550 !important; }

/* Tables: regular body, muted small-caps header, numbers medium */
td { font-weight: 400; }
th { font-weight: 600 !important; letter-spacing: 0.03em; }
td.n, .n { font-variant-numeric: tabular-nums; }
.up, .dn { font-weight: 600 !important; }

/* Body text inside cards reads lighter */
.card p, .card li, .muted, small { font-weight: 400; }

/* Overview: compact commentary + money-flow row so the heatmap shows on the first screen */
.ov-top-card { max-height: 172px; overflow: auto; padding-top: 12px !important; padding-bottom: 10px !important; }
.ov-top-card .card-title { margin-bottom: 6px !important; }
@media (max-width: 900px) { .ov-top { grid-template-columns: 1fr !important; } }

/* Phone: slightly smaller, roomier header row */
@media (max-width: 768px) {
  body { font-size: 13px; }
  .hdr-title { font-size: 14px !important; font-weight: 600 !important; }
  .chip, .pill, .tool-btn, .hbtn { font-size: 11px !important; }
}
