/* ==========================================================================
   CBHS Football — Reserved Parking
   Design system. Brand ground: CBHS purple + vegas gold.
   The signature object is the hang tag: every space is drawn as the placard
   the buyer will actually hang from their mirror.
   ========================================================================== */

/* --- Display face: the same font printed on the physical parking pass ----- */
@font-face {
    font-family: 'Collegiate';
    src: url('/fonts/CollegiateFLF.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    /* Ground */
    --ink: #150C22;
    --ink-2: #1E1233;
    /* Brand */
    --purple: #4F2684;
    --purple-lit: #6B3AAD;
    --gold: #CBB778;
    --gold-lit: #E7D7A6;
    /* Text */
    --chalk: #F3F0F8;
    --chalk-dim: #B4A7C6;
    /* State */
    --alert: #FF8A7A;
    --alert-bg: rgba(255, 90, 70, .12);
    --good: #7BD8A8;

    --hairline: rgba(203, 183, 120, .22);
    --panel-bg: linear-gradient(170deg, rgba(79, 38, 132, .40) 0%, rgba(28, 17, 46, .92) 78%);

    --font-display: 'Collegiate', 'Barlow Condensed', 'Arial Narrow', sans-serif;
    --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-util: 'Barlow Condensed', 'Barlow', system-ui, sans-serif;

    --r-sm: 8px;
    --r-md: 14px;
    --r-lg: 20px;
    --shadow: 0 18px 46px rgba(0, 0, 0, .45);
}

/* Beat MudThemeProvider's runtime :root block on specificity, not order. */
html:root {
    --mud-typography-default-family: var(--font-body);
    --mud-typography-body1-family: var(--font-body);
    --mud-typography-body2-family: var(--font-body);
    --mud-typography-subtitle1-family: var(--font-body);
    --mud-typography-subtitle2-family: var(--font-body);
    --mud-typography-input-family: var(--font-body);
    --mud-typography-button-family: var(--font-util);
    --mud-typography-caption-family: var(--font-util);
    --mud-typography-overline-family: var(--font-util);
    --mud-typography-h1-family: var(--font-display);
    --mud-typography-h2-family: var(--font-display);
    --mud-typography-h3-family: var(--font-display);
    --mud-typography-h4-family: var(--font-body);
    --mud-typography-h5-family: var(--font-body);
    --mud-typography-h6-family: var(--font-body);
}

/* ==========================================================================
   Page ground
   ========================================================================== */

body {
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
}

/* The purple ground belongs to the public pages only — admin keeps the light
   surface MudBlazor gives it, so this paints from .page, not from body. */
.page {
    position: relative;
    max-width: 1080px;
    margin-inline: auto;
    padding: 32px 16px 24px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--chalk);
}

.page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background-color: var(--ink);
    background-image: radial-gradient(120% 80% at 50% -10%, rgba(79, 38, 132, .55) 0%, rgba(21, 12, 34, 0) 62%);
}

.page > main {
    flex: 1;
}

.sitefoot {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: .75rem 1.5rem;
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hairline);
    font-family: var(--font-util);
    font-size: .875rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--chalk-dim);
}

/* Focus is always visible and always gold. Plain selectors, not :where() —
   MudBlazor's own `outline: none` on buttons would win against zero specificity. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid var(--gold-lit);
    outline-offset: 3px;
}

.page a {
    color: var(--gold);
    text-underline-offset: 3px;
}

.page a:hover {
    color: var(--gold-lit);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   Type
   ========================================================================== */

.eyebrow {
    font-family: var(--font-util);
    font-size: .8125rem;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--gold);
    margin: 0 0 .65rem;
}

.display {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: clamp(2.5rem, 7.5vw, 4.75rem);
    line-height: .92;
    letter-spacing: .01em;
    color: #fff;
    margin: 0;
    text-shadow: 0 4px 28px rgba(0, 0, 0, .6);
}

.lede {
    font-size: 1.0625rem;
    line-height: 1.62;
    color: var(--chalk);
    max-width: 56ch;
    margin: 1.1rem 0 0;
}

/* The varsity face is reserved for the masthead and the pass numbers.
   Everything else that needs weight uses the condensed utility face. */
.section-title {
    font-family: var(--font-util);
    font-weight: 600;
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    line-height: 1.15;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    margin: 0;
}

.section-note {
    font-size: .9375rem;
    color: var(--chalk-dim);
    margin: .35rem 0 0;
}

.section-head {
    margin-bottom: 1.25rem;
}

