
.h-100 {
    height: 100% !important;
}

.w-100 {
    width: 100% !important;
}


.hr-with-text {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--mud-palette-text-primary);
    font-weight: 700;
    font-size: 1.2em;
}

    .hr-with-text::before, .hr-with-text::after {
        content: '';
        flex: 1;
        border-bottom: 1px solid var(--mud-palette-text-secondary);
    }

    .hr-with-text:not(:empty)::before {
        margin: .5em;
    }

    .hr-with-text:not(:empty)::after {
        margin: .5em;
    }

/* Startup loader (index.html). Colors match the NewsRoom theme's background and text, light and dark. */
:root {
    --loading-bg: #fafafa;
    --loading-ink: #212121;
    --loading-outline: #9e9e9e;
}

:root.loading-dark {
    --loading-bg: #151515;
    --loading-ink: #f5f5f5;
    --loading-outline: #616161;
}

    /* Only while the loader is up; once the app renders, MudBlazor's theme owns the page background. */
    :root:has(.loading-wordmark) body {
        background: var(--loading-bg);
    }

.loading-wordmark {
    position: relative;
    width: fit-content;
    margin: 30vh auto 0;
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: clamp(72px, 20vw, 140px);
    line-height: 1.1;
    white-space: nowrap;
    user-select: none;
}

/* Block with padding so the box covers the J's descender and swash; otherwise the fill's clip cuts them off. */
.loading-wordmark span {
    display: block;
    padding: 0.05em 0.1em 0.25em;
}

.loading-wordmark-outline {
    color: transparent;
    -webkit-text-stroke: 1.5px var(--loading-outline);
}

/* The same text, solid, laid exactly over the outline and revealed bottom to top as the download progresses. */
.loading-wordmark-fill {
    position: absolute;
    inset: 0;
    color: var(--loading-ink);
    -webkit-text-stroke: 1.5px var(--loading-ink);
    clip-path: inset(calc(100% - var(--blazor-load-percentage, 0%)) 0 0 0);
    transition: clip-path 0.15s ease-out;
}

/* The masthead is in normal flow (no fixed MudAppBar), so main content needs no app-bar offset. */
.mud-main-content {
    padding-top: 0 !important;
}

/* Blazor moves focus to the page heading after each navigation (FocusOnNavigate in App.razor) so screen
   readers announce the new page. That focus is programmatic, so hide the visual ring on headings only;
   real keyboard focus on links and buttons still shows. */
h1:focus,
h1:focus-visible {
    outline: none;
}
