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MzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

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


.urllinks {
    color: lightskyblue !important
}

.grid-column-left {
    text-align: left !important;
}

.grid-column-center {
    text-align: center !important;
}

.grid-column-center10 {
    text-align: center !important;
    position: relative !important;
    left: 100px !important;
}

.grid-column-right {
    text-align: right !important;
}

.grid-pager {
    /*	color: green !important;
    font-weight: bold !important*/
    color: var(--mud-palette-primary) !important;
}

.grid-pager .mud-select {
    /*		color: green !important;
    font-weight: bold !important;*/
    color: var(--mud-palette-primary) !important;
}

.grid-pager .mud-table-pagination-select {
    color: var(--mud-palette-primary) !important;
    font-weight: bold !important
}

.grid-pager .mud-icon-root.mud-svg-icon {
    color: var(--mud-palette-primary) !important;
}

.grid .mud-table-sort-label {
    color: var(--mud-palette-primary) !important;
}

.grid .mud-table-pagination-actions
.grid .mud-icon-root.mud-svg-icon {
    fill: var(--mud-palette-primary) !important;
}

.grid .mud-table-sticky-header *
.grid. .mud-table-root .mud-table-head *
.grid .mud-table-cell {
    color: var(--mud-palette-primary) !important;
}

.grid .mud-list-item.mud-list-item-dense {
    color: var(--mud-palette-primary) !important;
}

.grid .mud-select .mud-select-input .grid .mud-input-slot {
    color: var(--mud-palette-primary) !important;
}

.grid .mud-input > .grid input.mud-input-root,
.grid div.mud-input-slot.mud-input-root {
    color: var(--mud-palette-primary) !important;
}


.gridshort .mud-grid-spacing-xs-3 >
.grid .mud-grid-item {
    padding-bottom: 0px !important;
}

.grid-header-column-title {
    color: var(--mud-palette-primary) !important;
}

.gridedit .mud-table-cell:last-of-type .mud-tooltip-root:nth-of-type(1) .mud-svg-icon {
    fill: green;
}

.gridedit .mud-table-cell:last-of-type .mud-tooltip-root:nth-of-type(2) .mud-svg-icon {
    fill: red;
}

.disabled .mud-input {
    color: var(--mud-palette-primary) !important;
    background-color: var(--mud-palette-action-disabled-background) !important;
}


.editfield .mud-input {
    color: var(--mud-palette-primary) !important;
}

.select .mud-shrink ~ label.mud-input-label.mud-input-label-inputcontrol {
    color: var(--mud-palette-primary) !important;
    /*	background-color: var(--mud-palette-action-disabled-background) !important;*/
}

.select .mud-input-control >
.select .mud-input-control-input-container >
.select div.mud-input.mud-input-text {
    color: var(--mud-palette-primary) !important;
    /*	background-color: var(--mud-palette-action-disabled-background) !important;*/
}

.select .mud-input-text {
    color: var(--mud-palette-primary) !important;
    /*	background-color: var(--mud-palette-action-disabled-background) !important;*/
}

.select .mud-input > .select input.mud-input-root-outlined.mud-input-root-margin-dense,
.select div.mud-input-slot.mud-input-root-outlined.mud-input-root-margin-dense {
    color: var(--mud-palette-primary) !important;
    /*	background-color: var(--mud-palette-action-disabled-background) !important;*/
}

.select .mud-input > .select input.mud-input-root.mud-input-root-margin-dense,
div.mud-input-slot.mud-input-root.mud-input-root-margin-dense {
    color: var(--mud-palette-primary) !important;
    /*	background-color: var(--mud-palette-action-disabled-background) !important;*/
}

.select .mud-list-item-clickable {
    color: var(--mud-palette-primary) !important;
    background-color: var(--mud-palette-action-disabled-background) !important;
}

.select .mud-input > .select input.mud-input-root-outlined.mud-input-root-adorned-start,
.select div.mud-input-slot.mud-input-root-outlined.mud-input-root-adorned-start {
    color: var(--mud-palette-primary) !important;
    background-color: var(--mud-palette-action-disabled-background) !important;
}


.error-message {
    background-color: darkred;
    color: white;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
}

.timerButtonRow {
    position: relative;
    top: 3px;
}

.timerButton {
    height: 39px !important;
    width: 60px !important
}

.text-end input {
    text-align: right !important;
}

/* Tall multiline MudTextField: keep text top-aligned (Mud defaults to vertical center) */
.html-source-field .mud-input {
    align-items: flex-start !important;
    height: 100%;
}

