/**
 * Design Tokens
 * Central source of truth for all design values
 */

:root {
  /* ==========================================
     COLOUR FORMAT

     Every scale colour is a single hsl() — one definition, one notation, no
     companion tokens. Where a colour needs alpha, mix it at the point of use:

         color-mix(in srgb, var(--blue-550) 12%, transparent)

     There used to be an --x-rgb channel-list beside each token, because
     rgba() could not take a var() holding a whole colour. Every one of those 18
     had drifted from its own hsl() source — by up to 24 on --blue-400, which is
     the focus ring — so the rgba() form painted a different colour from the
     var() form of the same token. color-mix removes the duplicate definition
     entirely, so that class of drift cannot recur.

     Raw rgba(0,0,0,...) / rgba(255,255,255,...) for shadows and scrims is fine
     and deliberately left alone: those are not token values, so there is
     nothing for them to drift from.
     ========================================== */

  /* ==========================================
     GREYSCALE SYSTEM (Cool Grey with Blue Undertone)
     ========================================== */
  --grey-100: hsl(209, 18%, 96%);
  --grey-250: hsl(209, 14%, 80%);
  --grey-400: hsl(209, 12%, 60%);
  --grey-550: hsl(209, 14%, 45%);
  --grey-650: hsl(209, 16%, 37%);
  --grey-700: hsl(209, 18%, 30%);
  --grey-900: hsl(209, 25%, 15%);

  /* ==========================================
     PRIMARY COLOR SYSTEM (Brand Blue)
     ========================================== */
  --blue-100: hsl(209, 78%, 92%);
  --blue-250: hsl(209, 82%, 72%);
  --blue-400: hsl(209, 85%, 55%);
  --blue-500: hsl(209, 82%, 48%);
  --blue-550: hsl(209, 78%, 42%);  /* #186EBF - brand primary */
  /* Fully saturated, for text that has to hold against a tinted surface — the
     active product tab. Not reachable by adjusting --blue-550's lightness: this
     is a saturation step, not a value step. Resolves to #0061BA. */
  --blue-600: hsl(208.5, 100%, 36.4%);
  --blue-700: hsl(209, 73%, 35%);
  --blue-900: hsl(209, 80%, 20%);

  /* ==========================================
     ACCENT COLOR SYSTEM (Action Orange)
     ========================================== */
  --orange-100: hsl(38, 92%, 92%);
  --orange-200: hsl(38, 93%, 82%);
  --orange-250: hsl(38, 95%, 70%);
  --orange-400: hsl(38, 98%, 55%);
  --orange-550: hsl(38, 100%, 47%);  /* Base/Seed #F09800 */
  --orange-700: hsl(38, 100%, 35%);
  /* The deepest step at which the accent still reads as amber rather than
     bronze, and the lightest at which WHITE clears AA on it: 4.67:1, where
     --orange-700 manages only 4.00:1 and --orange-900 (8.11:1) has gone brown.
     Added for the header cart badge's white numeral. */
  --orange-800: hsl(38, 100%, 32%);
  --orange-900: hsl(38, 100%, 22%);

  /* ==========================================
     STATUS COLOR SYSTEM (Success Green / Danger Red)

     Full scales rather than single values, because one value cannot serve both
     roles a status colour is asked to do: text on white needs >= 4.5:1
     contrast, while a fill or border wants to read as saturated — which at
     4.5:1 it barely does. The previous single --color-success / --color-danger
     were Tailwind's -500 values, which Tailwind itself uses for fills and
     reserves -600/-700 for text, so every use as text failed WCAG AA:
     success 2.28:1, warning 2.15:1, danger 3.76:1.

     Hues are taken from the values already in the codebase, so nothing shifts
     hue: #dc3545 (the old --border-error) is hsl(354, 70%, 54%) and #22c55e
     (the old --color-success) is hsl(142, 71%, 45%). Both land on the 550 step,
     so every fill keeps the colour it has today.

     Measured contrast on white — 550 is the fill/border step, 700 the text one:
       --green-550  2.30:1  fill only     --green-700  5.29:1  AA text
       --red-550    4.47:1  fill only     --red-700    7.42:1  AA text

     --red-550 sits a hair under 4.5 on purpose: it is the fill step and it
     matches the existing value. Text takes 700.

     There is deliberately NO amber scale. Warning is the brand orange:
     --color-warning was 13 away from --orange-550 with a single use (and zero
     for its -hover), and .nim-alert-warning already read from the orange scale.
     A second amber only made "is this warning or accent?" ambiguous.
     ========================================== */
  --green-100: hsl(142, 76%, 95%);
  --green-250: hsl(142, 70%, 83%);
  --green-400: hsl(142, 68%, 58%);
  --green-550: hsl(142, 71%, 45%);   /* fill / border */
  --green-700: hsl(142, 74%, 28%);   /* text */
  --green-900: hsl(142, 76%, 17%);

  --red-100: hsl(354, 85%, 95%);
  --red-250: hsl(354, 80%, 86%);
  --red-400: hsl(354, 74%, 66%);
  --red-550: hsl(354, 70%, 54%);     /* fill / border */
  --red-700: hsl(354, 72%, 38%);     /* text */
  --red-900: hsl(354, 74%, 24%);

  /* ==========================================
     SEMANTIC COLOR MAPPINGS
     ========================================== */
  /* Primary */
  --color-primary: var(--blue-550);
  --color-primary-hover: var(--blue-700);
  --color-primary-active: var(--blue-900);
  --color-primary-light: var(--blue-100);

  /* Accent/CTA */
  --color-accent: var(--orange-550);
  --color-accent-hover: var(--orange-700);
  --color-accent-active: var(--orange-900);
  --color-accent-light: var(--orange-100);

  /* Status — split by ROLE, which is the whole point of the scales above.
     Reach for --color-* on a fill, border or badge; --text-* on type. Using a
     --color-* as text is what failed contrast before. */
  --color-success: var(--green-550);
  --color-success-hover: var(--green-700);
  --text-success: var(--green-700);

  --color-danger: var(--red-550);
  --color-danger-hover: var(--red-700);
  --text-danger: var(--red-700);

  /* Warning has no scale of its own — see the note above. --orange-900 rather
     than --orange-550 for text: the accent is 2.28:1 on white, the 900 step is
     8.11:1. --color-warning / --color-warning-hover are retired. */
  --text-warning: var(--orange-900);

  /* Text */
  --text-primary: var(--grey-900);
  --text-secondary: var(--grey-700);
  --text-tertiary: var(--grey-550);
  --text-placeholder: var(--grey-400);
  /* Neutral (untinted) grey for large supporting copy under a section heading —
     reads warmer on white than the blue-tinted greyscale above. */
  --text-muted: #717171;
  --text-disabled: var(--grey-250);
  /* Tertiary text specifically on --bg-surface-tint, and nowhere else.

     A grey drawn from the neutral scale goes muddy on a coloured ground —
     simultaneous contrast makes the eye read the complement of the surrounding
     hue into it. So this shares the ground's hue and sits at 26% saturation,
     roughly halfway between a neutral grey (0%) and the tint itself (53%):
     enough to read as the same family, not so much that it reads as a link.

     Lightness is 43%, not 45% like --text-tertiary, and that is tuned rather
     than guessed: it lands at 4.89:1 on the tint, matching the 4.87:1 that
     --text-tertiary manages on white. The role therefore feels equally
     recessive on both grounds. At 42% it would have been 5.12:1 — more
     prominent on a tinted card than on a white one, which defeats the point.

     Passes on white too (5.26:1), so a stray use is not an accessibility bug.
     If a second tinted ground ever appears, do not add a third pairing —
     raise the saturation of the whole greyscale instead. */
  --text-tertiary-on-tint: hsl(209, 26%, 43%);
  /* Muted text specifically on --color-primary-light, the selected state of a
     price option, and nowhere else. Same reasoning as --text-tertiary-on-tint
     above, against a stronger ground: --color-primary-light is hsl(209 78% 92%),
     so a neutral grey goes muddy on it and --text-muted also drops to 4.02:1,
     under AA for the 12px it is set at.

     Saturation stays at 26% rather than following that token's "halfway to the
     ground" arithmetic, which here would give 39%. Tested at 39% it reads as a
     link — it shares the hue of --color-primary and sits 2% off its lightness —
     which is the exact failure that rule exists to avoid. 26% keeps the two
     tinted-text roles consistent with each other instead.

     Lightness 40% lands it at 4.88:1 on the ground, matching the 4.88:1
     --text-muted manages on white, so the role is equally recessive on both.
     Passes on white too (5.93:1), so a stray use is not an accessibility bug. */
  --text-muted-on-primary-light: hsl(209, 26%, 40%);
  /* Text and marks sitting on a dark or saturated ground — the hero banner,
     feature cards, the SDO cover art, a filled button. Same value as
     --bg-surface, deliberately a separate token: these are foreground roles,
     and pointing them at a background token would mean an off-white surface
     silently dragged the text on top of it along too. */
  --text-on-dark: #ffffff;

  /* Backgrounds */
  --bg-page: #ffffff;
  --bg-surface: #ffffff;
  /* Faint blue wash for cards sitting on a white page. Hue 209, matching the
     blue scale and the greyscale — it was #f2f8fb (hue 200), 9 degrees off
     every other blue in the file for no reason. The correction is 1 unit in
     the green channel, so nothing visibly moved. */
  --bg-surface-tint: hsl(209, 53%, 97%);
  --bg-hover: var(--grey-100);
  --bg-disabled: var(--grey-250);

  /* Page field — the recessed grey ground a page sits on, with its content on
     white panels above. Shared by the cart and the account area so the two
     cannot drift; both were carrying the same literal.

     The fill is a flat grey laid over --grey-100 in soft-light, which is a
     no-op against pure white and only bites on mid-tones, so the base carries
     the colour and the fill supplies the tint. Nets ~#F1F4F7.

     The cast is the blue bleeding out of the site header at the top edge of a
     field. Normal blend, not soft-light — it sits over the fill, not in it. */
  --page-field-fill: linear-gradient(90deg, rgba(113, 113, 113, 0.5), rgba(113, 113, 113, 0.5));
  --page-field-cast: linear-gradient(180deg, color-mix(in srgb, var(--blue-550) 12%, transparent), transparent);

  /* Borders */
  --border-default: var(--grey-250);
  --border-subtle: #DCE0E3;   /* hairline card/divider edge, lighter than grey-250 */
  --border-focus: var(--blue-400);
  /* Kept as a name — an input's error edge is a real role — but it now reads
     from the red scale instead of being an independent hex that happened to sit
     8 away from it. */
  --border-error: var(--red-550);

  /* ==========================================
     SPACING SYSTEM

     Named by VALUE, not by multiplier. --space-4 used to mean 4 x 4px = 16px,
     which meant the name and the rendered value never agreed and the utility
     classes built on it (.nim-mb-4) disagreed with both. --space-16px says what
     it is.

     Non-linear on purpose: 2px steps up to 16px, 4px to 24px, 8px to 48px, then
     coarser. Step size grows with the value because that is where the
     perceptual difference is — 2px vs 4px is hairline vs visible gap, 48px vs
     50px is nothing. This is what Tailwind and Carbon both do.

     Measured against actual usage, this covers 90% of spacing declarations with
     16 tokens. A uniform 2px ladder (2,4,6...64) was considered and rejected:
     36 tokens for 91% coverage, and 12 of them (22, 26, 34, 36, 38, 42, 44, 46,
     52, 54, 58, 62px) would have had zero uses. A scale that contains every
     even number does not constrain anything — it just renames the pixel value.

     Two structural gaps this closes, both previously forcing literals:
       - nothing below 4px, though 2px (x18) and 6px (x14) are in constant use
         for hairlines and tight control gaps;
       - the 16 -> 24 hole, where 20px (x14) lives, including base.css's own
         --container-padding.
     ========================================== */
  --space-2px: 0.125rem;
  --space-4px: 0.25rem;
  --space-6px: 0.375rem;
  --space-8px: 0.5rem;
  --space-10px: 0.625rem;
  --space-12px: 0.75rem;
  --space-14px: 0.875rem;
  --space-16px: 1rem;
  --space-20px: 1.25rem;
  --space-24px: 1.5rem;
  --space-28px: 1.75rem;
  --space-32px: 2rem;
  --space-40px: 2.5rem;
  --space-48px: 3rem;
  --space-56px: 3.5rem;
  --space-64px: 4rem;
  --space-96px: 6rem;
  --space-128px: 8rem;
  --space-256px: 16rem;
  /* 192px retired - its only consumers were the .nim-w-48 / .nim-h-48 utilities,
     which no template used; both were deleted. 256px is kept because
     .nim-w-256px is live in components/header.html. */

  /* ==========================================
     TYPOGRAPHY SYSTEM (Roboto)
     ========================================== */
  /* Font Families
     Roboto, measured on the served font at weight 400: x-height 0.528em
     against a cap height of 0.711em. That is a modest x-height for a UI face,
     so lowercase renders visually smaller than the nominal px suggests and
     Roboto reads about a size down from the larger-x-height faces it gets
     compared to.

     There is no optical-size cut in this family, so nothing adapts aperture or
     fit as the text gets smaller. The scale compensates instead, in three
     places: a hard 12px floor, 15px as the step below body (14px would be a
     size too far down in this face), and positive tracking on xs/sm below. */
  --font-primary: 'Roboto', system-ui, -apple-system, sans-serif;
  --font-mono: 'Roboto Mono', 'Courier New', monospace;

  /* Font Sizes
     Eight steps, 12 -> 48px, every ratio between 1.13 and 1.33.

     The scale splits in two. The reading band (xs -> lg) is FIXED at every
     breakpoint: reading distance does not change with viewport, so body copy
     has no reason to shrink, 17px is the platform body convention on mobile,
     and holding >= 16px keeps iOS from zoom-snapping on focused inputs. Only
     the four display steps (xl -> 4xl) scale down, because they are
     constrained by line length rather than legibility.

     Sizes below the 12px floor and between steps are deliberately absent —
     Roboto loses character differentiation under 12px, and the previous scale
     fractured into 28 distinct hardcoded sizes by leaving room to improvise. */

  /* -- Reading band: fixed at all breakpoints -- */
  --text-xs: 0.75rem;      /* 12px - badges, micro-labels (floor) */
  --text-sm: 0.9375rem;    /* 15px - meta, secondary, dense UI */
  --text-base: 1.0625rem;  /* 17px - body */
  --text-lg: 1.25rem;      /* 20px - lead copy, h5 */

  /* -- Display band: scales down, see breakpoints below -- */
  --text-xl: 1.5rem;       /* 24px - h4 */
  --text-2xl: 1.875rem;    /* 30px - h3 */
  --text-3xl: 2.25rem;     /* 36px - h2 */
  --text-4xl: 3rem;        /* 48px - h1, display */

  /* Icon Sizes
     Bootstrap Icons are glyphs, so they are sized with font-size and would
     otherwise be drawn from the text scale — which is how a text scale rots:
     an icon beside 12px text often needs to be 14 or 16px to look balanced,
     and those sizes only exist for icons.

     Two rules keep them out of the type scale:
       - An icon sitting inline with text is sized in `em`, so it tracks
         whatever text it sits next to with no token at all. Bootstrap Icons
         render small against their em box, so 1.1-1.35em usually matches.
       - A standalone icon — an icon-only control with a fixed box, an empty
         state, a feature card — uses one of the tokens below.

     These deliberately hold the sizes the templates already use via Bootstrap's
     fs-1..fs-6 on <i> elements (40/32/28/24/20/16px), so replacing those
     classes is a rename and not a resize. */
  --icon-xs: 1rem;       /* 16px - inline with a control's label */
  --icon-sm: 1.25rem;    /* 20px - icon-only control (delete, close, cart) */
  --icon-md: 1.5rem;     /* 24px - table action, inline affordance */
  --icon-lg: 1.75rem;    /* 28px - toast, nav */
  --icon-xl: 2rem;       /* 32px - social */
  --icon-2xl: 2.5rem;    /* 40px - feature card, section glyph */
  --icon-3xl: 3.5rem;    /* 56px - empty state */

  /* Font Weights */
--font-light: 300;
--font-normal: 400;
--font-medium: 500;
--font-semibold: 600;
--font-bold: 700;

  /* Line Heights
     Eight steps, strictly ascending, all unitless. Four rules set the values:

     1. UNITLESS, always. A unitless line-height is a multiplier of the
        element's own font-size and inherits as that multiplier; a px value
        inherits as a computed length and stops tracking the font, which
        defeats the responsive size tokens above. No exceptions.
     2. The ratio is INVERSELY proportional to size. Bigger type takes a
        smaller multiplier — rendered leading still grows, just sub-linearly.
     3. Leading follows MEASURE as much as size. 60-80 characters per line
        wants 1.5-1.6; a narrow column wants 1.3-1.45. Conventional bands:
        headings 1.1-1.25, lead copy and UI 1.2-1.3, body 1.5-1.6.
     4. X-HEIGHT modulates the result. A large x-height fills more of the em
        and leaves less internal white, so it needs more leading. Roboto's
        x-height is a modest 0.528em (against a 0.711em cap), so this scale
        sits at the LOW end of every band — hence body at 1.6, not 1.7.

     Not overridden per breakpoint: leading belongs to the size it sits on,
     and the reading band no longer changes size across breakpoints.

     On WCAG 1.4.12 (Text Spacing): the criterion is commonly misread as
     "author 1.5". It is not an authoring rule — it requires that nothing
     breaks when a USER forces line-height to 1.5 (and paragraph spacing 2x,
     letter spacing 0.12x, word spacing 0.16x). Nothing here needs to change
     for it. What puts it at risk is fixed-height text boxes, and the
     `max-height: calc(1.1em * 3)` style caps computed FROM line-height. */
  --leading-none: 1;         /* icon glyphs, single-line badges - not running text */
  --leading-tight: 1.1;      /* 4xl */
  --leading-snug: 1.2;       /* 2xl, 3xl */
  --leading-normal: 1.3;     /* xl, single-line UI text */
  --leading-relaxed: 1.4;    /* lg lead copy */
  --leading-caption: 1.5;    /* xs, sm - only when the text WRAPS; see note */
  --leading-body: 1.6;       /* base body copy at 60-80ch */
  --leading-prose: 1.7;      /* long-form article body at 75ch - see note */

  /* Why --leading-caption is conditional: rule 2 says small text wants a
     larger ratio, but rule 3 says a short measure wants less, and the two
     disagree at 12-15px. They resolve on whether the text wraps. Multi-line
     small text (a clamped card subtitle) takes --leading-caption; single-line
     small text (a badge, a pill, a table cell) takes --leading-none, which is
     what the raw `line-height: 1` values in the components were already doing.

     --leading-loose (1.4) was removed: it collided exactly with
     --leading-relaxed once that moved from 1.3 to 1.4.

     On --leading-prose being 1.7: rule 3 puts a 60-80ch measure at 1.5-1.6, so
     this is one notch looser than the band prescribes. It is a deliberate
     choice for article body specifically — .long-form-content is capped at
     75ch, the top of that band, and running text over a long measure carries
     the extra air well. Everything else that is merely long stays on
     --leading-body; reach for this only for article prose. */

  /* Letter Spacing
     Roboto wants positive tracking at small sizes, where its apertures close
     up, and negative tracking at display sizes, where its default fit is too
     loose. Material's own scale for Roboto does the same (12sp/+0.4px caption,
     60sp/-0.5px display).

     Material's figures were calibrated against this exact face with no optical
     sizing in play, which is the situation here, so --tracking-wider takes
     Material's caption value (+0.4px at 12px ~= +0.033em, rounded to 0.03em)
     rather than a reduced one. Nothing else widens small text in this family,
     so tracking carries it alone.

     The previous set was mis-named: -normal- was -0.015em and -wide- was
     -0.01em, so every step up to -wider- was negative and there was no true
     zero. Now the names describe the values and 0 is where it belongs. */
  --tracking-tighter: -0.02em;  /* 3xl, 4xl */
  --tracking-tight: -0.015em;   /* 2xl */
  --tracking-snug: -0.01em;     /* xl */
  --tracking-normal: 0;         /* base, lg */
  --tracking-wide: 0.01em;      /* sm */
  --tracking-wider: 0.03em;     /* xs - the Roboto small-text correction */
  --tracking-widest: 0.08em;    /* uppercase labels */

  /* ==========================================
     BORDER RADIUS
     ========================================== */
  --radius-sm: 0.25rem;    /* 4px */
  --radius-base: 0.375rem; /* 6px */
  --radius-md: 0.5rem;     /* 8px */
  --radius-lg: 0.75rem;    /* 12px */
  --radius-xl: 1rem;       /* 16px */
  --radius-2xl: 1.25rem;   /* 20px - auth card */
  --radius-full: 9999px;

  /* ==========================================
     SHADOWS
     ========================================== */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-base: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
  /* Overlay elevation — a dialog floating clear of the page, above everything
     including the cards that use --shadow-xl. Two layers on purpose: the broad
     35px blur is the ambient shadow that sells the height, the tighter 15px one
     is the contact shadow that keeps the dialog's edge from looking detached.

     This is the one shadow that tints rather than using flat black. Every other
     step above is raw rgba(0,0,0), which this file deliberately leaves alone
     because those are not token values and so cannot drift. A dialog's shadow
     covers enough area for a neutral black to read as a grey smudge against the
     hue-209 page ground, so it reads from --grey-900 (hue 209) via color-mix —
     the alpha form this file recommends — rather than duplicating that token's
     value as a literal hsl(). */
  --shadow-2xl:
    0 15px 35px color-mix(in srgb, var(--grey-900) 22%, transparent),
    0 5px 15px color-mix(in srgb, var(--grey-900) 12%, transparent);

  /* ==========================================
     TRANSITIONS
     ========================================== */
  --transition-fast: 150ms ease-in-out;
  --transition-base: 200ms ease-in-out;
  --transition-slow: 300ms ease-in-out;

  /* ==========================================
     Z-INDEX SCALE
     ========================================== */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
}

