:root {
    --ua-color-brand: #073b63;
    --ua-color-brand-strong: #03243d;
    --ua-color-accent: #f2b632;
    --ua-color-action: #c51f35;
    --ua-color-on-brand: #ffffff;
    --ua-color-canvas: #f4f6f8;
    --ua-color-surface: #ffffff;
    --ua-color-surface-muted: #e9eef2;
    --ua-color-text: #17212b;
    --ua-color-text-muted: #586875;
    --ua-color-border: #d5dee5;
    --ua-color-link: #075b91;
    --ua-color-focus: #f2b632;
    --ua-color-section-1: #073b63;
    --ua-color-section-1-text: #ffffff;
    --ua-color-section-2: #e6eef4;
    --ua-color-section-2-text: #17212b;
    --ua-color-section-3: #03243d;
    --ua-color-section-3-text: #ffffff;
    --ua-color-section-4: #fff3d6;
    --ua-color-section-4-text: #17212b;
    --ua-font-body: "Source Sans 3", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --ua-font-heading: "Archivo", Arial, sans-serif;
    --ua-font-navigation: var(--ua-font-heading);
    --ua-font-size-base: 1.0625rem;
    --ua-line-height-body: 1.6;
    --ua-content-max: 90rem;
    --ua-page-gutter: clamp(1.25rem, 3vw, 3rem);
    --ua-reading-max: 48rem;
    --ua-sidebar-width: 19rem;
    --ua-header-logo-height: 4.5rem;
    --ua-space-section: clamp(3rem, 6vw, 6rem);
    --ua-space-module: clamp(1.25rem, 3vw, 2rem);
    --ua-radius-sm: 0.35rem;
    --ua-radius-md: 0.75rem;
    --ua-radius-lg: 1.25rem;
    --ua-shadow-card: 0 0.8rem 2.5rem rgb(3 36 61 / 0.12);
    --ua-hero-overlay: 0.72;
    --ua-font-size-page-title: clamp(2rem, 3.8vw, 3.4rem);
    --ua-page-masthead-height: clamp(17rem, 23vw, 21rem);
    --ua-font-size-section-title: clamp(1.65rem, 2.8vw, 2.5rem);
    --ua-font-size-module-title: clamp(1.25rem, 1.6vw, 1.6rem);
    --ua-reveal-duration-ms: 620;
    --ua-reveal-distance: 1.25rem;
    --ua-module-edge-gap: 1rem;
    --ua-module-padding: clamp(1rem, 1.5vw, 1.5rem);
    --ua-font-size-article-title: clamp(1.75rem, 3vw, 2.65rem);
}

/* Preserve usable content width on phones. Desktop retains the more generous
   gutters above, while modules keep a small safe margin from the viewport. */
@media (max-width: 48rem) {
    :root {
        --ua-page-gutter: 0.75rem;
        --ua-module-edge-gap: 0.625rem;
        --ua-module-padding: 0.875rem;
    }
}

@media (max-width: 30rem) {
    :root {
        --ua-page-gutter: 0.5rem;
        --ua-module-edge-gap: 0.5rem;
        --ua-module-padding: 0.75rem;
    }
}

.ua-site--modern,
.ua-site--modern *,
.ua-site--modern *::before,
.ua-site--modern *::after {
    box-sizing: border-box;
}

.ua-site--modern {
    min-width: 0;
    color: var(--ua-color-text);
    background: var(--ua-color-canvas);
    font-family: var(--ua-font-body);
    font-size: var(--ua-font-size-base);
    line-height: var(--ua-line-height-body);
}

.ua-site--modern img,
.ua-site--modern video,
.ua-site--modern iframe {
    max-width: 100%;
}

.ua-site--modern img {
    height: auto;
}

.ua-site--modern a {
    color: var(--ua-color-link);
    text-underline-offset: 0.18em;
}

.ua-site--modern button,
.ua-site--modern input,
.ua-site--modern select,
.ua-site--modern textarea {
    font-family: var(--ua-font-body);
    font-size: inherit;
}

