/* 崇真會美善幼稚園(馬鞍山) — site theme */
:root {
  --sky: #88d4f2;
  --sky-deep: #45b3df;
  --navy: #1e3262;
  --footer: #11324d;
  --beige: #fcf9f4;
  --yellow: #ffdd98;
  --yellow-deep: #f9c96c;
  --mint: #aacdbe;
  --mint-soft: #d4e7df;
  --peach: #fde0c2;
  --orange: #fbc687;
  --orange-nav: #fbb77a;
  --salmon: #ee8666;
  --cyan: #29d8d8;
  --pink: #f5b9cb;
  --text: #333;
  --muted: #6f6f6f;
  --wrap: 760px;
  --zh: 'Mulish', 'Noto Sans TC', 'PingFang TC', 'Microsoft JhengHei', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--zh); color: var(--text); background: #fff; font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 900; color: var(--navy); }
p { margin: 0 0 12px; }
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: #fff; padding: 8px 12px; }
.skip:focus { left: 8px; }
.center { text-align: center; }
.text-right { text-align: right; }
.dark { color: #222; }
.salmon { color: var(--salmon); text-decoration: none; }

/* ── Photo placeholders ─────────────────────────────────── */
.image-placeholder {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 6px;
  background: #eef6fa; border: 2px dashed #b9d9e8; border-radius: 12px; color: #6d93a8; font-size: 13px; font-weight: 700; text-align: center;
  aspect-ratio: 4 / 3; width: 100%; padding: 8px;
}
.image-placeholder::before {
  content: ''; width: 34px; height: 28px; opacity: .7;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 34 28' fill='none' stroke='%236d93a8' stroke-width='2'%3E%3Crect x='1' y='1' width='32' height='26' rx='4'/%3E%3Ccircle cx='11' cy='10' r='3'/%3E%3Cpath d='M1 22l9-8 7 6 5-4 11 9'/%3E%3C/svg%3E");
}
.image-placeholder.has-photo { border: 0; padding: 0; background: none; }
.image-placeholder.has-photo::before, .image-placeholder.has-photo > span { display: none; }
.image-placeholder.has-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }

