@import url('https://fonts.googleapis.com/css2?family=Antonio:wght@400;500;700&family=Palanquin:wght@400;500;600;700&display=swap');

/*make default font because they are using inline style in the web notes.*/
html, body, body p, body span {
    font-family: 'Palanquin', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
    font-weight: 500 !important;
}

/*fonts-loaded class - applied by JS once Google Fonts finish loading (prevents FOUT)*/
html.fonts-loaded body,
html.fonts-loaded body p,
html.fonts-loaded body span {
    font-family: 'Palanquin', 'Segoe UI', system-ui, -apple-system, sans-serif !important;
}

html.fonts-loaded .BannerNote h2,
html.fonts-loaded .BannerNote h2 span,
html.fonts-loaded .GeneralBlueMainPage h1 span {
    font-family: 'Antonio', Impact, 'Arial Narrow', Arial, sans-serif !important;
}

html.fonts-loaded .GeneralBlueTop2 ul.pureCssMenu a,
html.fonts-loaded .GeneralBlueTop2 ul.pureCssMenu a:hover,
html.fonts-loaded .GeneralBlueTop2 ul.pureCssMenu a:focus {
    font-family: 'Antonio', Impact, 'Arial Narrow', Arial, sans-serif !important;
}

/* Change top menu font to Antonio and override pureCssMenu font shorthand */
.GeneralBlueTop2 ul.pureCssMenu a,
.GeneralBlueTop2 ul.pureCssMenu a:hover,
.GeneralBlueTop2 ul.pureCssMenu a:focus,
.GeneralBlueTop2 ul.pureCssMenu li a:hover,
.GeneralBlueTop2 ul.pureCssMenu li.dis a:hover,
.GeneralBlueTop2 ul.pureCssMenu li.sep a:hover {
    font-family: 'Antonio', Impact, 'Arial Narrow', Arial, sans-serif !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    letter-spacing: 0.045em !important;
}

.BannerNote {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 8px !important;
    overflow: hidden;
    transform: translateZ(0);
    /*will-change intentionally omitted - managed entirely by JS*/
}

.BannerNote h2,
.BannerNote h2 span {
    color: #ffffff !important;
    font-family: 'Antonio', Impact, 'Arial Narrow', Arial, sans-serif !important;
    font-size: 36px !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.045em !important;
}

/*make header height more because their logo does not fit vertically*/
.GeneralBlueTop1 {
    height: 71px;
    background-color: #ffffff !important;
}

.GeneralBlueTop2 {
    top: 71px;
    background: rgba(0, 68, 181, 0.92) !important;
}

/*change background color for footer*/
.GeneralBlueBottom5 {
    background-color: #21296B !important;
}

/*change background color for caption in banner*/
.carousel-caption {
    background-color: rgba(33, 41, 107, 0.8) !important;
    text-align: center;
    border-radius: 8px !important;
    overflow: hidden;
    transform: translateZ(0);
}

/*change color menu border bottom for selected menu*/
.GeneralBlueTop2 .MenuSelected a,
.GeneralBlueTop2 .MenuSelected a:hover,
.GeneralBlueTop3 .MenuSelected a,
.GeneralBlueTop3 .MenuSelected a:hover {
    border-bottom: 4px solid #ffa550 !important;
}

/*focus indicator for keyboard and assistive technology users*/
.GeneralBlueTop2 ul.pureCssMenu a:focus {
    outline: 2px solid #ffa550;
    outline-offset: -2px;
}

/*remove text shadow*/
.GeneralBlueTop2 ul.pureCssMenu a,
.GeneralBlueTop2 ul.pureCssMenu a:hover,
.GeneralBlueTop2 ul.pureCssMenu li.dis a:hover,
.GeneralBlueTop2 ul.pureCssMenu li.sep a:hover {
    text-shadow: none !important;
}

/*remove float from company logo area*/
.GeneralBlueMainTop.row {
    float: none !important;
}

/*remove width to allow bigger images*/
.PortletLogo .WebLogoR img {
    max-width: 100% !important;
    max-height: inherit !important;
    margin: 10px 0 !important;
}

/*center logo images*/
.LFArea.Area-GeneralBlue1PArea4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

.LFArea.Area-GeneralBlue1PArea4 > div {
    float: none !important;
}

.LFArea.Area-GeneralBlue1PArea4 .PortletLogo {
    text-align: center;
}

/*put logos beside each other*/
.LFArea.Area-GeneralBlue1PArea4 .Portlet {
    display: inline-block;
    float: none !important;
}

.LFArea.Area-GeneralBlue1PArea4 .Portlet-Separator {
    display: none;
}

/*prevent inline style from overriding font*/
.GeneralBlueMainPage h1 span {
    font-size: 2.5rem !important;
    line-height: 1.25;
    margin-bottom: 30px;
    font-family: 'Antonio', Impact, 'Arial Narrow', Arial, sans-serif !important;
}

/*leadership image - JS relocates .LeaderShipImage into the innermost content
  container (.note or .HomeSection) so float:right wraps the body text correctly.
  clear:right prevents stacking below any earlier right-floated element.
  !important required to override float:none rules elsewhere in sheet*/
.LeaderShipImage {
    float: right !important;
    display: block;
    margin: 0 0 15px 20px;
    clear: right;
}

.LeaderShipImage img {
    border: 1px solid #e1e1e1;
    border-radius: 3px;
    display: block;
    max-width: 100%;
}

