@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/inter.woff2?v=8cef105181) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter Tight"; font-style: normal; font-weight: 600 800; font-display: swap; src: url(fonts/inter-tight.woff2?v=abee5bd575) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
:root {
  --kd-bg: #ffffff; --kd-surface: #f5f5f5; --kd-text: #1a1a1a; --kd-muted: #5a5a5a;
  --kd-accent: #803d7f; --kd-on-accent: #ffffff; --kd-accent-2: #fb9651; --kd-accent-ink: #803d7f;

  --rule: color-mix(in srgb, var(--kd-text) 18%, transparent);
  --gap: clamp(0.75rem, 2vw, 1.5rem);
  --pad: clamp(1.25rem, 4vw, 3rem);
  --display: "Inter Tight", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--kd-bg);
  color: var(--kd-text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  text-align: left;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--kd-accent-ink); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible {
  outline: 3px solid var(--kd-accent);
  outline-offset: 3px;
}

h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 800;
}

h2 { font-size: clamp(2.1rem, 7vw, 4.75rem); }
h3 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); letter-spacing: -0.02em; line-height: 1.15; font-weight: 700; }

p { margin: 0 0 1em; max-width: 62ch; }

.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--kd-text); color: var(--kd-bg); padding: 0.75rem 1rem; z-index: 10;
}
.skip:focus { left: var(--pad); }

/* ---------- Grid ---------- */
.wrap { max-width: 1320px; margin-inline: auto; padding-inline: var(--pad); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gap);
}
.grid > * { grid-column: 1 / -1; min-width: 0; }

.rule {
  height: 1px;
  background: var(--kd-text);
  margin: 0;
  border: 0;
}
.rule--soft { background: var(--rule); }

.bar {
  height: clamp(10px, 1.4vw, 18px);
  /* The bar ends in the colours of the logo's brain. */
  background: linear-gradient(90deg, var(--kd-accent) calc(100% - 12rem), #e23b3f 0 calc(100% - 9rem), #357c9a 0 calc(100% - 6rem), #bcbe36 0 calc(100% - 3rem), #fb9651 0);
}

/* ---------- Header ---------- */
.site-header { border-bottom: 1px solid var(--kd-text); background: var(--kd-bg); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.75rem 2rem; padding-block: 0.9rem;
}
.brand { display: flex; align-items: center; gap: 0.85rem; text-decoration: none; color: var(--kd-text); }
.brand img { height: 44px; width: auto; }
.brand span {
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em; line-height: 1.15;
  max-width: 11ch;
}
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.4rem; }
.nav a {
  color: var(--kd-text); text-decoration: none; font-weight: 500; font-size: 0.95rem;
  padding-block: 0.3rem; border-bottom: 2px solid transparent; display: inline-block;
}
.nav a:hover { border-bottom-color: var(--kd-text); }
.nav a[aria-current="page"] { color: var(--kd-accent-ink); border-bottom-color: var(--kd-accent); }

/* Menus (2026-11-18): real buttons that open native popovers, so they work with no script of our own; Escape closes
   them and gives focus back to the button. The lists are popovers only while open: closed, they're laid out in the
   page (the browser's own popover box is undone here). Breakpoints in em, so larger text collapses the menu sooner. */
.site-header { anchor-name: --site-header; }
.brand { min-width: 0; }
.nav [popover] {
  position: static; inset: auto; width: auto; height: auto; margin: 0; padding: 0; border: 0;
  background: none; color: inherit; overflow: visible;
}
.nav [popover]::backdrop { background: none; }
.nav-burger {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; user-select: none;
  flex: none; margin-left: auto; font: inherit; background: none; border-radius: 0;
  color: var(--kd-text); padding: 0.6rem; border: 2px solid var(--kd-text); min-width: 44px; min-height: 44px;
}
.nav-burger:hover { border-color: var(--kd-accent); color: var(--kd-accent-ink); }
/* Lines drawn as borders, not backgrounds, so they stay in Windows High Contrast (forced colors). */
.nav-burger-icon, .nav-burger-icon::before, .nav-burger-icon::after {
  display: block; width: 20px; height: 0; border-top: 2px solid currentColor;
}
.nav-burger-icon { position: relative; }
.nav-burger-icon::before, .nav-burger-icon::after { content: ""; position: absolute; left: 0; }
.nav-burger-icon::before { top: -8px; }
.nav-burger-icon::after { top: 4px; }
.nav:has(> .nav-menu:popover-open) .nav-burger-icon { border-top-color: transparent; }
.nav:has(> .nav-menu:popover-open) .nav-burger-icon::before { top: -2px; transform: rotate(45deg); }
.nav:has(> .nav-menu:popover-open) .nav-burger-icon::after { top: -2px; transform: rotate(-45deg); }
.sub-btn { display: none; }
.nav { display: flex; align-items: center; }

