/* =============================================================================
   TYPOGRAPHY SYSTEM
   =============================================================================
   Fonts:
     Anton  → titles  (H1–H6, .title-hx classes)
     Inter  → content (body, labels, paragraphs, badges, etc.)

   Colour tokens (shared with the rest of the design system):
     --ffbad-blue   : var(--ffbad-blue, #101F69)   deep navy
     --ffbad-red    : var(--ffbad-red, #D52B1E)   strong red
     --ffbad-grey   : #5a5f7a   secondary text
     --ffbad-bg-light  : #8a8fa8   muted / caption text
     --ffbad-white  : #ffffff

   Usage examples:
     html.H1("Page title",        className="title-h1")
     html.H2("Section title",     className="title-h2")
     html.H3("Sub-section",       className="title-h3")
     html.P ("Body copy",         className="text-body")
     html.Span("Label",           className="text-label")
     html.P ("Caption note",      className="text-caption")
   ============================================================================= */

/* ── Base: apply Inter to everything, Anton to heading tags ─────────────────── */
body,
p, span, div, li, td, th,
input, select, textarea, button, label {
    font-family: 'Inter', 'Manrope', 'Segoe UI', Helvetica, Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Anton', sans-serif;
    font-weight: 400;   /* Anton has only one weight; explicit for clarity */
    font-style: normal;
    margin: 0;
    line-height: 1.1;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}


/* =============================================================================
   TITLE CLASSES  —  title-h1 … title-h6
   Apply on the matching html.Hx element.
   ============================================================================= */

/* ── Shared title base ────────────────────────────────────────────────────── */
.title-h1,
.title-h2,
.title-h3,
.title-h4,
.title-h5,
.title-h6 {
    font-family: 'Anton', sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    text-transform: uppercase !important;
    line-height: 1.1 !important;
    letter-spacing: 0.02em !important;
    margin: 0 !important;
    max-width: 100% !important;
    word-wrap: break-word !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   H1 — Blue text, red decoration bar
   Based on .modern-h1 + .modern-h1:before
   ───────────────────────────────────────────────────────────────────────────── */
.title-h1 {
    font-size: 34px !important;
    color: var(--ffbad-blue) !important;
    padding: 2rem 20px !important;
}

.title-h1::before {
    content: '' !important;
    display: block !important;
    width: var(--title-bar-w) !important;
    height: var(--title-bar-h) !important;
    background-color: var(--ffbad-red) !important;
    border-radius: var(--title-bar-r) !important;
    margin-bottom: 1.25rem !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   H2 — Red text, blue decoration bar
   ───────────────────────────────────────────────────────────────────────────── */
.title-h2 {
    font-size: 26px !important;
    color: var(--ffbad-red) !important;
    padding: 1.5rem 20px !important;
}

.title-h2::before {
    content: '' !important;
    display: block !important;
    width: var(--title-bar-w) !important;
    height: var(--title-bar-h) !important;
    background-color: var(--ffbad-blue) !important;
    border-radius: var(--title-bar-r) !important;
    margin-bottom: 1rem !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   H3–H6 — Blue text, no decoration, decreasing sizes
   ───────────────────────────────────────────────────────────────────────────── */
.title-h3 {
    font-size: 22px !important;
    color: var(--ffbad-blue) !important;
    padding: 0.75rem 0 !important;
}

.title-h4 {
    font-size: 18px !important;
    color: var(--ffbad-blue) !important;
    padding: 0.5rem 0 !important;
}

.title-h5 {
    font-size: 15px !important;
    color: var(--ffbad-blue) !important;
    padding: 0.4rem 0 !important;
    letter-spacing: 0.04em !important;
}

.title-h6 {
    font-size: 12px !important;
    color: var(--ffbad-blue) !important;
    padding: 0.3rem 0 !important;
    letter-spacing: 0.06em !important;
}

/* ─────────────────────────────────────────────────────────────────────────────
   Centered variants  —  add -center suffix, e.g. title-h2-center
   ───────────────────────────────────────────────────────────────────────────── */
.title-h1.title-center,
.title-h2.title-center,
.title-h3.title-center,
.title-h4.title-center,
.title-h5.title-center,
.title-h6.title-center {
    text-align: center !important;
}

.title-h1.title-center::before,
.title-h2.title-center::before {
    margin-left: auto !important;
    margin-right: auto !important;
}


/* =============================================================================
   CONTENT / BODY TEXT  —  Inter font
   ============================================================================= */

/* ── Body paragraph ─────────────────────────────────────────────────────────── */
.text-body {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: var(--ffbad-grey) !important;
    line-height: 1.6 !important;
    margin: 0 0 0.75rem 0 !important;
}

/* ── Strong body (e.g. card descriptions that need more presence) ─────────── */
.text-body-strong {
    font-family: 'Inter', sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--ffbad-blue) !important;
    line-height: 1.5 !important;
}

/* ── Label — for form labels, filter labels ─────────────────────────────────── */
.text-label {
    font-family: 'Inter', sans-serif !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: var(--ffbad-blue) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.06em !important;
    margin-bottom: 5px !important;
}

/* ── Caption — footnotes, axis labels, helper text ──────────────────────────── */
.text-caption {
    font-family: 'Inter', sans-serif !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    color: var(--ffbad-bg-light) !important;
    font-style: italic !important;
    line-height: 1.4 !important;
}

/* ── Value — prominent single metric (KPI cards, scoreboards) ───────────────── */
.text-value {
    font-family: 'Inter', sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--ffbad-blue) !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
}

.text-value-red {
    font-family: 'Inter', sans-serif !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    color: var(--ffbad-red) !important;
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
}

/* ── Badge / tag — status indicators, category chips ───────────────────────── */
.text-badge {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    background-color: var(--ffbad-blue) !important;
    color: var(--ffbad-white) !important;
}

.text-badge-red {
    font-family: 'Inter', sans-serif !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.08em !important;
    padding: 2px 8px !important;
    border-radius: 4px !important;
    display: inline-block !important;
    background-color: var(--ffbad-red) !important;
    color: var(--ffbad-white) !important;
}

/* ── Link — inline hyperlinks ───────────────────────────────────────────────── */
.text-link {
    font-family: 'Inter', sans-serif !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    color: var(--ffbad-blue) !important;
    text-decoration: underline !important;
    text-underline-offset: 3px !important;
    cursor: pointer !important;
    transition: color 0.15s ease !important;
}
.text-link:hover {
    color: var(--ffbad-red) !important;
}

/* ── Muted — de-emphasised secondary text ───────────────────────────────────── */
.text-muted {
    font-family: 'Inter', sans-serif !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--ffbad-bg-light) !important;
    line-height: 1.5 !important;
}