/* Hash marks: the yard-line tick, reused wherever a run of spaces is implied. */
.hashrule {
    height: 5px;
    background-image: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 13px);
    opacity: .55;
    border: 0;
    margin: 0;
}

/* ==========================================================================
   Panels
   ========================================================================== */

.panel {
    background: var(--panel-bg);
    border: 1px solid var(--hairline);
    border-radius: var(--r-md);
    box-shadow: var(--shadow);
    padding: clamp(1.25rem, 3vw, 2rem);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow);
    margin-bottom: 1.5rem;
}

.hero__media {
    position: absolute;
    inset: 0;
    background-image: url('/images/brotherswalk.png');
    background-size: cover;
    background-position: center 38%;
    filter: saturate(.95) contrast(1.06);
    z-index: -2;
}

/* Reads dark enough for the headline on the left, then lets the crowd through
   on the right — the photo is the argument for the product. */
.hero__scrim {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(17, 9, 28, .97) 0%, rgba(20, 11, 34, .93) 32%, rgba(46, 21, 80, .58) 66%, rgba(79, 38, 132, .12) 100%);
    z-index: -1;
}

.hero__body {
    padding: clamp(2rem, 5.5vw, 3.75rem) clamp(1.25rem, 4vw, 3rem) clamp(1.75rem, 4vw, 2.5rem);
}

.hero--compact .hero__body {
    padding-top: clamp(1.5rem, 3.5vw, 2.25rem);
    padding-bottom: clamp(1.25rem, 3vw, 1.75rem);
}

/* Facts strip: three things a buyer needs before they decide. */
.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    border-top: 1px solid var(--hairline);
    background: rgba(19, 11, 31, .82);
}

.fact {
    flex: 1 1 160px;
    padding: 1rem clamp(1.25rem, 4vw, 3rem);
    border-left: 1px solid var(--hairline);
}

.fact:first-child {
    border-left: 0;
}

.fact__v {
    display: block;
    font-family: var(--font-util);
    font-weight: 600;
    font-size: 1.75rem;
    line-height: 1.1;
    color: var(--gold-lit);
}

.fact__l {
    display: block;
    font-family: var(--font-util);
    font-size: .8125rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--chalk-dim);
    margin-top: .15rem;
}

/* Three facts side by side stop being scannable before they stop fitting.
   Below this they become one line each, value first. */
@media (max-width: 680px) {
    .fact {
        flex: 1 1 100%;
        border-left: 0;
        border-top: 1px solid var(--hairline);
        padding-block: .7rem;
    }

    .fact:first-child {
        border-top: 0;
    }

    .fact__v {
        display: inline;
        font-size: 1.375rem;
    }

    .fact__l {
        display: inline;
        margin-left: .5rem;
    }
}

/* ==========================================================================
   The hang tag — signature element
   ========================================================================== */

.taggrid {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 0;
    padding: 0;
}

.tag {
    position: relative;
    display: grid;
    place-items: center;
    width: 96px;
    height: 122px;
    padding: 26px 6px 10px;
    border: 1px solid rgba(203, 183, 120, .35);
    border-radius: 10px;
    background: linear-gradient(168deg, var(--purple-lit) 0%, var(--purple) 46%, #351A5C 100%);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .38), inset 0 1px 0 rgba(255, 255, 255, .14);
    cursor: pointer;
    font: inherit;
    color: inherit;
    transform-origin: 50% 18px; /* it swings from the punched hole */
    transition: transform .22s cubic-bezier(.2, .8, .3, 1), box-shadow .22s ease, border-color .22s ease;
}

.tag__hole {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: var(--ink);
    box-shadow: inset 0 2px 3px rgba(0, 0, 0, .8), 0 1px 0 rgba(255, 255, 255, .12);
}

.tag__num {
    font-family: var(--font-display);
    font-size: 2.5rem;
    line-height: 1;
    color: var(--gold);
    letter-spacing: .02em;
    transition: color .22s ease;
}

.tag__num--long {
    font-size: 1.25rem;
    word-break: break-word;
    text-align: center;
}

button.tag:hover,
button.tag:focus-visible {
    transform: rotate(-3deg) translateY(-2px);
    border-color: var(--gold);
    box-shadow: 0 16px 30px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .2);
}

button.tag:hover .tag__num,
button.tag:focus-visible .tag__num {
    color: var(--gold-lit);
}

button.tag:active {
    transform: rotate(-1deg) translateY(0);
}

/* Large, still, confirmed: the tag you are buying. */
.tag--lg {
    width: 132px;
    height: 168px;
    border-width: 2px;
    border-color: var(--gold);
    cursor: default;
    transform-origin: 50% 22px;
}

