.ua-site--modern #maintablenavlist,
.ua-site--modern #maintablenavlist > tbody,
.ua-site--modern #maintablenavlist > tbody > tr {
    width: 100%;
}

.ua-site--modern #maintablenavlist > tbody > tr {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: var(--ua-space-module);
    align-items: start;
}

.ua-site--modern #maintablenavlist > tbody > tr > td {
    min-width: 0;
    display: block;
}

.ua-site--modern #maintablenavlist .leftcolumn,
.ua-site--modern #maintablenavlist .rightcolumn {
    width: var(--ua-sidebar-width);
}

.ua-site--modern #maintablenavlist .maincolumn {
    width: auto;
}

.ua-site--modern .w3-card,
.ua-site--modern .whatsnewmodulebox {
    border: 1px solid var(--ua-color-border);
    border-radius: var(--ua-radius-md);
    background: var(--ua-color-surface);
    box-shadow: var(--ua-shadow-card);
}

.ua-site--modern .buttoncolor,
.ua-site--modern input.buttoncolor,
.ua-site--modern button.buttoncolor {
    min-height: 2.6rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--ua-color-brand);
    border-radius: var(--ua-radius-sm);
    color: var(--ua-color-on-brand);
    background: var(--ua-color-brand);
    font-weight: 700;
}

.ua-site--modern :is(a, span, input, button).buttoncolor:hover,
.ua-site--modern :is(a, span, input, button).buttoncolor:focus-visible {
    border-color: var(--ua-color-brand-strong);
    color: var(--ua-color-on-brand);
    background: var(--ua-color-brand-strong);
    text-decoration: none;
}

/* Legacy administration forms use small image submit controls for actions
   such as edit and remove. Keep those controls at their authored image size;
   the shared field minimum height otherwise stretches the artwork. */
.ua-site--modern input[type="image"] {
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    object-fit: contain;
    vertical-align: middle;
}

.ua-site--modern input[type="image"]:focus {
    border: 0 !important;
}

/* Dojo moves dialogs to the end of <body>, outside .ua-site--modern. The old
   color-scheme files also force .dojoxDialog back to content-box, which makes
   a declared width overflow by the dialog padding. Normalize the shell and
   its dynamically loaded form content at the body level. */
body.tundra :is(.dijitDialog, .dojoxDialog, .dijitTooltipDialog),
body.tundra :is(.dijitDialog, .dojoxDialog, .dijitTooltipDialog) * {
    box-sizing: border-box;
}

body.tundra :is(.dijitDialog, .dojoxDialog) {
    max-width: calc(100vw - 1rem) !important;
    max-height: calc(100vh - 1rem) !important;
    max-height: calc(100dvh - 1rem) !important;
}

body.tundra .dojoxDialog {
    box-sizing: border-box !important;
    overflow: visible !important;
}

body.tundra .dijitDialog:not(.dojoxDialog) {
    overflow: auto !important;
}

/* Member-home system dialogs use the active site palette instead of the
   legacy red dialog skin. Dojo moves these nodes outside the site wrapper. */
body.tundra :is(#LoginAlertdialog, #PasswordAlertdialog) {
    overflow: visible !important;
    border: 1px solid var(--ua-color-border) !important;
    border-radius: var(--ua-radius-lg, 1rem) !important;
    color: var(--ua-color-text) !important;
    background: var(--ua-color-surface) !important;
    box-shadow: 0 1.75rem 4.5rem rgb(3 24 39 / 0.3) !important;
}

body.tundra :is(#LoginAlertdialog, #PasswordAlertdialog) :is(
    .dijitDialogTitleBar,
    .dojoxDialogTitle,
    .dijitDialogTitle
) {
    border: 0 !important;
    border-bottom: 1px solid color-mix(in srgb, var(--ua-color-surface) 20%, transparent) !important;
    color: var(--ua-color-on-brand) !important;
    background: linear-gradient(135deg, var(--ua-color-brand-strong), var(--ua-color-action)) !important;
    font-family: var(--ua-font-heading) !important;
    font-weight: 800 !important;
}

body.tundra :is(#LoginAlertdialog, #PasswordAlertdialog) :is(
    .dijitDialogPaneContent,
    .dojoxDialogPaneContent,
    .dijitContentPane
) {
    color: var(--ua-color-text) !important;
    background: var(--ua-color-surface) !important;
}

body.tundra :is(#LoginAlertdialog, #PasswordAlertdialog) a {
    color: var(--ua-color-action) !important;
}

body.tundra :is(#LoginAlertdialog, #PasswordAlertdialog) :is(button, input[type="button"], input[type="submit"]) {
    border-color: var(--ua-color-action) !important;
    color: var(--ua-color-on-brand) !important;
    background: var(--ua-color-action) !important;
}

body.tundra :is(#LoginAlertdialog, #PasswordAlertdialog) :is(.dijitDialogCloseIcon, .dojoxDialogCloseIcon) {
    color: var(--ua-color-on-brand) !important;
    filter: brightness(0) invert(1);
}

/* Dojo gives the pane its own fixed height and places the close control just
   outside the upper-left corner. Let the wrapper occupy the dialog's usable
   content box so only the inner pane scrolls; clipping the outer shell would
   create a second scrollbar and cut off the close control. */
body.tundra .dojoxDialog > [dojoattachpoint="dojoxDialogWrapper"] {
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    overflow: visible;
}

body.tundra .dijitTooltipDialog {
    max-width: calc(100vw - 1rem) !important;
}

body.tundra :is(.dijitDialog, .dojoxDialog, .dijitTooltipDialog) :is(
    .dijitDialogPaneContent,
    .dojoxDialogPaneContent,
    .dijitContentPane,
    form,
    fieldset,
    table,
    img,
    input,
    select,
    textarea
) {
    max-width: 100% !important;
}

body.tundra :is(.dijitDialog, .dojoxDialog, .dijitTooltipDialog) :is(
    .dijitDialogPaneContent,
    .dojoxDialogPaneContent,
    .dijitContentPane,
    form,
    fieldset
) {
    min-width: 0 !important;
    overflow-wrap: anywhere;
}

body.tundra :is(.dijitDialog, .dojoxDialog) :is(
    .dijitDialogPaneContent,
    .dojoxDialogPaneContent
) {
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
}

/* Keep legacy administration tables and controls inside the pane without
   replacing their authored column calculations. Forcing every table to a
   fixed, full-width layout changes colspans, icon columns, navigation tabs,
   and the Admin window's promotional rail. */
body.tundra :is(.dijitDialog, .dojoxDialog, .dijitTooltipDialog) :is(
    .dijitDialogPaneContent,
    .dojoxDialogPaneContent,
    .dijitContentPane
) > * {
    max-width: 100% !important;
}

body.tundra :is(.dijitDialog, .dojoxDialog, .dijitTooltipDialog) table {
    max-width: 100% !important;
}

body.tundra :is(.dijitDialog, .dojoxDialog, .dijitTooltipDialog) :is(td, th) {
    min-width: 0 !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: anywhere;
}

body.tundra :is(.dijitDialog, .dojoxDialog, .dijitTooltipDialog) :is(
    input:not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="image"]):not([type="checkbox"]):not([type="radio"]):not([type="color"]),
    textarea
) {
    min-width: 0 !important;
    max-width: 100% !important;
}

body.tundra :is(.dijitDialog, .dojoxDialog, .dijitTooltipDialog) input[type="file"] {
    max-width: 100% !important;
    overflow: hidden;
}

.ua-site--modern .mainbackgroundcolor {
    color: var(--ua-color-on-brand);
    background-color: var(--ua-color-brand);
}

.ua-site--modern .mainelementcolor {
    color: var(--ua-color-brand);
}

.ua-site--modern .secondarybackcolor {
    color: var(--ua-color-on-brand);
    background-color: var(--ua-color-brand-strong);
}

.ua-site--modern .fadeitem,
.ua-site--modern .fadeitemstill {
    opacity: 1;
    transform: none;
}

/* Dojo ContentPane applies overflow:auto at runtime. Public page regions must
   grow with their content so the browser owns the only page scrollbar. */
.ua-site--modern :is(#maincolumnspot, #leftcolumnspot, #rightcolumnspot, #inner1columnspot, #inner2columnspot) {
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.ua-site--modern #maincolumnsplit,
.ua-site--modern #maincolumnsplit > li {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ua-site--modern #maincolumnsplit > li {
    float: none !important;
}

.ua-site--modern #maincolumnsplit > li > table,
.ua-site--modern td.modulebottomspace > table {
    width: 100% !important;
}

.ua-site--modern.ua-site--home #maincolumnspot td.modulebottomspace {
    width: 100% !important;
    padding: 0 0 clamp(0.75rem, 1.2vw, 1rem) !important;
}

/* Interior custom pages use page_column.cfm rather than the home-page module
   list. Give every page module one shared width and let the outer cell own the
   vertical rhythm, preventing legacy and modern modules from touching or
   applying nested/double gutters. */
.ua-site--modern #pagecolumnspot {
    width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
}

