.site-shell-header,
.site-shell-header * {
    box-sizing: border-box;
}

.site-shell-footer-social {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 12px 4px 8px;
    border-radius: 6px;
    color: #fff;
    background: #235787;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.site-shell-footer-social i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    color: #fff;
    font-size: 18px;
}

.site-shell-footer-social:hover,
.site-shell-footer-social:focus-visible {
    color: #fff;
    background: #18476f;
}

.site-shell-footer-social:focus-visible {
    outline: 3px solid #83b9e8;
    outline-offset: 2px;
}

.site-shell-footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: min(100%, 1200px);
    margin: 0 auto;
}

.site-shell-footer-meta {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
}

.site-shell-footer-meta a {
    color: #d7e7f2 !important;
    text-decoration: none;
}

.site-shell-footer-meta a:hover,
.site-shell-footer-meta a:focus-visible {
    color: #fff !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.site-shell-header {
    position: relative;
    z-index: 2;
    min-height: 83px;
    padding: 6px 0 0;
    border-bottom: 1px solid #d8e2ea;
    color: #18344c;
    background: #fff;
    box-shadow: 0 3px 12px rgba(24, 52, 76, 0.10);
}

.site-shell-header::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 100vw;
    height: 6px;
    background: #235787;
    content: "";
    transform: translateX(-50%);
}

.site-shell-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(100%, 1440px);
    min-height: 76px;
    margin: 0 auto;
    padding: 0 16px;
}

.site-shell-brand {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
    min-width: 0;
    color: #17334a;
    text-decoration: none;
}

.site-shell-brand:hover {
    color: #17334a;
}

.site-shell-header-social {
    display: none;
    flex: 0 0 40px;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #235787;
    border-radius: 50%;
    color: #235787;
    background: #fff;
    font-size: 18px;
    line-height: 1;
    text-decoration: none;
}

.site-shell-header-social:hover {
    color: #18476f;
    background: #f4f8fb;
}

.site-shell-header-social:focus-visible {
    outline: 3px solid #83b9e8;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff;
}

.site-shell-brand img {
    display: block;
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.site-shell-brand-copy,
.site-shell-brand-copy strong,
.site-shell-brand-copy small {
    display: block;
}

.site-shell-brand-copy {
    white-space: nowrap;
}

.site-shell-brand-copy strong {
    font-size: 20px;
    font-weight: 700;
    line-height: 1.1;
}

.site-shell-brand-copy small {
    margin-top: 3px;
    color: #526b7e;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.25;
}

.site-shell-nav {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    justify-content: flex-start;
    min-width: 0;
    gap: 16px;
}

.site-shell-links {
    display: flex;
    align-items: center;
    flex: 0 1 auto;
    flex-direction: row;
    gap: 22px;
    min-width: 0;
    white-space: nowrap;
}

.site-shell-header .site-shell-links .nav-link {
    position: relative;
    padding: 10px 0;
    color: #344e63;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0;
    text-decoration: none;
}

.site-shell-header .site-shell-links .nav-link::after {
    position: absolute;
    right: 0;
    bottom: 3px;
    left: 0;
    height: 2px;
    background: #235787;
    content: "";
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 160ms ease;
}

.site-shell-header .site-shell-links .nav-link:hover,
.site-shell-header .site-shell-links .nav-link:focus-visible {
    color: #235787;
}

.site-shell-header .site-shell-links .nav-link:hover::after,
.site-shell-header .site-shell-links .nav-link:focus-visible::after {
    transform: scaleX(1);
}

.site-shell-header .site-shell-links .nav-link:focus-visible,
.site-shell-brand:focus-visible,
.site-shell-check-link:focus-visible,
.site-shell-header-social:focus-visible,
.site-shell-search-button:focus-visible,
.site-shell-menu-toggle:focus-visible {
    outline: 3px solid #83b9e8;
    outline-offset: 2px;
    box-shadow: 0 0 0 2px #fff;
}

.site-shell-mobile-home {
    display: none;
}

.site-shell-search {
    display: flex;
    flex: 0 0 222px;
    align-items: center;
    width: 222px;
    min-width: 0;
    margin-left: auto;
    gap: 4px;
    order: 2;
}

.site-shell-search .form-control {
    width: 180px;
    min-width: 0;
    min-height: 45px;
    padding: 8px 10px;
    border-color: #cbd6df;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 400;
}

.site-shell-search .form-control:focus {
    border-color: #6fa1cb;
    box-shadow: 0 0 0 3px rgba(35, 87, 135, 0.16);
}

.site-shell-search-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    min-height: 45px;
    padding: 0;
    border: 1px solid #235787;
    border-radius: 6px;
    color: #fff;
    background: #235787;
    font-size: 25px;
    line-height: 1;
}

