.ybh-holiday {
    --ybh-evergreen: #214635;
    --ybh-gold: #f5d797;
}

.ybh-holiday .site-header {
    border-block-end: 2px solid #b38b4f;
}

.ybh-holiday .site-footer {
    box-shadow: inset 0 2px #bf9a60;
}

.ybh-holiday :is(#account-profile, .hpt-manage-shell) {
    border-block-start: 3px solid #a77c44;
}

.ybh-holiday .ybh-holiday-logo,
.ybh-holiday .ybh-holiday-relative {
    position: relative;
}

.ybh-holiday-cap {
    position: absolute;
    z-index: 2;
    width: var(--hat-size, 32px);
    height: calc(var(--hat-size, 32px) * .64);
    transform: translate(-50%, -70%) rotate(-16deg);
    pointer-events: none;
    display: block;
}

.ybh-holiday-cap[hidden] {
    display: none;
}

.ybh-holiday-cap-fold {
    position: absolute;
    inset: 0 9% 15% 0;
    background: linear-gradient(155deg, #ff7581 0%, #cf3045 48%, #851926 100%);
    clip-path: polygon(0 100%, 11% 67%, 35% 25%, 58% 5%, 80% 17%, 100% 58%, 83% 59%, 73% 41%, 78% 100%);
}

.ybh-holiday-cap::before,
.ybh-holiday-cap::after {
    position: absolute;
    z-index: 1;
    content: "";
    background: linear-gradient(#fff, #f8e8d3);
}

.ybh-holiday-cap::before {
    inset: auto 30% 0 -2%;
    height: 27%;
    border-radius: 30% / 65%;
    box-shadow: 0 1px 3px #35151c58;
}

.ybh-holiday-cap::after {
    top: 39%;
    right: 0;
    width: 22%;
    aspect-ratio: 1;
    border-radius: 50%;
}

.ybh-holiday-logo-cap {
    inset-block-start: 19%;
    inset-inline-start: 20px;
    --hat-size: clamp(23px, 3vw, 34px);
}

.ybh-holiday-logo.brand-icon .ybh-holiday-logo-cap {
    inset-inline-start: 52%;
}

.ybh-holiday-portrait-cap {
    left: var(--hat-x);
    top: var(--hat-y);
}

.ybh-holiday-reader-art {
    position: relative;
    height: 29px;
    overflow: hidden;
    pointer-events: none;
    border-radius: 13px 13px 0 0;
    background: linear-gradient(100deg, #153b2b, #2b503c 53%, #153528);
    box-shadow: inset 0 -1px #bd9b5c;
}

.ybh-holiday-lights {
    position: absolute;
    inset: 0 16% auto;
    height: 17px;
    border-block-end: 1px solid #b9a467;
    border-radius: 0 0 50% 50%;
    display: flex;
    justify-content: space-around;
    align-items: end;
}

.ybh-holiday-lights i {
    width: 5px;
    height: 6px;
    border-radius: 50%;
    transform: translateY(50%);
    background: #ffedb6;
    box-shadow: 0 0 7px 2px #ffce70a0;
}

.ybh-holiday-lights i:nth-child(3n + 2) {
    background: #ffacac;
    box-shadow: 0 0 7px 2px #fa788d9c;
}

.ybh-holiday-tree {
    position: absolute;
    display: block;
    width: 22px;
    height: 28px;
    background:
        radial-gradient(circle at 39% 57%, #ffdfa0 0 1px, transparent 2px),
        radial-gradient(circle at 68% 71%, #f59a9d 0 1px, transparent 2px),
        radial-gradient(circle at 49% 35%, #ffdfa0 0 1px, transparent 2px),
        linear-gradient(145deg, #8db18d, #315f48 55%, #1b4835);
    clip-path: polygon(50% 0, 74% 34%, 64% 34%, 86% 58%, 73% 58%, 100% 86%, 57% 86%, 57% 100%, 43% 100%, 43% 86%, 0 86%, 27% 58%, 14% 58%, 36% 34%, 26% 34%);
}

.ybh-holiday-appeal {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    box-sizing: border-box;
    margin: clamp(17px, 3vw, 32px) auto;
    width: min(calc(100% - 36px), 1050px);
    padding: clamp(21px, 4vw, 44px);
    border: 1px solid #c69e63;
    border-radius: 17px;
    background: radial-gradient(ellipse at 102% -8%, #9a875070, transparent 60%), linear-gradient(130deg, #153c2d, #244f3a 78%, #274632);
    color: #fff5dc;
}
.ybh-holiday-appeal-copy { position: relative; z-index: 1; }
.ybh-holiday-appeal h2 {
    max-width: 29ch;
    margin: 0 35px 10px 0;
    color: #fff0ca;
    font-family: Georgia, serif;
    font-size: clamp(25px, 4vw, 43px);
    line-height: 1.13;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
}
.ybh-holiday-appeal p {
    max-width: 63ch;
    margin: 0 0 19px;
    color: #fff5dc;
    line-height: 1.6;
    font-size: clamp(14px, 1.7vw, 16px);
}
.ybh-holiday-appeal-art {
    position: absolute;
    inset: 0 0 0 auto;
    width: 35%;
    z-index: 0;
    pointer-events: none;
    opacity: .46;
    background:
        radial-gradient(circle at 84% 15%, #fff0bd 0 1px, #f6d39241 3px, transparent 8px),
        radial-gradient(circle at 65% 29%, #ffeebb 0 1px, #f6d39241 2px, transparent 7px),
        radial-gradient(circle at 92% 34%, #ffd1ba 0 1px, #ffafaf47 2px, transparent 8px);
}
.ybh-holiday-appeal-art .ybh-holiday-tree:first-child { width: 47%; height: 65%; bottom: -8%; right: 0; }
.ybh-holiday-appeal-art .ybh-holiday-tree:last-child { width: 36%; height: 44%; bottom: -7%; right: 35%; }
.ybh-holiday-appeal .ybh-holiday-dismiss {
    position: absolute;
    z-index: 2;
    inset: 8px 8px auto auto;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #163629a8;
    color: #fff4d7;
    font: 25px/1 system-ui, sans-serif;
    cursor: pointer;
}
.ybh-holiday-actions { display: flex; flex-wrap: wrap; gap: 9px; align-items: stretch; }
.ybh-holiday-actions :is(.ybh-holiday-give, .ybh-holiday-remind) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 44px;
    padding: 8px 13px;
    border: 1px solid var(--ybh-gold);
    border-radius: 8px;
    background: var(--ybh-gold);
    color: #253626;
    cursor: pointer;
    font: 700 14px/1.35 system-ui, sans-serif;
    text-align: center;
    text-decoration: none;
}
.ybh-holiday-actions .ybh-holiday-remind { background: #18362a; color: #fff2d0; }
.ybh-holiday-actions .ybh-holiday-remind[hidden] { display: none; }
.ybh-holiday-appeal :is(a, button):focus-visible,
.ybh-holiday-snow-toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}
.ybh-holiday-with-appeal [data-hpt-sunday] { display: none !important; }

.ybh-holiday :is(.hpt-giving-simple-hero, .hpt-support-dialog-content) {
    box-shadow: inset 0 3px #b28c54;
}
.ybh-holiday :is(.hpt-giving-simple-hero, .hpt-support-dialog-content, .hpt-community-card) {
    --hpt-giving-accent: var(--ybh-evergreen);
}
.ybh-holiday .hpt-giving-simple-hero .hpt-giving-intro h1,
.ybh-holiday [data-hpt-panel="reminder"] .hpt-reminder-section h3 {
    color: var(--ybh-evergreen);
}

.ybh-holiday-footer-settings {
    padding: 0 16px 14px;
    text-align: center;
}
.ybh-holiday-snow-toggle {
    min-height: 38px;
    padding: 5px 12px;
    border: 1px solid #baac80;
    border-radius: 40px;
    color: #fff0ca;
    background: #173426;
    cursor: pointer;
    font: 600 12px/1.25 system-ui, sans-serif;
}
.ybh-holiday-snow {
    position: fixed;
    inset: 0;
    z-index: 9;
    overflow: hidden;
    pointer-events: none;
    --edge-width: clamp(12px, 3vw, 52px);
}
.ybh-holiday-flake {
    position: absolute;
    top: -10px;
    left: calc(var(--edge-width) * var(--lane));
    width: var(--size);
    height: var(--size);
    border-radius: 50%;
    background: #fff9e8;
    box-shadow: 0 0 4px #8a9eae;
    animation: ybh-holiday-fall var(--speed) var(--delay) linear infinite;
}
.ybh-holiday-flake-right { left: auto; right: calc(var(--edge-width) * var(--lane)); }

@keyframes ybh-holiday-fall {
    0% { transform: translateY(-14px); opacity: 0; }
    12%, 82% { opacity: .8; }
    100% { transform: translateY(100vh); opacity: 0; }
}

@media (max-width: 550px) {
    .ybh-holiday-reader-art { height: 25px; }
    .ybh-holiday-lights { height: 13px; }
    .ybh-holiday-tree { transform: scale(.8); transform-origin: bottom; }
    .ybh-holiday-appeal-art { opacity: .23; }
}

@media (prefers-reduced-motion: reduce) {
    .ybh-holiday-snow { display: none !important; }
}

@media print {
    .ybh-holiday :is(.ybh-holiday-reader-art, .ybh-holiday-cap, .ybh-holiday-snow, .ybh-holiday-appeal, .ybh-holiday-footer-settings) {
        display: none !important;
    }
}

.ybh-holiday .account-welcome {
    padding: clamp(15px, 3vw, 26px);
    border: 1px solid #b79660;
    border-radius: 13px;
    background:
        radial-gradient(circle at 88% 12%, #f5da9a 0 1px, #f3d69435 2px, transparent 8px),
        radial-gradient(circle at 93% 30%, #ffd4ba 0 1px, #ffc3a135 2px, transparent 7px),
        linear-gradient(115deg, #193d2d, #31563e);
}
.ybh-holiday .account-welcome :is(h1, .eyebrow) { color: #fff1cc; }

.ybh-holiday .library-section > h1::after,
.ybh-holiday #account-profile > h2::after,
.ybh-holiday .hpt-reminder-stage-intro > h1::after {
    content: "";
    display: block;
    width: min(105px, 50%);
    height: 4px;
    margin-top: .32em;
    border-radius: 10px;
    background: linear-gradient(90deg, #a72c3c 0 29%, #d5a654 29% 52%, #315746 52% 100%);
}

.ybh-holiday-reading .reader-hero.hymn-heading {
    background-color: #653a32;
    background-image:
        linear-gradient(100deg, #493229bf, #482d27f2 46%, #3c3027ee 61%, #342f22b8),
        url('reader-christmas.webp');
    background-position: center, center 43%;
    background-size: cover;
    background-repeat: no-repeat;
}
.ybh-holiday-reading .reader-hero.hymn-heading :is(h1, .back-link) {
    color: #fff1cf;
}

.ybh-holiday .ybh-holiday-floating-tree {
    position: relative;
    display: block;
    width: 30px;
    height: 36px;
    margin: 0;
}
.ybh-holiday-floating-tree .ybh-holiday-tree {
    left: 3px;
    bottom: -1px;
    width: 24px;
    height: 29px;
    margin: 0;
    background:
        radial-gradient(circle at 39% 57%, #ffefb6 0 1px, transparent 2px),
        radial-gradient(circle at 68% 71%, #f8a0a6 0 1px, transparent 2px),
        radial-gradient(circle at 49% 40%, #ffedb6 0 1px, transparent 2px),
        linear-gradient(145deg, #538360, #214735 62%, #133325);
    transform: none;
}
.ybh-holiday-floating-tree::before {
    position: absolute;
    z-index: 1;
    inset: 0 auto auto 10px;
    width: 10px;
    height: 10px;
    clip-path: polygon(50% 0, 63% 35%, 100% 38%, 72% 62%, 81% 100%, 50% 79%, 19% 100%, 28% 62%, 0 38%, 37% 35%);
    background: #86591c;
    content: "";
}

@media (max-width: 550px) {
    .ybh-holiday-reading .reader-hero.hymn-heading {
        background-position: center, center;
    }
}

@media print {
    .ybh-holiday-reading .reader-hero.hymn-heading { background: none !important; }
    .ybh-holiday a.floating-support.ybh-holiday-floating-gift { display: none !important; }
}

.ybh-holiday-garland {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    height: 9px;
    pointer-events: none;
    background:
        repeating-linear-gradient(145deg, transparent 0 7px, #6f967760 8px 9px, transparent 10px 15px),
        repeating-linear-gradient(35deg, transparent 0 6px, #72957860 7px 8px, transparent 9px 14px),
        linear-gradient(90deg, #1e4434, #315840 55%, #173d2b);
}
.ybh-holiday-garland-light {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffe3a3;
    box-shadow: 0 0 5px 2px #ffd08c65;
}
.ybh-holiday-garland-light:nth-child(3n + 2) { background: #ffa9af; box-shadow: 0 0 5px 2px #df798a6e; }

.ybh-holiday .home-hero .daily-hymn {
    box-shadow: 0 20px 60px #23100820, inset 0 3px #bc9555;
}
.ybh-holiday .daily-hymn::before { display: none; }

.ybh-holiday .ybh-holiday-heading-tree {
    display: inline-block;
    margin-inline-start: .25em;
    vertical-align: middle;
    scale: .72;
    transform-origin: left center;
}
.ybh-holiday .hpt-giving-hero-mark .ybh-holiday-support-tree {
    background: transparent;
    border: 0;
    box-shadow: none;
    scale: 1.7;
}
.ybh-holiday-support-actions { margin-block-start: 14px; }

@media print {
    .ybh-holiday :is(.ybh-holiday-garland, .ybh-holiday-floating-tree) { display: none !important; }
}

/* Image-only trim keeps links, headings, and reading controls in their original layout. */
.ybh-holiday-framed {
    --ybh-frame-top: clamp(13px, 2vw, 24px);
    --ybh-frame-side: clamp(8px, 1.2vw, 15px);
}
.ybh-holiday-frame-trim {
    position: absolute;
    z-index: 2;
    inset: 0;
    border-radius: inherit;
    pointer-events: none;
}
.ybh-holiday-frame-top {
    display: block;
    position: absolute;
    inset: 0 0 auto;
    height: var(--ybh-frame-top);
    border-radius: 12px 12px 0 0;
    background: url('garland-top.webp') center top / auto 100% repeat-x;
}
.ybh-holiday-frame-trim::before,
.ybh-holiday-frame-trim::after {
    position: absolute;
    inset-block: 0 0;
    width: var(--ybh-frame-side);
    max-height: 360px;
    background: url('garland-side.webp') center top / 100% auto repeat-y;
    mask-image: linear-gradient(#000, #000 30%, transparent 94%);
    content: "";
}
.ybh-holiday-frame-trim::before { inset-inline-start: 0; }
.ybh-holiday-frame-trim::after { inset-inline-end: 0; transform: scaleX(-1); }

.ybh-holiday #hymn-reader.ybh-holiday-framed {
    --ybh-frame-top: 23px;
    --ybh-frame-side: 10px;
}
#hymn-reader > .ybh-holiday-frame-trim::before,
#hymn-reader > .ybh-holiday-frame-trim::after {
    max-height: 84px;
    mask-image: linear-gradient(#000 0 25%, transparent);
}
#hymn-reader > .ybh-holiday-frame-trim .ybh-holiday-frame-top { height: 11px; }
.ybh-holiday .ybh-holiday-reader-art .ybh-holiday-lights { inset-block-start: 4px; }
.ybh-holiday .ybh-holiday-appeal { padding-block-start: clamp(36px, 5vw, 56px); }
.ybh-holiday .ybh-holiday-appeal .ybh-holiday-dismiss { z-index: 3; inset-block-start: 17px; }
.ybh-holiday .hpt-community-card.ybh-holiday-framed { --ybh-frame-top: 17px; }
.ybh-holiday .account-welcome.ybh-holiday-framed { padding-block-start: clamp(24px, 3.2vw, 34px); }

.ybh-holiday .ybh-holiday-impact {
    width: min(100%, 590px);
    margin-block: 14px 12px;
    padding: 12px clamp(12px, 2vw, 19px);
    border: 1px solid #e5c88352;
    border-radius: 10px;
    background: #153529;
}
.ybh-holiday-impact-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px 12px;
    flex-wrap: wrap;
}
.ybh-holiday .ybh-holiday-impact h3 {
    margin: 0;
    color: #fff0ca;
    font: 700 16px/1.3 system-ui, sans-serif;
}
.ybh-holiday .ybh-holiday-impact-next {
    min-height: 44px;
    padding: 4px 7px;
    border: 0;
    color: #ffe5a4;
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
    font: 600 13px/1.25 system-ui, sans-serif;
}
.ybh-holiday .ybh-holiday-impact-period {
    margin: 0 0 7px;
    font-size: 12px;
    color: #f2dbb8;
}
.ybh-holiday .ybh-holiday-impact-numbers {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 19px;
    margin: 0;
    color: #fff2d3;
    font-size: 13px;
}
.ybh-holiday-impact-numbers strong {
    color: #ffe5a4;
    font-variant-numeric: tabular-nums;
    font-size: 1.15em;
}
.ybh-holiday-impact-content { min-block-size: 76px; }
.ybh-holiday .ybh-holiday-gift-use { margin-block: 0 12px; font-size: 14px; }

.ybh-holiday-campaign-off :is(a.floating-support:not(.ybh-holiday-floating-gift), .hpt-community-card, [data-hpt-sunday]) {
    display: none !important;
}

.ybh-holiday a.floating-support.ybh-holiday-floating-gift {
    --ybh-tree-width: clamp(66px, 8vw, 110px);
    display: grid !important;
    justify-items: center;
    gap: 0 !important;
    box-sizing: border-box;
    width: auto;
    max-width: 144px;
    min-height: 44px;
    padding: 2px 3px !important;
    border: 0 !important;
    border-radius: 9px !important;
    background: none !important;
    box-shadow: none !important;
    inset-inline-end: max(12px, env(safe-area-inset-right)) !important;
    inset-block-end: max(10px, env(safe-area-inset-bottom)) !important;
    text-decoration: none;
}
.ybh-holiday a.floating-support.ybh-holiday-floating-gift:hover { box-shadow: none !important; }
.ybh-holiday a.floating-support .ybh-holiday-full-tree {
    position: relative;
    isolation: isolate;
    display: grid;
    place-items: end center;
    width: var(--ybh-tree-width);
    aspect-ratio: 2 / 3;
    margin: 0;
}
.ybh-holiday-full-tree::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background: url('giving-tree.webp') center bottom / contain no-repeat;
    filter: drop-shadow(0 4px 6px #122a2466);
    transition: filter .25s ease;
    content: "";
}
.ybh-holiday-full-tree::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    opacity: 0;
    background:
        radial-gradient(circle at 50% 9%, #fff7cf 0 2px, #ffcd68a0 3px, transparent 12px),
        radial-gradient(circle at 44% 34%, #fff4bc 0 1px, #ffc45599 2px, transparent 8px),
        radial-gradient(circle at 61% 48%, #fff2b0 0 2px, #ffc45585 3px, transparent 10px),
        radial-gradient(circle at 31% 63%, #fff5c9 0 1px, #ffca68ad 2px, transparent 9px),
        radial-gradient(circle at 69% 73%, #fff3b6 0 1px, #ffc45591 2px, transparent 9px);
    transition: opacity .25s ease;
    pointer-events: none;
    content: "";
}
.ybh-holiday-floating-gift:is(:hover, :focus-visible) .ybh-holiday-full-tree::before {
    filter: brightness(1.23) drop-shadow(0 0 12px #ffcb6cb8);
}
.ybh-holiday-floating-gift:is(:hover, :focus-visible) .ybh-holiday-full-tree::after { opacity: 1; }

.ybh-holiday a.floating-support .ybh-holiday-tree-caption {
    position: relative;
    z-index: 2;
    margin: 0 0 17%;
    padding: 5px 9px;
    border: 1px solid #b58b45;
    border-radius: 4px 7px 6px 4px;
    color: #382610;
    background: linear-gradient(145deg, #fff0c1, #eac682);
    box-shadow: 0 2px 4px #27210c60;
    transform: rotate(-8deg);
    font: 750 12px/1.1 system-ui, sans-serif;
}
.ybh-holiday-tree-caption::before {
    position: absolute;
    inset: -10px auto 100% 50%;
    width: 7px;
    border: 1px solid #edc785;
    border-block-end: 0;
    border-radius: 55% 60% 0 0;
    transform: translateX(-50%) rotate(14deg);
    content: "";
}
@media (max-width: 640px), (max-height: 520px) {
    .ybh-holiday a.floating-support.ybh-holiday-floating-gift {
        --ybh-tree-width: 48px;
        max-width: 78px;
    }
    .ybh-holiday a.floating-support .ybh-holiday-tree-caption { font-size: 10px; }
    .ybh-holiday .ybh-holiday-frame-trim::before,
    .ybh-holiday .ybh-holiday-frame-trim::after { max-height: 260px; }
}
@media (prefers-reduced-motion: reduce) {
    .ybh-holiday a.floating-support.ybh-holiday-floating-gift:hover { transform: none; }
    .ybh-holiday-full-tree::before, .ybh-holiday-full-tree::after { transition: none; }
}
@media print {
    .ybh-holiday-frame-trim { display: none !important; }
}

.ybh-holiday-frame-bottom {
    position: absolute;
    inset: auto 14% 0;
    height: calc(var(--ybh-frame-top) * .6);
    background: url('garland-top.webp') center / auto 100% repeat-x;
    mask-image: linear-gradient(90deg, transparent, #000 27% 73%, transparent);
    transform: rotate(180deg);
}
.ybh-holiday .ybh-holiday-ad-framed {
    --ybh-frame-top: clamp(10px, 1.4vw, 17px);
    --ybh-frame-side: clamp(5px, .85vw, 9px);
}
.ybh-holiday .ybh-holiday-ad-framed > .ybh-holiday-frame-trim::before,
.ybh-holiday .ybh-holiday-ad-framed > .ybh-holiday-frame-trim::after {
    mask-image: linear-gradient(transparent, #000 13%, #000 78%, transparent);
}
