/*
 * Cookery school surfaces.
 *
 * Layered on top of base.css and driven entirely by its custom properties, so a
 * tenant's brand colour and dark mode carry through without anything here
 * knowing about them.
 */

/* ── Nav ─────────────────────────────────────────────────────────────────── */
.ck-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
  font-size: .95rem;
}
.ck-nav a {
  color: var(--color-text-muted);
  text-decoration: none;
  padding: .35rem 0;
  border-bottom: 2px solid transparent;
}
.ck-nav a:hover { color: var(--color-text); }
.ck-nav a[aria-current="page"] {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}
.ck-nav__cta {
  background: var(--color-primary);
  color: #fff !important;
  padding: .5rem 1rem !important;
  border-radius: var(--radius);
  border-bottom: none !important;
}
.ck-nav__cta:hover { background: var(--color-primary-dark); }

@media (max-width: 640px) {
  .ck-nav { gap: .9rem; font-size: .85rem; width: 100%; margin-top: .75rem; }
}

/* ── Filters ─────────────────────────────────────────────────────────────── */
.ck-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: 2rem;
}
.ck-chip-btn {
  font: inherit;
  font-size: .9rem;
  padding: .45rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text-muted);
  cursor: pointer;
}
.ck-chip-btn:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.ck-chip-btn.is-active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
}

/* ── Course grid ─────────────────────────────────────────────────────────── */
.ck-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-bottom: 4rem;
}
.ck-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow);
  transition: transform .18s ease, box-shadow .18s ease;
}
.ck-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.ck-card__img {
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
  background-color: var(--color-bg-alt);
}
.ck-card__img--placeholder {
  background-image: linear-gradient(135deg, var(--color-bg-alt), var(--color-border));
}
.ck-card__body { padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.ck-card__meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.ck-card__title { font-size: 1.2rem; margin: 0; line-height: 1.3; }
.ck-card__desc {
  margin: 0;
  color: var(--color-text-muted);
  font-size: .92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.ck-card__foot {
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: space-between;
  font-size: .85rem;
}
.ck-card__price { font-weight: 600; }
.ck-card__next { color: var(--color-text-muted); }

.ck-tag {
  font-size: .75rem;
  font-weight: 600;
  padding: .2rem .55rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-primary) 12%, transparent);
  color: var(--color-primary);
  border: 1px solid color-mix(in oklab, var(--color-primary) 30%, transparent);
}
.ck-tag--quiet {
  background: var(--color-bg-alt);
  color: var(--color-text-muted);
  border-color: var(--color-border);
}

.ck-skeleton {
  height: 320px;
  border-radius: var(--radius-lg);
  background: linear-gradient(90deg, var(--color-bg-alt) 25%, var(--color-border) 37%, var(--color-bg-alt) 63%);
  background-size: 400% 100%;
  animation: ck-shimmer 1.4s ease-in-out infinite;
}
@keyframes ck-shimmer {
  0%   { background-position: 100% 0; }
  100% { background-position: 0 0; }
}
@media (prefers-reduced-motion: reduce) {
  .ck-skeleton { animation: none; }
  .ck-card { transition: none; }
}

.ck-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 1rem;
  color: var(--color-text-muted);
}

/* ── Course detail ───────────────────────────────────────────────────────── */
.ck-detail { display: grid; grid-template-columns: 1fr 340px; gap: 2.5rem; align-items: start; }
@media (max-width: 900px) { .ck-detail { grid-template-columns: 1fr; } }

.ck-sessions { list-style: none; padding: 0; margin: 1rem 0 0; }
.ck-session {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  align-items: center;
  justify-content: space-between;
  padding: .9rem 0;
  border-bottom: 1px solid var(--color-border);
}
.ck-session__when { font-weight: 600; }
.ck-session__what { color: var(--color-text-muted); font-size: .9rem; }
.ck-session__left { font-size: .85rem; font-weight: 600; }
.ck-session__left--low { color: #b45309; }
.ck-session__left--out { color: var(--color-text-muted); font-weight: 400; }

.ck-booking {
  position: sticky;
  top: 1.5rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}
.ck-booking h2 { margin: 0 0 .35rem; font-size: 1.05rem; }
.ck-booking__price { font-size: 1.9rem; font-weight: 700; line-height: 1.1; }
.ck-booking__note { color: var(--color-text-muted); font-size: .85rem; margin: .35rem 0 1rem; }
.ck-booking select, .ck-booking .form-input { width: 100%; margin-bottom: .85rem; }
.ck-booking__btn { width: 100%; }

.ck-child-warn {
  font-size: .82rem;
  color: #b45309;
  margin: -.5rem 0 .85rem;
}

.ck-alert {
  border-radius: var(--radius);
  padding: .8rem 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
  border: 1px solid;
}
.ck-alert--error { border-color: #b91c1c; background: color-mix(in oklab, #b91c1c 10%, transparent); }
.ck-alert--info  { border-color: var(--color-border); background: var(--color-bg-alt); }
.ck-alert--ok    { border-color: #16a34a; background: color-mix(in oklab, #16a34a 10%, transparent); }

/* ── Marketing sections ──────────────────────────────────────────────────── */
.ck-hero {
  padding: 4rem 0 3rem;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 860px) { .ck-hero { grid-template-columns: 1fr; padding: 2.5rem 0 2rem; } }
.ck-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; margin: .5rem 0 1rem; }
.ck-hero p { font-size: 1.1rem; color: var(--color-text-muted); line-height: 1.6; margin-bottom: 1.75rem; }
.ck-hero__art {
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--color-primary) 30%, transparent),
    color-mix(in oklab, var(--color-accent) 35%, transparent));
  display: grid;
  place-items: center;
  font-size: clamp(3rem, 12vw, 7rem);
}

.ck-points {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  padding: 3rem 0;
  border-top: 1px solid var(--color-border);
}
.ck-point h3 { margin: .6rem 0 .4rem; font-size: 1.05rem; }
.ck-point p { margin: 0; color: var(--color-text-muted); font-size: .93rem; line-height: 1.55; }
.ck-point__icon { font-size: 1.75rem; }

.ck-cta {
  text-align: center;
  padding: 3.5rem 1.5rem;
  margin: 3rem 0 4rem;
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}
.ck-cta h2 { margin: 0 0 .6rem; }
.ck-cta p { color: var(--color-text-muted); margin: 0 0 1.5rem; }

