/* =========================================================================
   Tec2020 — site.css
   Single-file stylesheet. Tokens → base → layout → components → utilities.
   ========================================================================= */

:root {
    /* Brand & surface colours */
    --c-charcoal: #2C2C2C;
    --c-blue: #1668B8;
    --c-blue-dark: #0F4F8C;
    --c-blue-soft: #E8F1FA;
    --c-bg: #FFFFFF;
    --c-bg-alt: #F7F7F8;
    --c-border: #E5E5E7;
    --c-muted: #6B6B6B;
    --c-success: #0F8C5A;
    --c-error: #C0392B;

    /* Spacing — 8pt grid */
    --s-1: 8px;
    --s-2: 16px;
    --s-3: 24px;
    --s-4: 32px;
    --s-6: 48px;
    --s-8: 64px;
    --s-12: 96px;
    --s-16: 128px;

    /* Typography */
    --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

    --t-display: 3.5rem;
    --t-h1: 2.5rem;
    --t-h2: 1.75rem;
    --t-h3: 1.25rem;
    --t-body: 1.0625rem;
    --t-small: 0.875rem;

    --lh-display: 1.1;
    --lh-h1: 1.15;
    --lh-h2: 1.25;
    --lh-h3: 1.35;
    --lh-body: 1.6;
    --lh-small: 1.5;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;

    --shadow-card: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.06);

    --container-max: 1200px;
    --reading-max: 720px;
}

/* ----- Reset / base ----- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--c-bg);
    color: var(--c-charcoal);
    font-family: var(--font-sans);
    font-size: var(--t-body);
    line-height: var(--lh-body);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-blue-dark); text-decoration: underline; }

h1, h2, h3, h4 { color: var(--c-charcoal); font-weight: 700; margin: 0 0 var(--s-2); letter-spacing: -0.01em; }
h1 { font-size: var(--t-h1); line-height: var(--lh-h1); }
h2 { font-size: var(--t-h2); line-height: var(--lh-h2); }
h3 { font-size: var(--t-h3); line-height: var(--lh-h3); }

p { margin: 0 0 var(--s-2); }
ul, ol { margin: 0 0 var(--s-2); padding-left: var(--s-3); }
li { margin-bottom: var(--s-1); }
li > ul { margin-top: var(--s-1); }

code, kbd, pre { font-family: var(--font-mono); font-size: 0.95em; }
hr { border: 0; border-top: 1px solid var(--c-border); margin: var(--s-6) 0; }

table { width: 100%; border-collapse: collapse; margin: 0 0 var(--s-3); }
th, td { padding: var(--s-1) var(--s-2); border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
th { font-weight: 600; color: var(--c-charcoal); }

/* Skip link for a11y */
.skip-link {
    position: absolute; top: -40px; left: 0;
    background: var(--c-charcoal); color: #fff; padding: var(--s-1) var(--s-2);
    z-index: 1000;
}
.skip-link:focus { top: 0; }

/* Focus ring — scoped to natively interactive elements only.
   Deliberately NOT including [tabindex]: Blazor's <FocusOnNavigate> sets
   tabindex="-1" on the H1 to move focus there for screen readers on each
   route change. Including [tabindex] here would paint a visible ring on
   the H1 every time the page loads, which the user didn't ask for. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--c-blue);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Headlines must never show a focus ring. They're not interactive — but
   Blazor's <FocusOnNavigate> can be re-added accidentally and the browser's
   UA stylesheet paints its own outline on programmatically focused elements
   with tabindex. Force it off in every state. */
h1, h2, h3, h4, h5, h6,
h1:focus, h2:focus, h3:focus, h4:focus, h5:focus, h6:focus,
h1:focus-visible, h2:focus-visible, h3:focus-visible,
h4:focus-visible, h5:focus-visible, h6:focus-visible {
    outline: none !important;
    outline-offset: 0 !important;
}

/* ----- Layout primitives ----- */
.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--s-3); }
.container--narrow { max-width: var(--reading-max); }