.ua-site--modern :focus-visible {
    outline: 0.2rem solid var(--ua-color-focus);
    outline-offset: 0.2rem;
}

.ua-site--modern h1,
.ua-site--modern h2,
.ua-site--modern h3,
.ua-site--modern h4,
.ua-site--modern h5,
.ua-site--modern h6 {
    margin-block: 0 0.65em;
    color: var(--ua-color-brand-strong);
    font-family: var(--ua-font-heading);
    font-weight: 800;
    line-height: 1.08;
}

/* Legacy modules used to pin these title classes to an unavailable font. Keep every
   visible title on the configured heading family instead. */
.ua-site--modern :is(
    .pageheader,
    .articleheader,
    .whatsnewhometitle,
    .headlinehometitle,
    .loginmoduletitle,
    .teamnewsmoduletitle,
    .teamuamoduletitle
) {
    font-family: var(--ua-font-heading) !important;
}

/* Legacy UnionActive modules use a mixture of tables and named content
   classes. Keep their copy on the configured body family while allowing
   headings, navigation, icons, and intentionally branded artwork to opt out. */
.ua-site--modern :is(
    p,
    li,
    td,
    th,
    label,
    legend,
    input,
    select,
    textarea,
    .articlefont,
    .newsfont,
    .modulecontent,
    .whatsnewmodulecontent,
    .calendarcontent,
    .upcomingmodulecontent,
    .actionmodulecontent
) {
    font-family: var(--ua-font-body);
}

/* Dojo moves dialogs and tooltips beneath <body>, outside the modern site
   wrapper. Give those system surfaces the same configured body typeface. */
.tundra :is(
    .dijitDialog,
    .dijitTooltip,
    .dijitMenu,
    .dijitPopup,
    .dojoxDialog
) {
    font-family: var(--ua-font-body);
}

.ua-site--modern h1 {
    font-size: var(--ua-font-size-page-title);
}

.ua-site--modern h2 {
    font-size: var(--ua-font-size-section-title);
}

.ua-site--modern h3 {
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
}

.ua-site--modern p,
.ua-site--modern li {
    text-wrap: pretty;
}

.ua-container {
    width: min(calc(100% - 2rem), var(--ua-content-max));
    margin-inline: auto;
}

.ua-reading-width {
    max-width: var(--ua-reading-max);
}

.ua-skip-link {
    position: absolute;
    z-index: 100000;
    top: 0;
    left: 1rem;
    padding: 0.75rem 1rem;
    color: var(--ua-color-on-brand);
    background: var(--ua-color-brand-strong);
    transform: translateY(-120%);
}

.ua-skip-link:focus {
    transform: translateY(0);
}

.ua-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

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

    /* Reduced motion still needs clear interaction feedback. Allow short color,
       border and shadow transitions, while excluding movement and scroll effects. */
    .ua-site--modern :is(
        a,
        button,
        input,
        select,
        textarea,
        .ua-card,
        .highlighbox,
        .w3-card,
        .whatsnewmodulebox,
        .calendarmodulebox,
        .actionmodulebox,
        .linksmodulebox,
        .headlines3
    ) {
        transition-property: color, background-color, border-color, box-shadow !important;
        transition-duration: 160ms !important;
        transition-timing-function: ease-out !important;
        transition-delay: 0ms !important;
    }

    .ua-site--modern :is(
        .ua-card,
        .highlighbox,
        .w3-card,
        .whatsnewmodulebox,
        .calendarmodulebox,
        .actionmodulebox,
        .linksmodulebox,
        .headlines3
    ):is(:hover, :focus-within) {
        border-color: color-mix(in srgb, var(--ua-color-action) 55%, var(--ua-color-border)) !important;
        box-shadow: 0 1.1rem 2.5rem rgb(13 38 49 / 0.18) !important;
    }

    .ua-site--modern .highlighbox:hover .smalliconshighlights {
        transform: none !important;
    }
}