@media (max-width: 56.2499em) {
  .site-header .wrap { column-gap: 1rem; }
  .nav { margin-left: auto; }
  .nav-menu:not(:popover-open) { display: none; }
  /* Open: a panel under the header, as wide as the page (it was the header's own lower half before). */
  .nav .nav-menu:popover-open {
    position: absolute; inset: auto 0 auto 0; top: calc(44px + 1.8rem + 1px); top: anchor(--site-header bottom);
    padding: 0 var(--pad); background: var(--kd-bg); color: var(--kd-text); border-bottom: 1px solid var(--kd-text);
  }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li { border-bottom: 1px solid var(--rule); }
  .nav li:last-child { border-bottom: 0; }
  .nav a { display: block; padding-block: 0.85rem; font-size: 1.05rem; border-bottom: 0; }
  .nav a[aria-current="page"] { border-left: 4px solid var(--kd-accent); padding-left: 0.75rem; }
}

@media (min-width: 900px) {
  .brand img { height: 56px; }
}
@media (min-width: 56.25em) {
  .nav-burger { display: none; }
}

/* A browser without popovers (before 2024) shows the phone menu open and the dropdowns on hover and focus, as before. */
@supports not selector(:popover-open) {
  .nav-burger { display: none; }
  @media (max-width: 56.2499em) { .nav { flex-basis: 100%; border-top: 1px solid var(--kd-text); } }
}

@media (prefers-reduced-motion: no-preference) {
  .nav-burger { transition: color 0.2s ease, border-color 0.2s ease; }
  .nav-burger-icon, .nav-burger-icon::before, .nav-burger-icon::after { transition: transform 0.2s ease, top 0.2s ease, border-color 0.2s ease; }
}

/* ---------- Buttons ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.btn {
  display: inline-block;
  font-family: var(--display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em;
  padding: 0.95rem 1.4rem; text-decoration: none; border: 2px solid var(--kd-text);
  background: var(--kd-text); color: var(--kd-bg);
}
.btn:hover { background: var(--kd-accent); border-color: var(--kd-accent); color: var(--kd-on-accent); }
.btn--line { background: transparent; color: var(--kd-text); }
.btn--line:hover { background: var(--kd-text); border-color: var(--kd-text); color: var(--kd-bg); }

.arrow-link {
  font-family: var(--display); font-weight: 700; color: var(--kd-text); text-decoration: none;
  border-bottom: 2px solid var(--kd-text); padding-bottom: 0.15rem;
}
.arrow-link:hover { color: var(--kd-accent-ink); border-bottom-color: var(--kd-accent); }

/* ---------- Hero / page head ---------- */
.hero { padding-bottom: clamp(3rem, 8vw, 6rem); }
.hero .grid { row-gap: clamp(1.5rem, 3vw, 2.5rem); padding-top: clamp(2rem, 6vw, 5rem); }

.display {
  font-size: clamp(3rem, 1rem + 8vw, 7.5rem);
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-wrap: balance;
  font-weight: 800;
}
.hero .lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); line-height: 1.5; margin: 0; }
.hero-photo { margin: 0; overflow: hidden; aspect-ratio: 8 / 5; background: var(--kd-surface); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-meta {
  font-size: 0.95rem; color: var(--kd-muted); border-top: 1px solid var(--kd-text); padding-top: 0.75rem;
}
.hero-meta p { margin: 0; }

.page-head { padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.page-head .grid { row-gap: 1.5rem; align-items: end; padding-top: clamp(2rem, 6vw, 5rem); }
.page-head .lede { font-size: clamp(1.1rem, 1.8vw, 1.3rem); margin: 0; }

@media (min-width: 900px) {
  .hero h1 { grid-column: 1 / 11; }
  .hero .lede { grid-column: 1 / 6; grid-row: 2; }
  .hero .actions { grid-column: 1 / 6; grid-row: 3; align-self: start; }
  .hero .hero-meta { grid-column: 1 / 6; grid-row: 4; align-self: end; }
  .hero .hero-photo { grid-column: 6 / 13; grid-row: 2 / 5; aspect-ratio: 8 / 5; }

  .page-head h1 { grid-column: 1 / 9; }
  .page-head .lede { grid-column: 9 / 13; }
}

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 9vw, 7.5rem); }
.section--surface { background: var(--kd-surface); }
.section .grid { row-gap: 2rem; }
.section-head h2 { margin-bottom: 1.25rem; }
.section-head p { color: var(--kd-muted); }
.muted { color: var(--kd-muted); }

