/*
Theme Name: Kityang Huay Kwan
Theme URI: https://www.kityang.sg/
Author: Singapore Kityang Huay Kwan
Description: A custom heritage-led theme for Singapore Kityang Huay Kwan.
Version: 1.15.35
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: kityang-huay-kwan
*/

:root {
  --ivory: #fbf5e8;
  --paper: #fffaf0;
  --ink: #143b4a;
  --teal: #147b78;
  --teal-deep: #0c5f61;
  --coral: #ef5c43;
  --saffron: #edae36;
  --navy: #153c74;
  --red: #b52831;
  --line: rgba(20, 59, 74, 0.15);
  --section-space-y: clamp(5rem,6.25vw,6rem);
  --section-space-x: clamp(1.35rem,6vw,7rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ivory); color: var(--ink); font-family: "Avenir Next", "Segoe UI", Arial, sans-serif; }
body.admin-bar .site-header { top: 32px; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }

/* Public-facing content deterrents. Form controls remain selectable and usable. */
body:not(.kityang-content-protection-exempt) {
  -webkit-user-select: none;
  user-select: none;
}
body:not(.kityang-content-protection-exempt) input,
body:not(.kityang-content-protection-exempt) textarea,
body:not(.kityang-content-protection-exempt) select,
body:not(.kityang-content-protection-exempt) option,
body:not(.kityang-content-protection-exempt) [contenteditable="true"],
body:not(.kityang-content-protection-exempt) [role="textbox"] {
  -webkit-user-select: text;
  user-select: text;
}
body:not(.kityang-content-protection-exempt) img,
body:not(.kityang-content-protection-exempt) video {
  -webkit-user-drag: none;
}

.skip-link { position: fixed; z-index: 100; left: 1rem; top: -5rem; padding: .75rem 1rem; background: var(--ink); color: white; border-radius: 999px; }
.skip-link:focus { top: 1rem; }