.tag--lg .tag__hole {
    top: 15px;
    width: 16px;
    height: 16px;
}

.tag--lg .tag__num {
    font-size: 3.5rem;
    color: var(--gold-lit);
}

.tag--lg .tag__num--long {
    font-size: 1.5rem;
}

/* ==========================================================================
   Checkout: tag stub beside the form
   ========================================================================== */

.checkout {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

@media (max-width: 900px) {
    .checkout {
        grid-template-columns: minmax(0, 1fr);
    }
}

.stub {
    text-align: center;
}

@media (min-width: 901px) {
    .stub {
        position: sticky;
        top: 20px;
    }
}

.stub__tag {
    display: flex;
    justify-content: center;
    margin-bottom: 1.25rem;
}

.stub__lines {
    margin: 0;
    border-top: 1px solid var(--hairline);
}

.stub__row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    padding: .7rem 0;
    border-bottom: 1px solid var(--hairline);
}

.stub__row dt {
    font-family: var(--font-util);
    font-size: .8125rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--chalk-dim);
}

.stub__row dd {
    margin: 0;
    font-weight: 600;
    color: var(--chalk);
}

.stub__total {
    font-family: var(--font-display);
    font-weight: 400;
    font-size: 1.75rem;
    letter-spacing: .01em;
    color: var(--gold-lit);
}

.stub__fine,
.fineprint {
    font-size: .875rem;
    line-height: 1.5;
    color: var(--chalk-dim);
    margin: 1rem 0 0;
}

.fineprint {
    margin-top: 1.75rem;
    max-width: 62ch;
}

.linkbtn {
    background: none;
    border: 0;
    padding: .5rem 0 0;
    margin: 0;
    font: inherit;
    font-size: .9375rem;
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 3px;
    cursor: pointer;
}

.linkbtn:hover {
    color: var(--gold-lit);
}

/* ==========================================================================
   Form
   ========================================================================== */

.fieldgroup {
    border: 0;
    padding: 0;
    margin: 0 0 1.75rem;
    min-width: 0;
}

.fieldgroup + .fieldgroup {
    border-top: 1px solid var(--hairline);
    padding-top: 1.5rem;
}

.fieldgroup__legend {
    display: block;
    width: 100%;
    padding: 0 0 .75rem;
    font-family: var(--font-util);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--gold);
}

/* Smoked inputs: readable on the purple ground, no white-on-white labels. */
.brand-form .mud-input-root,
.brand-form .mud-input-slot {
    color: var(--chalk);
}

.brand-form .mud-input.mud-input-outlined {
    background-color: rgba(255, 255, 255, .055);
    border-radius: var(--r-sm);
}

.brand-form .mud-input-outlined-border {
    border-color: rgba(203, 183, 120, .34);
    border-radius: var(--r-sm);
}

.brand-form .mud-input.mud-input-outlined:hover .mud-input-outlined-border {
    border-color: rgba(203, 183, 120, .62);
}

.brand-form .mud-input.mud-input-outlined:focus-within {
    background-color: rgba(255, 255, 255, .09);
}

.brand-form .mud-input.mud-input-outlined:focus-within .mud-input-outlined-border {
    border-color: var(--gold);
    border-width: 2px;
}

.brand-form .mud-input-label {
    color: var(--chalk-dim);
}

.brand-form .mud-input-control:focus-within .mud-input-label {
    color: var(--gold-lit);
}

.brand-form .mud-input-slot::placeholder {
    color: var(--chalk-dim);
    opacity: .7;
}

/* Native focus ring is redundant next to the gold border. */
.brand-form .mud-input-slot:focus-visible {
    outline: none;
}

/* Autofill in Chrome paints white; keep it in the palette. */
.brand-form input:-webkit-autofill,
.brand-form input:-webkit-autofill:hover,
.brand-form input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--chalk);
    -webkit-box-shadow: 0 0 0 1000px #2B1748 inset;
    caret-color: var(--chalk);
}

/* Inline validation */
.brand-form .mud-input-helper-text.mud-input-error,
.brand-form .mud-input-error .mud-input-helper-text {
    color: var(--alert);
    font-size: .8125rem;
}

.brand-form .mud-input-error .mud-input-outlined-border {
    border-color: var(--alert);
}

.brand-form .mud-input-control.mud-input-error .mud-input-label {
    color: var(--alert);
}

/* Select menus render outside the form at the document root, so they carry
   their own class (PopoverClass) rather than inheriting .brand-form. */
.brand-menu {
    border: 1px solid var(--hairline);
    border-radius: var(--r-sm);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}