.ua-site--modern #pagecolumnspot > table {
    width: 100% !important;
    border-spacing: 0 !important;
}

.ua-site--modern #pagecolumnspot td.modulebottomspace {
    width: 100% !important;
    padding: 0 0 var(--ua-space-module) !important;
}

.ua-site--modern #pagecolumnspot > table > tbody > tr:last-child > td.modulebottomspace {
    padding-bottom: 0 !important;
}

.ua-site--modern #pagecolumnspot td.modulebottomspace > table {
    width: min(calc(100% - 2 * var(--ua-module-edge-gap)), var(--ua-content-max)) !important;
    max-width: var(--ua-content-max) !important;
    margin-inline: auto !important;
}

.ua-site--modern #pagecolumnspot td.modulebottomspace > table > tbody > tr > td > :is(div, section, table):not(.showmodulesbox) {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    margin-bottom: 0 !important;
}

.ua-site--modern #pagecolumnspot td.modulebottomspace :is(
    .ua-module-panel,
    #smallcalendarspot,
    .ua-pagearticle-rotator,
    .ua-news-rotator-section,
    .ua-newsletter-signup,
    .ua-accordion-module,
    .ua-brand-logo-card,
    .ua-civic-card,
    .teamuamodulecontainer,
    .teamnewsmodulecontainer
) {
    width: 100% !important;
    max-width: 100% !important;
    margin-inline: 0 !important;
    margin-bottom: 0 !important;
}

/* Individual legacy modules use different bottom margins on otherwise
   identical modern panels. Let the outer module cell own the spacing so every
   row receives the same compact gap and adjacent rounded cards never touch. */
.ua-site--modern.ua-site--home #maincolumnspot td.modulebottomspace .ua-module-panel {
    margin-bottom: 0 !important;
}

/* Full-width section modules already include their own vertical rhythm and
   background. Do not expose the page background between those bands; reserve
   the outer cell gap for rounded standalone panel modules. */
.ua-site--modern.ua-site--home #maincolumnspot td.modulebottomspace:is(
    :has(.ua-highlights),
    :has(.highlights-wrapper),
    :has(.ua-inner-layout),
    :has(.ua-news-section)
) {
    padding-bottom: 0 !important;
}

.ua-site--modern.ua-site--home #maincolumnsplit1 > table > tbody > tr:first-child > td.modulebottomspace {
    padding-bottom: 0 !important;
}

/* When a full-width colored section follows another module, remove the legacy
   wrapper gap from the preceding row. The section supplies its own internal
   top padding, so no page-canvas stripe is exposed between the two modules. */
.ua-site--modern :is(#maincolumnspot, #pagecolumnspot) tr:has(+ tr > td.modulebottomspace .ua-news-section--flush-top) > td.modulebottomspace {
    padding-bottom: 0 !important;
}

/* Keep ordinary home modules comfortably centered while allowing designated
   full-bleed hero and feature bands to extend across the viewport. */
.ua-site--modern.ua-site--home .modulebottomspace > table > tbody > tr > td > :is(
    /* Titled-module headers manage their own negative margins so the color
       band reaches every card edge. Centering those nested headers here made
       the band start inset while its expanded width overhung the right side. */
    .w3-container:not(.ua-titled-module__header),
    .w3-card,
    .modulecontainer,
    .whatsnewmodulecontainer,
    .calendarmodulecontainer
) {
    width: min(calc(100% - 2rem), var(--ua-content-max));
    margin-inline: auto !important;
}

.ua-site--modern.ua-site--home .maindiv.secondarybackcolor {
    min-height: clamp(13rem, 24vw, 20rem);
    padding: clamp(3.5rem, 8vw, 7rem) max(1.5rem, calc((100vw - var(--ua-content-max)) / 2 + 1rem)) !important;
    display: grid;
    place-items: center;
    text-align: center;
    background:
        radial-gradient(circle at 82% 20%, color-mix(in srgb, var(--ua-color-accent) 22%, transparent), transparent 28%),
        linear-gradient(135deg, var(--ua-color-brand-strong), var(--ua-color-brand)) !important;
}

.ua-site--modern.ua-site--home .maindiv.secondarybackcolor :is(h1, h2, h3, p, a) {
    color: var(--ua-color-on-brand) !important;
}

.ua-site--modern.ua-site--home .maindiv.secondarybackcolor :is(h1, h2, h3) {
    max-width: 64rem;
    margin-inline: auto;
    font-size: clamp(2rem, 5vw, 4.5rem) !important;
    text-wrap: balance;
}

/* The selectable highlight modules share responsive foundations while each
   wrapper below preserves its original layout purpose and visual identity. */
.ua-site--modern .ua-highlights {
    width: 100%;
    position: relative;
}

.ua-site--modern .ua-highlights__frame {
    width: min(calc(100% - 2 * var(--ua-page-gutter)), var(--ua-content-max)) !important;
    max-width: var(--ua-content-max) !important;
    margin: 0 auto !important;
    padding: clamp(1.5rem, 3vw, 3rem) 0 !important;
}

.ua-site--modern .ua-highlights__grid {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    align-items: stretch;
    margin: 0 !important;
    padding-inline: 0 !important;
}

/* W3's container clearfix creates generated table boxes. Once the container
   becomes flex or grid, those invisible boxes participate as layout items and
   can offset one wrapped card row from another. The flex container provides
   its own containment, so the legacy clearfix boxes are not needed here. */
.ua-site--modern .ua-highlights__grid::before,
.ua-site--modern .ua-highlights__grid::after {
    content: none !important;
    display: none !important;
}

/* Give article sections breathing room above their first card as well as below
   their last one. Card padding alone does not space the surrounding band. */
.ua-site--modern .modulebottomspace > table > tbody > tr > td > div:not(.ua-news-section):not(:has(> .ua-news-section--flush-top)):has(.articletable, .resprow > .headlines3) {
    padding-block: clamp(2.5rem, 5vw, 4.5rem) !important;
}

/* A news section may sit inside the anonymous DIV emitted by the legacy
   module renderer. Do not treat that wrapper as an article-card module: its
   inherited block/inline padding creates a white frame around full-width
   sections. The section provides its own intentional inner spacing. */
.ua-site--modern .modulebottomspace > table > tbody > tr > td > div:has(> .ua-news-section--flush-top) {
    padding: 0 !important;
}

.ua-site--modern .ua-highlights .highlighbox {
    display: flex !important;
    align-items: center;
    justify-content: center;
    min-width: 0;
    flex: 1 1 17rem;
    width: auto !important;
    max-width: none !important;
    min-height: 14rem !important;
    height: auto !important;
    margin: 0 !important;
    padding: clamp(1.5rem, 3vw, 2.25rem) !important;
    float: none !important;
    border: 1px solid var(--ua-color-border) !important;
    border-radius: var(--ua-radius-lg) !important;
    color: var(--ua-color-text);
    background-color: var(--ua-color-surface);
    box-shadow: var(--ua-shadow-card);
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}

.ua-site--modern .ua-highlights .highlighbox::before {
    content: none;
}

.ua-site--modern .ua-highlights .highlighbox .innerbox {
    min-height: 0 !important;
    height: auto !important;
    padding: 0 !important;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
}

