@import url("https://fonts.googleapis.com/css2?family=LXGW+WenKai+TC:wght@700&display=swap&text=%28%29.%2F0123456789AFQilpr%E2%80%A6%E3%80%82%E3%83%BB%E4%B8%80%E4%B8%89%E4%B8%8A%E4%B8%8B%E4%B8%8D%E4%B8%AD%E4%BA%8C%E4%BA%94%E4%BA%BA%E4%BB%8B%E4%BB%98%E4%BB%A5%E4%BD%9C%E4%BE%86%E5%80%8B%E5%80%99%E5%82%99%E5%85%89%E5%85%A5%E5%85%AD%E5%85%B1%E5%87%BA%E5%88%87%E5%88%A9%E5%88%B0%E5%89%8D%E5%8A%9F%E5%8D%80%E5%8D%A1%E5%8D%B3%E5%8F%96%E5%8F%A3%E5%8F%AF%E5%90%8D%E5%93%A1%E5%93%AA%E5%95%8F%E5%96%AE%E5%99%A8%E5%9B%9B%E5%9B%9E%E5%9C%A8%E5%A0%82%E5%A0%B1%E5%A2%83%E5%A5%8F%E5%A5%BD%E5%AD%90%E5%AD%A9%E5%AD%B8%E5%AE%89%E5%AE%8C%E5%AE%98%E5%AE%9A%E5%AE%A4%E5%AF%A9%E5%B0%87%E5%B0%8F%E5%B0%9A%E5%B7%A5%E5%B7%B2%E5%B8%9D%E5%B8%AB%E5%B8%B3%E5%B8%B8%E5%B9%B4%E5%BB%B6%E5%BB%BA%E5%BE%85%E5%BF%83%E5%BF%85%E6%84%9F%E6%88%90%E6%88%96%E6%89%BE%E6%8C%87%E6%8E%92%E6%8F%9B%E6%8F%B4%E6%93%87%E6%94%AF%E6%95%99%E6%96%99%E6%96%B0%E6%96%B9%E6%96%BC%E6%97%A5%E6%99%82%E6%9A%AB%E6%9C%88%E6%9C%9F%E6%9C%AA%E6%9C%AC%E6%9F%A5%E6%A0%B8%E6%A1%88%E6%A2%AD%E6%A8%82%E6%A9%9F%E6%AC%A1%E6%AC%BE%E6%AD%A3%E6%AE%B5%E6%B4%BB%E6%B6%88%E7%80%8F%E7%82%BA%E7%84%A1%E7%85%A7%E7%89%A9%E7%89%B9%E7%8F%AD%E7%90%86%E7%92%B0%E7%94%9F%E7%94%B1%E7%99%BB%E7%9A%84%E7%9B%AE%E7%9C%8B%E7%9F%A5%E7%A2%BA%E7%A8%8B%E7%AB%8B%E7%AB%A5%E7%AD%89%E7%AE%A1%E7%AF%80%E7%B4%80%E7%B4%84%E7%B4%B9%E7%B9%AA%E7%BF%92%E8%80%81%E8%80%85%E8%87%AA%E8%88%87%E8%88%AA%E8%89%99%E8%92%99%E8%97%9D%E8%A1%93%E8%A3%9C%E8%A3%BD%E8%A6%81%E8%A6%8B%E8%A6%96%E8%A6%AA%E8%A6%BD%E8%A7%92%E8%A8%80%E8%A8%82%E8%A8%8A%E8%A8%98%E8%AA%8D%E8%AA%9E%E8%AA%A4%E8%AA%B2%E8%AB%8B%E8%AC%9B%E8%AD%89%E8%AE%80%E8%B2%B7%E8%B3%87%E8%B3%BC%E8%BD%89%E8%BF%94%E9%80%99%E9%81%A9%E9%81%B8%E9%87%8D%E9%8C%84%E9%97%9C%E9%9F%B3%E9%A0%81%E9%A0%88%E9%A0%90%E9%A1%8C%E9%A1%A7%E9%A3%9F%E9%A4%90%E9%BB%9E%E9%BD%A1%EF%BC%88%EF%BC%89%EF%BC%8C");

/* Christmas theme: 繪本航空郵件 × 木頭玩具 (storybook-wood); loaded only when SiteTheme:ActiveTheme is "christmas". */
html:has(> body[data-site-theme="christmas"]) {
  scrollbar-color: #1F5B43 #FAF1E4;
}

