/* ==========================================================
   Fossil Bay Parents Hub — styles
   Brand: Fossil Bay navy + lime pill buttons on a sea-teal gradient
   ========================================================== */
:root {
  --navy: #002952;
  --navy-700: #0b3866;
  --navy-900: #002952;
  --lime: #f8cbbb;
  --lime-600: #52c2c8;
  --teal-1: #52c2c8;
  --teal-2: #2f9ba1;
  --blush: #fdeeea;
  --coral: #e0664e;
  --sea: var(--blush);
  --ink: #130849;
  --muted: #5d5a78;
  --paper: #fbefec;
  --card: #ffffff;
  --line: rgba(0, 41, 82, .12);
  --shadow-sm: 0 2px 6px rgba(1, 30, 60, .08);
  --shadow: 0 10px 30px rgba(1, 30, 60, .14);
  --shadow-lg: 0 24px 60px rgba(1, 30, 60, .25);
  --r-sm: 12px;
  --r: 20px;
  --r-lg: 28px;
  --pill: 999px;
  --font: "Raleway", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Raleway", system-ui, sans-serif;
  --display: "Fjalla One", "Raleway", sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 72px;
  --gutter: clamp(16px, 4vw, 40px);
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(15px, 0.95rem + .15vw, 17px);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: var(--navy); }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
:focus-visible { outline: 3px solid var(--lime-600); outline-offset: 3px; border-radius: 6px; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--lime); padding: 8px 14px; border-radius: var(--pill); }
.skip:focus { left: 8px; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  border: 0; border-radius: var(--pill);
  padding: .75em 1.4em;
  background: var(--bg); color: var(--fg);
  font-family: var(--mono); font-size: .85rem; letter-spacing: .04em; text-transform: uppercase;
  transition: transform .25s var(--spring), box-shadow .25s var(--ease), background .2s;
  position: relative; overflow: hidden; isolation: isolate;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.97); }
.btn--lime { --bg: var(--lime); --fg: var(--ink); }
.btn--navy { --bg: var(--navy); }
.btn--ghost { --bg: transparent; --fg: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.btn--block { width: 100%; }
.btn--login { --bg: var(--lime); --fg: var(--ink); padding: .6em 1.2em; }
.btn--google { --bg: #fff; --fg: var(--ink); width: 100%; box-shadow: inset 0 0 0 1.5px var(--line); text-transform: none; font-family: var(--font); font-size: 1rem; letter-spacing: 0; font-weight: 500; }
.btn--google svg { width: 20px; height: 20px; }
.btn.is-on { --bg: var(--navy); --fg: var(--lime); }
.link { background: none; border: 0; color: var(--navy); text-decoration: underline; padding: .4em 0; font-size: .9rem; }

/* ripple */
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .25; pointer-events: none; animation: ripple .6s var(--ease) forwards; z-index: -1; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s, border-color .3s;
  padding-top: env(safe-area-inset-top);
  box-sizing: content-box;
}
.header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--line); }
.header__inner {
  height: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex-shrink: 0; }
.brand__logo { height: 40px; width: auto; }
.brand__tag {
  font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
  background: var(--lime); color: var(--ink); padding: .3em .7em; border-radius: var(--pill);
}
.nav { margin-left: auto; }
.nav__list { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: block; padding: .5em .8em; border-radius: var(--pill);
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .03em;
  color: var(--navy); text-decoration: none; position: relative; transition: background .2s; white-space: nowrap;
}
.nav__link:hover { background: rgba(1, 54, 104, .07); }
.nav__link[aria-current="page"] { background: var(--navy); color: var(--lime); }
.header__actions { display: flex; align-items: center; gap: 8px; margin-left: 8px; }

/* language */
.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 6px; background: transparent; border: 1.5px solid var(--line);
  border-radius: var(--pill); padding: .45em .75em; font-family: var(--mono); font-size: .75rem; color: var(--navy);
  transition: border-color .2s, background .2s;
}
.lang__btn:hover { border-color: var(--navy); }
.lang__btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.lang__menu, .user__menu {
  position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px;
  background: #fff; border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 6px; margin: 0; list-style: none;
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.97); transform-origin: top right;
  transition: opacity .2s, transform .25s var(--ease), visibility .2s;
}
.lang.is-open .lang__menu, .user.is-open .user__menu { opacity: 1; visibility: visible; transform: none; }
.lang__opt {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: transparent;
  padding: .6em .75em; border-radius: 8px; font-size: .95rem;
}
.lang__opt:hover, .lang__opt:focus-visible { background: var(--paper); }
.lang__opt[aria-selected="true"] { background: var(--lime); font-weight: 600; }
.lang__code { font-family: var(--mono); font-size: .7rem; width: 2.4em; color: var(--muted); }

/* user */
.user { position: relative; }
.user__btn { border: 0; background: none; padding: 0; border-radius: 50%; }
.user__avatar {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy) center/cover no-repeat; color: var(--lime); font-weight: 700; font-size: .9rem;
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--lime);
}
.user__menu { padding: 14px; min-width: 230px; }
.user__name { margin: 0; font-weight: 600; }
.user__email { margin: 0 0 10px; color: var(--muted); font-size: .85rem; word-break: break-all; }
.user__logout { width: 100%; border: 0; background: var(--paper); padding: .6em; border-radius: 8px; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; }
.user__logout:hover { background: var(--lime); }