.brand-menu .mud-list-item {
    font-family: var(--font-body);
}

.brand-menu .mud-list-item:hover {
    background-color: rgba(203, 183, 120, .14);
}

.brand-menu .mud-list-item.mud-selected-item {
    color: var(--gold-lit);
    background-color: rgba(203, 183, 120, .18);
}

/* Error summary */
.formerror {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    background: var(--alert-bg);
    border: 1px solid rgba(255, 138, 122, .45);
    border-left-width: 4px;
    border-radius: var(--r-sm);
    padding: .9rem 1rem;
    margin: 0 0 1.25rem;
    color: var(--chalk);
}

.formerror__title {
    font-family: var(--font-util);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--alert);
    margin: 0 0 .35rem;
}

.formerror ul {
    margin: 0;
    padding-left: 1.1rem;
}

.formerror li {
    line-height: 1.5;
}

/* A one-item list is a sentence, not a list. */
.formerror li:only-child {
    list-style: none;
    margin-left: -1.1rem;
}

/* Actions */
.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--hairline);
}

.btn {
    font-family: var(--font-util);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: var(--r-sm);
    border: 1px solid transparent;
    padding: .8rem 1.6rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    transition: background-color .18s ease, color .18s ease, border-color .18s ease, transform .12s ease;
}

.btn--pay {
    background: linear-gradient(180deg, var(--gold-lit), var(--gold));
    color: #2B1748;
    box-shadow: 0 10px 24px rgba(203, 183, 120, .22);
}

.btn--pay:hover:not(:disabled) {
    background: var(--gold-lit);
}

.btn--pay:active:not(:disabled) {
    transform: translateY(1px);
}

.btn--quiet {
    background: transparent;
    border-color: var(--hairline);
    color: var(--chalk-dim);
}

.btn--quiet:hover:not(:disabled) {
    border-color: var(--gold);
    color: var(--chalk);
}

.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.spinner {
    width: 1em;
    height: 1em;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spin .7s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.actions__note {
    flex: 1 1 100%;
    font-size: .875rem;
    color: var(--chalk-dim);
    margin: 0;
}

/* ==========================================================================
   Message states
   ========================================================================== */

.note {
    display: block;
    padding: clamp(1.25rem, 3vw, 2rem);
}

.note__title {
    font-family: var(--font-util);
    font-weight: 600;
    font-size: clamp(1.375rem, 3vw, 1.75rem);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff;
    margin: 0 0 .75rem;
}

.note__body {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--chalk);
    margin: 0;
    max-width: 62ch;
}

.note--alert {
    border-color: rgba(255, 138, 122, .45);
    border-left: 4px solid var(--alert);
}

.checklist {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
}

.checklist li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: .85rem;
    line-height: 1.55;
    color: var(--chalk);
}

.checklist li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .45em;
    width: 10px;
    height: 10px;
    border-radius: 2px;
    background: var(--gold);
}

/* ==========================================================================
   Page-load sequence — one orchestrated moment, then the page holds still.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
    .rise {
        animation: rise .55s cubic-bezier(.2, .7, .3, 1) both;
    }

    .rise-1 {
        animation-delay: .05s;
    }

    .rise-2 {
        animation-delay: .13s;
    }

    .rise-3 {
        animation-delay: .21s;
    }

    @keyframes rise {
        from {
            opacity: 0;
            transform: translateY(14px);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: .001ms !important;
        transition-duration: .001ms !important;
    }

    button.tag:hover,
    button.tag:focus-visible {
        transform: none;
    }
}

/* ==========================================================================
   Admin
   Same type system and brand accents as the public pages, but this is a
   working tool: light, dense, quiet. Colours resolve through MudBlazor's
   palette variables so the drawer's dark-mode toggle keeps working.
   ========================================================================== */

.admin {
    --a-gold: #8A6D25; /* gold that passes contrast on a light surface */
    --a-line: var(--mud-palette-lines-default);
    --a-dim: var(--mud-palette-text-secondary);
}

.admin.mud-theme-dark,
.mud-theme-dark .admin {
    --a-gold: var(--gold-lit);
}

/* --- App bar ------------------------------------------------------------ */

.admin-bar {
    border-bottom: 3px solid var(--gold);
}

.admin-bar__mark {
    font-family: var(--font-util);
    font-size: 1.125rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-bar__tag {
    font-family: var(--font-util);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--gold-lit);
    border: 1px solid rgba(203, 183, 120, .55);
    border-radius: 4px;
    padding: .1rem .45rem;
    margin-left: .75rem;
}

/* --- Drawer ------------------------------------------------------------- */