.ua-site--modern .ua-highlights .highlighbox .centerthis {
    display: flex;
    flex-direction: column;
    align-items: center;
    align-content: center;
    justify-content: center !important;
    gap: 0.75rem;
    width: 100%;
    height: auto !important;
    min-height: 0 !important;
    min-width: 0;
    flex: 0 1 auto !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

/* Some legacy highlight files and site styles assign full-height/flexible
   behavior to links or their children. Keep every icon/title/description
   group compact so a tall card centers the group instead of spreading its
   contents from the top to the bottom, especially in the mobile stack. */
.ua-site--modern .ua-highlights .highlighbox .centerthis > :not(br) {
    flex-grow: 0 !important;
    min-height: 0 !important;
}

.ua-site--modern .ua-highlights .highlighbox .centerthis > br,
.ua-site--modern .ua-highlights .highlighbox .centerthis > a:has(> .smalliconshighlights) > br {
    display: none;
}

.ua-site--modern .ua-highlights .highlighbox .centerthis > a:has(> .smalliconshighlights) {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center !important;
    gap: 0.75rem;
    width: auto !important;
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    max-width: 100%;
}

.ua-site--modern .ua-highlights .highlighbox .smalliconshighlights {
    display: block;
    flex: 0 0 auto !important;
    margin: 0 !important;
    font-size: 3rem !important;
    line-height: 1.1 !important;
}

.ua-site--modern .ua-highlights .highlighbox .whotext {
    display: block;
    flex: 0 1 auto !important;
    margin: 0 !important;
    font-size: clamp(1.4rem, 2vw, 2rem) !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
}

.ua-site--modern .ua-highlights .highlighbox .centerthis > div {
    margin-block: 0 !important;
}

.ua-site--modern .ua-highlights .highlighbox .centerthis p {
    margin: 0;
    font-size: 1rem !important;
    line-height: 1.6 !important;
}

.ua-site--modern .ua-highlights .highlighbox :is(.fa, .fas, .far, .fal, .fab, .fa-solid, .fa-regular, .fa-brands) {
    color: var(--ua-color-action);
}

.ua-site--modern .ua-highlights .highlighbox a {
    color: inherit;
    text-decoration: none;
}

/* Standard: centered, elevated cards for general-purpose page links. */
.ua-site--modern .ua-highlights--cards .ua-highlights__grid {
    justify-content: center;
}

.ua-site--modern .ua-highlights--cards .highlighbox {
    flex-basis: 17rem;
    max-width: 20rem !important;
}

.ua-site--modern .ua-highlights--cards .highlighbox:is(:hover, :focus-within) {
    border-color: color-mix(in srgb, var(--ua-color-action) 45%, var(--ua-color-border)) !important;
    box-shadow: 0 1.15rem 3rem rgb(3 36 61 / 0.18);
    transform: translateY(-0.25rem);
}

/* Style 2: left-aligned utility tiles with a strong action edge. */
.ua-site--modern .ua-highlights--left-tiles .ua-highlights__grid {
    justify-content: center;
}

.ua-site--modern .ua-highlights--left-tiles .highlighbox {
    flex-basis: 19rem;
    max-width: 28rem !important;
    min-height: 11rem !important;
    justify-content: flex-start;
    border: 0 !important;
    border-left: 0.4rem solid var(--ua-color-action) !important;
    border-radius: var(--ua-radius-md) !important;
    background: var(--ua-color-surface-muted) !important;
    box-shadow: none;
}

.ua-site--modern .ua-highlights--left-tiles .centerthis,
.ua-site--modern .ua-highlights--left-tiles .centerthis > a {
    align-items: flex-start !important;
    text-align: left !important;
}

.ua-site--modern .ua-highlights--left-tiles .highlighbox:is(:hover, :focus-within) {
    background: color-mix(in srgb, var(--ua-color-surface-muted) 78%, var(--ua-color-accent)) !important;
    transform: translateX(0.25rem);
}

/* Style 3: a clean icon strip with dividers and no card chrome. */
.ua-site--modern .ua-highlights--minimal {
    border-block: 1px solid var(--ua-color-border);
    background: var(--ua-color-surface) !important;
}

.ua-site--modern .ua-highlights--minimal .highlighbox {
    flex-basis: 16rem;
    max-width: 22rem !important;
    min-height: 11rem !important;
    border: 0 !important;
    border-right: 1px solid var(--ua-color-border) !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none;
}

.ua-site--modern .ua-highlights--minimal .highlighbox:last-of-type {
    border-right: 0 !important;
}

.ua-site--modern .ua-highlights--minimal .highlighbox:has(+ div[style*="clear:left"]) {
    border-right: 0 !important;
}

.ua-site--modern .ua-highlights--minimal .highlighbox:is(:hover, :focus-within) {
    color: var(--ua-color-brand);
    background: var(--ua-color-surface-muted) !important;
}

/* Style 4: substantial raised cards intended to float over a nearby hero. */
.ua-site--modern .ua-highlights--floating {
    z-index: 2;
}

.ua-site--modern .ua-highlights--floating .ua-highlights__grid {
    gap: clamp(1rem, 2vw, 1.75rem);
}

.ua-site--modern .ua-highlights--floating .highlighbox {
    flex-basis: 18rem;
    max-width: 26rem !important;
    min-height: 16rem !important;
    border: 0 !important;
    border-top: 0.4rem solid var(--ua-color-accent) !important;
    box-shadow: 0 1.5rem 3.5rem rgb(3 36 61 / 0.22);
}

.ua-site--modern .ua-highlights--floating .highlighbox:is(:hover, :focus-within) {
    box-shadow: 0 1.8rem 4rem rgb(3 36 61 / 0.3);
    transform: translateY(-0.45rem);
}

/* Style 5: dark, horizontal icon-and-copy feature list. */
.ua-site--modern .ua-highlights--feature-list {
    color: var(--ua-color-on-brand);
    background: linear-gradient(135deg, var(--ua-color-brand-strong), var(--ua-color-brand)) !important;
}

.ua-site--modern .ua-highlights--feature-list .ua-highlights__grid {
    gap: 0;
}

.ua-site--modern .ua-highlights--feature-list .highlighbox {
    flex-basis: 22rem;
    max-width: 30rem !important;
    min-height: 10rem !important;
    border: 0 !important;
    border-right: 1px solid rgb(255 255 255 / 0.22) !important;
    border-radius: 0 !important;
    color: var(--ua-color-on-brand) !important;
    background: transparent !important;
    box-shadow: none;
}

.ua-site--modern .ua-highlights--feature-list .highlighbox:last-of-type {
    border-right: 0 !important;
}

.ua-site--modern .ua-highlights--feature-list .centerthis {
    display: block;
    text-align: left;
}

.ua-site--modern .ua-highlights--feature-list .centerthis table {
    width: 100%;
    color: inherit;
}

.ua-site--modern .ua-highlights--feature-list .centerthis td {
    color: inherit;
    vertical-align: top;
}

.ua-site--modern .ua-highlights--feature-list .highlighbox :is(.smalliconshighlights, .whotext, a) {
    color: var(--ua-color-on-brand) !important;
}

.ua-site--modern .ua-highlights--feature-list .highlighbox .whotext {
    font-size: clamp(1.3rem, 1.8vw, 1.65rem) !important;
}

.ua-site--modern .ua-highlights--feature-list .highlighbox:is(:hover, :focus-within) {
    background: rgb(255 255 255 / 0.1) !important;
}

/* Background Image: separate editorial image cards with readable overlays. */
.ua-site--modern .ua-highlights--image-cards .ua-highlights__grid {
    gap: clamp(1rem, 2vw, 1.5rem);
}

.ua-site--modern .ua-highlights--image-cards .highlighbox {
    flex-basis: 19rem;
    max-width: 30rem !important;
    min-height: clamp(19rem, 28vw, 25rem) !important;
    position: relative;
    overflow: hidden;
    border: 0 !important;
    color: #fff !important;
    background-color: var(--ua-color-brand-strong);
    box-shadow: var(--ua-shadow-card);
    isolation: isolate;
}

.ua-site--modern .ua-highlights--image-cards .highlighbox::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(to top, rgb(0 0 0 / 0.82), rgb(0 0 0 / 0.2)) !important;
}

.ua-site--modern .ua-highlights--image-cards .centerthis,
.ua-site--modern .ua-highlights--image-cards .highlighbox :is(.smalliconshighlights, .whotext, a) {
    color: #fff !important;
}

.ua-site--modern .ua-highlights--image-cards .highlighbox:is(:hover, :focus-within) {
    box-shadow: 0 1.5rem 3.5rem rgb(3 36 61 / 0.3);
    transform: translateY(-0.35rem);
}