.site-shell-search-button:hover {
    border-color: #18476f;
    color: #fff;
    background: #18476f;
}

.site-shell-header-actions {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
    gap: 8px;
}

.site-shell-check-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 148px;
    min-height: 46px;
    padding: 0 19px;
    border: 1px solid #235787;
    border-radius: 8px;
    color: #fff;
    background: #235787;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
}

.site-shell-check-link:hover {
    border-color: #18476f;
    color: #fff;
    background: #18476f;
}

.site-shell-check-short {
    display: none;
}

.site-shell-menu-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 6px;
    border-color: #d5e0e8;
    background: #fff;
}

.site-shell-menu-toggle:hover {
    border-color: #aebfcd;
    background: #f7fafc;
}

.site-shell-menu-toggle .navbar-toggler-icon {
    position: relative;
    width: 22px;
    height: 2px;
    background-image: none;
    background-color: #235787;
    border-radius: 2px;
}

.site-shell-menu-toggle .navbar-toggler-icon::before,
.site-shell-menu-toggle .navbar-toggler-icon::after {
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: #235787;
    content: "";
}

.site-shell-menu-toggle .navbar-toggler-icon::before {
    top: -7px;
}

.site-shell-menu-toggle .navbar-toggler-icon::after {
    top: 7px;
}

.site-shell-page .card {
    width: 100%;
    max-width: none;
    margin: 0;
}

.site-shell-page .card .col-md-5 > a {
    display: block;
    width: 100%;
}

