/* ============================================================
   EMDS Website — Global Stylesheet
   Modern GIS Aesthetic | Forest Green + Slate Blue Palette
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
    --color-primary:        #2d6a4f;
    --color-primary-dark:   #1b4332;
    --color-primary-light:  #40916c;
    --color-accent:         #74c69d;
    --color-blue:           #1e3a5f;
    --color-blue-mid:       #2d5282;
    --color-blue-light:     #4a90d9;
    --color-surface:        #f8faf9;
    --color-surface-2:      #eef3ef;
    --color-border:         #d1dbd3;
    --color-text:           #1a2e1f;
    --color-text-muted:     #4a5e50;
    --color-text-light:     #6b7c70;
    --color-white:          #ffffff;
    --color-qgis-gold:      #f4a261;
    --font-body:            'Inter', system-ui, -apple-system, sans-serif;
    --font-mono:            'JetBrains Mono', 'Cascadia Code', 'Courier New', monospace;
    --nav-height:           68px;
    --radius-sm:            4px;
    --radius-md:            8px;
    --radius-lg:            16px;
    --shadow-sm:            0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-md:            0 4px 12px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.07);
    --shadow-lg:            0 12px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.08);
    --transition:           all 0.2s ease;

    /* ----------------------------------------------------------------
       THEME-AWARE SEMANTIC TOKENS
       These drive the elements that previously hard-coded light-theme
       colors (heroes, dark CTA sections, low-alpha tint cards, and the
       text that sits on dark surfaces). Light values below MUST equal
       the original hard-coded values so the Light theme is unchanged.
       They are overridden per-theme in the [data-theme=...] blocks.
       ---------------------------------------------------------------- */

    /* Heroes & dark sections ---------------------------------------- */
    /* Home hero: forest-green -> slate -> navy directional gradient
       plus two radial glows. Split into overlay + base so themes can
       restyle the glows independently of the directional gradient. */
    --hero-glow-1:        radial-gradient(ellipse 55% 60% at 88% 20%, rgba(116,198,157,0.22) 0%, transparent 70%);
    --hero-glow-2:        radial-gradient(ellipse 45% 50% at 8% 85%, rgba(30,58,95,0.45) 0%, transparent 65%);
    --hero-gradient:      linear-gradient(158deg, #061510 0%, #0f2d1a 18%, #1b4332 42%, #254a6e 68%, #1a3356 82%, #0d1f3c 100%);
    /* Shared product/page hero (page-hero) base gradient. */
    --page-hero-gradient: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-blue) 100%);
    /* Dark CTA section background (section-dark). */
    --section-dark-bg:    var(--color-primary-dark);

    /* Text that sits on hero / dark sections ------------------------ */
    --on-dark-text:        #ffffff;
    --on-dark-text-muted:  rgba(255,255,255,0.82);
    --on-dark-text-faint:  rgba(255,255,255,0.7);
    /* Glassy chips / pills / stat-cards on dark surfaces. */
    --on-dark-fill:        rgba(255,255,255,0.1);
    --on-dark-fill-strong: rgba(255,255,255,0.15);
    --on-dark-fill-hover:  rgba(255,255,255,0.2);
    --on-dark-border:      rgba(255,255,255,0.2);

    /* Low-alpha tint card backgrounds ------------------------------- */
    /* Each reads correctly on its own theme's page surface. Light =
       original light-page tints. */
    --tint-green:          rgba(45,106,79,0.12);
    --tint-green-soft:     rgba(64,145,108,0.12);   /* card-icon / section-label green */
    --tint-green-faint:    rgba(45,106,79,0.06);    /* faint hover / focus wash */
    --tint-blue:           rgba(74,144,217,0.12);
    --tint-navy:           rgba(30,58,95,0.10);     /* darker-blue tint (cdp engine, etc.) */
    --tint-gold:           rgba(244,162,97,0.15);
    --tint-gold-strong:    rgba(244,162,97,0.2);    /* release/version "new" tags */
    --tint-purple:         rgba(114,49,163,0.10);
    --tint-coral:          rgba(231,111,81,0.16);   /* advanced/coral badge tint */
    --tint-red:            rgba(229,57,53,0.1);     /* pdf icon */

    /* Text colors for the difficulty/category badges (read on the tint above). */
    --diff-green-text:     var(--color-primary-dark);
    --diff-blue-text:      var(--color-blue);
    --diff-coral-text:     #b1492d;
    --tag-gold-text:       #c45d0a;

    /* Brand colors (product identity — stay gold/blue in EVERY theme) */
    --brand-qgis-gradient: linear-gradient(135deg, #f4a261, #e76f51);
    --brand-qgis-gold:     #f4a261;
    /* QGIS product hero: dark base -> QGIS coral. Keeps the coral brand end
       in every theme; only the dark start adapts per-theme. */
    --qgis-hero-gradient:  linear-gradient(135deg, #1b4332 0%, #c45d0a 100%);
    /* Gold-highlighted "release" card: warm-white top -> card surface. */
    --release-highlight-bg: linear-gradient(180deg, #fffdf9 0%, var(--color-white) 100%);
    /* Sticky nav bar (translucent, blurred). */
    --nav-bg:              rgba(255,255,255,0.97);
    /* Faint green nav-link hover wash. */
    --nav-link-hover-bg:   rgba(45,106,79,0.07);
}

/* --- Dark theme (FOUNDATION, opt-in only) ---
   Activated strictly by setting data-theme="dark" on <html> or <body>.
   There is intentionally NO @media (prefers-color-scheme: dark) rule, so the
   site renders identically to today's light design unless a theme toggle
   explicitly opts in. A toggle can be wired later (out of scope here).

   This redefines only the surface / text / border tokens (page chrome:
   backgrounds, nav, footer, cards, borders, body text). Accent greens, golds
   and blues are kept as-is so they stay readable on dark surfaces.

   NOTE: this is a foundation, not a complete dark skin. Some cards/badges use
   hardcoded rgba(...) accent backgrounds applied inline in the .razor pages
   (e.g. rgba(74,144,217,0.12), rgba(244,162,97,0.15)); those tints won't fully
   adapt yet. That's acceptable — the page chrome adapts via the tokens below. */
[data-theme="dark"] {
    --color-surface:        #182320;
    --color-surface-2:      #1f2d28;
    --color-border:         #33433c;
    --color-text:           #e8efe9;
    --color-text-muted:     #aebcb2;
    --color-text-light:     #8a9890;
    --color-white:          #121b18;

    /* Heroes & dark sections: lean neutral-dark, keep a subtle green->slate
       drift so the brand reads but blends with the dark chrome. */
    --hero-glow-1:        radial-gradient(ellipse 55% 60% at 88% 20%, rgba(116,198,157,0.14) 0%, transparent 70%);
    --hero-glow-2:        radial-gradient(ellipse 45% 50% at 8% 85%, rgba(30,58,95,0.40) 0%, transparent 65%);
    --hero-gradient:      linear-gradient(158deg, #0a0f0d 0%, #11201a 30%, #15302a 55%, #16283c 80%, #101c30 100%);
    --page-hero-gradient: linear-gradient(135deg, #11201a 0%, #14253c 100%);
    --section-dark-bg:    #11201a;

    /* on-dark text reads the same on these darker surfaces. */
    --on-dark-text:        #eef3ef;
    --on-dark-text-muted:  rgba(232,239,233,0.80);
    --on-dark-text-faint:  rgba(232,239,233,0.65);
    --on-dark-fill:        rgba(255,255,255,0.06);
    --on-dark-fill-strong: rgba(255,255,255,0.10);
    --on-dark-fill-hover:  rgba(255,255,255,0.14);
    --on-dark-border:      rgba(255,255,255,0.14);

    /* Tints: lift alpha so they register on the dark surface. */
    --tint-green:          rgba(116,198,157,0.16);
    --tint-green-soft:     rgba(116,198,157,0.16);
    --tint-green-faint:    rgba(116,198,157,0.08);
    --tint-blue:           rgba(110,170,230,0.18);
    --tint-navy:           rgba(110,170,230,0.14);
    --tint-gold:           rgba(244,162,97,0.20);
    --tint-gold-strong:    rgba(244,162,97,0.26);
    --tint-purple:         rgba(170,120,230,0.18);
    --tint-coral:          rgba(231,111,81,0.20);
    --tint-red:            rgba(240,110,100,0.16);
    /* Badge text lightened so it reads on dark-surface tints. */
    --diff-green-text:     #74c69d;
    --diff-blue-text:      #7fb2e8;
    --diff-coral-text:     #ec8e76;
    --tag-gold-text:       #f0a868;
    /* QGIS hero: neutral-dark start, coral brand end retained. */
    --qgis-hero-gradient:  linear-gradient(135deg, #14201b 0%, #c45d0a 100%);
    /* Release-highlight: warm gold wash over the dark card surface. */
    --release-highlight-bg: linear-gradient(180deg, rgba(244,162,97,0.10) 0%, var(--color-white) 100%);
    --nav-bg:              rgba(24,35,32,0.95);
    --nav-link-hover-bg:   rgba(116,198,157,0.10);
}

/* --- Blueprint theme (navy cartographer, opt-in) ---
   Activated by data-theme="blueprint". Overrides the chrome tokens AND the primary
   accent (green -> cyan/teal) for a drafting-table / blueprint feel. As with dark,
   inline hardcoded gradients/greens in the .razor pages won't fully adapt. */
[data-theme="blueprint"] {
    --color-primary:        #4ea3d9;
    --color-primary-dark:   #2d7fb8;
    --color-primary-light:  #6fb7e3;
    --color-accent:         #5ad1c4;
    --color-surface:        #16263d;
    --color-surface-2:      #1d3046;
    --color-border:         #2e4663;
    --color-text:           #e3edf7;
    --color-text-muted:     #9fb4cc;
    --color-text-light:     #7d93ad;
    --color-white:          #0f1b2d;

    /* Heroes & dark sections: navy drafting-table base with cyan/teal glow. */
    --hero-glow-1:        radial-gradient(ellipse 55% 60% at 88% 20%, rgba(90,209,196,0.20) 0%, transparent 70%);
    --hero-glow-2:        radial-gradient(ellipse 45% 50% at 8% 85%, rgba(78,163,217,0.30) 0%, transparent 65%);
    --hero-gradient:      linear-gradient(158deg, #0a1626 0%, #0e2138 30%, #123052 55%, #103e63 80%, #0c2742 100%);
    --page-hero-gradient: linear-gradient(135deg, #102a47 0%, #0c2138 100%);
    --section-dark-bg:    #0e2138;

    --on-dark-text:        #e3edf7;
    --on-dark-text-muted:  rgba(227,237,247,0.82);
    --on-dark-text-faint:  rgba(227,237,247,0.68);
    --on-dark-fill:        rgba(120,190,230,0.10);
    --on-dark-fill-strong: rgba(120,190,230,0.16);
    --on-dark-fill-hover:  rgba(120,190,230,0.22);
    --on-dark-border:      rgba(120,190,230,0.24);

    /* Tints: cyan/teal/blue family on the navy surface; gold stays gold. */
    --tint-green:          rgba(90,209,196,0.16);
    --tint-green-soft:     rgba(90,209,196,0.16);
    --tint-green-faint:    rgba(90,209,196,0.08);
    --tint-blue:           rgba(78,163,217,0.18);
    --tint-navy:           rgba(120,190,230,0.14);
    --tint-gold:           rgba(244,162,97,0.20);
    --tint-gold-strong:    rgba(244,162,97,0.26);
    --tint-purple:         rgba(150,140,235,0.18);
    --tint-coral:          rgba(231,111,81,0.20);
    --tint-red:            rgba(240,120,110,0.16);
    /* Badge text lightened so it reads on the navy-surface tints. */
    --diff-green-text:     #6fd6c8;
    --diff-blue-text:      #7fc0ef;
    --diff-coral-text:     #ec8e76;
    --tag-gold-text:       #f0a868;
    /* QGIS hero: navy start, coral brand end retained. */
    --qgis-hero-gradient:  linear-gradient(135deg, #102a47 0%, #c45d0a 100%);
    /* Release-highlight: warm gold wash over the navy card surface. */
    --release-highlight-bg: linear-gradient(180deg, rgba(244,162,97,0.10) 0%, var(--color-white) 100%);
    --nav-bg:              rgba(22,38,61,0.95);
    --nav-link-hover-bg:   rgba(90,209,196,0.10);
}

/* --- Theme toggle button --- */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
    transition: var(--transition);
}
.theme-toggle:hover { transform: translateY(-1px); border-color: var(--color-primary); }
.theme-toggle:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }
.nav-cta .theme-toggle { margin-right: 0.5rem; }
.theme-toggle .theme-toggle-label { display: none; }
.theme-toggle-icon { display: inline-block; }

/* Mobile variant: full-width, labelled */
.theme-toggle-mobile {
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
    padding: 0.65rem 1rem;
    margin-top: 0.75rem;
    font-size: 1rem;
}
.theme-toggle-mobile .theme-toggle-label { display: inline; }

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font-body);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
}

/* --- Typography --- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--color-text);
    margin-top: 0;
}
h1:focus { outline: none; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin-top: 0; margin-bottom: 1rem; }

a { color: var(--color-primary-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--color-primary); }

code, pre { font-family: var(--font-mono); font-size: 0.875em; }

/* --- Layout Utilities --- */
.container-site { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

.section        { padding: 5rem 0; }
.section-sm     { padding: 3rem 0; }
.section-dark   { background: var(--section-dark-bg); color: var(--on-dark-text); }
.section-surface  { background: var(--color-surface); }
.section-surface-2 { background: var(--color-surface-2); }

/* --- Section Labels & Titles --- */
.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-primary-light);
    background: var(--tint-green-soft);
    padding: 0.3rem 0.75rem;
    border-radius: 100px;
    margin-bottom: 1rem;
}
.section-label-blue { color: var(--color-blue-light); background: var(--tint-blue); }
.section-subtitle { font-size: 1.125rem; color: var(--color-text-muted); margin-bottom: 3rem; max-width: 600px; }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
    line-height: 1.4;
}
.btn-primary { background: var(--color-primary); color: #fff; border-color: var(--color-primary); }
.btn-primary:hover { background: var(--color-primary-dark); border-color: var(--color-primary-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-secondary { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn-secondary:hover { background: var(--color-primary); color: #fff; transform: translateY(-1px); }
.btn-outline-white { background: transparent; color: var(--on-dark-text); border-color: rgba(255,255,255,0.6); }
.btn-outline-white:hover { background: var(--on-dark-fill-strong); color: var(--on-dark-text); border-color: #fff; }
.btn-blue { background: var(--color-blue); color: #fff; border-color: var(--color-blue); }
.btn-blue:hover { background: var(--color-blue-mid); border-color: var(--color-blue-mid); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-lg { font-size: 1.0625rem; padding: 0.875rem 2rem; }
.btn-sm { font-size: 0.8125rem; padding: 0.4rem 1rem; }

/* --- Cards --- */
.card-emds {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    transition: var(--transition);
}
.card-emds:hover { box-shadow: var(--shadow-md); border-color: var(--color-accent); transform: translateY(-2px); }

.card-icon {
    width: 48px; height: 48px;
    background: var(--tint-green-soft);
    border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.25rem;
    font-size: 1.5rem;
}

/* --- Badges --- */
.badge-new {
    display: inline-flex; align-items: center; gap: 0.375rem;
    background: var(--brand-qgis-gradient); /* brand identity — gold in all themes */
    color: #fff;
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
    padding: 0.25rem 0.6rem; border-radius: 100px;
}
.badge-version {
    display: inline-block;
    background: rgba(30,58,95,0.1); color: var(--color-blue);
    font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500;
    padding: 0.2rem 0.6rem; border-radius: var(--radius-sm); border: 1px solid rgba(30,58,95,0.2);
}

/* --- Grids --- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; align-items: start; }

@media (max-width: 992px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .grid-2-1 { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
    .section { padding: 3.5rem 0; }
}

/* --- Code blocks --- */
.code-block {
    background: var(--color-primary-dark);
    color: var(--color-accent);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    padding: 1.25rem 1.5rem;
    border-radius: var(--radius-md);
    overflow-x: auto; line-height: 1.65;
}

/* --- Page hero (shared) --- */
.page-hero {
    background: var(--page-hero-gradient);
    color: var(--on-dark-text);
    padding: 5rem 0 4rem;
    position: relative; overflow: hidden;
}
.page-hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.page-hero h1 { color: var(--on-dark-text); margin-bottom: 1rem; }
.page-hero p  { color: var(--on-dark-text-muted); font-size: 1.125rem; max-width: 640px; }

/* --- Download cards --- */
.download-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    transition: var(--transition);
}
.download-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-primary-light); }
.download-card.featured { border: 2px solid var(--color-primary); }
.download-card .platform-icon { font-size: 2.5rem; margin-bottom: 1rem; display: block; }
.download-card .version-tag { font-family: var(--font-mono); font-size: 0.8125rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.download-card h3 { margin-bottom: 0.375rem; }
.download-card p  { color: var(--color-text-muted); font-size: 0.9375rem; }
.download-card .featured-badge {
    position: absolute; top: -1px; right: 1.5rem;
    background: var(--color-primary); color: #fff;
    font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
    padding: 0.25rem 0.75rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

/* --- PDF / case study cards --- */
.pdf-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    display: flex; gap: 1rem; align-items: flex-start;
    transition: var(--transition);
}
.pdf-card:hover { box-shadow: var(--shadow-sm); border-color: var(--color-primary-light); }
.pdf-icon {
    width: 40px; height: 40px;
    background: var(--tint-red);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0; font-size: 1.125rem; color: #e53935;
}
.pdf-card-body h5 { font-size: 0.9rem; margin-bottom: 0.25rem; line-height: 1.4; }
.pdf-card-body .pdf-meta { font-size: 0.8rem; color: var(--color-text-light); }

/* --- Footer --- */
.site-footer { background: var(--color-primary-dark); color: rgba(255,255,255,0.75); padding: 3.5rem 0 2rem; }
.site-footer h5 { color: #fff; font-size: 0.875rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 1.25rem; }
.site-footer a { color: rgba(255,255,255,0.65); display: block; margin-bottom: 0.5rem; font-size: 0.9rem; }
.site-footer a:hover { color: var(--color-accent); }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    margin-top: 2.5rem; padding-top: 1.5rem;
    font-size: 0.8125rem; color: rgba(255,255,255,0.45);
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap;
}

/* --- Utilities --- */
.text-muted-emds  { color: var(--color-text-muted); }
.text-green       { color: var(--color-primary-light); }
.text-blue        { color: var(--color-blue-light); }
.text-white       { color: #fff; }
.fw-600           { font-weight: 600; }
.mt-4 { margin-top: 2rem; } .mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.text-center { text-align: center; }

/* --- Layout utility classes (consolidated from repeated inline styles) --- */
/* Centered, wrapping flex row used for hero / CTA button groups. */
.u-flex-center { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
/* Wider gap + top alignment modifier for two-column grids. */
.u-grid-gap-lg { gap: 3rem; align-items: start; }
/* Horizontal centering for fixed-width blocks (pair with an inline max-width). */
.u-mx-auto { margin-left: auto; margin-right: auto; }
/* Full-width, centered button (e.g. form submit, sidebar download). */
.btn-block { width: 100%; justify-content: center; }
/* section-label variant for use on dark hero backgrounds. */
.section-label-hero { background: var(--on-dark-fill-strong); color: var(--on-dark-text); }

/* --- Blazor error --- */
#blazor-error-ui {
    background: #fee2e2; bottom: 0; box-shadow: 0 -1px 2px rgba(0,0,0,.1);
    display: none; left: 0; padding: .6rem 1.25rem .7rem;
    position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: .75rem; top: .5rem; }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbmsiPjwvc3ZnPg==) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem; color: white;
}
.blazor-error-boundary::after { content: "An error has occurred."; }