.ck-faq { max-width: 720px; margin: 0 auto 4rem; }
.ck-faq details {
  border-bottom: 1px solid var(--color-border);
  padding: 1rem 0;
}
.ck-faq summary { cursor: pointer; font-weight: 600; }
.ck-faq p { color: var(--color-text-muted); line-height: 1.6; margin: .75rem 0 0; }

/* ── A school's own pages (see showCookeryPage in api.js) ─────────────────
   Every colour is mixed from the theme tokens, so each school's brand carries
   through. Most photos are portrait phone shots, so they are cropped from a
   little above centre to keep faces in. */

/* Headings use the theme's display font, so a school that sets its own
   (through its custom stylesheet) sees it on every cookery page. */
.ck-hero h1, .ck-divider, .ck-chapter h2, .ck-feature h3, .ck-band h2,
.ck-gallery__title, .ck-apply h2, .ck-card__title, .ck-detail h1, .ck-school__name {
  font-family: var(--font-display, inherit);
}

/* A soft glow of the school's colours behind the header. */
.ck-hero { position: relative; isolation: isolate; }
.ck-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 320px at 78% 45%, color-mix(in oklab, var(--color-accent) 22%, transparent), transparent 62%),
    radial-gradient(circle 260px at 18% 75%, color-mix(in oklab, var(--color-primary) 10%, transparent), transparent 58%);
}
@media (max-width: 860px) { .ck-hero::before { display: none; } }
.ck-hero h1 { letter-spacing: -0.025em; }

/* Header photo: a framed main photo on a tilted card, a second photo pinned on top. */
.ck-hero__visual { position: relative; isolation: isolate; aspect-ratio: 1 / 1; }
.ck-hero__visual::before {
  content: "";
  position: absolute;
  inset: 5% -4% -4% 7%;
  z-index: -1;
  border-radius: 2rem;
  background: color-mix(in oklab, var(--color-accent) 50%, var(--color-bg));
  transform: rotate(4deg);
}
.ck-hero__frame { position: absolute; inset: 0; border-radius: 1.75rem; overflow: hidden; box-shadow: var(--shadow-lg); }
.ck-hero__frame img,
.ck-hero__inset img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.ck-hero__inset {
  position: absolute;
  left: -7%;
  bottom: -7%;
  width: 38%;
  aspect-ratio: 1 / 1;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 6px solid var(--color-bg);
  box-shadow: var(--shadow-lg);
  transform: rotate(-6deg);
}
@media (max-width: 860px) {
  .ck-hero__visual { aspect-ratio: 4 / 3; margin: 0 .75rem 1.75rem; }
  .ck-hero__visual::before { inset: 6% -3% -4% 5%; }
  .ck-hero__inset { left: -3%; bottom: -10%; width: 30%; border-width: 4px; }
}

/* The story: a lead, then one chapter per heading. */
.ck-story { padding: .5rem 0 2rem; }
.ck-lead {
  max-width: 60ch;
  margin: 1.5rem auto 3rem;
  text-align: center;
  font-size: clamp(1.1rem, 2.1vw, 1.3rem);
  line-height: 1.65;
}
.ck-lead p { margin: 0 0 1rem; color: color-mix(in oklab, var(--color-text) 80%, var(--color-bg)); }
.ck-lead p:first-child { color: var(--color-text); font-weight: 600; font-size: 1.12em; }
.ck-divider {
  text-align: center;
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  letter-spacing: -0.02em;
  margin: 3.5rem 0 .5rem;
}
.ck-chapter { display: grid; gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding: 2.25rem 0; }
.ck-chapter:not(.ck-chapter--photo) .ck-chapter__text { max-width: 72ch; margin: 0 auto; width: 100%; }
/* Feature cards use the full width, so four sit in a row. */
.ck-chapter.ck-chapter--features .ck-chapter__text { max-width: none; }
.ck-chapter--features .ck-chapter__text > :not(.ck-features):not(.ck-timeline) { max-width: 72ch; margin-left: auto; margin-right: auto; }
.ck-chapter--features h2 { text-align: center; }
.ck-chapter--features h2::before { margin-left: auto; margin-right: auto; }
.ck-chapter--photo { grid-template-columns: 1.1fr .9fr; }
.ck-chapter--flip .ck-chapter__photo { order: -1; }
.ck-chapter h2 { font-size: clamp(1.45rem, 2.8vw, 1.95rem); line-height: 1.15; letter-spacing: -0.015em; margin: 0 0 1rem; }
.ck-chapter h2::before {
  content: "";
  display: block;
  width: 2.75rem;
  height: .32rem;
  border-radius: 999px;
  background: var(--color-accent);
  margin-bottom: 1rem;
}
.ck-chapter p { color: color-mix(in oklab, var(--color-text) 80%, var(--color-bg)); font-size: 1.07rem; line-height: 1.75; margin: 0 0 1rem; }
.ck-chapter strong, .ck-lead strong { color: var(--color-text); }
.ck-chapter__photo {
  margin: 0;
  aspect-ratio: 4 / 5;
  border-radius: 1.5rem;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transform: rotate(1.5deg);
}
.ck-chapter--flip .ck-chapter__photo { transform: rotate(-1.5deg); }
.ck-chapter--short .ck-chapter__photo { aspect-ratio: 4 / 3; }
.ck-chapter__photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
@media (max-width: 860px) {
  .ck-chapter--photo { grid-template-columns: 1fr; }
  .ck-chapter--flip .ck-chapter__photo { order: 0; }
  .ck-chapter__photo, .ck-chapter--flip .ck-chapter__photo { aspect-ratio: 4 / 3; transform: none; }
}