.site-shell-page .card img {
    width: 100% !important;
    max-width: none !important;
    max-height: none !important;
    height: auto !important;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

@media (max-width: 1199.98px) {
    .site-shell-page.container,
    .site-shell-page .container {
        width: 100%;
        max-width: none;
    }

    .site-shell-page .container.mt-4 > .row > .col-lg-8,
    .site-shell-page .container.mt-4 > .row > .col-lg-4 {
        flex: 0 0 100%;
        width: 100%;
    }
}

@media (max-width: 767.98px) {
    .site-shell-page.container {
        padding-right: 12px;
        padding-left: 12px;
    }

    .site-shell-page .container.mt-4 {
        padding-right: 0;
        padding-left: 0;
    }
}

@media (min-width: 1200px) {
    .site-shell-footer-social {
        display: inline-flex;
    }

    .site-shell-header-social {
        display: none;
    }

    .site-shell-header .site-shell-nav {
        display: flex !important;
        visibility: visible !important;
    }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
    .site-shell-header-inner {
        flex-wrap: wrap;
        gap: 0;
        padding: 0 16px;
    }

    .site-shell-brand {
        min-height: 76px;
        margin-right: auto;
    }

    .site-shell-header-inner > .site-shell-brand {
        order: 1;
    }

    .site-shell-header-inner > .site-shell-header-social {
        display: inline-flex;
        order: 2;
        margin-left: 8px;
    }

    .site-shell-header-inner > .site-shell-header-actions {
        order: 3;
        margin-left: 8px;
    }

    .site-shell-header-inner > .site-shell-nav {
        order: 4;
    }

    .site-shell-footer-social {
        display: none !important;
    }

    .site-shell-header-actions {
        min-height: 76px;
    }

    .site-shell-header .site-shell-menu-toggle {
        display: inline-flex !important;
    }

    .site-shell-header .site-shell-nav.collapse:not(.show) {
        display: none !important;
    }

    .site-shell-header .site-shell-nav.show {
        display: flex !important;
    }

    .site-shell-header .site-shell-nav {
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        max-height: 75vh;
        padding: 12px 0 16px;
        overflow-y: auto;
        border-top: 1px solid #e8edf1;
        background: transparent;
        border-radius: 0;
    }

    .site-shell-search {
        flex: 0 0 auto;
        width: 100%;
        margin-left: 0;
        order: 0;
    }

    .site-shell-search .form-control {
        flex: 1 1 auto;
        width: auto;
    }

    .site-shell-links {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        white-space: normal;
    }

    .site-shell-header .site-shell-links .nav-link {
        min-height: 44px;
        padding: 12px;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 500;
    }

    .site-shell-header .site-shell-links .nav-link:hover {
        background: #f1f6fa;
    }

    .site-shell-mobile-home {
        display: list-item;
    }
}

@media (max-width: 767.98px) {
    .site-shell-header {
        min-height: 66px;
        padding: 4px 0 0;
    }

    .site-shell-header::before {
        height: 4px;
    }

    .site-shell-header-inner {
        min-height: 61px;
    }

    .site-shell-header-inner {
        flex-wrap: wrap;
        gap: 0;
        padding: 0 12px;
    }

    .site-shell-brand {
        min-height: 61px;
        margin-right: auto;
        gap: 6px;
    }

    .site-shell-header-inner > .site-shell-brand {
        order: 1;
    }

    .site-shell-header-inner > .site-shell-header-social {
        display: inline-flex;
        order: 2;
        margin-left: 8px;
    }

    .site-shell-header-inner > .site-shell-header-actions {
        order: 3;
        margin-left: 6px;
    }

    .site-shell-header-inner > .site-shell-nav {
        order: 4;
    }

    .site-shell-brand img {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .site-shell-brand-copy strong {
        font-size: 16.5px;
        font-weight: 700;
    }

    .site-shell-brand-copy small {
        display: none;
    }

    .site-shell-header-actions {
        min-height: 61px;
        gap: 6px;
    }

    .site-shell-check-link {
        min-width: 44px;
        min-height: 44px;
        padding: 0 9px;
        font-size: 14px;
        font-weight: 600;
    }

    .site-shell-menu-toggle {
        display: inline-flex;
    }

    .site-shell-header .site-shell-nav {
        flex: 0 0 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        width: 100%;
        max-height: 75vh;
        padding: 12px 0 16px;
        overflow-y: auto;
        border-top: 1px solid #e8edf1;
        background: transparent;
        border-radius: 0;
    }

    .site-shell-header .site-shell-nav.show {
        display: flex;
    }

    .site-shell-search {
        flex: 0 0 auto;
        width: 100%;
        order: 0;
    }

    .site-shell-search .form-control {
        flex: 1 1 auto;
        width: auto;
        min-height: 44px;
    }

    .site-shell-search-button {
        flex-basis: 44px;
        width: 44px;
        min-height: 44px;
    }

    .site-shell-links {
        align-items: stretch;
        flex-direction: column;
        gap: 0;
        white-space: normal;
    }

    .site-shell-header .site-shell-links .nav-link {
        min-height: 44px;
        padding: 12px;
        border-radius: 5px;
        font-size: 16px;
        font-weight: 500;
    }

    .site-shell-header .site-shell-links .nav-link:hover {
        background: #f1f6fa;
    }

    .site-shell-mobile-home {
        display: list-item;
    }

    .site-shell-footer-inner {
        justify-content: center;
    }
}

@media (max-width: 380px) {
    .site-shell-check-full {
        display: none;
    }

    .site-shell-check-short {
        display: inline;
    }
}
/* Keep legacy navigation hover decoration outside the new header. */
.site-shell-header .site-shell-links .nav-link::before { display: none; }
@media (min-width: 1200px) {
    .site-shell-header .site-shell-nav { overflow: visible; max-height: none; }
}
/* Paint the full-width accent without horizontal scrollbar overflow. */
.site-shell-header::before {
    left: 0;
    width: 100%;
    transform: none;
    box-shadow: 0 0 0 100vmax #235787;
    clip-path: inset(0 -100vmax);
}
/* Keep all header actions on one row inside narrow page containers. */
@media (max-width: 440px) {
    .site-shell-check-full { display: none; }
    .site-shell-check-short { display: inline; }
}
@media (max-width: 360px) {
    .site-shell-header-inner { padding-right: 8px; padding-left: 8px; }
    .site-shell-brand { gap: 4px; }
    .site-shell-brand img { flex-basis: 30px; width: 30px; height: 30px; }
    .site-shell-brand-copy strong { font-size: 15px; }
    .site-shell-header-inner > .site-shell-header-social { margin-left: 4px; }
    .site-shell-header-social { flex-basis: 32px; width: 32px; height: 32px; }
    .site-shell-header-inner > .site-shell-header-actions { margin-left: 4px; }
    .site-shell-header-actions { gap: 4px; }
}