.admin-drawer {
    border-right: 1px solid var(--a-line);
}

.admin-nav {
    padding-top: 1rem;
}

.admin-nav__label {
    font-family: var(--font-util);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--a-dim);
    margin: 1.25rem 0 .35rem;
    padding-inline: 1.25rem;
}

.admin-nav__label:first-child {
    margin-top: 0;
}

/* Active page gets a gold edge, not a wash of colour. */
.admin-nav .mud-nav-link.active {
    box-shadow: inset 3px 0 0 var(--gold);
    font-weight: 600;
}

.admin-drawer__foot {
    padding: 1rem 1.25rem 1.25rem;
    font-family: var(--font-util);
    font-size: .75rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--a-dim);
}

.admin-drawer__foot p {
    margin: .35rem 0 0;
}

.admin-drawer__foot .hashrule {
    margin-bottom: .75rem;
}

.admin-main {
    padding-top: 1.75rem;
    padding-bottom: 3rem;
}

/* --- Page header -------------------------------------------------------- */

.admin-head {
    margin-bottom: 1.75rem;
}

.admin-head__eyebrow {
    font-family: var(--font-util);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--a-gold);
    margin: 0 0 .3rem;
}

.admin-head__title {
    font-family: var(--font-util);
    font-size: clamp(1.625rem, 3vw, 2.125rem);
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    line-height: 1.1;
    color: var(--mud-palette-text-primary);
    margin: 0;
}

.admin-head__note {
    color: var(--a-dim);
    margin: .45rem 0 0;
    max-width: 70ch;
}

.admin-head .hashrule {
    margin-top: .9rem;
    opacity: .8;
}

/* --- Section header inside a page --------------------------------------- */

.admin-section {
    font-family: var(--font-util);
    font-size: .9375rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--mud-palette-text-primary);
    margin: 0 0 1rem;
}

/* --- Stat tile ---------------------------------------------------------- */

.stat {
    position: relative;
    height: 100%;
    background: var(--mud-palette-surface);
    border: 1px solid var(--a-line);
    border-top: 3px solid var(--gold);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
}

.stat--muted {
    border-top-color: var(--a-line);
}

.stat__label {
    display: block;
    font-family: var(--font-util);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--a-dim);
}

.stat__value {
    display: block;
    font-family: var(--font-util);
    font-size: 2.25rem;
    font-weight: 600;
    line-height: 1.1;
    color: var(--mud-palette-text-primary);
    margin-top: .2rem;
}

.stat__meta {
    display: block;
    font-size: .8125rem;
    color: var(--a-dim);
    margin-top: .15rem;
}

/* --- Action tile -------------------------------------------------------- */

.hover-card,
.tile {
    cursor: pointer;
    height: 100%;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.hover-card:hover,
.tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(35, 21, 51, .18);
}

.tile {
    background: var(--mud-palette-surface);
    border: 1px solid var(--a-line);
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    text-align: left;
    width: 100%;
    font: inherit;
    color: inherit;
}

.tile:hover {
    border-color: var(--gold);
}

.tile__title {
    display: block;
    font-family: var(--font-util);
    font-size: 1.0625rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--mud-palette-text-primary);
}

.tile__note {
    display: block;
    font-size: .875rem;
    line-height: 1.45;
    color: var(--a-dim);
    margin-top: .15rem;
}

/* --- Chart legend swatch ------------------------------------------------ */

.swatch {
    width: 12px;
    height: 12px;
    margin-right: 8px;
    border-radius: 2px;
    flex: none;
}

/* --- Panels ------------------------------------------------------------- */

.admin-panel {
    background: var(--mud-palette-surface);
    border: 1px solid var(--a-line);
    border-radius: 10px;
    padding: 1.25rem 1.35rem;
}

@media (prefers-reduced-motion: reduce) {
    .hover-card:hover,
    .tile:hover {
        transform: none;
    }
}

/* ==========================================================================
   Blazor system UI
   ========================================================================== */

#blazor-error-ui {
    background: #2B1748;
    color: var(--chalk);
    border-top: 3px solid var(--alert);
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(0, 0, 0, .5);
    display: none;
    left: 0;
    font-family: var(--font-body);
    padding: 1rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

#blazor-error-ui a {
    color: var(--gold);
}

#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 1.25rem;
    top: .9rem;
}

.blazor-error-boundary {
    background: #7A2233;
    padding: 1rem 1.25rem;
    border-radius: var(--r-sm);
    color: #fff;
    font-family: var(--font-body);
}

.blazor-error-boundary::after {
    content: "Something went wrong on this page. Reload to try again.";
}