.section { padding: var(--s-12) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--blue { background: var(--c-blue-soft); }
.section--charcoal { background: var(--c-charcoal); color: #fff; }
.section--charcoal h1, .section--charcoal h2, .section--charcoal h3 { color: #fff; }
.section--charcoal a { color: #fff; text-decoration: underline; }

.lead { font-size: 1.25rem; line-height: 1.5; color: var(--c-charcoal); max-width: var(--reading-max); }

.eyebrow {
    display: inline-block; text-transform: uppercase; letter-spacing: 0.08em;
    font-size: var(--t-small); font-weight: 600; color: var(--c-blue);
    margin-bottom: var(--s-2);
}

.muted { color: var(--c-muted); }

.grid { display: grid; gap: var(--s-3); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ----- Buttons ----- */
.btn {
    display: inline-flex; align-items: center; gap: var(--s-1);
    padding: 12px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: var(--t-body);
    border: 1.5px solid transparent;
    cursor: pointer; transition: background-color 120ms ease, color 120ms ease, border-color 120ms ease;
    text-decoration: none;
    line-height: 1;
}
.btn--primary { background: var(--c-blue); color: #fff; }
.btn--primary:hover { background: var(--c-blue-dark); color: #fff; text-decoration: none; }
.btn--secondary { background: transparent; color: var(--c-charcoal); border-color: var(--c-border); }
.btn--secondary:hover { background: var(--c-bg-alt); color: var(--c-charcoal); text-decoration: none; }
.btn--ghost { background: transparent; color: var(--c-blue); padding: 8px 0; }
.btn--ghost:hover { color: var(--c-blue-dark); }
.btn .arrow { transition: transform 120ms ease; }
.btn:hover .arrow { transform: translateX(2px); }

/* ----- Header ----- */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255,255,255,0.92); backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--c-border);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: var(--s-2) var(--s-3);
    max-width: var(--container-max); margin: 0 auto;
    gap: var(--s-3);
}
.site-header__logo img { height: 28px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: var(--s-3); }
.site-header__nav a {
    color: var(--c-charcoal); font-weight: 500; font-size: var(--t-body);
    padding: var(--s-1) 0;
}
.site-header__nav a:hover { color: var(--c-blue); text-decoration: none; }
.site-header__nav a.active { color: var(--c-blue); }
.site-header__cta { display: flex; align-items: center; gap: var(--s-2); }
.has-submenu { position: relative; }
.has-submenu > a::after { content: " ▾"; font-size: 0.7em; color: var(--c-muted); }
.submenu {
    position: absolute; top: calc(100% + 4px); left: 0; min-width: 280px;
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-md);
    box-shadow: var(--shadow-card-hover);
    padding: var(--s-1); display: none;
}
.has-submenu:hover .submenu, .has-submenu:focus-within .submenu { display: block; }
.submenu a {
    display: block; padding: var(--s-1) var(--s-2); border-radius: var(--radius-sm);
    color: var(--c-charcoal);
}
.submenu a:hover { background: var(--c-bg-alt); color: var(--c-blue); text-decoration: none; }

.nav-toggle {
    display: none; background: none; border: 0; padding: var(--s-1);
    cursor: pointer; color: var(--c-charcoal);
}

.lang-switch {
    font-size: var(--t-small); font-weight: 600; letter-spacing: 0.08em;
    color: var(--c-muted); padding: var(--s-1) var(--s-2);
    border: 1px solid var(--c-border); border-radius: var(--radius-sm);
    text-decoration: none;
}
.lang-switch:hover { color: var(--c-blue); border-color: var(--c-blue); text-decoration: none; }

/* ----- Footer ----- */
.site-footer {
    background: var(--c-charcoal); color: #fff;
    padding: var(--s-8) 0 var(--s-4);
}
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--c-blue-soft); }
.site-footer__grid {
    display: grid; gap: var(--s-4);
    grid-template-columns: 2fr 1fr 1fr 1fr;
    margin-bottom: var(--s-6);
}
.site-footer__col h4 {
    color: #fff; font-size: var(--t-small); text-transform: uppercase; letter-spacing: 0.08em;
    font-weight: 600; margin-bottom: var(--s-2);
}
.site-footer__col ul { list-style: none; padding: 0; margin: 0; }
.site-footer__col li { margin-bottom: var(--s-1); }
.site-footer__brand img { height: 24px; margin-bottom: var(--s-2); filter: brightness(0) invert(1); }
.site-footer__brand p { color: rgba(255,255,255,0.7); max-width: 360px; }
.site-footer__legal {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: var(--s-3);
    display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s-2);
    color: rgba(255,255,255,0.6); font-size: var(--t-small);
}
.site-footer__legal-links { display: flex; gap: var(--s-3); flex-wrap: wrap; }