@media (min-width: 900px) {
  .split .section-head { grid-column: 1 / 6; align-self: start; position: sticky; top: 2rem; }
  .split .section-body { grid-column: 7 / 13; }
  .split--wide .section-head { grid-column: 1 / 5; }
  .split--wide .section-body { grid-column: 6 / 13; }
}

/* Stacked rows with hairlines */
.rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--kd-text); }
.rows > li, .rows > div { padding-block: 1.5rem; border-bottom: 1px solid var(--rule); }
.rows h3 { margin-bottom: 0.6rem; }
.rows p { margin: 0; color: var(--kd-muted); }
.rows p + p { margin-top: 0.75rem; }

/* Numbered rows (real sequences only) */
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--kd-text); }
.steps li {
  display: grid; grid-template-columns: 3.5rem minmax(0, 1fr); gap: 0 1rem;
  padding-block: 1.75rem; border-bottom: 1px solid var(--rule);
}
.steps .num {
  font-family: var(--display); font-weight: 800; font-size: clamp(2.25rem, 5vw, 3.5rem);
  letter-spacing: -0.05em; line-height: 0.85; color: var(--kd-text);
}
.steps li:first-child .num { color: var(--kd-accent-ink); }
.steps h3 { margin-bottom: 0.5rem; }
.steps p { margin: 0; color: var(--kd-muted); }
@media (min-width: 700px) {
  .steps li { grid-template-columns: 6rem minmax(0, 1fr); }
}
.steps--years li, .steps--years li:first-child { grid-template-columns: 1fr; row-gap: 0.9rem; }
@media (min-width: 700px) {
  .steps--years li { grid-template-columns: 10rem minmax(0, 1fr); }
}

.pull {
  font-family: var(--display); font-weight: 700; font-size: clamp(1.35rem, 0.9rem + 1.4vw, 1.9rem);
  line-height: 1.25; letter-spacing: -0.02em;
}

/* Photo cells */
.cell { margin: 0; overflow: hidden; background: var(--kd-surface); }
.cell img { width: 100%; height: 100%; object-fit: cover; }
.cell--wide { aspect-ratio: 16 / 9; }
.cell--tall { aspect-ratio: 4 / 5; }
.cell--sq { aspect-ratio: 1; }
.cell figcaption, .caption { font-size: 0.875rem; color: var(--kd-muted); padding-top: 0.6rem; }

/* Big figures */
.figure {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.06em; line-height: 0.85;
  font-size: clamp(4.5rem, 16vw, 11rem); display: block;
}
.figure--accent { color: var(--kd-accent-ink); }
.figure-label { font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; margin-top: 0.5rem; }

/* Highlights (home) */
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--kd-text); }
.highlights li { padding-block: 2rem; border-bottom: 1px solid var(--rule); display: flex; flex-direction: column; gap: 0.9rem; }
.highlights .figure { font-size: clamp(3.5rem, 10vw, 6rem); }
.highlights p { margin: 0; color: var(--kd-muted); }
.highlights .arrow-link { align-self: flex-start; margin-top: auto; }
@media (min-width: 900px) {
  .highlights { grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--rule); }
  .highlights li { padding: 2rem 2rem 2.5rem 0; border-bottom: 0; }
  .highlights li + li { padding-left: 2rem; border-left: 1px solid var(--rule); }
}

/* Hours table */
.hours { width: 100%; border-collapse: collapse; border-top: 1px solid var(--kd-text); }
.hours th, .hours td { text-align: left; padding: 0.85rem 0; border-bottom: 1px solid var(--rule); font-weight: 400; }
.hours th { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; }
.hours td { color: var(--kd-muted); text-align: right; }