/* Lists: ticks, or feature cards when every item reads "Title: text". */
.ck-ticks { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .65rem; }
.ck-ticks li { position: relative; padding-left: 2.1rem; line-height: 1.6; }
.ck-ticks li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .1rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: .78rem;
  font-weight: 800;
  background: color-mix(in oklab, var(--color-accent) 28%, transparent);
  color: var(--color-text);
}
.ck-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: .75rem 0 1rem; }
.ck-feature {
  padding: 1.5rem 1.4rem;
  border-radius: 1.25rem;
  background: color-mix(in oklab, var(--color-accent) 7%, var(--color-bg-alt));
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
}
.ck-feature h3 { margin: 0 0 .45rem; font-size: 1.05rem; line-height: 1.3; }
.ck-feature p { margin: 0; font-size: .95rem; line-height: 1.6; }
/* A card that opens one of the school's pages. */
.ck-features:has(> .ck-feature--link) { grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.ck-feature--link { display: flex; flex-direction: column; color: inherit; text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
.ck-feature--link:hover, .ck-feature--link:focus-visible { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.ck-feature__go { margin-top: auto; padding-top: .9rem; font-weight: 700; font-size: .92rem; color: var(--color-primary); }
.ck-story p a, .ck-story li a { color: var(--color-primary); font-weight: 600; }

/* Closing band with the page's button. */
.ck-band {
  margin: 2.5rem 0 4rem;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: 1.75rem;
  text-align: center;
  background: linear-gradient(135deg,
    color-mix(in oklab, var(--color-primary) 16%, var(--color-bg)),
    color-mix(in oklab, var(--color-accent) 24%, var(--color-bg)));
}
.ck-band h2 { margin: 0 0 1.25rem; font-size: clamp(1.45rem, 3vw, 2rem); letter-spacing: -0.015em; }

/* Leftover photos: a mosaic with one big tile. */
.ck-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  grid-auto-flow: dense;
  gap: .75rem;
  margin: 1rem 0 3.5rem;
}
.ck-gallery[hidden] { display: none; }
.ck-gallery--few { display: flex; flex-wrap: wrap; justify-content: center; }
.ck-gallery--few .ck-gallery__title { flex-basis: 100%; }
.ck-gallery--few .ck-gallery__item { width: min(220px, 45%); }
.ck-gallery__title { grid-column: 1 / -1; text-align: center; font-size: clamp(1.45rem, 2.8vw, 1.95rem); letter-spacing: -0.015em; margin: 1rem 0 .75rem; }
.ck-gallery__item {
  padding: 0; border: 0; background: none; cursor: zoom-in;
  aspect-ratio: 1 / 1; border-radius: 1.1rem; overflow: hidden;
}
.ck-gallery__item--big { grid-column: span 2; grid-row: span 2; }
.ck-gallery__item:focus-visible { outline: 3px solid var(--color-primary); outline-offset: 2px; }
.ck-gallery__img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; transition: transform .35s ease; }
.ck-gallery__item:hover .ck-gallery__img { transform: scale(1.05); }
.ck-viewer { padding: 0; border: 0; background: transparent; max-width: 92vw; max-height: 92vh; cursor: zoom-out; }
/* A scrim behind a photo stays dark whatever the tenant's palette. */
.ck-viewer::backdrop { background: oklch(0% 0 0 / .8); }
.ck-viewer img { display: block; max-width: 92vw; max-height: 92vh; border-radius: var(--radius-lg); }

/* Sections ease in as they scroll into view (ckReveal shows them all after a moment regardless). */
@media (prefers-reduced-motion: no-preference) {
  .ck-reveal { transition: opacity .7s ease, transform .7s ease; }
  .ck-reveal:not(.is-in) { opacity: 0; transform: translateY(18px); }
}

/* A school's own page text (see cookeryPageHtml). */
.ck-prose { max-width: 70ch; margin: 0 auto 3rem; line-height: 1.7; }
.ck-prose h2 { font-size: 1.35rem; margin: 2rem 0 .6rem; }
.ck-prose p { margin: 0 0 1rem; }
.ck-prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.ck-prose li { margin-bottom: .35rem; }
.ck-links { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; margin: 0 0 3rem; }
/* `.btn` and `.ck-links` set their own display, which would otherwise win over `hidden`. */
.ck-hero [hidden], .ck-links[hidden], .ck-filters[hidden], .ck-enquire[hidden] { display: none !important; }

/* ── Listing grouped by school ───────────────────────────────────────────── */
.ck-jump { align-items: center; margin-top: -1rem; }
.ck-jump__label { font-size: .9rem; color: var(--color-text-muted); margin-right: .25rem; }
.ck-jump .ck-chip-btn { text-decoration: none; color: var(--color-text); }
.ck-school { scroll-margin-top: 5rem; margin-bottom: 1.25rem; }
.ck-school__name { font-size: 1.4rem; margin: 0 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--color-border); }
.ck-school .ck-grid { margin-bottom: 2.5rem; }
.ck-enquire { margin: 1rem 0 4rem; padding: 1.5rem; border: 1px solid var(--color-border); border-radius: 12px; background: var(--color-surface, var(--color-bg)); }
.ck-enquire h2 { margin: 0 0 .5rem; font-size: 1.2rem; }
.ck-enquire p { margin: 0 0 1rem; color: var(--color-text-muted); }

/* ── Join the team application ───────────────────────────────────────────── */
.ck-apply { max-width: 760px; margin: 1rem auto 4.5rem; padding: clamp(1.5rem, 4vw, 2.75rem); border: 1px solid var(--color-border); border-top: 5px solid var(--color-accent); border-radius: 1.5rem; background: color-mix(in oklab, var(--color-accent) 5%, var(--color-bg)); box-shadow: var(--shadow-lg); scroll-margin-top: 1.5rem; }
.ck-apply[hidden] { display: none !important; }
.ck-apply h2 { margin: 0 0 .35rem; font-size: clamp(1.45rem, 2.8vw, 1.9rem); letter-spacing: -0.015em; text-align: center; }
.ck-apply__lead { margin: 0 0 1.75rem; color: var(--color-text-muted); text-align: center; }
.ck-apply__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 1rem; }
.ck-apply .form-input { width: 100%; margin-bottom: 1rem; box-sizing: border-box; }
.ck-apply__opt { font-weight: 400; color: var(--color-text-muted); }
.ck-apply__dbs { border: 0; padding: 0; margin: 0 0 1.25rem; display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: center; }
.ck-apply__dbs legend { width: 100%; margin-bottom: .5rem; }
.ck-apply__consent { display: flex; gap: .65rem; align-items: flex-start; margin: .25rem 0 1.25rem; font-size: .92rem; line-height: 1.5; color: var(--color-text-muted); cursor: pointer; }
.ck-apply__consent input { margin-top: .25rem; flex: none; width: 1.05rem; height: 1.05rem; }
.ck-apply button[type="submit"] { width: 100%; padding: .9rem 1rem; font-size: 1.02rem; }
.ck-apply__privacy { margin: .75rem 0 0; font-size: .85rem; color: var(--color-text-muted); }