/* Full Image: seamless, edge-to-edge visual panels rather than discrete cards. */
.ua-site--modern .ua-highlights--full-image .ua-highlights__frame {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

.ua-site--modern .ua-highlights--full-image .ua-highlights__grid {
    gap: 0;
}

.ua-site--modern .ua-highlights--full-image .highlighbox {
    flex-basis: 22rem;
    max-width: none !important;
    min-height: clamp(21rem, 32vw, 31rem) !important;
    position: relative;
    overflow: hidden;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    color: #fff !important;
    background-color: var(--ua-color-brand-strong);
    box-shadow: none;
    isolation: isolate;
}

.ua-site--modern .ua-highlights--full-image .highlighbox::before {
    content: "";
    position: absolute;
    z-index: 0;
    inset: 0;
    background: linear-gradient(to top, rgb(0 0 0 / 0.78), rgb(0 0 0 / 0.12));
}

.ua-site--modern .ua-highlights--full-image .innerbox {
    min-height: inherit !important;
    padding: clamp(2rem, 5vw, 4rem) !important;
    align-items: center !important;
}

.ua-site--modern .ua-highlights--full-image .centerthis,
.ua-site--modern .ua-highlights--full-image .highlighbox :is(.smalliconshighlights, .whotext, a) {
    z-index: 1;
    color: #fff !important;
}

.ua-site--modern .ua-highlights--full-image .highlighbox:is(:hover, :focus-within) .innerbox {
    background-color: rgb(0 0 0 / 0.18) !important;
}

/* Compact Highlight Bar: a dense, theme-driven utility strip inspired by
   traditional union action bars. It intentionally uses semantic markup rather
   than the legacy highlight-box layout so icons and copy stay aligned. */
.ua-site--modern .ua-highlights--compact-bar {
    border-top: 1px solid color-mix(in srgb, var(--ua-color-action) 72%, transparent);
    border-bottom: 0.22rem solid var(--ua-color-action);
    color: var(--ua-color-on-brand);
    background:
        linear-gradient(110deg, color-mix(in srgb, var(--ua-color-brand-strong) 94%, #000), var(--ua-color-brand-strong));
    box-shadow: inset 0 0.1rem 0 rgb(255 255 255 / 0.06);
}

.ua-site--modern .ua-highlights--compact-bar .ua-highlight-bar__frame {
    padding-block: clamp(0.7rem, 1.5vw, 1rem) !important;
}

.ua-site--modern .ua-highlight-bar__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: clamp(0.65rem, 1.2vw, 1rem);
}

.ua-site--modern .ua-highlight-bar__item {
    min-width: 0;
    min-height: 5.4rem;
    padding: 0.65rem 0.7rem;
    border: 1px solid color-mix(in srgb, var(--ua-color-on-brand) 52%, var(--ua-color-action));
    border-radius: calc(var(--ua-radius-sm) + 0.1rem);
    display: grid;
    grid-template-columns: 3.75rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 0.7rem;
    overflow: hidden;
    color: var(--ua-color-on-brand) !important;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--ua-color-brand-strong) 88%, #000), color-mix(in srgb, var(--ua-color-brand) 72%, #000));
    box-shadow: 0 0.4rem 1rem rgb(0 0 0 / 0.2), inset 0 0 0 1px rgb(255 255 255 / 0.035);
    text-align: left;
    text-decoration: none !important;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ua-site--modern .ua-highlight-bar__item:not(.ua-highlight-bar__item--static):is(:hover, :focus-visible) {
    border-color: var(--ua-color-action);
    color: var(--ua-color-on-brand) !important;
    box-shadow: 0 0.7rem 1.4rem rgb(0 0 0 / 0.3), inset 0 -0.18rem 0 var(--ua-color-action);
    transform: translateY(-0.14rem);
}

.ua-site--modern .ua-highlight-bar__icon {
    width: 3.75rem;
    height: 3.75rem;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: var(--ua-color-on-brand);
    background: color-mix(in srgb, var(--ua-color-brand-strong) 72%, #000);
    box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.07), 0 0.25rem 0.65rem rgb(0 0 0 / 0.22);
}

.ua-site--modern .ua-highlight-bar__icon i {
    color: inherit !important;
    font-size: 1.75rem;
    line-height: 1;
    transition: color 180ms ease, transform 180ms ease;
}

.ua-site--modern .ua-highlight-bar__copy {
    min-width: 0;
    display: grid;
    gap: 0.16rem;
}

.ua-site--modern .ua-highlight-bar__title {
    overflow-wrap: anywhere;
    color: inherit;
    font-family: var(--ua-font-heading);
    font-size: clamp(0.82rem, 1vw, 1rem);
    font-weight: 850;
    line-height: 1.12;
    letter-spacing: 0.015em;
    text-transform: uppercase;
}

.ua-site--modern .ua-highlight-bar__description {
    overflow: hidden;
    color: color-mix(in srgb, var(--ua-color-on-brand) 76%, transparent);
    font-size: clamp(0.68rem, 0.8vw, 0.78rem);
    line-height: 1.25;
}

.ua-site--modern .ua-highlight-bar__description :is(p, div) {
    margin: 0;
    color: inherit;
    font: inherit;
}

.ua-site--modern .ua-highlight-bar__arrow {
    margin-right: 0.15rem;
    color: var(--ua-color-on-brand) !important;
    font-size: 0.78rem;
    transition: color 180ms ease, transform 180ms ease;
}

.ua-site--modern .ua-highlight-bar__item:not(.ua-highlight-bar__item--static):is(:hover, :focus-visible) .ua-highlight-bar__icon i {
    color: var(--ua-color-action) !important;
    transform: scale(1.08);
}

.ua-site--modern .ua-highlight-bar__item:not(.ua-highlight-bar__item--static):is(:hover, :focus-visible) .ua-highlight-bar__arrow {
    color: var(--ua-color-action) !important;
    transform: translateX(0.2rem);
}

.ua-site--modern .ua-highlight-bar__admin {
    padding-top: 0.85rem;
    display: flex;
    justify-content: center;
}

.ua-site--modern .ua-highlight-bar__admin form {
    margin: 0;
}

@media (max-width: 74rem) {
    .ua-site--modern .ua-highlight-bar__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 40rem) {
    .ua-site--modern .ua-highlight-bar__grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .ua-site--modern .ua-highlight-bar__item {
        min-height: 5rem;
        grid-template-columns: 3.25rem minmax(0, 1fr) auto;
    }

    .ua-site--modern .ua-highlight-bar__icon {
        width: 3.25rem;
        height: 3.25rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ua-site--modern .ua-highlight-bar__item,
    .ua-site--modern .ua-highlight-bar__item :is(i, .ua-highlight-bar__arrow) {
        transition: none;
    }

    .ua-site--modern .ua-highlight-bar__item:not(.ua-highlight-bar__item--static):is(:hover, :focus-visible) {
        transform: none;
    }
}

@media (max-width: 44rem) {
    .ua-site--modern .ua-highlights--minimal .highlighbox,
    .ua-site--modern .ua-highlights--feature-list .highlighbox {
        border-right: 0 !important;
        border-bottom: 1px solid var(--ua-color-border) !important;
    }

    .ua-site--modern .ua-highlights--feature-list .highlighbox {
        border-bottom-color: rgb(255 255 255 / 0.22) !important;
    }

    .ua-site--modern .ua-highlights--minimal .highlighbox:last-of-type,
    .ua-site--modern .ua-highlights--feature-list .highlighbox:last-of-type {
        border-bottom: 0 !important;
    }
}

/* At the width where four minimum-size cards would otherwise become an
   unbalanced 3 + 1 layout, use a centered 2 + 2 flex arrangement. */
@media (max-width: 75rem) {
    .ua-site--modern .ua-highlights__grid:has(> .highlighbox:nth-child(4):last-child) > .highlighbox {
        flex-basis: calc(50% - 1rem);
    }

    .ua-site--modern .ua-highlights--full-image .ua-highlights__grid:has(> .highlighbox:nth-child(4):last-child) > .highlighbox {
        flex-basis: 50%;
    }
}

@media (max-width: 44rem) {
    .ua-site--modern .ua-highlights__grid:has(> .highlighbox:nth-child(4):last-child) > .highlighbox {
        flex-basis: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ua-site--modern .ua-highlights .highlighbox:is(:hover, :focus-within) {
        transform: none !important;
    }
}

/* Page Highlights Box is emitted by the mapped UnionActive system and uses
   highlights-wrapper rather than the selectable ua-highlights variants. Font
   Awesome gives its glyphs a fixed width, so explicitly center each icon as a
   flex item instead of relying on inherited text alignment. */
.ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    transition: background-color 220ms ease, border-color 220ms ease, box-shadow 220ms ease !important;
}

.ua-site--modern .highlights-wrapper .highlighbox > .centerthis {
    align-items: center !important;
    text-align: center !important;
}

.ua-site--modern .highlights-wrapper .smalliconshighlights {
    align-self: center !important;
    margin-inline: auto !important;
    transform-origin: center;
    transition: color 220ms ease, transform 220ms ease !important;
}

.ua-site--modern .highlights-wrapper .highlightarrow {
    transition: color 220ms ease, transform 220ms ease !important;
}

.ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox::after {
    content: "";
    position: absolute;
    z-index: 2;
    right: 0;
    bottom: 0;
    left: 0;
    height: 0.3rem;
    background: linear-gradient(90deg, var(--ua-color-action), var(--ua-color-accent));
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 240ms ease;
    pointer-events: none;
}

.ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox:is(:hover, :focus-within) {
    border-color: color-mix(in srgb, var(--ua-color-action) 32%, var(--ua-color-border)) !important;
    background-color: color-mix(in srgb, var(--ua-color-action) 7%, var(--ua-color-surface)) !important;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ua-color-action) 12%, transparent) !important;
    transform: none !important;
}

.ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox:is(:hover, :focus-within)::after {
    transform: scaleX(1);
}

.ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox:is(:hover, :focus-within) .smalliconshighlights {
    color: var(--ua-color-action) !important;
    transform: scale(1.1) rotate(-3deg) !important;
}

.ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox:is(:hover, :focus-within) .highlightarrow {
    color: var(--ua-color-action);
    transform: translateX(0.4rem);
}

@media (prefers-reduced-motion: reduce) {
    .ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox::after,
    .ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox:is(:hover, :focus-within) .smalliconshighlights,
    .ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox:is(:hover, :focus-within) .highlightarrow {
        transform: none !important;
    }

    .ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox::after {
        opacity: 0;
    }

    .ua-site--modern .highlights-wrapper .highlights-grid > .highlighbox:is(:hover, :focus-within)::after {
        opacity: 1;
    }
}

/* Two-column module groups retain their data behavior but gain modern spacing. */
.ua-site--modern .resptable {
    width: min(calc(100% - 2 * var(--ua-page-gutter)), var(--ua-content-max)) !important;
    max-width: var(--ua-content-max) !important;
    border-collapse: separate !important;
    border-spacing: clamp(0.75rem, 2vw, 1.5rem) 0 !important;
}

.ua-site--modern .respcell2x,
.ua-site--modern .respcell2xa {
    padding: 0 !important;
}

/* Give every inner column the same section inset, including stacked layouts.
   Keep the existing ContentPane IDs and ColdFusion includes for admin updates. */
.ua-site--modern .ua-inner-layout {
    padding-block: var(--ua-space-module) !important;
}

.ua-site--modern .ua-inner-layout > .resptable {
    display: block;
    border-spacing: 0 !important;
}

.ua-site--modern .ua-inner-layout > .resptable > tbody {
    display: block;
}

.ua-site--modern .ua-inner-layout > .resptable > tbody > .resprow {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 3fr);
    gap: var(--ua-space-module);
    align-items: start;
}

