/* =========================================================
   Aghem Daily News — Christmas season (20 Nov – 6 Jan)
   Brand red + pine green + gold. Decorations frame the news,
   never cover it.
   ========================================================= */
:root { --pine: #146b3a; --pine-dark: #0d4a28; --gold: #f4c430; --gold-deep: #d4a017; }

/* Top bar: a hint of pine green and a gold greeting */
.is-festive .topbar { background: linear-gradient(90deg, #0c0c0c 0%, #0f2a1c 50%, #0c0c0c 100%); }

/* String of lights under the masthead, with a greeting ribbon in the middle */
.xmas-ribbon { position: absolute; left: 50%; top: 2px; transform: translateX(-50%); z-index: 1; display: inline-flex; align-items: center; gap: 6px; height: 20px; padding: 0 12px 0 8px; border-radius: 999px; background: var(--pine-dark); color: var(--gold); font: 800 11px/1 var(--sans); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 0 0 3px #fff, 0 1px 6px rgba(0,0,0,.18); }
.xmas-ribbon svg { width: 15px; height: 15px; flex: none; }
@media (max-width: 420px) { .xmas-ribbon { font-size: 9.5px; letter-spacing: .03em; } }
.xmas-lights { position: relative; display: flex; justify-content: space-between; height: 24px; padding: 0 max(12px, calc((100vw - 1240px) / 2)); overflow: hidden; background: #fff; }
.xmas-lights::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 12px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='52' height='12' viewBox='0 0 52 12'%3E%3Cpath d='M0 1 Q13 11 26 5 T52 1' fill='none' stroke='%23264d36' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x 0 0 / 52px 12px; }
.xmas-lights i { position: relative; display: block; width: 8px; height: 12px; margin-top: 7px; border-radius: 50% 50% 46% 46%; background: #D0101B; box-shadow: 0 0 6px 1px rgba(208, 16, 27, .55); animation: xmas-twinkle 2.6s ease-in-out infinite alternate; }
.xmas-lights i::before { content: ""; position: absolute; top: -3px; left: 2px; width: 4px; height: 4px; border-radius: 1px; background: #264d36; }
.xmas-lights i:nth-child(even) { margin-top: 10px; }
.xmas-lights i:nth-child(4n+2) { background: var(--gold); box-shadow: 0 0 6px 1px rgba(244, 196, 48, .65); animation-delay: -.7s; }
.xmas-lights i:nth-child(4n+3) { background: #1fa55a; box-shadow: 0 0 6px 1px rgba(31, 165, 90, .55); animation-delay: -1.4s; }
.xmas-lights i:nth-child(4n+4) { background: #8fd3ff; box-shadow: 0 0 6px 1px rgba(143, 211, 255, .6); animation-delay: -2.1s; }
.xmas-lights i:nth-child(5n) { animation-duration: 1.9s; }
@keyframes xmas-twinkle { 0% { opacity: .35; filter: saturate(.7); } 100% { opacity: 1; filter: saturate(1.2); } }
@media (max-width: 900px) { .xmas-lights i:nth-child(n+25) { display: none; } }

/* Trees in the side margins (only where there is room beside the news) */
.xmas-trees { display: none; }
@media (min-width: 1400px) {
  .xmas-trees { display: block; position: fixed; inset: 0; pointer-events: none; z-index: 1; }
  .xmas-tree { position: fixed; bottom: 18px; height: auto; width: clamp(64px, calc((100vw - 1240px) / 2 - 28px), 132px); }
  .xmas-tree--left { left: calc(((100vw - 1240px) / 2 - clamp(64px, calc((100vw - 1240px) / 2 - 28px), 132px)) / 2); }
  .xmas-tree--right { right: calc(((100vw - 1240px) / 2 - clamp(64px, calc((100vw - 1240px) / 2 - 28px), 132px)) / 2); }
  .xmas-snow { position: fixed; inset: 0; width: 100%; height: 100%; }
}
.xmas-bulbs circle { animation: xmas-twinkle 1.8s ease-in-out infinite alternate; }
.xmas-bulbs circle:nth-child(2n) { animation-delay: -.6s; }
.xmas-bulbs circle:nth-child(3n) { animation-delay: -1.2s; animation-duration: 2.4s; }
.xmas-star { transform-origin: 70px 27px; animation: xmas-star 3s ease-in-out infinite; }
@keyframes xmas-star { 0%, 100% { transform: scale(1); filter: drop-shadow(0 0 2px rgba(244, 196, 48, .5)); } 50% { transform: scale(1.08); filter: drop-shadow(0 0 7px rgba(244, 196, 48, .9)); } }

/* Snow-capped edge on the footer */
.is-festive .footer { position: relative; }
.is-festive .footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 22px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='22' viewBox='0 0 240 22'%3E%3Cpath d='M0 0H240V6C228 6 226 16 218 16S208 7 198 7 190 19 180 19 170 6 158 6 150 13 140 13 132 5 120 5 112 18 100 18 92 8 80 8 72 14 62 14 54 6 42 6 34 17 24 17 12 6 0 6Z' fill='%23ffffff'/%3E%3C/svg%3E") repeat-x 0 0 / 240px 22px; pointer-events: none; }
.is-festive .footer__top { padding-top: 64px; }

/* Breaking bar: a candy-cane edge on the label */
.is-festive .breaking__label { border-right: 0; padding-right: 22px; background: repeating-linear-gradient(135deg, #fff 0 5px, #D0101B 5px 10px) right center / 6px 100% no-repeat; }

@media (prefers-reduced-motion: reduce) {
  .xmas-lights i, .xmas-bulbs circle, .xmas-star { animation: none !important; opacity: 1; }
}
