/* AtVITE theme companion â€” brand stops the hashed bundle never emitted.
 *
 * The frozen Tailwind build defines brand-50/100/500/600/700/900 but NOT
 * 200/300/400/800/950, while the source uses them in 300+ places. Every one
 * of those classes therefore matched no rule at all and rendered with NO
 * colour, which is what made the current-page indicator in the top header
 * and the mobile bottom nav invisible (the active item fell back to the
 * inherited body colour instead of brand blue).
 *
 * This file is hand-maintained (never rebuilt) and is linked from index.html
 * AFTER the hashed bundle, so these rules win at equal specificity. The
 * colours below extend the bundle's own ramp (violet-50/100 + indigo-500..900)
 * so the two halves line up exactly.
 *
 * Convention matches the bundle: a bare utility is the LIGHT value and the
 * `.dark` override is the DARK value, so one class reads correctly in both
 * themes. Loaded in both themes; the `.dark` rules only bite when the theme
 * class is on <html>.
 */

/* ---------------------------------------------------------------- brand-400
 * The current-page indicator: top nav, mobile bottom nav, sidebar active
 * labels, "public" badges, in-text links and the read-more buttons.
 * Light: indigo-600 (6.3:1 on white). Dark: indigo-400 (7.5:1 on slate-950). */
.text-brand-400 {
    --tw-text-opacity: 1;
    color: #4f46e5;
}
.dark .text-brand-400 {
    color: #818cf8;
}
/* The dark:-prefixed form the source uses next to a light-mode colour. */
.dark\:text-brand-400:is(.dark *) {
    --tw-text-opacity: 1;
    color: #818cf8;
}

/* ---------------------------------------------------------------- brand-300
 * Hover partner for brand-400. Light: indigo-500. Dark: indigo-300. */
.text-brand-300 {
    --tw-text-opacity: 1;
    color: #6366f1;
}
.dark .text-brand-300 {
    color: #a5b4fc;
}
.dark\:text-brand-300:is(.dark *) {
    --tw-text-opacity: 1;
    color: #a5b4fc;
}

/* ------------------------------------------------------------------ hovers */
.hover\:text-brand-400:hover {
    color: #4338ca;
}
.hover\:text-brand-300:hover {
    color: #6366f1;
}
.dark .hover\:text-brand-400:hover {
    color: #c7d2fe;
}
.dark .hover\:text-brand-300:hover {
    color: #a5b4fc;
}
.dark\:hover\:text-brand-400:hover:is(.dark *) {
    --tw-text-opacity: 1;
    color: #c7d2fe;
}
.group:hover .group-hover\:text-brand-400 {
    color: #4f46e5;
}
.dark .group:hover .group-hover\:text-brand-400 {
    color: #818cf8;
}
.group:hover .dark\:group-hover\:text-brand-400:is(.dark *) {
    --tw-text-opacity: 1;
    color: #a5b4fc;
}

/* ------------------------------------------------- rich-text / html-content
 * `[&_a]:text-brand-400` â€” links inside post bodies, comments and articles.
 * These matched no rule, so every embedded link rendered as plain body text
 * instead of a link colour in both themes. */
.\[\&_a\]\:text-brand-400 a {
    --tw-text-opacity: 1;
    color: #4f46e5;
}
.dark .\[\&_a\]\:text-brand-400 a {
    color: #818cf8;
}

/* -------------------------------------------------------- background / border */
/* Unread dot in Notifications, and the light-mode badge border in Community. */
.bg-brand-400 {
    --tw-bg-opacity: 1;
    background-color: #818cf8;
}
.dark .bg-brand-400 {
    background-color: #a5b4fc;
}
.border-brand-200 {
    --tw-border-opacity: 1;
    border-color: #ddd6fe;
}

/* --------------------------------------------------------------- gradients */
/* Community card covers: bg-gradient-to-br from-brand-400/20 to-brand-600/20
 * dark:from-brand-800/30 dark:to-brand-950/30 â€” the missing stops left the
 * gradient stops empty, so the cover rendered flat. */