.ua-site--modern .ua-inner-layout--balanced > .resptable > tbody > .resprow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ua-site--modern .ua-inner-layout--three > .resptable > tbody > .resprow {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ua-site--modern .ua-inner-layout > .resptable > tbody > .resprow > td {
    display: block !important;
    width: auto !important;
    min-width: 0;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 0 !important;
}

.ua-site--modern .ua-inner-layout :is(#inner1columnspot, #inner2columnspot, #inner3columnspot, #inner4columnspot, #inner5columnspot) {
    height: auto !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Nested news uses its column frame instead of adding viewport-sized gutters. */
.ua-site--modern .ua-inner-layout .ua-news-section {
    padding-block: 0 !important;
}

.ua-site--modern .ua-news-section {
    container: ua-news / inline-size;
}

/* Whats New 3 Column keeps its readable inner frame, but its overall section
   background breaks out of any legacy centered table or column wrapper. */
.ua-site--modern.ua-site--home #maincolumnspot .ua-news-section--three-column {
    width: 100vw !important;
    max-width: none !important;
    margin-inline: calc(50% - 50vw) !important;
    overflow-x: clip;
}

/* The legacy module renderer places vertical spacing on the surrounding table
   cells. Match those exposed bands to the white three-column news section. */
.ua-site--modern :is(#maincolumnspot, #pagecolumnspot) td.modulebottomspace:has(.ua-news-section--three-column),
.ua-site--modern :is(#maincolumnspot, #pagecolumnspot) tr:has(+ tr > td.modulebottomspace .ua-news-section--three-column) > td.modulebottomspace {
    background-color: var(--ua-color-surface) !important;
}

/* The full-width gallery includes its own bottom padding, so suppress the
   legacy module-row gap that otherwise exposes a gray strip below it. */
.ua-site--modern :is(#maincolumnspot, #pagecolumnspot) td.modulebottomspace:has(.ua-gallery-slider) {
    min-width: 0 !important;
    max-width: 100% !important;
    padding-bottom: 0 !important;
    background-color: transparent !important;
}

.ua-site--modern :is(#maincolumnspot, #pagecolumnspot) td.modulebottomspace:has(.ua-gallery-slider) > table {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed;
}

/* Respond to the actual column width, including a narrow column on desktop. */
@container ua-news (max-width: 42rem) {
    .ua-site--modern .ua-news-section .responsive:has(.previewimagetablewhat) > tbody > tr {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ua-site--modern .ua-inner-layout .ua-news-section .ua-news-section__inner,
.ua-site--modern .ua-inner-layout div:has(> .highlighbox):not(.highlighbox) {
    width: calc(100% - 2 * var(--ua-module-edge-gap)) !important;
}

@media (max-width: 60rem) {
    .ua-site--modern .ua-inner-layout > .resptable > tbody > .resprow {
        grid-template-columns: minmax(0, 1fr);
    }

    .ua-site--modern .ua-inner-layout--three > .resptable > tbody > .resprow > .respcell3x {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
    }
}

.ua-site--modern :is(#inner1columnspot, #inner2columnspot) > table,
.ua-site--modern :is(#inner1columnspot, #inner2columnspot) .w3-card {
    margin-bottom: 1rem;
}

/* Alternating article modules become high-contrast editorial feature rows. */
.ua-site--modern .subjectlinework,
.ua-site--modern .subjectlinetext {
    min-height: clamp(24rem, 38vw, 34rem) !important;
}

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

.ua-site--modern .subjectlinetext h2 a {
    text-decoration: none;
}

.ua-site--modern .subjectlinework {
    background-position: center !important;
    background-size: cover !important;
}

.ua-site--modern .subjectlinetext {
    padding: clamp(2rem, 6vw, 5rem) !important;
    display: flex !important;
    align-items: center;
    color: var(--ua-color-text) !important;
    background: var(--ua-color-surface) !important;
}

.ua-site--modern .subjectlinetext :is(h1, h2, h3, a) {
    color: var(--ua-color-brand-strong) !important;
}

.ua-site--modern .subjectlinetext .articlefont,
.ua-site--modern .subjectlinetext p,
.ua-site--modern .subjectlinetext div {
    color: var(--ua-color-text) !important;
    letter-spacing: normal !important;
    line-height: 1.7 !important;
}

/* Interior page mastheads should read as page titles, not narrow module labels. */
.ua-site--modern #pageheaderspace,
.ua-site--modern #innerdarkdiv {
    min-height: 0 !important;
    height: auto !important;
}

.ua-site--modern #pageheaderspace {
    min-height: var(--ua-page-masthead-height) !important;
    padding: clamp(2rem, 4vw, 3.5rem) !important;
    display: flex !important;
    align-items: center;
    color: var(--ua-color-on-brand);
    background-color: var(--ua-color-brand-strong);
    opacity: 1 !important;
    animation: none !important;
    isolation: isolate;
}

.ua-site--modern > #pageheaderspace {
    width: 100%;
    margin: 0 !important;
    padding-inline: max(var(--ua-page-gutter), calc((100% - var(--ua-content-max)) / 2)) !important;
}

.ua-site--modern #pageheaderspace::before {
    content: "";
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgb(3 24 39 / 0.88), rgb(7 59 99 / 0.6));
}

.ua-site--modern #innerdarkdiv {
    width: 100%;
    padding: 0 !important;
    background: transparent !important;
    text-align: left;
}

/* Shared-system breadcrumbs. JavaScript places the same server-rendered trail
   inside an available page masthead; this base treatment remains as a clean
   fallback on system pages that do not provide #pageheaderspace. */
.ua-site--modern .ua-breadcrumbs {
    width: min(calc(100% - 2 * var(--ua-page-gutter)), var(--ua-content-max));
    margin-inline: auto;
    padding-block: 0.8rem;
    color: var(--ua-color-text-muted);
    font-size: clamp(0.78rem, 1vw, 0.9rem);
    font-weight: 650;
    line-height: 1.4;
}

.ua-site--modern .ua-breadcrumbs:empty {
    display: none;
}

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

.ua-site--modern .ua-breadcrumbs > *,
.ua-site--modern .ua-breadcrumbs :is(table, tbody, tr, td) {
    width: auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    color: inherit !important;
    background: transparent !important;
}

.ua-site--modern .ua-breadcrumbs a {
    color: var(--ua-color-link) !important;
    font-weight: 750;
    text-decoration: none;
    text-underline-offset: 0.2em;
}

.ua-site--modern .ua-breadcrumbs a:hover {
    text-decoration: underline;
}

.ua-site--modern .ua-breadcrumbs a:focus-visible {
    border-radius: 0.2rem;
    outline: 2px solid currentcolor;
    outline-offset: 0.2rem;
}

.ua-site--modern #pageheaderspace .ua-breadcrumbs--masthead {
    width: fit-content;
    max-width: 100%;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 0 clamp(0.85rem, 1.8vw, 1.25rem) !important;
    padding: 0.45rem 0.7rem !important;
    display: inline-flex;
    align-items: center;
    border: 1px solid rgb(255 255 255 / 0.22);
    border-radius: 0.55rem;
    color: rgb(255 255 255 / 0.82) !important;
    background: rgb(3 24 39 / 0.38);
    box-shadow: 0 0.5rem 1.5rem rgb(0 0 0 / 0.12);
    backdrop-filter: blur(0.45rem);
    -webkit-backdrop-filter: blur(0.45rem);
}

.ua-site--modern #pageheaderspace .ua-breadcrumbs--masthead *,
.ua-site--modern #pageheaderspace .ua-breadcrumbs--masthead :is(div, table, tbody, tr, td) {
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.35 !important;
}

.ua-site--modern #pageheaderspace .ua-breadcrumbs--masthead a {
    color: rgb(255 255 255 / 0.88) !important;
    transition: color 160ms ease, opacity 160ms ease;
}

.ua-site--modern #pageheaderspace .ua-breadcrumbs--masthead a:hover {
    color: #fff !important;
}

.ua-site--modern #pageheaderspace .ua-breadcrumbs--masthead a:last-of-type {
    color: #fff !important;
    font-weight: 850;
}

.ua-site--modern #pageheaderspace .pageheader {
    margin: 0 !important;
    padding: 0 !important;
    color: var(--ua-color-on-brand) !important;
    font-family: var(--ua-font-heading) !important;
    font-size: var(--ua-font-size-page-title) !important;
    font-weight: 900 !important;
    line-height: 0.98 !important;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