/* ----- Hero ----- */
.hero {
    position: relative;
    padding: var(--s-12) 0 var(--s-16);
    background: linear-gradient(180deg, var(--c-bg) 0%, var(--c-bg-alt) 100%);
    overflow: hidden;
    isolation: isolate;
}
.hero > .container { position: relative; z-index: 2; }

/* Giant wordmark backdrop — uses the brand logo as a graphic motif at scale */
.hero--wordmark::before {
    content: "";
    position: absolute;
    right: -8%;
    bottom: -22%;
    width: 88%;
    height: 90%;
    background-image: url('/img/brand/tec2020-logo.png');
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: 0.05;
    z-index: 1;
    pointer-events: none;
}
/* Faint blueprint grid — technical texture under hero & alt sections */
.hero--grid::after,
.section--grid {
    background-image:
        linear-gradient(rgba(44,44,44,0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(44,44,44,0.045) 1px, transparent 1px);
    background-size: 48px 48px;
    background-position: -1px -1px;
}
.hero--grid::after {
    content: "";
    position: absolute; inset: 0;
    z-index: 0;
    opacity: 0.7;
    -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 75%);
            mask-image: linear-gradient(180deg, rgba(0,0,0,0.6), transparent 75%);
    pointer-events: none;
}

/* Monospace technical caption — small "code-style" annotation accent */
.code-tag {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: var(--t-small);
    color: var(--c-muted);
    letter-spacing: 0.02em;
    margin-bottom: var(--s-2);
}
.code-tag::before { content: "// "; color: var(--c-blue); font-weight: 600; }

.hero__h1 {
    font-size: var(--t-display); line-height: var(--lh-display);
    max-width: 16ch; margin-bottom: var(--s-3);
    letter-spacing: -0.02em;
}
.hero__sub {
    font-size: 1.25rem; line-height: 1.5; color: var(--c-charcoal);
    max-width: var(--reading-max); margin-bottom: var(--s-4);
}
.hero__ctas { display: flex; align-items: center; gap: var(--s-3); flex-wrap: wrap; }

/* Split home hero — copy on the left, hand-drawn illustration on the right */
.hero--split {
    background: linear-gradient(180deg, var(--c-bg) 0%, #FBF4E6 100%);
}
.hero--split > .container {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: var(--s-6);
    align-items: center;
}
.hero--split .hero__h1 { max-width: 14ch; }
.hero__illustration {
    position: relative;
    margin-right: calc(-1 * var(--s-4));
}
.hero__illustration img,
.hero__illustration svg {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 18px 30px rgba(32, 36, 63, 0.12));
    animation: heroFloat 9s ease-in-out infinite;
}
@keyframes heroFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
    .hero__illustration img,
    .hero__illustration svg { animation: none; }
}
@media (max-width: 900px) {
    .hero--split > .container { grid-template-columns: 1fr; }
    .hero__illustration { margin-right: 0; order: -1; }
    .hero--split .hero__h1 { max-width: 100%; }
}
.hero__page {
    padding: var(--s-8) 0;
    border-bottom: 1px solid var(--c-border);
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.hero__page > .container { position: relative; z-index: 2; }
.hero__page h1 { font-size: var(--t-h1); margin-bottom: var(--s-2); }
.hero__page .lead { margin-bottom: 0; }

/* Two-column page hero with an illustration on the right */
.hero__page--split { padding-bottom: 0; border-bottom: 0; }
.hero__page--split > .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: var(--s-6);
    align-items: end;
    padding-bottom: var(--s-6);
    border-bottom: 1px solid var(--c-border);
}
.hero__page--split .illustration {
    align-self: end;
    margin-bottom: -1px;
}
.hero__page--split .illustration svg {
    width: 100%; height: auto;
    max-height: 320px;
    color: var(--c-blue);
    display: block;
}
@media (max-width: 768px) {
    .hero__page--split > .container { grid-template-columns: 1fr; }
    .hero__page--split .illustration { display: none; }
}

/* Case-card monogram visual */
.case-card { position: relative; overflow: hidden; }
.case-card__monogram {
    position: absolute;
    right: -12px; bottom: -28px;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 9rem;
    line-height: 1;
    color: var(--c-blue);
    opacity: 0.07;
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
}
.case-card:hover .case-card__monogram { opacity: 0.12; transition: opacity 220ms ease; }