.html-source-field textarea {
    height: 100% !important;
}

/* MudHtmlViewer shares .html-content-wrapper with the editor; don't force full-viewport height when displaying */
.html-content-wrapper:not(.html-editor) {
    height: auto;
}

.html-content-wrapper .ql-editor a {
    color: #b32121;
}

/* YouTube embeds on /videos — aspect-ratio works inside MudCard flex; padding-bottom trick does not */
.video-embed {
    width: 100%;
    aspect-ratio: 16 / 9;
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    background: #000;
}

.video-embed iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* Find Approved Workshop map — fluid on md and below */
.workshop-map-panel {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.workshop-map {
    width: 100% !important;
    max-width: 100%;
}

.workshop-map-popup {
    width: min(500px, 85vw) !important;
    max-width: 85vw;
    box-sizing: border-box;
}

.workshop-result-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.workshop-result-card .mud-card-header {
    align-items: flex-start;
}

.workshop-result-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-top: 8px;
}

.workshop-result-chips .mud-chip {
    margin: 0;
}

.workshop-result-card-content {
    flex: 1 1 auto;
}

/* Public design system
   Scoped to public-shell/public-page so admin and editor styling is unaffected. */
.public-shell,
.public-page {
    /* Public pages are intentionally fixed-light. Override MudBlazor's inherited
       palette so a global dark theme cannot make public controls unreadable. */
    --mud-palette-text-primary: #262626;
    --mud-palette-text-secondary: #5f5f5f;
    --mud-palette-text-disabled: #5f5f5f;
    --mud-palette-primary: #9b1023;
    --mud-palette-primary-text: #ffffff;
    --mud-palette-secondary: #4e5d6c;
    --mud-palette-secondary-text: #ffffff;
    --mud-palette-surface: #ffffff;
    --mud-palette-background: #f7f6f4;
    --mud-palette-background-grey: #f0eeeb;
    --mud-palette-lines-default: #767676;
    --mud-palette-lines-inputs: #767676;
    --mud-palette-divider: #767676;
    --mud-palette-action-disabled: #5f5f5f;
    --mud-palette-action-disabled-background: #f0eeeb;
    --public-brand-red: #BD182D;
    --public-charcoal: #262626;
    --public-color-foreground: var(--public-charcoal);
    --public-color-foreground-muted: #5f5f5f;
    --public-color-foreground-inverse: #ffffff;
    --public-color-link: #9b1023;
    --public-color-link-hover: #720b19;
    --public-color-link-on-dark: #ffb8c3;
    --public-color-link-on-dark-hover: #ffffff;
    --public-surface-page: #f7f6f4;
    --public-surface-primary: #ffffff;
    --public-surface-subtle: #f0eeeb;
    --public-surface-dark: var(--public-charcoal);
    --public-border-color: #d8d5d1;
    --public-shadow-low: 0 1px 3px rgb(38 38 38 / 8%);
    --public-shadow-raised: 0 8px 24px rgb(38 38 38 / 10%);
    --public-focus-inner: var(--public-charcoal);
    --public-focus-outer: #ffffff;
    --public-radius: 0.5rem;
    --public-gutter: clamp(1rem, 3vw, 2rem);
    --public-section-spacing: clamp(2rem, 5vw, 4.5rem);
    --public-page-max-width: 48rem;
    --public-content-max-width: 48rem;
    --public-wide-max-width: 75rem;
}

.public-shell {
    min-height: 100%;
    color: var(--public-color-foreground);
    background: var(--public-surface-page);
    font-family: "Montserrat", Arial, sans-serif;
}

.public-shell,
.public-shell *,
.public-shell *::before,
.public-shell *::after {
    box-sizing: border-box;
}

.public-page {
    width: 100%;
    max-width: var(--public-page-max-width);
    margin-inline: auto;
    padding: var(--public-section-spacing) var(--public-gutter);
}

/* Consistent hero → next content gap on every public page, including home. */
.public-page > :is(.public-page-hero, .home-hero) {
    margin-block-end: 3rem;
}

/* Match Become-a-Workshop mt-6 rhythm between later major page blocks. */
.public-page:not(.public-page--home) > * + * {
    margin-block-start: 3rem;
}

.public-page:not(.public-page--home) .public-page__section + .public-page__section {
    margin-block-start: 3rem;
}

.public-page--wide {
    max-width: var(--public-wide-max-width);
}

.public-content-surface {
    width: 100%;
    padding: clamp(1.25rem, 3vw, 2.5rem);
    background: var(--public-surface-primary);
    border: 1px solid var(--public-border-color);
    border-radius: var(--public-radius);
    box-shadow: var(--public-shadow-low);
}

