/* FBH Christmas Edition V1.2 - local footer font. */
@font-face {
    font-family: 'FBH Great Vibes';
    src: url('../fonts/GreatVibes-Regular.ttf') format('truetype');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

/* FBH Christmas Edition — all overrides scoped to the seasonal body class. */
body.christmas-mode {
    --xmas-red: #864946;
    --xmas-deep: #702320;
    --xmas-gold: #d3a85e;
    --xmas-cream: #fffaf5;
}
.christmas-mode .fbh-christmas-heading {
    position: relative;
    margin-top: 0 !important;
    padding: 48px 20px 46px;
    background-color: #f7efeb;
    background-image: url('../images/christmas/header-left.webp'),
        url('../images/christmas/header-right.webp'),
        radial-gradient(ellipse at center, #fff9f4 0%, #f3e7e2 65%, #e8d8d1 100%),
        url('../images/patterns/bg2.jpg') !important;
    background-position: left top, right top, center, center;
    background-size: min(35vw, 650px) auto, min(35vw, 650px) auto, cover, auto;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat;
    background-blend-mode: normal, normal, multiply, normal;
}
.christmas-mode .fbh-christmas-heading > img,
.christmas-mode .fbh-christmas-heading > h1,
.christmas-mode .fbh-christmas-heading > h2 {
    position: relative;
    z-index: 1;
}
.christmas-mode .fbh-christmas-heading .inner-head {
    font-size: clamp(24px, 2.15vw, 38px);
    color: var(--xmas-red) !important;
    text-shadow: 0 1px 5px #fff;
}
.christmas-mode .fbh-christmas-heading .small-heading {
    color: #51403c;
    letter-spacing: clamp(2px, .42vw, 8px);
    font-size: clamp(12px, 1vw, 16px);
}
/* Sticky and normal states retain the same seasonal palette. */
.christmas-mode #headerMenu,
.christmas-mode #headerMenu.sticky-nav {
    background: linear-gradient(110deg, #6e2423, #864946 50%, #702320) !important;
    border-bottom: 2px solid var(--xmas-gold) !important;
    box-shadow: 0 3px 12px rgba(78, 35, 29, .20);
}
.christmas-mode #headerMenu .top-nav > ul > li > a,
.christmas-mode #headerMenu .top-nav > ul > li > span > a,
.christmas-mode #headerMenu .top-nav > ul > li > a::after,
.christmas-mode #headerMenu .top-nav > ul > li > span > a::after {
    color: #fff9f0 !important;
    text-shadow: none !important;
}
.christmas-mode #headerMenu .top-nav > ul > li.selected > a,
.christmas-mode #headerMenu .top-nav > ul > li.selected > span > a,
.christmas-mode #headerMenu .top-nav > ul > li:hover > a,
.christmas-mode #headerMenu .top-nav > ul > li:hover > span > a,
.christmas-mode #headerMenu .top-nav > ul > li > a:focus-visible,
.christmas-mode #headerMenu .top-nav > ul > li > span > a:focus-visible,
.christmas-mode #headerMenu .top-nav > ul > li > a > i {
    color: #ffe0a2 !important;
}
/* Existing monochrome logo, without changing its original image file. */