/* ── Club banner on the course page ──────────────────────────────────────── */
.ck-detail__banner { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 1.25rem; margin: 0 0 1.25rem; background: var(--color-bg-alt); box-shadow: var(--shadow-lg); }

/* ── Clubs list header: the same open, glowing look as the school's pages ── */
html .page-hero.ck-listhero {
  position: relative;
  isolation: isolate;
  margin: 0 0 1rem;
  padding: 3.5rem 0 1.75rem;
  border: 0;
  background: none;
  text-align: center;
}
html .page-hero.ck-listhero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle 300px at 28% 40%, color-mix(in oklab, var(--color-accent) 18%, transparent), transparent 62%),
    radial-gradient(circle 260px at 74% 60%, color-mix(in oklab, var(--color-primary) 10%, transparent), transparent 58%);
}
.ck-listhero .page-hero__header { justify-content: center; }
.ck-listhero .page-title { font-size: clamp(2.3rem, 5.5vw, 3.6rem); letter-spacing: -0.03em; }
.ck-listhero .page-subtitle { margin: .5rem auto 0; font-size: 1.08rem; max-width: 46rem; }
.ck-jump { justify-content: center; }
@media (max-width: 860px) { html .page-hero.ck-listhero::before { display: none; } }

/* ── Menu and footer (see showCookerySite) ───────────────────────────────── */
.ck-nav { display: flex; gap: .25rem; align-items: center; }
.ck-nav a, .ck-nav__toggle {
  padding: .5rem .85rem;
  border-radius: 999px;
  font: inherit;
  font-weight: 600;
  font-size: .92rem;
  color: var(--color-text);
  text-decoration: none;
  white-space: nowrap;
  background: none;
  border: 0;
  cursor: pointer;
}
.ck-nav a:hover, .ck-nav__toggle:hover { background: color-mix(in oklab, var(--color-primary) 10%, transparent); }
.ck-nav a[aria-current="page"], .ck-nav__toggle[data-current] { background: color-mix(in oklab, var(--color-primary) 14%, transparent); color: var(--color-primary); }
.ck-nav__toggle { display: inline-flex; align-items: center; gap: .4rem; }
.ck-nav__caret { width: .45rem; height: .45rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s ease; }
.ck-nav__toggle[aria-expanded="true"] .ck-nav__caret { transform: translateY(1px) rotate(225deg); }
.ck-nav__group { position: relative; }
.ck-nav__menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + .4rem);
  left: 0;
  min-width: 14rem;
  padding: .45rem;
  display: none;
  flex-direction: column;
  gap: .1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  box-shadow: var(--shadow-lg);
}
.ck-nav__menu a { border-radius: .7rem; }
.ck-nav__toggle[aria-expanded="true"] + .ck-nav__menu { display: flex; }
@media (hover: hover) and (min-width: 821px) {
  .ck-nav__group:hover .ck-nav__menu { display: flex; }
  .ck-nav__group:hover .ck-nav__menu::before { content: ""; position: absolute; left: 0; right: 0; top: -.6rem; height: .6rem; }
}
.ck-burger { display: none; }

@media (max-width: 820px) {
  .site-header__inner { flex-wrap: wrap; height: auto; padding: .5rem 0; row-gap: .25rem; }
  .ck-burger {
    display: inline-flex; align-items: center; gap: .55rem; margin-left: auto;
    padding: .55rem .9rem; border: 1px solid var(--color-border); border-radius: 999px;
    background: var(--color-bg); color: var(--color-text); font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer;
  }
  .ck-burger__bars, .ck-burger__bars::before, .ck-burger__bars::after {
    display: block; width: 1.1rem; height: 2px; border-radius: 2px; background: currentColor; position: relative; transition: transform .2s ease, background .2s ease;
  }
  .ck-burger__bars::before, .ck-burger__bars::after { content: ""; position: absolute; left: 0; }
  .ck-burger__bars::before { top: -6px; }
  .ck-burger__bars::after { top: 6px; }
  .ck-burger[aria-expanded="true"] .ck-burger__bars { background: transparent; }
  .ck-burger[aria-expanded="true"] .ck-burger__bars::before { transform: translateY(6px) rotate(45deg); }
  .ck-burger[aria-expanded="true"] .ck-burger__bars::after { transform: translateY(-6px) rotate(-45deg); }
  .ck-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: .15rem; padding: .5rem 0 .75rem; }
  .ck-menu-open .ck-nav { display: flex; }
  .ck-nav a, .ck-nav__toggle { padding: .75rem 1rem; font-size: 1rem; border-radius: .8rem; text-align: left; }
  .ck-nav__toggle { width: 100%; justify-content: space-between; }
  .ck-nav__menu { position: static; display: none; min-width: 0; padding: 0 0 .25rem 1rem; border: 0; box-shadow: none; background: none; }
}

/* Choices on a page's form ("Which club are you interested in?"). */
.ck-apply__choices { border: 0; padding: 0; margin: 0 0 1.25rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .5rem; }
.ck-apply__choices legend { margin-bottom: .6rem; }
.ck-choice { display: flex; gap: .6rem; align-items: center; padding: .75rem .9rem; border: 1px solid var(--color-border); border-radius: .9rem; background: var(--color-bg); cursor: pointer; font-weight: 500; }
.ck-choice:has(input:checked) { border-color: var(--color-primary); background: color-mix(in oklab, var(--color-primary) 8%, var(--color-bg)); }
.ck-choice input { accent-color: var(--color-primary); }
.ck-apply textarea.form-input { resize: vertical; }