/* ----- Cards ----- */
.card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--s-3);
    transition: box-shadow 160ms ease, border-color 160ms ease, transform 160ms ease;
    display: flex; flex-direction: column; gap: var(--s-2);
}
.card:hover { box-shadow: var(--shadow-card-hover); border-color: #d8d8db; }
.card h3 { margin-bottom: 0; }
.card p { margin-bottom: 0; color: var(--c-charcoal); }
.card a.card__link {
    margin-top: auto; color: var(--c-blue); font-weight: 600; display: inline-flex; align-items: center; gap: 4px;
}
.card a.card__link:hover { text-decoration: none; color: var(--c-blue-dark); }
.card__icon { color: var(--c-blue); }
.card__illustration {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--c-blue-soft);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    margin-bottom: var(--s-1);
    color: var(--c-blue);
}
.card__illustration .illustration,
.card__illustration .illustration svg {
    width: 80%; height: 80%;
    max-height: 100%;
}

.case-card {
    background: #fff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    padding: var(--s-3);
    transition: box-shadow 160ms ease, transform 160ms ease;
    display: flex; flex-direction: column; gap: var(--s-2);
    color: var(--c-charcoal);
    text-decoration: none;
}
.case-card:hover { box-shadow: var(--shadow-card-hover); text-decoration: none; color: var(--c-charcoal); }
.case-card__thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 6px;
    background: var(--c-blue-soft);
    border: 1px solid var(--c-border);
    margin-bottom: var(--s-1);
}
.case-card__thumb img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 240ms ease;
}
.case-card:hover .case-card__thumb img { transform: scale(1.03); }
.case-card__type { font-size: var(--t-small); color: var(--c-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.case-card__name { font-size: var(--t-h3); font-weight: 700; }
.case-card__desc { color: var(--c-muted); margin: 0; }
.case-card__cta { margin-top: auto; color: var(--c-blue); font-weight: 600; }

/* ----- Value prop triad ----- */
.triad { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4); }
.triad__item h3 { color: var(--c-charcoal); }
.triad__item .num {
    font-size: 2.5rem; font-weight: 700; color: var(--c-blue); line-height: 1;
    display: block; margin-bottom: var(--s-1);
    font-feature-settings: "tnum" 1;
}

/* ----- Process stepper ----- */
.steps { counter-reset: step; display: grid; gap: var(--s-3); }
.step {
    display: grid; grid-template-columns: auto 1fr; gap: var(--s-3); align-items: start;
    padding: var(--s-3); border: 1px solid var(--c-border); border-radius: var(--radius-md); background: #fff;
}
.step__num {
    width: 40px; height: 40px; border-radius: 999px; background: var(--c-blue-soft); color: var(--c-blue);
    display: flex; align-items: center; justify-content: center; font-weight: 700;
    font-size: 1.125rem;
}
.step__body h3 { margin-bottom: 4px; }
.step__body p { margin: 0; color: var(--c-charcoal); }

/* ----- Tech stack pill list ----- */
.tech-list { display: flex; flex-wrap: wrap; gap: var(--s-1); list-style: none; padding: 0; margin: 0 0 var(--s-2); }
.tech-list li {
    background: var(--c-bg-alt); border: 1px solid var(--c-border);
    padding: 4px 10px; border-radius: 999px;
    font-size: var(--t-small); color: var(--c-charcoal);
    margin: 0;
}

/* ----- Callout ----- */
.callout {
    background: var(--c-blue-soft);
    border-left: 4px solid var(--c-blue);
    padding: var(--s-3);
    border-radius: var(--radius-sm);
    margin: var(--s-3) 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ----- CTA strip ----- */
.cta-strip {
    background: var(--c-charcoal); color: #fff;
    padding: var(--s-8) 0;
}
.cta-strip h2 { color: #fff; max-width: 24ch; }
.cta-strip p { color: rgba(255,255,255,0.85); max-width: var(--reading-max); margin-bottom: var(--s-4); }
.cta-strip .btn--primary { background: var(--c-blue); }
.cta-strip .btn--primary:hover { background: var(--c-blue-dark); }
.cta-strip__line { color: rgba(255,255,255,0.7); font-size: var(--t-small); margin-top: var(--s-2); }

/* ----- Forms ----- */
.form { display: grid; gap: var(--s-3); max-width: var(--reading-max); }
.form__row { display: grid; gap: var(--s-1); }
.form__row--two { grid-template-columns: 1fr 1fr; gap: var(--s-3); }
@media (max-width: 640px) { .form__row--two { grid-template-columns: 1fr; } }
.form label { font-weight: 600; font-size: var(--t-small); color: var(--c-charcoal); }
.form .req { color: var(--c-error); }
.form input[type="text"], .form input[type="email"], .form input[type="tel"], .form select, .form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--c-border); border-radius: var(--radius-sm);
    font-family: inherit; font-size: var(--t-body); color: var(--c-charcoal);
    background: #fff;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}
.form input:focus, .form select:focus, .form textarea:focus {
    outline: none; border-color: var(--c-blue);
    box-shadow: 0 0 0 3px rgba(22,104,184,0.15);
}
.form textarea { resize: vertical; min-height: 140px; }
.form__check { display: flex; align-items: flex-start; gap: var(--s-1); font-weight: 400; font-size: var(--t-small); }
.form__check input { margin-top: 3px; }
.form__error { color: var(--c-error); font-size: var(--t-small); margin-top: 4px; }
.form__success { color: var(--c-success); font-size: var(--t-body); margin-top: var(--s-2); }
.honeypot { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

/* ----- Caso cover image (under page hero) ----- */
.case-cover {
    margin: 0;
    padding: var(--s-6) 0 0;
    background: var(--c-bg-alt);
    border-bottom: 1px solid var(--c-border);
}
.case-cover img {
    display: block;
    width: 100%;
    max-width: 1146px;
    height: auto;
    margin: 0 auto;
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: 0 12px 40px rgba(15, 79, 140, 0.12);
}

/* ----- Caso ficha rápida table ----- */
.ficha {
    background: #fff; border: 1px solid var(--c-border); border-radius: var(--radius-md);
    padding: var(--s-3); margin-bottom: var(--s-4);
}
.ficha table { margin: 0; }
.ficha th { width: 35%; color: var(--c-muted); font-weight: 500; }

/* ----- Prose blocks for legal/case-study bodies ----- */
.prose { max-width: var(--reading-max); }
.prose h2 { margin-top: var(--s-6); }
.prose h3 { margin-top: var(--s-4); }
.prose ul, .prose ol { margin-bottom: var(--s-3); }

/* ----- Logo strip / clients ----- */
.logo-strip {
    display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; justify-content: center;
    opacity: 0.85;
}
.logo-strip img { height: 32px; width: auto; }

/* ----- Mobile ----- */
@media (max-width: 900px) {
    .grid--3, .grid--4, .triad { grid-template-columns: 1fr 1fr; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    :root {
        --t-display: 2.25rem;
        --t-h1: 1.875rem;
        --t-h2: 1.5rem;
    }
    .section { padding: var(--s-8) 0; }
    .hero { padding: var(--s-8) 0; }
    .hero__h1 { max-width: 100%; }
    .grid--3, .grid--4, .triad { grid-template-columns: 1fr; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .site-header__nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        background: #fff; border-bottom: 1px solid var(--c-border);
        flex-direction: column; align-items: stretch; gap: 0;
        padding: var(--s-2) var(--s-3);
    }
    .site-header__nav.is-open { display: flex; }
    .site-header__nav a { padding: var(--s-2) 0; border-bottom: 1px solid var(--c-border); }
    .site-header__nav a:last-child { border-bottom: 0; }
    .has-submenu .submenu {
        position: static; box-shadow: none; border: 0; padding-left: var(--s-2);
        display: block;
    }
    .nav-toggle { display: inline-flex; }
}

/* ----- Blazor error UI ----- */
#blazor-error-ui {
    background: var(--c-error); color: #fff; bottom: 0; box-shadow: 0 -1px 4px rgba(0,0,0,0.2);
    display: none; left: 0; padding: 0.6rem 1.25rem; position: fixed; width: 100%; z-index: 1000;
}
#blazor-error-ui .dismiss { cursor: pointer; position: absolute; right: 0.75rem; top: 0.5rem; }
#blazor-error-ui .reload { color: #fff; text-decoration: underline; }

/* ----- Utility ----- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: var(--s-2); }
.mt-3 { margin-top: var(--s-3); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--s-2); }
.mb-3 { margin-bottom: var(--s-3); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.gap-2 { gap: var(--s-2); }
.gap-3 { gap: var(--s-3); }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
