/* ABOUTME: Maps UQ design system typography onto Tabler (Bootstrap 5) CSS variables. */
/* ABOUTME: Loaded after tabler*.css; font faces come from self-hosted spefr-fonts.css (head_uq_fonts). */

:root {
    /* UQ stacks (Core Typography) */
    --spefr-font-body: "Roboto", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --spefr-font-display: Montserrat, "Helvetica Neue", Helvetica, Arial, sans-serif;

    --tblr-font-sans-serif: var(--spefr-font-body);
    --tblr-body-font-size: 1rem;
    --tblr-body-font-weight: 400;
    --tblr-body-line-height: 1.5;

    /* Heading scale (UQ element table, px → rem at 16px root) */
    --tblr-font-size-h1: 2.5rem;
    --tblr-font-size-h2: 2rem;
    --tblr-font-size-h3: 1.5rem;
    --tblr-font-size-h4: 1.25rem;
    --tblr-font-size-h5: 1.125rem;
    --tblr-font-size-h6: 1rem;
    --tblr-line-height-h1: 1.2;
    --tblr-line-height-h2: 1.2;
    --tblr-line-height-h3: 1.2;
    --tblr-line-height-h4: 1.2;
    --tblr-line-height-h5: 1.2;
    --tblr-line-height-h6: 1.2;

    /* UQ $black headings */
    --tblr-heading-color: #000000;

    /* Links: weight 500; colour follows brand primary (set in spefr.css) */
    --tblr-link-color: var(--tblr-primary);
    /* Solid hover for browsers without color-mix(); tuned for default --tblr-primary #472681 */
    --tblr-link-hover-color: #3a1f68;

    /* Matches --tblr-body-color grey-900 (#1c1e21) in light theme; app does not ship dark theme. */
    --tblr-body-color-rgb: 28, 30, 33;
}

@supports (color: color-mix(in srgb, white, black)) {
    :root {
        --tblr-link-hover-color: color-mix(in srgb, var(--tblr-primary) 85%, black);
    }
}

h1,
.h1 {
    font-family: var(--spefr-font-display);
    font-weight: 500;
}

h2,
.h2,
h3,
.h3,
h4,
.h4,
h5,
.h5,
h6,
.h6 {
    font-family: var(--spefr-font-body);
    font-weight: 500;
}

a {
    font-weight: 500;
}

/* Keep button / nav weights from Tabler (class specificity beats element `a`) */

.form-label,
.col-form-label {
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

small,
.small {
    font-size: 0.875rem;
    line-height: 1.5;
}

blockquote {
    font-family: var(--spefr-font-body);
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.5;
}