/* The blog: a grid of posts and a readable article. */
.ck-blog-list { max-width: 1100px; margin: 0 auto 4rem; padding: 0 1.5rem; }
.ck-blog-date { margin: 0 0 .4rem; font-size: .82rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.ck-article { max-width: 72ch; margin: 2rem auto 4rem; padding: 0 1.5rem; line-height: 1.75; font-size: 1.06rem; }
.ck-article h1 { font-family: var(--font-display, inherit); font-size: clamp(2rem, 4.5vw, 2.9rem); line-height: 1.15; margin: .2rem 0 1rem; }
.ck-article h2 { font-family: var(--font-display, inherit); font-size: 1.55rem; margin: 2.4rem 0 .6rem; }
.ck-article h3 { font-size: 1.18rem; margin: 1.8rem 0 .4rem; }
.ck-article__lead { font-size: 1.2rem; color: var(--color-text-muted); }
.ck-article__body ul, .ck-article__body ol { padding-left: 1.4rem; display: grid; gap: .35rem; }
.ck-article__body a, .ck-article__back a { color: var(--color-primary); font-weight: 600; }
.ck-article__back { margin: 0 0 1.25rem; font-size: .95rem; }

/* A school's text under its clubs list, and its privacy policy. */
.ck-clubs-text { max-width: 1100px; margin: 3rem auto 0; padding: 0 1.5rem; }
.ck-clubs-text:empty { display: none; }
.ck-legal { max-width: 75ch; margin: 0 auto 4rem; padding: 0 1.5rem; line-height: 1.7; }
.ck-legal.ck-story .ck-chapter { display: block; padding: 0; margin: 2rem 0 0; }
.ck-legal.ck-story .ck-chapter h2 { font-size: 1.3rem; }

/* Homepage "Coming up" cards that open one of the school's pages. */
.ck-card__cta { margin-top: auto; font-weight: 700; color: var(--color-primary); }
.ck-card--soon .ck-card__img--photo { aspect-ratio: 4 / 3; background-size: cover; background-position: center; }

/* Upcoming dates on an information page (holiday workshops). */
.ck-upcoming { max-width: 1100px; margin: 0 auto 3.5rem; padding: 0 1.5rem; }
.ck-upcoming[hidden] { display: none !important; }
.ck-upcoming h2 { text-align: center; margin: 0 0 1.5rem; }
.ck-upcoming__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1.25rem; }
.ck-upcoming .ck-card { text-decoration: none; color: inherit; }

.ck-footer {
  margin-top: 4rem;
  padding: 3rem 1.5rem 1.5rem;
  background: color-mix(in oklab, var(--color-text) 92%, var(--color-bg));
  color: color-mix(in oklab, var(--color-bg) 82%, var(--color-text));
}
.ck-footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 2rem;
}
@media (max-width: 760px) { .ck-footer__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .ck-footer__inner { grid-template-columns: 1fr; } }
.ck-footer h3 { margin: 0 0 .75rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--color-accent); }
.ck-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.ck-footer a { color: inherit; text-decoration: none; }
.ck-footer a:hover { color: var(--color-bg); text-decoration: underline; }
.ck-footer p { margin: 0 0 .5rem; line-height: 1.6; }
.ck-footer__name { font-family: var(--font-display, inherit); font-size: 1.35rem; font-weight: 700; color: var(--color-bg); }
.ck-footer__areas { opacity: .8; font-size: .92rem; }
.ck-footer__social a { display: inline-flex; align-items: center; gap: .5rem; }
.ck-footer__icon { width: 1.15rem; height: 1.15rem; fill: currentColor; }
.ck-footer .ck-footer__base {
  max-width: 1100px;
  margin: 2.5rem auto 0;
  padding-top: 1.25rem;
  border-top: 1px solid color-mix(in oklab, var(--color-bg) 18%, transparent);
  font-size: .85rem;
  opacity: .75;
}

/* ── Homepage: trust strip, quote, how it works ──────────────────────────── */
.ck-trust {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: .75rem;
  margin: .5rem 0 3rem;
}
.ck-trust[hidden], .ck-quote[hidden], .ck-how[hidden] { display: none; }
.ck-trust__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  background: color-mix(in oklab, var(--color-bg) 70%, white);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: .95rem;
  line-height: 1.35;
}
.ck-trust__tick {
  flex: none;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-accent);
  color: var(--color-text);
  font-weight: 800;
}

.ck-quote { margin: 3rem auto; max-width: 52rem; text-align: center; }
.ck-quote blockquote { margin: 0; }
.ck-quote p {
  margin: 0;
  font-family: var(--font-display, inherit);
  font-style: italic;
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1.45;
  color: var(--color-text);
}
.ck-quote figcaption { margin-top: 1rem; font-weight: 700; color: var(--color-primary); letter-spacing: .02em; }
.ck-quote figcaption::before { content: "— "; }

.ck-how {
  margin: 3rem 0;
  padding: clamp(2rem, 5vw, 3rem);
  border-radius: 1.75rem;
  background: color-mix(in oklab, var(--color-primary) 10%, var(--color-bg));
  text-align: center;
}
.ck-how h2 { margin: 0 0 1.75rem; font-family: var(--font-display, inherit); font-size: clamp(1.5rem, 3vw, 2rem); }
.ck-how__steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 1.25rem; counter-reset: ck-step; }
.ck-how__steps li { counter-increment: ck-step; background: var(--color-bg); border-radius: 1.25rem; padding: 1.5rem 1.25rem; text-align: left; }
.ck-how__steps li::before {
  content: counter(ck-step);
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  margin-bottom: .75rem;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-bg);
  font-weight: 800;
}
.ck-how__steps h3 { margin: 0 0 .35rem; font-size: 1.05rem; }
.ck-how__steps p { margin: 0; color: var(--color-text-muted); font-size: .95rem; line-height: 1.55; }

