#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

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



body {
    font-family: var(--rz-text-font-family);
    color: var(--rz-text-color);
    font-size: var(--rz-body-font-size);
    line-height: var(--rz-body-line-height);
    background-color: var(--rz-body-background-color);
    /* Matches macOS text rendering; no effect on Windows/Android. */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.rz-body {
    --rz-body-padding: 0;
}

a {
    color: var(--rz-link-color);
}

a:hover,
a:focus {
    color: var(--rz-link-hover-color);
}

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

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

.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
    margin: 20vh auto 1rem auto;
}

.loading-progress circle {
    fill: none;
    stroke: #e0e0e0;
    stroke-width: 0.6rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}

.loading-progress circle:last-child {
    stroke: #1b6ec2;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

.loading-progress-text {
    position: absolute;
    text-align: center;
    font-weight: bold;
    inset: calc(20vh + 3.25rem) 0 auto 0.2rem;
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

:root {
    /* Apple-style system stack: real San Francisco on Apple devices,
       Inter (SIL OFL, SF-like) everywhere else. */
    --rz-text-font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.rz-link .rz-card {
    transition: var(--rz-transition-all);
}

.rz-link:hover .rz-card {
    box-shadow: var(--rz-shadow-4);
}
/* ---------- Cerulean site styles ---------- */

.cer-w-100 { width: 100%; }
.cer-h-100 { height: 100%; }

.cer-banner {
    position: relative;
    display: flex;
    width: 100%;
    overflow: hidden;
    border-radius: var(--rz-border-radius);
    background-size: cover;
    background-position: center;
    background-color: var(--rz-primary-darker);
}

.cer-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.25) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.cer-banner-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 4rem 1rem;
}

.cer-cover {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cer-media {
    display: block;
    width: 100%;
    border-radius: var(--rz-border-radius);
    overflow: hidden;
}

.cer-plan {
    display: block;
    width: 100%;
    max-height: 560px;
    object-fit: contain;
    border-radius: var(--rz-border-radius);
    background-color: var(--rz-base-100);
}

.cer-plan-list {
    columns: 2;
    margin: 0;
    padding-left: 1.25rem;
    line-height: 1.8;
}

.cer-carousel {
    border-radius: var(--rz-border-radius);
    overflow: hidden;
}

.cer-carousel .rz-carousel-item,
.cer-carousel-slide {
    height: 100%;
}

.cer-carousel-slide {
    position: relative;
    width: 100%;
}

.cer-carousel-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.5rem 1.5rem 3.25rem;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
}

.cer-link-card {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
    --rz-link-hover-text-decoration: none;
}

.cer-link-card:hover .rz-card {
    box-shadow: var(--rz-shadow-4);
    transform: translateY(-2px);
}

.cer-home-card {
    height: 100%;
    padding: 0;
    overflow: hidden;
    transition: var(--rz-transition-all);
}

.cer-home-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.cer-video-frame,
.cer-video-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--rz-border-radius);
    background-color: #000;
}

.cer-video-frame.cer-portrait {
    aspect-ratio: 9 / 16;
    max-height: 80vh;
    margin: 0 auto;
}

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

.cer-video-thumb {
    cursor: pointer;
}

.cer-video-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--rz-transition-all);
}

.cer-video-thumb:hover img {
    transform: scale(1.04);
    opacity: 0.85;
}

.cer-video-thumb .cer-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.6));
    pointer-events: none;
}

.cer-video-thumb .cer-play .rzi {
    font-size: 4.5rem;
    width: 4.5rem;
    height: 4.5rem;
}

.cer-iframe {
    display: block;
    width: 100%;
    border: 0;
    border-radius: var(--rz-border-radius);
    background-color: var(--rz-base-100);
}

.cer-cta {
    position: relative;
    overflow: hidden;
    border-radius: var(--rz-border-radius);
    background-size: cover;
    background-position: center;
}

.cer-cta::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.cer-cta > * {
    position: relative;
    z-index: 1;
}

.cer-letter {
    font-size: 4.5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--rz-primary);
}

.cer-icon-tile {
    width: 96px;
    height: 96px;
    object-fit: contain;
}

.cer-prose p {
    margin: 0 0 1rem;
}

.cer-prose ul {
    margin: 0 0 1rem;
    padding-left: 1.5rem;
    line-height: 1.7;
}

.cer-hazard .rzi {
    font-size: 3rem;
    width: 3rem;
    height: 3rem;
}

@media (max-width: 767px) {
    .cer-plan-list { columns: 1; }
    .cer-letter { font-size: 3rem; }
    .cer-banner-content { padding: 3rem 1rem; }
}

.cer-wrap-grid .rz-cell-data,
.cer-wrap-grid .rz-column-title {
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    line-height: 1.4;
}

/* ---------- Top navigation (ported from Radzen demos site.css) ---------- */

/* Typography matched to apple.com globalnav (.globalnav-link):
   font-size: 12px; line-height: 1; font-weight: 400; letter-spacing: -.01em */
.site-top-bar {
    font-size: 12px;
    letter-spacing: -0.01em;
}

.site-top-bar .rz-navigation-item-link,
.site-top-bar .rz-navigation-item-text,
.site-top-bar .rz-link {
    font-size: 12px;
    line-height: 1;
    font-weight: 400;
    letter-spacing: -0.01em;
}

.site-main-top-nav {
    --rz-menu-item-icon-margin-inline: 0;
    --rz-menu-item-icon-color: var(--rz-on-primary-darker);
    --rz-menu-item-icon-hover-color: var(--rz-white);
    --rz-menu-background-color: var(--rz-base-darker);
    --rz-menu-top-item-color: var(--rz-on-base-darker);
    --rz-menu-top-item-background-color: var(--rz-base-darker);
    --rz-menu-top-item-hover-color: var(--rz-on-base-darker);
    --rz-menu-top-item-selected-color: var(--rz-on-base-darker);
    --rz-menu-item-color: var(--rz-on-base-darker);
    --rz-menu-item-background-color: var(--rz-base-darker);
    --rz-menu-item-hover-color: var(--rz-on-base-dark);
    --rz-menu-item-hover-background-color: var(--rz-base-dark);
    --rz-menu-item-selected-color: var(--rz-on-base-darker);
    --rz-menu-item-selected-background-color: var(--rz-base-dark);
    --rz-text-caption-color: var(--rz-on-base-darker);
    --rz-card-border: 1px solid var(--rz-base-800);
}

.rz-learn-title {
    display: block;
    --rz-text-caption-line-height: 1.4;
    padding-inline: var(--rz-menu-item-padding-inline);
    color: var(--rz-text-tertiary-color) !important;
}

@media (min-width: 576px) and (max-width: 768px) {
    .rz-learning-resources {
        flex-wrap: wrap;
        width: auto;
    }

    .rz-learning-resources .rz-card {
        border: 0 !important;
        min-width: 50%;
    }
}

@media (min-width: 769px) and (max-width: 1279px) {
    .rz-learning-resources {
        width: 470px;
        flex-wrap: wrap;
    }

    .rz-learning-resources .rz-card {
        border: 0 !important;
        min-width: 50%;
    }
}

@media (min-width: 1280px) {
    .rz-learning-resources {
        width: 800px;
    }
}