.christmas-mode #headerMenu .top-nav > ul > li > ul { border-top-color: var(--xmas-gold) !important; }
.christmas-mode .navbtn { background-color: var(--xmas-deep) !important; color: #fff9f0 !important; }
.christmas-mode .new-nav { background-color: #702320 !important; }
.christmas-mode .new-nav ul ul { background-color: #522220 !important; }
.christmas-mode .new-nav a, .christmas-mode .new-nav h4 { color: #fff9f0 !important; }
/* Background is limited to the opening region; no winter wallpaper behind PDFs. */
.christmas-mode .fbh-christmas-content {
    position: relative;
    background-color: #fffdfb;
    background-image: url('../images/christmas/winter-left.webp'),
        url('../images/christmas/winter-right.webp'),
        linear-gradient(to bottom, #f8efec 0, #fffdfb 100%);
    background-position: left top, right top, center top;
    background-size: min(23vw, 430px) auto, min(21vw, 400px) auto, 100% clamp(300px, 40vw, 720px);
    background-repeat: no-repeat;
}
.christmas-mode .fbh-christmas-banner {
    mix-blend-mode: multiply;
    display: block;
    margin-inline: auto;
}
.christmas-mode .fbh-christmas-divider { position: relative; }
.christmas-mode .fbh-christmas-divider hr {
    height: 2px !important;
    border: 0 !important;
    background: linear-gradient(90deg, transparent, var(--xmas-red) 12%, var(--xmas-gold) 50%, var(--xmas-red) 88%, transparent) !important;
    margin: 30px 0;
}
.christmas-mode .fbh-christmas-divider::after {
    content: '';
    position: absolute;
    left: 50%; top: 50%;
    width: min(300px, 52%); height: 42px;
    transform: translate(-50%, -50%);
    background: url('../images/christmas/divider.webp') center / contain no-repeat;
    mix-blend-mode: multiply;
    pointer-events: none;
}
.christmas-mode .fbh-christmas-content h3.fbh-christmas-vita-title {
    color: var(--xmas-red);
    font-size: clamp(20px, 1.65vw, 29px);
    font-weight: 700;
}
.christmas-mode .fbh-christmas-content .fbh-christmas-vita { color: #38312e; }
.christmas-mode .fbh-christmas-content .fbh-christmas-vita h4 { color: #38312e; }
.christmas-mode .fbh-christmas-content .fbh-christmas-vita a { color: #743b37; text-decoration: underline; }
/* Fixed Christmas ribbon — outside the animated pageWrapper. */
body.christmas-mode {
    --xmas-footer-height: clamp(62px, 4.65vw, 86px);
    --xmas-footer-total: calc(var(--xmas-footer-height) + env(safe-area-inset-bottom, 0px));
}
.christmas-mode .fbh-christmas-fixed {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90; /* below sticky navigation, mobile menu and modal overlays */
    box-sizing: border-box;
    height: var(--xmas-footer-total);
    padding: 0 0 env(safe-area-inset-bottom, 0px);
    display: flex;
    align-items: center;
    justify-content: center;
    isolation: isolate;
    background: linear-gradient(90deg, #661b1b, #772925 50%, #661b1b);
    border-top: 2px solid #d3a85e;
    box-shadow: 0 -3px 18px rgba(80, 35, 29, .15);
    pointer-events: none;
}
.christmas-mode .fbh-christmas-fixed::before,
.christmas-mode .fbh-christmas-fixed::after {
    content: '';
    position: absolute;
    bottom: env(safe-area-inset-bottom, 0px);
    width: min(23vw, 420px);
    height: calc(var(--xmas-footer-height) * 1.57);
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: 100% 100%;
    z-index: -1;
    pointer-events: none;
}
.christmas-mode .fbh-christmas-fixed::before {
    left: 0;
    background-image: url('../images/christmas/footer-left.webp');
}
.christmas-mode .fbh-christmas-fixed::after {
    right: 0;
    background-image: url('../images/christmas/footer-right.webp');
}
.christmas-mode .fbh-christmas-fixed p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(10px, 1.6vw, 30px);
    width: 61%;
    margin: 0;
    color: #ffdfa0;
    font-family: 'FBH Great Vibes', 'Blackadder ITC', 'Janda Cheerful Script', cursive;
    font-style: normal;
    font-size: clamp(25px, 2.7vw, 52px);
    font-weight: 400;
    line-height: 1.16;
    text-align: center;
    text-shadow: 0 1px 2px #4e1413;
}
.christmas-mode .fbh-christmas-fixed p::before,
.christmas-mode .fbh-christmas-fixed p::after {
    content: '';
    flex: 1 1 45px;
    max-width: 120px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #edc674, transparent);
}
/* Make the real footer and its legal links fully scrollable above the ribbon. */
.christmas-mode .fbh-christmas-footer-space {
    height: calc(var(--xmas-footer-total) + 35px);
    background: #fffdfb;
}
.christmas-mode #to-top { bottom: calc(var(--xmas-footer-total) + 26px); }
@media (max-width: 767px) {
    body.christmas-mode { --xmas-footer-height: 55px; }
    .christmas-mode .fbh-christmas-fixed p {
        width: 78%;
        font-size: clamp(19px, 4.6vw, 28px);
        gap: 0;
    }
    .christmas-mode .fbh-christmas-fixed p::before,
    .christmas-mode .fbh-christmas-fixed p::after { display: none; }
    .christmas-mode .fbh-christmas-fixed::before,
    .christmas-mode .fbh-christmas-fixed::after { width: 15vw; height: 76px; }
    .christmas-mode .fbh-christmas-footer-space { height: calc(var(--xmas-footer-total) + 24px); }
    .christmas-mode #to-top { bottom: calc(var(--xmas-footer-total) + 20px); }
}
@media (max-height: 430px) {
    body.christmas-mode { --xmas-footer-height: 42px; }
    .christmas-mode .fbh-christmas-fixed p { font-size: 21px; }
    .christmas-mode .fbh-christmas-fixed::before,
    .christmas-mode .fbh-christmas-fixed::after { height: 58px; }
}
/* Decorative, non-interactive snow; clipped to its respective region only. */
.christmas-mode .fbh-xmas-snow {
    position: absolute;
    inset: 0 0 auto;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}
.christmas-mode .fbh-christmas-content > .fbh-xmas-snow { height: min(100%, 650px); }
.christmas-mode .fbh-xmas-flake {
    position: absolute;
    top: -12px;
    left: var(--left);
    width: var(--size); height: var(--size);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 4px rgba(110, 82, 71, .35);
    opacity: var(--opacity);
    animation: fbh-xmas-fall var(--duration) linear var(--delay) infinite;
}
@keyframes fbh-xmas-fall {
    from { transform: translate3d(0, -15px, 0); }
    to { transform: translate3d(var(--drift), var(--fall), 0); }
}
.christmas-mode .fbh-xmas-snow.is-paused .fbh-xmas-flake { animation-play-state: paused; }
@media (max-width: 991px) {
    .christmas-mode .fbh-christmas-heading { background-size: 38vw auto, 38vw auto, cover, auto; padding: 42px 18px 30px; }
    .christmas-mode .fbh-christmas-heading > img { max-width: 105px; }
    .christmas-mode .fbh-christmas-content { background-size: 18vw auto, 18vw auto, 100% 350px; }
}
@media (max-width: 600px) {
    .christmas-mode .fbh-christmas-heading { padding-top: 65px; }
    .christmas-mode .fbh-christmas-heading .small-heading { letter-spacing: 2px; }
    .christmas-mode .fbh-christmas-content { background-image: linear-gradient(#f8efec, #fffdfb); background-size: 100% 300px; }
    .christmas-mode .fbh-christmas-divider::after { width: 52%; }
}
@media (max-width: 767px), (prefers-reduced-motion: reduce) {
    .christmas-mode .fbh-xmas-snow { display: none !important; }
}
