/* Bound the emblem independently of legacy image and header rules. */
.header { height: auto; min-height: 0; padding: 20px 0; }
.header .association-brand > a { display: inline-flex; align-items: center; gap: 18px; max-width: calc(100% - 320px); }
.header .association-emblem,
.association-side .association-emblem,
.association-footer .association-emblem { display: block; position: relative; width: 96px; height: 96px; flex: 0 0 96px; overflow: hidden; }
.header .association-emblem img,
.association-side .association-emblem img,
.association-footer .association-emblem img { display: block; position: static; width: 100%; height: 100%; max-width: 100%; object-fit: contain; }
.header .association-name { font-size: 34px; line-height: 1.35; color: #082173; font-weight: 800; white-space: nowrap; }
.header .sobox { top: 70px; }
@media (min-width: 761px) and (max-width: 1200px) {
    .header .association-brand > a { gap: 12px; max-width: calc(100% - 250px); }
    .header .association-name { font-size: 27px; }
    .header .association-emblem { width: 80px; height: 80px; flex-basis: 80px; }
}
@media (max-width: 760px) {
    .header { min-height: 0; padding: 10px 0; }
    .header .association-brand > a { max-width: 100%; gap: 10px; }
    .header .association-emblem { width: 60px; height: 60px; flex-basis: 60px; }
    .header .association-name { font-size: clamp(16px, 4.4vw, 27px); }
}
/* Cancel legacy footer image margins and crop offsets. */
.header .association-emblem img,
.association-side .association-emblem img,
.footer2 .association-footer .association-emblem img {
    position: static;
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: none;
    margin: 0;
    padding: 0;
    object-fit: contain;
    transform: none;
}
.association-side .association-emblem,
.footer2 .association-footer .association-emblem {
    margin: 0 auto 14px;
    border-radius: 0;
    background: transparent;
    overflow: visible;
}

/* Preserve the original 94px logo row and 20px header padding. */
@media (min-width: 1201px) {
    .header .association-brand { height: 94px; line-height: 0; }
    .header .association-brand > a { height: 94px; gap: 40px; }
    .header .association-emblem { width: 94px; height: 94px; flex-basis: 94px; }
    .header .association-name { color: #000; font-size: 40px; font-weight: 700; }
}
/* Four-column footer requested by the association. */
.association-site-footer { background: #1a4373; color: #c4d0d9; font-size: 16px; line-height: 1.8; }
.association-footer-grid { display: grid; grid-template-columns: 1.1fr .85fr 1.25fr .6fr; row-gap: 25px; column-gap: 40px; padding-top: 52px; padding-bottom: 0px; align-items: start; }
.association-site-footer h3 { margin: 0 0 18px; font-size: 20px; line-height: 1.5; font-weight: 700; color: #f0f3f5; }
.association-site-footer p { margin: 0 0 10px; overflow-wrap: anywhere; }
.association-site-footer a { color: #c4d0d9; text-decoration: none; }
.association-site-footer a:hover { color: #fff; }
.association-site-footer .footer-brand-logo { display: block; width: 94px; height: 94px; object-fit: contain; margin: 0 0 16px; }
.association-site-footer .footer-quick-links > a { display: block; line-height: 1.9; margin-bottom: 3px; }
.association-site-footer .footer-follow img { display: block; width: 112px; height: 112px; max-width: 100%; object-fit: contain; }
.association-footer-copyright { border-top: 1px solid rgba(255,255,255,.15); padding: 20px 0; text-align: center; font-size: 14px; }
.association-footer-copyright span, .association-footer-copyright a { display: inline-block; margin: 0 10px; }
@media (max-width: 1000px) {
    .association-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 0px; }
}
@media (max-width: 480px) {
    .association-footer-grid { grid-template-columns: 1fr; gap: 26px; }
    .association-site-footer { font-size: 15px; }
    .association-site-footer h3 { margin-bottom: 12px; font-size: 18px; }
    .association-footer-copyright span, .association-footer-copyright a { margin: 3px 6px; }
}

/* Compact, quieter registration strip. */
.association-footer-copyright { padding: 10px 0; font-size: 12px; line-height: 1.6; border-top-color: rgba(255,255,255,.1); }
.association-footer-copyright > .container { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; column-gap: 10px; row-gap: 4px; }
.association-footer-copyright span,
.association-footer-copyright a { margin: 0; color: rgba(224,233,240,.64); }
.association-footer-copyright a:hover { color: rgba(255,255,255,.9); }

/* Smaller, regular-weight footer typography. */
.association-site-footer { font-size: 14px; font-weight: 400; }
.association-site-footer h3 { font-size: 18px; font-weight: 400; }
.association-footer-copyright { font-size: 12px; font-weight: 400; }
@media (max-width: 480px) {
    .association-site-footer { font-size: 14px; }
    .association-site-footer h3 { font-size: 17px; }
}

/* Footer spacing refinement. */
.association-footer-grid .footer-about { padding-top: 16px; }
.association-footer-grid { padding-bottom: 0px; }
@media (max-width: 480px) {
    .association-footer-grid .footer-about { padding-top: 0; }
}

/* Requested header brand dimensions. */
.header .association-name { font-size: 29px; }
.header .association-emblem { width: 84px; height: 84px; flex-basis: 84px; }

/* Localized scenery around the search area, softly fading into white. */
.association-masthead { position: relative; background: #fff; isolation: isolate; }
.association-masthead::before {
    content: "";
    position: absolute;
    z-index: -1;
    top: 0;
    bottom: 0;
    left: calc(-8% + 150px);
    right: calc(18% - 150px);
    width: auto;
    max-width: none;
    background-image: linear-gradient(to bottom, rgba(255,255,255,.82), rgba(255,255,255,.42) 40%, rgba(255,255,255,.06)), url("/template/index/static/images/header-rescue-background.png");
    background-size: 100% 100%, 100% auto;
    background-position: center, center 72%;
    background-repeat: no-repeat;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 76%, transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, #000 22%, #000 76%, transparent 100%);
    pointer-events: none;
}
.association-masthead .sobox .input { background-color: rgba(255,255,255,.95); }
@media (max-width: 760px) {
    .association-masthead::before { display: none; }
}
/* Light welcome and service strip. */
.htop { background: #edf3f7; color: #526879; }
.htop.text-white, .htop.text-white a { color: #526879; }

/* Static image notice replaces the homepage hero carousel. */
.home-notice { margin-top: 12px; margin-bottom: 12px; }
.home-notice a { display: block; }
.home-notice img { display: block; width: 100%; height: 100px; object-fit: cover; object-position: 49.9% 46.3%; }
@media (min-width: 761px) {
    .menu > ul > li:hover > ul, .menu > ul > li:focus-within > ul { display: block; }
}
@media (max-width: 760px) {
    .home-notice img { height: auto; min-height: 44px; }
}

/* Preserve layout space while the desktop navigation is fixed. */
.menuwrap.navigation-fixed { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 1000; }

.home-notice + .container > .ipart1 { padding-top: 0; }

/* Compact utility link and subtle vertical divider. */
.htop .header-top-links { display: inline-flex; align-items: center; gap: 10px; height: 36px; }
.header-top-divider { display: inline-block; flex: 0 0 1px; width: 1px; height: 9px; background: currentColor; opacity: .3; }
.htop .header-top-links > a:hover { color: #1a4373; }
