/* ─────────────────────────────────────────────────────────────────────────
   KARTERA · TYPOGRAPHY
   Inter for everything UI. Figures also use Inter with tabular-nums (CLP, RUT,
   causa, fechas) so columns of numbers line up. Tight, legible, high-density.
   ───────────────────────────────────────────────────────────────────────── */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  /* Numeric/data font — same Inter, made to cuadrar via tabular-nums (see .k-num / .k-amount-val).
     Kept under the historical --font-mono name for compatibility; it is NOT monospaced. */
  --font-mono: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;

  /* Type scale — px, tuned for dense legal tables + a few big KPI numbers */
  --text-2xs:  11px;   /* table meta, micro-labels                  */
  --text-xs:   12px;   /* dense table cells, badges, captions        */
  --text-sm:   13px;   /* default table / control text               */
  --text-base: 14px;   /* body                                       */
  --text-md:   15px;   /* emphasized body / panel labels             */
  --text-lg:   17px;   /* card titles, section heads                 */
  --text-xl:   20px;   /* view titles                                */
  --text-2xl:  24px;   /* page titles                                */
  --text-3xl:  30px;   /* small KPI                                  */
  --text-4xl:  38px;   /* KPI cifras grandes                         */
  --text-5xl:  52px;   /* hero KPI                                   */

  /* Weights */
  --fw-regular:  400; /* @kind font */
  --fw-medium:   500; /* @kind font */
  --fw-semibold: 600; /* @kind font */
  --fw-bold:     700; /* @kind font */

  /* Line heights */
  --lh-tight:   1.15; /* @kind other */
  --lh-snug:    1.3; /* @kind other */
  --lh-normal:  1.5; /* @kind other */

  /* Letter spacing */
  --ls-tight:   -0.02em; /* @kind other */
  --ls-snug:    -0.01em; /* @kind other */
  --ls-normal:  0; /* @kind other */
  --ls-wide:    0.04em; /* @kind other */
  --ls-num:    -0.01em; /* @kind other */

  /* Numeric defaults — always tabular for alignment */
  --num-feature: "tnum" 1, "lnum" 1; /* @kind other */

  /* Semantic roles */
  --type-page-title:    var(--fw-semibold) var(--text-2xl)/var(--lh-tight) var(--font-sans);
  --type-view-title:    var(--fw-semibold) var(--text-xl)/var(--lh-tight) var(--font-sans);
  --type-section:       var(--fw-semibold) var(--text-lg)/var(--lh-snug) var(--font-sans);
  --type-body:          var(--fw-regular) var(--text-base)/var(--lh-normal) var(--font-sans);
  --type-table:         var(--fw-regular) var(--text-sm)/var(--lh-snug) var(--font-sans);
  --type-label:         var(--fw-medium) var(--text-sm)/var(--lh-snug) var(--font-sans);
  --type-caption:       var(--fw-regular) var(--text-xs)/var(--lh-snug) var(--font-sans);
}

/* ALL-CAPS micro label (column headers, eyebrows) */
.k-eyebrow {
  font: var(--fw-semibold) var(--text-2xs)/1.2 var(--font-sans);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--text-tertiary);
}

/* Monospace tabular numbers — montos, RUT, causa */
.k-num {
  font-family: var(--font-mono);
  font-feature-settings: var(--num-feature);
  letter-spacing: var(--ls-num);
  font-variant-numeric: tabular-nums;
}
/* Right-aligned money column */
.k-amount { text-align: right; white-space: nowrap; }
