/* ── Brand fonts ─────────────────────────────────────────────── */
/* Orev Edge – headings (brand typeface) */
@font-face {
    font-family: 'Orev Edge';
    src: url('fonts/Typesketchbook%20-%20Orev%20Edge%20SemiLight.ttf') format('truetype');
    font-weight: 350;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orev Edge';
    src: url('fonts/Typesketchbook%20-%20Orev%20Edge%20SemiLight%20Italic.ttf') format('truetype');
    font-weight: 350;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Orev Edge';
    src: url('fonts/Typesketchbook%20-%20Orev%20Edge%20Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orev Edge';
    src: url('fonts/Typesketchbook%20-%20Orev%20Edge%20Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Orev Edge';
    src: url('fonts/Typesketchbook%20-%20Orev%20Edge%20Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Cabin – body text */
@font-face {
    font-family: 'Cabin';
    src: url('fonts/Cabin-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('fonts/Cabin-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('fonts/Cabin-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('fonts/Cabin-MediumItalic.ttf') format('truetype');
    font-weight: 500;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('fonts/Cabin-SemiBold.ttf') format('truetype');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('fonts/Cabin-SemiBoldItalic.ttf') format('truetype');
    font-weight: 600;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('fonts/Cabin-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cabin';
    src: url('fonts/Cabin-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
    font-display: swap;
}

/* ── Base typography ─────────────────────────────────────────── */
html, body {
    font-family: 'Cabin', 'Helvetica Neue', Arial, sans-serif;
}

h1, h2, h3, h4, h5, h6,
.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4,
.mud-typography-h5,
.mud-typography-h6 {
    font-family: 'Orev Edge', 'Cabin', sans-serif !important;
}

a, .btn-link {
    color: #006bb7;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYg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zLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ── Attendee avatars (social proof strip & attendee grid) ── */
.social-proof-strip {
    display: flex;
    align-items: center;
}

.avatar-overlap {
    display: flex;
    flex-direction: row;
}

.attendee-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.2);
    margin-left: -8px;
    object-fit: cover;
}

.avatar-overlap .attendee-avatar:first-child {
    margin-left: 0;
}

.attendee-avatar--initials {
    background-color: var(--mud-palette-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
}

.attendee-avatar--wrapper {
    position: relative;
    overflow: hidden;
}

.attendee-avatar--wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.attendee-avatar--wrapper img[src=''],
.attendee-avatar--wrapper img:not([src]) {
    display: none;
}

.attendee-tile__avatar--wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 50%;
}

.attendee-tile__avatar--wrapper img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.attendee-tile__avatar--wrapper img[src=''],
.attendee-tile__avatar--wrapper img:not([src]) {
    display: none;
}

.attendee-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.attendee-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 68px;
}

.attendee-tile__link {
    text-decoration: none;
    display: block;
}

.attendee-tile__avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--mud-palette-lines-default);
}

.attendee-tile__avatar--initials {
    border-radius: 50%;
    background-color: var(--mud-palette-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    border: 2px solid var(--mud-palette-lines-default);
}

.attendee-tile__name {
    margin-top: 4px;
    font-size: 0.7rem;
    text-align: center;
    color: var(--mud-palette-text-secondary);
    word-break: break-word;
    max-width: 68px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

/* ── Drawer: active nav-link contrast fix ── */
.mud-drawer .mud-nav-link.active,
.mud-drawer .mud-nav-link.active .mud-nav-link-text,
.mud-drawer .mud-nav-link.active .mud-nav-link-icon {
    color: #FFFFFF !important;
}

/* ── Event description: rich HTML rendered from organizer content ── */
.event-description h2 { font-size: 1.35rem; font-weight: 600; margin: 1rem 0 0.4rem; }
.event-description h3 { font-size: 1.1rem; font-weight: 600; margin: 0.75rem 0 0.3rem; }
.event-description p { margin: 0.4rem 0; }
.event-description ul, .event-description ol { padding-left: 1.5rem; margin: 0.4rem 0; }
.event-description li { margin: 0.2rem 0; }
.event-description a { color: #006bb7; text-decoration: underline; }
.event-description strong { font-weight: 600; }
.event-description em { font-style: italic; }