/* Key/value list (staff, classes) */
.kv { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--kd-text); }
.kv li {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.25rem 1rem;
  padding-block: 1.1rem; border-bottom: 1px solid var(--rule);
}
.kv strong { font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.02em; }
.kv span { color: var(--kd-muted); }

/* Big word list (campus values) */
.words { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--kd-text); }
.words li {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.05em; line-height: 1;
  font-size: clamp(2rem, 8vw, 5rem); padding-block: 0.6rem; border-bottom: 1px solid var(--rule);
}

/* Facilities list */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--kd-text); }
.ticks li { padding: 1rem 0 1rem 1.6rem; border-bottom: 1px solid var(--rule); position: relative; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1.55rem; width: 0.7rem; height: 3px; background: var(--kd-accent);
}
@media (min-width: 700px) {
  .ticks { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--gap); }
}

/* CTA band */
.cta { padding-block: clamp(3.5rem, 9vw, 7rem); border-top: 1px solid var(--kd-text); }
.cta .grid { row-gap: 1.5rem; }
.cta .bar-v { display: none; }
.cta h2 { font-size: clamp(2.6rem, 0.5rem + 8vw, 6.5rem); letter-spacing: -0.05em; }
.cta p { color: var(--kd-muted); }
@media (min-width: 900px) {
  .cta .bar-v { display: block; grid-column: 1 / 2; background: var(--kd-accent); width: 100%; grid-row: 1 / 3; }
  .cta h2 { grid-column: 2 / 13; }
  .cta .cta-body { grid-column: 2 / 7; }
  .cta .cta-contact { grid-column: 8 / 13; }
}
.contact-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--kd-text); }
.contact-list li { padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
.contact-list a { color: var(--kd-text); font-family: var(--display); font-weight: 700; font-size: 1.2rem; text-decoration: none; letter-spacing: -0.01em; }
.contact-list a:hover { color: var(--kd-accent-ink); }
.contact-list small { display: block; color: var(--kd-muted); font-size: 0.85rem; }

.hours caption { caption-side: bottom; text-align: left; }

.list-label { font-size: 1rem; letter-spacing: -0.01em; color: var(--kd-muted); margin-bottom: 1rem; }

/* Notice block */
.note { border-left: 6px solid var(--kd-accent); padding: 0.25rem 0 0.25rem 1.25rem; }
.note h3 { margin-bottom: 0.6rem; }
.note p:last-child { margin-bottom: 0; }
.after-note { margin-top: 1.5rem; }
.section-head .actions { margin-top: 1.5rem; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--kd-text); padding-block: clamp(2.5rem, 6vw, 4rem) 2rem; font-size: 0.95rem; }
.site-footer .grid { row-gap: 2rem; }
.site-footer img { height: 48px; width: auto; margin-bottom: 1rem; }
.site-footer address { font-style: normal; line-height: 1.7; }
.site-footer address strong { font-family: var(--display); font-size: 1.05rem; }
.site-footer h2 { font-size: 1rem; letter-spacing: -0.01em; font-weight: 700; margin-bottom: 0.75rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding-block: 0.2rem; }
.site-footer a { color: var(--kd-text); }
.site-footer a:hover { color: var(--kd-accent-ink); }
.footer-base { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--rule); color: var(--kd-muted); font-size: 0.85rem; }
@media (min-width: 700px) {
  .site-footer .f-id { grid-column: 1 / 6; }
  .site-footer .f-cols { grid-column: 6 / 13; }
}

/* ---------- Layout helpers ---------- */
@media (min-width: 900px) {
  .c-1-6 { grid-column: 1 / 6; }
  .c-1-7 { grid-column: 1 / 7; }
  .c-1-8 { grid-column: 1 / 8; }
  .c-6-13 { grid-column: 6 / 13; }
  .c-7-13 { grid-column: 7 / 13; }
  .c-8-13 { grid-column: 8 / 13; }
  .c-9-13 { grid-column: 9 / 13; }
  .c-1-5 { grid-column: 1 / 5; }
  .c-5-13 { grid-column: 5 / 13; }
  .c-2-13 { grid-column: 2 / 13; }
  .self-end { align-self: end; }
}