/* ── Clubs list: one card per school, each club a row ────────────────────── */
.ck-schoolcard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.5rem;
  align-items: start;
  padding: 1.25rem;
  border-radius: 1.5rem;
  background: color-mix(in oklab, var(--color-bg) 60%, white);
  border: 1px solid var(--color-border);
}
.ck-schoolcard--noimg { grid-template-columns: 1fr; }
@media (max-width: 720px) { .ck-schoolcard { grid-template-columns: 1fr; } }
.ck-schoolcard__img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 1rem; display: block; }
.ck-schoolcard .ck-school__name { margin: .25rem 0 .75rem; border: 0; padding: 0; }
.ck-clubrows { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.ck-clubrow {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: .25rem 1rem;
  align-items: center;
  padding: .85rem 1rem;
  border-radius: 1rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease;
}
.ck-clubrow:hover { border-color: var(--color-primary); transform: translateX(3px); }
.ck-clubrow__name { font-weight: 700; }
.ck-clubrow__meta { grid-column: 1; color: var(--color-text-muted); font-size: .9rem; }
.ck-clubrow__tags { grid-column: 1; display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .2rem; }
.ck-clubrow__price { grid-column: 2; grid-row: 1 / span 3; font-weight: 700; text-align: right; font-size: .95rem; }
.ck-clubrow__go { grid-column: 3; grid-row: 1 / span 3; font-size: 1.25rem; color: var(--color-primary); }
@media (max-width: 520px) {
  .ck-clubrow { grid-template-columns: 1fr auto; }
  .ck-clubrow__price { grid-column: 1; grid-row: auto; text-align: left; }
  .ck-clubrow__go { grid-column: 2; }
}

/* ── Scrollytelling: a pinned photo beside the story (see ckScrolly) ──────── */
.ck-scrolly { margin: 1.5rem 0; }
.ck-scrolly__inline { margin: 1.25rem 0 0; border-radius: 1.5rem; overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-lg); }
.ck-scrolly__inline img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; display: block; }
.ck-scrolly__step { padding: 2rem 0; }
.ck-scrolly__step .ck-chapter { padding: 0; display: block; }
.ck-scrolly__stage { display: none; }
@media (min-width: 900px) {
  .ck-scrolly { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 5rem); align-items: start; }
  .ck-scrolly__inline { display: none; }
  .ck-scrolly__step {
    min-height: 78vh;
    display: flex;
    align-items: center;
    padding: 0;
    opacity: .28;
    transition: opacity .5s ease;
  }
  .ck-scrolly__step.is-active { opacity: 1; }
  .ck-scrolly__stage {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.25rem;
    position: sticky;
    top: 10vh;
    height: 80vh;
  }
  .ck-scrolly__frame {
    position: relative;
    width: min(100%, 30rem);
    margin: 0 auto;
    aspect-ratio: 4 / 5;
    max-height: 66vh;
    border-radius: 1.75rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: transform .8s cubic-bezier(.2, .8, .2, 1);
  }
  .ck-scrolly__stage[data-active="0"] .ck-scrolly__frame { transform: rotate(2deg); }
  .ck-scrolly__stage[data-active="1"] .ck-scrolly__frame { transform: rotate(-2.5deg); }
  .ck-scrolly__stage[data-active="2"] .ck-scrolly__frame { transform: rotate(1.5deg); }
  .ck-scrolly__stage[data-active="3"] .ck-scrolly__frame { transform: rotate(-1.5deg); }
  .ck-scrolly__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    opacity: 0;
    transform: scale(1.1);
    transition: opacity .7s ease, transform 1.4s cubic-bezier(.2, .8, .2, 1);
  }
  .ck-scrolly__img.is-active { opacity: 1; transform: scale(1); }
  .ck-scrolly__dots { display: flex; justify-content: center; gap: .5rem; }
  .ck-scrolly__dots span { width: .6rem; height: .6rem; border-radius: 999px; background: var(--color-border); transition: width .4s ease, background .4s ease; }
  .ck-scrolly__dots span.is-active { width: 1.8rem; background: var(--color-accent); }
}

/* ── Sprinkles and parallax (see ckSprinkles, ckParallax) ─────────────────── */
.ck-sprinkles { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ck-sprinkle {
  position: absolute;
  width: .95rem;
  height: .32rem;
  border-radius: 999px;
  transform: rotate(var(--r, 0deg));
  opacity: .9;
}
.ck-sprinkle--1 { background: var(--color-accent); }
.ck-sprinkle--2 { background: var(--color-primary); }
.ck-sprinkle--3 { background: color-mix(in oklab, var(--color-accent) 55%, var(--color-primary)); }
.ck-sprinkle--4 { background: color-mix(in oklab, var(--color-primary) 35%, var(--color-bg)); }
/* Phones have no room beside the text for sprinkles. */
@media (max-width: 860px) { .ck-sprinkles { display: none; } }

@media (prefers-reduced-motion: no-preference) {
  .ck-sprinkle { translate: 0 calc(var(--ck-scroll, 0) * var(--d, .3) * -1px); }
  .ck-hero__frame { translate: 0 calc(var(--ck-scroll, 0) * -.04px); }
  .ck-hero__inset { translate: 0 calc(var(--ck-scroll, 0) * .07px); }

  /* Entrances: the header settles in, the pinned photo pops on. */
  .ck-hero > div:first-of-type > * { animation: ck-up .8s cubic-bezier(.2, .8, .2, 1) both; }
  .ck-hero > div:first-of-type > :nth-child(2) { animation-delay: .08s; }
  .ck-hero > div:first-of-type > :nth-child(3) { animation-delay: .16s; }
  .ck-hero > div:first-of-type > :nth-child(4) { animation-delay: .24s; }
  .ck-hero__frame { animation: ck-rise 1s cubic-bezier(.2, .8, .2, 1) both; }
  .ck-hero__inset { animation: ck-pop .7s .45s cubic-bezier(.3, 1.6, .5, 1) both; }
  .ck-sprinkles { animation: ck-fade 1.2s .3s both; }

  /* Story photos slide in tilted and settle. */
  .ck-chapter__photo { transition: transform .9s cubic-bezier(.2, .8, .2, 1), opacity .9s ease; }
  .ck-chapter.ck-reveal:not(.is-in) .ck-chapter__photo { opacity: 0; transform: translateX(60px) rotate(8deg); }
  .ck-chapter--flip.ck-reveal:not(.is-in) .ck-chapter__photo { transform: translateX(-60px) rotate(-8deg); }
}
@keyframes ck-up { from { opacity: 0; translate: 0 18px; } to { opacity: 1; translate: 0 0; } }
@keyframes ck-rise { from { opacity: 0; scale: .92; } to { opacity: 1; scale: 1; } }
@keyframes ck-pop { from { opacity: 0; scale: .5; } to { opacity: 1; scale: 1; } }
@keyframes ck-fade { from { opacity: 0; } to { opacity: 1; } }

/* ── Ribbon: what young chefs do, on a moving strip of tape ───────────────── */
.ck-ribbon {
  margin: 2.5rem 0 1rem;
  padding: .85rem 0;
  overflow: hidden;
  border-radius: .5rem;
  background: var(--color-accent);
  color: var(--color-text);
  transform: rotate(-1.5deg);
  box-shadow: var(--shadow);
}
.ck-ribbon__track { display: flex; width: max-content; gap: 0; }
.ck-ribbon__track span {
  display: inline-flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 .75rem;
  font-family: var(--font-display, inherit);
  font-size: clamp(1.15rem, 2.4vw, 1.6rem);
  font-weight: 700;
  white-space: nowrap;
}
.ck-ribbon__track span::after { content: "✦"; font-size: .8em; color: var(--color-primary); }
@media (prefers-reduced-motion: no-preference) {
  .ck-ribbon__track { animation: ck-marquee 32s linear infinite; }
}
@keyframes ck-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Gallery as polaroids, straightening when you point at one ────────────── */
.ck-gallery__item {
  aspect-ratio: auto;
  overflow: visible;
  padding: .55rem .55rem 1.6rem;
  background: color-mix(in oklab, var(--color-bg) 25%, white);
  border-radius: .6rem;
  box-shadow: var(--shadow-lg);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease;
}
.ck-gallery__item .ck-gallery__img { border-radius: .3rem; height: auto; aspect-ratio: 1 / 1; }
.ck-gallery__item:nth-of-type(4n + 1) { transform: rotate(-3deg); }
.ck-gallery__item:nth-of-type(4n + 2) { transform: rotate(2deg); }
.ck-gallery__item:nth-of-type(4n + 3) { transform: rotate(-1.5deg); }
.ck-gallery__item:nth-of-type(4n) { transform: rotate(3deg); }
.ck-gallery__item:hover, .ck-gallery__item:focus-visible { transform: rotate(0) scale(1.05); z-index: 1; }
.ck-gallery__item:hover .ck-gallery__img { transform: none; }

/* ── A wavy edge on the footer ────────────────────────────────────────────── */
.ck-footer { position: relative; margin-top: 6rem; }
.ck-footer::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -39px;
  height: 40px;
  background: inherit;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C100 4 200 4 300 22s200 18 300 0 200-18 300 0 200 18 300 0V40z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0 40V22C100 4 200 4 300 22s200 18 300 0 200-18 300 0 200 18 300 0V40z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}