.from-brand-400\/20 {
    --tw-gradient-from: rgb(129 140 248 / .2) var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(129 140 248 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-brand-950 {
    --tw-gradient-to: #1e1b4b var(--tw-gradient-to-position);
}
.dark\:from-brand-800\/30:is(.dark *) {
    --tw-gradient-from: rgb(55 48 163 / .3) var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(55 48 163 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:to-brand-950\/30:is(.dark *) {
    --tw-gradient-to: rgb(30 27 75 / .3) var(--tw-gradient-to-position);
}
.dark\:from-brand-950\/40:is(.dark *) {
    --tw-gradient-from: rgb(30 27 75 / .4) var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(30 27 75 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.dark\:from-brand-950\/50:is(.dark *) {
    --tw-gradient-from: rgb(30 27 75 / .5) var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(30 27 75 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}

/* ==========================================================================
 * PART 2 â€” TEXT CONTRAST (both themes)
 *
 * How the app themes itself: the bundle maps the whole slate scale onto two
 * CSS variables per stop and re-declares every utility with !important:
 *
 *   :root { --slate-950-rgb: 255,255,255; ... }   <- light mode INVERTS the
 *   .dark { --slate-950-rgb: 2,6,23; ... }            scale (950 == white)
 *   .text-slate-700 { color: rgb(var(--slate-700-rgb)) !important }
 *
 * Two consequences, both fixed below with values measured against WCAG AA
 * (4.5:1 normal text, 3:1 large):
 *
 *  1. Muted text fails AA in BOTH themes.
 *     light --slate-600 = #adbbc8 (1.9:1 on white), --slate-500 = #808fa5
 *     (3.3:1); dark --slate-500 = #64748b (3.75:1 on the card), --slate-700
 *     = #334155 (1.7:1). Timestamps, handles, separators, badges, "Quick
 *     Actions" captions and widget headings all used these.
 *
 *  2. The !important map silently defeats every `dark:` variant that shares
 *     an element with a slate utility, because `!important` outranks the
 *     `:is(.dark *)` selector's specificity. `text-slate-700
 *     dark:text-slate-200` therefore ALWAYS rendered the slate-700 theme
 *     value - in dark mode that is #334155 on #0f172a, i.e. 1.7:1, the
 *     "Sign in to message" heading. The dark: rules below restore !important
 *     so the author's dark-mode intent wins again.
 *
 * Values are per-theme: a bare utility carries the LIGHT colour and the
 * `.dark` rule the DARK colour, so one class reads correctly either way.
 * Background utilities are deliberately left alone - only text is touched.
 * ========================================================================== */

/* ---------------------------------------------------- muted slate, LIGHT ---
 * Lightest stop is capped at #64748b: that is the lightest grey that still
 * clears 4.5:1 on white AND on the slate-50 card surface. */
.text-slate-500 { color: #526480 !important; }   /* 6.01 / 5.75 */
.text-slate-600 { color: #5a6a80 !important; }   /* 5.51 / 5.27 */
.text-slate-700 { color: #64748b !important; }   /* 4.76 / 4.55 */
.text-slate-800 { color: #475569 !important; }   /* 7.58 / 7.24 */

/* ---------------------------------------------------- muted slate, DARK ---
 * Lifted so the lowest stop still clears 4.5:1 on the slate-900 card. */
.dark .text-slate-500 { color: #7d8ca4 !important; }   /* 5.24 / 5.92 */
.dark .text-slate-600 { color: #8494aa !important; }   /* 5.78 / 6.53 */
.dark .text-slate-700 { color: #8b9ab0 !important; }   /* 6.25 / 7.06 */
.dark .text-slate-800 { color: #94a3b8 !important; }   /* 6.96 / 7.87 */

/* ---- dark: variants must beat the !important slate map above ---- */
.dark\:text-slate-100:is(.dark *) { --tw-text-opacity: 1; color: #f1f5f9 !important; }
.dark\:text-slate-200:is(.dark *) { --tw-text-opacity: 1; color: #e2e8f0 !important; }
.dark\:text-slate-300:is(.dark *) { --tw-text-opacity: 1; color: #cbd5e1 !important; }
.dark\:text-slate-400:is(.dark *) { --tw-text-opacity: 1; color: #94a3b8 !important; }
.dark\:text-slate-500:is(.dark *) { --tw-text-opacity: 1; color: #7d8ca4 !important; }
.dark\:text-slate-600:is(.dark *) { --tw-text-opacity: 1; color: #8494aa !important; }
.dark\:text-slate-700:is(.dark *) { --tw-text-opacity: 1; color: #8b9ab0 !important; }
.dark\:text-slate-800:is(.dark *) { --tw-text-opacity: 1; color: #94a3b8 !important; }
.dark\:hover\:text-slate-200:hover:is(.dark *) { --tw-text-opacity: 1; color: #e2e8f0 !important; }
.dark\:hover\:text-slate-300:hover:is(.dark *) { --tw-text-opacity: 1; color: #cbd5e1 !important; }
.dark\:hover\:text-slate-400:hover:is(.dark *) { --tw-text-opacity: 1; color: #94a3b8 !important; }
.group:hover .dark\:group-hover\:text-slate-200:is(.dark *) { color: #e2e8f0 !important; }
.group:hover .dark\:group-hover\:text-slate-300:is(.dark *) { color: #cbd5e1 !important; }

/* ------------------------------------------- accent text, LIGHT (AA) ----
 * amber-400 (#fbbf24) is 1.6:1 on white and emerald-400 (#34d399) 1.9:1 -
 * used by trending ranks, point scores, status pills, the "LIVE" dot and
 * icon accents. Light mode moves them to their 600 step (the pattern
 * ModerationPanel already uses: `text-emerald-600 dark:text-emerald-400`);
 * dark mode keeps the original 400 tint, which is correct on dark cards.
 * The 300 steps are the hover partners and follow the same rule. */
.text-amber-400   { color: #b45309; }   /* 5.02 / 4.80 */
.text-amber-300   { color: #a16207; }   /* 4.92 / 4.71 */
.text-emerald-400 { color: #047857; }   /* 5.48 / 5.24 */
.text-emerald-300 { color: #065f46; }
.text-rose-400    { color: #be123c; }   /* 6.29 / 6.01 */
.text-rose-300    { color: #9f1239; }
.text-red-400     { color: #b91c1c; }   /* 6.47 / 6.18 */
.text-red-300     { color: #991b1b; }
.text-orange-400  { color: #c2410c; }   /* 5.18 / 4.95 */
.text-orange-300  { color: #9a3412; }
.text-sky-400     { color: #0369a1; }   /* 5.93 / 5.67 */
.text-sky-300     { color: #075985; }
.text-cyan-400    { color: #0e7490; }   /* 5.36 / 5.12 */
.text-cyan-300    { color: #155e75; }
.text-teal-400    { color: #0f766e; }   /* 5.47 / 5.23 */
.text-teal-300    { color: #115e59; }
.text-blue-400    { color: #1d4ed8; }   /* 6.70 / 6.41 */
.text-blue-300    { color: #1e40af; }
.text-indigo-400  { color: #4338ca; }   /* 7.90 / 7.55 */
.text-indigo-300  { color: #3730a3; }
.text-violet-400  { color: #6d28d9; }   /* 7.10 / 6.79 */
.text-violet-300  { color: #5b21b6; }
.text-purple-400  { color: #7e22ce; }   /* 6.98 / 6.67 */
.text-purple-300  { color: #6b21a8; }
.text-fuchsia-400 { color: #a21caf; }   /* 6.32 / 6.04 */
.text-fuchsia-300 { color: #86198f; }
.text-pink-400    { color: #be185d; }   /* 6.04 / 5.77 */
.text-pink-300    { color: #9d174d; }
.text-green-400   { color: #15803d; }   /* 5.02 / 4.79 */
.text-green-300   { color: #166534; }
.text-lime-400    { color: #4d7c0f; }   /* 4.99 / 4.77 */
.text-lime-300    { color: #3f6212; }
.text-yellow-400  { color: #a16207; }   /* 4.92 / 4.71 */
.text-yellow-300  { color: #854d0e; }

/* dark mode keeps the original tints (they are correct on dark surfaces) */
.dark .text-amber-400   { color: #fbbf24; }
.dark .text-amber-300   { color: #fcd34d; }
.dark .text-emerald-400 { color: #34d399; }
.dark .text-emerald-300 { color: #6ee7b7; }
.dark .text-rose-400    { color: #fb7185; }
.dark .text-rose-300    { color: #fda4af; }
.dark .text-red-400     { color: #f87171; }
.dark .text-red-300     { color: #fca5a5; }
.dark .text-orange-400  { color: #fb923c; }
.dark .text-orange-300  { color: #fdba74; }
.dark .text-sky-400     { color: #38bdf8; }
.dark .text-sky-300     { color: #7dd3fc; }
.dark .text-cyan-400    { color: #22d3ee; }
.dark .text-cyan-300    { color: #67e8f9; }
.dark .text-teal-400    { color: #2dd4bf; }
.dark .text-teal-300    { color: #5eead4; }
.dark .text-blue-400    { color: #60a5fa; }
.dark .text-blue-300    { color: #93c5fd; }
.dark .text-indigo-400  { color: #818cf8; }
.dark .text-indigo-300  { color: #a5b4fc; }
.dark .text-violet-400  { color: #a78bfa; }
.dark .text-violet-300  { color: #c4b5fd; }
.dark .text-purple-400  { color: #c084fc; }
.dark .text-purple-300  { color: #d8b4fe; }
.dark .text-fuchsia-400 { color: #e879f9; }
.dark .text-fuchsia-300 { color: #f0abfc; }
.dark .text-pink-400    { color: #f472b6; }
.dark .text-pink-300    { color: #f9a8d4; }
.dark .text-green-400   { color: #4ade80; }
.dark .text-green-300   { color: #86efac; }
.dark .text-lime-400    { color: #a3e635; }
.dark .text-lime-300    { color: #bef264; }
.dark .text-yellow-400  { color: #facc15; }
.dark .text-yellow-300  { color: #fde047; }

/* ------------------------------------------ profile badges (gradient) ---
 * Experience/education initials: white text on a 600->600 gradient is only
 * 2.9-3.8:1. Both stops drop to 700/800, which lifts white to >=5:1 while
 * keeping the hue. Each utility is used exactly once in the bundle, so the
 * override is scoped to this one component family. */
.from-yellow-600 {
    --tw-gradient-from: #a16207 var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(161 98 7 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-amber-600 { --tw-gradient-to: #92400e var(--tw-gradient-to-position); }
.from-cyan-600 {
    --tw-gradient-from: #0e7490 var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(14 116 144 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-blue-600 { --tw-gradient-to: #1e40af var(--tw-gradient-to-position); }
.from-emerald-600 {
    --tw-gradient-from: #047857 var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(4 120 87 / 0) var(--tw-gradient-to-position);
    --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to);
}
.to-teal-600 { --tw-gradient-to: #115e59 var(--tw-gradient-to-position); }

/* ------------------------------------------- Hobbies & Interests pills ---
 * `bg-rose-900/30 text-rose-300 border-rose-700/40` with no dark: escape
 * hatch: dark-mode-only colours. On the white card the text was #fda4af on
 * a pale rose wash - 1.5:1, effectively invisible. Light mode gets a real
 * rose pill; dark mode keeps exactly the original look. */
.bg-rose-900\/30.text-rose-300 {
    background-color: #fff1f2;             /* rose-50  */
    color: #be123c;                        /* rose-700, 6.0:1 on rose-50 */
    border-color: #fecdd3;                 /* rose-200 */
}
.dark .bg-rose-900\/30.text-rose-300 {
    background-color: rgb(136 19 55 / .3);
    color: #fda4af;
    border-color: rgb(190 18 60 / .4);
}

/* ----------------------------------- Discovery / Shortcuts widgets ----- */
 * The widget injects its own <style> whose custom properties are tuned for
 * dark mode (--text-secondary: #94a3b8 on a white sidebar is 2.45:1) and it
 * ships dark-mode overrides for some properties but none for the text
 * colours. Supply the light-mode values here; .dark is left untouched so
 * the injected rules keep working. */
:root:not(.dark) #custom-feed-widget-container {
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;
}
:root:not(.dark) #custom-feed-widget-container .feed-ticker-live-status {
    color: #047857;                        /* was #10b981, 2.4:1 on white */
}
:root:not(.dark) #custom-feed-widget-container .feed-ticker-live-dot {
    background-color: #047857;
}

/* ==========================================================================
 * PART 3 â€” MID-SCALE ACCENT TEXT & DARK-ONLY PILLS (both themes)
 *
 * The accent sweep above stopped at the 400 step because 400 was the darkest
 * step the source used bare. Three more families still fail WCAG AA:
 *
 *  1. 500/600 steps in LIGHT mode. `text-rose-500` (like buttons), `text-
 *     emerald-500` ("Online now", username-available), `text-amber-500`
 *     ("From a non-connected member", warning icons), `text-red-500` (the
 *     Messages error banner on bg-red-50), `text-green-500` ("Active now"),
 *     `text-blue-500` (verified badge), `text-orange-500` (angry reaction)
 *     and `text-indigo-500` (checkboxes) are all 2.1-4.5:1 on white. The
 *     600 steps written bare - `text-emerald-600` / `text-blue-600` /
 *     `text-red-600` in Messages ("Move to Inbox", "Send a message", "Add",
 *     "Block member") - are 3.2-3.8:1. Each is lifted to its 700 step, the
 *     same move PART 2 made for the 400s. Dark mode is left alone: 500 and
 *     600 are correct on the dark cards.
 *
 *  2. The same three bare 600s in DARK mode. Because they carry no `dark:`
 *     escape hatch (only the bg does), they render at 2.8-4.7:1 on the
 *     slate-800/900 thread surfaces. The `.dark` rules below restore the
 *     author's dark intent - the -400 step - which is exactly what the
 *     escaped sibling classes (`text-emerald-600 dark:text-emerald-400`)
 *     already resolve to, so the two forms now agree in both themes.
 *
 *  3. Dark-only badge pills with no `dark:` escape - the AdminPanel role/
 *     severity/system-status badges (`bg-amber-900/50 text-amber-300
 *     border-amber-700`, and the blue/purple/red/emerald siblings). The
 *     bundle never emits a light-mode value for these, so on the white card
 *     the 300-step text sat on a mud-grey 900-at-50% wash at ~1.5:1 - the
 *     same failure as the "Dreaming" pill in PART 2. Light mode gets a real
 *     {hue}-50 pill with a 700-step label; dark mode keeps the original
 *     look byte-for-byte (measured 5.6-9.1:1 on slate-900, all pass).
 *
 * Same convention as PART 2: bare utility = LIGHT value, `.dark` = DARK.
 * Hovers are scoped `:root:not(.dark)` so the dark-mode tints - which are
 * correct on dark surfaces - keep falling through from the bundle.
 * ========================================================================== */

/* ------------------------------------------- accent 500 steps, LIGHT --- */
:root:not(.dark) .text-amber-500   { color: #b45309; }   /* 5.02 (was 2.15) */
:root:not(.dark) .text-emerald-500 { color: #047857; }   /* 5.48 (was 2.54) */
:root:not(.dark) .text-green-500   { color: #15803d; }   /* 5.02 (was 2.28) */
:root:not(.dark) .text-orange-500  { color: #c2410c; }   /* 5.18 (was 2.80) */
:root:not(.dark) .text-red-500     { color: #b91c1c; }   /* 6.47 (was 3.76) */
:root:not(.dark) .text-rose-500    { color: #be123c; }   /* 6.29 (was 3.67) */
:root:not(.dark) .text-blue-500    { color: #1d4ed8; }   /* 6.70 (was 3.68) */

/* ------------------------------------------- accent 600 steps, LIGHT ---
 * blue/red-600 already pass on white; they are lifted anyway so the tint
 * stays uniform inside the {hue}-50 pills and washed surfaces. */
:root:not(.dark) .text-amber-600   { color: #b45309; }   /* 5.02 (was 3.19) */
:root:not(.dark) .text-emerald-600 { color: #047857; }   /* 5.48 (was 3.77) */
:root:not(.dark) .text-green-600   { color: #15803d; }   /* 5.02 (was 3.30) */
:root:not(.dark) .text-orange-600  { color: #c2410c; }   /* 5.18 (was 3.56) */
:root:not(.dark) .text-red-600     { color: #b91c1c; }   /* 6.47 (was 4.83) */
:root:not(.dark) .text-blue-600    { color: #1d4ed8; }   /* 6.70 (was 5.17) */
:root:not(.dark) .text-indigo-600  { color: #4338ca; }   /* 7.90 (was 6.29) */

/* ------------------------------- bare 600 steps, DARK (no escape) ----
 * Matches the dark: siblings' own values, so escaped and unescaped forms
 * of the same class now render identically. */
.dark .text-emerald-600 { color: #34d399; }   /* 7.61 on slate-800 (was 3.88) */
.dark .text-blue-600    { color: #60a5fa; }   /* 5.75 on slate-800 (was 2.83) */
.dark .text-red-600     { color: #f87171; }   /* 5.29 on slate-800 (was 3.03) */

/* -------------------------------------- accent hovers, LIGHT ----
 * Hover states were never part of the PART 2 sweep; the bundle's hover
 * tints are the raw light tints and fail the moment the pointer lands on
 * an un-liked post (rose-400, 2.8:1), a sidebar row (sky/amber/violet,
 * 1.3-3.1:1) or a dropdown item. Scoped so dark keeps the bundle tint. */
:root:not(.dark) .hover\:text-amber-200:hover  { color: #854d0e; }
:root:not(.dark) .hover\:text-amber-300:hover  { color: #a16207; }
:root:not(.dark) .hover\:text-amber-400:hover  { color: #b45309; }
:root:not(.dark) .hover\:text-blue-500:hover   { color: #1d4ed8; }
:root:not(.dark) .hover\:text-emerald-400:hover{ color: #047857; }
:root:not(.dark) .hover\:text-emerald-500:hover{ color: #047857; }
:root:not(.dark) .hover\:text-green-500:hover  { color: #15803d; }
:root:not(.dark) .hover\:text-indigo-300:hover { color: #3730a3; }
:root:not(.dark) .hover\:text-red-300:hover    { color: #991b1b; }
:root:not(.dark) .hover\:text-red-400:hover    { color: #b91c1c; }
:root:not(.dark) .hover\:text-red-600:hover    { color: #b91c1c; }
:root:not(.dark) .hover\:text-rose-300:hover   { color: #9f1239; }
:root:not(.dark) .hover\:text-rose-400:hover   { color: #be123c; }
:root:not(.dark) .hover\:text-sky-300:hover    { color: #075985; }
:root:not(.dark) .hover\:text-sky-400:hover    { color: #0369a1; }
:root:not(.dark) .hover\:text-violet-300:hover { color: #5b21b6; }
:root:not(.dark) .group-hover\:text-emerald-400 { color: #047857; }
:root:not(.dark) .group-hover\:text-rose-400    { color: #be123c; }

/* ------------------------------------------ AdminPanel badge pills ---
 * Role / severity / system-status badges, e.g. `bg-amber-900/50
 * text-amber-300 border-amber-700`, always written in dark-mode stops.
 * LIGHT (4.8-6.5:1): 50-wash background, 700-step label, 200-step
 * border. DARK: original values untouched. */
:root:not(.dark) .bg-amber-900\/50.text-amber-300 {
    background-color: #fffbeb;                 /* amber-50   */
    color: #b45309;                            /* amber-700, 4.8:1 */
    border-color: #fde68a;                     /* amber-200  */
}
.dark .bg-amber-900\/50.text-amber-300 {
    background-color: rgb(120 53 15 / .5);     /* amber-900/50 */
    color: #fcd34d;                            /* amber-300 */
    border-color: #b45309;                     /* amber-700 */
}
:root:not(.dark) .bg-blue-900\/50.text-blue-300 {
    background-color: #eff6ff;                 /* blue-50    */
    color: #1d4ed8;                            /* blue-700, 6.2:1 */
    border-color: #bfdbfe;                     /* blue-200   */
}
.dark .bg-blue-900\/50.text-blue-300 {
    background-color: rgb(30 58 138 / .5);     /* blue-900/50 */
    color: #93c5fd;                            /* blue-300 */
    border-color: #1d4ed8;                     /* blue-700 */
}
:root:not(.dark) .bg-purple-900\/50.text-purple-300 {
    background-color: #faf5ff;                 /* purple-50  */
    color: #7e22ce;                            /* purple-700, 6.5:1 */
    border-color: #e9d5ff;                     /* purple-200 */
}
.dark .bg-purple-900\/50.text-purple-300 {
    background-color: rgb(88 28 135 / .5);     /* purple-900/50 */
    color: #d8b4fe;                            /* purple-300 */
    border-color: #7e22ce;                     /* purple-700 */
}
:root:not(.dark) .bg-red-900\/50.text-red-300 {
    background-color: #fef2f2;                 /* red-50     */
    color: #b91c1c;                            /* red-700, 5.9:1 */
    border-color: #fecaca;                     /* red-200    */
}
.dark .bg-red-900\/50.text-red-300 {
    background-color: rgb(127 29 29 / .5);     /* red-900/50 */
    color: #fca5a5;                            /* red-300 */
    border-color: #b91c1c;                     /* red-700 */
}
:root:not(.dark) .bg-emerald-900\/50.text-emerald-300 {
    background-color: #ecfdf5;                 /* emerald-50 */
    color: #047857;                            /* emerald-700, 5.2:1 */
    border-color: #a7f3d0;                     /* emerald-200 */
}
.dark .bg-emerald-900\/50.text-emerald-300 {
    background-color: rgb(6 78 59 / .5);       /* emerald-900/50 */
    color: #6ee7b7;                            /* emerald-300 */
    border-color: #047857;                     /* emerald-700 */
}

/* Main header horizontal padding: desktop/tablet 20px, mobile 10px */
header.hidden.md\:block > div.px-\[40px\] {
  padding-left: 10px;
  padding-right: 10px;
}
@media (min-width: 768px) {
  header.hidden.md\:block > div.px-\[40px\] {
    padding-left: 20px;
    padding-right: 20px;
  }
}
/* Tablet: compact top navigation (icon-only links, tighter gaps) so the
   header never overflows small tablets; labels stay in the DOM for AT. */
@media (min-width: 768px) and (max-width: 1023px) {
  header.hidden.md\:block nav {
    gap: 2px !important;
  }
  header.hidden.md\:block nav a {
    min-width: 42px !important;
    padding-left: 2px !important;
    padding-right: 2px !important;
  }
  header.hidden.md\:block nav a > span {
    font-size: 0 !important;
    line-height: 0 !important;
    margin-top: 0 !important;
  }
}
header.md\:hidden {
  padding-left: 10px !important;
  padding-right: 10px !important;
}