/*ensure the h1 sits flush at the top so the floated leadership image
  aligns with its top edge rather than dropping below leading whitespace*/
.GeneralBlueMainPage > h1:first-of-type,
.GeneralBlueMainPage > h1 {
    margin-top: 0;
    padding-top: 0;
}

/*logo footer*/
.bottom-logo img {
    max-width: 180px;
}

/* -- Footer: Mobile-friendly layout -- */
.general-footer .footer-col {
    margin-bottom: 24px;
}

.general-footer .footer-logo {
    max-width: 210px;
    width: 100%;
    height: auto;
    display: block;
    margin-bottom: 12px;
}

.general-footer .footer-address {
    line-height: 1.6;
}

.general-footer .footer-address a,
.general-footer .col-xs-12 a,
.general-footer .col-sm-4 a {
    word-break: break-word;
}

/*custom radio buttons - rounded corners, top menu color, transparent fill*/
input[type="radio"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border: 3px solid #0044B5;
    border-radius: 5px;
    background-color: transparent;
    background-image: none;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 8px 8px;
    margin-right: 6px;
    cursor: pointer;
    vertical-align: middle;
    flex-shrink: 0;
    transition: border-color 0.15s ease, background-color 0.15s ease;
}

input[type="radio"]:hover:not(:disabled) {
    border-color: #21296B;
    background-color: rgba(0, 68, 181, 0.08);
}

/*checked state uses background-image to avoid pseudo-element on void element*/
input[type="radio"]:checked {
    background-image: linear-gradient(#0044B5, #0044B5);
}

input[type="radio"]:focus {
    outline: 2px solid #0044B5;
    outline-offset: 2px;
}

input[type="radio"]:disabled {
    border-color: #a0a0a0;
    cursor: not-allowed;
    opacity: 0.55;
}

/*case 1: <input> <label> - label is adjacent sibling after input*/
input[type="radio"] + label {
    color: #0044B5;
    font-family: 'Palanquin', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    cursor: pointer;
    vertical-align: middle;
}

/*case 2: <label><input> text</label> - label wraps input*/
label:has(input[type="radio"]) {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0044B5;
    font-family: 'Palanquin', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    cursor: pointer;
}

/*case 3: <label for="id">text</label> <input id="id"> - label precedes input*/
label:has(+ input[type="radio"]) {
    color: #0044B5;
    font-family: 'Palanquin', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    cursor: pointer;
    vertical-align: middle;
}

/*disabled label state for all three cases*/
input[type="radio"]:disabled + label,
label:has(input[type="radio"]:disabled),
label:has(+ input[type="radio"]:disabled) {
    color: #a0a0a0;
    cursor: not-allowed;
}

/*respect user motion preferences*/
@media (prefers-reduced-motion: reduce) {
    input[type="radio"] {
        transition: none;
    }
}

/*windows high contrast mode*/
@media (forced-colors: active) {
    input[type="radio"] {
        border-color: ButtonText;
    }

    input[type="radio"]:checked {
        background-image: linear-gradient(ButtonText, ButtonText);
    }
}

/*safari high contrast mode*/
@media (prefers-contrast: more) {
    input[type="radio"] {
        border-width: 4px;
        border-color: #000000;
    }

    input[type="radio"]:checked {
        background-image: linear-gradient(#000000, #000000);
    }

    input[type="radio"] + label,
    label:has(input[type="radio"]),
    label:has(+ input[type="radio"]) {
        color: #000000;
    }
}

/*:has() polyfill fallback classes - applied by JS for Firefox < 121, Safari < 15.4*/
label.has-radio {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #0044B5;
    font-family: 'Palanquin', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    cursor: pointer;
}

label.precedes-radio {
    color: #0044B5;
    font-family: 'Palanquin', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 500;
    cursor: pointer;
    vertical-align: middle;
}

/*covers adjacent label (case 1) when dynamically disabled in polyfill mode*/
input[type="radio"] + label.is-disabled,
label.has-radio.is-disabled,
label.precedes-radio.is-disabled {
    color: #a0a0a0;
    cursor: not-allowed;
}

/*session timeout modal - label replaced with div in corrected HTML template.
  These rules target the new div-based structure and the original label-based
  structure (in case the template has not been updated yet) so styles hold
  regardless of which markup is rendered*/
.SessionTimeoutTimerLabel div,
.SessionTimeoutTimerLabel p,
.SessionTimeoutTimerLabel span.SessionTimeoutDialogText {
    display: inline;
}

div.SessionTimeoutTimerLabel,
label.SessionTimeoutTimerLabel {
    font-family: 'Palanquin', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 500;
}

/*mobile*/
@media only screen and (max-width: 767px) {
    .GeneralBlueMainPage {
        margin-top: 0;
    }

    .GeneralBlueMainPage h1 span {
        font-size: 1.75rem !important;
        line-height: 1.25;
    }

    /*stack leadership image above content on mobile*/
    .LeaderShipImage {
        float: none !important;
        display: block;
        margin: 0 0 15px 0;
        width: 100%;
    }

    /*center footer columns on mobile*/
    .general-footer .footer-col {
        text-align: center;
    }

    .general-footer .footer-logo {
        margin-left: auto;
        margin-right: auto;
    }
}

/*tablet*/
@media only screen and (min-width: 768px) and (max-width: 1200px) {
    .GeneralBlueMainPage {
        margin-top: 85px;
    }
}