/* burger */
.burger { display: none; width: 44px; height: 44px; border: 0; background: var(--navy); border-radius: 50%; position: relative; z-index: 70; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: var(--lime); border-radius: 2px; transition: transform .35s var(--ease), opacity .2s; }
.burger span:nth-child(1) { top: 15px; } .burger span:nth-child(2) { top: 21px; } .burger span:nth-child(3) { top: 27px; }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* drawer (mobile menu) */
.drawer {
  position: fixed; inset: 0; z-index: 45; background: var(--navy);
  padding: calc(var(--header-h) + env(safe-area-inset-top) + 24px) var(--gutter) calc(24px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
  clip-path: circle(0 at calc(100% - 42px) 36px);
  transition: clip-path .6s var(--ease), visibility .6s;
  visibility: hidden;
}
.drawer.is-open { clip-path: circle(150% at calc(100% - 42px) 36px); visibility: visible; }
.drawer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.drawer__list li { opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .5s var(--ease); }
.drawer.is-open .drawer__list li { opacity: 1; transform: none; transition-delay: calc(.12s + var(--i) * .05s); }
.drawer__link {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 4px; border-bottom: 1px solid rgba(255, 255, 255, .12);
  color: #fff; text-decoration: none; font-family: var(--mono); text-transform: uppercase; font-size: clamp(.95rem, 4vw, 1.15rem);
}
.drawer__link::after { content: "→"; color: var(--lime); transition: transform .3s var(--ease); }
.drawer__link:hover::after, .drawer__link[aria-current="page"]::after { transform: translateX(6px); }
.drawer__link[aria-current="page"] { color: var(--lime); }
.drawer__foot { margin-top: auto; padding-top: 28px; display: grid; gap: 18px; }
.drawer__langs { display: flex; flex-wrap: wrap; gap: 8px; }
.drawer__langs button {
  border: 1.5px solid rgba(255, 255, 255, .3); background: transparent; color: #fff; border-radius: var(--pill);
  padding: .4em .9em; font-family: var(--mono); font-size: .75rem;
}
.drawer__langs button[aria-pressed="true"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* ---------- Main / views ---------- */
.main { flex: 1; outline: none; }
.view { animation: viewIn .55s var(--ease) both; }
.view.is-leaving { animation: viewOut .22s ease-in both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes viewOut { to { opacity: 0; transform: translateY(-10px); } }

.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

/* hero (home) */
.hero {
  background: var(--sea); color: #fff; position: relative; overflow: hidden;
  padding: clamp(40px, 8vw, 96px) 0 clamp(56px, 9vw, 110px);
}
.hero::before, .hero::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
  border: 2px solid rgba(255, 255, 255, .12);
}
.hero::before { width: 70vmax; height: 70vmax; right: -30vmax; top: -35vmax; animation: drift 22s ease-in-out infinite alternate; }
.hero::after { width: 40vmax; height: 40vmax; left: -18vmax; bottom: -26vmax; border-color: rgba(226, 255, 164, .18); animation: drift 18s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(-3vmax, 3vmax) rotate(25deg); } }
.hero__shell { position: absolute; right: -60px; bottom: -40px; width: clamp(220px, 34vw, 460px); opacity: .08; pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.eyebrow {
  display: inline-block; font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em;
  color: var(--lime); margin-bottom: 14px;
}
.hero__title { font-size: clamp(2.4rem, 1.4rem + 5vw, 5rem); font-weight: 700; margin-bottom: .2em; }
.hero__title em { font-style: normal; color: var(--lime); }
.hero__lead { max-width: 40ch; font-size: clamp(1.02rem, .95rem + .4vw, 1.25rem); opacity: .92; margin: 0 0 clamp(28px, 5vw, 48px); }
.hero__hint { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; opacity: .75; margin: 0 0 16px; }

/* Pill tiles — matches the reference button style */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: clamp(14px, 2vw, 24px); list-style: none; padding: 0; margin: 0; }
.tile {
  --d: 0s;
  display: flex; align-items: center; gap: clamp(14px, 2.5vw, 24px);
  min-height: clamp(84px, 12vw, 132px);
  padding: clamp(10px, 1.4vw, 18px); padding-right: clamp(20px, 3vw, 36px);
  background: var(--lime); color: var(--ink); border-radius: var(--pill);
  text-decoration: none; position: relative; overflow: hidden; isolation: isolate;
  box-shadow: 0 6px 0 rgba(0, 26, 54, .18);
  transition: transform .35s var(--spring), box-shadow .35s var(--ease);
  animation: tileIn .7s var(--ease) var(--d) both;
}
@keyframes tileIn { from { opacity: 0; transform: translateY(28px) scale(.96); } }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: #fff;
  transform: translateX(-101%); transition: transform .5s var(--ease);
}
.tile:hover, .tile:focus-visible { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0, 26, 54, .3); }
.tile:hover::before, .tile:focus-visible::before { transform: translateX(0); }
.tile:active { transform: translateY(1px) scale(.98); box-shadow: 0 2px 0 rgba(0, 26, 54, .2); }
.tile__img {
  flex-shrink: 0; width: clamp(64px, 9.5vw, 112px); aspect-ratio: 1; border-radius: 50%;
  background: var(--blush) center/cover no-repeat; overflow: hidden; box-shadow: 0 0 0 3px #fff;
  transition: transform .5s var(--spring);
  display: grid; place-items: center;
}
.tile__img img { width: 100%; height: 100%; object-fit: cover; }
.tile__img svg { width: 44%; height: 44%; stroke: var(--lime); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.tile:hover .tile__img { transform: scale(1.07) rotate(-6deg); }
.tile__text { display: grid; gap: 2px; min-width: 0; }
.tile__label { font-family: var(--mono); text-transform: uppercase; font-size: clamp(.92rem, .8rem + .6vw, 1.3rem); letter-spacing: .02em; line-height: 1.2; }
.tile__desc { font-size: .85rem; color: #3d4a58; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s var(--ease), opacity .3s; }
.tile:hover .tile__desc, .tile:focus-visible .tile__desc { max-height: 3em; opacity: 1; }
.tile__arrow {
  margin-left: auto; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: var(--lime);
  display: grid; place-items: center; transform: scale(0) rotate(-90deg); transition: transform .4s var(--spring);
}
.tile:hover .tile__arrow, .tile:focus-visible .tile__arrow { transform: none; }
@media (hover: none) {
  .tile__desc { max-height: 3em; opacity: 1; }
  .tile__arrow { transform: none; width: 32px; height: 32px; }
}

/* page hero */
.page-hero { background: var(--sea); color: #fff; padding: clamp(28px, 5vw, 64px) 0 clamp(64px, 9vw, 104px); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; width: 50vmax; height: 50vmax; right: -20vmax; top: -30vmax; border-radius: 50%; border: 2px solid rgba(226, 255, 164, .18); }
.page-hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: auto 1fr; gap: clamp(16px, 3vw, 32px); align-items: center; }
.page-hero__img { width: clamp(72px, 12vw, 140px); aspect-ratio: 1; border-radius: 50%; background: var(--blush); overflow: hidden; display: grid; place-items: center; box-shadow: 0 0 0 6px var(--lime); animation: pop .6s var(--spring) both; }
.page-hero__img svg { width: 44%; stroke: var(--lime); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.page-hero__img img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } }
.page-hero h1 { font-size: clamp(1.8rem, 1.2rem + 3vw, 3.4rem); }
.page-hero p { margin: 0; max-width: 58ch; opacity: .92; font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.back {
  display: inline-flex; align-items: center; gap: 8px; color: var(--lime); text-decoration: none;
  font-family: var(--mono); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 18px;
}
.back span { transition: transform .3s var(--ease); display: inline-block; }
.back:hover span { transform: translateX(-4px); }

.page-body { margin-top: clamp(-56px, -6vw, -40px); position: relative; z-index: 2; padding-bottom: clamp(48px, 8vw, 96px); display: grid; gap: clamp(20px, 3vw, 32px); }
.note { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; margin: 0; }
.note::before { content: "i"; flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); color: var(--ink); font: 700 .7rem/18px var(--mono); text-align: center; }

/* panels & cards */
.panel { background: var(--card); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow); }
.panel__title { font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem); display: flex; align-items: center; gap: 10px; }
.panel__title::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px var(--navy); }
.grid { display: grid; gap: clamp(12px, 2vw, 20px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.split { display: grid; gap: clamp(20px, 3vw, 32px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); align-items: start; }

.card {
  background: var(--card); border-radius: var(--r); padding: 20px; border: 1.5px solid var(--line);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .3s;
  display: flex; flex-direction: column; gap: 10px; position: relative;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card--current { background: var(--navy); color: #fff; border-color: var(--navy); }
.card--current .card__meta { color: var(--lime); }
.card__badge {
  align-self: flex-start; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em;
  background: var(--lime); color: var(--ink); padding: .3em .7em; border-radius: var(--pill);
}
.card__title { font-size: 1.15rem; margin: 0; }
.card__meta { font-family: var(--mono); font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card p { margin: 0; }
.card__foot { margin-top: auto; padding-top: 6px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0; padding: 0; }
.chip { background: var(--paper); border-radius: var(--pill); padding: .3em .8em; font-size: .85rem; }
.card--current .chip { background: rgba(255, 255, 255, .12); }

/* date block */
.date { display: flex; align-items: center; gap: 14px; }
.date__box { width: 58px; flex-shrink: 0; text-align: center; border-radius: 14px; overflow: hidden; background: var(--paper); }
.date__mon { display: block; background: var(--navy); color: var(--lime); font: 700 .65rem/1.9 var(--mono); text-transform: uppercase; }
.date__day { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.6; color: var(--navy); }

/* progress */
.meter { height: 8px; background: var(--paper); border-radius: var(--pill); overflow: hidden; }
.meter span { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-1), var(--navy)); border-radius: inherit; transform-origin: left; animation: grow 1s var(--ease) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }

/* accordion */
.acc { display: grid; gap: 10px; }
.acc__item { border-radius: var(--r-sm); background: var(--paper); overflow: hidden; transition: background .3s, box-shadow .3s; }
.acc__item.is-open { background: #fff; box-shadow: inset 0 0 0 1.5px var(--navy); }
.acc__btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  background: none; border: 0; padding: 16px 18px; font-weight: 600; font-size: 1rem;
}
.acc__icon { flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); position: relative; transition: transform .4s var(--spring), background .3s; }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14px; height: 2px; background: var(--lime); border-radius: 2px; transition: transform .3s var(--ease); }
.acc__icon::after { transform: rotate(90deg); }
.acc__item.is-open .acc__icon { transform: rotate(180deg); background: var(--lime); }
.acc__item.is-open .acc__icon::before, .acc__item.is-open .acc__icon::after { background: var(--navy); }
.acc__item.is-open .acc__icon::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s var(--ease); }
.acc__item.is-open .acc__panel { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner p { margin: 0; padding: 0 18px 18px; color: #334253; }

/* checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); background: var(--paper); cursor: pointer; transition: background .25s; user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { flex-shrink: 0; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--navy); display: grid; place-items: center; transition: background .25s, transform .3s var(--spring); }
.check__box svg { width: 14px; stroke: var(--lime); stroke-width: 3; fill: none; stroke-dasharray: 20; stroke-dashoffset: 20; transition: stroke-dashoffset .35s var(--ease) .05s; }
.check input:checked + .check__box { background: var(--navy); transform: scale(1.1); }
.check input:checked + .check__box svg { stroke-dashoffset: 0; }
.check input:checked ~ span { text-decoration: line-through; color: var(--muted); }
.check input:focus-visible + .check__box { outline: 3px solid var(--lime-600); outline-offset: 2px; }
.progress-label { font-family: var(--mono); font-size: .75rem; color: var(--muted); margin: 12px 0 6px; text-transform: uppercase; }

/* search */
.search { position: relative; margin-bottom: 16px; }
.search input { width: 100%; padding: 14px 18px 14px 46px; border-radius: var(--pill); border: 1.5px solid var(--line); font: inherit; background: var(--paper); transition: border-color .2s, background .2s; }
.search input:focus { outline: none; border-color: var(--navy); background: #fff; }
.search svg { position: absolute; left: 16px; top: 50%; width: 18px; transform: translateY(-50%); stroke: var(--muted); fill: none; stroke-width: 2; }
mark { background: var(--lime); border-radius: 3px; padding: 0 2px; }

/* segmented */
.seg { display: inline-flex; background: var(--paper); border-radius: var(--pill); padding: 4px; position: relative; }
.seg button { border: 0; background: none; padding: .55em 1.1em; border-radius: var(--pill); font-family: var(--mono); font-size: .75rem; text-transform: uppercase; position: relative; z-index: 1; transition: color .3s; }
.seg button[aria-pressed="true"] { color: var(--lime); }
.seg__ink { position: absolute; top: 4px; bottom: 4px; border-radius: var(--pill); background: var(--navy); transition: left .4s var(--ease), width .4s var(--ease); }

/* festival cards (flip) */
.flip { display: block; width: 100%; font: inherit; perspective: 1200px; min-height: 240px; cursor: pointer; border: 0; background: none; padding: 0; text-align: left; }
.flip__inner { display: block; position: relative; height: 100%; min-height: 240px; transition: transform .7s var(--ease); transform-style: preserve-3d; }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
.flip__face { position: absolute; inset: 0; border-radius: var(--r); padding: 22px; backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; gap: 8px; }
.flip__front { background: var(--navy); color: #fff; }
.flip__front::after { content: "↻"; position: absolute; right: 18px; bottom: 14px; color: var(--lime); font-size: 1.3rem; transition: transform .5s var(--ease); }
.flip:hover .flip__front::after { transform: rotate(180deg); }
.flip__back { background: var(--lime); color: var(--ink); transform: rotateY(180deg); justify-content: center; }
.flip__name { font-size: 1.5rem; font-weight: 700; margin-top: auto; }
.season { align-self: flex-start; font-family: var(--mono); font-size: .66rem; text-transform: uppercase; letter-spacing: .08em; padding: .3em .7em; border-radius: var(--pill); background: rgba(226, 255, 164, .16); color: var(--lime); }
.flip__name, .flip__back strong { display: block; }
.flip__deco { display: block; flex-shrink: 0; width: 64px; height: 64px; border-radius: 50%; background: #000; box-shadow: 0 0 0 4px rgba(226, 255, 164, .4); }

/* contact */
.contact-card { display: flex; flex-direction: row !important; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.contact-card__icon { width: 52px; height: 52px; border-radius: 50%; background: #000; flex-shrink: 0; display: grid; place-items: center; transition: transform .4s var(--spring); }
.contact-card__icon svg { width: 22px; stroke: var(--lime); fill: none; stroke-width: 1.8; }
.card:hover .contact-card__icon { transform: rotate(-10deg) scale(1.08); }
.contact-card small { color: var(--muted); word-break: break-all; }

/* forms */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; font-size: .9rem; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-weight: 400; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--paper);
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--navy); background: #fff; box-shadow: 0 0 0 4px rgba(226, 255, 164, .7); }
.field small { color: var(--muted); font-weight: 400; }
.form__error { color: #b42318; font-size: .88rem; margin: 0; min-height: 1.2em; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; visibility: hidden; }
.modal.is-open { visibility: visible; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(0, 20, 40, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); opacity: 0; transition: opacity .3s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto;
  background: #fff; border-radius: var(--r-lg); padding: clamp(22px, 5vw, 36px); box-shadow: var(--shadow-lg);
  opacity: 0; transform: translateY(30px) scale(.96); transition: opacity .3s, transform .45s var(--spring);
  display: grid; gap: 14px;
}
.modal.is-open .modal__panel { opacity: 1; transform: none; }
.modal__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--paper); font-size: 1.4rem; line-height: 1; transition: transform .3s var(--ease), background .2s; }
.modal__close:hover { transform: rotate(90deg); background: var(--lime); }
.modal__icon { width: 56px; height: 56px; object-fit: contain; }
.modal__panel h2 { font-size: 1.5rem; margin: 0; padding-right: 36px; }
.modal__sub { margin: -6px 0 0; color: var(--muted); }
.modal__demo { font-size: .78rem; background: var(--paper); padding: 10px 12px; border-radius: 10px; color: var(--muted); margin: 0; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: var(--paper); border-radius: var(--pill); padding: 4px; position: relative; }
.tabs__btn { border: 0; background: none; padding: .7em; border-radius: var(--pill); font-family: var(--mono); font-size: .75rem; text-transform: uppercase; position: relative; z-index: 1; transition: color .3s; }
.tabs__btn.is-active { color: var(--lime); }
.tabs__ink { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); background: var(--navy); border-radius: var(--pill); transition: transform .4s var(--ease); }
.tabs.is-signup .tabs__ink { transform: translateX(100%); }
.modal[data-mode="signin"] .field--signup, .modal[data-mode="signup"] .field--signin { display: none; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: .8rem; text-transform: uppercase; font-family: var(--mono); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* toast */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); z-index: 120;
  background: var(--navy); color: #fff; padding: 12px 20px; border-radius: var(--pill); box-shadow: var(--shadow-lg);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .45s var(--spring), opacity .3s;
  max-width: calc(100% - 32px); font-size: .92rem; display: flex; gap: 10px; align-items: center;
}
.toast::before { content: "✓"; color: var(--ink); background: var(--lime); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; flex-shrink: 0; }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* footer */
.footer { background: var(--navy-900); color: rgba(255, 255, 255, .8); text-align: center; padding: 40px var(--gutter) calc(40px + env(safe-area-inset-bottom)); font-size: .9rem; }
.footer__logo { height: 44px; width: auto; margin: 0 auto 14px; opacity: .9; }
.footer p { margin: 4px 0; }
.footer__small { font-size: .78rem; opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav { display: none; }
  .burger { display: block; }
  .header__actions { margin-left: auto; }
}
@media (max-width: 560px) {
  :root { --header-h: 64px; }
  .brand__logo { height: 32px; }
  .brand__tag { display: none; }
  .btn--login { display: none; }
  .lang__btn span { display: none; }
  .lang__btn { padding: .55em; }
  .page-hero .container { grid-template-columns: 1fr; }
  .tile { border-radius: 60px; }
  .card__foot .btn { flex: 1; }
}
@media (max-width: 360px) {
  .tile__label { font-size: .85rem; }
}
@media (min-width: 1600px) {
  :root { --max: 1360px; }
}
/* landscape phones */
@media (max-height: 500px) and (orientation: landscape) {
  .hero { padding: 24px 0 40px; }
  .hero__title { font-size: 2.2rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile { min-height: 72px; }
  .tile__img { width: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Cleaning roster ---------- */
.facts { display: grid; gap: clamp(10px, 1.6vw, 16px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.fact { background: #fff; border-radius: var(--r); padding: 18px 20px; box-shadow: var(--shadow); display: grid; gap: 4px; border-top: 5px solid var(--lime); }
.fact__k { font-family: var(--mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.fact__v { font-weight: 600; font-size: 1.05rem; color: var(--navy); }
.fact__v small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.code { display: inline-block; margin-top: 6px; background: var(--navy); color: #fff; padding: .25em .7em; border-radius: 8px; font: 400 .85rem var(--mono); }
.code strong { color: var(--lime); letter-spacing: .15em; }

.roster-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.search--inline { margin: 0; flex: 1 1 260px; max-width: 360px; }
.search input:disabled { opacity: .55; cursor: not-allowed; }

.next {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--lime); border-radius: var(--r); padding: 16px 20px; margin-bottom: 18px; position: relative; overflow: hidden;
}
.next::after { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; border: 18px solid rgba(1, 54, 104, .08); }
.next .date__box { background: #fff; }
.next__name { display: block; font-size: 1.2rem; color: var(--navy); }

.seg--terms { margin-bottom: 14px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg--terms::-webkit-scrollbar { display: none; }
.seg--terms button { white-space: nowrap; }

.rlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.rrow {
  display: flex; align-items: center; gap: 14px; padding: 10px 14px 10px 10px; border-radius: 18px; background: var(--paper);
  border: 1.5px solid transparent; transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s;
}
.rrow:hover { transform: translateX(4px); border-color: var(--line); background: #fff; }
.rrow .date__box { width: 52px; background: #fff; }
.rrow .date__day { font-size: 1.25rem; line-height: 1.5; }
.rrow__main { display: grid; min-width: 0; flex: 1; }
.rrow__k { font-family: var(--mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.rrow__name { font-weight: 600; font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rrow__meta { display: grid; justify-items: end; gap: 4px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; color: var(--muted); }
.rrow__done { color: #2f7d4f; }
.rrow.is-past { opacity: .55; }
.rrow.is-cleaner .rrow__name { color: var(--muted); font-weight: 500; font-style: italic; }
.rrow.is-next { background: var(--navy); color: #fff; box-shadow: var(--shadow); }
.rrow.is-next .rrow__k, .rrow.is-next .rrow__meta { color: var(--lime); }
.rrow.is-match { border-color: var(--navy); background: #fff; animation: pop .45s var(--spring) both; }
.rrow.is-match .rrow__name { background: var(--lime); padding: 0 6px; border-radius: 6px; justify-self: start; }

.warn { background: #fff4e5; border-left: 4px solid #f59e0b; padding: 10px 14px; border-radius: 10px; font-size: .9rem; margin: 0 0 14px; }
.tools { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.tools li { display: flex; gap: 10px; align-items: flex-start; }
.tools li::before { content: "🧹"; }
.coord .contact-card { margin-bottom: 4px; }

.progress-sticky {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top) + 10px); z-index: 5;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: var(--pill); padding: 10px 20px; box-shadow: var(--shadow); font-size: .9rem;
}
.progress-sticky .link { padding: 0; }
.grid--areas { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); align-items: start; }
.grid--areas .panel__title { font-size: 1.15rem; }

/* ==========================================================
   Theme: fossilbay.co.nz look — blush paper, watercolour circles,
   navy type, Raleway + Fjalla One
   ========================================================== */
body { background: #fdf2f2; letter-spacing: .02em; }
h2, h3, .panel__title, .card__title, .flip__name, .next__name { font-family: var(--display); font-weight: 400; letter-spacing: .01em; }
.btn, .nav__link, .lang__btn, .tabs__btn, .seg button, .drawer__link, .brand__tag, .eyebrow, .back, .card__badge, .card__meta,
.tile__label, .hero__hint, .fact__k, .rrow__k, .rrow__meta, .season, .user__logout, .progress-label, .date__mon, .drawer__langs button, .divider {
  font-weight: 600; letter-spacing: .1em;
}
.header { background: rgba(253, 242, 242, .86); }
.brand__tag { background: var(--navy); color: #fff; }
.btn--login { --bg: var(--navy); --fg: #fff; }
.btn--lime { --bg: #fff; --fg: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.is-on { --bg: var(--navy); --fg: #fff; }

/* hero + page hero use the school's watercolour pattern */
.hero, .page-hero {
  color: var(--navy);
  background: var(--blush) url("/assets/img/pattern.jpg") right center / auto 100% no-repeat;
}
.hero::before, .hero::after, .page-hero::after { display: none; }
.hero__shell { display: none; }
.hero .container::before, .page-hero .container::before {
  content: ""; position: absolute; inset: -40px auto -40px calc(var(--gutter) * -1); width: min(760px, 75%); z-index: -1;
  background: radial-gradient(closest-side, rgba(253, 238, 234, .92), rgba(253, 238, 234, 0));
}
.hero__title { font-weight: 600; letter-spacing: 0; }
.hero__title em { color: var(--teal-2); }
.eyebrow { color: var(--coral); }
.hero__lead, .page-hero p { opacity: 1; color: var(--ink); }
.back { color: var(--navy); }
.page-hero h1 { font-weight: 600; }
.page-hero__img { box-shadow: 0 0 0 6px #fff, var(--shadow); }

/* pill tiles — white like the site's buttons, peach wash on hover */
.tile { background: #fff; color: var(--navy); box-shadow: 0 6px 0 rgba(0, 41, 82, .08), var(--shadow-sm); }
.tile::before { background: var(--lime); }
.tile__desc { color: var(--muted); }
.tile__arrow { color: #fff; }

.nav__link[aria-current="page"] { background: var(--navy); color: #fff; }
.drawer__link::after, .drawer__link[aria-current="page"] { color: var(--lime); }
.fact { border-top-color: var(--teal-1); }
.rrow.is-next .rrow__k, .rrow.is-next .rrow__meta { color: var(--lime); }
.flip__front { background: var(--navy); }
.flip__back { background: var(--lime); }
.footer { background: var(--navy); }
:focus-visible { outline-color: var(--teal-2); }

@media (max-width: 760px) {
  .hero, .page-hero { background-position: 70% top; background-size: auto 70%; }
  .hero .container::before, .page-hero .container::before { width: 100%; inset: -40px calc(var(--gutter) * -1); background: linear-gradient(180deg, rgba(253, 238, 234, .55), rgba(253, 238, 234, .92) 40%); }
}

/* ---------- Handbook reader ---------- */
.btn--sm { padding: .6em 1.1em; font-size: .74rem; }
.hb { display: grid; gap: clamp(18px, 3vw, 28px); }
.hb-bar {
  position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top) + 8px); z-index: 6;
  display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-radius: var(--r); padding: 12px 14px 16px; box-shadow: var(--shadow); overflow: hidden;
}
.hb-bar .search--inline { max-width: none; flex: 1 1 280px; }
.hb-bar .search input { padding-top: 11px; padding-bottom: 11px; }
.hb-bar__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hb-bar__count { margin: 0; font-size: .8rem; font-weight: 600; color: var(--teal-2); text-transform: uppercase; letter-spacing: .1em; }
.hb-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--paper); }
.hb-progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--teal-1), var(--navy)); transition: width .15s linear; }
.hb-loading { display: flex; align-items: center; gap: 12px; padding: 40px; justify-content: center; color: var(--muted); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--navy); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hb-body { display: grid; gap: clamp(22px, 3vw, 34px); }

.quick-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.quick { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r-sm); background: #fff; text-decoration: none; color: var(--navy); box-shadow: var(--shadow-sm); border-left: 4px solid var(--teal-1); transition: transform .3s var(--spring), box-shadow .3s; }
.quick:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.quick__k { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--muted); }
.quick__v { font-weight: 600; }

.hb-cards { display: grid; gap: clamp(10px, 1.6vw, 16px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.hb-card {
  position: relative; display: grid; gap: 6px; align-content: start; padding: 20px; border-radius: var(--r); background: #fff;
  text-decoration: none; color: var(--ink); box-shadow: var(--shadow-sm); overflow: hidden; isolation: isolate;
  transition: transform .35s var(--spring), box-shadow .35s var(--ease), color .3s;
}
.hb-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy); clip-path: circle(0 at 40px 40px); transition: clip-path .55s var(--ease); }
.hb-card:hover, .hb-card:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow); color: #fff; }
.hb-card:hover::before, .hb-card:focus-visible::before { clip-path: circle(150% at 40px 40px); }
.hb-card:hover small, .hb-card:hover .hb-card__meta, .hb-card:focus-visible small { color: rgba(255, 255, 255, .8); }
.hb-card__icon { font-size: 1.6rem; width: 46px; height: 46px; display: grid; place-items: center; border-radius: 50%; background: var(--paper); transition: transform .5s var(--spring); }
.hb-card:hover .hb-card__icon { transform: rotate(-12deg) scale(1.1); }
.hb-card__n { position: absolute; right: 18px; top: 14px; font-family: var(--display); font-size: 2rem; color: var(--line); }
.hb-card:hover .hb-card__n { color: rgba(255, 255, 255, .2); }
.hb-card strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; color: inherit; }
.hb-card small { color: var(--muted); font-size: .88rem; line-height: 1.45; }
.hb-card__meta { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-2); font-weight: 600; margin-top: 4px; }

.hb-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: clamp(18px, 3vw, 32px); align-items: start; }
.hb-toc { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top) + 100px); max-height: calc(100dvh - var(--header-h) - 130px); overflow-y: auto; background: #fff; border-radius: var(--r); box-shadow: var(--shadow-sm); padding: 8px; }
.hb-toc summary { list-style: none; cursor: pointer; padding: 10px 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; color: var(--navy); display: flex; justify-content: space-between; }
.hb-toc summary::-webkit-details-marker { display: none; }
.hb-toc summary::after { content: "▾"; transition: transform .3s; }
.hb-toc details:not([open]) summary::after { transform: rotate(-90deg); }
.toc { list-style: none; margin: 0; padding: 0 0 6px; display: grid; gap: 2px; }
.toc a { display: flex; gap: 10px; padding: 8px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .9rem; line-height: 1.3; transition: background .2s, color .2s, transform .3s var(--ease); }
.toc a:hover { background: var(--paper); transform: translateX(3px); }
.toc a.is-active { background: var(--navy); color: #fff; }
.toc__n { font-family: var(--display); color: var(--teal-2); flex-shrink: 0; }
.toc a.is-active .toc__n { color: var(--lime); }

.hb-content { display: grid; gap: clamp(16px, 2.4vw, 24px); }
.hb-ch { scroll-margin-top: calc(var(--header-h) + 100px); }
.hb-ch__head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 16px; }
.hb-ch__icon { font-size: 1.8rem; width: 58px; height: 58px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--lime); }
.hb-ch__n { font-size: .7rem; font-weight: 600; letter-spacing: .12em; color: var(--teal-2); }
.hb-ch__head h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: 2px 0 4px; color: var(--navy); }
.hb-ch__head p { margin: 0; color: var(--muted); }
[data-sec] { scroll-margin-top: calc(var(--header-h) + 110px); }
.hb-sec { padding: 0 18px 18px; color: #2b2a4a; }
.hb-sec > p { margin: 0 0 12px; padding: 0; }
.hb-sec .warn { margin: 4px 0 14px; }
.hb-list { margin: 0 0 14px; padding-left: 1.3em; display: grid; gap: 6px; }
.hb-list li::marker { color: var(--teal-2); }
.hb-table { overflow-x: auto; margin: 0 0 14px; border-radius: 12px; border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.hb-table table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: .92rem; }
.hb-table th { background: var(--navy); color: #fff; text-align: left; font-weight: 600; }
.hb-table th, .hb-table td { padding: 10px 12px; vertical-align: top; }
.hb-table tr:nth-child(even) td { background: var(--paper); }
.hb-quote { margin: 0 0 14px; padding: 12px 18px; border-left: 4px solid var(--lime); background: var(--paper); border-radius: 0 12px 12px 0; font-style: italic; }
.hb-copy { font-size: .8rem; color: var(--muted); }
.hb-pn { display: flex; justify-content: space-between; gap: 12px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .88rem; flex-wrap: wrap; }
.hb-pn a { text-decoration: none; font-weight: 600; color: var(--navy); }
.hb-pn a:hover { color: var(--teal-2); }
.hb-pn__next { margin-left: auto; text-align: right; }
.flash { animation: flash 1.4s var(--ease); }
@keyframes flash { 0%, 40% { box-shadow: 0 0 0 4px var(--teal-1); } 100% { box-shadow: 0 0 0 0 transparent; } }
.to-top { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30; width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--navy); color: #fff; font-size: 1.2rem; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .4s var(--spring); }
.to-top.is-show { opacity: 1; transform: none; pointer-events: auto; }

@media (max-width: 900px) {
  .hb-layout { grid-template-columns: 1fr; }
  .hb-toc { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top) + 92px); z-index: 5; max-height: 60dvh; }
  .hb-bar { top: calc(var(--header-h) + env(safe-area-inset-top) + 6px); }
}
@media print {
  .header, .footer, .hb-bar, .hb-toc, .hb-cards, .hb-quick, .to-top, .page-hero, .hb-copy, .hb-pn { display: none !important; }
  .acc__panel { grid-template-rows: 1fr !important; }
  .panel { box-shadow: none; }
  .hb-layout { display: block; }
}

/* ---------- Yurt hire ---------- */
.prices { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); margin: 18px 0 24px; }
.price { display: grid; gap: 4px; justify-items: start; padding: 20px; border-radius: var(--r); background: var(--paper); transition: transform .35s var(--spring), box-shadow .3s; }
.price:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.price--pop { background: var(--navy); color: #fff; }
.price--pop .card__meta { color: var(--lime); }
.price__amt { display: flex; align-items: baseline; gap: 8px; }
.price__amt strong { font-family: var(--display); font-weight: 400; font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1.1; }
.price__amt s { opacity: .55; font-size: .95rem; }
.price__per { font-size: .85rem; opacity: .75; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 600; font-size: .92rem; }
.switch input { position: absolute; opacity: 0; }
.switch__track { width: 52px; height: 30px; border-radius: 99px; background: var(--line); position: relative; transition: background .3s; flex-shrink: 0; }
.switch__dot { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: transform .35s var(--spring); }
.switch input:checked + .switch__track { background: var(--teal-2); }
.switch input:checked + .switch__track .switch__dot { transform: translateX(22px); }
.switch input:focus-visible + .switch__track { outline: 3px solid var(--teal-2); outline-offset: 2px; }
.calc { border-top: 1px dashed var(--line); padding-top: 18px; }
.calc__row { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; margin-bottom: 10px; }
.stepper { display: inline-flex; align-items: center; background: var(--paper); border-radius: 99px; padding: 4px; }
.stepper button { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #fff; font-size: 1.2rem; box-shadow: var(--shadow-sm); transition: transform .2s var(--spring); }
.stepper button:active { transform: scale(.88); }
.stepper output { min-width: 42px; text-align: center; font-weight: 700; font-size: 1.1rem; }
.calc__total { display: grid; margin-left: auto; text-align: right; }
.calc__total strong { font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--navy); }
.facil { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.facil li { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: var(--r-sm); background: var(--paper); }
.facil li span { font-size: 1.2rem; }
.gal { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(46%, 220px), 1fr)); grid-auto-flow: dense; }
.gal__item { padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 3; background: var(--paper); cursor: zoom-in; }
.gal__item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.gal__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.gal__item:hover img { transform: scale(1.06); }
.lightbox { position: fixed; inset: 0; z-index: 150; background: rgba(0, 20, 40, .92); display: grid; place-items: center; padding: 56px 16px; }
.lightbox[hidden] { display: none !important; }
.lightbox img { max-width: min(1100px, 100%); max-height: 100%; border-radius: 12px; box-shadow: var(--shadow-lg); }
.lightbox__close, .lightbox__nav { position: absolute; border: 0; background: rgba(255, 255, 255, .14); color: #fff; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; transition: background .2s, transform .3s var(--spring); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .3); transform: scale(1.08); }
.lightbox__close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lightbox__prev { left: 12px; top: 50%; translate: 0 -50%; }
.lightbox__next { right: 12px; top: 50%; translate: 0 -50%; }
.lightbox__count { position: absolute; bottom: calc(16px + env(safe-area-inset-bottom)); color: #fff; font-size: .85rem; letter-spacing: .1em; }
@media (max-width: 560px) {
  .calc__total { margin-left: 0; text-align: left; width: 100%; }
  .gal__item:nth-child(1) { grid-column: span 2; grid-row: span 1; }
}

/* ---------- 2026 Calendar ---------- */
.cal { padding: clamp(14px, 2.4vw, 28px); }
.cal-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; justify-content: space-between; margin-bottom: 14px; }
.cal-nav { display: flex; align-items: center; gap: 6px; flex: 1 1 260px; justify-content: center; }
.cal-title { margin: 0; min-width: 11ch; text-align: center; font-size: clamp(1.25rem, 1rem + 1vw, 1.8rem); color: var(--navy); }
.cal-arrow { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; font-size: 1.5rem; line-height: 1; color: var(--navy); transition: transform .25s var(--spring), background .2s; }
.cal-arrow:hover:not(:disabled) { background: var(--navy); color: #fff; transform: scale(1.08); }
.cal-arrow:disabled { opacity: .3; cursor: default; }
.cal-bar__end { display: flex; gap: 8px; }
.fchips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.fchip { display: inline-flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); background: #fff; border-radius: 99px; padding: .4em .9em; font-size: .82rem; font-weight: 600; transition: background .2s, border-color .2s, opacity .2s, transform .25s var(--spring); }
.fchip:hover { transform: translateY(-2px); }
.fchip__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c) 22%, transparent); }
.fchip[aria-pressed="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, #fff); }
.fchip[aria-pressed="false"] { opacity: .45; text-decoration: line-through; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.cal-main { outline: none; min-width: 0; }
.wd { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); text-align: center; padding: 6px 0; }

/* month */
.mo__h, .mo__g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.dc { position: relative; border: 0; font: inherit; text-align: left; border-radius: 14px; background: var(--paper); min-height: 104px; padding: 8px; display: flex; flex-direction: column; gap: 4px; transition: transform .25s var(--spring), box-shadow .25s, background .2s; overflow: hidden; }
.dc:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); background: #fff; z-index: 1; }
.dc.is-term { background: #fff; box-shadow: inset 0 0 0 1px var(--line); }
.dc.is-break { background: repeating-linear-gradient(135deg, var(--paper) 0 8px, #f7e6e1 8px 9px); }
.dc.is-wkend .dc__n { color: var(--muted); }
.dc.is-out { opacity: .35; }
.dc__n { font-weight: 700; font-size: .95rem; color: var(--navy); width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; }
.dc.is-today .dc__n { background: var(--coral); color: #fff; }
.dc.is-sel { box-shadow: inset 0 0 0 2.5px var(--navy) !important; }
.dc__ev { display: grid; gap: 3px; min-width: 0; }
.evchip { display: block; font-size: .7rem; font-weight: 600; line-height: 1.25; padding: 3px 6px; border-radius: 6px; background: color-mix(in srgb, var(--c) 16%, #fff); color: var(--ink); border-left: 3px solid var(--c); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.evmore { font-size: .68rem; color: var(--muted); font-weight: 700; }
.dc__dots { display: none; gap: 3px; justify-content: center; }
.dc__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--c); }

/* year */
.yr { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); }
.mini { background: #fff; border-radius: var(--r-sm); padding: 10px; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .25s, transform .3s var(--spring); }
.mini:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.mini__t { border: 0; background: none; padding: 2px 4px 6px; font-family: var(--display); font-size: 1.1rem; color: var(--navy); }
.mini__t:hover { color: var(--teal-2); }
.mini__h, .mini__g { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.mini__h .wd { padding: 2px 0; font-size: .6rem; }
.mini .dc { min-height: 0; aspect-ratio: 1; padding: 0; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; font-weight: 600; color: var(--ink); background: transparent; box-shadow: none; }
.mini .dc.is-break { background: transparent; color: var(--muted); }
.mini .dc.is-term { background: color-mix(in srgb, var(--teal-1) 12%, #fff); box-shadow: none; }
.mini .dc.has-ev { background: var(--c); color: #fff; }
.mini .dc.is-today { outline: 2px solid var(--coral); outline-offset: 1px; }
.mini .dc--blank { visibility: hidden; aspect-ratio: 1; }

/* week */
.wk__term { margin: 0 0 10px; font-weight: 700; font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--teal-2); }
.wk { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.wk__d { border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--line); padding: 10px; min-height: 220px; display: flex; flex-direction: column; gap: 8px; }
.wk__d.is-break { background: repeating-linear-gradient(135deg, var(--paper) 0 8px, #f7e6e1 8px 9px); }
.wk__d.is-sel { box-shadow: inset 0 0 0 2.5px var(--navy); }
.wk__date { border: 0; background: none; padding: 0; display: grid; justify-items: start; text-align: left; }
.wk__date span { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.wk__date strong { font-family: var(--display); font-weight: 400; font-size: 1.8rem; color: var(--navy); line-height: 1.1; }
.wk__d.is-today .wk__date strong { color: var(--coral); }
.wk__ev { display: grid; gap: 6px; }
.evcard { display: grid; gap: 2px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--c) 14%, #fff); border-left: 4px solid var(--c); animation: pop .4s var(--spring) both; }
.evcard b { font-size: .85rem; line-height: 1.25; }
.evcard small { font-size: .7rem; color: var(--muted); }
.wk__none { color: var(--line); font-size: 1.4rem; }

/* side */
.cal-side { display: grid; gap: 18px; position: sticky; top: calc(var(--header-h) + 16px); }
.cal-day { background: var(--navy); color: #fff; border-radius: var(--r); padding: 18px; display: grid; gap: 2px; }
.cal-day__k { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--lime); }
.cal-day__d { font-family: var(--display); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.cal-day__term { font-size: .8rem; opacity: .8; margin-bottom: 8px; }
.cal-day__ev { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.cal-day__ev li { display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .1); border-left: 4px solid var(--c); }
.cal-day__ev li span { display: grid; font-weight: 600; }
.cal-day__ev small { font-weight: 400; opacity: .75; font-size: .75rem; }
.cal-day__ev .link { color: var(--lime); justify-self: start; font-size: .8rem; padding: 0; }
.cal-day__ev .is-empty { border: 0; opacity: .7; background: none; padding: 0; }
.uplist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.uplist button { width: 100%; display: flex; gap: 12px; align-items: center; text-align: left; border: 0; background: var(--paper); border-radius: 14px; padding: 8px; border-left: 4px solid var(--c); transition: transform .25s var(--spring), background .2s; }
.uplist button:hover { transform: translateX(4px); background: #fff; box-shadow: var(--shadow-sm); }
.uplist .date__box { width: 48px; background: #fff; }
.uplist .date__day { font-size: 1.15rem; line-height: 1.5; }
.uplist span { display: grid; }
.uplist b { font-size: .9rem; line-height: 1.25; }
.uplist small { color: var(--muted); font-size: .75rem; }
.tlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: .88rem; }
.tlist li { display: flex; justify-content: space-between; gap: 10px; padding: 8px 12px; background: var(--paper); border-radius: 10px; flex-wrap: wrap; }
.tterm { font-weight: 700; color: var(--navy); }

@media (max-width: 1100px) { .cal-layout { grid-template-columns: 1fr; } .cal-side { position: static; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); } }
@media (max-width: 860px) {
  .wk { grid-template-columns: 1fr; }
  .wk__d { min-height: 0; flex-direction: row; align-items: flex-start; }
  .wk__date { width: 56px; flex-shrink: 0; }
  .wk__ev { flex: 1; }
}
@media (max-width: 700px) {
  .dc { min-height: 54px; padding: 4px; align-items: center; border-radius: 12px; }
  .dc__ev { display: none; }
  .dc__dots { display: flex; }
  .mo__h, .mo__g { gap: 4px; }
  .cal-bar { justify-content: center; }
  .cal-bar__end { width: 100%; justify-content: center; }
  .fchips { flex-wrap: nowrap; overflow-x: auto; margin-inline: -4px; padding: 2px 4px 6px; scrollbar-width: none; }
  .fchips::-webkit-scrollbar { display: none; }
  .fchip { flex-shrink: 0; }
}
.page-body > *, .cal, .cal-layout > * { min-width: 0; }
.nav__list li:first-child { display: none; } /* logo links home */
@media (max-width: 1500px) { .brand__tag { display: none; } }
@media (max-width: 1240px) { .nav { display: none; } .burger { display: block; } .header__actions { margin-left: auto; } }

/* ---------- School links (footer + contact) ---------- */
.slinks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.slinks a { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; border-radius: 99px; transition: transform .3s var(--spring), background .2s, color .2s; }
.sl__i { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--spring), background .2s; }
.sl__i svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.slinks a:hover .sl__i { transform: rotate(-10deg) scale(1.08); }
.slinks--footer { justify-content: center; margin: 4px auto 18px; max-width: 900px; }
.slinks--footer a { padding: 4px 14px 4px 4px; background: rgba(255, 255, 255, .07); color: #fff; font-size: .85rem; }
.slinks--footer a:hover { background: rgba(255, 255, 255, .16); }
.slinks--footer .sl__i { background: var(--lime); color: var(--navy); width: 34px; height: 34px; }
.slinks--cards { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.slinks--cards a { padding: 8px 16px 8px 8px; background: var(--paper); border-radius: 16px; font-weight: 600; color: var(--navy); word-break: break-word; }
.slinks--cards a:hover { background: #fff; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.slinks--cards .sl__i { background: var(--navy); color: #fff; }
@media (max-width: 560px) { .slinks--footer .sl__t { display: none; } .slinks--footer a { padding: 4px; } .slinks--footer .sl__i { width: 42px; height: 42px; } }

/* contact people cards */
.pgrid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.pcard { gap: 8px; }
.pcard__role { align-self: flex-start; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; background: var(--lime); color: var(--navy); padding: .3em .8em; border-radius: 99px; }
.pcard__line { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .92rem; overflow-wrap: anywhere; }
.pcard__line .sl__i { width: 32px; height: 32px; background: var(--paper); color: var(--navy); }
.pcard__line:hover { color: var(--teal-2); }
.pcard .card__foot .btn { flex: 1 1 auto; }

/* festival cards with photos */
.flip { min-height: 300px; }
.flip__inner { min-height: 300px; }
.flip__front { overflow: hidden; isolation: isolate; background: radial-gradient(120% 90% at 30% 20%, #3b4f8a, var(--navy) 70%); }
.flip__front::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--photo, none) center / cover no-repeat; transition: transform 1.2s var(--ease); }
.flip__front.has-photo::after { content: "↻"; }
.flip__front.has-photo { background: #000; }
.flip__front.has-photo .flip__name, .flip__front.has-photo .season { position: relative; }
.flip__front.has-photo::before { box-shadow: inset 0 -120px 90px -20px rgba(0, 20, 40, .85); }
.flip:hover .flip__front::before { transform: scale(1.06); }
.flip__front .season { backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(0, 41, 82, .45); color: #fff; }
.flip__name { text-shadow: 0 2px 12px rgba(0, 0, 0, .5); }

/* feature photo */
.feature { position: relative; margin: 0; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 16 / 7; background: var(--paper); }
.feature img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.feature:hover img { transform: scale(1.04); }
.feature figcaption { position: absolute; left: 18px; bottom: 16px; background: rgba(0, 41, 82, .7); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; padding: .45em 1em; border-radius: 99px; font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
@media (max-width: 560px) { .feature { aspect-ratio: 4 / 3; } }