/* ── Header ─────────────────────────────────────────────── */
.site-header { position: relative; z-index: 20; background: var(--sky); padding: 10px 16px 14px; text-align: center; }
.site-header::after {
  content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 34px; pointer-events: none;
  background: no-repeat top / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 34' preserveAspectRatio='none'%3E%3Cpath fill='%2388d4f2' d='M0 0h1440v4c-120 2-230-6-420 6C780 26 500 34 300 18 180 8 80 4 0 18z'/%3E%3Cpath fill='none' stroke='%23ffffff' stroke-opacity='.9' stroke-width='3' d='M0 18C80 4 180 8 300 18c200 16 480 8 720-8 190-12 300-4 420-6'/%3E%3C/svg%3E");
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand .crest { width: 74px; height: 56px; aspect-ratio: auto; border-radius: 50%; padding: 0; font-size: 10px; background: rgba(255,255,255,.85); border-color: #fff; }
.brand .crest::before, .footer-about .crest::before { display: none; }
.brand-names { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.05; }
.brand-zh, .brand-en {
  color: #2f8fd8; font-weight: 700;
  text-shadow: 2px 0 #fff, -2px 0 #fff, 0 2px #fff, 0 -2px #fff, 1.4px 1.4px #fff, -1.4px -1.4px #fff, 1.4px -1.4px #fff, -1.4px 1.4px #fff;
}
.brand-zh { font-size: 30px; letter-spacing: .38em; margin-right: -.38em; font-family: 'Noto Sans TC', sans-serif; }
.brand-en { font-size: 19px; font-weight: 600; letter-spacing: -.01em; margin-top: 2px; }

/* Above the full-width menu bar, which otherwise covers the switch and swallows taps;
   below dropdowns (30) and the phone menu (40). */
.lang-switch {
  position: absolute; z-index: 25; right: 20px; top: 84px; display: flex; align-items: center; gap: 5px; padding: 3px 6px;
  font-size: 12px; font-weight: 700; background: #e7f5fb; border: 1px solid #6aaecd; border-radius: 6px; color: #5f7f93;
}
.lang-switch a { text-decoration: none; color: #6b8697; }
.lang-switch a[aria-current] { color: #111; }

.main-nav { margin-top: 12px; position: relative; }
.nav-links { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: nowrap; gap: 4px 19px; }
.nav-links > li { position: relative; }
.nav-links > li > a, .nav-links > li > .sub-toggle {
  display: inline-flex; align-items: center; white-space: nowrap; padding: 1px 4px; border-radius: 3px;
  font: 900 17px/1.35 'Noto Sans TC', var(--zh); color: #fff; text-decoration: none; background: none; border: 0; cursor: pointer;
}
.nav-links > li.active > a, .nav-links > li.active > .sub-toggle, .nav-links > li > a:hover, .nav-links > li > .sub-toggle:hover { background: var(--orange-nav); }
.plus { font-size: 11px; margin-left: 3px; opacity: .9; font-weight: 700; }
.submenu { list-style: none; margin: 0; padding: 8px 0; }
.nav-links .submenu {
  position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); min-width: 200px; z-index: 30; text-align: left;
  background: #fff; border-radius: 12px; box-shadow: 0 10px 28px rgba(17, 50, 77, .18); display: none;
}
.nav-links .submenu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }
.nav-links .has-sub.top:hover > .submenu, .nav-links .has-sub.open > .submenu { display: block; }
.submenu a, .submenu .sub-toggle {
  display: flex; justify-content: space-between; width: 100%; padding: 8px 18px; font: 700 15px/1.3 var(--zh); color: var(--navy);
  text-decoration: none; background: none; border: 0; cursor: pointer; text-align: left; white-space: nowrap;
}
.submenu a:hover, .submenu .sub-toggle:hover, .submenu a[aria-current] { background: #fff3e6; color: #e07b4f; }
.submenu .has-sub { position: relative; }
.submenu .submenu { position: absolute; left: 100%; top: -8px; transform: none; }
.submenu .has-sub:hover > .submenu { display: block; }
.menu-toggle { display: none; }

/* ── Page title banner ─────────────────────────────────── */
.page-body { position: relative; }
.page-banner { position: relative; background: var(--beige); height: 232px; display: flex; align-items: center; justify-content: center; padding: 0 16px; }
.page-banner::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 60px;
  background: no-repeat bottom / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fff' d='M0 60V26c180 14 360 18 560 6C760 20 900 0 1080 8c150 6 260 30 360 38v14z'/%3E%3C/svg%3E");
}
.page-banner h1 { position: relative; z-index: 2; font-size: 36px; text-align: center; line-height: 1.2; margin-top: -12px; }
.banner-doodles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.doodle { position: absolute; }
.d-blocks { width: 130px; left: calc(50% - 680px); top: -8px; }
.d-balloons { width: 108px; left: calc(50% - 286px); top: -2px; }
.d-teddy { width: 112px; left: calc(50% - 490px); top: 88px; }
.d-dino { width: 140px; left: calc(50% + 156px); top: 118px; }
.d-pencil { width: 58px; left: calc(50% + 330px); top: 22px; }
.d-rocket { width: 170px; left: calc(50% + 488px); top: 6px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero { position: relative; height: 552px; overflow: hidden; margin-top: -2px; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .8s; }
.hero-slide.is-active { opacity: 1; }
.hero-photo {
  position: absolute; right: 0; top: 0; width: 70%; height: 100%; aspect-ratio: auto; border-radius: 0; border: 0;
  background: linear-gradient(90deg, #fff 0%, #e8f4f9 22%, #dff0f7 100%); font-size: 16px;
}
.hero-text { position: absolute; left: calc(50% - 398px); top: 158px; width: 360px; z-index: 3; }
.hero-tag { display: inline-block; background: var(--sky); color: #fff; font: 800 13px/1 'Mulish', sans-serif; letter-spacing: .02em; padding: 5px 10px; margin: 0 0 4px; }
.hero h1 { font-size: 39px; line-height: 1.12; letter-spacing: .01em; }
.hero-ref { text-align: right; font-size: 19px; margin: -30px 0 0; }
.hero-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 8px; z-index: 4; }
.hero-dots button { width: 13px; height: 13px; border-radius: 50%; border: 2px solid #fff; background: rgba(255,255,255,.7); padding: 0; cursor: pointer; }
.hero-dots button.is-active { background: #555; }
.hero-decor { position: absolute; left: 0; right: 0; top: 0; height: 552px; z-index: 2; pointer-events: none; overflow: hidden; }
.blob { position: absolute; display: block; }
.blob.blue { width: 190px; height: 90px; left: calc(50% - 640px); top: -12px; background: #a9def4; border-radius: 0 0 60% 55% / 0 0 100% 90%; }
.blob.pink { width: 205px; height: 105px; left: calc(50% - 282px); bottom: -10px; background: #f8bfd0; border-radius: 55% 45% 0 0 / 90% 80% 0 0; }
.d-star1 { width: 36px; left: calc(50% - 200px); top: 60px; }
.d-star2 { width: 30px; left: calc(50% - 268px); top: 100px; }
.d-star3 { width: 26px; left: calc(50% - 192px); top: 162px; }

/* ── Bands (full-width sections) ───────────────────────── */
.band { position: relative; padding: 70px 16px; }
.band > .wrap { max-width: var(--wrap); margin: 0 auto; position: relative; z-index: 1; }
.band > .wrap.wide { max-width: 780px; }
.band.beige { background: var(--beige); }
.band.tight { padding-top: 60px; padding-bottom: 46px; }
.block:first-of-type > .band.plain:first-child, .page-banner + .block > .band:first-child { padding-top: 62px; }
.band.plain:last-child { padding-bottom: 80px; }

.band.wave-beige, .band.wave-yellow, .band.wave-blue { margin: 60px 0; padding: 60px 16px 70px; }
.band.wave-beige { background: var(--beige); }
.band.wave-yellow { background: var(--yellow); }
.band.wave-blue { background: var(--sky); }
.band.wave-beige::before, .band.wave-yellow::before, .band.wave-blue::before,
.band.wave-beige::after, .band.wave-yellow::after, .band.wave-blue::after {
  content: ''; position: absolute; left: 0; right: 0; height: 60px; background-repeat: no-repeat; background-size: 100% 100%;
}
.band.wave-beige::before, .band.wave-yellow::before, .band.wave-blue::before { bottom: calc(100% - 1px); }
.band.wave-beige::after, .band.wave-yellow::after, .band.wave-blue::after { top: calc(100% - 1px); }
.band.wave-beige::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fcf9f4' d='M0 20c160-14 300-12 520 10s480 16 700-8c90-10 160-6 220 8v30H0z'/%3E%3C/svg%3E"); }
.band.wave-beige::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fcf9f4' d='M0 0h1440v26c-200-14-420-18-640 6S220 48 0 26z'/%3E%3C/svg%3E"); }
.band.wave-yellow::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23ffdd98' d='M0 10c220 24 520 22 760 6 240-16 480-10 680 14v30H0z'/%3E%3Cpath fill='%23f9c96c' d='M950 20c150-24 330-24 490 4v30c-160-24-330-24-490-34z'/%3E%3C/svg%3E"); }
.band.wave-yellow::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23ffdd98' d='M0 0h1440v58C1100 30 760 6 380 8 220 10 100 20 0 30z'/%3E%3C/svg%3E"); }
.band.wave-blue::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%2388d4f2' d='M0 6c260 32 520 28 800 10 180-12 380-16 480-16v8c60 6 120 14 160 20v32H0z'/%3E%3Cpath fill='%2345b3df' d='M960 38c110-16 220-18 320-8v16c-100-12-210-10-320-8z'/%3E%3C/svg%3E"); }
.band.wave-blue::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%2345b3df' d='M60 30c160-20 340-20 520 2v10C400 26 240 26 60 30z'/%3E%3Cpath fill='%2388d4f2' d='M0 0h1440v6C1100 30 800 40 500 30 300 24 120 26 0 36z'/%3E%3C/svg%3E"); }

.band.wave-soft { background: linear-gradient(transparent 45%, var(--beige) 45%, var(--beige) 88%, transparent 88%); }
.band.wave-soft::before, .band.wave-soft::after { content: ''; position: absolute; left: 0; right: 0; height: 60px; background-size: 100% 100%; }
.band.wave-soft::before { top: calc(45% - 59px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fcf9f4' d='M0 44c200-30 420-30 700-4 260 24 520 10 740-24v44H0z'/%3E%3C/svg%3E"); }
.band.wave-soft::after { top: calc(88% - 1px); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 60' preserveAspectRatio='none'%3E%3Cpath fill='%23fcf9f4' d='M0 0h1440v36c-240-20-460-24-700-6S200 36 0 16z'/%3E%3C/svg%3E"); }
.teachers-band { padding-bottom: 110px !important; }
.teachers-band::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 130px;
  background: no-repeat bottom / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 130' preserveAspectRatio='none'%3E%3Cpath fill='%23fcf9f4' d='M0 12c200 30 400 40 640 14s500-10 800 30v74H0z'/%3E%3C/svg%3E");
}

/* ── Headings & text ───────────────────────────────────── */
.h-mark { font-size: 34px; line-height: 1.15; text-align: center; margin: 0 0 30px; letter-spacing: .02em; }
.h-mark > span { display: inline; padding: 0 8px; background: linear-gradient(transparent 52%, var(--mint-soft) 52%, var(--mint-soft) 92%, transparent 92%); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h-mark.peach > span, .h-mark > span.peach { background: linear-gradient(transparent 52%, var(--peach) 52%, var(--peach) 92%, transparent 92%); }
.h-mark.stacked > span { display: table; margin: 0 auto 2px; }
.split .h-mark, .principal .h-mark { text-align: left; }
.split .center-heading .h-mark { text-align: center; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; margin: 0 0 70px; }
.split:last-child { margin-bottom: 0; }
.split.reverse .split-media { order: 2; }
.split-text { color: var(--muted); font-size: 15px; line-height: 1.33; }
.split-text p { margin-bottom: 14px; }
.split-media .image-placeholder { border-radius: 0; aspect-ratio: 370 / 246; }
.image-placeholder.framed { aspect-ratio: 380 / 300; border-radius: 0 0 18px 0; overflow: visible; }
.image-placeholder.framed::after { content: ''; position: absolute; left: -22px; top: -22px; width: 100%; height: 100%; border: 2px dashed #f7c3d1; border-radius: 18px 0 0 18px; border-right: 0; border-bottom: 0; pointer-events: none; }
.split.reverse .image-placeholder.framed::after { left: -22px; }
.split.vision { align-items: start; }
.split.vision .split-media { margin-top: 60px; }
.grace-list { display: grid; grid-template-columns: 104px 1fr; gap: 20px 6px; margin: 0; font-size: 14px; }
.grace-list strong { font-weight: 800; color: #666; }
.grace-list span { margin: 0; color: #666; }
.teachers .split-text { color: #777; }
.teachers .image-placeholder { aspect-ratio: 370 / 246; }

.cols-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.curriculum { color: var(--muted); font-size: 15px; line-height: 1.4; padding: 0 12px; }
.curriculum h3 { text-align: center; font-size: 20px; margin-bottom: 10px; }
.curriculum ol { padding-left: 20px; margin: 0; }
.curriculum li { margin-bottom: 8px; }
.curriculum li::marker { color: #222; font-weight: 800; }
.feature-list { margin: 0; padding-left: 20px; color: #111; line-height: 1.45; font-size: 15px; }
.feature-list li { margin-bottom: 7px; }
.system { max-width: 470px; margin: 0 auto; color: #111; font-size: 15px; }
.system > p { margin: 14px 0 12px; }
.dot-list { list-style: none; padding: 0; margin: 0 0 12px; }
.dot-list li { position: relative; padding-left: 18px; margin-bottom: 7px; }
.dot-list li::before { content: ''; position: absolute; left: 2px; top: .6em; width: 5px; height: 5px; border-radius: 50%; background: var(--mint); }
.support { align-items: start; margin-bottom: 36px; }
.support .split-media { margin-top: 56px; }
.support h4 { font-size: 15px; color: #555; text-decoration: underline; margin-bottom: 12px; }
.support .split-text strong { color: #555; }
.facilities { color: var(--muted); gap: 0; }
.facilities .h-mark { margin-bottom: 36px; }
.facilities p { max-width: 224px; margin: 0 auto 12px; }
.methods { margin: 40px 0 44px; padding: 0 16px; font-size: 15px; color: #222; }
.methods h3 { text-align: center; font-size: 20px; margin: 16px 0 8px; }
.method-icon { display: block; width: 44px; height: 44px; margin-left: 12px; }
.method-icon.ball { border-radius: 50%; background: conic-gradient(#f7a8c2 0 90deg, #fbd36b 0 180deg, #7fd0c2 0 270deg, #f7a8c2 0); box-shadow: inset 0 0 0 2px #555; }
.method-icon.rings { background: linear-gradient(#fbb77a 0 0) center 38px / 44px 6px no-repeat, linear-gradient(#7fd0c2 0 0) center 30px / 36px 7px no-repeat, linear-gradient(#f7a8c2 0 0) center 22px / 28px 7px no-repeat, linear-gradient(#fbd36b 0 0) center 14px / 20px 7px no-repeat, linear-gradient(#555 0 0) center 4px / 3px 12px no-repeat; }

/* home extras */
.video-band { padding-top: 10px; }
.video-title { text-align: center; font-size: 32px; margin-bottom: 0; }
.image-placeholder.video { border-radius: 0; aspect-ratio: 16 / 9; background: #253447; border-color: #3b536b; color: #c9d7e2; }
.image-placeholder.video::before { width: 52px; height: 52px; opacity: 1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Ccircle cx='26' cy='26' r='24' fill='none' stroke='%23fff' stroke-width='3'/%3E%3Cpath d='M21 16l14 10-14 10z' fill='%23fff'/%3E%3C/svg%3E"); }
.news-ticker { background: #2b67a4; color: #fff; display: flex; justify-content: center; gap: 12px; padding: 2px 16px; font-size: 20px; line-height: 1.2; overflow: hidden; }
.news-ticker strong { font-weight: 900; }
.news-ticker a { color: #fff; text-decoration: none; font-weight: 700; }

/* ── Buttons ───────────────────────────────────────────── */
.btn-cyan { display: inline-block; background: var(--cyan); color: #fff; font-weight: 800; font-size: 13px; text-decoration: none; padding: 12px 22px; border-radius: 999px; margin-top: 10px; }
.btn-cyan.small { padding: 11px 22px; font-size: 11px; }
.btn-orange, .pill {
  display: inline-block; position: relative; background: var(--orange); color: #fff; font-weight: 900; font-size: 13px; text-decoration: none;
  padding: 9px 24px; border-radius: 999px; box-shadow: inset 0 0 0 3px var(--orange), inset 0 0 0 5px #fff; outline: 0;
}
.btn-orange { border: 2px dashed #fff; box-shadow: 0 0 0 3px var(--orange); margin-top: 12px; }
.pill { border: 2px dashed #fff; box-shadow: 0 0 0 3px var(--orange); }
.btn-orange:hover, .pill:hover { filter: brightness(1.04); }

/* ── Download cards & lists ────────────────────────────── */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 38px 20px; margin: 0 10px; }
.download-card {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 58px; padding: 0 12px 10px;
  border: 1.5px dashed #b6d6cb; border-radius: 22px; text-decoration: none; color: #222; font-weight: 900; font-size: 18px; text-align: center;
}
.download-card .cloud-icon { width: 30px; height: 22px; color: #777; margin-top: -12px; background: #fff; box-sizing: content-box; padding: 0 4px; }
.download-card:hover { border-color: var(--mint); background: #f7fbf9; }
.cloud-icon { width: 20px; height: 16px; flex: none; }
.file-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.file-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #efefef; padding: 10px 10px; font-size: 16px; color: #111; }
.file-list a { display: inline-flex; align-items: center; gap: 4px; color: var(--salmon); text-decoration: none; white-space: nowrap; }
.file-list.boxed { border: 2px dashed var(--mint); border-radius: 6px; gap: 0; padding: 0; }
.file-list.boxed li { background: none; padding: 12px 10px; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 14px; font-size: 15px; }
.pagination a { color: #111; text-decoration: none; }
.pagination .current { display: inline-grid; place-items: center; width: 20px; height: 20px; background: #111; color: #fff; border-radius: 50%; font-size: 13px; }
.pagination .next b { font-size: 20px; line-height: 0; }

/* ── Posts ─────────────────────────────────────────────── */
.post-list { display: grid; gap: 12px; }
.post { display: block; border: 1px solid #e6e6e6; padding: 16px 10px 8px; text-decoration: none; }
.post h3 { font-size: 33px; line-height: 1.25; color: #222; font-weight: 900; }
.post-date { display: flex; align-items: center; gap: 6px; color: #666; font-size: 15px; margin: 6px 0 4px; letter-spacing: .04em; }
.post-date::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #c8c8c8; }
.post-excerpt { font-size: 10px; color: #555; margin: -2px 0 0; }
.post:hover h3 { color: var(--navy); }
.no-posts { color: #555; margin-left: -8px; }

/* ── Album & video cards ───────────────────────────────── */
.album-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0 -2px; align-items: start; }
.album-card { display: block; border: 1px solid #ececec; border-radius: 12px; overflow: hidden; text-decoration: none; background: #fff; }
.album-card .image-placeholder { border-radius: 0; border-width: 0 0 2px; aspect-ratio: 243 / 182; }
.album-card h3 { font-size: 19px; line-height: 1.95; color: #222; text-align: center; padding: 12px 16px 14px; }
.album-card.year h3 { padding: 16px; font-size: 20px; }
.album-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,.08); }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 20px; }
.video-card { text-decoration: none; text-align: center; }
.video-card .image-placeholder { aspect-ratio: 240 / 135; border-radius: 0; background: #fdf1e2; border-color: #f4d4ae; color: #b98a55; }
.video-card .image-placeholder::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 52'%3E%3Ccircle cx='26' cy='26' r='25' fill='none' stroke='%23fbc687' stroke-dasharray='3 3'/%3E%3Ccircle cx='26' cy='26' r='21' fill='%23fbc687'/%3E%3Cpath d='M22 18l11 8-11 8z' fill='%23fff'/%3E%3C/svg%3E"); }
.video-card h3 { font-size: 16px; margin-top: 16px; }

/* ── News cards ────────────────────────────────────────── */
.news-cards { display: flex; justify-content: center; gap: 116px; margin-top: 50px; }
.news-card { width: 276px; height: 222px; border: 1px solid #bbb; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-decoration: none; padding: 24px; }
.news-card .image-placeholder { width: 120px; aspect-ratio: 1; border-radius: 50%; }
.news-card span { font-size: 22px; font-weight: 900; }
.news-card .green { color: #178a3c; }
.news-card .purple { color: #6a1fb8; }

/* ── Admission timeline ────────────────────────────────── */
.timeline { list-style: none; margin: 0 auto; padding: 18px 0 18px; position: relative; max-width: 560px; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 3px; margin-left: -1.5px; background: #aecfc2; }
.timeline::after, .timeline li:first-child::after { content: ''; position: absolute; left: 50%; width: 12px; height: 12px; margin-left: -6px; background: #aecfc2; transform: rotate(45deg); }
.timeline::after { bottom: -6px; }
.timeline li:first-child::after { top: -24px; }
.timeline li { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; height: 140px; }
.timeline li::before { content: ''; position: absolute; left: 50%; top: 50%; width: 16px; height: 16px; margin: -8px 0 0 -8px; border-radius: 50%; background: #fff; border: 2px solid #aecfc2; z-index: 1; }
.tl-text { padding: 0 56px; }
.tl-text strong { display: block; color: var(--salmon); font-size: 20px; line-height: 1; }
.tl-text span { display: block; color: var(--navy); font-weight: 900; font-size: 15px; line-height: 1.1; }
.timeline li.left .tl-text { text-align: right; }
.timeline li.right .tl-text { order: 2; }
.timeline li.right .tl-icon { order: 1; justify-self: end; }
.tl-icon { width: 98px; aspect-ratio: 1; border-radius: 50%; border: 2px dotted #a9ccc0; background: #fff; margin-left: 38px; font-size: 10px; padding: 14px; }
.timeline li.right .tl-icon { margin: 0 38px 0 0; }
.timeline li.salmon-ring .tl-icon { border-color: #f2a18b; }
.timeline li .tl-icon::after { content: ''; position: absolute; top: 50%; width: 38px; height: 2px; background: #aecfc2; }
.timeline li.left .tl-icon::after { right: 100%; }
.timeline li.right .tl-icon::after { left: 100%; }
.timeline .tl-icon { overflow: visible; }

/* ── NCS check list, fee table, press table ────────────── */
.check-list { list-style: none; padding: 0; margin: 60px 0 0; }
.check-list li { position: relative; padding-left: 32px; margin-bottom: 14px; color: var(--navy); font-weight: 900; font-size: 16px; line-height: 1.65; }
.check-list li::before { content: '✓'; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #f0907a; color: #fff; font-size: 12px; display: grid; place-items: center; }
.check-list a { color: var(--salmon); text-decoration: none; }
.fee-sheet { font-family: 'Noto Serif TC', 'Times New Roman', serif; color: #111; max-width: 426px; margin: 30px auto 0; }
.fee-sheet h2 { font-family: inherit; font-weight: 400; color: #111; text-align: center; font-size: 22px; line-height: 1.35; letter-spacing: .12em; margin-bottom: 22px; }
.fee-sheet table { width: 100%; border-collapse: collapse; font-size: 14px; }
.fee-sheet th, .fee-sheet td { border: 1px solid #333; text-align: center; height: 44px; padding: 4px 6px; letter-spacing: .08em; }
.fee-sheet th { font-weight: 700; }
.press-table { width: 100%; max-width: 498px; margin: 0 auto; border-collapse: separate; border-spacing: 2px; font-family: 'Times New Roman', 'Noto Serif TC', serif; font-size: 15px; }
.press-table th { background: #4a4893; color: #fff; font: 700 11px/1 var(--zh); height: 36px; }
.press-table th:first-child { width: 104px; }
.press-table td { text-align: center; height: 42px; border: 1px solid #eee; }
.press-table tbody tr:nth-child(even) td { background: #f2f2f2; }
.press-table a { color: #d24a43; text-decoration: none; }

/* ── Admission information ─────────────────────────────── */
.admission-intro { text-align: center; color: var(--muted); font-weight: 800; line-height: 1.5; margin: 0 0 30px; }
.info-card { max-width: 620px; margin: 0 auto; padding: 28px 24px; text-align: center; background: #fff; border: 2px dashed var(--mint); border-radius: 22px; }
.info-card > p { color: var(--text); }
.info-label { display: block; color: var(--muted); font-size: 14px; font-weight: 800; letter-spacing: .06em; margin-bottom: 6px; }
.info-period { color: var(--navy); font-size: 24px; font-weight: 900; line-height: 1.35; margin-bottom: 14px; }
.info-facts { list-style: none; display: grid; gap: 10px; max-width: 440px; margin: 0 auto 18px; padding: 0; text-align: left; }
.info-facts li { display: grid; grid-template-columns: max-content 1fr; gap: 12px; }
.info-facts strong { color: var(--navy); }
.btn-apply { display: inline-block; background: var(--navy); color: #fff; font-size: 16px; font-weight: 900; text-decoration: none; padding: 13px 30px; border-radius: 999px; border: 2px dashed #fff; box-shadow: 0 0 0 3px var(--navy); margin: 10px 0 12px; }
.btn-apply:hover { filter: brightness(1.15); }
.info-link { color: var(--muted); font-size: 13px; overflow-wrap: anywhere; margin: 0; }
.procedure-list { list-style: none; counter-reset: step; max-width: 680px; margin: 0 auto; padding: 0; }
.procedure-list > li { counter-increment: step; position: relative; padding: 0 0 22px 52px; margin-bottom: 22px; border-bottom: 1px dashed #ddd; }
.procedure-list > li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.procedure-list > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--salmon); color: #fff; font-weight: 900; display: grid; place-items: center; }
.procedure-list h3 { font-size: 19px; line-height: 1.3; margin: 6px 0 10px; }
.procedure-list a { color: var(--salmon); overflow-wrap: anywhere; }

/* ── Org chart ─────────────────────────────────────────── */
.org-chart { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 30px 0 60px; }
.org-box { width: 200px; height: 58px; display: grid; place-items: center; font-size: 20px; letter-spacing: .3em; color: #222; border: 2px dashed rgba(0,0,0,.18); border-radius: 4px; position: relative; box-shadow: 3px 3px 0 rgba(0,0,0,.08); }
.org-box span { text-align: center; line-height: 1.1; }
body.en .org-box { letter-spacing: 0; font-size: 15px; }
.org-box::before { content: ''; position: absolute; top: -9px; left: 50%; margin-left: -12px; width: 24px; height: 14px; background: #c79a5b; border-radius: 2px; transform: rotate(-4deg); }
.org-box.pink { background: #fbd7f6; }
.org-box.green { background: #dcecd3; }
.org-box.purple { background: #c9c7f7; }
.org-branch { display: flex; gap: 42px; padding-top: 44px; position: relative; }
.org-branch::before { content: ''; position: absolute; top: -14px; left: 60px; right: 60px; height: 42px; border: 2px solid #1d6fae; border-bottom: 0; }
.org-branch::after { content: ''; position: absolute; top: -14px; left: 50%; width: 2px; height: 42px; background: #1d6fae; }
.org-branch .org-box { width: 120px; }

/* ── Staff ─────────────────────────────────────────────── */
.principal { display: grid; grid-template-columns: 284px 1fr; gap: 50px; align-items: start; margin: 36px 0 20px -10px; }
.principal .portrait { aspect-ratio: 284 / 355; border-radius: 0; margin-top: 36px; }
.principal .h-mark { font-size: 32px; margin-bottom: 22px; }
.principal .h-mark.stacked > span { margin: 0 0 2px; }
.profile { display: grid; grid-template-columns: 112px 1fr; gap: 4px 0; color: #777; margin: 0; font-size: 15px; }
.profile strong { font-weight: 400; }
.profile span { margin: 0 0 6px; line-height: 1.9; }
.profile strong { line-height: 1.9; }
.image-placeholder.chart { aspect-ratio: 640 / 360; max-width: 640px; margin: 0 auto 64px; border-radius: 0; background: #fff2cd; border-color: #f0d893; color: #a88b3a; }
.staff-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 20px; }
.staff-grid figure { margin: 0; text-align: center; }
.staff-grid .image-placeholder { aspect-ratio: 1; border-radius: 18px; }
.staff-grid figcaption strong { display: block; color: var(--navy); font-size: 17px; font-weight: 900; margin-top: 30px; }
.staff-grid figcaption span { display: block; color: var(--salmon); font-size: 11px; font-weight: 800; }

/* ── Church ────────────────────────────────────────────── */
.church .wrap { font-size: 15px; color: #111; }
.church .h-mark { margin: 46px 0 28px; }
.church .h-mark:first-child { margin-top: 0; }
.meetings { margin: 30px 0; gap: 20px; }
.meetings .h-mark { font-size: 32px; margin: 0 0 22px; }
.meetings p { margin-bottom: 14px; white-space: nowrap; }
.meetings .indent { padding-left: 24px; }

/* ── PTA voices ────────────────────────────────────────── */
.pta-logo { width: 190px; aspect-ratio: 1; border-radius: 50%; margin: 14px auto 50px; }
.voices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 60px 16px; margin-top: 60px; align-items: start; }
.voice { margin: 0; }
.voice .quote { position: relative; margin: 0; background: var(--mint); border-radius: 24px; padding: 26px 26px 20px; font-size: 14px; line-height: 1.72; color: #111; }
.voice .quote::before { content: '\201C'; position: absolute; left: 20px; top: 8px; font: 900 64px/1 Georgia, serif; color: rgba(255,255,255,.35); }
.voice .quote::after { content: ''; position: absolute; left: 26px; bottom: -24px; border: 12px solid transparent; border-top: 16px solid var(--mint); border-left-width: 8px; }
.voice figcaption { display: flex; align-items: center; gap: 14px; margin: 24px 0 0 30px; }
.voice .avatar { width: 100px; flex: none; aspect-ratio: 1; border-radius: 50%; padding: 4px; font-size: 10px; }
.voice figcaption span { font-size: 11px; color: #222; }
.voice figcaption strong { display: block; color: var(--navy); font-size: 13px; font-weight: 900; line-height: 1.2; }

/* ── Letters from students ─────────────────────────────── */
.letter-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.letter-list li { display: flex; align-items: center; gap: 4px; background: #f5f5f5; padding: 18px 10px; }
.letter-list li > span { flex: 1; color: var(--navy); font-size: 16px; }
.letter-list .pill { padding: 10px 22px; font-size: 12px; display: inline-flex; align-items: center; gap: 6px; }
.letter-list .kids { width: 58px; height: 22px; background: radial-gradient(circle at 12px 12px, #f6d3b8 8px, transparent 9px), radial-gradient(circle at 36px 12px, #f6d3b8 8px, transparent 9px), radial-gradient(circle at 12px 8px, #9b5a33 10px, transparent 10px), radial-gradient(circle at 36px 8px, #9b5a33 10px, transparent 10px); }

/* ── Contact & links ───────────────────────────────────── */
.contact-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin: 12px 0 72px; }
.contact-card { border: 2px dashed; border-radius: 18px; text-align: center; padding: 22px 12px; color: #777; font-size: 13px; }
.contact-card.blue { border-color: #6ec3e8; }
.contact-card.pink { border-color: #f5a9c0; }
.contact-card.yellow { border-color: #fbd07a; }
.contact-card h3 { font-size: 15px; margin: 8px 0 6px; }
.contact-card a { text-decoration: none; }
.contact-card .icon { margin: 0 auto; }
.image-placeholder.map { aspect-ratio: 760 / 333; border-radius: 0; background: #e5f0e4; border-color: #b9d4b6; color: #6f9469; }
.link-pills { list-style: none; margin: 0; padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.link-pills .pill { padding: 8px 22px; font-size: 12px; }

/* ── Icons ─────────────────────────────────────────────── */
.icon { display: block; width: 40px; height: 34px; background: no-repeat center / contain; }
.icon.pin { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 34'%3E%3Cellipse cx='20' cy='29' rx='13' ry='4' fill='%23aee3ea' stroke='%23222' stroke-width='1.5'/%3E%3Cpath d='M20 30s-10-10-10-17a10 10 0 0 1 20 0c0 7-10 17-10 17z' fill='%23f47d8c' stroke='%23222' stroke-width='1.5'/%3E%3Ccircle cx='20' cy='13' r='4' fill='%23fff' stroke='%23222' stroke-width='1.5'/%3E%3C/svg%3E"); }
.icon.phone { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 34'%3E%3Cpath d='M6 14c0-8 30-8 30 0l-3 5-6-2v-3c-4-1-8-1-12 0v3l-6 2z' fill='%23f47d8c' stroke='%23222' stroke-width='1.5'/%3E%3Crect x='8' y='16' width='26' height='15' rx='4' fill='%23f47d8c' stroke='%23222' stroke-width='1.5'/%3E%3Ccircle cx='21' cy='23' r='5' fill='%23ffd76a' stroke='%23222' stroke-width='1.5'/%3E%3Cpath d='M37 8c3 2 4 5 3 8M39 5c4 3 5 8 3 12' fill='none' stroke='%23222' stroke-width='1.3'/%3E%3C/svg%3E"); }
.icon.mail { width: 52px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 52 34'%3E%3Crect x='2' y='6' width='34' height='24' rx='3' fill='%23aee3ea' stroke='%23222' stroke-width='1.5'/%3E%3Cpath d='M2 8l17 12 17-12M2 28l12-9M36 28l-12-9' fill='none' stroke='%23222' stroke-width='1.5'/%3E%3Cpath d='M40 10h10M42 18h8M40 26h10' stroke='%23ffd23a' stroke-width='3' stroke-linecap='round'/%3E%3C/svg%3E"); }

/* ── Calendar ──────────────────────────────────────────── */
.calendar-title { font-size: 36px; margin-bottom: 4px; }
.calendar { display: grid; grid-template-columns: 373px 1fr; gap: 54px; border: 1px solid #eee; border-bottom: 0; padding: 26px 26px 26px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.cal-head h3 { font-size: 16px; color: #333; font-weight: 800; }
.cal-head button { border: 1px solid #eee; background: #fff; color: #999; font-size: 9px; padding: 4px 8px; border-radius: 3px; cursor: pointer; }
.cal-month table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cal-month th { background: #f5f5f5; font-size: 11px; color: #555; font-weight: 700; height: 54px; border: 1px solid #eee; }
.cal-month td { border: 1px solid #eee; height: 54px; padding: 0; text-align: center; }
.cal-month td button { width: 100%; height: 100%; border: 0; background: none; font: 700 11px/1 var(--zh); color: #333; cursor: pointer; position: relative; }
.cal-month td.other button { color: #333; }
.cal-month td.today button { background: #3fd6ef; color: #fff; }
.cal-month td.selected:not(.today) button { outline: 2px solid #3fd6ef; outline-offset: -2px; }
.cal-month .dot.red { background: #e5483f; }
.cal-month .dot { position: absolute; left: 50%; bottom: 10px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: #3fd6ef; }
.cal-events-head { text-align: center; font-size: 8px; letter-spacing: .22em; color: #666; margin: 4px 0 8px; }
.cal-chip { margin: 0 auto 12px; width: 31px; border: 1px solid #3fd6ef; color: #3fd6ef; font-size: 8px; text-align: center; padding: 9px 0; }
.cal-events { border-top: 0; }
.cal-event { border-top: 1px solid #eee; margin-top: 16px; padding-top: 16px; }
.cal-event small { display: block; color: #3fd6ef; font-size: 8px; }
.cal-event strong { display: block; font-size: 17px; margin: 10px 0 0 20px; color: #222; }
.cal-none { font-size: 13px; color: #888; border-top: 1px solid #eee; padding-top: 16px; }
.cal-loading { min-height: 440px; }
.cal-foot { height: 40px; background: #fafafa; border: 1px solid #eee; border-top: 0; }

/* ── Page builder (pages teachers create) ─────────────── */
.builder .wrap { font-size: 15px; color: #333; line-height: 1.6; }
.builder-section { display: grid; gap: 28px; margin-bottom: 48px; align-items: start; }
.builder-section:last-child { margin-bottom: 0; }
.builder-section.image-left { grid-template-columns: var(--img, 38%) 1fr; }
.builder-section.image-right { grid-template-columns: 1fr var(--img, 38%); }
.builder-section.image-right .builder-image { order: 2; }
.builder-section.size-medium { --img: 50%; }
.builder-section.size-large { --img: 62%; }
.builder-section.image-top .builder-image, .builder-section.image-bottom .builder-image { max-width: 60%; margin: 0 auto; }
.builder-section.size-medium.image-top .builder-image, .builder-section.size-medium.image-bottom .builder-image { max-width: 80%; }
.builder-section.size-large.image-top .builder-image, .builder-section.size-large.image-bottom .builder-image { max-width: 100%; }
.builder-section.image-bottom .builder-image { order: 2; }
.builder-image { margin: 0; }
.builder-image img { width: 100%; height: auto; border-radius: 0 0 18px 0; }
.builder-text h2 { font-size: 28px; margin: 0 0 16px; }
.builder-text h3 { font-size: 20px; margin: 18px 0 8px; }
.builder-text a { color: var(--salmon); }
.builder-text ul, .builder-text ol { padding-left: 22px; }
.builder-text:empty::before { content: attr(data-placeholder); color: #aaa; }
.builder-section > * { grid-column: 1 / -1; }
.builder-section.image-left > *, .builder-section.image-right > * { grid-column: auto; }
.builder-section.image-left > .photo-gallery, .builder-section.image-left > .builder-events, .builder-section.image-left > .builder-file,
.builder-section.image-right > .photo-gallery, .builder-section.image-right > .builder-events, .builder-section.image-right > .builder-file { grid-column: 1 / -1; }
.builder-file .download-card { flex-direction: row; gap: 10px; padding: 14px 20px; max-width: 460px; }
.builder-file .download-card .cloud-icon { margin: 0; }
.builder-file .download-card small { color: var(--salmon); font-size: 13px; margin-left: auto; }
.builder-pdf { width: 100%; height: 640px; border: 1px solid #eee; margin-top: 16px; }
.photo-gallery {
  list-style: none; margin: 0; padding: 0; display: grid; align-items: start; gap: 10px;
  grid-template-columns: repeat(auto-fill, minmax(max(150px, calc((100% - 30px) / 4)), 1fr));
}
.photo-gallery > li { min-width: 0; }
.lightbox-trigger { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 10px; overflow: hidden; }
.lightbox-trigger img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.cms-album .photo-gallery .lightbox-trigger img { object-fit: contain !important; }
@media (max-width: 599px) {
  .photo-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Event gallery */
.event-filters { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.event-years { display: flex; flex-wrap: wrap; gap: 6px; }
.event-years button { border: 1.5px dashed var(--mint); background: #fff; color: var(--navy); font: 800 13px/1 var(--zh); padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.event-years button[aria-pressed="true"] { background: var(--orange); border-color: #fff; color: #fff; box-shadow: 0 0 0 2px var(--orange); }
.event-search { border: 1.5px solid #ddd; border-radius: 999px; padding: 8px 16px; font: 14px var(--zh); min-width: 200px; }
.event-cards { list-style: none; padding: 0; }
button.album-card { width: 100%; padding: 0; cursor: pointer; font: inherit; text-align: center; }
.album-card .image-placeholder.has-photo { display: block; aspect-ratio: 243 / 182; border-radius: 0; }
.album-card .event-meta { display: block; margin: -8px 0 14px; }
.event-meta { font-size: 12px; color: #888; }
.event-album .h-mark { margin: 24px 0 6px; }
.event-album .photo-gallery { margin-top: 20px; }

/* Photo viewer */
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(12, 30, 46, .92); display: flex; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; text-align: center; }
.lightbox img { max-width: min(90vw, 1100px); max-height: 82vh; border-radius: 8px; }
.lightbox img.lb-small { width: min(78vw, 480px); height: auto; }
/* Phones: the photo takes the width and the arrows sit in a row below it, inside the screen. */
@media (max-width: 600px) {
  .lightbox { padding: 64px 12px calc(96px + env(safe-area-inset-bottom)); }
  .lightbox img { max-width: 94vw; max-height: 68vh; }
  .lightbox img.lb-small { width: 88vw; }
  .lightbox .lb-prev, .lightbox .lb-next { position: absolute; bottom: calc(28px + env(safe-area-inset-bottom)); }
  .lightbox .lb-prev { left: calc(50% - 66px); }
  .lightbox .lb-next { right: calc(50% - 66px); }
}
.lightbox figcaption { color: #cfe0ee; font-size: 13px; margin-top: 8px; }
.lightbox button { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 44px; height: 44px; border-radius: 50%; font-size: 26px; cursor: pointer; flex: none; }
.lightbox .lb-close { position: absolute; right: 16px; top: 16px; }
.lightbox button:hover { background: rgba(255,255,255,.28); }

/* ── Footer ────────────────────────────────────────────── */
.site-footer { position: relative; background: var(--footer); color: #fff; margin-top: 80px; padding-top: 40px; }
.site-footer::before {
  content: ''; position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: 34px;
  background: no-repeat bottom / 100% 100% url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 34' preserveAspectRatio='none'%3E%3Cpath fill='%23b5bec8' d='M0 10c200 12 380 16 600 6s460-14 640-2c80 4 150 0 200-6v26H0z'/%3E%3Cpath fill='%235f7a93' d='M0 20c240-4 480 6 720 4 240-2 480-12 720-6v16H0z'/%3E%3Cpath fill='%2311324d' d='M0 26c260 4 520-4 760-2s460 6 680-4v14H0z'/%3E%3C/svg%3E");
}
.footer-cols { display: grid; grid-template-columns: 250px 314px 356px 350px; gap: 0 22px; justify-content: center; padding: 50px 24px 36px; }
.footer-cols h2 { color: #fff; font-size: 19px; margin-bottom: 18px; }
.footer-about { text-align: left; padding-top: 18px; }
.footer-about .crest { width: 96px; height: 70px; aspect-ratio: auto; margin: 0 auto 14px; border-radius: 50%; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #cfe0ee; font-size: 11px; }
.footer-about p { font-size: 15px; line-height: 1.35; }
.footer-contact p { font-size: 12px; font-weight: 600; margin: 0 0 22px; }
.footer-contact .icon { margin-bottom: 8px; }
.footer-contact a { text-decoration: none; }
.photo-grid { display: grid; grid-template-columns: repeat(3, 100px); gap: 7px 20px; padding-left: 7px; }
.photo-grid .image-placeholder { aspect-ratio: 4 / 3; border-radius: 10px; background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.3); color: #cfe0ee; font-size: 9px; }
.photo-grid .image-placeholder::before { width: 22px; height: 18px; filter: brightness(2); }
.photo-grid .image-placeholder.has-photo { background: none; }
.photo-grid .lightbox-trigger { position: absolute; inset: 0; border-radius: inherit; }
.photo-grid .lightbox-trigger:focus-visible { outline: 3px solid #fbbd3e; outline-offset: 2px; }
.hours { background: #45b3e3; border-radius: 22px; margin: 0; padding: 14px 20px; }
.hours div { display: flex; align-items: baseline; gap: 8px; margin: 3px 0; }
.hours dt { font-weight: 900; font-size: 15px; white-space: nowrap; }
.hours div::after { content: none; }
.hours dd { margin: 0; font-size: 12px; order: 3; white-space: nowrap; }
.hours div > dt::after { content: none; }
.hours div { position: relative; }
.hours div dt + dd { margin-left: auto; }
.hours div::before { content: ''; order: 2; flex: 1; border-bottom: 1px dotted rgba(255,255,255,.8); transform: translateY(-4px); }
.hours dt { order: 1; }
.copyright { margin: 0; text-align: center; color: #b8c2cc; font-size: 15px; padding: 32px 16px 26px; border-top: 16px solid #173b5a; background: linear-gradient(#153756, var(--footer)); }
.copyright a { color: #2a64b5; text-decoration: none; }
.page-body.home + .site-footer { margin-top: 36px; }
.back-to-top { position: fixed; right: 12px; bottom: 12px; width: 46px; height: 46px; border-radius: 50%; background: #fbbd3e; color: #fff; display: grid; place-items: center; text-decoration: none; font-weight: 900; box-shadow: 0 0 0 4px var(--footer), 0 0 0 5px #fbbd3e; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 40; outline: 1px dashed #fbbd3e; outline-offset: 6px; }
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top span { transform: translateY(3px); font-size: 18px; }

/* ── English tweaks ────────────────────────────────────── */
body.en .h-mark { letter-spacing: 0; }
body.en .post h3 { font-size: 28px; }
body.en .meetings p { white-space: normal; }

/* ── Responsive ────────────────────────────────────────── */
@media (max-width: 1320px) {
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 36px 40px; max-width: 760px; margin: 0 auto; }
  body.en .nav-links { gap: 4px 10px; }
  body.en .nav-links > li > a, body.en .nav-links > li > .sub-toggle { font-size: 14px; }
}

@media (max-width: 1100px) {
  .site-header { padding-bottom: 12px; }
  .lang-switch { top: auto; bottom: 16px; }
  .main-nav { margin-top: 8px; min-height: 36px; }
  .menu-toggle { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 44px; height: 36px; border: 2px solid #fff; border-radius: 8px; background: none; cursor: pointer; padding: 0 10px; }
  .menu-toggle span { display: block; height: 3px; background: #fff; border-radius: 2px; }
  .nav-links { display: none; position: absolute; left: -16px; right: -16px; top: calc(100% + 16px); flex-direction: column; gap: 0; background: #fff; text-align: left; padding: 6px 0 12px; box-shadow: 0 14px 24px rgba(17,50,77,.2); z-index: 40; }
  .main-nav.open .nav-links { display: flex; }
  .nav-links > li > a, .nav-links > li > .sub-toggle { color: var(--navy); width: 100%; padding: 10px 20px; font-size: 16px; border-radius: 0; justify-content: space-between; }
  body.en .nav-links > li > a, body.en .nav-links > li > .sub-toggle { font-size: 16px; }
  .nav-links > li.active > a, .nav-links > li.active > .sub-toggle { background: #fff3e6; }
  .nav-links .submenu, .submenu .submenu { position: static; transform: none; box-shadow: none; border-radius: 0; background: #f8fbfd; padding: 0 0 6px 14px; min-width: 0; }
  .nav-links .has-sub.top:hover > .submenu { display: none; }
  /* A tap also counts as hover on phones, so an opened dropdown must outrank the hover rule above. */
  .nav-links .has-sub.open > .submenu, .submenu .has-sub.open > .submenu, .nav-links .has-sub.top.open:hover > .submenu { display: block; }
  .submenu .has-sub:hover > .submenu { display: none; }
  .submenu .has-sub.open:hover > .submenu { display: block; }
  .submenu a, .submenu .sub-toggle { white-space: normal; }
  .d-blocks { left: 8px; } .d-rocket { left: auto; right: 0; } .d-teddy { left: 4%; }
  .hero-text { left: 40px; }
}

@media (max-width: 900px) {
  .d-balloons, .d-pencil, .d-dino { display: none; }
  .hero { height: auto; }
  .hero-slides { position: relative; }
  .hero-slide { position: relative; display: none; }
  .hero-slide.is-active { display: block; }
  .hero-photo { position: relative; width: 100%; height: auto; aspect-ratio: 16 / 10; background: #e3f2f8; }
  .hero-text { position: relative; left: auto; top: auto; width: auto; padding: 26px 20px 50px; }
  .hero h1 { font-size: 30px; }
  .hero-ref { margin-top: 6px; font-size: 16px; }
  .hero-dots { bottom: 16px; }
  .hero-dots button { border-color: #aaa; }
  .hero-decor { display: none; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: 28px; margin: 0 0 56px; }
  .split.reverse .split-media { order: 0; }
  .split .h-mark, .principal .h-mark { text-align: center; }
  .split.vision .split-media, .support .split-media { margin-top: 0; }
  .image-placeholder.framed { width: calc(100% - 22px); margin-left: 22px; }
  .cols-3, .cols-2, .facilities { grid-template-columns: 1fr; gap: 30px; }
  .principal { grid-template-columns: 1fr; gap: 16px; margin-left: 0; }
  .principal .portrait { max-width: 284px; margin: 0 auto; }
  .principal .h-mark.stacked > span { margin: 0 auto 2px; }
  .staff-grid { grid-template-columns: repeat(3, 1fr); }
  .voices { grid-template-columns: 1fr 1fr; }
  .album-grid, .video-grid { grid-template-columns: 1fr 1fr; }
  .builder-section.image-left, .builder-section.image-right { grid-template-columns: 1fr; }
  .builder-section.image-right .builder-image { order: 0; }
  .builder-section.image-top .builder-image, .builder-section.image-bottom .builder-image { max-width: 100%; }
  .calendar { grid-template-columns: 1fr; gap: 20px; padding: 16px; }
  .news-cards { gap: 24px; flex-wrap: wrap; }
  .meetings p { white-space: normal; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .brand { flex-direction: column; gap: 4px; }
  .brand-names { align-items: center; }
  .brand-zh { font-size: 19px; letter-spacing: .12em; margin-right: -.12em; }
  .brand-en { font-size: 12px; }
  .brand .crest { width: 58px; height: 44px; }
  .lang-switch { right: 12px; bottom: 16px; }
  .main-nav { text-align: left; }
  .page-banner { height: 170px; }
  .page-banner h1 { font-size: 27px; }
  .d-teddy { width: 70px; top: 96px; } .d-blocks { width: 80px; } .d-rocket { width: 100px; top: 16px; }
  .band { padding: 48px 16px; }
  .h-mark { font-size: 27px; margin-bottom: 22px; }
  .download-grid { grid-template-columns: 1fr; margin: 0; gap: 30px; }
  .download-card { font-size: 16px; }
  .post h3 { font-size: 22px; } body.en .post h3 { font-size: 20px; }
  .album-grid, .video-grid, .staff-grid, .voices, .contact-cards { grid-template-columns: 1fr; }
  .staff-grid { grid-template-columns: 1fr 1fr; gap: 24px 14px; }
  .staff-grid figcaption strong { margin-top: 12px; }
  .contact-cards { margin-bottom: 40px; }
  .timeline li { grid-template-columns: 1fr; height: auto; padding: 10px 0; }
  .timeline::before, .timeline::after, .timeline li:first-child::after, .timeline li::before { left: 20px; }
  .timeline li .tl-text, .timeline li.left .tl-text, .timeline li.right .tl-text { order: 2; text-align: left; padding: 6px 0 12px 52px; }
  .timeline li .tl-icon, .timeline li.right .tl-icon { order: 1; justify-self: start; margin: 0 0 0 52px; width: 76px; }
  .timeline li .tl-icon::after { display: none; }
  .timeline li::before { top: 48px; }
  .grace-list { grid-template-columns: 1fr; gap: 2px; }
  .grace-list span { margin-bottom: 14px; }
  .file-list li { font-size: 15px; }
  .letter-list li { flex-wrap: wrap; }
  .letter-list li > span { flex-basis: 100%; margin-bottom: 8px; }
  .info-card { padding: 22px 16px; }
  .info-period { font-size: 20px; }
  .info-facts li { grid-template-columns: 1fr; gap: 0; }
  .procedure-list > li { padding-left: 46px; }
  .fee-sheet { overflow-x: auto; }
  .fee-sheet th, .fee-sheet td { letter-spacing: 0; font-size: 13px; }
  .press-table { font-size: 13px; }
  .press-table th:first-child { width: 86px; }
  .footer-cols { grid-template-columns: 1fr; padding: 40px 20px 30px; }
  .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0; }
  .news-ticker { font-size: 16px; flex-wrap: wrap; }
  .org-branch { gap: 10px; }
  .org-branch .org-box { width: 96px; font-size: 16px; letter-spacing: .1em; }
  .org-branch::before { left: 48px; right: 48px; }
  .calendar-title { font-size: 28px; }
  .cal-month th, .cal-month td { height: 42px; }
  .video-title { font-size: 24px; }
}

/* New CMS modules inherit MOS's palette and content width. Existing section modules
   keep their original band/wave classes and receive no layout changes. */
.cms-m { color: var(--text); background: var(--beige); }
.cms-m-inner { max-width: calc(var(--wrap) + 32px); }
.cms-m h2 { color: var(--navy); }
.cms-m-caption { color: var(--muted); }
.cms-m-dropdown { border-color: var(--mint); }
.cms-m-dropdown > summary { color: var(--navy); background: var(--mint-soft); border-radius: 12px; padding: 12px 16px; }
.cms-m-dropdown-body { padding: 16px; }
.cms-m .file-slot.has-file { color: var(--navy); }

/* Editable hero frames share one stable grid instead of changing coordinate systems
   when the CMS starts dragging. Text retains the original MOS overlap and colours. */
.hero-slides { position: relative; height: 100%; }
.hero-slide { display: grid; grid-template-columns: 30% minmax(0, 70%); grid-template-rows: minmax(0, 1fr); pointer-events: none; }
.hero-slide.is-active { pointer-events: auto; }
.hero-photo, body.cms-live-on #main .hero-photo.cms-drag-frame {
  position: relative; inset: auto; grid-column: 2; grid-row: 1;
  width: 100%; height: 100%; min-width: 0; min-height: 0;
}
.hero-text {
  position: relative; inset: auto; grid-column: 1 / -1; grid-row: 1; align-self: center;
  margin-left: max(24px, calc(50% - 398px)); width: min(360px, calc(100% - 48px));
}
.hero-photo.cms-align-left { justify-self: start; }
.hero-photo.cms-align-center { justify-self: center; }
.hero-photo.cms-align-right { justify-self: end; }
@media (max-width: 760px) {
  .hero-slides { height: auto; }
  .hero-slide { display: none; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; }
  .hero-slide.is-active { display: grid; }
  .hero-photo, body.cms-live-on #main .hero-photo.cms-drag-frame {
    grid-column: 1; grid-row: 1; height: auto; aspect-ratio: 16 / 10;
  }
  .hero-text { grid-column: 1; grid-row: 2; margin-left: 0; width: auto; }
  /* Desktop element sizing must not make narrow phone text/photo columns unusable. */
  #main .cms-m-split > [class*="cms-w-"] { width: 100% !important; }
  body.cms-live-on .cms-live-panel { max-height: min(60dvh, 520px); overflow-y: auto; overscroll-behavior: contain; }
  body.cms-live-on .cms-live-panel button, body.cms-live-on .cms-live-positions button { min-height: 44px; }
  /* Phone toolbars stack at the bottom: the text toolbar is one scrolling row, and the
     element toolbar spans the width above it (CMS 0.1.20+ centres it with a transform). */
  body.cms-live-on .cms-live-format { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; bottom: max(12px, env(safe-area-inset-bottom)); }
  body.cms-live-on .cms-element-bar { position: fixed; top: auto !important; bottom: max(12px, env(safe-area-inset-bottom)); left: 8px !important; right: 8px; transform: none; max-width: none; justify-content: center; }
  body.cms-live-on:has(.cms-live-format) .cms-element-bar { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 64px); }
  body.cms-live-on .cms-element-bar button { min-width: 44px; min-height: 44px; }
  body.cms-live-on .cms-resize-handle { width: 28px; height: 28px; touch-action: none; }
}
.has-photo img.cms-ox-0 { --cms-ox: 0%; }
.has-photo img.cms-ox-10 { --cms-ox: 10%; }
.has-photo img.cms-ox-20 { --cms-ox: 20%; }
.has-photo img.cms-ox-30 { --cms-ox: 30%; }
.has-photo img.cms-ox-40 { --cms-ox: 40%; }
.has-photo img.cms-ox-50 { --cms-ox: 50%; }
.has-photo img.cms-ox-60 { --cms-ox: 60%; }
.has-photo img.cms-ox-70 { --cms-ox: 70%; }
.has-photo img.cms-ox-80 { --cms-ox: 80%; }
.has-photo img.cms-ox-90 { --cms-ox: 90%; }
.has-photo img.cms-ox-100 { --cms-ox: 100%; }
.has-photo img.cms-oy-0 { --cms-oy: 0%; }
.has-photo img.cms-oy-10 { --cms-oy: 10%; }
.has-photo img.cms-oy-20 { --cms-oy: 20%; }
.has-photo img.cms-oy-30 { --cms-oy: 30%; }
.has-photo img.cms-oy-40 { --cms-oy: 40%; }
.has-photo img.cms-oy-50 { --cms-oy: 50%; }
.has-photo img.cms-oy-60 { --cms-oy: 60%; }
.has-photo img.cms-oy-70 { --cms-oy: 70%; }
.has-photo img.cms-oy-80 { --cms-oy: 80%; }
.has-photo img.cms-oy-90 { --cms-oy: 90%; }
.has-photo img.cms-oy-100 { --cms-oy: 100%; }
/* Keep image options reachable on narrow screens and in either orientation. */
body.cms-live-on .cms-resize-handle { transform: translate(-100%, -100%); }
@media (max-width: 760px) {
  body.cms-live-on .cms-live-panel {
    position: fixed; top: auto !important; left: 8px !important;
    bottom: calc(120px + env(safe-area-inset-bottom));
    width: calc(100vw - 16px); max-height: 45dvh;
  }
}
/* Site settings and public content completeness. */
.school-logo { object-fit: contain; background: transparent; border: 0; border-radius: 0; flex-shrink: 0; }
.brand .school-logo, .footer-about .school-logo { background: transparent; border: 0; border-radius: 0; }
.school-wordmark { display: inline-flex; align-items: center; justify-content: center; background: #fff; color: var(--navy); font-weight: 900; border-radius: 50%; }
.school-map { width: 100%; height: clamp(280px, 45vw, 450px); border: 0; border-radius: 12px; margin: 24px 0 12px; }
.content-unavailable { cursor: default !important; opacity: .65; text-decoration: none; }
.content-unavailable::after { content: ' — 暫未提供'; font-size: .8em; font-weight: 400; }
body.en .content-unavailable::after { content: ' — Not yet available'; }
.table-scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.school-edit-settings { position: fixed; bottom: 12px; right: 12px; z-index: 990; padding: 10px 14px; color: #1e3262; background: #ffdd98; border-radius: 8px; font: 14px system-ui; }
.footer-cols { grid-template-columns: repeat(auto-fit,minmax(min(180px,100%),1fr)); }
@media (max-width: 760px) {
 .school-edit-settings { bottom: auto; top: 140px; right: 8px; max-width: calc(100vw - 16px); font-size: 12px; }
 .contact-card a { overflow-wrap: anywhere; }
 .brand-names { min-width: 0; }
}
.school-video { width: 100%; aspect-ratio: 16 / 9; }
.school-video iframe { width: 100%; height: 100%; border: 0; border-radius: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .hero-slide { transition: none; } }

/* Consent controls are in document flow and remain available after a choice. */
.analytics-consent { max-width: 1160px; margin: 1rem auto; padding: 1rem 24px; font-size: 14px; }
.analytics-consent button { min-height: 44px; padding: .65rem 1rem; border: 1px solid #167847; border-radius: 8px; background: white; color: #14683e; font: inherit; cursor: pointer; }
.analytics-consent button:focus-visible { outline: 3px solid #126f9c; outline-offset: 3px; }
.analytics-consent p { margin: .75rem 0; }
.analytics-consent-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.analytics-consent-actions button:first-child { background: #14683e; color: white; }

/* ── Homepage illustrations and motion ────────────────────
   Six hand-drawn illustrations cut from the approved concept sheet. Each has three layers:
   .hdeco positions, .hdeco-in plays a one-off entrance, .hdeco-art carries continuous motion.
   Wide screens use the empty margins beside the 760px column; narrower screens reserve a
   little space in the section instead of covering text. Homepage only. */
.page-body.home .hdeco { position: absolute; z-index: 1; pointer-events: none; user-select: none; }
.page-body.home .hdeco-art { display: block; width: 100%; height: auto; }
.hero-decor .hdeco-hero-bike { width: 124px; left: calc(50% - 418px); top: 64px; }
.hero-decor .hdeco-hero-rocket { width: 96px; left: max(12px, calc(50% - 584px)); top: 318px; }
.page-body.home .hdeco-hero-m { display: none; }
.page-body.home .hdeco-sun { width: 132px; top: 30px; left: calc(50% + 420px); }
.page-body.home .hdeco-crayons { width: 136px; top: 6px; right: calc(50% + 424px); }
.page-body.home .hdeco-collage { width: 156px; bottom: 16px; left: calc(50% + 418px); }
.page-body.home .split.has-hdeco { position: relative; }
.page-body.home .hdeco-palette { width: 148px; top: calc(50% - 64px); left: calc(100% + 44px); }

@media (max-width: 1179px) {
  .hero-decor .hdeco-hero-rocket { width: 84px; left: 12px; top: 440px; }
  .page-body.home .hdeco-sun { width: 96px; top: 12px; left: auto; right: max(12px, calc(50% - 380px)); }
  .page-body.home .hdeco-crayons { width: 96px; top: 0; right: max(12px, calc(50% - 380px)); }
  .page-body.home .wave-yellow.has-hdeco { padding-bottom: 104px; }
  .page-body.home .hdeco-collage { width: 104px; bottom: 6px; left: auto; right: max(12px, calc(50% - 380px)); }
  /* The palette gets its own short strip above the painting photograph. */
  .page-body.home .split:has(+ .split.has-hdeco) { margin-bottom: 16px; }
  .page-body.home .split.has-hdeco { padding-top: 90px; }
  .page-body.home .hdeco-palette { width: 98px; top: 0; left: auto; right: 0; }
}
@media (max-width: 900px) {
  .page-body.home .hero .hdeco-hero-m { display: block; width: 74px; left: 16px; bottom: 10px; z-index: 4; }
  .page-body.home .hero .hero-text { padding-bottom: 66px; }
  .page-body.home .band.tight.has-hdeco { padding-top: 92px; }
}
@media (max-width: 640px) {
  .page-body.home .hdeco-sun { width: 78px; top: 10px; }
  .page-body.home .hdeco-crayons { width: 80px; }
  .page-body.home .wave-yellow.has-hdeco { padding-bottom: 96px; }
  .page-body.home .hdeco-collage { width: 88px; }
  .page-body.home .split.has-hdeco { padding-top: 76px; }
  .page-body.home .hdeco-palette { width: 84px; }
}

/* Entrances: set only by /home-motion.js for content still below the screen, so a failed
   script never hides anything. */
.page-body.home .rv-pending { opacity: 0; transform: translateY(12px); transition: opacity .42s ease-out, transform .42s cubic-bezier(.22,.61,.36,1); }
.page-body.home .hd-pending { opacity: 0; transform: translateY(8px) scale(.94) rotate(-2deg); transition: opacity .45s ease-out, transform .5s cubic-bezier(.22,.61,.36,1); }
.page-body.home .rv-pending.is-in, .page-body.home .hd-pending.is-in { opacity: 1; transform: none; }
@media (max-width: 760px) {
  .page-body.home .rv-pending { transform: translateY(6px); transition-duration: .28s; }
  .page-body.home .hd-pending { transition-duration: .3s; }
}

/* Continuous motion: paused unless the script says the illustration is on screen. */
.home-moving .page-body.home .hdeco-art[data-hmotion] { animation: 8s ease-in-out infinite paused; will-change: transform; }
.home-moving .page-body.home .hdeco-art[data-hmotion="sway"] { animation-name: hd-sway; transform-origin: 50% 80%; }
.home-moving .page-body.home .hdeco-art[data-hmotion="drift"] { animation-name: hd-drift; animation-duration: 7s; }
.home-moving .page-body.home .hdeco-art[data-hmotion="float"] { animation-name: hd-float; }
.home-moving .page-body.home .hdeco-art.is-moving { animation-play-state: running; }
@keyframes hd-sway { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(1deg); } 75% { transform: rotate(-1deg); } }
@keyframes hd-drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(4px, -4px); } }
@keyframes hd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }

@media (prefers-reduced-motion: reduce) {
  .page-body.home .hdeco-art { animation: none !important; }
  .page-body.home .rv-pending, .page-body.home .hd-pending { opacity: 1; transform: none; transition: none; }
}
