@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;
    color: #ffffff !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.040em !important;
    color: #ffffff !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-color: #0044B5;
    opacity: 0.95;
    color: #ffffff !important;
}

.GeneralBlueTop2 ul.pureCssMenu,
.GeneralBlueTop2 ul.pureCssMenu li,
.GeneralBlueTop2 ul.pureCssMenu li a {
    background-color: #0044B5;
    opacity: 1;
    filter: none;
}

.GeneralBlueTop2 a,
.GeneralBlueTop2 a:link,
.GeneralBlueTop2 a:visited,
.GeneralBlueTop2 a:hover,
.GeneralBlueTop2 a:focus,
.GeneralBlueTop2 a:active {
    color: #ffffff !important;
}

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

/*change background color for caption in banner*/
.carousel-caption {
    background-color: #0044B5 !important;
    opacity: 0.75;
    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 and center across all page layouts*/
.GeneralBlueMainTop.row {
    float: none !important;
    display: flex;
    justify-content: center;
}

.GeneralBlueMainTop .PortletLogo {
    text-align: center;
}

.GeneralBlueMainTop .PortletLogo .Logo.WebLogoR {
    display: inline-block;
}

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

/*center logo images - primary pages (P layout)*/
.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 - primary pages*/
.LFArea.Area-GeneralBlue1PArea4 .Portlet {
    display: inline-block;
    float: none !important;
}

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

/*center logo images - login, registration, and secondary pages (N layout)*/
.LFArea.Area-GeneralBlue1NArea4 {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

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

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

.LFArea.Area-GeneralBlue1NArea4 .Portlet {
    display: inline-block;
    float: none !important;
}

.LFArea.Area-GeneralBlue1NArea4 .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 to be the first child of
  .GeneralBlueMainPage so float:right wraps the body text correctly.
  margin-top:0 ensures the image top edge aligns with the h1 heading
  (and visually with the header logo band above).
  !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;
}

/*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;
    }

    nav.Navigation a.button {
        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;
}

/*CMS places block elements inside <label> for session timeout - override to inline
  to suppress Chrome content model violation before JS replaces them with spans*/
.SessionTimeoutTimerLabel div,
.SessionTimeoutTimerLabel p,
.SessionTimeoutTimerLabel span.SessionTimeoutDialogText {
    display: inline;
}

/*donation form navigation buttons - pill shape, footer-color border.
  Continue (.NavigationConfirm) is the primary action: filled by default.
  Clear Form (.Navigation2) is secondary: outline only.
  Helper text (.ConfirmTxtSPPNavi_Extra) sits inline and does not compete
  visually with the button labels.*/
nav.Navigation ol {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

nav.Navigation ol li {
    display: flex;
    align-items: center;
    gap: 10px;
}

nav.Navigation a.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    border: 3px solid #21296B;
    border-radius: 50px;
    background-color: transparent;
    color: #21296B;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

nav.Navigation a.button:hover {
    background-color: #21296B;
    color: #ffffff;
}

nav.Navigation a.button:focus {
    outline: 2px solid #ffa550;
    outline-offset: 2px;
    background-color: rgba(33, 41, 107, 0.1);
}

nav.Navigation .NavigationConfirm a.button {
    background-color: #21296B;
    color: #ffffff;
}

nav.Navigation .NavigationConfirm a.button:hover {
    background-color: #1a1f52;
    border-color: #1a1f52;
}

nav.Navigation .buttonText {
    font-family: 'Palanquin', 'Segoe UI', system-ui, -apple-system, sans-serif;
    font-weight: 600 !important;
    font-size: 15px;
    letter-spacing: 0.02em;
}

nav.Navigation .ConfirmTxtSPPNavi_Extra {
    color: #444444;
    font-weight: 400 !important;
    font-size: 14px;
}

/*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%;
    }
}

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