/* ============================================================
   RealCare — Aubergine Glass typography system
   Extracted from: tenant-account-redesign6.html (Oct 26)
   Reusable across pages/components.
   ------------------------------------------------------------
   Fonts (load in <head>):
   https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500&family=JetBrains+Mono:wght@400;500&display=swap
   ============================================================ */

:root {
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-num: 'JetBrains Mono', ui-monospace, monospace;   /* money / figures */
  --font-mono: 'IBM Plex Mono', ui-monospace, monospace;    /* dates / codes */

  --ink: #161219;
  --muted: #6E6773;
  --faint: #9A96A0;
  --brand: #3B0A3E;
  --brand-50: #F7EEF8;
  --hair: color-mix(in oklab, #161219 8%, transparent);

  --emerald: #059669;
  --amber: #D97706;
  --rose: #E11D48;
  --sky: #0284C7;
  --violet: #7C3AED;
}

/* ------------------------------------------------------------
   1. BASE
   ------------------------------------------------------------ */
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  color: var(--ink);
  font-variant-numeric: lining-nums tabular-nums;
}

/* ------------------------------------------------------------
   2. FIGURES
   ------------------------------------------------------------ */
.num {
  font-family: var(--font-num);
  font-weight: 400;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
}

.mono {
  font-family: var(--font-mono);
}

/* ------------------------------------------------------------
   3. TEXT SCALE  (use as classes)
   ------------------------------------------------------------ */
/* Titles / headings */
.t-display { font-size: 26px; line-height: 1; font-weight: 400; }          /* large figure */
.t-title-lg { font-size: 17px; font-weight: 600; letter-spacing: -.01em; }  /* person / page name */
.t-title { font-size: 16px; font-weight: 600; letter-spacing: -.005em; }    /* command bar title */
.t-card-title { font-size: 14px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; }

/* Body */
.t-body-lg { font-size: 13.5px; line-height: 1.5; }                         /* message body */
.t-body { font-size: 13px; line-height: 1.5; }                              /* default row / list text */
.t-body-sm { font-size: 12.5px; line-height: 1.5; }                         /* address, secondary rows */

/* Small / meta */
.t-label { font-size: 12px; line-height: 1.4; color: var(--muted); }        /* sub-text */
.t-label-xs { font-size: 11px; line-height: 1.4; color: var(--muted); }

/* Micro uppercase section labels */
.t-overline {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-overline-faint { color: var(--faint); }

/* ------------------------------------------------------------
   4. CARD HEADER PATTERN  (icon + title + optional sub + right slot)
   ------------------------------------------------------------ */
.card-head { display: flex; align-items: center; gap: 11px; }
.card-head .ttl { font-size: 14px; font-weight: 600; letter-spacing: -.005em; line-height: 1.2; }
.card-head .sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  line-height: 1.2;
}

/* ------------------------------------------------------------
   5. STATUS CHIPS
   ------------------------------------------------------------ */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
}
.chip.emerald { color: var(--emerald); background: color-mix(in oklab, var(--emerald) 12%, transparent); }
.chip.amber   { color: var(--amber);   background: color-mix(in oklab, var(--amber) 14%, transparent); }
.chip.rose    { color: var(--rose);    background: color-mix(in oklab, var(--rose) 12%, transparent); }
.chip.slate   { color: var(--muted);   background: color-mix(in oklab, #161219 6%, transparent); }
.chip.brand   { color: var(--brand);   background: var(--brand-50); }

/* ------------------------------------------------------------
   6. USAGE NOTES
   ------------------------------------------------------------
   Rule of thumb (keeps tables/lists calm):
   - Plain text for labels / descriptions  -> .t-body / .t-label
   - Money & quantities                    -> .num
   - Dates / codes                         -> .mono (small)
   - Uppercase micro labels                -> .t-overline
   - Only color the ONE thing that matters (amount sign, status chip)
   ------------------------------------------------------------ */

/* ------------------------------------------------------------
   7. TOPBAR (canonical — global controls only, no module actions)
   ------------------------------------------------------------ */
.tb-btn { position: relative; width: 36px; height: 36px; border-radius: var(--r-sm); display: grid; place-items: center; color: var(--muted); cursor: pointer; transition: color .2s ease, background-color .2s ease; border: 0; background: transparent; }
.tb-btn:hover { color: var(--ink); background: color-mix(in oklab, #161219 6%, transparent); }
.tb-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 90; width: 320px; display: none; background: color-mix(in oklab, white 92%, transparent); -webkit-backdrop-filter: blur(28px) saturate(170%); backdrop-filter: blur(28px) saturate(170%); border-radius: var(--r-md); box-shadow: 0 0 0 1px color-mix(in oklab,#161219 6%, transparent), 0 18px 44px -24px color-mix(in oklab,#161219 34%, transparent); overflow: hidden; }
.tb-menu.open { display: block; }
.tb-menu .hd { padding: 12px 14px; border-bottom: 1px solid var(--hair); }