/* ==========================================
   BREAKPOINTS

   576 / 768 / 992 / 1200 / 1400 — Bootstrap 5's, because Bootstrap's grid is
   already doing the layout and a second set of boundaries would fight it.

   The convention, and it matters:
       min-width takes the boundary        @media (min-width: 992px)
       max-width takes boundary - 0.02px   @media (max-width: 991.98px)

   These CANNOT be tokens — CSS custom properties do not work in media query
   conditions, and there is no build step here. So the convention is the only
   enforcement; keep it.

   Before this was normalised there were 21 distinct values for four
   boundaries, in three competing conventions:
     - correct:        min 576 / max 575.98
     - inclusive-both: min 576 / max 576   -> both rules apply at exactly 576px
     - exclusive-both: min 577 / max 575   -> NEITHER applies at exactly 576px
   The third left the auth pages (login, password reset, the verification
   screens) and base.html unstyled at viewports of exactly 576, 768 and 992px,
   all of which are real device widths.

   Genuinely custom sub-breakpoints with no Bootstrap peer are kept as-is:
   400px (399.98), 480px, 900px.
   ========================================== */

/* ==========================================
   RESPONSIVE TYPOGRAPHY BREAKPOINTS

   Only the four display steps are redefined here. The reading band
   (xs / sm / base / lg) holds its desktop value at every width, and no line
   height or letter spacing is overridden — see the notes on those blocks.

   The previous version had three tiers and moved seven of ten size tokens,
   which produced two failures worth recording so they are not reintroduced:

     1. Steps collided and then inverted. --text-md, --text-sm-plus and
        --text-base-minus were never redefined while their neighbours shrank,
        so --text-md equalled --text-lg below 1024px and exceeded it below
        375px. Four of ten steps stopped being distinct outside desktop.
     2. Body copy shrank to 15px on the narrowest screens, which is the wrong
        direction and, in Roboto, the size where legibility starts to suffer.

   A tier below 767px is deliberately absent: with the reading band fixed, the
   only tokens left to adjust are already at 22-32px, which fit a 320px
   viewport.
   ========================================== */

/* Tablet (768px - 1023px): trim the top of the display band only. */
@media (max-width: 991.98px) {
  :root {
    --text-2xl: 1.75rem;      /* 28px (from 30px) */
    --text-3xl: 2rem;         /* 32px (from 36px) */
    --text-4xl: 2.5rem;       /* 40px (from 48px) */
  }
}

/* Mobile (<= 767px): display text has to fit a single column. */
@media (max-width: 767.98px) {
  :root {
    --text-xl: 1.375rem;      /* 22px (from 24px) */
    --text-2xl: 1.5rem;       /* 24px (from 30px) */
    --text-3xl: 1.75rem;      /* 28px (from 36px) */
    --text-4xl: 2rem;         /* 32px (from 48px) */
  }
}
