:root {
    --cw-red: #c11f3f;
    --cw-red-dark: #8b1530;
    --cw-red-tint: rgb(193 31 63 / 8%);
    --cw-navy: #14213d;
    --cw-slate: #5b6478;
    --cw-off-white: #faf8f5;
    --cw-cream-light: #d8cdbf;
    --font-brand: georgia, "Times New Roman", serif;
    --font-body:
        "Montserrat", -apple-system, blinkmacsystemfont, "Segoe UI", roboto,
        sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--cw-navy);
    background-color: var(--cw-off-white);
}

.mud-typography-h1,
.mud-typography-h2,
.mud-typography-h3,
.mud-typography-h4 {
    font-family: var(--font-brand) !important;
    color: var(--cw-navy);
    font-weight: 400;
}

.mud-typography-h5,
.mud-typography-h6,
.mud-typography-body1,
.mud-typography-body2,
.mud-typography-caption,
.mud-typography-button {
    font-family: var(--font-body) !important;
}

.cw-logo-compact {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
}

.cw-logo-compact-mark {
    height: 40px;
    width: auto;
}

.cw-logo-compact-text {
    display: flex;
    flex-direction: column;
    line-height: 1;
}

.cw-logo-compact-wordmark {
    font-family: var(--font-brand);
    font-size: 1.5rem;
}

.cw-logo-compact-subtitle {
    font-family: var(--font-body);
    font-size: 0.5625rem;
    font-weight: 300;
    letter-spacing: 0.08em;
    margin-top: 0.25rem;
}

.mud-appbar {
    border-bottom: none;
}

.cw-appbar-home {
    display: inline-flex;
    align-items: center;
    color: inherit;
    text-decoration: none;
}

.cw-appbar-user {
    max-width: 16rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mud-button-root.cw-appbar-user {
    justify-content: flex-start;
    min-width: 0;
}

.cw-appbar-user .mud-button-label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cw-admin-chip {
    margin-left: 0.75rem;
    padding: 0.125rem 0.5rem;
    border: 1px solid currentcolor;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
}

.mud-drawer {
    border-right: 1px solid var(--cw-cream-light);
}

.mud-nav-link.active:not(.mud-nav-link-disabled) {
    color: var(--cw-red);
    background-color: var(--cw-red-tint);
    box-shadow: inset 3px 0 0 var(--cw-red);
}

.mud-card {
    border: 1px solid var(--cw-cream-light);
    box-shadow: 0 2px 8px rgb(0 0 0 / 8%);
}

.cw-public-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    min-height: 100vh;
}

.cw-brand-panel {
    display: flex;
    flex-direction: column;
    padding: 4rem 5.5rem;
    color: #fff;
    background-color: var(--cw-red);
}

.cw-brand-panel-logo {
    width: min(100%, 30rem);
    height: auto;
}

.cw-brand-panel-message {
    margin: auto 0;
}

.cw-brand-panel-tagline {
    margin: 0 0 1rem;
    font-family: var(--font-brand);
    font-size: clamp(2.5rem, 4.5vw, 4.25rem);
    line-height: 1.1;
}

.cw-brand-panel-welcome {
    margin: 0;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.12em;
}

.cw-public-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1.5rem;
}

.cw-public-content-inner {
    width: 100%;
    max-width: 420px;
}

.cw-public-footer {
    position: absolute;
    right: 2rem;
    bottom: 1.5rem;
    font-family: var(--font-body);
    font-size: 0.75rem;
    color: var(--cw-slate);
}

.cw-eyebrow {
    margin: 0 0 0.75rem;
    font-family: var(--font-body);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    color: var(--cw-red);
}

.cw-sign-in-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-brand);
    font-size: 2.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--cw-navy);
}

.cw-sign-in-title:focus {
    outline: none;
}

.cw-sign-in-subtitle {
    margin: 0 0 2rem;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    color: var(--cw-slate);
}

.cw-field-label {
    display: block;
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--cw-navy);
}

.mud-button-root.cw-sign-in-button {
    height: 3.25rem;
    font-size: 1rem;
    letter-spacing: 0;
    text-transform: none;
}

.cw-sign-in-help {
    margin: 1rem 0 0;
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-align: center;
    color: var(--cw-slate);
}

.cw-secure-access {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 2.5rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    color: var(--cw-slate);
}

.cw-skip-link {
    position: absolute;
    top: -3rem;
    left: 1rem;
    z-index: 2000;
    padding: 0.5rem 1rem;
    color: #fff;
    background-color: var(--cw-navy);
}

.cw-skip-link:focus {
    top: 1rem;
}

.cw-apply-shell {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.cw-apply-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 1.5rem;
    color: #fff;
    background-color: var(--cw-red);
}

.cw-apply-product {
    margin-left: auto;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.cw-apply-main {
    flex: 1;
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 1.5rem 3rem;
}

.cw-apply-title {
    margin: 0 0 0.5rem;
    font-family: var(--font-brand);
    font-size: clamp(1.75rem, 5vw, 2.5rem);
    line-height: 1.15;
    color: var(--cw-navy);
}

.cw-apply-applicant {
    margin: 0 0 0.75rem;
    font-weight: 500;
    color: var(--cw-slate);
}

.cw-apply-hint {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    color: var(--cw-slate);
}

.cw-apply-missing {
    margin-top: 1.5rem;
    padding: 1rem 1.25rem;
    border-left: 4px solid var(--cw-red);
    background-color: var(--cw-red-tint);
}

.cw-apply-missing-message {
    margin: 0 0 0.5rem;
    font-weight: 600;
}

.cw-apply-missing-list {
    margin: 0;
    padding-left: 1.25rem;
}

.cw-apply-main:focus,
.cw-apply-title:focus,
.cw-apply-missing:focus {
    outline: none;
}

.cw-apply-footer {
    padding: 1rem 1.5rem;
    font-size: 0.75rem;
    color: var(--cw-slate);
    text-align: center;
}

@media (width < 960px) {
    .cw-public-shell {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
    }

    .cw-brand-panel {
        padding: 1.25rem 1.5rem;
    }

    .cw-brand-panel-logo {
        width: min(100%, 16rem);
    }

    .cw-brand-panel-message {
        display: none;
    }

    .cw-public-footer {
        position: static;
        margin-top: 2rem;
        text-align: center;
    }
}

@media (width < 600px) {
    .cw-apply-header {
        padding: 0.5rem 1rem;
    }

    .cw-apply-main {
        padding: 1.25rem 1rem 2rem;
    }

    .cw-logo-compact-text {
        display: none;
    }

    .cw-appbar-user {
        max-width: 8rem;
    }
}

.cw-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    white-space: nowrap;
    border: 0;
    clip-path: inset(50%);
}

.cw-form-prose {
    white-space: pre-line;
}

.cw-form-fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.cw-form-table td {
    min-width: 8rem;
    vertical-align: top;
}
