/*
 * Hills & River — the Mākara Model School redesign.
 * Loaded only when the "hills" design is active (see src/lib/design.ts), instead of public/legacy/css.
 * Motion rules: everything that moves lives inside prefers-reduced-motion: no-preference, and
 * scroll-linked effects also inside @supports (animation-timeline: view()). Without either, content is static and visible.
 */

/* ---------- tokens ---------- */
:root {
  --ink: #14304a; --ink-2: #41576a; --sky: #e4f3f5; --mist: #f3f8f7; --line: #d6e6e9;
  --teal: #3ab3c2; --teal-ink: #12707f; --river: #1e8cc8; --river-ink: #0d6a9e;
  --kiwi: #9acd55; --kiwi-ink: #3b7a1c; --hill-1: #c3e39a; --hill-2: #9acd55; --hill-3: #64a835;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --display: "Bricolage Grotesque", system-ui, sans-serif;
  --body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Variables the shared fundraising styles read */
  --button-background: var(--ink); --button-hover-background: #0b1f33; --secondary-colour: var(--kiwi); --primary-colour: var(--teal-ink);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; overflow-x: clip; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, iframe, video, embed { max-width: 100%; }
img { height: auto; }
a { color: var(--river-ink); text-underline-offset: 3px; }
a:hover { color: var(--ink); }
h1, h2, h3, h4, h5, h6 { font-family: var(--display); letter-spacing: -0.02em; line-height: 1.1; color: var(--ink); margin: 0 0 .5em; }
:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 12px; top: 12px; z-index: 1000; background: #fff; padding: 10px 14px; border-radius: 8px; }
.h-wrap { max-width: 1240px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.h-sr, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-ink); margin: 0; }
.h-h2 { font-size: clamp(34px, 4.4vw, 56px); font-weight: 800; margin: 14px 0 0; }
.h-h3 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; margin: 8px 0 0; }