/* ── Club card photos with the day and time on them ───────────────────────── */
.ck-card__img--photo { position: relative; background-position: center 30%; }
.ck-card__when {
  position: absolute;
  left: .75rem;
  bottom: .75rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: 800;
  font-size: .9rem;
  box-shadow: var(--shadow);
}

/* ── Timelines: a numbered list of "Title: text" in a school's page ───────── */
.ck-timeline { list-style: none; margin: 1.25rem 0 .5rem; padding: 0; display: grid; gap: 1rem; counter-reset: ck-tl; position: relative; }
.ck-timeline__item { counter-increment: ck-tl; position: relative; padding: 1.25rem 1.25rem 1.25rem 4.25rem; border-radius: 1.25rem; background: color-mix(in oklab, var(--color-bg) 60%, white); border: 1px solid var(--color-border); }
.ck-timeline__item::before {
  content: counter(ck-tl);
  position: absolute;
  left: 1.1rem;
  top: 1.1rem;
  width: 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--color-primary);
  color: var(--color-bg);
  font-weight: 800;
}
.ck-timeline__item h3 { margin: 0 0 .3rem; font-family: var(--font-display, inherit); font-size: 1.12rem; }
.ck-timeline__item p { margin: 0; }
@media (min-width: 900px) {
  .ck-timeline { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); grid-auto-flow: column; gap: 1.25rem; padding-top: 3.25rem; }
  .ck-timeline::before { content: ""; position: absolute; left: 1.15rem; right: 1.15rem; top: 1.15rem; height: 4px; border-radius: 999px; background: color-mix(in oklab, var(--color-accent) 70%, transparent); }
  .ck-timeline__item { padding: 1.25rem; }
  .ck-timeline__item::before { top: -3.25rem; left: 0; }
}
.ck-ordered { padding-left: 1.4rem; display: grid; gap: .4rem; }

