/* ==========================================================
   Kong Meng Chinese School
   Paper, ink and kaishu. Section titles run vertically in the
   margin like the column heads of a thread-bound book.
   ========================================================== */

:root {
  --paper: #e6ddcc;          /* matches the paper in the school artwork */
  --paper-light: #f1ebdf;
  --ink: #1d2632;            /* body text */
  --navy: #12304f;           /* logo navy, headings */
  --deep: #0c2036;           /* footer */
  --gold: #a87b25;           /* large type and rules only */
  --wattle: #d2a73e;         /* wattle yellow from the artwork */
  --seal: #a3302a;           /* cinnabar seal, used once */
  --muted: #535b65;
  --rule: rgba(18, 48, 79, 0.2);

  --kai: "Iansui", "BiauKai", "DFKai-SB", "Kaiti TC", serif;   /* Iansui follows Taiwan MOE standard character forms */
  --sans: "Noto Sans TC", "Noto Sans CJK TC", "PingFang TC", "Microsoft JhengHei", sans-serif;

  --wrap: 76rem;
  --measure: 42rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.9;
}
/* the paper stays put while the page scrolls (works on iOS, unlike background-attachment) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: var(--paper) url("/assets/paper.jpg") center / cover no-repeat;
}
:lang(en) { line-height: 1.7; }
html:lang(en) body { line-height: 1.7; }

img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-decoration-color: var(--wattle); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
a:hover { color: var(--seal); }
:focus-visible { outline: 3px solid var(--wattle); outline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--kai); color: var(--navy); font-weight: 400; font-synthesis: none; line-height: 1.35; margin: 0; }
p { margin: 0 0 1em; }

.skip { position: absolute; left: -999px; top: 0; background: var(--navy); color: #fff; padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }

/* ---------------- header ---------------- */
.masthead-bar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(230, 221, 204, 0.94);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--rule);
}
.bar {
  max-width: var(--wrap); margin: 0 auto; padding: 0.6rem 2rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.brand {
  display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto;
  column-gap: 0.7rem; align-items: center; text-decoration: none; color: var(--navy); margin-right: auto;
}
.brand img { grid-row: 1 / 3; width: 44px; height: auto; border-radius: 50%; }
.brand-zh { font-family: var(--kai); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.12em; line-height: 1.15; }
.brand-en { font-size: 0.72rem; color: var(--muted); letter-spacing: 0.02em; line-height: 1.2; }

.site-nav { display: flex; align-items: center; gap: 1.4rem; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 1.15rem; }
.site-nav ul a { text-decoration: none; color: var(--ink); font-size: 0.95rem; padding: 0.3rem 0; border-bottom: 2px solid transparent; }
.site-nav ul a:hover { color: var(--navy); border-bottom-color: var(--wattle); }
.lang { font-size: 0.9rem; text-decoration: none; color: var(--muted); padding-left: 1.2rem; border-left: 1px solid var(--rule); }
.cta { background: var(--navy); color: var(--paper-light); text-decoration: none; font-size: 0.92rem; font-weight: 500; padding: 0.5rem 1rem; border-radius: 2px; }
.cta:hover { background: var(--deep); color: #fff; }
.menu-btn { display: none; }

/* ---------------- hero ---------------- */
.hero { position: relative; min-height: min(94vh, 54rem); display: flex; align-items: center; }
.hero-art { position: absolute; inset: 0; background: url("/assets/KMCSBackground.jpg") 50% 50% / cover no-repeat; }
.hero-text {
  position: relative;
  width: min(36rem, 40%);
  margin-left: 26%;
  padding: 4rem 0 3.5rem;
}
.hero-school { font-family: var(--kai); font-size: 1.15rem; color: var(--navy); letter-spacing: 0.18em; margin-bottom: 1.25rem; }
.hero-school span { display: block; font-size: 0.95rem; color: var(--muted); letter-spacing: 0.3em; margin-top: 0.2rem; }
html:lang(en) .hero-school, html:lang(en) .hero-school span { letter-spacing: 0.04em; }
.hero h1 { font-size: clamp(2.6rem, 5.2vw, 4.4rem); line-height: 1.18; letter-spacing: 0.12em; margin-bottom: 1.5rem; }
html:lang(en) .hero h1 { letter-spacing: 0; font-size: clamp(2rem, 3.3vw, 3rem); }
/* English headings: Spectral for Latin, Iansui still covers any Chinese inside them */
html:lang(en) h1, html:lang(en) h2, html:lang(en) h3, html:lang(en) h4, html:lang(en) .motto, html:lang(en) .hero-school { font-family: "Spectral", var(--kai); font-weight: 500; }
.hero h1 .line { display: block; }
.hero h1 .line + .line { padding-left: 2em; }       /* offset second line, like a couplet */
html:lang(en) .hero h1 .line + .line { padding-left: 1.2em; }
.hero-intro { font-size: 1.08rem; max-width: 32rem; }
.hero-facts { display: flex; gap: 0; margin: 1.75rem 0; padding: 0; }
.hero-facts > div { padding-right: 1.5rem; }
.hero-facts > div + div { padding-left: 1.5rem; padding-right: 0; border-left: 1px solid var(--rule); }
.hero-facts dt { font-size: 0.85rem; color: var(--muted); }
.hero-facts dd { margin: 0; font-weight: 500; color: var(--navy); line-height: 1.55; }
.hero-facts dd span { font-weight: 400; color: var(--ink); font-size: 0.92rem; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin: 1.75rem 0 0; }
.btn { display: inline-block; background: var(--navy); color: var(--paper-light); text-decoration: none; padding: 0.8rem 1.6rem; font-weight: 500; border-radius: 2px; }
.btn:hover { background: var(--deep); color: #fff; }
.textlink { font-weight: 500; }
.hero-note { font-size: 0.85rem; color: var(--muted); max-width: 30rem; margin: -0.5rem 0 0; line-height: 1.7; }

/* ---------------- sections ---------------- */
.sec {
  max-width: var(--wrap); margin: 0 auto;
  display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); column-gap: 2.5rem;
  padding: 6rem 2rem;
  border-top: 1px solid var(--rule);
}
.vt {
  writing-mode: vertical-rl;
  position: sticky; top: 6.5rem; align-self: start;
  margin: 0; justify-self: end;
  font-family: var(--kai); font-weight: 400; font-size: 2rem; letter-spacing: 0.4em; color: var(--navy);
  padding-left: 0.9rem; border-left: 2px solid var(--wattle);
  line-height: 1;
}
.sec-body { min-width: 0; }
.sec h2 { font-size: clamp(1.8rem, 3.2vw, 2.5rem); letter-spacing: 0.06em; margin-bottom: 1.25rem; }
html:lang(en) .sec h2 { letter-spacing: 0; }
.lead { font-size: 1.15rem; color: var(--navy); }
.narrow, .prose { max-width: var(--measure); }
.prose h3 { font-size: 1.55rem; margin-bottom: 0.9rem; }
.prose h4 { font-size: 1.1rem; margin: 1.6rem 0 0.6rem; }

/* history */
.history-grid { display: grid; grid-template-columns: 13rem minmax(0, 1fr); gap: 3rem; margin-top: 2rem; }
.seal {
  width: 9rem; height: 9rem;
  background: var(--seal); color: #f6efe3;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 6px; transform: rotate(-3deg);
  box-shadow: inset 0 0 0 5px var(--seal), inset 0 0 0 7px rgba(246, 239, 227, 0.75);
  font-family: var(--kai);
}
.seal-y { font-size: 2.5rem; font-weight: 400; line-height: 1; letter-spacing: 0.04em; }
.seal-l { font-size: 0.95rem; margin-top: 0.4rem; letter-spacing: 0.2em; }
html:lang(en) .seal-l { letter-spacing: 0.02em; font-size: 0.85rem; }
.motto { font-family: var(--kai); font-size: 1.35rem; color: var(--navy); line-height: 1.5; margin: 2rem 0 0.3rem; }
.motto-sub { font-size: 0.92rem; color: var(--muted); line-height: 1.6; }

/* commitments */
.pillar { display: grid; grid-template-columns: 7rem minmax(0, 1fr); gap: 2.5rem; margin-top: 3.5rem; padding-top: 3rem; border-top: 1px solid var(--rule); }
.pillar-glyph {
  writing-mode: vertical-rl; margin: 0; justify-self: center;
  font-family: var(--kai); font-size: 3.4rem; letter-spacing: 0.25em; color: var(--navy); line-height: 1;
}
.adv { list-style: none; padding: 0; margin: 0; }
.adv li { padding-left: 1.1rem; border-left: 2px solid var(--wattle); margin-bottom: 1rem; }
.adv strong { display: block; color: var(--navy); }
.glyph-row { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-top: 0.75rem; }
.glyph-ex .big { font-family: var(--kai); font-size: 4.2rem; line-height: 1; color: var(--navy); display: inline-block; }
.glyph-ex .gloss { display: inline-block; margin-left: 0.6rem; color: var(--gold); font-weight: 500; }
.glyph-ex p { margin-top: 0.6rem; font-size: 0.98rem; }

/* philosophy */
.phil-head { display: flex; gap: 1.75rem; align-items: center; }
.phil-head img { width: 96px; flex: none; }
.phil-head .lead { margin: 0; max-width: var(--measure); }
.band { margin: 2.5rem 0 1rem; height: 15rem; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; mix-blend-mode: multiply; }
.values { list-style: none; padding: 0; margin: 0; }
.value { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 1.5rem; padding: 2.25rem 0; border-bottom: 1px solid var(--rule); max-width: 50rem; }
.value:last-child { border-bottom: 0; }
.v-letter { font-family: var(--kai); font-size: 3.6rem; line-height: 1; color: var(--gold); margin: 0; }
.value h3 { margin-bottom: 0.6rem; }
.v-zh { font-size: 1.65rem; letter-spacing: 0.08em; margin-right: 0.9rem; }
.v-en { font-family: var(--sans); font-weight: 500; font-size: 0.95rem; color: var(--muted); letter-spacing: 0; }
.v-quote { font-family: var(--kai); font-size: 1.2rem; color: var(--navy); margin-bottom: 0.5rem; }

/* curriculum */
.courses { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.course { padding: 0 1.75rem; border-left: 1px solid var(--rule); }
.course:first-child { padding-left: 0; border-left: 0; }
.course h3 { font-size: 1.35rem; margin-bottom: 0.75rem; }
.course p { font-size: 0.98rem; }
.course .detail { font-size: 0.9rem; color: var(--muted); padding-top: 0.75rem; border-top: 1px solid var(--rule); }
.principal { margin: 4rem 0 0; padding: 0 0 0 1.5rem; border-left: 3px solid var(--wattle); max-width: 46rem; }
.principal p { font-family: var(--kai); font-size: clamp(1.3rem, 2.4vw, 1.65rem); line-height: 1.7; color: var(--navy); margin-bottom: 0.75rem; }
.principal footer { font-size: 0.9rem; color: var(--muted); }

/* guidelines */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 3rem; align-items: start; margin-top: 2rem; }
.rule + .rule { margin-top: 2.25rem; }
.rule h3 { font-size: 1.4rem; margin-bottom: 0.6rem; }

/* photos are mounted on a paper mat, like prints in a school album */
.rules-img, .shot, .map iframe {
  background: var(--paper-light); padding: 0.6rem;
  box-shadow: 0 1px 2px rgba(29, 38, 50, 0.08), 0 14px 30px -18px rgba(29, 38, 50, 0.45);
}
.rules-img { margin: 0.5rem 0 0; transform: rotate(1.2deg); }

/* activities */
.gallery { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-rows: auto auto; gap: 1.75rem; margin-top: 2.5rem; }
.shot { margin: 0; }
.shot img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.shot-0 { grid-row: 1 / 3; display: flex; flex-direction: column; }
.shot-0 img { flex: 1 1 auto; height: 0; min-height: 22rem; aspect-ratio: auto; }
.shot figcaption { padding: 0.8rem 0.3rem 0.2rem; font-size: 0.92rem; line-height: 1.65; color: var(--muted); }
.shot figcaption strong { display: block; font-family: var(--kai); font-size: 1.15rem; color: var(--navy); margin-bottom: 0.2rem; }
.more { margin-top: 2rem; }

/* registration */
.steps { list-style: none; padding: 0; margin: 2.75rem 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 1.75rem; }
.step { border-top: 2px solid var(--wattle); padding-top: 1.1rem; }
.step-n { font-family: var(--kai); font-size: 2.8rem; line-height: 1; color: var(--gold); margin: 0 0 0.6rem; }
.step-label { font-size: 0.85rem; color: var(--muted); margin: 0; }
.step h3 { font-size: 1.3rem; margin: 0.1rem 0 0.6rem; }
.step p:last-child { font-size: 0.95rem; }
.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3.5rem; margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid var(--rule); }
.contact h3 { font-size: 1.45rem; margin-bottom: 0.75rem; }
.email { font-size: clamp(1.15rem, 2vw, 1.45rem); font-weight: 500; margin: 1.25rem 0 1.5rem; word-break: break-all; }
.notice { padding-left: 1rem; border-left: 3px solid var(--seal); }
.notice strong { color: var(--seal); margin-right: 0.4rem; }
.privacy { font-size: 0.88rem; color: var(--muted); }
.map iframe { display: block; width: 100%; height: 19rem; border: 0; margin: 0.5rem 0 0.9rem; }

/* ---------------- footer ---------------- */
.site-footer { background: var(--deep); color: rgba(241, 235, 223, 0.85); margin-top: 2rem; font-size: 0.95rem; }
.site-footer a { color: #f1ebdf; text-decoration-color: rgba(210, 167, 62, 0.7); }
.site-footer a:hover { color: var(--wattle); }
.foot { max-width: var(--wrap); margin: 0 auto; padding: 3.5rem 2rem 2.5rem; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 3rem; }
.foot-brand img { width: 64px; margin-bottom: 0.9rem; border-radius: 50%; }
.foot-name { font-family: var(--kai); font-size: 1.4rem; color: #f6efe3; letter-spacing: 0.1em; margin-bottom: 0.4rem; }
.foot-blurb { max-width: 26rem; line-height: 1.8; }
.foot-h { font-family: var(--sans); font-size: 0.85rem; font-weight: 500; color: var(--wattle); margin: 0 0 0.3rem; }
.foot-h + p { margin-bottom: 1.4rem; }
.foot-links { list-style: none; padding: 0; margin: 0; columns: 2; column-gap: 1.5rem; }
.foot-links li { margin-bottom: 0.35rem; }
.foot-links a { text-decoration: none; }
.foot-base { max-width: var(--wrap); margin: 0 auto; padding: 1.1rem 2rem 1.6rem; border-top: 1px solid rgba(241, 235, 223, 0.15);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; font-size: 0.82rem; color: rgba(241, 235, 223, 0.6); }
.foot-base p { margin: 0; }

/* ---------------- newsletters ---------------- */
.nl .sec { border-top: 0; padding-top: 4rem; }
.crumb { font-size: 0.92rem; color: var(--muted); }
.nl-title { font-size: clamp(2rem, 4.6vw, 3rem); letter-spacing: 0.06em; }
.nb { display: inline-block; }
.nl-title-en { color: var(--muted); font-size: 1.1rem; margin: 0.3rem 0 0; }
.dek { font-family: var(--kai); font-size: 1.35rem; color: var(--navy); line-height: 1.7; margin: 1.75rem 0 2.5rem; max-width: var(--measure); }
.article { max-width: var(--measure); }
.article .lead { font-size: 1.12rem; color: var(--ink); }
.article h2 { font-size: 1.65rem; margin: 3.25rem 0 1rem; letter-spacing: 0.04em; }
.article h2 .en { display: block; font-family: var(--sans); font-size: 0.92rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 0.2rem; }
.article strong { color: var(--navy); }
.article figure { margin: 2.25rem 0; background: var(--paper-light); padding: 0.55rem; box-shadow: 0 1px 2px rgba(29,38,50,.08), 0 14px 30px -18px rgba(29,38,50,.45); }
.article figure img { width: 100%; }
.article .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 2.25rem 0; }
.article .pair figure { margin: 0; }
.article .pair img { aspect-ratio: 4 / 3; object-fit: cover; height: auto; }
.highlight { font-weight: 700; color: var(--navy); background: linear-gradient(transparent 62%, rgba(210, 167, 62, 0.35) 62%); }
.clause { display: inline-block; }
.closing {
  margin: 0 0 3rem; padding: 4.5rem 1.25rem; text-align: center;
  background: var(--paper-light) url("/assets/KMCSBackground.jpg") center / cover no-repeat;
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.closing p { font-family: var(--kai); color: var(--navy); max-width: 34rem; margin: 0 auto; text-wrap: balance; letter-spacing: 0.08em; }
.closing .first { font-size: clamp(1.25rem, 3vw, 1.6rem); line-height: 1.8; max-width: 30rem; padding-bottom: 1.5rem; margin-bottom: 1.5rem; border-bottom: 1px solid var(--wattle); }
.closing .second { font-size: clamp(1.05rem, 2.4vw, 1.25rem); line-height: 2.1; }
/* narrower screens: veil the artwork so the words stay clear of the slips and the kookaburra */
@media (max-width: 1100px) {
  .closing { background-image: linear-gradient(rgba(241, 235, 223, 0.8), rgba(241, 235, 223, 0.8)), url("/assets/KMCSBackground.jpg"); }
}
.issues { list-style: none; padding: 0; margin: 2.5rem 0 0; }
.issue { display: grid; grid-template-columns: 18rem minmax(0, 1fr); gap: 2rem; align-items: center; padding: 1.75rem 0; border-top: 1px solid var(--rule); }
.issue img { aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-light); padding: 0.5rem; box-shadow: 0 14px 30px -18px rgba(29,38,50,.45); }
.issue .term { font-size: 0.9rem; color: var(--muted); margin: 0 0 0.3rem; }
.issue h2 { font-size: 1.5rem; }
.issue h2 a { text-decoration: none; }
.issue .title-en { color: var(--muted); margin: 0.3rem 0 0; }

/* ---------------- responsive ---------------- */
@media (max-width: 1180px) {
  .menu-btn {
    display: block; background: none; border: 1px solid var(--rule); color: var(--navy);
    font: inherit; font-size: 0.95rem; padding: 0.35rem 0.9rem; border-radius: 2px; cursor: pointer;
  }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper-light); border-bottom: 1px solid var(--rule); padding: 0.5rem 2rem 1.25rem;
    box-shadow: 0 18px 30px -20px rgba(29, 38, 50, 0.45);
  }
  .site-nav.open { display: flex; }
  .site-nav ul { flex-direction: column; gap: 0; }
  .site-nav ul a { display: block; padding: 0.7rem 0; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .lang { border-left: 0; padding: 0.9rem 0 0.4rem; }
  .cta { margin-top: 0.6rem; text-align: center; padding: 0.75rem 1rem; }
}
@media (max-width: 1100px) {
  .hero { display: block; min-height: 0; }
  .hero-art { position: relative; aspect-ratio: 1684 / 943; }
  .hero-text { width: auto; max-width: 40rem; margin: 0 auto; padding: 2.5rem 2rem 3rem; }
}
@media (max-width: 960px) {
  .courses { grid-template-columns: 1fr; gap: 2rem; }
  .course, .course:first-child { padding: 0; border-left: 0; }
  .steps { grid-template-columns: 1fr 1fr; gap: 2rem 1.75rem; }
  .contact, .rules-grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (max-width: 820px) {
  body { font-size: 1rem; }
  .bar { padding: 0.55rem 1.25rem; }
  .site-nav { padding: 0.5rem 1.25rem 1.25rem; }
  .sec { grid-template-columns: 1fr; padding: 3.75rem 1.25rem; }
  .vt { display: none; }
  .hero-text { padding: 2rem 1.25rem 2.5rem; }
  .history-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .seal-wrap { display: grid; grid-template-columns: 7rem 1fr; column-gap: 1.25rem; align-items: center; }
  .seal { width: 6.5rem; height: 6.5rem; grid-row: 1 / 3; }
  .seal-y { font-size: 1.8rem; }
  .seal-l { font-size: 0.75rem; }
  .motto { margin: 0; font-size: 1.2rem; }
  .pillar { grid-template-columns: 1fr; gap: 1rem; }
  .pillar-glyph { writing-mode: horizontal-tb; justify-self: start; font-size: 2.6rem; letter-spacing: 0.15em; }
  .glyph-row { grid-template-columns: 1fr; gap: 1.25rem; }
  .phil-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .band { height: 10rem; }
  .value { grid-template-columns: 2.75rem minmax(0, 1fr); gap: 1rem; }
  .v-letter { font-size: 2.6rem; }
  .v-zh { display: block; margin: 0 0 0.2rem; }
  .gallery { grid-template-columns: 1fr; }
  .shot-0 { grid-row: auto; }
  .shot-0 img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
  .rules-img { transform: none; }
  .foot { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 1.25rem 2rem; }
  .foot-base { padding: 1rem 1.25rem 1.5rem; }
  .issue { grid-template-columns: 1fr; gap: 1rem; }
  .article .pair { grid-template-columns: 1fr; }
  .article .pair img { aspect-ratio: auto; }
}
@media (max-width: 540px) {
  .steps { grid-template-columns: 1fr; }
  .hero-facts { flex-direction: column; gap: 0.9rem; }
  .hero-facts > div, .hero-facts > div + div { padding: 0; border-left: 0; }
  .hero h1 .line + .line { padding-left: 1em; }
}

/* ---------------- artwork details and photo features ---------------- */
/* details cut from the school's own artwork, faded into the paper */
.art { display: block; -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
       mask-image: radial-gradient(closest-side, #000 55%, transparent); }
.principal-wrap { display: grid; grid-template-columns: minmax(0, 46rem) 10rem; gap: 2.5rem; align-items: center; margin-top: 4rem; }
.principal-wrap .principal { margin: 0; }
.art-slips { width: 100%;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent), linear-gradient(to right, transparent, #000 18%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(to bottom, transparent, #000 14%, #000 82%, transparent), linear-gradient(to right, transparent, #000 18%);
  mask-composite: intersect; }
.values-wrap { display: grid; grid-template-columns: minmax(0, 40rem) minmax(14rem, 1fr); gap: 2.5rem; align-items: start; }
.art-kookaburra { position: sticky; top: 8rem; width: 100%; max-width: 22rem; justify-self: end; margin-top: 1.5rem; }
#registration .sec-body { position: relative; }
.art-wattle { position: absolute; right: -1rem; top: -3.5rem; width: 22rem; pointer-events: none; }

.latest { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 2.25rem; align-items: center;
  margin-top: 3.5rem; text-decoration: none; color: inherit; }
.latest img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper-light); padding: 0.6rem;
  box-shadow: 0 1px 2px rgba(29, 38, 50, 0.08), 0 14px 30px -18px rgba(29, 38, 50, 0.45); transform: rotate(-1deg); }
.latest-text { display: block; }
.latest-label { display: block; font-size: 0.88rem; color: var(--gold); font-weight: 500; margin-bottom: 0.4rem; }
.latest-title { display: block; font-family: var(--kai); font-size: clamp(1.45rem, 2.6vw, 1.9rem); color: var(--navy); line-height: 1.4; letter-spacing: 0.04em; }
.latest-dek { display: block; margin: 0.8rem 0 1.1rem; color: var(--ink); }
.latest-read { font-weight: 500; color: var(--navy); text-decoration: underline; text-decoration-color: var(--wattle); text-decoration-thickness: 2px; text-underline-offset: 0.25em; }
.latest:hover .latest-read { color: var(--seal); }

@media (max-width: 1100px) {
  .values-wrap { grid-template-columns: 1fr; }
  .art-kookaburra { position: static; max-width: 18rem; justify-self: center; order: -1; margin: 0 0 0.5rem; }
}
@media (max-width: 960px) { .art-wattle { width: 15rem; top: -2rem; opacity: 0.85; } }
@media (max-width: 820px) {
  .principal-wrap { grid-template-columns: 1fr; }
  .art-slips { display: none; }
  .art-wattle { display: none; }
  .latest { grid-template-columns: 1fr; gap: 1.25rem; }
  .latest img { transform: none; }
}

@media print {
  .masthead-bar, .site-footer, .vt, .menu-btn { display: none !important; }
  body::before { display: none; }
  body { background: #fff; }
}