/* Built-in modules use h1/h2 inconsistently; size their headings by region. */
.ua-site--modern #maincolumnspot h1 {
    font-size: var(--ua-font-size-section-title);
}

.ua-site--modern :is(.ua-region, .respcell2xa, .respcell2x, #inner1columnspot, #inner2columnspot, #inner3columnspot, #inner4columnspot, #inner5columnspot) :is(h1, h2) {
    font-size: var(--ua-font-size-module-title);
    line-height: 1.18;
    margin: 0 0 0.75rem;
}

.ua-site--modern :is(.pageheader, .articleheader, .subarticleheader) {
    margin: 0 0 1rem;
    color: var(--ua-color-brand-strong);
    font-family: var(--ua-font-heading);
    font-size: var(--ua-font-size-page-title) !important;
    font-weight: 800;
    line-height: 1.12;
    text-wrap: balance;
}

.ua-site--modern span.pageheader {
    display: inline-block;
}

.ua-site--modern .headlinehometitle {
    font-size: clamp(1.2rem, 1.8vw, 1.6rem) !important;
    line-height: 1.25 !important;
    text-transform: none !important;
}

.ua-site--modern .headlinehometitle a {
    text-decoration: none;
}

.ua-site--modern .pagedates {
    color: var(--ua-color-text-muted);
    font-size: 0.875rem;
}

.ua-site--modern :is([class*="modulebottomspaceinner"], .modulebottomspacelt, .modulebottomspacert) {
    padding-bottom: 1.25rem !important;
}

.ua-site--modern .headlines3 > .w3-card {
    width: 100%;
    max-width: none !important;
}

.ua-site--modern .resprow:has(> .headlines3) {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 1.25rem;
}

.ua-site--modern .resprow > .headlines3 {
    width: auto !important;
    min-width: 0 !important;
    max-width: none !important;
    padding: 0 !important;
}

.ua-site--modern table:has(> tbody > .resprow > .headlines3) {
    width: 100% !important;
    height: auto !important;
}

/* Every outer listing table must fill its parent. A full-width grid inside a
   shrink-wrapped outer table still collapses into narrow, centered cards. */
.ua-site--modern .maincolumn table:has(.resprow > .headlines3) {
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
}

.ua-site--modern .headlines3 > .w3-card {
    overflow: hidden;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.ua-site--modern .headlines3 > .w3-card > div:not(.w3-modal) {
    min-height: 0 !important;
    padding: clamp(1.25rem, 2vw, 1.75rem) !important;
    flex: 1 1 auto;
}

.ua-site--modern .headlines3 .headlinehometitle {
    display: block !important;
    padding: 0 0 1rem !important;
    font-size: clamp(1.3rem, 2vw, 1.75rem) !important;
}

.ua-site--modern .headlines3 .imagewithhover {
    min-height: 0 !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
}

.ua-site--modern .headlines3 .buttoncolor {
    min-height: 2.75rem;
    padding: 0.65rem 1.1rem;
    font-size: 0.95rem;
}

.ua-site--modern.ua-site--home .modulebottomspace > table > tbody > tr > td > div:not(.ua-news-section):not(:has(> .ua-news-section--flush-top)):has(.resprow > .headlines3) {
    padding-inline: var(--ua-page-gutter) !important;
}

.ua-site--modern.ua-site--home .modulebottomspace > table > tbody > tr > td > div:has(> .ua-news-section--flush-top) {
    padding: 0 !important;
}

.ua-site--modern .ua-region td.modulebottomspace {
    padding-bottom: 1.25rem !important;
}

/* Compact calendar: one outer card and a calm seven-column date grid. The
   original event links, inline event borders, and month handlers remain active. */
.ua-site--modern #smallcalendarspot {
    height: auto !important;
    min-height: 0 !important;
    padding: 1rem !important;
    margin-bottom: 0;
    color: var(--ua-color-text);
    background: var(--ua-color-surface) !important;
}

.ua-site--modern #smallcalendarspot table {
    width: 100%;
    margin: 0 !important;
    border-collapse: separate;
    border-spacing: 0;
    font-family: var(--ua-font-body);
    font-size: 0.875rem;
}

.ua-site--modern #smallcalendarspot :is(.calendarmodulebox, .calendarmodulecontent, .calendarmodulecontainer) {
    padding: 0;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.ua-site--modern #smallcalendarspot :is(.LTEdge, .RTEdge, .LeftEdge, .RightEdge, .BLEdge, .BottomEdge, .BREdge) {
    display: none;
}

.ua-site--modern #smallcalendarspot .TopEdge {
    padding: 0 0 0.65rem;
}

.ua-site--modern #smallcalendarspot .topedge td {
    padding: 0;
}

.ua-site--modern #smallcalendarspot .calendarmoduletitle {
    min-height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ua-color-brand-strong);
    font-family: var(--ua-font-heading);
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.ua-site--modern #smallcalendarspot .topedge td:is(:first-child, :last-child) a {
    width: 2.5rem;
    border: 1px solid var(--ua-color-border);
    border-radius: var(--ua-radius-sm);
    font-size: 0.85rem;
}

