/* Seasonal decoration only. Nothing here changes game layouts, historic images
   or normal website styles outside December. */
html.ctc-festive,html.ctc-festive body,
html.ctc-festive #questHome,html.ctc-festive #questHome .newsite {
  background-color:#fbf3e1!important;
  background-image:none!important;
}
html.ctc-festive #questHome header.newnav {
  background:linear-gradient(176deg,#fff8e9,#f5e6ca)!important;
  color:#264d35!important;
  border-top:4px solid #ba974f!important;
  border-bottom:7px solid #285338!important;
  box-shadow:inset 0 2px 0 #fffdf7,0 2px 0 #b28d46!important;
}
html.ctc-festive #questHome header.newnav::after {
  background:repeating-linear-gradient(-45deg,#9d272d 0 8px,#f7e6bd 8px 13px,#30593d 13px 21px,#f7e6bd 21px 26px)!important;
  clip-path:none!important;height:4px!important;bottom:-5px!important;opacity:1!important;
  pointer-events:none!important;
}
html.ctc-festive #questHome header.newnav nav {
  background:#fff8e9!important;background-image:none!important;
}
html.ctc-festive #questHome header.newnav .newlogo .ctc-logo .t1,
html.ctc-festive body .rq-brand .ctc-logo .t1 {fill:#264f37!important;stroke:#264f37!important}
html.ctc-festive #questHome header.newnav .newlogo .ctc-logo .t2,
html.ctc-festive body .rq-brand .ctc-logo .t2 {fill:#9d292e!important}
html.ctc-festive #questHome header.newnav .newlogo .ctc-logo g line,
html.ctc-festive body .rq-brand .ctc-logo g line {stroke:#a33134!important}
html.ctc-festive #questHome header.newnav nav button:not(#rq-acct):not(.on):not(:first-child),
html.ctc-festive #questHome header.newnav nav a.nav-yt {color:#264b35!important}
html.ctc-festive #questHome header.newnav nav button:first-child:not(#rq-acct) {
  background:#9d292f!important;color:#fff8e8!important;
}
html.ctc-festive #questHome header.newnav nav button.on:not(#rq-acct) {
  outline-color:#a32c30!important;
}
html.ctc-festive #questHome header.newnav .hdr-rank {border-color:#b69a62!important;}
/* Large original masthead, with engraved holly instead of its usual rules. */
html.ctc-festive #questHome #new-home .editorial-home {
  background-image:none!important;
}
html.ctc-festive #questHome #new-home .ed-mast {
  border-bottom-color:#b28b41!important;
}
html.ctc-festive #questHome #new-home .ed-copy .ed-kicker {
  display:flex!important;align-items:center!important;justify-content:center!important;
  gap:9px!important;font:850 clamp(11px,1.12vw,15px)/1.1 Georgia,serif!important;
  letter-spacing:.13em!important;color:#8f282c!important;
  border:0!important;margin:0 0 5px!important;padding:0!important;text-align:center!important;
}
html.ctc-festive #questHome #new-home .ed-copy .ed-kicker::before,
html.ctc-festive #questHome #new-home .ed-copy .ed-kicker::after {
  content:"✦"!important;color:#9b722c!important;font-size:1.1em!important;
}
html.ctc-festive #questHome #new-home .ed-copy h1 {
  color:#234f36!important;text-shadow:1px 2px 0 #c6ae7733!important;
}
html.ctc-festive #questHome #new-home .ed-copy h1 em {
  color:#a12a30!important;
  display:flex!important;align-items:center!important;justify-content:center!important;gap:clamp(5px,1.5vw,22px)!important;
}
html.ctc-festive #questHome #new-home .ed-copy h1 em::before,
html.ctc-festive #questHome #new-home .ed-copy h1 em::after {
  content:""!important;display:block!important;
  flex:1 1 0!important;max-width:210px!important;min-width:25px!important;height:clamp(24px,4.8vw,64px)!important;
  background:url('img/christmas-holly.svg') center/contain no-repeat!important;
  clip-path:none!important;pointer-events:none!important;
}
html.ctc-festive #questHome #new-home .ed-copy h1 em::after {transform:scaleX(-1)!important;}
html.ctc-festive #questHome #new-home .ed-qual-heading {
  border-top-color:#b48a42!important;color:#264e37!important;
}
/* The original torn-paper sheets, tape and portrait photographs are retained. */
html.ctc-festive #questHome #new-home .qualification-grid article.qual.igcse::before {
  background:linear-gradient(145deg,#a32b35,#7e222d)!important;
}
html.ctc-festive #questHome #new-home .qualification-grid article.qual.ib::before {
  background:linear-gradient(145deg,#366748,#214d36)!important;
}
html.ctc-festive #questHome #new-home .qualification-grid article.qual .ed-card-copy h2,
html.ctc-festive #questHome #new-home .qualification-grid article.qual .ed-card-copy p {color:#fff7e5!important}
html.ctc-festive #questHome #new-home .qualification-grid article.qual .ed-card-copy button {
  background:#fff0cd!important;border:2px solid #b48a45!important;color:#284e36!important;
  box-shadow:0 2px 0 #e8d4a2!important;
}
html.ctc-festive #questHome #new-home .qualification-grid article.qual.igcse .ed-card-copy button {color:#8f262c!important;}
html.ctc-festive #questHome #new-home .ed-extras {
  border-top-color:#ad8746!important;border-bottom-color:#ad8746!important;
}
html.ctc-festive #questHome #new-home .ed-extras b {color:#264b35!important;}
html.ctc-festive #questHome #new-home .ed-extras .ed-mini-icon svg {stroke:#9b2b2f!important;}
/* Existing challenge button remains in its existing place. */
html.ctc-festive .ctc-xmas-badge {
  background:#285639!important;border-color:#b58c49!important;color:#fff9e9!important;
  font-weight:800!important;box-shadow:0 2px 0 #d4bd8a!important;
}
html.ctc-festive .ctc-xmas-badge.complete {background:#e3eed7!important;color:#254d35!important;border-color:#75906b!important;}
/* Warm cream and a festive border for the standard flashcard header only. */
html.ctc-festive body:not(.home-active):not(.quiz-active)>header.rq-head {
  background:#fff5de!important;background-image:none!important;color:#264d35!important;
  border-bottom:4px solid #285338!important;box-shadow:0 2px 0 #b28d46!important;
}
html.ctc-festive body:not(.home-active):not(.quiz-active)>header.rq-head h1,
html.ctc-festive body:not(.home-active):not(.quiz-active)>header.rq-head p {color:#264d35!important;}
@media(max-width:959px){
  html.ctc-festive #questHome header.newnav {border-top:2px solid #b28d46!important;border-bottom-width:4px!important;}
  html.ctc-festive #questHome header.newnav::after {bottom:-3px!important;height:3px!important;}
  html.ctc-festive #questHome #new-home .ed-copy .ed-kicker {font-size:12px!important;letter-spacing:.09em!important;margin-bottom:6px!important;}
  html.ctc-festive #questHome #new-home .ed-copy h1 em::before,
  html.ctc-festive #questHome #new-home .ed-copy h1 em::after {max-width:110px!important;height:clamp(25px,7vw,45px)!important;}
}
@media(min-width:960px) and (max-height:740px){
  html.ctc-festive #questHome #new-home .ed-copy .ed-kicker {font-size:12px!important;margin-bottom:3px!important;}
  html.ctc-festive #questHome #new-home .ed-copy h1 em::before,
  html.ctc-festive #questHome #new-home .ed-copy h1 em::after {height:42px!important;}
}
/* Avoid shrinking the original branding or cards. At very short screen heights
   the same content can scroll instead of being clipped by the normal masthead. */
@media(max-height:650px) and (min-width:960px){
  html.ctc-festive:has(body.home-active #questHome #new-home:not([hidden])),
  html.ctc-festive body.home-active:has(#questHome #new-home:not([hidden])) {overflow-y:auto!important}
}