.public-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    color: var(--public-color-foreground);
    background: var(--public-surface-primary);
    border: 1px solid var(--public-border-color);
    border-radius: var(--public-radius);
    box-shadow: var(--public-shadow-low);
}

.public-card-content {
    flex: 1 1 auto;
    padding: clamp(1.25rem, 2.5vw, 2rem);
}

.public-card-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    padding: 0 clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 2.5vw, 2rem);
}

.public-shell a:not([class]),
.public-page a:not([class]) {
    color: var(--public-color-link);
    text-decoration: underline;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.16em;
}

.public-shell a:not([class]):hover,
.public-page a:not([class]):hover {
    color: var(--public-color-link-hover);
}

.public-shell--dark,
.public-shell .public-surface--dark,
.public-page .public-surface--dark {
    color: var(--public-color-foreground-inverse);
    background: var(--public-surface-dark);
}

.public-shell--dark a:not([class]),
.public-shell .public-surface--dark a:not([class]),
.public-page .public-surface--dark a:not([class]) {
    color: var(--public-color-link-on-dark);
}

.public-shell--dark a:not([class]):hover,
.public-shell .public-surface--dark a:not([class]):hover,
.public-page .public-surface--dark a:not([class]):hover {
    color: var(--public-color-link-on-dark-hover);
}

.public-skip-link {
    position: fixed;
    z-index: 10000;
    inset-block-start: 0.75rem;
    inset-inline-start: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--public-color-foreground-inverse);
    background: var(--public-charcoal);
    border-radius: 0.25rem;
    box-shadow: var(--public-shadow-raised);
    transform: translateY(calc(-100% - 1rem));
}

.public-skip-link:focus {
    color: var(--public-color-foreground-inverse);
    transform: translateY(0);
}

.public-shell :where(a[href], button, input, select, textarea, summary, [tabindex]):focus-visible,
.public-page :where(a[href], button, input, select, textarea, summary, [tabindex]):focus-visible {
    outline: 3px solid var(--public-focus-outer);
    outline-offset: 3px;
    box-shadow: 0 0 0 3px var(--public-focus-inner);
}

@media (min-width: 960px) {
    .public-shell,
    .public-page {
        --public-gutter: 0.5rem;
    }

    .public-content-surface {
        padding-inline: 0.75rem;
    }

    .public-card-content,
    .public-card-actions {
        padding-inline: 0.75rem;
    }
}

@media (min-width: 1280px) {
    .public-shell,
    .public-page {
        --public-page-max-width: 1200px;
        --public-wide-max-width: 1440px;
        --public-gutter: 0.75rem;
    }

    .public-content-surface {
        padding-inline: 1rem;
    }

    .public-card-content,
    .public-card-actions {
        padding-inline: 1rem;
    }
}

@media (min-width: 1920px) {
    .public-shell,
    .public-page {
        --public-page-max-width: 1440px;
        --public-wide-max-width: 1600px;
    }
}

@media (max-width: 36rem) {
    .public-card-actions {
        align-items: stretch;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-shell,
    .public-shell *,
    .public-shell *::before,
    .public-shell *::after,
    .public-page,
    .public-page *,
    .public-page *::before,
    .public-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Shared HTML authoring component (admin ContentEditorField). */
.content-editor-field {
    width: 100%;
    min-width: 0;
    color: var(--mud-palette-text-primary);
}

.content-editor-actions {
    align-items: center;
}

.content-editor-visual {
    height: clamp(var(--content-editor-min-height), 50vh, var(--content-editor-max-height));
    min-height: var(--content-editor-min-height);
    max-height: var(--content-editor-max-height);
}

.content-editor-visual > .html-content-wrapper {
    height: 100%;
    min-height: 0;
}

.content-editor-visual .ql-editor {
    overflow-y: auto;
    color: var(--mud-palette-text-primary);
    background-color: var(--mud-palette-surface);
}

.content-editor-raw textarea {
    min-height: var(--content-editor-min-height);
    max-height: var(--content-editor-max-height);
    overflow-y: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

@media (max-width: 36rem) {
    .content-editor-actions .mud-button-root {
        width: 100%;
    }

    .content-editor-visual {
        height: clamp(var(--content-editor-min-height), 60vh, var(--content-editor-max-height));
    }
}
@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat/Montserrat-Regular.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: optional;
}

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

@font-face {
    font-family: "Montserrat";
    src: url("../fonts/Montserrat/Montserrat-ExtraBold.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: optional;
}