.ua-site--modern #smallcalendarspot .topedge a:hover {
    background: var(--ua-color-surface-muted);
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer {
    table-layout: fixed;
    border-spacing: 0.15rem;
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer td {
    width: calc(100% / 7);
    height: 2.25rem;
    padding: 0.1rem;
    vertical-align: middle;
    text-align: center;
    background: transparent !important;
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer td:not([style*="2px"]) {
    border: 0 !important;
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer td span {
    min-height: 2rem;
    border-radius: var(--ua-radius-sm);
    display: grid;
    place-items: center;
    line-height: 1;
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer tr:first-child td {
    color: var(--ua-color-text-muted);
    font-size: 0.7rem;
    font-weight: 750;
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer td[bgcolor="#ffffcc" i] span {
    color: var(--ua-color-on-brand);
    background: var(--ua-color-brand);
    font-weight: 800;
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer a {
    display: block;
    border-radius: var(--ua-radius-sm);
    color: var(--ua-color-link);
    background: var(--ua-color-surface-muted);
    font-weight: 800;
    text-decoration: none;
}

/* Event cells are identified from the ColdFusion-rendered detail links. The
   event's configured color is exposed as a custom property by ua-shell.js so
   the modern calendar retains the original colored, clickable dates. */
.ua-site--modern #smallcalendarspot .calendarmodulecontainer td.ua-calendar-event-day {
    border-color: var(--ua-calendar-event-color) !important;
    color: var(--ua-calendar-event-foreground, #fff) !important;
    background: var(--ua-calendar-event-color) !important;
    border-radius: var(--ua-radius-sm);
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer td.ua-calendar-event-day a {
    min-height: 2rem;
    display: grid;
    place-items: center;
    color: var(--ua-calendar-event-foreground, #fff) !important;
    background: transparent !important;
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer td.ua-calendar-event-day span {
    color: inherit !important;
    background: transparent !important;
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer td.ua-calendar-event-day:hover {
    filter: brightness(0.92);
}

.ua-site--modern #smallcalendarspot .calendarmodulecontainer a:hover {
    outline: 1px solid var(--ua-color-brand);
}

.ua-site--modern .responsive:has(.previewimagetablewhat) {
    width: 100%;
}

.ua-site--modern .responsive:has(.previewimagetablewhat) > tbody > tr {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.25rem;
    align-items: start;
}

.ua-site--modern .responsive:has(.previewimagetablewhat) > tbody > tr > td {
    min-width: 0;
    padding: 0;
}

.ua-site--modern .previewimagetablewhat,
.ua-site--modern .previewimagetablewhat img {
    width: 100% !important;
    max-width: none !important;
    float: none !important;
}

.ua-site--modern .previewimagetablewhat img {
    border-radius: var(--ua-radius-md) !important;
}

.ua-site--modern .whatsnewhometitle {
    font-family: var(--ua-font-heading);
    font-size: clamp(1.4rem, 1.8vw, 1.75rem);
    font-weight: 800;
    line-height: 1.25;
    text-decoration: none;
}

/* Section headings keep the same hierarchy even inside an inner column. */
.ua-site--modern .ua-news-section .ua-news-section__title {
    margin: 0 !important;
    font-size: var(--ua-font-size-section-title) !important;
    line-height: 1.15 !important;
}

.ua-site--modern .headlines3 .imagecontainer {
    width: 100%;
    min-height: 0 !important;
    background-size: cover;
    background-position: center;
}

/* Clean, compact administration controls, including keyboard-open menus. */
.ua-site--modern .ua-admin-bar {
    padding: 0.5rem 1rem;
    background: var(--ua-color-surface-muted);
}

.ua-site--modern .ua-admin-tools {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
    max-width: var(--ua-content-max);
    margin-inline: auto;
}

.ua-site--modern .ua-admin-tools .w3-dropdown-hover {
    border-radius: var(--ua-radius-sm);
    background: transparent !important;
}

.ua-site--modern .ua-admin-tools .ua-admin-tools__trigger {
    min-height: 2.35rem;
    padding: 0.5rem 0.8rem !important;
    border-radius: var(--ua-radius-sm);
    color: var(--ua-color-on-brand) !important;
    background: var(--ua-color-brand) !important;
    font-size: 0.875rem;
    cursor: pointer !important;
}

.ua-site--modern .ua-admin-tools .w3-dropdown-content {
    right: 0;
    min-width: 13rem;
    padding: 0.4rem;
    border: 1px solid var(--ua-color-border);
    border-radius: var(--ua-radius-md);
    background: var(--ua-color-surface);
    box-shadow: var(--ua-shadow-card);
}

.ua-site--modern .ua-admin-tools .w3-dropdown-hover:focus-within .w3-dropdown-content {
    display: block;
}

.ua-site--modern .ua-admin-tools .w3-dropdown-content a {
    padding: 0.65rem 0.8rem;
    border-radius: var(--ua-radius-sm);
    color: var(--ua-color-text) !important;
    background: transparent !important;
    font-size: 0.9rem;
}

.ua-site--modern .ua-admin-tools .w3-dropdown-content a:is(:hover, :focus-visible) {
    background: var(--ua-color-surface-muted) !important;
}

.ua-site--modern .showmodulesbox {
    margin-bottom: 0.75rem;
    border: 1px solid var(--ua-color-border) !important;
    color: var(--ua-color-text);
    background: var(--ua-color-surface-muted) !important;
    font-size: 0.8rem;
}

.ua-site--modern .showmodulesbox td {
    padding: 0.35rem;
    white-space: normal;
}

.ua-site--modern .showmodulesbox a {
    min-width: 1.75rem;
    min-height: 1.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.ua-site--modern .ua-module-toolbar {
    width: 100%;
    padding: 0.75rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    border-radius: var(--ua-radius-md);
    font-size: 0.9rem;
}

.ua-site--modern table:has(> tbody > tr > td > .ua-module-toolbar),
.ua-site--modern table:has(> tbody > tr > td > .ua-module-toolbar) > tbody > tr > td {
    border: 0 !important;
    background-color: transparent !important;
}

.ua-site--modern .ua-module-toolbar__index {
    width: 2rem;
    height: 2rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    color: var(--ua-color-on-brand);
    background: var(--ua-color-brand);
    font-weight: 800;
    flex: 0 0 2rem;
}

.ua-site--modern .ua-module-toolbar__name {
    min-width: 0;
    overflow-wrap: anywhere;
    font-weight: 750;
    text-transform: capitalize;
    flex: 1 1 10rem;
}

.ua-site--modern .ua-module-toolbar__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    max-width: 100%;
    margin-left: auto;
}

.ua-site--modern .ua-module-toolbar .ua-module-action {
    min-width: 2.75rem;
    min-height: 2.75rem;
    padding: 0.55rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1px solid var(--ua-color-border);
    border-radius: var(--ua-radius-sm);
    color: var(--ua-color-brand-strong);
    background: var(--ua-color-surface);
    font-size: 0.85rem;
    font-weight: 750;
    text-decoration: none;
}

.ua-site--modern .ua-module-toolbar .ua-module-action:hover {
    border-color: var(--ua-color-brand);
    background: var(--ua-color-surface-muted);
}

.ua-site--modern .ua-module-toolbar .ua-module-action--remove {
    color: #a2172d;
    background: #fff0f2;
    border-color: #eac4cb;
}

.ua-site--modern .ua-column-editor-host {
    height: auto !important;
    padding: 0 !important;
    vertical-align: top !important;
    background: transparent !important;
}

.ua-site--modern .ua-column-editor {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
}

.ua-site--modern .ua-column-editor-shell {
    width: 100% !important;
    height: auto !important;
    margin: var(--ua-space-module) 0 !important;
    border: 1px solid var(--ua-color-border) !important;
    border-spacing: 0 !important;
    border-collapse: separate !important;
    border-radius: var(--ua-radius-md);
    overflow: hidden;
    color: var(--ua-color-text);
    background: var(--ua-color-surface) !important;
    box-shadow: var(--ua-shadow-card);
}

.ua-site--modern .ua-column-editor__header {
    height: auto !important;
    padding: 0.85rem 1rem !important;
    border: 0 !important;
    color: var(--ua-color-on-brand) !important;
    background: linear-gradient(135deg, var(--ua-color-brand-strong), var(--ua-color-brand)) !important;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    text-align: left !important;
}

.ua-site--modern .ua-column-editor__header > * {
    color: inherit !important;
}

.ua-site--modern .ua-column-editor__header-icon {
    margin-right: 0.6rem;
}

.ua-site--modern .ua-column-editor__body {
    height: auto !important;
    padding: 1rem !important;
    border: 0 !important;
    color: var(--ua-color-text) !important;
    background: var(--ua-color-surface) !important;
    text-align: left !important;
}

.ua-site--modern .ua-column-editor__body br {
    display: none;
}

.ua-site--modern .ua-column-editor__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem;
    width: min(100%, 48rem);
    margin-inline: auto;
}

.ua-site--modern .ua-column-editor__field {
    display: grid;
    gap: 0.3rem;
    min-width: 0;
    margin: 0;
}

.ua-site--modern .ua-column-editor__field--module {
    flex: 1 1 18rem;
}

.ua-site--modern .ua-column-editor__field--position {
    flex: 0 0 5rem;
}

.ua-site--modern .ua-column-editor__label {
    color: var(--ua-color-text-muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    text-transform: uppercase;
}

.ua-site--modern .ua-column-editor__controls select,
.ua-site--modern .ua-column-editor__controls input[name="listspot"] {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 2.75rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--ua-color-border);
    border-radius: var(--ua-radius-sm);
    color: var(--ua-color-text);
    background: var(--ua-color-surface);
}

.ua-site--modern .ua-column-editor__submit {
    flex: 0 0 auto;
    width: auto !important;
    min-height: 2.75rem !important;
    margin: 0 !important;
    padding: 0.65rem 1.15rem !important;
    border: 1px solid var(--ua-color-brand-strong) !important;
    border-radius: var(--ua-radius-sm) !important;
    color: var(--ua-color-on-brand) !important;
    background: linear-gradient(135deg, var(--ua-color-brand), var(--ua-color-brand-strong)) !important;
    box-shadow: 0 0.45rem 1rem rgb(3 49 78 / 0.2);
    font-weight: 800 !important;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.ua-site--modern .ua-column-editor__submit:hover {
    box-shadow: 0 0.65rem 1.3rem rgb(3 49 78 / 0.28);
    filter: brightness(1.08);
    transform: translateY(-2px);
}

.ua-site--modern .ua-column-editor__submit:active {
    box-shadow: 0 0.25rem 0.65rem rgb(3 49 78 / 0.2);
    transform: translateY(0);
}

.ua-site--modern .ua-column-editor__submit:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ua-color-brand) 34%, white);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .ua-site--modern .ua-column-editor__submit {
        transition: none;
    }

    .ua-site--modern .ua-column-editor__submit:hover {
        transform: none;
    }
}

.ua-site--modern .ua-column-editor__actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--ua-color-border);
}

.ua-site--modern .ua-column-editor__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.4rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--ua-color-border);
    border-radius: var(--ua-radius-sm);
    color: var(--ua-color-brand-strong) !important;
    background: var(--ua-color-surface-muted);
    font-size: 0.83rem;
    font-weight: 750;
    line-height: 1.2;
    text-decoration: none !important;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.ua-site--modern .ua-column-editor__action:hover {
    border-color: var(--ua-color-brand);
    box-shadow: var(--ua-shadow-card);
    transform: translateY(-1px);
}

.ua-site--modern .ua-column-editor__action--remove {
    color: #a2172d !important;
    border-color: #eac4cb;
    background: #fff0f2;
}

@media (max-width: 62rem) {
    .ua-site--modern .ua-module-toolbar__actions {
        width: 100%;
        justify-content: flex-end;
    }
}

@media (max-width: 30rem) {
    .ua-site--modern .ua-module-toolbar {
        padding: 0.75rem;
    }

    .ua-site--modern .ua-module-action span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .ua-site--modern .ua-column-editor__field--module {
        flex-basis: 100%;
    }

    .ua-site--modern .ua-column-editor__submit {
        flex: 1 1 auto;
    }
}

.ua-site--modern .ua-module-empty {
    display: none !important;
}

.ua-site--modern #pageheaderspace .subpageheader {
    margin-top: 1rem;
    color: rgb(255 255 255 / 0.82) !important;
    font-size: clamp(1rem, 2vw, 1.3rem) !important;
}

@media (prefers-reduced-motion: no-preference) {
    .ua-site--modern .highlighbox {
        transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
    }

    .ua-site--modern .highlighbox:hover {
        border-color: color-mix(in srgb, var(--ua-color-action) 55%, var(--ua-color-border)) !important;
        box-shadow: 0 1.4rem 3rem rgb(13 38 49 / 0.18);
        transform: translateY(-0.35rem);
    }
}

@media (max-width: 74rem) {
    .ua-site--modern #maintablenavlist > tbody > tr {
        grid-template-columns: minmax(0, 1fr);
    }

    .ua-site--modern #maintablenavlist .leftcolumn,
    .ua-site--modern #maintablenavlist .rightcolumn,
    .ua-site--modern #maintablenavlist .maincolumn {
        width: auto;
    }
}

