:root {
    /* Fixed-width stack: the platform's native mono fonts. This is THE mono
       stack — code, JSON/CSS editors, timestamps, and the content-model
       visualizer all consume this token; do not introduce parallel mono
       stacks. Consumers append the `monospace` generic themselves. */
    --typography-font-family-fixed: ui-monospace, "SF Mono", Menlo, Consolas;
    --typography-font-family: "Roboto";
    --typography-htmlFontSize: 16px;
    --typography-fontSize: 14px;
    --typography-fontWeightThin: 100;
    --typography-fontWeightLight: 300;
    --typography-fontWeightRegular: 400;
    --typography-fontWeightMedium: 500;
    /* SemiBold: fills the 500↔700 gap. Section heads and emphasized labels
       were hard-coding 600; converge on this token instead. */
    --typography-fontWeightSemiBold: 600;
    --typography-fontWeightBold: 700;
    --typography-fontWeightBlack: 900;
    /* Compact body line-height: widget chrome (pills, panels, captions)
       that sets line-height tighter than the 1.5 html default. */
    --typography-lineHeightCompact: 1.4;
}

html {
    font-size: var(--typography-htmlFontSize);
    font-family: var(--typography-font-family), sans-serif;
    font-weight: var(--typography-fontWeightRegular);
    line-height: 1.5;
}

b, strong {
    font-weight: var(--typography-fontWeightBold);
}

h1 {
    font-weight: var(--typography-fontWeightRegular);
    font-size: 2.25rem;
    line-height: 2.75rem;
    letter-spacing: 0;
}

h2 {
    font-weight: var(--typography-fontWeightRegular);
    font-size: 2rem;
    line-height: 2.5rem;
    letter-spacing: 0;
}

h3 {
    font-weight: var(--typography-fontWeightRegular);
    font-size: 1.75rem;
    line-height: 2.25rem;
    letter-spacing: 0;
}

h4 {
    font-weight: var(--typography-fontWeightRegular);
    font-size: 1.5rem;
    line-height: 2rem;
    letter-spacing: 0;
}

h5 {
    font-weight: var(--typography-fontWeightRegular);
    font-size: 1.375rem;
    line-height: 1.75rem;
    letter-spacing: 0;
}

h6 {
    font-weight: var(--typography-fontWeightMedium);
    font-size: 1rem;
    line-height: 1.5rem;
    letter-spacing: 0.00625em;
}

button,
a.button,
span.button {
    font-family: var(--typography-font-family), sans-serif;
    font-weight: var(--typography-fontWeightRegular);
    font-size: 0.875rem;
    line-height: 2;
    letter-spacing: 0.02857em;
    text-transform: uppercase;
    text-rendering: auto;
    word-spacing: normal;

}


.help-text,
.label-text {
    font-size: 0.875rem;
}

input,
select,
textarea,
option {
    /* Form controls don't inherit font-family; the UA default for <textarea> is
       monospace, so without this every plain textarea renders mono. Code/JSON
       editors keep their fixed font via higher-specificity rules. */
    font-family: var(--typography-font-family), sans-serif;
    font-size: 1rem;
}

caption, .tooltiptext {
    font-weight: var(--typography-fontWeightRegular);
    font-size: var(--font-size-xs);
    line-height: 1.66;
    letter-spacing: 0.03333em;
}

.compact {
    display:inline-block;
    margin: 0;
    padding: 0;
    -webkit-transform:scale(0.75,1); /* Safari and Chrome */
    -moz-transform:scale(0.75,1); /* Firefox */
    -ms-transform:scale(0.75,1); /* IE 9 */
    -o-transform:scale(0.75,1); /* Opera */
    transform:scale(0.75,1); /* W3C */
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 2rem;
        line-height: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
        line-height: 2.25rem;
    }

    h3 {
        font-size: 1.5rem;
        line-height: 2rem;
    }

    h4 {
        font-size: 1.375rem;
        line-height: 1.75rem;
    }

    h5 {
        font-size: 1rem;
        line-height: 1.5rem;
    }

    h6 {
        font-size: 0.875rem;
        line-height: 1.25rem;
    }
}

code {
    font-family: var(--typography-font-family-fixed), monospace;
}