/* ---------- Micro-interactions ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn, .nav a, .arrow-link, .contact-list a, .site-footer a, a {
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, text-decoration-thickness 0.2s ease;
  }
  .btn { transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
  .btn:active { transform: translateY(1px); }
  .cell img { transition: transform 0.6s ease; }
  .cell:hover img { transform: scale(1.03); }
}


/* ---------- Added for the full site ---------- */
html { overflow-x: clip; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.ext { display: inline-block; margin-left: 0.2em; font-size: 0.85em; }
h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
p.figure { margin: 0; }
.h-mid { font-size: clamp(1.9rem, 4.6vw, 3.25rem); margin-block: 0.5rem 1rem; }
.section-head .arrow-link, .section-body > .arrow-link { display: inline-block; margin-top: 0.5rem; }
#head-h { margin-block: 0.4rem 1rem; }
.footer-base { max-width: none; }
.section--tight { padding-block: clamp(2rem, 4vw, 3rem); }
.section--tight .note p { max-width: 90ch; color: var(--kd-muted); font-size: 0.95rem; }
.page-head .head-actions { margin-top: 0.25rem; }
.site-header { position: relative; z-index: 20; }

/* Dropdowns: hovering previews one (a mouse); its button opens it for a keyboard or a tap, and Escape closes it. */
.nav a { white-space: nowrap; }
@media (min-width: 56.25em) {
  .nav ul { flex-wrap: nowrap; align-items: center; gap: 0 1.75rem; }
  .has-sub { position: relative; }
  .has-sub:has(> #sub-about) { anchor-name: --nav-about; }
  .has-sub:has(> #sub-programs) { anchor-name: --nav-programs; }
  .has-sub:has(> #sub-admissions) { anchor-name: --nav-admissions; }
  .has-sub:has(> #sub-families) { anchor-name: --nav-families; }
  #sub-about { position-anchor: --nav-about; }
  #sub-programs { position-anchor: --nav-programs; }
  #sub-admissions { position-anchor: --nav-admissions; }
  #sub-families { position-anchor: --nav-families; }
  .sub-btn {
    display: inline-block; vertical-align: baseline; margin: 0 -0.2em 0 0.25em; padding: 0.3rem 0.2em; border: 0; background: none;
    color: var(--kd-text); font: inherit; font-size: 0.95rem; line-height: 1; cursor: pointer;
  }
  .sub-btn::before {
    content: ""; display: inline-block; width: 0.38em; height: 0.38em; margin: 0 0 0.2em;
    border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg);
  }
  .sub-btn:hover, .has-sub:hover > .sub-btn { color: var(--kd-accent-ink); }
  .nav .sub {
    position: absolute; top: 100%; left: -1rem; right: auto; bottom: auto; z-index: 30; display: block; min-width: 13.5rem; padding: 0.4rem 0;
    background: var(--kd-bg); border: 1px solid var(--kd-text); border-top: 3px solid var(--kd-accent);
    opacity: 0; visibility: hidden; transform: translateY(0.35rem);
  }
  .has-sub::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 0.5rem; }
  .nav .has-sub:hover > .sub { opacity: 1; visibility: visible; transform: none; }
  /* Only one at a time: an open dropdown hides the hover preview of another. */
  .nav-menu:has(.sub:popover-open) .has-sub:hover > .sub:not(:popover-open) { opacity: 0; visibility: hidden; }
  /* Open from its button, it sits in the top layer: placed under its item by anchor, as the hover preview is. */
  .nav .sub:popover-open { opacity: 1; visibility: visible; transform: none; margin: 0; top: anchor(bottom); left: calc(anchor(left) - 1rem); }
  .nav .sub a { display: block; padding: 0.5rem 1rem; border-bottom: 0; }
  .nav .sub a:hover { background: var(--kd-surface); color: var(--kd-accent-ink); }
  .nav-cta a { padding: 0.5rem 1rem; background: var(--kd-text); color: var(--kd-bg); border: 2px solid var(--kd-text); font-weight: 700; }
  .nav-cta a:hover, .nav-cta a[aria-current="page"] { background: var(--kd-accent); border-color: var(--kd-accent); color: var(--kd-on-accent); }
}
/* No anchor positioning (Firefox): an open dropdown hangs under the header at the menu's right edge. */
@supports not (top: anchor(bottom)) {
  @media (min-width: 56.25em) {
    .nav .sub:popover-open { top: calc(56px + 1.8rem); left: auto; right: max(var(--pad), calc((100vw - 1320px) / 2 + var(--pad))); }
  }
}
@supports not selector(:popover-open) {
  .sub-btn { display: none !important; }
  @media (min-width: 56.25em) { .nav .has-sub:focus-within > .sub { opacity: 1; visibility: visible; transform: none; } }
}
@media (max-width: 56.2499em) {
  .nav .sub { display: block; padding: 0 0 0.6rem 1rem; }
  .nav .sub li { border-bottom: 0; }
  .nav .sub a { padding-block: 0.5rem; font-size: 0.98rem; color: var(--kd-muted); }
}
@media (prefers-reduced-motion: no-preference) {
  .sub { transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s; }
}
/* Windows High Contrast: the nav's spare underline stays hidden and the current page keeps its mark. */
@media (forced-colors: active) {
  .nav a { border-bottom-color: Canvas; }
  .nav a:hover { border-bottom-color: LinkText; }
  .nav a[aria-current="page"] { border-bottom-color: Highlight; border-left-color: Highlight; }
}

/* The plum band */
.section--accent { background: var(--kd-accent); color: var(--kd-on-accent); }
.section--accent h2, .section--accent p, .section--accent .section-head p, .section--accent .figure { color: var(--kd-on-accent); }
.section--accent .figure-label { font-size: 1.15rem; max-width: 22ch; }
.section--accent .arrow-link { color: var(--kd-on-accent); border-bottom-color: var(--kd-on-accent); }
.section--accent .arrow-link:hover { color: var(--kd-on-accent); border-bottom-color: #fb9651; }
.section--accent :focus-visible { outline-color: var(--kd-on-accent); }
.section--accent h2 { margin-bottom: 1.25rem; }
.section--accent .hours { border-top-color: var(--kd-on-accent); }
.section--accent .hours th, .section--accent .hours td { color: var(--kd-on-accent); border-bottom-color: rgba(255, 255, 255, 0.28); }

/* Credits table */
.credits td { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; }
.credits thead th, .credits thead td { font-family: var(--body); font-weight: 500; font-size: 0.9rem; }
.credits thead th + th { text-align: right; letter-spacing: normal; color: var(--kd-muted); }
.fees thead th + th { color: var(--kd-text); }
.credits tfoot th, .credits tfoot td { font-family: var(--display); font-weight: 800; font-size: 1.3rem; border-bottom: 0; }

/* Team */
.team { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem var(--gap); border-top: 1px solid var(--kd-text); padding-top: 1.5rem; }
.team img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 20%; margin-bottom: 0.8rem; }
.team h3 { margin-bottom: 0.25rem; }
.team p { margin: 0; color: var(--kd-muted); font-size: 0.95rem; }
@media (min-width: 900px) { .team { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Store */
.shop { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.shop a { display: block; background: #fff; color: var(--kd-text); text-decoration: none; font-family: var(--display); font-weight: 700; padding: 1rem 1rem 0.9rem; }
.shop img { width: 100%; max-width: 291px; margin-inline: auto; }
.shop span { display: block; margin-top: 0.5rem; }
.shop a:hover { color: var(--kd-accent-ink); }
@media (min-width: 900px) { .shop { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.ticks--one { grid-template-columns: 1fr !important; }
.highlights h3 + p { flex: 0 1 auto; }
.kv strong a { color: inherit; }
.contact-list--big a { font-size: clamp(1.25rem, 2.4vw, 1.75rem); letter-spacing: -0.02em; }

/* Footer columns */
.f-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.5rem var(--gap); }

picture { display: contents; }

/* Footer tagline */
.site-footer .f-tag { margin: 1.25rem 0 0; font-family: var(--display); font-size: 1.05rem; line-height: 1.35; max-width: 22rem; }

/* Tuition table */
.fees th small { display: block; margin-top: 0.2rem; font-family: var(--body); font-weight: 400; font-size: 0.9rem; letter-spacing: 0; color: var(--kd-muted); }
.fees th a { color: inherit; }
.fees td { vertical-align: top; }
.fees--camp { margin-top: 2rem; }
.fees + .actions, .fees--camp + .actions { margin-top: 2rem; }
.camp-fee strong { font-family: var(--display); font-size: 1.3rem; }
.fees td { color: var(--kd-text); }
.fees ~ .arrow-link { display: inline-block; margin-top: 1.25rem; }

/* Instagram feed: filled by the studio's worker (src/lib/instagram-feed.ts), newest posts first. */
.ig-feed { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.ig-feed a { position: relative; display: block; overflow: hidden; background: var(--kd-surface); }
.ig-feed img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
.ig-feed a:hover img { transform: scale(1.04); }
.kd-ig-video a::before { content: ""; position: absolute; top: 0.6rem; right: 0.6rem; width: 2rem; height: 2rem; border-radius: 50%; background: rgb(0 0 0 / .55); }
.kd-ig-video a::after { content: ""; position: absolute; top: calc(0.6rem + 0.55rem); right: calc(0.6rem + 0.6rem); width: 0; height: 0; border-style: solid; border-width: 0.45rem 0 0.45rem 0.75rem; border-color: transparent transparent transparent #fff; }
.ig-feed:empty { display: none; }
@media (min-width: 900px) { .ig-feed { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { .ig-feed img { transition: none; } .ig-feed a:hover img { transform: none; } }

/* The hero's Instagram mosaic (Natalia, 2026-11-12: the feed in place of the group photo). Its newest post large, the
   next ones beside it; 4:5 tiles, so 4 columns by 2 rows fill the 8:5 frame the photo had. */
.hero-feed { margin: 0; }
.ig-mosaic { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ig-mosaic li:first-child { grid-column: span 2; grid-row: span 2; }
.ig-mosaic li:nth-child(n+4) { display: none; }
.ig-mosaic a { position: relative; display: block; height: 100%; overflow: hidden; background: var(--kd-surface); }
.ig-mosaic img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
.ig-mosaic li:first-child img { aspect-ratio: auto; }
.ig-mosaic a:hover img { transform: scale(1.04); }
.hero-feed figcaption { margin-top: 0.75rem; font-size: 0.9375rem; }
.hero-feed figcaption a { color: var(--kd-muted); text-decoration: none; }
.hero-feed figcaption a:hover { color: var(--kd-accent-ink); text-decoration: underline; }
@media (min-width: 900px) {
  .hero .hero-feed { grid-column: 6 / 13; grid-row: 2 / 5; align-self: start; }
  .ig-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .ig-mosaic li:nth-child(n+4) { display: block; }
}
@media (prefers-reduced-motion: reduce) { .ig-mosaic img { transition: none; } .ig-mosaic a:hover img { transform: none; } }

/* ---------- Newsletter sign-up (every page, above the footer; subscribe.js, _worker.js) ---------- */
.newsletter { background: var(--kd-accent); color: var(--kd-on-accent); padding-block: clamp(2.5rem, 6vw, 4rem); }
.nl-grid { display: grid; gap: 1.5rem; align-items: end; }
.newsletter h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.9rem, 4.2vw, 3rem); letter-spacing: -0.04em; line-height: 1; margin: 0 0 0.6rem; color: inherit; }
.nl-copy p { margin: 0; font-size: 1.1rem; max-width: 34ch; }
.nl-form { display: grid; gap: 0.75rem; grid-template-columns: 1fr; }
.nl-field { display: grid; gap: 0.35rem; font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.nl-field small { font-weight: 400; opacity: 0.85; }
.nl-field input { font: 400 1.05rem/1.2 var(--body); padding: 0.85rem 0.9rem; border: 2px solid #fff; border-radius: 0; background: #fff; color: var(--kd-text); width: 100%; box-sizing: border-box; min-height: 52px; }
.nl-field input:focus-visible { outline: 3px solid var(--kd-accent-2); outline-offset: 2px; }
.newsletter .nl-btn { background: #fff; border-color: #fff; color: var(--kd-text); cursor: pointer; min-height: 52px; align-self: end; }
.newsletter .nl-btn:hover { background: var(--kd-text); border-color: var(--kd-text); color: #fff; }
.newsletter .nl-btn:focus-visible { outline: 3px solid var(--kd-accent-2); outline-offset: 2px; }
.newsletter .nl-btn:disabled { opacity: 0.6; cursor: wait; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-status { grid-column: 1 / -1; margin: 0; min-height: 1.5em; font-weight: 600; }
.nl-status:empty { display: none; }
.nl-status[data-state="error"]::before { content: "⚠ "; }
.nl-status a { color: #fff; }
@media (min-width: 700px) { .nl-form { grid-template-columns: 1fr 1.4fr auto; } }
@media (min-width: 1000px) { .nl-grid { grid-template-columns: 5fr 7fr; gap: var(--gap); } }

/* ---------- School calendar: calendar.html and the homepage's "Coming up at LINKS" (filled by _worker.js) ---------- */
.cal--off { --c: #cf3236; /* a shade deeper than the logo red so white text passes 4.5:1 */ --ink: #fff; --txt: #c8262b; }
.cal--early { --c: #fb9651; --ink: #1a1a1a; --txt: #b45309; }
.cal--back { --c: #357c9a; --ink: #fff; --txt: #2b6a85; }
.cal--event { --c: #803d7f; --ink: #fff; --txt: #803d7f; }
.cal--camp { --c: #bcbe36; --ink: #1a1a1a; --txt: #6b6d0e; }
.cal-head { display: grid; gap: 1.25rem; align-items: center; border-bottom: 1px solid var(--kd-text); padding-bottom: 1.5rem; }
@media (min-width: 900px) { .cal-head { grid-template-columns: 1fr auto; } }
.cal-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.cal-legend { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0; padding: 0; font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.cal-legend li::before { content: ""; display: inline-block; width: 0.8rem; height: 0.8rem; background: var(--c); margin-right: 0.45rem; vertical-align: -0.05rem; }
.cal-upnext-h { font-family: var(--display); font-weight: 700; letter-spacing: -0.01em; margin: 2.5rem 0 0.75rem; font-size: 1.1rem; }
.cal-upnext { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--gap); }
@media (min-width: 800px) { .cal-upnext { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 799px) { .cal-page .cal-upnext li:nth-child(n + 2) { display: none; } }
.cal-next { background: var(--c); color: var(--ink); padding: 1.4rem 1.4rem 1.5rem; }
.cal-next .cal-kind, .cal-next h3, .cal-next .cal-when { color: var(--ink); }
.cal-big { font-family: var(--display); font-weight: 800; font-size: clamp(2.4rem, 5vw, 3.6rem); letter-spacing: -0.05em; line-height: 0.95; margin: 0.4rem 0 0.6rem; }
.cal-next h3 { font-family: var(--display); font-size: 1.2rem; letter-spacing: -0.02em; margin: 0 0 0.25rem; }
.cal-next .cal-when { margin: 0; }
.cal-months { margin-top: 3rem; display: grid; gap: 2.5rem; }
.cal-month { display: grid; gap: 1rem; border-top: 1px solid var(--kd-text); padding-top: 1.25rem; }
@media (min-width: 900px) { .cal-month { grid-template-columns: 4fr 8fr; } }
.cal-month h2 { font-family: var(--display); font-weight: 800; font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -0.04em; margin: 0; line-height: 1; }
.cal-month h2 span { color: var(--kd-muted); font-weight: 600; }
.cal-list { list-style: none; margin: 0; padding: 0; }
.cal-ev { display: grid; grid-template-columns: 5.25rem minmax(0, 1fr); gap: 1.1rem; align-items: center; padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.cal-ev:first-child { padding-top: 0; }
.cal-tile { display: grid; place-items: center; align-content: center; aspect-ratio: 1; background: var(--c); color: var(--ink); font-family: var(--display); line-height: 1; }
.cal-day { font-weight: 800; font-size: 2rem; letter-spacing: -0.04em; }
.cal-to { font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 0.3rem; white-space: nowrap; }
.cal-wd { font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.3rem; }
.cal-kind { margin: 0; font-family: var(--display); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--txt); }
.steps h3, .steps p, .cal-body h3, .cal-when, .cal-next h3, .highlights h3, .ticks li, .contact-list a, .hero-feed figcaption a { overflow-wrap: anywhere; }
.cal-body h3 { font-family: var(--display); font-size: 1.25rem; letter-spacing: -0.02em; margin: 0.2rem 0 0.15rem; }
.cal-when { margin: 0; color: var(--kd-muted); font-size: 0.95rem; }
.cal-foot { margin: 2rem 0 0; }
.cal-empty { margin: 2rem 0 0; font-size: 1.1rem; }
.cal-home-head { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: end; justify-content: space-between; margin-bottom: 1.5rem; }
.cal-home-head h2 { margin: 0; }
.cal-home .cal-foot { margin-top: 1.25rem; }
@media (max-width: 799px) { .cal-next { padding: 1.1rem 1.2rem 1.2rem; } .cal-big { font-size: 2.2rem; } }
