/* ======================================================
   GLOBAL SF TYPE SYSTEM FOR CIGAROS2
   Source of truth lives in: /uxui/typography.css
   This file only imports + provides compatibility aliases
   ====================================================== */

/* 0) Import the portable, never-touch-again typography system */
@import url("/uxui/typography.css");

/* ------------------------------------------------------
   1) Backwards-compatible token aliases
   (So you don't have to refactor old CSS)
   ------------------------------------------------------ */
:root{
  /* Existing tokens your project may already reference */
  --weight-display-heavy: var(--fw-heavy);
  --weight-display-bold: var(--fw-bold);
  --weight-text-semibold: var(--fw-semibold);
  --weight-text-regular: var(--fw-regular);
}

/* ------------------------------------------------------
   2) Base body (redundant-safe)
   /uxui/typography.css already enforces this, but keeping
   it here ensures type.css alone still works if imported
   elsewhere.
   ------------------------------------------------------ */
body{
  font-family: var(--font-text);
  font-weight: var(--weight-text-regular);
}

/* ------------------------------------------------------
   3) HERO TITLES (big headers on any screen)
   ------------------------------------------------------ */
.date-headline .dow,
.pos-hero-title,
.home-hero-title{
  font-family: var(--font-display);
  font-weight: var(--weight-display-heavy); /* Display Heavy */
}

/* ------------------------------------------------------
   4) PAGE TITLES (Today, POS, Loyalty, Learn, etc.)
   IMPORTANT: now uses Heavy for consistency across app
   ------------------------------------------------------ */
.top-title,
.pos-screen-title,
.page-title{
  font-family: var(--font-display);
  font-weight: var(--fw-heavy); /* Heavy (locked) */
}

/* ------------------------------------------------------
   5) BIG NUMBERS / STATS
   ------------------------------------------------------ */
.card-value,
.pos-stat-value,
.stat-number{
  font-family: var(--font-display);
  font-weight: var(--weight-display-bold);
}

/* ------------------------------------------------------
   6) SECTION LABELS
   (If you still want uppercase labels, keep this;
    otherwise you can remove transform/spacing later.)
   ------------------------------------------------------ */
.card-label,
.section-label,
.pos-section-label,
.pill-label{
  font-family: var(--font-display);
  font-weight: var(--weight-display-bold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ------------------------------------------------------
   7) IMPORTANT NAMES (lists, customers, cigars)
   ------------------------------------------------------ */
.history-name,
.simple-list .label,
.list-row-title,
.customer-name,
.cigar-name{
  font-family: var(--font-text);
  font-weight: var(--weight-text-semibold);
}

/* ------------------------------------------------------
   8) BODY / META TEXT
   ------------------------------------------------------ */
.history-amount,
.simple-list .meta,
.small-label,
.meta-text,
.helper-text{
  font-family: var(--font-text);
  font-weight: var(--weight-text-regular);
}

/* ------------------------------------------------------
   9) LINKS
   ------------------------------------------------------ */
a,
.link-btn,
.history-btn{
  font-family: var(--font-text);
  font-weight: var(--weight-text-semibold);
}

/* ------------------------------------------------------
   10) Utility classes (kept)
   ------------------------------------------------------ */
.display-heavy{
  font-family: var(--font-display);
  font-weight: var(--weight-display-heavy);
}
.display-bold{
  font-family: var(--font-display);
  font-weight: var(--weight-display-bold);
}
.text-semibold{
  font-family: var(--font-text);
  font-weight: var(--weight-text-semibold);
}
.text-regular{
  font-family: var(--font-text);
  font-weight: var(--weight-text-regular);
}
/* =========================================
   LEARN + SUBPAGE TITLE (GLOBAL, LOCKED)
   Matches Learn page exactly
========================================= */

.learn-page-title {
  margin: 16px 18px 20px;
  font-family: "SF Pro Display", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-weight: 800; /* Heavy */
  font-size: 44px;
  letter-spacing: -0.03em;
  color: #0f1a2c;
}