.site-header {
  position: absolute; z-index: 2000; top: 0; left: 0; width: 100%; min-height: 96px;
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .8rem;
  padding: 1rem clamp(1.25rem, 4vw, 4.75rem);
  background: linear-gradient(180deg, rgba(255,250,240,.96), rgba(255,250,240,.72) 65%, transparent);
}
.brand { display: inline-flex; align-items: center; gap: .85rem; justify-self: start; }
.brand-mark { width: 54px; height: 54px; overflow: hidden; border-radius: 50%; background: white; box-shadow: 0 7px 24px rgba(20,59,74,.13); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-copy { display: grid; gap: .1rem; font-family: Georgia, "Songti SC", serif; color: var(--red); font-size: 1.06rem; letter-spacing: .05em; }
.brand-copy small { color: var(--navy); font: 700 .58rem/1.2 "Avenir Next", "Segoe UI", sans-serif; letter-spacing: .08em; text-transform: uppercase; }
.site-dropdown-menu { position: fixed; z-index: 10000; isolation: isolate; top: 1rem; right: clamp(1.25rem,4vw,4.75rem); }
body.admin-bar .site-dropdown-menu { top: calc(32px + 1rem); }
.site-dropdown-menu summary { width: 46px; height: 46px; display: grid; place-content: center; gap: 6px; border: 1px solid rgba(20,59,74,.18); border-radius: 50%; background: rgba(255,250,240,.9); box-shadow: 0 8px 28px rgba(20,59,74,.12); backdrop-filter: blur(12px); cursor: pointer; list-style: none; transition: background 180ms ease,transform 180ms ease,box-shadow 180ms ease; }
.site-dropdown-menu summary::-webkit-details-marker { display: none; }
.site-dropdown-menu summary span { display: block; width: 18px; height: 1px; background: var(--ink); transition: transform 180ms ease; }
.site-dropdown-menu summary:hover,.site-dropdown-menu summary:focus-visible { background: var(--paper); box-shadow: 0 10px 32px rgba(20,59,74,.18); transform: translateY(-1px); outline: none; }
.site-dropdown-menu[open] summary span:first-child { transform: translateY(7px) rotate(45deg); }
.site-dropdown-menu[open] summary span:nth-child(2) { opacity: 0; transform: scaleX(.5); }
.site-dropdown-menu[open] summary span:last-child { transform: translateY(-7px) rotate(-45deg); }
.site-dropdown-panel { position: absolute; z-index: 30; top: calc(100% + .8rem); right: 0; width: min(370px,calc(100vw - 2rem)); padding: 1.25rem; border: 1px solid rgba(20,59,74,.12); border-radius: 24px; background: rgba(255,250,240,.96); box-shadow: 0 26px 70px rgba(20,59,74,.18); backdrop-filter: blur(16px); }
.site-dropdown-panel > p { margin: 0 0 .8rem; padding: .2rem .7rem .8rem; border-bottom: 1px solid rgba(20,59,74,.12); color: var(--teal-deep); font-size: .62rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.site-dropdown-panel nav { display: grid; }
.site-dropdown-panel nav a { display: grid; grid-template-columns: 30px 1fr auto; gap: .8rem; align-items: center; min-height: 48px; padding: .65rem .7rem; border-bottom: 1px solid rgba(20,59,74,.09); border-radius: 10px; }
.site-dropdown-panel nav a:last-child { border-bottom: 0; }
.site-dropdown-panel nav a:hover,.site-dropdown-panel nav a:focus-visible { background: rgba(20,123,120,.07); outline: none; }
.site-dropdown-panel nav small { color: var(--coral); font: italic .72rem Georgia,serif; }
.site-dropdown-panel nav span { color: var(--ink); font: 500 1rem Georgia,"Songti SC",serif; }
.site-dropdown-panel nav b { color: rgba(20,59,74,.46); font-weight: 400; }

.hero { position: relative; overflow: hidden; isolation: isolate; background: var(--paper); }
.hero-media { position: relative; width: 100%; aspect-ratio: 16/9; max-height: 900px; overflow: hidden; background-color: var(--ivory); background-image: url("assets/media/hero-poster.png"); background-position: center; background-size: cover; background-repeat: no-repeat; }
.hero-video { position: absolute; z-index: 0; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-wash { position: absolute; z-index: 1; inset: 0; pointer-events: none; background: linear-gradient(0deg,rgba(255,250,240,.18),transparent 20%); }
.hero-copy { position: relative; z-index: 2; width: 100%; min-height: min(820px,84svh); margin: 0; padding: clamp(5rem,8vw,8rem) clamp(1.35rem,8vw,9.5rem); display: flex; flex-direction: column; justify-content: center; background-image: linear-gradient(90deg,rgba(255,250,240,.98) 0%,rgba(255,250,240,.93) 30%,rgba(255,250,240,.7) 46%,rgba(255,250,240,.12) 66%,transparent 78%),url("assets/media/hero-copy-artwork-no-performer.png"); background-size: cover; background-position: center; background-repeat: no-repeat; }
.eyebrow, .section-kicker p { margin: 0; font-size: .72rem; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-deep); }
.hero h1 { margin: 1.4rem 0 2rem; max-width: 680px; font: 500 clamp(3.3rem, 6.2vw, 6.9rem)/.98 Georgia, "Songti SC", serif; letter-spacing: -.045em; }
.hero h1 span { display: block; color: var(--coral); font-style: italic; }
.hero-copy > p:not(.eyebrow) { max-width: 560px; margin: 0; font-size: clamp(1rem,1.25vw,1.22rem); line-height: 1.9; color: rgba(20,59,74,.82); }
.hero-actions { display: flex; align-items: center; gap: 2.25rem; margin-top: 3.2rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .8rem 1.5rem; border-radius: 999px; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.button-primary { background: var(--teal); color: white; box-shadow: 0 12px 28px rgba(12,95,97,.2); }
.text-link { font-size: .82rem; font-weight: 800; border-bottom: 1px solid currentColor; padding-bottom: .3rem; }
.scroll-cue { position: absolute; left: clamp(1.35rem,4vw,4.75rem); bottom: 2rem; display: flex; align-items: center; gap: .9rem; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.scroll-cue i { width: 46px; height: 1px; background: var(--ink); position: relative; }
.scroll-cue i::after { content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px; border-right: 1px solid; border-bottom: 1px solid; transform: rotate(-45deg); }

.intro-section { position: relative; display: grid; grid-template-columns: minmax(150px,.7fr) minmax(0,1.5fr) minmax(220px,.7fr); gap: clamp(2rem,6vw,7rem); padding: var(--section-space-y) var(--section-space-x); overflow: hidden; background: radial-gradient(circle at 80% 40%, rgba(237,174,54,.11), transparent 25%), linear-gradient(rgba(20,123,120,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(20,123,120,.025) 1px, transparent 1px), var(--ivory); background-size: auto, 24px 24px, 24px 24px, auto; }
.section-kicker { display: flex; align-items: flex-start; gap: .75rem; padding-top: .7rem; }
.section-kicker span { color: var(--coral); font: italic 1.8rem Georgia, serif; }
.intro-copy { max-width: 820px; }
.chinese-kicker { margin: 0 0 1rem; color: var(--red); font: 500 clamp(1rem,1.5vw,1.3rem) Georgia, "Songti SC", serif; letter-spacing: .14em; }
.intro-copy h2 { margin: 0; font: 500 clamp(2.6rem,4.8vw,5rem)/1.02 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
.intro-copy > p:not(.chinese-kicker) { max-width: 710px; margin: 1.5rem 0 2rem; font-size: clamp(1rem,1.2vw,1.16rem); line-height: 1.8; color: rgba(20,59,74,.75); }
.intro-links { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem 2.4rem; }
.round-link { display: inline-flex; align-items: center; gap: 1rem; font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.round-link b { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(20,59,74,.4); border-radius: 50%; transition: 160ms ease; }
.round-link:hover b, .round-link:focus-visible b { background: var(--teal); border-color: var(--teal); color: white; }
.intro-symbol { position: relative; min-height: 320px; }
.sun { position: absolute; inset: 10% 5% auto auto; width: clamp(150px,18vw,280px); aspect-ratio: 1; border: 1px solid rgba(237,174,54,.7); border-radius: 50%; }
.sun::before, .sun::after { content: ""; position: absolute; border-radius: 50%; inset: 14%; border: 1px dashed rgba(239,92,67,.5); }
.sun::after { inset: 35%; border-style: solid; background: rgba(237,174,54,.11); }
.petal { position: absolute; width: 28px; height: 16px; border-radius: 90% 0 90% 0; transform: rotate(25deg); }
.petal-one { background: var(--coral); top: 5%; left: 5%; }
.petal-two { background: var(--teal); bottom: 20%; right: 4%; transform: rotate(72deg); }
.petal-three { background: var(--saffron); bottom: 5%; left: 8%; transform: rotate(-30deg); }

.heritage-section {
  display: grid; grid-template-columns: 1fr; min-height: 760px;
  background: var(--teal-deep); color: white;
}
.heritage-copy { width: min(1200px,100%); margin: 0 auto; display: flex; flex-direction: column; justify-content: center; padding: var(--section-space-y) var(--section-space-x); }
.section-kicker.light p { color: rgba(255,255,255,.7); }
.section-kicker.light span { color: var(--saffron); }
.chinese-kicker.warm { color: #ffd58a; }
.heritage-copy > .chinese-kicker { margin-top: 4.5rem; }
.heritage-copy h2 { margin: 0; max-width: 730px; font: 500 clamp(2.8rem,4.6vw,5.4rem)/1 Georgia,"Songti SC",serif; letter-spacing: -.035em; }
.heritage-copy > p:not(.chinese-kicker) { max-width: 640px; margin: 1.5rem 0 2.5rem; color: rgba(255,255,255,.75); font-size: 1.05rem; line-height: 1.8; }
.heritage-notes { display: grid; gap: .15rem; border-top: 1px solid rgba(255,255,255,.18); }
.heritage-notes article { display: grid; grid-template-columns: 56px 1fr; gap: 1rem; align-items: center; padding: 1.1rem 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.heritage-notes article > b { display: grid; place-items: center; width: 46px; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.09); color: #ffd58a; font: 500 1.25rem Georgia,"Songti SC",serif; }
.heritage-notes h3 { margin: 0 0 .2rem; font: 600 1rem Georgia,serif; }
.heritage-notes p { margin: 0; color: rgba(255,255,255,.6); font-size: .82rem; }
.heritage-events-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 1rem; margin-top: 2.25rem; padding: .72rem .75rem .72rem 1.3rem; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: white; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; transition: background 160ms ease,border-color 160ms ease,transform 160ms ease; }
.heritage-events-link b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #ffd58a; color: var(--teal-deep); font-size: .95rem; }
.heritage-events-link:hover,.heritage-events-link:focus-visible { border-color: #ffd58a; background: rgba(255,255,255,.08); transform: translateY(-2px); outline: none; }

.programmes-section { padding: clamp(5rem,10vw,10rem) clamp(1.35rem,8vw,9.5rem); background: var(--paper); }
.programmes-heading { display: grid; grid-template-columns: .55fr 1.5fr .8fr; gap: clamp(2rem,5vw,6rem); align-items: end; margin-bottom: 4rem; }
.programmes-heading h2, .news-heading h2 { margin: 0; font: 500 clamp(2.8rem,5vw,5.3rem)/1 Georgia,"Songti SC",serif; letter-spacing: -.04em; }
.programmes-heading > p { margin: 0 0 .4rem; color: rgba(20,59,74,.7); line-height: 1.75; }
.programme-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; }
.programme-card { position: relative; min-height: 470px; overflow: hidden; padding: 1.6rem; border-radius: 220px 220px 28px 28px; display: flex; flex-direction: column; justify-content: space-between; color: white; isolation: isolate; }
.programme-card::before, .programme-card::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); }
.programme-card::before { width: 320px; height: 320px; top: 2.5rem; left: 50%; transform: translateX(-50%); }
.programme-card::after { width: 220px; height: 220px; top: 5.6rem; left: 50%; transform: translateX(-50%); }
.card-coral { background: var(--coral); }
.card-teal { background: var(--teal); }
.card-saffron { background: var(--saffron); color: var(--ink); }
.card-number { align-self: flex-end; font-size: .67rem; font-weight: 800; letter-spacing: .14em; }
.card-glyph { position: absolute; top: 4.2rem; left: 50%; transform: translateX(-50%); font: 500 clamp(5rem,9vw,9rem) Georgia,"Songti SC",serif; color: rgba(255,255,255,.9); }
.card-saffron .card-glyph { color: rgba(20,59,74,.72); }
.programme-card div { position: relative; padding: 1.5rem; background: rgba(255,250,240,.11); border: 1px solid rgba(255,255,255,.18); border-radius: 18px; backdrop-filter: blur(4px); }
.programme-card div p { margin: 0 0 .45rem; font-size: .67rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.programme-card h3 { margin: 0 0 .5rem; font: 500 clamp(1.65rem,2.2vw,2.25rem) Georgia,serif; }
.programme-card div span { font-size: .82rem; opacity: .78; }

.legacy-section { display: grid; grid-template-columns: 1.08fr .92fr; min-height: 720px; background: #f3ead8; }
.legacy-art { position: relative; overflow: hidden; min-height: 600px; }
.legacy-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, #f3ead8), linear-gradient(0deg, rgba(243,234,216,.75), transparent 40%); }
.legacy-art img { width: 100%; height: 100%; object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.legacy-year { position: absolute; z-index: 2; left: clamp(1.5rem,6vw,7rem); bottom: clamp(2rem,6vw,6rem); display: grid; }
.legacy-year small { font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.legacy-year strong { font: 500 clamp(5rem,11vw,10rem)/.8 Georgia,serif; color: var(--coral); letter-spacing: -.08em; }
.legacy-copy { align-self: center; padding: var(--section-space-y) var(--section-space-x); }
.legacy-copy h2 { margin: 0; font: 500 clamp(2.8rem,4.5vw,5rem)/1 Georgia,"Songti SC",serif; letter-spacing: -.04em; }
.legacy-copy > p:not(.chinese-kicker) { margin: 1.5rem 0 2rem; color: rgba(20,59,74,.72); font-size: 1.05rem; line-height: 1.8; }

.news-section { display: grid; grid-template-columns: .75fr 1.25fr; gap: clamp(3rem,8vw,10rem); padding: var(--section-space-y) var(--section-space-x); background: var(--ivory); }
.news-heading { max-width: 520px; }
.news-heading .chinese-kicker { margin-top: 3.5rem; }
.news-heading h2 { margin-top: 0; }
.news-heading > p { color: rgba(20,59,74,.7); line-height: 1.75; }
.news-list { border-top: 0; }
.tradition-feature { position: relative; margin: 0 0 1.2rem; overflow: hidden; border-radius: 1.5rem; background: var(--navy); color: white; box-shadow: 0 22px 50px rgba(20,59,74,.14); }
.tradition-feature img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.tradition-feature::after { content: ""; position: absolute; inset: 32% 0 0; background: linear-gradient(transparent,rgba(12,36,47,.9)); pointer-events: none; }
.tradition-feature figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: grid; gap: .38rem; padding: clamp(1.2rem,2.5vw,2rem); }
.tradition-feature figcaption span { font-size: .7rem; font-weight: 800; letter-spacing: .12em; color: #f5c96a; }
.tradition-feature figcaption strong { font: 500 clamp(1.35rem,2vw,2rem)/1.3 Georgia,"Songti SC",serif; }
.news-list > a { display: grid; grid-template-columns: 110px 1fr 32px; gap: 1.3rem; align-items: center; padding: 2rem .2rem; border-bottom: 0; transition: color 160ms ease, padding 160ms ease; }
.news-list > a:hover, .news-list > a:focus-visible { color: var(--coral); padding-left: .7rem; }
.news-list > a > span { font-size: .67rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.news-list h3 { margin: 0; font: 500 clamp(1.15rem,1.7vw,1.55rem)/1.35 Georgia,serif; }
.news-list b { font-size: 1.2rem; }


.contact-section { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(3rem,8vw,9rem); padding: var(--section-space-y) var(--section-space-x); background: var(--navy); color: white; }
.contact-roof { position: absolute; left: -5%; top: -12%; width: 110%; height: 45%; border: 1px solid rgba(255,255,255,.12); border-radius: 0 0 50% 50%; transform: rotate(-2deg); }
.contact-roof::after { content: ""; position: absolute; inset: 18% 7% auto; height: 100%; border: 1px solid rgba(237,174,54,.22); border-radius: 0 0 50% 50%; }
.contact-intro, .contact-details { position: relative; z-index: 1; }
.contact-intro h2 { margin: 0; max-width: 680px; font: 400 clamp(2.4rem,4.25vw,4.8rem)/1 Georgia,"Songti SC",serif; letter-spacing: -.035em; }
.contact-intro > p:not(.chinese-kicker) { max-width: 620px; color: rgba(255,255,255,.7); line-height: 1.8; }
.contact-details { display: grid; align-content: end; grid-template-columns: 1fr 1fr; gap: 2rem; }
.contact-details > div { display: grid; align-content: start; gap: .4rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.25); }
.contact-details span { margin-bottom: .5rem; color: #ffd58a; font-size: .67rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.contact-details address, .contact-details a { font-style: normal; color: rgba(255,255,255,.84); line-height: 1.7; font-size: .9rem; }
.contact-button { grid-column: 1/-1; display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; padding: 1rem 1.3rem; border: 1px solid rgba(255,255,255,.35); border-radius: 999px; color: white !important; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }

footer { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 2rem; padding: 2rem clamp(1.35rem,4vw,4.75rem); background: #0e2d39; color: rgba(255,255,255,.7); }
.footer-brand { justify-self: start; display: inline-flex; align-items: center; gap: .75rem; }
.footer-brand:focus-visible { border-radius: 2px; outline: 1px solid rgba(255,255,255,.78); outline-offset: 6px; }
.footer-brand img { width: 44px; height: 52px; object-fit: contain; }
.footer-actions { justify-self: end; display: flex; align-items: center; justify-content: flex-end; gap: 1.25rem; }
.footer-actions > small { color: rgba(255,255,255,.55); font-size: .65rem; white-space: nowrap; }
.footer-legal { display: inline-flex; align-items: center; gap: 1rem; }
.footer-legal a { color: rgba(255,255,255,.68); font-size: .65rem; font-weight: 700; letter-spacing: .04em; transition: color 160ms ease; }
.footer-legal a:hover, .footer-legal a:focus-visible { color: #ffffff; }
.footer-social { display: inline-grid; place-items: center; width: 30px; height: 30px; color: white; transition: transform 160ms ease, opacity 160ms ease; }
.footer-social:hover, .footer-social:focus-visible { transform: translateY(-2px); opacity: .82; }
.footer-social svg { width: 25px; height: 25px; fill: #ffffff; }

.wp-content-shell { min-height: 75vh; padding: calc(96px + var(--section-space-y)) var(--section-space-x) var(--section-space-y); background: var(--paper); }
.wp-content-shell article { max-width: 860px; margin: 0 auto; }
.wp-content-shell h1 { margin: 1rem 0 2rem; font: 500 clamp(2.8rem,5vw,5rem)/1 Georgia,"Songti SC",serif; }
.entry-content { color: rgba(20,59,74,.78); font-size: 1.05rem; line-height: 1.8; }
.entry-content img { border-radius: 24px; }

.legal-page { background: var(--paper); }
.legal-article { margin: 0; }
.legal-hero { position: relative; min-height: clamp(430px,58vw,700px); display: flex; align-items: center; overflow: hidden; padding: clamp(8rem,13vw,12rem) clamp(1.35rem,10vw,11rem) clamp(5rem,9vw,8rem); background-image: linear-gradient(90deg,rgba(255,250,240,.97) 0%,rgba(255,250,240,.9) 34%,rgba(255,250,240,.52) 56%,rgba(255,250,240,.08) 78%),url("assets/media/hero-copy-artwork-no-performer.png"); background-size: cover; background-position: center 58%; background-repeat: no-repeat; }
.legal-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 28%; pointer-events: none; background: linear-gradient(0deg,var(--paper),transparent); }
.legal-hero-copy { position: relative; z-index: 1; width: min(820px,100%); }
.legal-hero h1 { max-width: 760px; margin: 1.15rem 0 0; font: 500 clamp(2.85rem,5vw,5.15rem)/1 Georgia,"Songti SC",serif; letter-spacing: -.035em; }
.legal-content-wrap { padding: var(--section-space-y) var(--section-space-x); background-image: linear-gradient(rgba(20,123,120,.025) 1px,transparent 1px),linear-gradient(90deg,rgba(20,123,120,.025) 1px,transparent 1px); background-size: 26px 26px; }
.legal-content { width: min(850px,100%); margin: 0 auto; }
.legal-content h2 { margin: 2.8rem 0 .85rem; color: var(--ink); font: 500 clamp(1.3rem,1.8vw,1.72rem)/1.25 Georgia,"Songti SC",serif; letter-spacing: -.015em; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin: 0 0 1.15rem; }
.legal-content ul { margin: .25rem 0 1.5rem; padding-left: 1.35rem; }
.legal-content li { margin: 0 0 .7rem; padding-left: .3rem; line-height: 1.75; }
.legal-content li::marker { color: var(--coral); }
.legal-content a { color: var(--teal-deep); border-bottom: 1px solid rgba(12,95,97,.35); }

@media (max-width: 1020px) {
  .site-header { grid-template-columns: 1fr auto; }
  .hero-copy { width: 100%; min-height: 700px; margin: 0; padding: 5rem 2.5rem; background-position: 58% center; }
  .intro-section { grid-template-columns: 1fr 3fr; }
  .intro-symbol { display: none; }
  .heritage-section { grid-template-columns: 1fr; }
  .programmes-heading { grid-template-columns: .5fr 1.5fr; }
  .programmes-heading > p { grid-column: 2; }
  .programme-card { min-height: 400px; }
  .legacy-section { grid-template-columns: 1fr; }
  .legacy-art::after { background: linear-gradient(0deg,#f3ead8,transparent 55%); }
  .news-section { grid-template-columns: 1fr; }
  .contact-section { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr auto; }
}

@media (max-width: 700px) {
  .site-header { min-height: 78px; padding-inline: 1rem; }
	.site-header { grid-template-columns: 1fr auto; }
  .site-dropdown-menu { top: .9rem; right: .9rem; }
  body.admin-bar .site-dropdown-menu { top: calc(46px + .9rem); }
  .site-dropdown-menu summary { width: 44px; height: 44px; gap: 5px; }
  .site-dropdown-menu summary span { width: 16px; }
  .site-dropdown-menu[open] summary span:first-child { transform: translateY(6px) rotate(45deg); }
  .site-dropdown-menu[open] summary span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .site-dropdown-panel { top: calc(100% + .55rem); width: min(320px,calc(100vw - 1.8rem)); padding: .8rem; border-radius: 20px; }
  .site-dropdown-panel > p { margin-bottom: .45rem; padding: .15rem .55rem .55rem; font-size: .56rem; letter-spacing: .15em; }
  .site-dropdown-panel nav a { grid-template-columns: 24px 1fr auto; gap: .55rem; min-height: 44px; padding: .5rem .55rem; }
  .site-dropdown-panel nav small { font-size: .66rem; }
  .site-dropdown-panel nav span { font-size: .9rem; }
  .site-dropdown-panel { max-height: calc(100svh - 7rem); overflow-y: auto; }
  .brand-mark { width: 46px; height: 46px; }
  .brand-copy { font-size: .88rem; }
  .brand-copy small { display: none; }
  .hero-media { aspect-ratio: 16/10; }
  .hero-copy { width: 100%; min-height: 0; margin: 0; padding: 3rem 1.3rem 2.5rem; justify-content: flex-start; background-image: linear-gradient(0deg,rgba(255,250,240,1) 0%,rgba(255,250,240,.98) 44%,rgba(255,250,240,.94) 72%,rgba(255,250,240,.82) 100%); background-position: center; }
  .hero-copy::before { content: ""; position: absolute; z-index: 0; inset: 0 0 auto; height: min(82vw,340px); pointer-events: none; background: url("assets/media/hero-copy-artwork-no-performer.png") center top/145% auto no-repeat; opacity: .55; -webkit-mask-image: linear-gradient(#000 0%,#000 58%,transparent 100%); mask-image: linear-gradient(#000 0%,#000 58%,transparent 100%); }
  .hero-copy > * { position: relative; z-index: 1; }
  .hero h1 { margin: 1.15rem 0 1.6rem; font-size: clamp(2.7rem,11vw,3.25rem); line-height: 1.02; letter-spacing: -.035em; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 1.2rem; }
  .scroll-cue { left: auto; right: 1.3rem; bottom: 2rem; }
  .scroll-cue span { display: none; }
  .intro-section { grid-template-columns: 1fr; padding: 3rem 1.3rem; }
  .intro-symbol { display: block; position: absolute; z-index: 0; min-height: 0; width: 230px; height: 230px; right: -58px; top: 105px; opacity: .42; pointer-events: none; }
  .intro-symbol .sun { inset: 0; width: 100%; }
  .intro-section > :not(.intro-symbol) { position: relative; z-index: 1; }
  .heritage-copy { padding: 3rem 1.3rem; }
  .heritage-copy > .chinese-kicker { margin-top: 2rem; }
  .programmes-heading { grid-template-columns: 1fr; }
  .programmes-heading > p { grid-column: auto; }
  .programme-grid { grid-template-columns: 1fr; }
  .programme-card { min-height: 410px; }
  .legacy-art { min-height: 480px; }
  .legacy-copy { padding: 3rem 1.3rem; }
  .news-section { padding: 3rem 1.3rem; }
  .contact-section { padding: 3rem 1.3rem; }
  .news-list > a { grid-template-columns: 1fr 28px; gap: .7rem; }
  .news-list > a > span { grid-column: 1/-1; }
  .contact-details { grid-template-columns: 1fr; }
  .contact-button { grid-column: auto; }
  .legal-hero { min-height: 560px; align-items: flex-end; padding: 7rem 1.3rem 5rem; background-image: linear-gradient(0deg,rgba(255,250,240,.98) 0%,rgba(255,250,240,.9) 38%,rgba(255,250,240,.22) 72%,transparent 88%),url("assets/media/hero-copy-artwork-no-performer.png"); background-position: center 60%; }
  .legal-content-wrap { padding: 3rem 1.3rem; }
  .wp-content-shell { padding: 6rem 1.3rem 3rem; }
  footer { grid-template-columns: auto minmax(0,1fr); gap: .75rem; padding: 1.25rem 1rem; }
  .footer-brand img { width: 36px; height: 42px; }
  .footer-actions { justify-self: end; flex-wrap: nowrap; justify-content: flex-end; gap: .75rem; }
  .footer-actions > small { font-size: .5rem; }
  .footer-legal { gap: .6rem; }
  .footer-legal a { font-size: .55rem; letter-spacing: .02em; }
  .footer-social { width: 24px; height: 24px; }
  .footer-social svg { width: 20px; height: 20px; }
}

@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
  body.admin-bar .site-dropdown-menu { top: calc(46px + 1rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