@media (max-width: 62.5rem) {
    .ua-site--modern .subjectlinework,
    .ua-site--modern .subjectlinetext {
        width: 100% !important;
        min-height: 0 !important;
        float: none !important;
    }

    .ua-site--modern .subjectlinework {
        min-height: 24rem !important;
    }
}

@media (max-width: 42rem) {
    .ua-site--modern .responsive:has(.previewimagetablewhat) > tbody > tr {
        grid-template-columns: minmax(0, 1fr);
    }
    .ua-site--modern.ua-site--home #maincolumnspot td.modulebottomspace {
        padding-bottom: 0.75rem !important;
    }

    .ua-site--modern .resptable {
        width: min(calc(100% - 2 * var(--ua-page-gutter)), var(--ua-content-max)) !important;
        border-spacing: 0 !important;
    }

    .ua-site--modern #pageheaderspace {
        min-height: 14rem !important;
        padding: 1.5rem 1rem !important;
    }

    .ua-site--modern #pageheaderspace .pageheader {
        font-size: clamp(1.55rem, 7vw, 2.15rem) !important;
    }

    .ua-site--modern #pageheaderspace .ua-breadcrumbs--masthead {
        width: fit-content;
        padding: 0.42rem 0.65rem !important;
        border-radius: 0.5rem;
        white-space: normal;
    }
}

/* Native custom-module editor. The existing UnionActive pages remain usable
   on their own; these rules only apply when they are hosted in this dialog. */
body.ua-module-dialog-open {
    overflow: hidden;
}

.ua-native-module-dialog {
    width: min(96vw, 78rem);
    height: min(92dvh, 60rem);
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--ua-color-brand) 24%, var(--ua-color-border));
    border-radius: var(--ua-radius-lg);
    color: var(--ua-color-text);
    background: var(--ua-color-surface);
    box-shadow: 0 2rem 6rem rgb(2 23 38 / 0.38);
}

.ua-native-module-dialog::backdrop {
    background: rgb(2 23 38 / 0.72);
    backdrop-filter: blur(0.22rem);
}

.ua-native-module-dialog__shell {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
}

.ua-native-module-dialog__header,
.ua-native-module-dialog__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.8rem clamp(1rem, 2.5vw, 1.5rem);
    background: var(--ua-color-surface);
}

.ua-native-module-dialog__header {
    min-height: 4.6rem;
    border-bottom: 1px solid var(--ua-color-border);
}

.ua-native-module-dialog__header h2 {
    margin: 0;
    color: var(--ua-color-brand-strong);
    font-size: clamp(1.25rem, 2.2vw, 1.7rem);
    line-height: 1.15;
}

.ua-native-module-dialog__eyebrow {
    display: block;
    margin-bottom: 0.18rem;
    color: var(--ua-color-text-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.ua-native-module-dialog__close,
.ua-native-module-dialog__done {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.75rem;
    border-radius: 999px;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    transition: transform 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.ua-native-module-dialog__close {
    width: 2.75rem;
    padding: 0;
    border: 1px solid var(--ua-color-border);
    color: var(--ua-color-brand-strong);
    background: var(--ua-color-surface-muted);
    font-size: 1.15rem;
}

.ua-native-module-dialog__done {
    min-width: 8rem;
    padding: 0.65rem 1.15rem;
    border: 1px solid var(--ua-color-brand);
    color: #fff;
    background: var(--ua-color-brand);
}

.ua-native-module-dialog__close:hover,
.ua-native-module-dialog__done:hover {
    box-shadow: var(--ua-shadow-card);
    transform: translateY(-1px);
}

.ua-native-module-dialog__close:focus-visible,
.ua-native-module-dialog__done:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--ua-color-action) 60%, white);
    outline-offset: 2px;
}

.ua-native-module-dialog__body {
    position: relative;
    min-height: 0;
    overflow: hidden;
    background: var(--ua-color-surface-muted);
}

.ua-native-module-dialog__frame {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    background: var(--ua-color-surface-muted);
}

.ua-native-module-dialog__loading {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.7rem;
    color: var(--ua-color-brand-strong);
    background: rgb(245 248 250 / 0.94);
    font-weight: 800;
}

.ua-native-module-dialog__loading[hidden] {
    display: none;
}

.ua-native-module-dialog__footer {
    min-height: 4rem;
    border-top: 1px solid var(--ua-color-border);
}

.ua-native-module-dialog__status {
    margin: 0;
    color: var(--ua-color-text-muted);
    font-size: 0.9rem;
}

body.ua-module-editor-frame {
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    background: var(--ua-color-surface-muted) !important;
}

/* Native page-content editor frames are intentionally independent of the
   public site layout. They keep the legacy editing pages usable while the
   surrounding window uses the modern, accessible dialog component. */
body.ua-native-editor-frame {
    min-width: 0 !important;
    margin: 0 !important;
    padding: clamp(0.85rem, 2.5vw, 1.5rem) !important;
    overflow-x: hidden !important;
    color: #142536 !important;
    background: #f5f8fa !important;
    font-family: var(--ua-font-body, Arial, sans-serif) !important;
}

body.ua-native-editor-frame :is(form, table, tbody, tr, td) {
    max-width: 100% !important;
    box-sizing: border-box;
}

body.ua-native-editor-frame table {
    width: 100% !important;
}

body.ua-native-editor-frame :is(input, select, textarea) {
    max-width: 100% !important;
    box-sizing: border-box;
}

body.ua-native-editor-frame :is(input[type="text"], input[type="url"], input[type="number"], input[type="file"], select, textarea) {
    min-height: 2.65rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid #aebdca;
    border-radius: 0.35rem;
    color: #142536;
    background: #fff;
    font: inherit;
}

body.ua-native-editor-frame .ua-community-feature-editor__detail,
body.ua-native-editor-frame .ua-native-editor-error-detail {
    margin-top: 0.75rem;
    padding: 0.75rem;
    border-radius: 0.35rem;
    color: #5f1721;
    background: #fff0f2;
    font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 0.82rem;
    overflow-wrap: anywhere;
}

.ua-native-content-editor .ua-native-module-dialog__close > span {
    display: block;
    font-size: 1.75rem;
    font-weight: 500;
    line-height: 1;
}

/* Keep a visible close control on older Dojo dialogs that remain elsewhere
   in the administration tools even if the Tundra sprite fails to load. */
.tundra .dijitDialogCloseIcon,
.tundra .dojoxDialogCloseIcon {
    width: 2rem !important;
    height: 2rem !important;
    border: 1px solid #aebdca !important;
    border-radius: 50% !important;
    background: #fff !important;
    color: #142536 !important;
    text-indent: 0 !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.tundra .dijitDialogCloseIcon::before,
.tundra .dojoxDialogCloseIcon::before {
    content: "\00d7";
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: 1.45rem;
    line-height: 1;
}

body.ua-module-editor-frame > .ua-site > :not(.ua-layout) {
    display: none !important;
}

body.ua-module-editor-frame .ua-layout {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-height: 100dvh;
    margin: 0 !important;
    padding: clamp(0.75rem, 2vw, 1.5rem) !important;
}

body.ua-module-editor-frame .ua-layout > aside {
    display: none !important;
}

body.ua-module-editor-frame .ua-main-region,
body.ua-module-editor-frame #maincolumnspot {
    width: 100% !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

body.ua-module-editor-frame #pageheaderspace {
    display: none !important;
}

body.ua-module-editor-frame #maincolumnspot :is(form, table, tbody, tr, td) {
    max-width: 100% !important;
    box-sizing: border-box;
}

body.ua-module-editor-frame #maincolumnspot :is(input, select, textarea) {
    max-width: 100%;
    box-sizing: border-box;
}

body.ua-module-editor-frame #maincolumnspot :is(input[type="text"], input[type="password"], input[type="email"], input[type="url"], input[type="number"], select, textarea) {
    min-height: 2.65rem;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--ua-color-border);
    border-radius: var(--ua-radius-sm);
    background: #fff;
    font: inherit;
}

body.ua-module-editor-frame #maincolumnspot :is(input[type="submit"], input[type="button"], button) {
    min-height: 2.7rem;
    padding: 0.55rem 1rem;
    border: 1px solid var(--ua-color-brand);
    border-radius: var(--ua-radius-sm);
    color: #fff;
    background: var(--ua-color-brand);
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 42rem) {
    .ua-native-module-dialog {
        width: 100vw;
        height: 100dvh;
        border: 0;
        border-radius: 0;
    }

    .ua-native-module-dialog__header,
    .ua-native-module-dialog__footer {
        padding-inline: 0.8rem;
    }

    .ua-native-module-dialog__status {
        font-size: 0.78rem;
    }

    .ua-native-module-dialog__done {
        min-width: 6.5rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ua-native-module-dialog__close,
    .ua-native-module-dialog__done {
        transition: none;
    }
}