/* Phones: the timeline as a scroll story (see ckTimelineStory). */
.ck-tl-progress { display: none; }
@media (max-width: 899px) {
  .ck-timeline--story { gap: 0; margin-top: .5rem; }
  .ck-timeline--story .ck-tl-progress {
    display: flex; align-items: center; gap: .75rem;
    position: sticky; top: calc(var(--ck-header-h, 4.9rem) + .5rem); z-index: 5;
    margin: 0 0 .5rem; padding: .6rem .9rem;
    border-radius: 999px;
    background: color-mix(in oklab, var(--color-bg) 88%, transparent);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: var(--shadow);
  }
  .ck-tl-progress::before { content: none; }
  .ck-tl-progress__label { flex: none; font-weight: 700; font-size: .85rem; color: var(--color-primary); font-variant-numeric: tabular-nums; }
  .ck-tl-progress__bar { flex: 1; display: flex; gap: .3rem; }
  .ck-tl-progress__bar i { flex: 1; height: .4rem; border-radius: 999px; background: color-mix(in oklab, var(--color-text) 12%, transparent); transition: background .35s ease; }
  .ck-tl-progress__bar i.is-done { background: var(--color-primary); }
  .ck-timeline--story .ck-timeline__item {
    min-height: 52vh; min-height: 52svh;
    display: flex; flex-direction: column; justify-content: center;
    margin: 0 0 1rem; padding: 2rem 1.5rem 2rem;
    text-align: left;
  }
  .ck-timeline--story .ck-timeline__item::before {
    position: static; width: auto; height: auto; margin: 0 0 .75rem;
    display: block; background: none; box-shadow: none;
    font-family: var(--font-display, inherit); font-size: 5.5rem; line-height: .9;
    color: transparent; -webkit-text-stroke: 2px var(--color-primary);
  }
  .ck-timeline--story .ck-timeline__item h3 { font-size: 1.6rem; margin-bottom: .6rem; }
  .ck-timeline--story .ck-timeline__item p { font-size: 1.08rem; line-height: 1.6; }
  .ck-timeline--story .ck-timeline__item.is-active { background: var(--color-primary); border-color: transparent; color: #fff; }
  .ck-timeline--story .ck-timeline__item.is-active::before { color: #fff; -webkit-text-stroke-color: #fff; }
  .ck-timeline--story .ck-timeline__item.is-active h3 { color: #fff; }
  .ck-timeline--story .ck-timeline__item.is-active p { color: color-mix(in oklab, #fff 90%, var(--color-primary)); }
}
@media (max-width: 899px) and (prefers-reduced-motion: no-preference) {
  .ck-timeline--story .ck-timeline__item { transition: opacity .45s ease, transform .45s cubic-bezier(.2, .8, .2, 1), box-shadow .45s ease, background-color .45s ease, color .45s ease; transition-delay: 0s !important; }
  .ck-timeline--story .ck-timeline__item:not(.is-active) { opacity: .4; transform: scale(.96); }
  .ck-timeline--story .ck-timeline__item.is-active { box-shadow: var(--shadow-lg); }
  .ck-timeline--story .ck-timeline__item::before { transition: color .45s ease; }
}
@media (prefers-reduced-motion: no-preference) {
  .ck-timeline__item { transition: opacity .6s ease, transform .6s cubic-bezier(.2, .8, .2, 1); }
  .ck-reveal:not(.is-in) .ck-timeline__item { opacity: 0; transform: translateY(24px); }
  .ck-timeline__item:nth-child(2) { transition-delay: .1s; }
  .ck-timeline__item:nth-child(3) { transition-delay: .2s; }
  .ck-timeline__item:nth-child(4) { transition-delay: .3s; }
  .ck-timeline__item:nth-child(5) { transition-delay: .4s; }
}

/* ── In numbers (see ckNumbers) ───────────────────────────────────────────── */
.ck-numbers { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; margin: 3rem 0 1rem; text-align: center; }
.ck-numbers[hidden] { display: none; }
.ck-numbers__item { padding: 1.5rem 1rem; }
.ck-numbers__n { display: block; font-family: var(--font-display, inherit); font-weight: 700; font-size: clamp(2.6rem, 6vw, 4rem); line-height: 1; color: var(--color-primary); font-variant-numeric: tabular-nums; }
.ck-numbers__label { display: block; margin-top: .5rem; font-weight: 600; color: var(--color-text-muted); }

/* ── The quote over a photo ───────────────────────────────────────────────── */
.ck-quote--photo {
  position: relative;
  isolation: isolate;
  max-width: none;
  margin: 4rem 0;
  padding: clamp(4rem, 12vw, 8rem) clamp(1.5rem, 6vw, 5rem);
  border-radius: 2rem;
  overflow: hidden;
  background: var(--ck-quote-photo) center 30% / cover no-repeat;
}
/* A scrim behind light text stays dark whatever the tenant's palette. */
.ck-quote--photo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, oklch(0% 0 0 / .35), oklch(0% 0 0 / .6)); }
.ck-quote--photo p { color: white; font-size: clamp(1.5rem, 3.4vw, 2.3rem); text-shadow: 0 2px 18px oklch(0% 0 0 / .35); }
.ck-quote--photo figcaption { color: var(--color-accent); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .ck-quote--photo { animation: ck-pan linear both; animation-timeline: view(); }
  }
}
@keyframes ck-pan { from { background-position: center 0%; } to { background-position: center 70%; } }

/* ── Polaroid captions ────────────────────────────────────────────────────── */
.ck-gallery__item { position: relative; }
.ck-gallery__cap {
  display: block;
  padding: .55rem .25rem 0;
  font-family: var(--font-display, inherit);
  font-style: italic;
  font-size: .88rem;
  line-height: 1.3;
  color: var(--color-text);
  text-align: center;
}

/* Polaroids all one size: an oversized one leaves gaps under the rest. */
.ck-gallery__item--big { grid-column: auto; grid-row: auto; }

/* ── Club page: header, term calendar, booking bar ────────────────────────── */
.ck-back { margin: 1.5rem 0 0; }
.ck-clubhero { padding-top: 1.5rem; }
.ck-clubhero h1 { font-family: var(--font-display, inherit); }
.ck-clubhero__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.25rem; }
.ck-clubhero__chip {
  padding: .45rem .9rem;
  border-radius: 999px;
  background: color-mix(in oklab, var(--color-primary) 10%, var(--color-bg));
  color: var(--color-text);
  font-weight: 700;
  font-size: .92rem;
}
.ck-clubhero__chip:first-child { background: var(--color-accent); }
.ck-clubhero__banner { width: 46%; aspect-ratio: 16 / 9; }
.ck-clubhero__banner img { object-position: center; }

.ck-term__title { margin: 0 0 1rem; font-family: var(--font-display, inherit); font-size: clamp(1.35rem, 2.6vw, 1.75rem); }
.ck-term__status { margin: -.25rem 0 1rem; }
.ck-term__status .ck-session__left { display: inline-block; padding: .35rem .8rem; border-radius: 999px; background: color-mix(in oklab, var(--color-accent) 30%, var(--color-bg)); }
.ck-term { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .65rem; }
.ck-day {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .1rem;
  padding: .85rem .5rem .75rem;
  border-radius: 1.1rem;
  background: color-mix(in oklab, var(--color-bg) 55%, white);
  border: 1px solid var(--color-border);
  text-align: center;
}
.ck-day__dow { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--color-primary); }
.ck-day__num { font-family: var(--font-display, inherit); font-size: 2rem; font-weight: 700; line-height: 1.05; }
.ck-day__mon { font-size: .85rem; color: var(--color-text-muted); }
.ck-day__what { margin-top: .3rem; font-size: .78rem; line-height: 1.25; }
.ck-day__left { margin-top: .35rem; font-size: .75rem; }
.ck-day--break { background: transparent; border-style: dashed; justify-content: center; }
.ck-day__break { font-weight: 700; font-size: .85rem; color: var(--color-text-muted); }

.ck-stickybook {
  position: fixed;
  left: .75rem;
  right: .75rem;
  bottom: calc(.75rem + env(safe-area-inset-bottom, 0px));
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .75rem .75rem .75rem 1.1rem;
  border-radius: 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-lg);
}
.ck-stickybook[hidden] { display: none; }
.ck-stickybook strong { display: block; font-size: 1.15rem; }
.ck-stickybook span { font-size: .82rem; color: var(--color-text-muted); }
@media (min-width: 900px) { .ck-stickybook { display: none !important; } }

/* Hero copy and art wait for the school's own version (showCookeryPage adds
   .ck-page-ready) instead of flashing the neutral placeholder first. If the
   script never gets there, they appear anyway after 1.5s. */
html:not(.ck-page-ready) :is(#ck-home-eyebrow, #ck-page-title, #ck-page-intro, #ck-hero-art) {
  visibility: hidden;
  animation: ck-unhide 0s linear 1.5s forwards;
}
@keyframes ck-unhide { to { visibility: visible; } }