/* ---------- buttons ---------- */
.h-btn, .h-site .button, .h-site .fr-button, .h-site .fr-form button[type='submit'], .h-site .submit-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: 700 15px/1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, box-shadow .25s, color .25s;
}
.h-btn svg { transition: transform .3s var(--ease); }
.h-btn:hover svg { transform: translateX(4px); }
.h-btn-kiwi { background: var(--kiwi); color: var(--ink); box-shadow: 0 6px 0 -2px #5d8a2b; }
.h-btn-kiwi:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 9px 0 -2px #5d8a2b; }
.h-btn-kiwi:active { transform: translateY(2px); box-shadow: 0 3px 0 -2px #5d8a2b; }
.h-btn-ink, .h-site .button, .h-site .fr-button, .h-site .fr-form button[type='submit'], .h-site .submit-button { background: var(--ink); color: #fff !important; box-shadow: 0 6px 0 -2px #06121f; }
.h-btn-ink:hover, .h-site .button:hover, .h-site .fr-button:hover, .h-site .fr-form button[type='submit']:hover, .h-site .submit-button:hover { background: var(--ink); color: #fff; transform: translateY(-2px); }
.h-site .fr-form button[disabled], .h-site .fr-button[aria-disabled='true'] { background: #8a9aa6; box-shadow: none; transform: none; cursor: not-allowed; }
.h-site .fr-button-secondary, .h-btn-line { background: transparent; border-color: var(--ink); color: var(--ink) !important; box-shadow: none; }
.h-site .fr-button-secondary:hover, .h-btn-line:hover { background: var(--ink); color: #fff !important; }
.h-btn-lg { min-height: 56px; padding: 0 28px; font-size: 16px; }
.h-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.h-textlink { display: inline-flex; align-items: center; gap: 8px; margin-top: 24px; font-weight: 700; color: var(--river-ink); text-decoration: none; padding-bottom: 2px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .35s var(--ease), color .2s; }
.h-textlink:hover { background-size: 100% 2px; color: var(--ink); }
.h-textlink.h-on-dark { color: var(--kiwi); }
.h-textlink.h-on-dark:hover { color: #fff; }

/* ---------- reading progress ---------- */
.h-progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 60; background: linear-gradient(90deg, var(--teal), var(--kiwi)); transform-origin: 0 50%; transform: scaleX(0); display: none; pointer-events: none; }

/* ---------- header ---------- */
/* Top strip: quick contact on the left, search and log in on the right. Scrolls away; phones use the dock instead. */
.h-util { background: var(--ink); color: #c9dce6; font-size: 13.5px; font-weight: 600; }
.h-util-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 38px; }
.h-util-l, .h-util-r { display: flex; align-items: center; gap: 4px; }
.h-util a { color: #c9dce6; text-decoration: none; padding: 6px 10px; border-radius: 999px; white-space: nowrap; transition: background-color .2s, color .2s; }
.h-util a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.h-util a:focus-visible { outline: 2px solid var(--kiwi); outline-offset: 1px; }
.h-util-l a:first-child { margin-left: -10px; }
.h-util-ico { display: inline-flex; align-items: center; gap: 6px; }
.h-util-login { background: rgba(255, 255, 255, .08); color: #fff !important; }
.h-util-login.is-in { background: var(--kiwi); color: var(--ink) !important; }
.h-util-r a:last-child { margin-right: -4px; }
@media (max-width: 1000px) { .h-util-l a[href^="mailto:"] { display: none; } }
@media (max-width: 700px) { .h-util { display: none; } }
.h-hdr { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.h-site:has(.h-home) .h-hdr { background: var(--sky); border-bottom-color: transparent; }
.h-hdr-in { display: flex; align-items: center; gap: 20px; padding-block: 14px; }
.h-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.h-brand img { width: 56px; height: 56px; transition: transform .6s var(--ease), width .3s, height .3s; }
.h-brand:hover { color: var(--ink); }
.h-brand:hover img { transform: rotate(-8deg) scale(1.06); }
.h-brand-txt { display: flex; flex-direction: column; line-height: 1.15; }
.h-brand-txt strong { font: 800 20px/1.1 var(--display); letter-spacing: -0.01em; }
.h-brand-txt span { font-size: 12.5px; color: var(--ink-2); font-weight: 600; }
.h-nav { margin-left: auto; }
.h-nav > ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.h-nav > ul > li { position: relative; }
.h-nav > ul > li > a { display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 11px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; white-space: nowrap; transition: background-color .2s; }
.h-nav > ul > li > a:hover, .h-nav > ul > li:focus-within > a { background: rgba(20, 48, 74, .07); color: var(--ink); }
.h-nav > ul > li.h-cur > a { background: rgba(58, 179, 194, .16); color: var(--teal-ink); }
.h-chev { transition: transform .3s var(--ease); }
.h-has-sub:hover .h-chev, .h-has-sub:focus-within .h-chev { transform: rotate(180deg); }
.h-sub-toggle { display: none; }
.h-sub { position: absolute; top: calc(100% + 10px); left: -16px; min-width: 300px; width: max-content; max-width: 560px; padding: 14px; background: #fff; border-radius: 20px;
  box-shadow: 0 24px 60px -20px rgba(20, 48, 74, .35); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px;
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .25s, transform .3s var(--ease), visibility .25s; }
.h-sub::before { content: ""; position: absolute; inset: -14px 0 auto 0; height: 14px; }
.h-has-sub:hover .h-sub, .h-has-sub:focus-within .h-sub { opacity: 1; visibility: visible; transform: none; }
.h-sub a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; transition: background-color .2s; }
.h-sub a:hover, .h-sub a[aria-current] { background: var(--mist); color: var(--ink); }
.h-nav-extra { display: none; }
.h-hdr-act { display: flex; align-items: center; gap: 8px; }
.h-hdr-act .h-btn, .h-nav-extra .h-btn { white-space: nowrap; }
.h-search { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; color: var(--ink); transition: background-color .2s; }
.h-search:hover { background: rgba(20, 48, 74, .07); color: var(--ink); }
.h-burger { display: none; width: 48px; height: 48px; border-radius: 999px; border: 0; background: var(--ink); color: #fff; align-items: center; justify-content: center; cursor: pointer; position: relative; z-index: 3; }
.h-dock { display: none; }

/* Log in / family area: the last menu item, set apart with a soft pill */
.h-nav > ul > li.h-nav-login > a { gap: 7px; margin-left: 6px; box-shadow: inset 0 0 0 1.5px rgba(20, 48, 74, .18); }
.h-nav > ul > li.h-nav-login.is-in > a { background: #e9f5dc; color: var(--kiwi-ink); box-shadow: none; }
@media (max-width: 1200px) { .h-nav > ul > li.h-nav-login > a { margin-left: 0; box-shadow: none !important; background: none !important; color: var(--kiwi) !important; } }

/* ---------- home hero ---------- */
.h-hero { position: relative; background: var(--sky); padding-top: clamp(24px, 5vw, 64px); isolation: isolate; overflow: hidden; }
.h-cloud { position: absolute; z-index: -1; opacity: .9; }
.h-cloud-a { top: 70px; left: 6%; width: 180px; }
.h-cloud-b { top: 30px; right: 4%; width: 240px; }
.h-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-bottom: 190px; }
.h-hero-h { font-size: clamp(44px, 7vw, 92px); font-weight: 800; line-height: 1.04; margin: 18px 0 22px; }
.h-w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .1em; margin-bottom: -.1em; }
.h-w > span { display: inline-block; }
.h-hl { position: relative; color: var(--river-ink); }
.h-squiggle { position: absolute; left: 0; bottom: -.08em; width: 100%; height: .3em; overflow: visible; }
.h-squiggle path { stroke: var(--kiwi); stroke-width: 7; fill: none; stroke-linecap: round; }
.h-lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); max-width: 34em; margin: 0; }
.h-hero-art { display: grid; place-items: center; }
.h-roundel { position: relative; width: min(460px, 100%); aspect-ratio: 1; }
.h-orbit { position: absolute; inset: -7%; width: 114%; height: 114%; overflow: visible; }
.h-photo { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; border: 10px solid #fff; box-shadow: 0 30px 70px -25px rgba(20, 48, 74, .55); background: var(--hill-2); }
.h-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-badge { position: absolute; left: -4%; bottom: 2%; width: 30%; height: auto; border-radius: 50%; background: #fff; padding: 6px; box-shadow: 0 16px 40px -14px rgba(20, 48, 74, .5); }
.h-pin { position: absolute; right: -2%; top: 8%; display: flex; align-items: center; gap: 8px; background: #fff; padding: 10px 16px; border-radius: 999px; font-weight: 700; font-size: 14px; box-shadow: 0 12px 30px -12px rgba(20, 48, 74, .45); }
.h-pin svg { color: var(--river); }
.h-hills { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 300px; display: block; z-index: 0; pointer-events: none; }

/* ---------- quick tiles ---------- */
.h-quick { position: relative; z-index: 2; margin-top: -130px; }
.h-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.h-tile { --mx: 50%; --my: 0%; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); overflow: hidden; box-shadow: 0 18px 40px -28px rgba(20, 48, 74, .45); transition: transform .35s var(--ease), box-shadow .35s; }
.h-tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(260px circle at var(--mx) var(--my), rgba(58, 179, 194, .16), transparent 70%); opacity: 0; transition: opacity .3s; pointer-events: none; }
.h-tile:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -26px rgba(20, 48, 74, .5); color: var(--ink); }
.h-tile:hover::before { opacity: 1; }
.h-tile h2 { font-size: 21px; font-weight: 700; margin: 0; }
.h-tile p { font-size: 14.5px; color: var(--ink-2); line-height: 1.45; margin: 0; }
.h-tile-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; transition: transform .45s var(--ease); }
.h-tile-ic img { width: 28px; height: 28px; }
.h-tile:hover .h-tile-ic { transform: rotate(-8deg) scale(1.08); }
.h-tone-teal { background: #e1f3f5; color: var(--teal-ink); }
.h-tone-kiwi { background: #e9f5dc; color: var(--kiwi-ink); }
.h-tone-red { background: #fdebe8; color: #b4331f; }
.h-tone-river { background: #e3eef8; color: var(--river-ink); }
.h-go { margin-top: auto; display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--river-ink); }
.h-go svg { transition: transform .3s var(--ease); }
.h-tile:hover .h-go svg, .h-card:hover .h-go svg { transform: translateX(5px); }
.h-term-bar { display: block; margin-top: auto; height: 8px; border-radius: 99px; background: var(--mist); overflow: hidden; }
.h-term-bar span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--teal), var(--kiwi)); transform-origin: 0 50%; }

/* ---------- welcome + stats ---------- */
.h-welcome { padding-block: clamp(72px, 9vw, 120px); }
.h-welcome-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.h-body { color: var(--ink-2); margin: 18px 0 0; }
.h-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.h-stat { padding: 28px; border-radius: 24px; min-height: 180px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; position: relative; overflow: hidden; }
.h-stat-teal { background: #e1f3f5; color: var(--teal-ink); }
.h-stat-ink { background: var(--ink); color: var(--kiwi); }
.h-stat-kiwi { background: #e9f5dc; color: var(--kiwi-ink); }
.h-stat-river { background: #e3eef8; color: var(--river-ink); }
.h-num { font: 800 clamp(54px, 6vw, 80px)/1 var(--display); letter-spacing: -0.03em; }
.h-lbl { font-weight: 600; font-size: 15px; max-width: 16em; color: var(--ink); }
.h-stat-ink .h-lbl { color: #fff; }
.h-blob { position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; border-radius: 50%; opacity: .18; background: currentColor; transition: transform .8s var(--ease); }
.h-stat:hover .h-blob { transform: scale(1.35); }
@property --num { syntax: "<integer>"; inherits: false; initial-value: 0; }
.h-count { --num: var(--to); counter-reset: n var(--num); }
.h-count::after { content: counter(n); }

/* ---------- backyard carousel ---------- */
.h-yard { background: var(--mist); padding-block: clamp(72px, 9vw, 120px); }
.h-yard-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.h-yard-head p:not(.h-eyebrow) { color: var(--ink-2); max-width: 34em; margin: 14px 0 0; }
.h-arrows { display: flex; gap: 8px; }
.h-arrow { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s, transform .25s var(--ease); }
.h-arrow:hover { background: var(--ink); color: #fff; }
.h-arrow:active { transform: scale(.92); }
.h-track { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  padding: 40px max(16px, calc((100vw - 1240px) / 2 + 40px)) 24px; scroll-padding-inline: max(16px, calc((100vw - 1240px) / 2 + 40px)); }
.h-track::-webkit-scrollbar { display: none; }
.h-card { flex: 0 0 clamp(270px, 28vw, 340px); scroll-snap-align: start; background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); border: 1px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s; }
.h-card:hover { transform: translateY(-8px) rotate(-.6deg); box-shadow: 0 30px 50px -30px rgba(20, 48, 74, .55); color: var(--ink); }
.h-card-art { height: 190px; position: relative; overflow: hidden; display: grid; place-items: center; color: #fff; }
.h-bg-hill { background: var(--hill-3); } .h-bg-ink { background: var(--ink); } .h-bg-river { background: var(--river); } .h-bg-teal { background: var(--teal); } .h-bg-kiwi { background: var(--kiwi); color: var(--ink); } .h-bg-deep { background: var(--river-ink); }
.h-ring { position: absolute; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); transition: transform 1s var(--ease); }
.h-ring-a { width: 260px; height: 260px; } .h-ring-b { width: 160px; height: 160px; }
.h-card:hover .h-ring { transform: scale(1.25); }
.h-big { position: relative; transition: transform .6s var(--ease); }
.h-card:hover .h-big { transform: translateY(-6px) scale(1.06); }
.h-card-body { padding: 24px 26px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.h-card-title { font: 700 24px/1.1 var(--display); letter-spacing: -0.02em; }
.h-card-text { color: var(--ink-2); font-size: 15px; line-height: 1.5; }

/* ---------- motto ---------- */
.h-motto { position: relative; color: #fff; background: #0b1a2c; overflow: hidden; isolation: isolate; }
.h-motto-bg { position: absolute; inset: -15% 0; z-index: -2; }
.h-motto-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h-motto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 26, 44, .35); }
.h-motto-in { padding-block: clamp(96px, 13vw, 180px); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.h-motto h2 { color: #fff; font-size: clamp(42px, 7vw, 104px); font-weight: 800; margin: 0; }
.h-motto p { font-size: clamp(18px, 2vw, 24px); color: #d9eef2; margin: 0; }
.h-motto .h-eyebrow { color: var(--kiwi); font-size: 13px; }
.h-tw { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px 2px rgba(255, 255, 255, .8); }
.h-shoot { position: absolute; top: 18%; left: 70%; width: 140px; height: 2px; background: linear-gradient(90deg, #fff, transparent); transform: rotate(-24deg); opacity: 0; border-radius: 2px; }

/* ---------- news + term dates ---------- */
.h-news { padding-block: clamp(72px, 9vw, 120px); }
.h-news-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); margin-top: 40px; align-items: start; }
.h-post { display: grid; grid-template-columns: 88px minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.h-post:last-of-type { border-bottom: 1px solid var(--line); }
.h-when { font-family: var(--display); font-weight: 800; line-height: 1; text-align: center; padding: 12px 0; border-radius: 16px; background: var(--sky); color: var(--teal-ink); transition: background-color .3s, color .3s; }
.h-when b { display: block; font-size: 24px; }
.h-when span { font-size: 12px; letter-spacing: .1em; }
.h-post-title { font: 700 20px/1.25 var(--display); letter-spacing: -0.01em; }
.h-post-arr { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background-color .3s, color .3s, transform .35s var(--ease); }
.h-post:hover { color: var(--ink); }
.h-post:hover .h-when { background: var(--teal); color: #fff; }
.h-post:hover .h-post-arr { background: var(--ink); color: #fff; transform: rotate(-45deg); }
.h-dates { background: var(--ink); color: #fff; border-radius: 28px; padding: 32px; }
.h-dates h3 { color: #fff; font-size: 28px; font-weight: 800; margin: 8px 0 0; }
.h-dates .h-eyebrow { color: var(--kiwi); }
.h-terms { list-style: none; margin: 20px 0 0; padding: 0; }
.h-terms li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 12px 0; position: relative; }
.h-terms li::before { content: ""; position: absolute; left: 10px; top: 36px; bottom: -10px; width: 2px; background: rgba(255, 255, 255, .15); }
.h-terms li:last-child::before { display: none; }
.h-dot { width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .35); margin-top: 2px; }
.h-terms .h-done .h-dot { background: var(--teal); border-color: var(--teal); }
.h-terms .h-now .h-dot { background: var(--kiwi); border-color: var(--kiwi); }
.h-terms b { display: block; font-size: 16px; }
.h-terms li span span { font-size: 14px; color: #bfd3de; }
.h-terms .h-now b { color: var(--kiwi); }

/* ---------- fundraising band ---------- */
.h-fund { padding-bottom: clamp(72px, 9vw, 120px); }
.h-fund-card { border-radius: 32px; background: var(--kiwi); color: var(--ink); padding: clamp(28px, 5vw, 56px); display: grid; grid-template-columns: minmax(0, 1.3fr) auto; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.h-fund-card p:not(.h-eyebrow) { margin: 14px 0 0; font-weight: 500; max-width: 36em; }
.h-fund-card .h-cta-row { margin-top: 0; position: relative; }
.h-eyebrow-ink { color: var(--ink); }
.h-fund-blob { position: absolute; right: -80px; bottom: -140px; width: 320px; height: 320px; border-radius: 50%; border: 40px solid rgba(255, 255, 255, .28); pointer-events: none; }

/* ---------- extra CMS blocks on home (Facebook, calendar) ---------- */
.h-cms-extra { background: var(--mist); padding-block: 64px; }
.h-cms-extra .content-wrapper > div { max-width: 1240px; margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }

/* ---------- sponsors ---------- */
.h-spons { padding-block: 64px; border-top: 1px solid var(--line); overflow: hidden; }
.h-spons-mask { -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); overflow-x: auto; scrollbar-width: none; }
.h-spons-mask::-webkit-scrollbar { display: none; }
.h-marquee { display: flex; gap: 20px; width: max-content; padding: 28px 40px 8px; }
.h-marquee:hover, .h-marquee:focus-within { animation-play-state: paused !important; }
.h-sp { width: 220px; height: 110px; border-radius: 18px; border: 1px solid var(--line); display: grid; place-items: center; padding: 14px; background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14px; text-align: center; text-decoration: none; transition: border-color .2s, transform .3s var(--ease), box-shadow .3s; }
.h-sp img { max-width: 100%; max-height: 80px; object-fit: contain; filter: grayscale(.2); transition: filter .3s; }
.h-sp:hover { border-color: var(--teal); transform: translateY(-3px); box-shadow: 0 14px 30px -20px rgba(20, 48, 74, .5); }
.h-sp:hover img { filter: none; }

/* ---------- footer ---------- */
.h-ftr { background: var(--ink); color: #d3e2ea; position: relative; margin-top: 80px; }
.h-ftr-hills { position: absolute; left: 0; right: 0; top: -79px; height: 80px; width: 100%; display: block; color: var(--ink); }
.h-ftr-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 64px 48px; }
.h-ftr-h { margin: 0 0 14px; font: 700 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--kiwi); }
.h-ftr ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.h-ftr a { color: #fff; text-decoration: none; }
.h-ftr a:hover { color: var(--kiwi); text-decoration: underline; }
.h-ftr-brand { display: flex; gap: 14px; align-items: center; }
.h-ftr-brand img { width: 72px; height: 72px; }
.h-ftr-brand strong { font: 800 22px/1.15 var(--display); color: #fff; display: block; }
.h-ftr-brand span { font-size: 14px; }
.h-ftr-addr { margin: 18px 0 0; }
.h-ftr-base { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 22px; font-size: 14px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.h-social-row { display: flex; gap: 10px; }
.h-social { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255, 255, 255, .08); transition: background-color .2s, transform .3s var(--ease); }
.h-social:hover { background: var(--kiwi); color: var(--ink) !important; transform: translateY(-3px); }

/* ---------- inner page hero + layout ---------- */
.h-phero { background: var(--kiwi); color: var(--ink); position: relative; padding: clamp(36px, 5vw, 72px) 0 130px; overflow: hidden; isolation: isolate; }
.h-phero-ink { background: var(--ink); color: #fff; }
.h-phero-ink h1, .h-phero-ink .h-crumbs a { color: #fff; }
.h-phero-sky { background: var(--sky); }
.h-crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 14px; font-weight: 600; }
.h-crumbs a { color: inherit; text-decoration: none; opacity: .75; }
.h-crumbs a:hover { opacity: 1; color: inherit; text-decoration: underline; }
.h-phero h1 { font-size: clamp(42px, 7vw, 96px); font-weight: 800; margin: 16px 0 0; max-width: 14em; color: inherit; }
.h-intro { max-width: 40em; font-size: clamp(18px, 1.8vw, 21px); margin: 16px 0 0; font-weight: 500; }
.h-leaf { position: absolute; z-index: -1; color: rgba(255, 255, 255, .35); }
.h-leaf-a { right: 6%; top: 14%; width: clamp(110px, 16vw, 220px); }
.h-leaf-b { right: 22%; top: 48%; width: clamp(60px, 9vw, 120px); color: rgba(20, 48, 74, .12); }
.h-phero-ink .h-leaf-a { color: rgba(154, 205, 85, .25); }
.h-phero-ink .h-leaf-b { color: rgba(58, 179, 194, .25); }
.h-edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 110px; display: block; }
.h-edge-hill { fill: var(--hill-3); }
.h-phero-ink .h-edge-hill { fill: #1c4060; }
.h-layout { display: flex; flex-wrap: wrap; gap: clamp(32px, 5vw, 72px); padding-block: 24px 64px; align-items: flex-start; }
.h-side { flex: 1 1 240px; min-width: 0; max-width: 290px; position: sticky; top: 100px; }
.h-side h2 { font: 700 13px/1.2 var(--body); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); margin: 0 0 12px; }
.h-side ul { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); }
.h-side li a { display: block; padding: 9px 16px; margin-left: -2px; border-left: 2px solid transparent; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 15.5px; transition: color .2s, border-color .3s, padding .3s var(--ease); }
.h-side li a:hover { color: var(--ink); border-left-color: var(--teal); padding-left: 22px; }
.h-side li a.h-cur { color: var(--kiwi-ink); border-left-color: var(--kiwi); background: linear-gradient(90deg, #eef7e3, transparent); }
.h-content { flex: 999 1 560px; min-width: 0; }
.h-content:not(.h-content-full) { max-width: 820px; }

/* ---------- CMS content (shared markup from components/site) ---------- */
.h-site .content-wrapper { display: block; }
.h-site main:not(.h-home):not(.h-page) > .content-wrapper { max-width: 1240px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) clamp(16px, 4vw, 40px) 64px; }
.h-site main:not(.h-home):not(.h-page) > .content-wrapper > .container.content > h1:first-child,
.h-site .content-header h1 { font-size: clamp(38px, 6vw, 72px); font-weight: 800; }
.h-site .content-header { background: var(--sky); padding: clamp(36px, 5vw, 64px) clamp(16px, 4vw, 40px) 24px; }
.h-site .content-header > .container { max-width: 1240px; margin: 0 auto; }
.h-site .container.content { max-width: none; }
.h-site .content h2 { font-size: clamp(28px, 3.2vw, 40px); font-weight: 800; margin: 1.6em 0 .5em; }
.h-site .content h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; margin: 1.4em 0 .4em; }
.h-site .content h4, .h-site .content h5, .h-site .content h6 { font-size: 20px; font-weight: 700; margin: 1.2em 0 .4em; }
.h-site .content h2:first-child, .h-site .content h3:first-child { margin-top: 0; }
.h-site .content p, .h-site .content li { color: #2c4356; }
.h-site .content p { margin: 0 0 1em; }
.h-site .content ul:not([class]), .h-site .content ol:not([class]) { padding-left: 1.3em; margin: 0 0 1.2em; }
.h-site .content ul:not([class]) li::marker { color: var(--kiwi-ink); }
.h-site .content li { margin-bottom: .35em; }
.h-site .content img { border-radius: 18px; }
.h-site .content iframe { max-width: 100%; border: 0; border-radius: 18px; }
.h-site .content blockquote { margin: 1.5em 0; padding: 28px 32px; border-radius: 24px; background: var(--sky); font: 700 clamp(20px, 2.2vw, 26px)/1.3 var(--display); }
.h-site .content table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 15.5px; display: block; overflow-x: auto; }
.h-site .content th, .h-site .content td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.h-site .content th { background: var(--mist); font-weight: 700; }
.h-site .content hr { border: 0; height: 2px; background: var(--line); margin: 2em 0; }
.h-site .content a:not([class]) { font-weight: 600; }
.h-site .content [style*="text-align: center"] { text-align: center; }
/* Section blocks (two/three/four columns, coloured or photo backgrounds) */
.h-site .triple-content, .h-site .four-content, .h-site .double-content, .h-site .extra-content, .h-site .color-background, .h-site .image-background { margin: 32px 0; border-radius: 28px; background-size: cover; background-position: center; }
.h-site .triple-content > .container, .h-site .four-content > .container, .h-site .double-content { display: grid; gap: 24px; padding: clamp(20px, 3vw, 32px); }
.h-site .triple-content > .container { grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.h-site .four-content > .container { grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); }
.h-site .double-content { grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); }
.h-site :is(.double-content, .triple-content, .four-content) > * { min-width: 0; }
.h-site .extra-content > .container { padding: clamp(20px, 3vw, 32px); }
.h-site .image-background { color: #fff; }
.h-site .image-background :is(h1, h2, h3, h4, h5, h6, p) { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .35); }
/* Staff */
.h-site .list-of-staff { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 44%), 1fr)); gap: 20px; margin-top: 16px; }
.h-site .list-of-staff > div { background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.h-site .list-of-staff > div:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -28px rgba(20, 48, 74, .55); }
.h-site .list-of-staff .popup { display: block; text-decoration: none; color: var(--ink); }
.h-site .list-of-staff img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 0; display: block; }
.h-site .list-of-staff .summary { padding: 14px 16px 4px; }
.h-site .list-of-staff h3 { font-size: 19px; margin: 0; }
.h-site .job-title { font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }
.h-site .staff-email { display: flex; align-items: center; gap: 6px; padding: 4px 16px 16px; font-size: 14px; font-weight: 600; text-decoration: none; }
.h-site .staff-email img { width: 18px; border-radius: 0; }
.h-site .Staff .content-image img { border-radius: 28px; max-width: 360px; }
/* News list */
.h-site .articles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; margin-top: 16px; }
.h-site .articles > a { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s; }
.h-site .articles > a:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -28px rgba(20, 48, 74, .55); color: var(--ink); }
.h-site .articles .image { aspect-ratio: 16 / 10; background: var(--sky); overflow: hidden; }
.h-site .articles .image img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; transition: transform .6s var(--ease); }
.h-site .articles > a:hover .image img { transform: scale(1.05); }
.h-site .articles .summary { padding: 16px 18px 20px; }
.h-site .articles h4 { font-size: 19px; margin: 0; }
.h-site .newsletter-iframe { width: 100%; min-height: 80vh; border: 1px solid var(--line); border-radius: 18px; }
.h-site .blog-pagination { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
/* Forms (CMS forms and fundraising) */
.h-site .field-wrapper, .h-site .fields { display: grid; gap: 16px; }
.h-site .field label, .h-site .fr-field label { font-weight: 700; font-size: 15px; display: block; margin-bottom: 6px; }
.h-site input[type='text'], .h-site input[type='email'], .h-site input[type='tel'], .h-site input[type='number'], .h-site input[type='search'], .h-site input[type='date'], .h-site select, .h-site textarea {
  font: 500 16px/1.4 var(--body); color: var(--ink); width: 100%; min-height: 52px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: #fff; transition: border-color .2s, box-shadow .2s; }
.h-site textarea { min-height: 140px; }
.h-site input:focus, .h-site select:focus, .h-site textarea:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 4px rgba(30, 140, 200, .15); }
.h-site .error, .h-site .fr-error { color: #b4331f; font-weight: 600; }
.h-site .form-confirmation { padding: 18px 20px; border-radius: 16px; background: #e9f5dc; color: var(--kiwi-ink); font-weight: 600; }
.h-site .search-results { list-style: none; padding: 0; }
.h-site .search-results li { padding: 16px 0; border-bottom: 1px solid var(--line); }
/* Fundraising, restyled through its own fr- classes */
.h-site .Fundraising .content > p:first-of-type { font-size: clamp(18px, 1.8vw, 21px); color: var(--ink-2); max-width: 40em; }
.h-site .fr-grid { gap: 20px; }
.h-site .fr-card { border-radius: 24px; border-color: var(--line); transition: transform .35s var(--ease), box-shadow .35s; }
.h-site .fr-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px -28px rgba(20, 48, 74, .55); }
.h-site .fr-card img { border-radius: 0; }
.h-site .fr-card-body h3 { font-size: 24px; }
.h-site .fr-progress { height: 14px; background: #e9f5dc; }
.h-site .fr-progress > span { background: linear-gradient(90deg, var(--teal), var(--kiwi)); }
.h-site .fr-form fieldset { border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px 20px; }
.h-site .fr-form legend { font: 700 18px/1 var(--display); padding: 0 8px; }
.h-site .fr-presets label { border: 2px solid var(--line); border-radius: 14px; color: var(--ink); min-height: 52px; display: inline-flex; align-items: center; padding: 0 18px; font: 800 18px/1 var(--display); transition: border-color .2s, background-color .2s, transform .2s var(--ease); }
.h-site .fr-presets label:hover { border-color: var(--kiwi); transform: translateY(-2px); }
.h-site .fr-presets label:has(input:checked) { background: var(--kiwi); border-color: var(--kiwi); color: var(--ink); }
.h-site .fr-alert { border-radius: 16px; }
.h-site .fr-ticket { border-color: var(--teal); border-radius: 20px; }
.h-site .fr-pretix { margin-top: 16px; }

/* ===================== motion ===================== */
@media (prefers-reduced-motion: no-preference) {
  .h-w > span { animation: h-wordUp 1s var(--ease) both; animation-delay: calc(var(--i) * 90ms + 150ms); }
  .h-squiggle path { stroke-dasharray: 400; stroke-dashoffset: 400; animation: h-draw 1.1s .9s var(--ease) forwards; }
  .h-hero .h-in, .h-lede, .h-hero .h-cta-row { animation: h-fadeUp .9s var(--ease) both; }
  .h-lede { animation-delay: .55s; } .h-hero .h-cta-row { animation-delay: .7s; }
  .h-roundel { animation: h-popIn 1.2s .2s var(--ease) both; }
  .h-photo img { animation: h-kenburns 26s ease-in-out infinite alternate; }
  .h-orbit { animation: h-spin 90s linear infinite; }
  .h-badge { animation: h-bob 6s ease-in-out infinite; }
  .h-pin { animation: h-bob 7s 1s ease-in-out infinite; }
  .h-cloud-a { animation: h-driftA 70s linear infinite; }
  .h-cloud-b { animation: h-driftB 95s linear infinite; }
  .h-flow { stroke-dasharray: 14 46; animation: h-flow 9s linear infinite; }
  .h-flow-2 { stroke-dasharray: 6 80; animation: h-flow-2 14s linear infinite; }
  .h-term-bar span { animation: h-grow 1.6s 1s var(--ease) both; }
  .h-tile { animation: h-fadeUp .8s var(--ease) both; animation-delay: calc(var(--n, 0) * 80ms + 600ms); }
  .h-tw { animation: h-twinkle 3.2s ease-in-out infinite; animation-delay: var(--d); }
  .h-shoot { animation: h-shoot 9s 3s ease-in infinite; }
  .h-terms .h-now .h-dot { animation: h-pulse 2s infinite; }
  .h-marquee { animation: h-marquee 50s linear infinite; }
  .h-leaf-a { animation: h-sway 7s ease-in-out infinite; transform-origin: 20% 90%; }
  .h-leaf-b { animation: h-sway 9s 1s ease-in-out infinite reverse; transform-origin: 20% 90%; }
  .h-phero h1, .h-phero .h-intro { animation: h-fadeUp .9s var(--ease) both; }
  .h-phero .h-intro { animation-delay: .12s; }

  @supports (animation-timeline: view()) {
    .h-progress { display: block; animation: h-grow linear both; animation-timeline: scroll(root); }
    .h-site:has(.h-home) .h-hdr { animation: h-condense linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
    .h-hdr .h-brand img { animation: h-shrink linear both; animation-timeline: scroll(root); animation-range: 0 140px; }
    .h-l1 { animation: h-para1 linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    .h-l2 { animation: h-para2 linear both; animation-timeline: scroll(root); animation-range: 0 700px; }
    .h-rv { animation: h-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
    .h-rv-2 { animation-range: entry 8% cover 34%; }
    .h-rv-3 { animation-range: entry 16% cover 40%; }
    .h-count { animation: h-countUp 1ms linear both; animation-timeline: view(); animation-range: entry 20% cover 45%; }
    .h-motto-bg { animation: h-paraBg linear both; animation-timeline: view(); }
    .h-motto h2 { animation: h-zoomIn linear both; animation-timeline: view(); animation-range: entry 10% cover 50%; }
    .h-card { animation: h-slideIn linear both; animation-timeline: view(inline); animation-range: entry 0% entry 80%; }
    .h-content > * { animation: h-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 18%; }
    .h-site .list-of-staff > div, .h-site .articles > a, .h-site .fr-card { animation: h-rise linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
  }
}
@keyframes h-wordUp { from { transform: translateY(110%) rotate(4deg); } to { transform: none; } }
@keyframes h-fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes h-popIn { from { opacity: 0; transform: scale(.85) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes h-draw { to { stroke-dashoffset: 0; } }
@keyframes h-kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-3%, 2%); } }
@keyframes h-spin { to { transform: rotate(360deg); } }
@keyframes h-bob { 50% { transform: translateY(-10px); } }
@keyframes h-driftA { from { transform: translateX(-10vw); } to { transform: translateX(90vw); } }
@keyframes h-driftB { from { transform: translateX(10vw); } to { transform: translateX(-90vw); } }
@keyframes h-flow { to { stroke-dashoffset: -600; } }   /* 10 dash repeats of 60: a seamless loop */
@keyframes h-flow-2 { to { stroke-dashoffset: -688; } } /* 8 repeats of 86 */
@keyframes h-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes h-twinkle { 0%, 100% { opacity: .15; transform: scale(.6); } 50% { opacity: 1; transform: scale(1); } }
@keyframes h-shoot { 0% { opacity: 0; transform: rotate(-24deg) translateX(0); } 3% { opacity: 1; } 9% { opacity: 0; transform: rotate(-24deg) translateX(-420px); } 100% { opacity: 0; } }
@keyframes h-pulse { 0% { box-shadow: 0 0 0 0 rgba(154, 205, 85, .7); } 70% { box-shadow: 0 0 0 12px rgba(154, 205, 85, 0); } 100% { box-shadow: 0 0 0 0 rgba(154, 205, 85, 0); } }
@keyframes h-marquee { to { transform: translateX(-50%); } }
@keyframes h-sway { 50% { transform: rotate(8deg); } }
@keyframes h-condense { to { background: rgba(255, 255, 255, .95); border-bottom-color: var(--line); box-shadow: 0 10px 30px -20px rgba(20, 48, 74, .4); } }
@keyframes h-shrink { to { width: 44px; height: 44px; } }
@keyframes h-para1 { to { transform: translateY(60px); } }
@keyframes h-para2 { to { transform: translateY(30px); } }
@keyframes h-rise { from { opacity: 0; transform: translateY(36px); } to { opacity: 1; transform: none; } }
@keyframes h-countUp { from { --num: 0; } to { --num: var(--to); } }
@keyframes h-paraBg { from { transform: translateY(-8%); } to { transform: translateY(8%); } }
@keyframes h-zoomIn { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }
@keyframes h-slideIn { from { opacity: 0; transform: translateX(60px) scale(.96); } to { opacity: 1; transform: none; } }

/* ===================== smaller screens ===================== */
@media (max-width: 1440px) {
  .h-hdr-in { gap: 12px; }
  .h-nav > ul > li > a { padding: 0 8px; }
  .h-hdr-act .h-btn { padding: 0 16px; }
}
@media (max-width: 1340px) {
  .h-nav > ul > li > a { padding: 0 6px; font-size: 14px; }
  .h-brand-txt span { display: none; }
}
@media (max-width: 1200px) {
  .h-burger { display: inline-flex; }
  .h-hdr-act { margin-left: auto; }
  .h-hide-sm { display: none; }
  .h-nav { position: fixed; inset: 0; z-index: 2; background: var(--ink); padding: 96px clamp(16px, 5vw, 40px) 120px; overflow-y: auto; transform: translateY(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility .45s; }
  .h-nav.open { transform: none; visibility: visible; }
  .h-menu-open { overflow: hidden; }
  .h-menu-open .design-switch { display: none; }
  .h-menu-open .h-burger { background: var(--kiwi); color: var(--ink); }
  .h-nav > ul { flex-direction: column; gap: 0; }
  .h-nav > ul > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .h-nav > ul > li > a, .h-nav > ul > li > a:hover, .h-nav > ul > li:focus-within > a { color: #fff; font: 700 24px/1.1 var(--display); min-height: 60px; padding: 0; background: none !important; }
  .h-nav > ul > li.h-cur > a { color: var(--kiwi); }
  .h-chev { display: none; }
  .h-sub-toggle { display: grid; place-items: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; transition: transform .35s var(--ease), background-color .2s; }
  .h-sub-open .h-sub-toggle { transform: rotate(45deg); background: var(--kiwi); color: var(--ink); }
  .h-sub { position: static; grid-column: 1 / -1; width: auto; max-width: none; min-width: 0; opacity: 1; visibility: visible; transform: none; box-shadow: none; background: transparent; padding: 0 0 14px; display: none; grid-template-columns: 1fr 1fr; }
  .h-sub-open .h-sub { display: grid; }
  .h-has-sub:hover .h-sub { transform: none; }
  .h-sub a { color: #c9dce6; font-weight: 500; padding: 8px 0; }
  .h-sub a:hover, .h-sub a[aria-current] { background: none; color: #fff; }
  .h-nav-extra { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
  .h-nav-extra a:not(.h-btn) { color: #c9dce6; font-weight: 600; }
  .h-nav-extra .h-btn { min-height: 56px; }
  .h-hero-grid { grid-template-columns: 1fr; padding-bottom: 160px; gap: 40px; }
  .h-roundel { width: min(360px, 82%); }
  .h-welcome-grid, .h-news-grid, .h-fund-card { grid-template-columns: 1fr; }
  .h-ftr-grid { grid-template-columns: 1fr 1fr; }
  .h-side { position: static; max-width: none; flex-basis: 100%; }
  .h-side h2 { display: none; }
  .h-side ul { display: flex; gap: 8px; overflow-x: auto; border: 0; padding-bottom: 6px; scrollbar-width: none; }
  .h-side ul::-webkit-scrollbar { display: none; }
  .h-side li a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; margin: 0; padding: 8px 16px; }
  .h-side li a:hover { padding-left: 16px; }
  .h-side li a.h-cur { background: #eef7e3; border-color: var(--kiwi); }
}
@media (max-width: 700px) {
  body { font-size: 16px; padding-bottom: 84px; }
  .h-brand img { width: 44px; height: 44px; }
  .h-brand-txt strong { font-size: 17px; }
  .h-hdr-in { gap: 10px; padding-block: 10px; }
  .h-search { display: none; }
  .h-dock { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; background: rgba(20, 48, 74, .97); border-radius: 22px; padding: 6px; box-shadow: 0 18px 40px -16px rgba(20, 48, 74, .7); }
  .h-dock a, .h-dock button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 16px; color: #fff; text-decoration: none; font: 600 11.5px/1 var(--body); background: transparent; border: 0; cursor: pointer; }
  .h-dock a:hover, .h-dock button:hover { background: rgba(255, 255, 255, .08); color: #fff; }
  .h-dock .h-dock-hot { background: var(--kiwi); color: var(--ink); }
  .h-dock .h-dock-hot:hover { background: var(--kiwi); color: var(--ink); }
  .h-hero-h { font-size: 46px; }
  .h-pin { display: none; }
  .h-cta-row .h-btn { flex: 1 1 100%; }
  .h-hills { height: 160px; }
  .h-hero-grid { padding-bottom: 110px; }
  .h-quick { margin-top: -64px; }
  .h-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .h-tile { padding: 16px; border-radius: 20px; }
  .h-tile p { font-size: 12.5px; }
  .h-tile h2 { font-size: 17px; }
  .h-tile .h-go { display: none; }
  .h-stats { gap: 10px; }
  .h-stat { padding: 18px; min-height: 140px; }
  .h-num { font-size: 46px; }
  .h-lbl { font-size: 13px; }
  .h-arrows { display: none; }
  .h-card { flex-basis: 78%; }
  .h-post { grid-template-columns: 64px minmax(0, 1fr); gap: 14px; }
  .h-post-arr { display: none; }
  .h-post-title { font-size: 17px; }
  .h-ftr-grid { grid-template-columns: 1fr; gap: 28px; }
  .h-phero { padding-bottom: 100px; }
  .h-edge { height: 70px; }
  .h-sp { width: 160px; height: 90px; }
}
@media print {
  .h-hdr, .h-ftr, .h-dock, .h-spons, .h-progress, .h-hills, .h-edge, .beau, .btt { display: none !important; }
  .h-phero { background: none; padding: 0 0 16px; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Home: frosted quick-link tiles, so the hills and river carry on behind them
   --------------------------------------------------------------------------------------------------------------- */
.h-tile { background: rgba(255, 255, 255, .8); -webkit-backdrop-filter: blur(6px) saturate(1.15); backdrop-filter: blur(6px) saturate(1.15); border-color: rgba(255, 255, 255, .75); }
.h-tile p { color: #2c4152; }

/* Principal's welcome: bento of a rotating photo, two stats, and one wide "grounds" tile */
/* A wide photo across the top (group shots, zoomed out), the two stats, then the grounds tile */
.h-bento { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.h-bento .h-stat { min-height: 170px; }
.h-bento .h-grounds { min-height: 0; }
.h-bento-photo { grid-column: 1 / -1; aspect-ratio: 5 / 2; display: flex; }
.h-bento .h-num { font-size: clamp(44px, 4.2vw, 64px); }
/* Grounds: each number sits above its label, so the three numbers line up however the labels wrap */
.h-grounds { grid-column: 1 / -1; flex-direction: row; justify-content: flex-start; align-items: flex-start; gap: 24px; padding: 24px 28px; }
.h-ground { position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.h-ground .h-num { font-size: clamp(40px, 3.6vw, 52px); }
.h-ground .h-lbl { font-size: 14.5px; line-height: 1.35; }
.h-rot { position: relative; flex: 1; border-radius: 24px 24px 24px 96px; overflow: hidden; background: var(--line); }
.h-rot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.h-rot img.is-on { opacity: 1; }
.h-rot-shade { position: absolute; left: 0; right: 0; bottom: 0; height: 120px; background: linear-gradient(to top, rgba(20, 48, 74, .62), rgba(20, 48, 74, 0)); pointer-events: none; }
.h-rot-cap { position: absolute; left: 26px; bottom: 18px; margin: 0; color: #fff; font: 800 20px/1.2 var(--display); }
.h-rot-dots { position: absolute; right: 10px; bottom: 6px; display: flex; }
.h-rot-dots button { width: 28px; height: 44px; border: 0; background: transparent; padding: 0; cursor: pointer; display: grid; place-items: center; }
.h-rot-dots span { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, .65); transition: width .3s, background-color .3s; }
.h-rot-dots .is-on span { width: 20px; border-radius: 5px; background: var(--kiwi); }
.h-rot-dots button:focus-visible { outline: 3px solid var(--kiwi); outline-offset: -8px; border-radius: 10px; }
@media (prefers-reduced-motion: reduce) { .h-rot img { transition: none; } }
@media (max-width: 1100px) { .h-grounds { flex-wrap: wrap; } .h-ground { flex: 1 1 160px; } }
@media (max-width: 700px) {
  .h-bento-photo { aspect-ratio: 2 / 1; }
  .h-bento .h-stat { min-height: 0; }
  .h-grounds { flex-wrap: wrap; gap: 18px 20px; }
  .h-ground { flex: 1 1 120px; }
  .h-rot { border-radius: 24px 24px 24px 64px; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Beau, the school dog: trots along the hills (Beau.tsx moves him); tap for a woof and today's pat count
   --------------------------------------------------------------------------------------------------------------- */
.beau { position: absolute; left: 0; top: 0; z-index: 2; width: clamp(84px, 9vw, 128px); will-change: transform; transition: opacity .4s; }
.h-phero .beau { width: clamp(70px, 7vw, 104px); }
/* The hero's layout box stretches over the hills: let taps through its empty parts so Beau can be patted */
.h-hero-grid, .h-hero-art { pointer-events: none; }
.h-hero-grid > div:first-child, .h-roundel { pointer-events: auto; }
.beau-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 20px; }
.beau-btn:focus-visible { outline: 3px solid var(--river); outline-offset: 4px; }
.beau-face { transform-origin: 50% 50%; }
.beau-face svg { display: block; width: 100%; height: auto; }
.beau .b-legA, .beau .b-legB, .beau .b-tail, .beau .b-ear { transform-origin: 0 0; }
.beau-bubble { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-35%); white-space: nowrap; background: #fff; color: var(--ink);
  font: 800 15px/1 var(--display); padding: 10px 14px; border-radius: 16px; box-shadow: 0 12px 30px -12px rgba(20, 48, 74, .45); opacity: 0; visibility: hidden; pointer-events: none; }
.beau-bubble.is-on { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .beau.is-walking .b-legA { animation: b-leg .48s ease-in-out infinite; }
  .beau.is-walking .b-legB { animation: b-leg .48s ease-in-out -.24s infinite; }
  .beau.is-walking .b-bob { animation: b-bob .24s ease-in-out infinite; }
  .beau.is-walking .b-ear { animation: b-ear .48s ease-in-out infinite; }
  .beau .b-tail { animation: b-tail .3s ease-in-out infinite; }
  .beau-bubble.is-on { animation: b-pop .35s var(--ease); }
}
@keyframes b-leg { 0%, 100% { transform: rotate(24deg); } 50% { transform: rotate(-24deg); } }
@keyframes b-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2.5px); } }
@keyframes b-tail { 0%, 100% { transform: rotate(-12deg); } 50% { transform: rotate(20deg); } }
@keyframes b-ear { 0%, 100% { transform: rotate(-8deg); } 50% { transform: rotate(12deg); } }
@keyframes b-pop { from { opacity: 0; transform: translate(-35%, 8px) scale(.7); } to { opacity: 1; transform: translateX(-35%); } }

/* Back to top, in the footer: Beau's ears peek over the edge, he pops up on hover or focus */
.h-ftr-top { display: inline-flex; align-items: center; gap: 12px; color: inherit; font-weight: 600; }
.h-ftr-base:has(.h-ftr-top) { align-items: center; }
.btt { position: relative; flex-shrink: 0; width: 72px; height: 72px; border-radius: 50%; background: var(--kiwi); color: var(--ink); overflow: hidden; display: block;
  box-shadow: 0 5px 0 -2px #5d8a2b; transition: transform .25s var(--ease); }
.btt:hover { transform: translateY(-3px); color: var(--ink); }
.btt:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.btt-arrow { position: absolute; left: 50%; top: 11px; margin-left: -11px; transition: transform .35s var(--ease); }
.btt-head { position: absolute; left: 50%; bottom: -47px; width: 63px; margin-left: -31.5px; transition: transform .45s var(--ease); }
.btt:hover .btt-arrow, .btt:focus-visible .btt-arrow { transform: translateY(-4px); }
.btt:hover .btt-head, .btt:focus-visible .btt-head { transform: translateY(-26px); }
.btt-ear { transform-origin: 0 0; }
@media (prefers-reduced-motion: no-preference) {
  .btt:hover .btt-ear, .btt:focus-visible .btt-ear { animation: b-earflick .9s ease-in-out .3s; }
  .btt-ear-r { animation-delay: .45s !important; }
}
@keyframes b-earflick { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(-16deg); } 60% { transform: rotate(5deg); } }

/* 404: Beau couldn't sniff out that page */
.h-404 { position: relative; overflow: hidden; container-type: inline-size; background: var(--sky); border-radius: 32px; padding: clamp(32px, 6vw, 72px) clamp(24px, 6vw, 72px) 220px;
  margin-block: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 16px; }
.h-404 .h-404-code { margin: 0; font: 800 clamp(84px, 12vw, 150px)/1 var(--display); color: var(--river-ink); letter-spacing: -0.03em; }
.h-404 h1 { margin: 0; font-size: clamp(30px, 4vw, 44px); }
.h-404 p { margin: 0; max-width: 34em; color: var(--ink-2); font-size: 17px; line-height: 1.6; }
.h-404-hill { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 150px; display: block; }
.h-404-dog { position: absolute; left: 6%; bottom: 66px; width: clamp(130px, 18vw, 190px); }
.h-404-dog svg { display: block; width: 100%; height: auto; }
.h-404-q { position: absolute; right: 2%; top: -18%; font: 800 28px/1 var(--display); color: var(--teal-ink); }
.bs-legA, .bs-legB, .bs-tail, .bs-ear { transform-origin: 0 0; }
.bs-nose { transform-origin: 150px 40px; }
@media (prefers-reduced-motion: no-preference) {
  .h-404-dog { animation: h-roam 16s linear infinite; }
  .h-404-flip { animation: h-roamflip 16s step-end infinite; }
  .bs-legA { animation: b-legslow .9s ease-in-out infinite; }
  .bs-legB { animation: b-legslow .9s ease-in-out -.45s infinite; }
  .bs-tail { animation: b-tail .5s ease-in-out infinite; }
  .bs-ear { animation: b-ear .9s ease-in-out infinite; }
  .bs-nose { animation: b-sniff 1.8s ease-in-out infinite; }
  .h-404-q { animation: b-q 2.4s ease-in-out infinite; }
}
.h-404-flip { transform-origin: 50% 50%; }
@keyframes h-roam { 0% { transform: translateX(0); } 45%, 50% { transform: translateX(calc(88cqi - 100% - 12cqi)); } 95%, 100% { transform: translateX(0); } }
@keyframes h-roamflip { 0% { transform: scaleX(1); } 47.5% { transform: scaleX(-1); } 97.5% { transform: scaleX(1); } }
@keyframes b-legslow { 0%, 100% { transform: rotate(14deg); } 50% { transform: rotate(-14deg); } }
@keyframes b-sniff { 0%, 100% { transform: rotate(0); } 30%, 60% { transform: rotate(18deg); } 45% { transform: rotate(14deg); } }
@keyframes b-q { 0%, 100% { transform: translateY(0) rotate(-6deg); opacity: .6; } 50% { transform: translateY(-8px) rotate(6deg); opacity: 1; } }


/* Staff page: Beau's lifetime pats from website visitors */
.h-site .beau-pats { display: inline-flex; align-items: center; gap: 6px; margin: 8px 0 0; padding: 5px 12px; border-radius: 999px; background: #e9f5dc; color: var(--kiwi-ink); font-size: 13.5px; font-weight: 700; }

/* The address pin in the home hero opens a Google map (MapPin.tsx); the map is rendered in <body> */
button.h-pin { border: 0; cursor: pointer; font: 700 14px/1 var(--body); color: var(--ink); z-index: 2; transition: box-shadow .25s, transform .25s var(--ease); }
button.h-pin:hover { box-shadow: 0 16px 34px -12px rgba(20, 48, 74, .6); }
button.h-pin:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; }
.h-map-pop { position: absolute; z-index: 60; width: 380px; background: #fff; color: var(--ink); border-radius: 22px; overflow: hidden; box-shadow: 0 30px 70px -20px rgba(20, 48, 74, .55); font-family: var(--body); }
.h-map-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 14px 12px 12px 18px; }
.h-map-head strong { display: block; font: 800 17px/1.2 var(--display); }
.h-map-head span { display: block; margin-top: 3px; font-size: 13.5px; color: var(--ink-2); }
.h-map-close { flex-shrink: 0; width: 44px; height: 44px; margin: -6px -2px 0 0; border-radius: 50%; border: 0; background: var(--mist); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.h-map-close:hover { background: var(--line); }
.h-map-close:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }
.h-map-pop iframe { display: block; width: 100%; height: 240px; border: 0; background: var(--sky); }
.h-map-actions { display: flex; gap: 8px; flex-wrap: wrap; padding: 12px; }
.h-map-actions .h-btn { flex: 1 1 auto; justify-content: center; min-height: 46px; padding: 0 16px; font-size: 14.5px; }
@media (prefers-reduced-motion: no-preference) { .h-map-pop { animation: h-mapIn .3s var(--ease); } }
@keyframes h-mapIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@media (max-width: 700px) {
  button.h-pin { display: flex; right: -4%; top: 4%; padding: 8px 12px; font-size: 13px; }
  .h-map-pop { position: fixed; left: 12px; right: 12px; bottom: 92px; width: auto; }
  .h-map-pop iframe { height: min(42vh, 280px); }
}
@media print { .h-map-pop { display: none; } }

/* Footer: discreet staff login (website admin; pretix has its own at tickets.…/control/) */
.h-ftr-staff { color: inherit; opacity: .8; text-decoration: underline; text-underline-offset: 3px; }
.h-ftr-staff:hover { opacity: 1; color: #fff; }

/* Header: Log in (staff now, parents later). Icon only until there's room for the word. */
.h-login { min-width: 44px; height: 44px; padding: 0 12px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px; transition: background-color .2s; }
.h-login:hover { background: rgba(20, 48, 74, .07); color: var(--ink); }
.h-login:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }
.h-login-txt { display: none; }
@media (min-width: 1560px) { .h-login-txt { display: inline; } }
.h-login.is-in { background: #e9f5dc; color: var(--kiwi-ink); }
.h-login.is-in .h-login-txt { display: inline; }
@media (max-width: 700px) { .h-login { display: none; } }

/* ---------------------------------------------------------------------------------------------------------------
   Home: "What's on" (the school's Google Calendar, WhatsOn.tsx) and the Facebook card
   --------------------------------------------------------------------------------------------------------------- */
.h-wo { padding-block: clamp(56px, 7vw, 96px); }
.h-wo-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; margin-bottom: 28px; }
.h-wo-head .h-h2 { margin-bottom: 0; }
.h-wo-subs { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; }
.h-wo-grid-outer { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 24px; align-items: start; }
.h-wo-card { border: 1px solid var(--line); border-radius: 28px; padding: 24px; background: #fff; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.h-wo-cal { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 28px; }
.h-wo-month { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.h-wo-month strong { font: 800 20px/1 var(--display); }
.h-wo-nav { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.h-wo-nav:hover:not(:disabled) { border-color: var(--ink); }
.h-wo-nav:disabled { opacity: .35; cursor: default; }
.h-wo-grid { display: grid; grid-template-columns: 32px repeat(7, minmax(0, 1fr)); gap: 4px; }
.h-wo-dow { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); text-align: center; padding: 4px 0; }
.h-wo-wk { font-size: 11px; font-weight: 800; color: var(--teal-ink); display: grid; place-items: center; border-radius: 10px; background: #e1f3f5; }
.h-wo-wk.is-off { background: transparent; color: #9fb6c6; }
.h-wo-day { position: relative; height: 42px; border-radius: 12px; border: 0; background: transparent; font: 600 14.5px/1 var(--body); color: var(--ink); cursor: pointer; display: grid; place-items: center; padding: 0; }
.h-wo-day:hover { background: var(--mist); }
.h-wo-day.is-out { color: #a9bccb; }
.h-wo-day.is-closed { color: #b4331f; }
.h-wo-day.is-today { background: var(--ink); color: #fff; }
.h-wo-day.is-sel { box-shadow: inset 0 0 0 2px var(--river); }
.h-wo-day:focus-visible, .h-wo-nav:focus-visible, .h-wo-add:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }
.h-wo-dots { position: absolute; left: 50%; bottom: 5px; transform: translateX(-50%); display: flex; gap: 3px; }
.h-wo-dots i, .h-wo-legend i { width: 5px; height: 5px; border-radius: 50%; display: inline-block; }
.h-wo-k-event { background: #3b7a1c; } .h-wo-k-class { background: #0d6a9e; } .h-wo-k-closed { background: #b4331f; }
.h-wo-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: 12.5px; color: var(--ink-2); }
.h-wo-legend span { display: inline-flex; align-items: center; gap: 6px; }
.h-wo-legend i { width: 8px; height: 8px; }
.h-wo-list { min-width: 0; }
.h-wo-list-h { margin: 0 0 6px 14px; font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.h-wo-list ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.h-wo-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 18px; transition: background-color .2s; }
.h-wo-row:hover { background: var(--mist); }
.h-wo-date { border-radius: 14px; text-align: center; padding: 8px 0 9px; line-height: 1; }
.h-wo-date small { display: block; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.h-wo-date b { display: block; font: 800 25px/1 var(--display); margin: 3px 0; }
.h-wo-t-event { background: #e9f5dc; color: #3b7a1c; } .h-wo-t-class { background: #e3eef8; color: #0d6a9e; } .h-wo-t-closed { background: #fdebe8; color: #b4331f; }
.h-wo-what strong { font: 700 16.5px/1.25 var(--display); }
.h-wo-tag { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; margin-left: 8px; vertical-align: 2px; }
.h-wo-when { display: block; margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.h-wo-add { width: 44px; height: 44px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.h-wo-add:hover { border-color: var(--ink); color: var(--ink); }
.h-wo-none { margin: 8px 12px; color: var(--ink-2); }
.h-wo-term { padding: 14px 16px; border-radius: 16px; background: #e1f3f5; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.h-wo-term div { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 14px; }
.h-wo-term strong { font-weight: 800; }
.h-wo-term div span { color: var(--teal-ink); font-weight: 700; }
.h-wo-bar { height: 8px; border-radius: 9px; background: #fff; overflow: hidden; display: block; }
.h-wo-bar span { display: block; height: 100%; background: var(--teal); border-radius: 9px; }

.h-fb { position: relative; overflow: hidden; border-radius: 28px; background: var(--ink); color: #fff; padding: 26px 26px 72px; display: flex; flex-direction: column; gap: 16px; }
.h-fb-hill { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; fill: #1c4060; }
.h-fb > :not(.h-fb-hill) { position: relative; }
.h-fb-id { display: flex; align-items: center; gap: 14px; }
.h-fb-id strong { display: block; font: 800 19px/1.2 var(--display); }
.h-fb-id span { font-size: 14px; color: #c9d6df; }
.h-fb-logo { width: 52px; height: 52px; border-radius: 16px; background: #1877f2; display: grid; place-items: center; flex-shrink: 0; }
.h-fb p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #d3e2ea; }
.h-fb-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.h-fb-photos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 14px; display: block; }
.h-fb-btn { align-self: flex-start; background: #fff; color: var(--ink); }
.h-fb-btn:hover { background: var(--kiwi); color: var(--ink); }
@media (max-width: 1100px) {
  .h-wo-grid-outer { grid-template-columns: 1fr; }
  .h-fb { padding-bottom: 80px; }
}
@media (max-width: 760px) {
  .h-wo-cal { grid-template-columns: 1fr; }
  .h-wo-card { padding: 16px; border-radius: 24px; }
  .h-wo-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 10px; padding: 8px 6px; }
  .h-wo-list-h { margin-left: 6px; }
}

/* /login: where each kind of person signs in */
.h-signin { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 18px; padding-block: clamp(32px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.h-signin-card { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 28px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  box-shadow: 0 18px 40px -30px rgba(20, 48, 74, .45); transition: transform .35s var(--ease), box-shadow .35s; }
a.h-signin-card:hover { transform: translateY(-6px); box-shadow: 0 28px 50px -28px rgba(20, 48, 74, .5); color: var(--ink); }
a.h-signin-card:focus-visible { outline: 3px solid var(--river); outline-offset: 4px; }
.h-signin-card h2 { margin: 6px 0 0; font-size: 26px; }
.h-signin-card p { margin: 0; color: var(--ink-2); font-size: 16px; line-height: 1.55; }
.h-signin-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; }
.h-signin-ink .h-signin-ic { background: var(--ink); color: var(--kiwi); }
.h-signin-teal .h-signin-ic { background: #e1f3f5; color: var(--teal-ink); }
.h-signin-soon { background: var(--mist); border-style: dashed; box-shadow: none; }
.h-signin-soon .h-signin-ic, .h-signin-kiwi .h-signin-ic { background: #e9f5dc; color: var(--kiwi-ink); }
.h-signin-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--river-ink); }
.h-signin-card:hover .h-signin-go svg { transform: translateX(4px); }
.h-signin-go svg { transition: transform .3s var(--ease); }
.h-signin-tag { margin-top: auto; align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: #e9f5dc; color: var(--kiwi-ink); font-size: 13px; font-weight: 700; }

/* ---------------------------------------------------------------------------------------------------------------
   Fundraising in the Hills design: /fundraising, /fundraising/donate, checkout thank-you and cancelled
   --------------------------------------------------------------------------------------------------------------- */
.h-fr { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 80px); padding-block: clamp(40px, 5vw, 64px) clamp(56px, 7vw, 96px); }
.h-fr .h-h2 { margin: 0 0 18px; }
.h-fr-give { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: clamp(28px, 4vw, 44px); border-radius: 32px; background: #e9f5dc; }
.h-fr-give p { margin: 0 0 22px; color: var(--ink-2); font-size: 17.5px; line-height: 1.6; max-width: 34em; }
.h-fr-facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.h-fr-facts li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 14px 18px; border-radius: 18px; background: #fff; }
.h-fr-facts b { font: 800 17px/1.2 var(--display); color: var(--kiwi-ink); }
.h-fr-facts span { font-size: 15px; color: var(--ink-2); line-height: 1.45; }
.h-fr-camps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 20px; }
.h-fr-camp { display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 18px 40px -30px rgba(20, 48, 74, .45); }
.h-fr-camp img, .h-fr-camp-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.h-fr-camp-art { background: linear-gradient(160deg, var(--sky) 0 55%, var(--hill-1) 55% 72%, var(--hill-2) 72% 86%, var(--hill-3) 86%); }
.h-fr-camp-body { display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 24px; flex: 1; }
.h-fr-camp-body h3 { margin: 0; font-size: 22px; }
.h-fr-camp-body p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.h-fr-camp-body .h-btn { margin-top: auto; align-self: flex-start; }
.h-site .fr-progress-label { font-size: 14px; font-weight: 600; color: var(--ink-2); margin: 6px 0 0; }
.h-fr-shop-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 32px; flex-wrap: wrap; }
.h-fr-shop-head p { margin: 0 0 18px; color: var(--ink-2); }
.h-fr-shop-card { border: 1px solid var(--line); border-radius: 28px; padding: clamp(16px, 3vw, 28px); background: #fff; }

.h-fr-donate { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: start; padding-block: clamp(36px, 5vw, 56px) clamp(56px, 7vw, 96px); }
.h-fr-formcard { border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 32px); background: #fff; box-shadow: 0 24px 50px -36px rgba(20, 48, 74, .5); }
.h-site .h-fr-formcard .fr-form { display: grid; gap: 18px; max-width: none; }
.h-site .h-fr-formcard .fr-form fieldset { margin: 0; }
.h-site .h-fr-formcard .fr-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.h-site .h-fr-formcard .fr-presets input { position: absolute; opacity: 0; pointer-events: none; }
.h-site .h-fr-formcard .fr-presets label:has(input:focus-visible) { outline: 3px solid var(--river); outline-offset: 2px; }
.h-site .h-fr-formcard input[type='text'], .h-site .h-fr-formcard input[type='email'], .h-site .h-fr-formcard input[type='number'], .h-site .h-fr-formcard select, .h-site .h-fr-formcard textarea {
  width: 100%; min-height: 50px; border: 2px solid var(--line); border-radius: 14px; padding: 10px 14px; font: 500 16px/1.4 var(--body); color: var(--ink); background: #fff; }
.h-site .h-fr-formcard textarea { min-height: 96px; }
.h-site .h-fr-formcard :is(input, select, textarea):focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 4px rgba(30, 140, 200, .15); }
.h-site .h-fr-formcard .fr-hint { margin: 6px 0 0; font-size: 13.5px; color: var(--ink-2); }
.h-site .h-fr-formcard button[type='submit'] { width: 100%; min-height: 56px; font-size: 17px; background: var(--kiwi); color: var(--ink) !important; box-shadow: 0 6px 0 -2px #5d8a2b; }
.h-site .h-fr-formcard button[type='submit']:hover { background: #a8d66a; }
.h-fr-aside { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 100px; }
.h-fr-chosen { border-radius: 26px; padding: 22px 24px; background: var(--ink); color: #fff; }
.h-fr-chosen .h-eyebrow { color: var(--kiwi); margin: 0; }
.h-fr-chosen h2 { color: #fff; font-size: 26px; margin: 6px 0 6px; }
.h-fr-chosen p { margin: 0 0 12px; color: #d3e2ea; font-size: 15px; }
.h-site .h-fr-chosen .fr-progress { background: rgba(255, 255, 255, .14); }
.h-site .h-fr-chosen .fr-progress-label { color: #d3e2ea; }
.h-fr-facts-col li { background: var(--mist); grid-template-columns: 100px minmax(0, 1fr); }
.h-fr-result { padding-block: clamp(36px, 5vw, 56px) clamp(56px, 7vw, 96px); }
.h-fr-result-card { max-width: 720px; border: 1px solid var(--line); border-radius: 28px; padding: clamp(22px, 4vw, 36px); background: #fff; font-size: 17px; }
.h-fr-result-card > :first-child { margin-top: 0; }
@media (max-width: 900px) {
  .h-fr-give, .h-fr-donate { grid-template-columns: 1fr; }
  .h-fr-aside { position: static; }
}
@media (max-width: 520px) { .h-fr-facts li { grid-template-columns: 1fr; gap: 2px; } }

/* ---------------------------------------------------------------------------------------------------------------
   Family area (/whanau): families, children, people and permissions
   --------------------------------------------------------------------------------------------------------------- */
.h-wh { display: flex; flex-direction: column; gap: 24px; padding-block: clamp(32px, 5vw, 56px) clamp(56px, 7vw, 96px); }
.h-wh-card { border: 1px solid var(--line); border-radius: 26px; padding: clamp(20px, 3vw, 28px); background: #fff; }
.h-wh-card h2 { margin: 0 0 8px; font-size: 28px; }
.h-wh-card h3 { margin: 0 0 12px; font-size: 22px; }
.h-wh-card h4 { margin: 18px 0 8px; font-size: 16px; }
.h-wh-welcome { max-width: 720px; }
.h-wh-ticks { margin: 0 0 20px; padding-left: 22px; color: var(--ink-2); }
.h-wh-ticks li { margin: 4px 0; }
.h-wh-small { font-size: 14px; color: var(--ink-2); margin: 10px 0 0; }
.h-wh-notice { margin: 0; padding: 14px 18px; border-radius: 16px; background: #e9f5dc; color: var(--kiwi-ink); font-weight: 600; }
.h-wh-notice.is-err { background: #fdebe8; color: #b4331f; }
.h-wh-family { display: flex; flex-direction: column; gap: 18px; padding: clamp(20px, 3vw, 28px); border-radius: 30px; background: var(--mist); }
.h-wh-famhead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.h-wh-famhead h2 { margin: 4px 0 0; font-size: clamp(28px, 3.4vw, 40px); }
.h-wh-quick { display: flex; gap: 8px; flex-wrap: wrap; }
.h-wh-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 18px; align-items: start; }
.h-wh-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.h-wh-list > li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: 16px; background: var(--mist); }
.h-wh-list > li.h-wh-invite { grid-template-columns: minmax(0, 1fr) auto; }
.h-wh-list > li.h-wh-empty { display: block; color: var(--ink-2); }
.h-wh-list strong { display: block; font-weight: 700; }
.h-wh-list small { display: block; font-size: 13.5px; color: var(--ink-2); }
.h-wh-avatar { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #e9f5dc; color: var(--kiwi-ink); font: 800 19px/1 var(--display); }
.h-wh-avatar.is-person { background: #e1f3f5; color: var(--teal-ink); border-radius: 50%; }
.h-wh-chip { font-size: 12.5px; font-weight: 700; padding: 5px 10px; border-radius: 999px; background: #fff1d6; color: #7a5200; white-space: nowrap; }
.h-wh-chip.is-ok { background: #e9f5dc; color: var(--kiwi-ink); }
.h-wh-perms { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.h-wh-perms span { font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); }
.h-wh-person { align-items: start !important; }
.h-wh-edit, .h-wh-more { grid-column: 1 / -1; }
.h-wh-edit > summary, .h-wh-more > summary { cursor: pointer; font-weight: 700; color: var(--river-ink); list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.h-wh-edit > summary::before, .h-wh-more > summary::before { content: '+'; font: 800 18px/1 var(--display); }
.h-wh-edit[open] > summary::before, .h-wh-more[open] > summary::before { content: '–'; }
.h-wh-edit > summary::-webkit-details-marker, .h-wh-more > summary::-webkit-details-marker { display: none; }
.h-wh-more { margin-top: 10px; }
.h-wh-form { display: grid; gap: 12px; margin-top: 8px; }
.h-wh-form label { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; }
.h-wh-form input:not([type='checkbox']), .h-wh-form select, .h-wh-copy { width: 100%; min-height: 46px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; font: 500 15.5px/1.4 var(--body); color: var(--ink); background: #fff; }
.h-wh-form :is(input, select):focus, .h-wh-copy:focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 4px rgba(30, 140, 200, .15); }
.h-wh-copy { margin-top: 6px; font-size: 12.5px; min-height: 36px; color: var(--ink-2); }
.h-wh-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 12px; align-items: end; }
.h-wh-form .h-btn { justify-self: start; }
.h-wh-checks { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.h-wh-checks legend { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.h-wh-form .h-wh-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; padding: 8px 10px; border-radius: 12px; background: var(--mist); }
.h-wh-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--kiwi-ink); flex-shrink: 0; }
.h-wh-check small { display: block; font-weight: 500; color: var(--ink-2); }
.h-wh-link, .h-wh-link-danger { border: 0; background: none; padding: 8px 0; font: 700 14.5px/1 var(--body); cursor: pointer; color: var(--river-ink); text-decoration: underline; text-underline-offset: 3px; min-height: 44px; }
.h-wh-link-danger { color: #b4331f; }
.h-wh-me { display: grid; gap: 4px; }
@media (max-width: 700px) {
  .h-wh-list > li { grid-template-columns: 40px minmax(0, 1fr); }
  .h-wh-list > li > .h-wh-chip { grid-column: 2; justify-self: start; }
}

/* ---------------------------------------------------------------------------------------------------------------
   Quiz night: sign up, teams and the categories they cover
   --------------------------------------------------------------------------------------------------------------- */
.h-qz { display: flex; flex-direction: column; gap: 24px; padding-block: clamp(32px, 5vw, 56px) clamp(56px, 7vw, 96px); }
.h-qz h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 12px; }
.h-qz-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.h-qz-facts div { border-radius: 22px; padding: 18px 20px; background: var(--mist); display: flex; flex-direction: column; gap: 4px; }
.h-qz-facts b { font: 800 clamp(26px, 3vw, 36px)/1 var(--display); color: var(--ink); }
.h-qz-facts span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.h-qz-facts div:first-child { background: #e9f5dc; } .h-qz-facts div:first-child b { color: var(--kiwi-ink); }
.h-qz-facts p { grid-column: 1 / -1; margin: 0; color: var(--ink-2); }
.h-qz-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.h-qz-signup, .h-qz-teams, .h-qz-mine { border: 1px solid var(--line); border-radius: 28px; padding: clamp(20px, 3vw, 28px); background: #fff; }
.h-qz-mine { background: #e9f5dc; border-color: #d3eab9; }
.h-qz-form { display: grid; gap: 18px; }
.h-qz-modes { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.h-qz-mode { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px 14px 16px; border-radius: 18px; border: 2px solid var(--line); cursor: pointer; transition: border-color .2s, background-color .2s; }
.h-qz-mode input { position: absolute; opacity: 0; pointer-events: none; }
.h-qz-mode strong { font: 800 16.5px/1.2 var(--display); }
.h-qz-mode span { font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.h-qz-mode.is-on { border-color: var(--ink); background: var(--mist); box-shadow: inset 0 0 0 1px var(--ink); }
.h-qz-mode:has(input:focus-visible) { outline: 3px solid var(--river); outline-offset: 2px; }
.h-qz-account { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 18px; background: #fff7e6; }
.h-qz-account p { margin: 0; flex: 1 1 260px; font-size: 14.5px; }
.h-qz-signed { margin: 0; padding: 12px 16px; border-radius: 16px; background: var(--mist); font-size: 14.5px; }
.h-qz-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 12px; align-items: end; }
.h-qz label, .h-qz-extra { display: grid; gap: 6px; font-weight: 700; font-size: 14.5px; }
.h-qz label small, .h-qz legend small { font-weight: 500; color: var(--ink-2); }
.h-qz input:not([type='checkbox']):not([type='radio']), .h-qz select { width: 100%; min-height: 48px; border: 2px solid var(--line); border-radius: 12px; padding: 8px 12px; font: 500 16px/1.4 var(--body); color: var(--ink); background: #fff; }
.h-qz :is(input, select):focus { outline: none; border-color: var(--river); box-shadow: 0 0 0 4px rgba(30, 140, 200, .15); }
.h-qz .h-qz-inline { display: flex; align-items: center; gap: 10px; font-weight: 600; min-height: 48px; }
.h-qz-inline input { width: 20px; height: 20px; accent-color: var(--kiwi-ink); }
.h-qz-cats, .h-qz-pick { border: 0; margin: 0; padding: 0; }
.h-qz-cats legend, .h-qz-pick legend { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.h-qz-cats > div { display: flex; flex-wrap: wrap; gap: 8px; }
.h-qz .h-qz-cat { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 2px solid var(--line); font-weight: 600; font-size: 14px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.h-qz-cat input { position: absolute; opacity: 0; pointer-events: none; }
.h-qz-cat.is-on { background: var(--kiwi); border-color: var(--kiwi); color: var(--ink); }
.h-qz-cat.is-off { opacity: .45; cursor: default; }
.h-qz-cat:has(input:focus-visible) { outline: 3px solid var(--river); outline-offset: 2px; }
.h-qz-pick { display: grid; gap: 8px; }
.h-qz .h-qz-teamopt { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; border: 2px solid var(--line); cursor: pointer; font-weight: 500; }
.h-qz-teamopt input { width: 20px; height: 20px; accent-color: var(--ink); }
.h-qz-teamopt.is-on { border-color: var(--ink); background: var(--mist); }
.h-qz-teamopt strong { display: block; font: 800 16px/1.2 var(--display); }
.h-qz-teamopt small { display: block; font-size: 13px; color: var(--ink-2); }
.h-qz-gain { font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--mist); color: var(--ink-2); white-space: nowrap; }
.h-qz-gain.is-good { background: #e9f5dc; color: var(--kiwi-ink); }
.h-qz-form .h-btn-lg { justify-self: start; }
.h-qz-pay { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.h-qz-pay h3 { margin: 0 0 6px; font-size: 18px; }
.h-qz-pay p { margin: 0 0 12px; color: var(--ink-2); }
.h-qz-teams ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h-qz-team { padding: 14px 16px; border-radius: 20px; background: var(--mist); display: grid; gap: 10px; }
.h-qz-team.is-full { opacity: .78; }
.h-qz-teamhead { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.h-qz-teamhead strong { font: 800 18px/1.2 var(--display); }
.h-qz-seats { display: flex; gap: 4px; flex-shrink: 0; }
.h-qz-seats i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #b9cdd6; }
.h-qz-seats i.is-taken { background: var(--ink); border-color: var(--ink); }
.h-qz-covers { display: flex; flex-wrap: wrap; gap: 4px; }
.h-qz-covers span { font-size: 11.5px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: #fff; color: #9fb2bd; border: 1px solid var(--line); }
.h-qz-covers span.is-on { background: #e1f3f5; color: var(--teal-ink); border-color: #bfe6eb; }
.h-qz-join { justify-self: start; font-weight: 700; color: var(--river-ink); min-height: 32px; display: inline-flex; align-items: center; }
.h-qz-closed { font-size: 13px; font-weight: 700; color: var(--ink-2); }
.h-qz-myteam { display: grid; gap: 12px; margin-top: 10px; padding: 16px; border-radius: 20px; background: #fff; }
.h-qz-players { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.h-qz-players li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--mist); }
.h-qz-players strong { display: block; }
.h-qz-players small { display: block; font-size: 13px; color: var(--ink-2); }
.h-qz-wait { margin: 0; font-weight: 600; }
@media (max-width: 1000px) { .h-qz-grid { grid-template-columns: 1fr; } }
@media (max-width: 700px) {
  .h-qz-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .h-qz-modes { grid-template-columns: 1fr; }
}
.h-fr-quiz { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto auto; column-gap: 24px; row-gap: 6px; align-items: center; padding: clamp(22px, 3.5vw, 36px); border-radius: 30px; background: var(--ink); color: #fff; text-decoration: none; }
.h-fr-quiz:hover { color: #fff; box-shadow: 0 24px 50px -30px rgba(20, 48, 74, .7); }
.h-fr-quiz .h-eyebrow { color: var(--kiwi); margin: 0; }
.h-fr-quiz strong { font: 800 clamp(24px, 3vw, 34px)/1.15 var(--display); }
.h-fr-quiz span:not(.h-eyebrow):not(.h-btn) { color: #d3e2ea; }
.h-fr-quiz .h-btn { grid-column: 2; grid-row: 1 / span 3; }
@media (max-width: 700px) { .h-fr-quiz { grid-template-columns: 1fr; } .h-fr-quiz .h-btn { grid-column: 1; grid-row: auto; justify-self: start; margin-top: 8px; } }

/* School bus (family area): the application form and the private route preview */
.bus-map { width: 100%; border-radius: 20px; overflow: hidden; z-index: 0; }
.bus-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font: 800 13px/1 var(--display); border: 3px solid #fff; box-shadow: 0 4px 10px rgba(20, 48, 74, .35); }
.h-bus-form { gap: 18px; }
.h-bus-addr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.h-bus-preview { display: grid; gap: 12px; }
.h-bus-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.h-bus-stats div { border-radius: 18px; padding: 14px 16px; background: #e9f5dc; display: grid; gap: 4px; }
.h-bus-stats b { font: 800 26px/1 var(--display); color: var(--kiwi-ink); }
.h-bus-stats span { font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.h-bus-days { border: 0; margin: 0; padding: 0; }
.h-bus-days legend { font-weight: 700; font-size: 14.5px; margin-bottom: 8px; }
.h-bus-grid { display: grid; grid-template-columns: 96px repeat(5, minmax(44px, 1fr)); gap: 6px; align-items: center; max-width: 520px; }
.h-bus-dh { text-align: center; font-weight: 700; font-size: 13px; color: var(--ink-2); }
.h-bus-rh { font-weight: 700; font-size: 14px; }
.h-wh-form .h-bus-cell { display: grid; place-items: center; min-height: 46px; border-radius: 12px; background: var(--mist); cursor: pointer; }
.h-bus-cell input { width: 22px; height: 22px; accent-color: var(--kiwi-ink); }
.h-bus-cell:has(input:checked) { background: #e9f5dc; }
.h-bus-notes { width: 100%; border: 2px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 500 15.5px/1.4 var(--body); color: var(--ink); }
@media (max-width: 600px) { .h-bus-addr { grid-template-columns: 1fr; } .h-bus-stats { grid-template-columns: 1fr; } .h-bus-grid { grid-template-columns: 78px repeat(5, minmax(36px, 1fr)); } }

/* ---------- your home (/whanau): tiles for everything a signed-in person can do ---------- */
.h-hub { padding-block: 48px 96px; display: flex; flex-direction: column; gap: 56px; }
.h-hub-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 20px; }
.h-hub-head h2 { margin: 0; font: 800 clamp(24px, 2.6vw, 30px)/1.1 var(--display); letter-spacing: -0.015em; }
.h-hub-head p { margin: 0; color: var(--ink-2); max-width: 60ch; }
.h-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.h-hub-tile { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px; border-radius: 24px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s; }
.h-hub-tile:hover { transform: translateY(-4px); box-shadow: 0 24px 44px -26px rgba(20, 48, 74, .45); color: var(--ink); border-color: transparent; }
.h-hub-tile:focus-visible { outline: 3px solid var(--river); outline-offset: 3px; }
.h-hub-tile h3 { margin: 4px 0 0; font: 700 20px/1.2 var(--display); }
.h-hub-tile p { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.h-hub-tile .h-wh-chip { align-self: flex-start; margin-top: auto; }
.h-hub-ic { position: relative; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; transition: transform .45s var(--ease); }
.h-hub-tile:hover .h-hub-ic { transform: rotate(-8deg) scale(1.06); }
.h-hub-kiwi .h-hub-ic { background: #e9f5dc; color: var(--kiwi-ink); }
.h-hub-teal .h-hub-ic { background: #e1f3f5; color: var(--teal-ink); }
.h-hub-river .h-hub-ic { background: #e3eef8; color: var(--river-ink); }
.h-hub-red .h-hub-ic { background: #fdebe8; color: #b4331f; }
.h-hub-ink .h-hub-ic { background: var(--ink); color: var(--kiwi); }
.h-hub-badge { position: absolute; top: -7px; right: -9px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: #c2412d; color: #fff;
  font: 800 12px/22px var(--sans); text-align: center; box-shadow: 0 0 0 3px #fff; }
.h-hub-ext { margin-top: auto; padding-top: 4px; font-size: 12.5px; font-weight: 600; line-height: 1.4; color: var(--river-ink); }
.h-hub-me { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 18px 22px; border-radius: 18px; background: var(--mist); color: var(--ink-2); font-size: 14.5px; }
.h-hub-me-links { display: flex; align-items: center; gap: 18px; }
.h-hub-me-links a { font-weight: 700; }
@media (prefers-reduced-motion: no-preference) { .h-hub-tile { animation: h-fadeUp .7s var(--ease) both; animation-delay: calc(var(--n, 0) * 60ms + 150ms); } }

/* Log in: one way in for everyone, plus direct links for staff */
.h-login-main { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px; padding-block: 48px 96px; align-items: start; }
.h-login-primary h2 { font-size: clamp(24px, 2.4vw, 30px); }
.h-login-direct { padding: 28px; border-radius: 24px; background: var(--mist); }
.h-login-direct h2 { margin: 0 0 6px; font: 700 20px/1.2 var(--display); }
.h-login-direct > p { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }
.h-login-direct ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.h-login-direct a { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: #fff; color: var(--ink); text-decoration: none; border: 1px solid var(--line); transition: border-color .2s; }
.h-login-direct a:hover { border-color: var(--river); }
.h-login-direct a span { font-size: 13.5px; color: var(--ink-2); }
@media (max-width: 860px) { .h-login-main { grid-template-columns: 1fr; } }

/* Signed in, on the home page: the way to your own home */
.h-me-bar { background: var(--ink); color: #fff; }
.h-me-bar-in { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; padding-block: 16px; }
.h-me-bar-txt { display: flex; flex-direction: column; gap: 2px; }
.h-me-bar-txt strong { font: 800 22px/1.15 var(--display); letter-spacing: -0.01em; }
.h-me-bar-txt span { color: #c9dce6; font-size: 14.5px; }
.h-me-bar-links { display: flex; align-items: center; gap: 6px 18px; flex-wrap: wrap; }
.h-me-bar-links a:not(.h-btn) { color: #fff; font-weight: 600; font-size: 14.5px; text-decoration: none; border-bottom: 1.5px solid rgba(255, 255, 255, .35); }
.h-me-bar-links a:not(.h-btn):hover { border-bottom-color: var(--kiwi); color: #fff; }
.h-me-bar .h-btn { margin-left: 6px; }
@media (max-width: 700px) { .h-me-bar-links a:not(.h-btn) { display: none; } .h-me-bar .h-btn { margin-left: 0; } }

/* Dashboard extras: jump links between role sections, and what needs attention across every role */
.h-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.h-hub-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: -24px; }
.h-hub-jump a { padding: 8px 14px; border-radius: 999px; background: var(--mist); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; transition: background-color .2s; }
.h-hub-jump a:hover { background: #d9ecf1; color: var(--ink); }
.h-hub-sec { scroll-margin-top: 110px; }
.h-hub-todo { padding: 24px; border-radius: 24px; background: var(--ink); color: #fff; }
.h-hub-todo h2 { margin: 0 0 14px; font: 800 22px/1.1 var(--display); color: #fff; }
.h-hub-todo ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.h-hub-todo a { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .08); color: #fff; text-decoration: none; transition: background-color .2s; }
.h-hub-todo a:hover { background: rgba(255, 255, 255, .15); color: #fff; }
.h-hub-todo b { font: 800 30px/1 var(--display); color: var(--kiwi); min-width: 1.4ch; }
.h-hub-todo span { display: flex; flex-direction: column; font-weight: 600; font-size: 15px; line-height: 1.3; }
.h-hub-todo small { font-weight: 600; font-size: 12.5px; color: #c9dce6; margin-top: 2px; }
.h-login-tip { grid-column: 1; margin: -8px 0 0; padding: 12px 16px; border-radius: 14px; background: #fff7e0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.h-login-main > .h-login-direct { grid-column: 2; grid-row: 1 / span 2; }
@media (max-width: 860px) { .h-login-tip, .h-login-main > .h-login-direct { grid-column: 1; grid-row: auto; } }

/* ---------- photo gallery (/gallery): albums from the school's Lychee, and a full-screen viewer ---------- */
.h-gal { padding-block: 40px 96px; }
.h-gal-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.h-gal-albums--sub { margin-bottom: 32px; }
.h-gal-album { display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none; }
.h-gal-cover { display: block; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; background: var(--mist) center / cover no-repeat; }
.h-gal-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s var(--ease); }
.h-gal-album:hover .h-gal-cover img { transform: scale(1.04); }
.h-gal-title { font: 700 20px/1.2 var(--display); }
.h-gal-empty { color: var(--ink-2); }
.h-gal-note { margin-top: 40px; padding: 14px 18px; border-radius: 14px; background: var(--mist); color: var(--ink-2); font-size: 14.5px; max-width: 72ch; }
.h-gal-back { margin: 0 0 20px; }
.h-gal-back a { font-weight: 700; }
.h-gal-photos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.h-gal-photos li { flex: calc(var(--ar, 1.4) * 220) 1 calc(var(--ar, 1.4) * 220px); max-width: calc(var(--ar, 1.4) * 360px); }
.h-gal-photos button { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; cursor: zoom-in; background: var(--mist); }
.h-gal-photos img { display: block; width: 100%; height: auto; background-size: cover; transition: transform .5s var(--ease); }
.h-gal-photos button:hover img { transform: scale(1.03); }
.h-gal-photos button:focus-visible { outline: 3px solid var(--river); outline-offset: 2px; }
.h-gal-viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 22, 34, .94); color: #fff; }
.h-gal-viewer::backdrop { background: rgba(10, 22, 34, .7); }
.h-gal-viewer figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 56px 72px 24px; }
.h-gal-viewer figure img { max-width: 100%; max-height: calc(100vh - 120px); object-fit: contain; border-radius: 8px; }
.h-gal-viewer figcaption { display: flex; gap: 16px; font-size: 14px; color: #c9dce6; }
.h-gal-viewer button { position: absolute; border: 0; background: rgba(255, 255, 255, .12); color: #fff; border-radius: 999px; width: 48px; height: 48px; font-size: 30px; line-height: 1; cursor: pointer; }
.h-gal-viewer button:hover { background: rgba(255, 255, 255, .24); }
.h-gal-x { top: 14px; right: 16px; }
.h-gal-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.h-gal-next { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 700px) { .h-gal-viewer figure { padding: 56px 8px 16px; } .h-gal-prev, .h-gal-next { top: auto; bottom: 14px; transform: none; } .h-gal-photos li { flex-basis: 45%; max-width: none; } }
.h-wh-hint { margin: 12px 0 0; color: var(--h-muted, #41576a); font-size: .95rem; }
.h-wh-edit { grid-column: 1 / -1; margin-top: 4px; }
.h-wh-check { display: flex; gap: 8px; align-items: center; font-weight: 500; }
.h-wo-tickets { list-style: none; margin: 0 0 24px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.h-wo-tickets li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-radius: 20px; background: var(--kiwi-soft, #e9f5dc); }
.h-wo-tickets span { display: grid; gap: 2px; }
.h-wo-tickets small { color: var(--ink-2, #41576a); }