body[data-site-theme="christmas"] {
  --c-page: #FAF1E4;
  --c-surface: #FFFBF4;
  --c-stub: #F3E6CF;
  --c-blue: #1F5B43;
  --c-blue-tint: #FBE3DC;
  --c-line: #D8B88A;
  --c-yellow-tint: #F8E9C8;
  --x-red: #B8322A;
  --x-red-ink: #D9473A;
  --x-holly: #1F5B43;
  --x-birch: #D8B88A;
  --x-wood-dark: #7A5A3A;
  --x-paper-2: #F6EEE0;
  --x-stub-wood: #E7D2B0;
  --x-stub-wood-light: #EEDDC0;
  --x-footer-text: #FFFBF4;
  --font-display: "LXGW WenKai TC", "Chiron GoRound TC", "Noto Sans TC", sans-serif;
  --x-airmail: repeating-linear-gradient(-45deg, var(--x-red-ink) 0 10px, var(--c-surface) 10px 16px, var(--x-holly) 16px 26px, var(--c-surface) 26px 32px);
  --x-beads:
    radial-gradient(circle at 7px 6px, var(--x-red-ink) 4.5px, #0000 5px) 0 0 / 42px 12px,
    radial-gradient(circle at 21px 6px, var(--x-birch) 4.5px, #0000 5px) 0 0 / 42px 12px,
    radial-gradient(circle at 35px 6px, var(--x-holly) 4.5px, #0000 5px) 0 0 / 42px 12px,
    linear-gradient(var(--x-wood-dark), var(--x-wood-dark)) 0 5.5px / 100% 1px no-repeat;
  --x-wood: repeating-linear-gradient(97deg, #D8B88A 0 7px, #CEAC7C 7px 8px, #DCBF95 8px 15px, #D3B283 15px 17px);
  background: var(--c-page);
}

body[data-site-theme="christmas"]::selection,
body[data-site-theme="christmas"] ::selection {
  background: #F6C9BF;
  color: var(--c-ink);
}

/* Handwritten kai for static display headings only. boarding.css --font-head stays Chiron GoRound TC so numerals, UI controls, and database-backed headings keep the brand round face without mixed glyphs. */
body[data-site-theme="christmas"] .pass-main :is(h1, h2),
body[data-site-theme="christmas"] .cal-head h2,
body[data-site-theme="christmas"] .day-courses h2,
body[data-site-theme="christmas"] .login-strip h2,
body[data-site-theme="christmas"] .upcoming-head h2,
body[data-site-theme="christmas"] .page-head h1,
body[data-site-theme="christmas"] .flow-card:not(#course-card-confirm-form) > h1,
body[data-site-theme="christmas"] .form-section > h2,
body[data-site-theme="christmas"] .form-section > .section-head h2,
body[data-site-theme="christmas"] .subform > h3,
body[data-site-theme="christmas"] .child-pick h2,
body[data-site-theme="christmas"] .standby-main > :is(h1, h2),
body[data-site-theme="christmas"] .transfer :is(h2, h3),
body[data-site-theme="christmas"] .warn-card :is(h1, h2),
body[data-site-theme="christmas"] .center-card h1,
body[data-site-theme="christmas"] .empty-state :is(h2, h3),
body[data-site-theme="christmas"] .about-title h1,
body[data-site-theme="christmas"] .teacher h2,
body[data-site-theme="christmas"] .rhythm h2,
body[data-site-theme="christmas"] .areas :is(h2, h3),
body[data-site-theme="christmas"] .moments h2,
body[data-site-theme="christmas"] .path h3 {
  font-family: var(--font-display);
  font-weight: 700;
}

body[data-site-theme="christmas"] .pass-main h1 {
  color: var(--x-red);
  letter-spacing: .04em;
}

body[data-site-theme="christmas"] .btn-ghost:active {
  background: #F6C9BF;
  color: var(--c-ink);
}

/* Header: wooden bead garland + interactive Christmas airliner next to brand */
body[data-site-theme="christmas"] .site-header {
  background: var(--c-surface);
  border-bottom: 0;
}

body[data-site-theme="christmas"] .site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 12px;
  background: var(--x-beads);
  pointer-events: none;
}

body[data-site-theme="christmas"] .main-nav a[aria-current="page"]::after {
  background: var(--x-red);
}

body[data-site-theme="christmas"] .brand {
  position: relative;
}

body[data-site-theme="christmas"] .brand::before {
  content: "";
  position: absolute;
  left: -3px;
  top: -9px;
  width: 28px;
  height: 23px;
  transform: rotate(-18deg);
  background: url(../../images/themes/christmas/santa-hat.svg) center / contain no-repeat;
  pointer-events: none;
}

body[data-site-theme="christmas"] .site-theme-plane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 60px;
  min-width: 44px;
  min-height: 44px;
  height: 44px;
  margin-left: -12px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

body[data-site-theme="christmas"] .site-theme-plane img {
  width: 60px;
  height: 36px;
  max-width: none;
  display: block;
  pointer-events: none;
  transition: transform 180ms ease, opacity 140ms ease, filter 140ms ease;
}

@media (hover: hover) {
  body[data-site-theme="christmas"] .site-theme-plane:not([aria-disabled="true"]):hover img {
    transform: translateY(-2px);
  }
}

body[data-site-theme="christmas"] .site-theme-plane:focus-visible {
  outline: 3px solid var(--c-focus);
  outline-offset: 2px;
  box-shadow: 0 0 0 2px var(--c-focus-halo);
}

body[data-site-theme="christmas"] .site-theme-plane[aria-disabled="true"] {
  cursor: default;
}

body[data-site-theme="christmas"] .site-theme-plane[aria-disabled="true"] img {
  opacity: 0;
}

body[data-site-theme="christmas"] .site-theme-plane.is-nav-blink img {
  filter: drop-shadow(0 0 6px #F2C568) brightness(1.12);
  opacity: .88;
}

body[data-site-theme="christmas"] .site-theme-plane-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 6;
}

body[data-site-theme="christmas"] .site-theme-plane-flyer {
  position: absolute;
  left: 0;
  top: 0;
  width: 75px;
  height: 45px;
  background: url(../../images/themes/christmas/xmas-airliner.svg) center / contain no-repeat;
  transform-origin: center center;
  will-change: transform, opacity;
  pointer-events: none;
}

body[data-site-theme="christmas"] .site-theme-plane-flyer #xmas-plane-gifts {
  transform-box: fill-box;
  transform-origin: 50% 90%;
}

/* Hero: birch tray frame + airmail boarding pass + postmark stamp */
body[data-site-theme="christmas"] .hero {
  margin-top: 36px;
}

body[data-site-theme="christmas"] .hero-photo {
  padding: 10px;
  border-radius: 28px;
  background: var(--x-wood);
}

body[data-site-theme="christmas"] .pass {
  padding: 5px;
  background: var(--x-airmail);
  border-radius: 20px;
  filter: drop-shadow(0 10px 18px #3d343124);
}

body[data-site-theme="christmas"] .pass-card {
  border-radius: 15px;
}

body[data-site-theme="christmas"] .hero .pass-plain::after {
  content: "";
  position: absolute;
  right: -26px;
  top: -44px;
  width: 140px;
  height: 98px;
  rotate: -10deg;
  opacity: .85;
  background: url(../../images/themes/christmas/postmark.svg) center / contain no-repeat;
  pointer-events: none;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: no-preference) {
  body[data-site-theme="christmas"] .hero .pass-plain::after {
    animation: xd-stamp .55s cubic-bezier(.2, .8, .2, 1) .7s 1 both;
  }
}

@keyframes xd-stamp {
  from { scale: 1.6; opacity: 0; }
  70% { scale: .97; opacity: .9; }
  to { scale: 1; opacity: .85; }
}

body[data-site-theme="christmas"] .fields {
  border-top-color: var(--c-line);
}

/* Pass stub: wooden luggage tag */
body[data-site-theme="christmas"] .stub {
  background: repeating-linear-gradient(92deg, var(--x-stub-wood-light) 0 9px, var(--x-stub-wood) 9px 10px, #F1E2C8 10px 19px);
  color: var(--c-ink);
  border-top: 3px dashed #9C7A50;
}

body[data-site-theme="christmas"] .stub .icon {
  color: var(--x-holly);
}

/* Calendar: paper head, holly sprig, bead garland, Dec 24/25 ornaments */
body[data-site-theme="christmas"] .panel {
  border-color: var(--x-holly);
  border-radius: 18px;
}

body[data-site-theme="christmas"] .cal-head {
  background: var(--x-paper-2);
  border-bottom: 0;
  position: relative;
  padding-bottom: 26px;
}

body[data-site-theme="christmas"] .cal-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 12px;
  background: var(--x-beads);
  pointer-events: none;
}

body[data-site-theme="christmas"] .cal-head h2 {
  color: var(--x-red);
}

body[data-site-theme="christmas"] .cal-head h2::after {
  content: "";
  display: inline-block;
  width: 38px;
  height: 26px;
  margin-left: 10px;
  vertical-align: -2px;
  background: url(../../images/themes/christmas/holly.svg) center / contain no-repeat;
  pointer-events: none;
}

body[data-site-theme="christmas"] .toolbar {
  border-bottom-color: var(--c-line);
}

body[data-site-theme="christmas"] .day.is-open .day-btn:not([aria-pressed="true"]):hover {
  outline-color: var(--x-red);
}

body[data-site-theme="christmas"] .panel:not(.only-open) .day[data-xmas="eve"] .d-note {
  color: var(--x-red);
  font-weight: 700;
}

body[data-site-theme="christmas"] .day[data-xmas="eve"]::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 6px;
  width: 26px;
  height: 32px;
  background: url(../../images/themes/christmas/himmeli.svg) center top / contain no-repeat;
  pointer-events: none;
}

body[data-site-theme="christmas"] .day.is-next[data-xmas="eve"]::after {
  top: 20px;
}

body[data-site-theme="christmas"] .panel:not(.only-open) .day.is-closed[data-xmas="day"] .day-static {
  background: repeating-linear-gradient(135deg, var(--c-surface) 0 11px, var(--c-hatch) 11px 12px);
  border-color: var(--x-holly);
}

body[data-site-theme="christmas"] .day[data-xmas="day"]::after {
  content: "";
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 24px;
  height: 32px;
  background: url(../../images/themes/christmas/felt-tree.svg) center / contain no-repeat;
  pointer-events: none;
}

@media (min-width: 861px) {
  body[data-site-theme="christmas"] .day[data-xmas="day"]:has(.day-btn[aria-pressed="true"])::after {
    top: 6px;
    bottom: auto;
  }
}

body[data-site-theme="christmas"] .event-note {
  background: var(--x-paper-2);
}

/* Tickets + login strip */
body[data-site-theme="christmas"] .ticket-stub {
  border-left-color: #9C7A50;
  border-right-color: var(--x-holly);
}

body[data-site-theme="christmas"] .login-strip {
  border-color: var(--x-holly);
}

body[data-site-theme="christmas"] .login-strip > .icon {
  color: var(--x-holly);
}

/* Footer: holly background + bunting garland */
body[data-site-theme="christmas"] .site-footer {
  background: var(--x-holly);
  color: var(--x-footer-text);
  border-top: 0;
  position: relative;
  margin-top: 40px;
}

body[data-site-theme="christmas"] .site-footer a {
  color: #F8E9C8;
}

body[data-site-theme="christmas"] .site-footer :focus-visible {
  outline-color: var(--x-footer-text);
  box-shadow: 0 0 0 2px var(--x-holly);
}

body[data-site-theme="christmas"] .site-theme-ornament--footer {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  top: -30px;
  height: 36px;
  pointer-events: none;
  background: url(../../images/themes/christmas/bunting.svg) left top / 120px 36px repeat-x;
}

@media (min-width: 861px) and (max-width: 1180px) {
  body[data-site-theme="christmas"] .site-theme-plane {
    margin-left: -4px;
    margin-right: -4px;
  }
}

@media (min-width: 861px) and (max-width: 960px) {
  body[data-site-theme="christmas"] .site-theme-plane {
    display: none;
  }
}

@media (max-width: 860px) {
  body[data-site-theme="christmas"] .brand::before {
    left: -4px;
    top: -9px;
    width: 23px;
    height: 19px;
  }

  body[data-site-theme="christmas"] .site-theme-plane {
    width: 52px;
    height: 44px;
    margin-left: 0;
  }

  body[data-site-theme="christmas"] .site-theme-plane img {
    width: 50px;
    height: 30px;
  }

  body[data-site-theme="christmas"] .site-theme-plane-flyer {
    width: 55px;
    height: 33px;
  }

  body[data-site-theme="christmas"] .hero {
    margin-top: 24px;
  }

  body[data-site-theme="christmas"] .hero-photo {
    padding: 6px;
    border-radius: 20px;
  }

  body[data-site-theme="christmas"] .pass {
    padding: 4px;
  }

  body[data-site-theme="christmas"] .hero .pass-plain::after {
    right: -8px;
    top: -38px;
    width: 100px;
    height: 70px;
  }

  body[data-site-theme="christmas"] .day[data-xmas="eve"]::after {
    width: 20px;
    height: 26px;
    right: 4px;
    top: 4px;
  }

  body[data-site-theme="christmas"] .day.is-next[data-xmas="eve"]::after {
    top: 16px;
  }

  body[data-site-theme="christmas"] .day[data-xmas="day"]::after {
    width: 18px;
    height: 24px;
    right: 4px;
    bottom: 4px;
  }
}

@media (max-width: 380px) {
  body[data-site-theme="christmas"] .day[data-xmas]::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-site-theme="christmas"] .hero .pass-plain::after,
  body[data-site-theme="christmas"] .site-theme-ornament--footer,
  body[data-site-theme="christmas"] .cal-head h2::after,
  body[data-site-theme="christmas"] .day[data-xmas="eve"]::after,
  body[data-site-theme="christmas"] .day[data-xmas="day"]::after {
    animation: none;
  }

  body[data-site-theme="christmas"] .site-theme-plane img,
  body[data-site-theme="christmas"] .site-theme-plane:not([aria-disabled="true"]):hover img {
    transform: none;
    transition: none;
  }

  body[data-site-theme="christmas"] .site-theme-plane-stage {
    display: none;
  }
}
