#af-festive {
  box-sizing: border-box;
  position: relative;
  inset: auto;
  z-index: 35;
  padding: 19px 20px 12px;
  background: linear-gradient(115deg, #073e30, #126143 58%, #073e30);
  color: #fff;
  border-bottom: 3px solid #e7b64e;
  box-shadow: 0 3px 14px #073e3020;
  font-family: system-ui, sans-serif;
  text-align: center;
}
.af-festive-inner {
  max-width: 1200px;
  margin: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  column-gap: 28px;
  row-gap: 6px;
}
.af-festive-title { font-size: 18px; font-weight: 800; color: #ffe1a0; }
.af-festive-clock { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
#af-festive .af-festive-offer { flex-basis: 100%; margin: 0; font-size: 14px; line-height: 1.5; color: #fff; }
.af-festive-lights {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  display: flex;
  justify-content: space-around;
  border-top: 2px solid #d6b65f;
  pointer-events: none;
}
.af-festive-lights i { width: 7px; height: 10px; border-radius: 0 0 7px 7px; background: #ffda72; box-shadow: 0 2px 8px #ffda7280; }
.af-festive-lights i:nth-child(3n) { background: #f08375; box-shadow: 0 2px 8px #f0837580; }
.af-festive-lights i:nth-child(3n + 1) { background: #f5fff3; }
.af-festive-lights i {
  animation: af-festive-twinkle 2.4s ease-in-out infinite;
}
.af-festive-lights i:nth-child(3n) {
  animation-delay: -0.8s;
}
.af-festive-lights i:nth-child(3n + 1) {
  animation-delay: -1.6s;
}
@keyframes af-festive-twinkle {
  0%, 100% { opacity: 0.4; filter: brightness(0.8); }
  50% { opacity: 1; filter: brightness(1.35); }
}
@media (prefers-reduced-motion: reduce) {
  .af-festive-lights i { animation: none; }
}
html.af-festive-season body { padding-top: 0; }
html.af-festive-season .sidebar { top: 12px; }
html.af-festive-season .flag-ribbon { top: 0; }
html.af-festive-season { scroll-padding-top: 16px; }

/* On phones the countdown scrolls with the page, leaving the viewport free. */
@media (max-width: 760px) {
  #af-festive { position: relative; inset: auto; }
  html.af-festive-season body { padding-top: 6px; }
  html.af-festive-season .sidebar { top: 6px; }
  html.af-festive-season .flag-ribbon { top: 0; }
  html.af-festive-season { scroll-padding-top: 16px; }
}
@media (max-width: 600px) {
  #af-festive { padding: 17px 12px 10px; }
  .af-festive-inner { row-gap: 4px; }
  .af-festive-title { font-size: 16px; }
  .af-festive-clock { font-size: 14px; width: 100%; }
  #af-festive .af-festive-offer { font-size: 14px; }
}
@media print {
  #af-festive { display: none !important; }
  html.af-festive-season body { padding-top: 0 !important; }
}

.af-season-animation { pointer-events:none; overflow:hidden; font-size:24px; white-space:nowrap; position:relative; z-index:1; }
.af-season-animation:empty { display:none; }
#af-festive[data-theme="santa"] { background:linear-gradient(115deg,#082744,#15476c 55%,#082744); }
#af-festive[data-theme="santa"] .af-season-animation { height:34px; line-height:34px; }
.af-sleigh { display:inline-block; animation:af-sleigh 12s linear infinite; }
#af-festive[data-theme="newyear"] .af-season-animation { animation:af-festive-twinkle 1.5s infinite; }
@keyframes af-sleigh { 0% { transform:translateX(45vw) translateY(2px); } 50% { transform:translateX(0) translateY(-3px); } 100% { transform:translateX(-45vw) translateY(2px); } }
.af-snow { display:none; position:absolute; inset:0; overflow:hidden; pointer-events:none; }
#af-festive[data-theme="santa"] .af-snow { display:block; }
.af-snow span { position:absolute; left:var(--x); top:0; color:#e8f5ff; opacity:.7; font-size:var(--size); animation:af-snowfall var(--duration) linear var(--delay) infinite; }
@keyframes af-snowfall { from { transform:translate(0,-20px) rotate(0); } to { transform:translate(18px,180px) rotate(150deg); } }
.af-festive-inner { position:relative; z-index:1; }
@media (max-width:600px) { #af-festive[data-theme="santa"] .af-season-animation { height:28px; line-height:28px; font-size:21px; } }
@media (prefers-reduced-motion:reduce) { #af-festive .af-season-animation, .af-sleigh, .af-snow span { animation:none !important; } .af-snow { display:none !important; } }

/* Keep the holiday and radio promotion inside the fixed countdown banner. */
#af-festive .af-countdown-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(240px,300px);
  align-items: start;
  gap: 16px;
  position: relative;
  z-index: 2;
}
#af-festive .af-countdown-main { min-width: 0; overflow: hidden; }
#af-festive .af-holiday-corner {
  position: relative;
  justify-self: end;
  align-self: start;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 11px;
  border: 1px solid #ffffff55;
  border-radius: 9px;
  background: #ffffff14;
  text-align: left;
  color: #fff;
  font: 12px/1.35 system-ui,sans-serif;
}
#af-festive .af-holiday-corner strong { display:block; color:#ffe1a0; font-size:12px; font-weight:750; }
#af-festive .af-holiday-corner a { color:#fff; font-size:12px; font-weight:650; text-decoration:underline; text-underline-offset:2px; overflow-wrap:anywhere; }
#af-festive .af-holiday-corner a:focus-visible { outline:2px solid #ffe1a0; outline-offset:2px; }
#af-festive .af-radio-title { margin-top:5px; padding-top:5px; border-top:1px solid #ffffff35; }
#af-festive .af-radio-links { display:flex; flex-wrap:wrap; gap:3px 9px; }
@media(max-width:850px) {
  #af-festive .af-countdown-layout { grid-template-columns:minmax(0,1fr); gap:6px; }
  #af-festive .af-holiday-corner { width:auto; max-width:100%; padding:5px 9px; }
}
@media(max-width:600px) {
  #af-festive .af-holiday-corner { width:100%; text-align:center; font-size:11px; }
  #af-festive .af-holiday-corner strong, #af-festive .af-holiday-corner a { font-size:11px; }
  #af-festive .af-radio-links { justify-content:center; }
  #af-festive .af-radio-title { margin-top:3px; padding-top:3px; }
}


/* Mobile banner: keep all three links visible, inside the countdown, at the right. */
@media (max-width: 850px) {
  #af-festive .af-countdown-layout { display:grid; grid-template-columns:minmax(0,1fr); gap:5px; }
  #af-festive .af-countdown-main { min-width:0; width:100%; }
  #af-festive .af-holiday-corner { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:4px 8px; width:min(100%, 400px); max-width:100%; justify-self:end; align-self:start; text-align:left; margin:0; padding:6px 8px; }
  #af-festive .af-holiday-travel, #af-festive .af-holiday-radio { min-width:0; }
  #af-festive .af-radio-title { margin:0; padding:0; border:0; }
  #af-festive .af-holiday-radio { padding-left:7px; border-left:1px solid #ffffff45; }
  #af-festive .af-radio-links { display:flex; flex-direction:column; align-items:flex-start; gap:2px; }
  #af-festive .af-holiday-corner strong, #af-festive .af-holiday-corner a { font-size:11px; line-height:1.35; }
  #af-festive .af-holiday-corner a { display:inline-block; padding:2px 0; }
}
@media (max-width: 600px) {
  #af-festive { padding:14px 8px 7px; }
  #af-festive .af-festive-inner { row-gap:3px; }
  #af-festive .af-festive-offer { font-size:11px; line-height:1.3; }
  #af-festive .af-festive-title { font-size:14px; }
  #af-festive .af-festive-clock { font-size:13px; }
  #af-festive[data-theme="santa"] .af-season-animation { height:24px; line-height:24px; font-size:19px; }
}
@media (max-width: 320px) {
  #af-festive .af-holiday-corner { grid-template-columns:minmax(0,1fr); }
  #af-festive .af-holiday-radio { padding-left:0; border-left:0; }
  #af-festive .af-radio-links { flex-direction:row; flex-wrap:wrap; gap:4px 8px; }
}

/* Compact radio controls with explicit opt-in playback. */
#af-festive .af-radio-links button, #af-festive .af-radio-stop {
  font: 650 11px/1.3 system-ui,sans-serif;
  color: #fff;
  background:#ffffff12;
  border:1px solid #ffffff55;
  border-radius:5px;
  padding:4px 6px;
  cursor:pointer;
  white-space:normal;
  text-align:left;
}
#af-festive .af-radio-links button[aria-pressed="true"] {background:#ffe1a0;color:#073e30;border-color:#ffe1a0;}
#af-festive .af-radio-controls {display:flex;align-items:center;gap:5px;flex-wrap:wrap;margin-top:5px;}
#af-festive .af-radio-controls label {display:flex;align-items:center;gap:3px;font-size:11px;}
#af-festive .af-radio-volume {width:65px;max-width:100%;accent-color:#ffe1a0;}
#af-festive .af-radio-status {display:block;font-size:11px;color:#ffe1a0;overflow-wrap:anywhere;margin-top:3px;}
#af-festive .af-radio-fallback {font-size:11px;}
#af-festive .af-radio-controls[hidden], #af-festive .af-radio-status[hidden], #af-festive .af-radio-fallback[hidden] {display:none !important;}
#af-festive .af-radio-links button:focus-visible, #af-festive .af-radio-stop:focus-visible {outline:2px solid #ffe1a0;outline-offset:2px;}
@media(max-width:850px) {#af-festive .af-radio-links button {font-size:11px;max-width:100%;} #af-festive .af-radio-controls {gap:3px;}}

/* Two separate school boards inside the countdown. */
#af-festive .af-school-boards {display:grid;gap:5px;min-width:0;width:100%;align-self:start;}
#af-festive .af-school-boards .af-skoolmark-board {grid-area:auto;padding:5px 8px;gap:2px;}
#af-festive .af-school-boards .af-skoolmark-cta {padding:3px 6px;}
#af-festive .af-skoolwinkel-board {background:#ffffff16;}
@media(max-width:1000px) {#af-festive .af-school-boards {grid-column:1;grid-row:2;gap:4px;}}
@media(max-width:600px) {#af-festive .af-school-boards .af-skoolmark-board {padding:4px 5px;font-size:10px;line-height:1.2;} #af-festive .af-school-boards .af-skoolmark-board strong {font-size:10px;} }
/* Permanent SkoolMark board in the countdown. */
#af-festive .af-countdown-layout {grid-template-columns:minmax(155px,225px) minmax(0,1fr) minmax(240px,300px);}
#af-festive .af-skoolmark-board {display:flex;flex-direction:column;gap:4px;align-self:start;justify-self:start;width:100%;min-width:0;box-sizing:border-box;text-align:left;text-decoration:none;color:#fff;background:#ffffff12;border:1px solid #ffe1a066;border-radius:9px;padding:9px 11px;font:600 12px/1.3 system-ui,sans-serif;}
#af-festive .af-skoolmark-board strong {color:#ffe1a0;font-size:13px;}
#af-festive .af-skoolmark-cta {color:#0b3429;background:#ffe1a0;border-radius:5px;padding:4px 7px;width:fit-content;font-weight:800;}
#af-festive .af-skoolmark-board:focus-visible {outline:2px solid #ffe1a0;outline-offset:2px;}
@media(max-width:1000px) {#af-festive .af-countdown-layout {grid-template-columns:minmax(0,1fr) minmax(0,1.5fr);gap:6px;} #af-festive .af-countdown-main {grid-row:1;grid-column:1/-1;} #af-festive .af-skoolmark-board {grid-column:1;grid-row:2;font-size:11px;padding:6px;} #af-festive .af-holiday-corner {grid-column:2;grid-row:2;max-width:100%;width:100%;} #af-festive .af-skoolmark-board strong {font-size:11px;} }
@media(max-width:600px) {#af-festive .af-holiday-corner {grid-template-columns:minmax(0,1fr);gap:3px;padding:5px 6px;} #af-festive .af-holiday-radio {border-left:0;padding-left:0;} #af-festive .af-radio-links {flex-direction:row;flex-wrap:wrap;gap:3px;} #af-festive .af-holiday-corner strong,#af-festive .af-holiday-corner a,#af-festive .af-radio-links button {font-size:10px;} }

/* Christmas header: original evergreen decoration and warm rustic timber.
   The layout, controls, countdown and navigation retain their existing behavior. */
#af-festive[data-theme="santa"] {
  padding-top: 66px;
  color: #193b2d;
  background-color: #e9d9c6;
  background-image:
    linear-gradient(90deg, #fff7e970, transparent 48%, #fff7e970),
    repeating-linear-gradient(0deg, #8c70531a 0px, #8c70531a 1px, transparent 2px, transparent 5px, #fff9ed55 6px, transparent 8px),
    repeating-linear-gradient(0deg, #a68b7040 0px, #a68b7040 2px, #f2e6d7 3px, #e8d8c5 64px, #bba28a 65px, #d9c5ad 67px);
  border-bottom-color: #9b713e;
}
#af-festive[data-theme="santa"]::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 64px;
  background: url('/festive-garland.svg') center top / 100% 100% no-repeat;
  pointer-events: none;
}
#af-festive[data-theme="santa"] .af-festive-lights { z-index: 1; }
#af-festive[data-theme="santa"] .af-countdown-layout { align-items: center; }
#af-festive[data-theme="santa"] .af-festive-title { color: #8b2430; }
#af-festive[data-theme="santa"] .af-festive-clock,
#af-festive[data-theme="santa"] .af-festive-offer { color: #193b2d; }
#af-festive[data-theme="santa"] .af-festive-offer a { color: #812230 !important; text-underline-offset: 3px; font-weight: 700; }
#af-festive[data-theme="santa"] .af-skoolmark-board,
#af-festive[data-theme="santa"] .af-holiday-corner {
  background: #fff8e9e8;
  color: #193b2d;
  border-color: #af9374;
  box-shadow: 0 2px 6px #63442614;
}
#af-festive[data-theme="santa"] .af-skoolmark-board strong,
#af-festive[data-theme="santa"] .af-holiday-corner strong,
#af-festive[data-theme="santa"] .af-radio-status { color: #812230; }
#af-festive[data-theme="santa"] .af-holiday-corner a { color: #225a41; }
#af-festive[data-theme="santa"] .af-skoolmark-cta { background: #215940; color: #fff9e7; }
#af-festive[data-theme="santa"] .af-radio-links button,
#af-festive[data-theme="santa"] .af-radio-stop { background: #fffaf1; color: #214a37; border-color: #967d63; }
#af-festive[data-theme="santa"] .af-radio-links button[aria-pressed="true"] { background: #215940; color: white; border-color: #215940; }
#af-festive[data-theme="santa"] .af-radio-title,
#af-festive[data-theme="santa"] .af-holiday-radio { border-color: #bba58c; }
#af-festive[data-theme="santa"] .af-radio-volume { accent-color: #215940; }
#af-festive[data-theme="santa"] :is(a,button):focus-visible { outline: 2px solid #812230; outline-offset: 2px; }
#af-festive[data-theme="santa"] .af-snow span { color: #648879; opacity: .34; }
@media (max-width: 1000px) {
  #af-festive[data-theme="santa"] { padding-top: 47px; }
  #af-festive[data-theme="santa"]::before { height: 45px; background-size: auto 45px; }
  #af-festive[data-theme="santa"] .af-countdown-layout { align-items: start; }
}
@media (max-width: 600px) {
  #af-festive[data-theme="santa"] { padding-top: 40px; }
  #af-festive[data-theme="santa"]::before { height: 39px; background-size: auto 39px; }
}



