:root {
  --bg: #f5efe3;
  --bg-soft: #fbf7f0;
  --sand: #e7dac3;
  --section-bg: #f6ead8;
  --section-card: #fffdf8;
  --section-accent: #f4e3cb;
  --section-accent-strong: #ead0ad;
  --section-border: rgba(143, 96, 53, 0.24);
  --section-line: rgba(143, 96, 53, 0.18);
  --section-row-a: #fffaf2;
  --section-row-b: #f8eedf;
  --sage: #b8c8b1;
  --sage-deep: #788f72;
  --rose: #e6c8bb;
  --text: #51473d;
  --muted: #7b6d60;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(108, 93, 72, 0.15);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nunito Sans", "Nunito", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.85), transparent 35%),
    linear-gradient(180deg, #f8f2e8 0%, var(--bg) 42%, #f2eadf 100%);
}

.history-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 84px;
  padding: 10px max(16px, calc((100vw - 1180px) / 2 + 20px));
  border-radius: 0;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(120, 143, 114, 0.14);
  box-shadow: 0 12px 30px rgba(108, 93, 72, 0.08);
  backdrop-filter: blur(14px);
}

.history-nav::before {
  content: "";
  flex: 0 0 auto;
  width: 300px;
  height: 72px;
  background: url("images/logo_row_transparent.png") left center / contain no-repeat;
}

.history-nav.is-open .menu-panel {
  display: block;
}

.history-button {
  border: none;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  padding: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
  border: 1px solid rgba(120, 143, 114, 0.14);
  box-shadow: 0 12px 26px rgba(108, 93, 72, 0.12);
  backdrop-filter: blur(12px);
}

.menu-toggle {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-toggle::before {
  content: none;
}

.menu-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: var(--text);
}

.menu-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: max(16px, calc((100vw - 1180px) / 2 + 20px));
  display: none;
  width: min(300px, calc(100vw - 24px));
  padding: 10px;
  border-radius: 24px;
  background: rgba(255, 251, 245, 0.82);
  border: 1px solid rgba(120, 143, 114, 0.14);
  box-shadow: 0 12px 26px rgba(108, 93, 72, 0.12);
  backdrop-filter: blur(12px);
}

.menu-panel-scroll {
  display: grid;
  gap: 8px;
  max-height: min(70vh, 430px);
  overflow-y: auto;
  padding-right: 4px;
}

.menu-group {
  display: block;
}

.menu-group-summary {
  position: relative;
  display: block;
  padding: 12px 44px 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
  transition: background 180ms ease, transform 180ms ease;
}

.menu-group-summary::-webkit-details-marker {
  display: none;
}

.menu-group-summary::after {
  content: "\25B6";
  position: absolute;
  right: 14px;
  top: 50%;
  font-size: 0.72rem;
  color: var(--muted);
  transform: translateY(-50%);
}

.menu-group[open] .menu-group-summary::after {
  content: "\25BC";
}

.menu-sublink-list {
  display: grid;
  gap: 8px;
  padding: 8px 0 0 12px;
}

.menu-link {
  display: block;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  font-weight: 700;
  line-height: 1.3;
  transition: background 180ms ease, transform 180ms ease;
}

.menu-sublink {
  padding-left: 18px;
  font-size: 0.94rem;
  color: var(--muted);
}

.history-button:hover,
.menu-group-summary:hover,
.menu-link:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 20px rgba(108, 93, 72, 0.1);
}

.history-button:hover {
  background: rgba(255, 255, 255, 1);
}

.history-button:focus-visible,
.menu-group-summary:focus-visible,
.menu-link:focus-visible {
  outline: 3px solid rgba(120, 143, 114, 0.35);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

[id] {
  scroll-margin-top: 110px;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(100% - 20px, 760px);
  margin: 0 auto;
  padding: 116px 0 48px;
}

.site-header {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 6px 0 18px;
}

.site-header > .brand {
  display: none;
}

.brand {
  width: 74px;
  height: 74px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 24px;
  background: linear-gradient(145deg, rgba(184, 200, 177, 0.82), rgba(230, 200, 187, 0.9));
  box-shadow: 0 16px 36px rgba(120, 143, 114, 0.2);
}

.brand img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 10px;
  padding: 10px;
  border-radius: 22px;
  background: rgba(255, 251, 245, 0.75);
  border: 1px solid rgba(120, 143, 114, 0.12);
  backdrop-filter: blur(12px);
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  min-width: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.site-nav a:last-child {
  grid-column: 1 / -1;
}

.hero {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hero-copy {
  padding: 6px 2px 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--sage-deep);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  line-height: 0.98;
}

h1 {
  font-size: clamp(2.9rem, 12vw, 5.5rem);
}

h2 {
  font-size: clamp(2rem, 8vw, 3.4rem);
}

.hero-text,
.info-card p,
.accent-card li {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: var(--sage-deep);
  box-shadow: 0 14px 28px rgba(120, 143, 114, 0.26);
}

.button.secondary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(120, 143, 114, 0.16);
}

.button.primary:focus-visible,
.button.secondary:focus-visible,
.site-nav a:focus-visible,
.program-link-card:focus-visible,
.page-back:focus-visible,
.gallery-button:focus-visible,
.dot:focus-visible {
  outline: 3px solid rgba(120, 143, 114, 0.35);
  outline-offset: 4px;
}

.gallery-card {
  position: relative;
  width: 100%;
  padding: 14px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.82);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.gallery-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.35), transparent 30%, rgba(184, 200, 177, 0.14) 100%);
  pointer-events: none;
}

.gallery-track {
  position: relative;
  min-height: min(33vh, 280px);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 420ms ease, transform 420ms ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.slide img {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: min(33vh, 280px);
  object-fit: cover;
  border-radius: 20px;
}

.slide-caption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px;
  color: #fffef8;
  background: linear-gradient(180deg, rgba(60, 48, 38, 0.18), rgba(60, 48, 38, 0.72));
  backdrop-filter: blur(10px);
}

.slide-caption span {
  display: block;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.4rem;
  margin-bottom: 0;
}

.slide-caption p {
  display: none;
}

.gallery-controls {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 18px;
}

.gallery-button,
.dot {
  border: none;
  cursor: pointer;
}

.gallery-button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--sage-deep);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(108, 93, 72, 0.12);
}

.gallery-dots {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 999px;
  background: rgba(120, 143, 114, 0.24);
  transition: width 180ms ease, background 180ms ease;
}

.dot.active {
  width: 34px;
  background: var(--sage-deep);
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 22px;
}

.info-card,
.contact-band {
  border-radius: 26px;
  padding: 22px 18px;
  background: rgba(255, 251, 246, 0.86);
  box-shadow: 0 16px 36px rgba(108, 93, 72, 0.08);
}

.accent-card {
  background: linear-gradient(145deg, rgba(184, 200, 177, 0.58), rgba(255, 251, 246, 0.9));
}

.accent-card ul {
  margin: 18px 0 0;
  padding-left: 22px;
  color: var(--text);
}

.programs-card {
  display: flex;
  flex-direction: column;
}

.program-intro {
  margin: 0;
}

.program-link-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.program-link-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(120, 143, 114, 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.program-link-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(108, 93, 72, 0.1);
  border-color: rgba(120, 143, 114, 0.26);
}

.program-link-title {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--text);
}

.program-link-copy,
.program-link-arrow,
.program-summary,
.program-copy-block p,
.page-back {
  color: var(--muted);
  line-height: 1.75;
}

.program-link-arrow {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about-card {
  display: flex;
  flex-direction: column;
}

.about-link-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-band {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  text-align: center;
}

.admission-band {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 22px 18px;
  border-radius: 26px;
  background: rgba(255, 251, 246, 0.86);
  box-shadow: 0 16px 36px rgba(108, 93, 72, 0.08);
  text-align: center;
}

.admission-accordion {
  display: grid;
  gap: 12px;
  text-align: left;
}

.detail-band {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  padding: 22px 18px;
  border-radius: 26px;
  background: var(--section-bg);
  border: 1px solid var(--section-line);
  box-shadow: 0 18px 42px rgba(108, 81, 52, 0.12);
}

#tuition.detail-band {
  --section-bg: #f7ead8;
  --section-card: #fffdf8;
  --section-accent: #f5e5ce;
  --section-accent-strong: #ead1ae;
  --section-border: rgba(143, 96, 53, 0.24);
  --section-line: rgba(143, 96, 53, 0.18);
}

#calendar.detail-band {
  --section-bg: #f6e7db;
  --section-card: #fffaf5;
  --section-accent: #f2dfd3;
  --section-accent-strong: #e8cbb8;
  --section-border: rgba(140, 86, 62, 0.23);
  --section-line: rgba(140, 86, 62, 0.17);
}

#lunch-menu.detail-band {
  --section-bg: #fbf0dc;
  --section-card: #fffdf7;
  --section-accent: #f8ecd8;
  --section-accent-strong: #efd9b8;
  --section-border: rgba(139, 96, 40, 0.18);
  --section-line: rgba(139, 96, 40, 0.13);
  --section-row-a: #fffbf4;
  --section-row-b: #fbf1e2;
}

.detail-band-header {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.detail-grid {
  display: grid;
  gap: 12px;
}

.detail-item {
  padding: 18px;
  border-radius: 20px;
  background: var(--section-card);
  border: 1px solid var(--section-border);
  box-shadow: 0 10px 22px rgba(124, 84, 48, 0.08);
}

.detail-item h3 {
  margin: 0 0 8px;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.05;
  color: var(--text);
}

.detail-item p,
.detail-item li {
  color: var(--muted);
  line-height: 1.75;
}

.detail-item p,
.detail-note {
  margin: 0;
}

.price-list,
.detail-list,
.time-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.price-list {
  display: grid;
  gap: 12px;
  padding-left: 0;
  list-style: none;
}

.price-list li {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: 16px;
  background: var(--section-accent);
  border: 1px solid var(--section-line);
}

.price-list span {
  color: var(--text);
  font-weight: 800;
}

.price-list strong {
  color: var(--sage-deep);
}

.price-list em {
  color: var(--muted);
  font-style: normal;
  font-size: 0.9rem;
}

.calendar-gallery {
  display: grid;
  gap: 14px;
  touch-action: pan-y;
}

.calendar-gallery-track {
  min-height: 500px;
}

.calendar-slide {
  align-content: start;
  gap: 14px;
  padding: 18px;
  border-radius: 20px;
  background: var(--section-card);
  border: 1px solid var(--section-border);
  box-shadow: 0 10px 22px rgba(124, 84, 48, 0.08);
}

.calendar-month-header {
  display: grid;
  gap: 6px;
  text-align: left;
}

.calendar-month-header h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 7vw, 2.4rem);
  line-height: 1.05;
  color: var(--text);
}

.calendar-month-note {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.45;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.calendar-blank,
.calendar-day {
  min-height: 42px;
  border-radius: 12px;
}

.calendar-day {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  background: #fffaf5;
  border: 1px solid rgba(140, 86, 62, 0.12);
  font-weight: 800;
}

.calendar-day.is-weekend {
  color: rgba(81, 71, 61, 0.72);
  background: #fbf1e9;
}

.calendar-day.is-closed {
  color: #805842;
  background: #f2dfd3;
  border-color: rgba(140, 86, 62, 0.32);
}

.calendar-day.is-closed::after,
.calendar-legend-mark::after {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  top: 50%;
  height: 2px;
  border-radius: 999px;
  background: rgba(128, 88, 66, 0.85);
  transform: rotate(-22deg);
}

.calendar-legend {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.4;
  text-align: center;
}

.calendar-legend-mark {
  position: relative;
  display: inline-flex;
  width: 30px;
  height: 30px;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 10px;
  color: #805842;
  background: #f2dfd3;
  border: 1px solid rgba(140, 86, 62, 0.32);
  font-size: 0.82rem;
}

.menu-accordion {
  margin-top: 0;
}

.menu-accordion .program-panel {
  border-color: var(--section-border);
  background: var(--section-card);
  box-shadow: 0 10px 22px rgba(124, 84, 48, 0.07);
}

.menu-accordion .program-panel summary {
  background: var(--section-accent);
  border-bottom: 1px solid var(--section-line);
}

.menu-accordion .program-panel:not([open]) summary {
  border-bottom: 0;
}

.menu-image-card {
  display: grid;
  gap: 12px;
  justify-items: center;
}

.menu-image-card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.8rem, 7vw, 2.5rem);
  line-height: 1;
  color: var(--text);
}

.menu-image {
  display: block;
  width: min(100%, 920px);
  height: auto;
  border-radius: 24px;
  box-shadow: 0 12px 28px rgba(124, 84, 48, 0.09);
}

.menu-table-wrap {
  overflow-x: auto;
  padding: 0 18px 18px;
}

.menu-table {
  width: 100%;
  min-width: 560px;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
  overflow: hidden;
  border: 1px solid var(--section-border);
  border-radius: 16px;
  background: var(--section-card);
}

.menu-table th,
.menu-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--section-line);
  text-align: left;
  vertical-align: top;
}

.menu-table th {
  color: var(--text);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--section-accent-strong);
}

.menu-table tbody tr:nth-child(odd) {
  background: var(--section-row-a);
}

.menu-table tbody tr:nth-child(even) {
  background: var(--section-row-b);
}

.menu-table tbody tr:last-child td {
  border-bottom: 0;
}

.menu-table td:first-child,
.menu-table td:nth-child(2) {
  color: var(--text);
  font-weight: 800;
}

.contact-line {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
  font-size: 0.98rem;
  font-weight: 700;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 4px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(120, 143, 114, 0.14);
  box-shadow: 0 10px 20px rgba(108, 93, 72, 0.08);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.social-link:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 26px rgba(108, 93, 72, 0.12);
}

.social-link:focus-visible {
  outline: 3px solid rgba(120, 143, 114, 0.35);
  outline-offset: 3px;
}

.social-link img {
  width: 22px;
  height: 22px;
}

.calendly-section {
  margin-top: 18px;
  padding: 6px;
  border-radius: 26px;
  background: rgba(255, 251, 246, 0.86);
  box-shadow: 0 16px 36px rgba(108, 93, 72, 0.08);
}

.calendly-inline-widget {
  width: 100%;
  min-width: 0 !important;
}

.calendly-header {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 16px 12px 8px;
  text-align: center;
}

.section-title {
  margin-bottom: 0;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
}

.section-description {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.calendly-header .section-title {
  margin-bottom: 0;
}

.program-body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.88), transparent 34%),
    linear-gradient(180deg, #fbf5ec 0%, #f4ecdf 46%, #efe5d6 100%);
}

.subpage-shell {
  padding-bottom: 64px;
}

.program-header {
  display: none;
}

.program-page {
  display: grid;
  gap: 18px;
}

.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  font-weight: 700;
}

.page-back::before {
  content: "\2190";
}

.program-detail-layout {
  display: grid;
  gap: 18px;
}

.program-gallery {
  padding: 18px;
}

.program-gallery .gallery-track {
  min-height: 280px;
}

.program-gallery .slide img {
  height: 280px;
  aspect-ratio: 16 / 10;
}

.program-image-link {
  position: relative;
  display: block;
  height: 100%;
  color: inherit;
}

.vision-page {
  display: grid;
  gap: 18px;
}

.vision-hero-card {
  padding: 18px;
}

.vision-gallery .gallery-track {
  min-height: min(52vw, 460px);
}

.vision-gallery .slide img {
  height: min(52vw, 460px);
  aspect-ratio: 16 / 10;
}

.vision-copy-card {
  width: 100%;
}

.staff-page {
  display: grid;
  gap: 20px;
}

.staff-card {
  display: grid;
  gap: 18px;
  padding: 20px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.9);
  box-shadow: 0 18px 40px rgba(108, 93, 72, 0.08);
}

.staff-media {
  display: grid;
  gap: 14px;
}

.staff-gallery {
  padding: 14px;
}

.staff-gallery .gallery-track {
  min-height: 260px;
}

.staff-gallery .slide img {
  height: 260px;
  aspect-ratio: 4 / 5;
}

.staff-gallery .staff-portrait-image {
  object-fit: contain;
  object-position: center top;
  background: #fbf2e8;
}

.staff-meta {
  display: grid;
  gap: 4px;
  justify-items: start;
}

.staff-meta h2 {
  font-size: clamp(2rem, 7vw, 2.8rem);
}

.staff-role,
.staff-contact,
.staff-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.staff-role {
  color: var(--sage-deep);
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.86rem;
}

.staff-copy {
  display: grid;
  gap: 12px;
}

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gallery-post-card {
  display: block;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 251, 246, 0.9);
  box-shadow: 0 18px 40px rgba(108, 93, 72, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gallery-post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(108, 93, 72, 0.12);
}

.gallery-post-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  object-fit: cover;
}

.program-copy-card {
  padding: 24px 20px;
  border-radius: 28px;
  background: rgba(255, 251, 246, 0.9);
  box-shadow: 0 18px 40px rgba(108, 93, 72, 0.08);
}

.program-copy-card h1 {
  margin-bottom: 14px;
}

.program-summary {
  margin: 0;
  font-size: 1.02rem;
}

.program-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0;
}

.program-pill-list span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(184, 200, 177, 0.2);
  color: var(--sage-deep);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}

.program-copy-block + .program-copy-block {
  margin-top: 20px;
}

.program-copy-block h2 {
  margin-bottom: 10px;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
}

.program-copy-card .button {
  margin-top: 28px;
}

.program-accordion-card {
  width: 100%;
}

.program-accordion {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.program-panel {
  border: 1px solid rgba(120, 143, 114, 0.14);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.68);
  overflow: hidden;
}

.program-panel summary {
  position: relative;
  display: flex;
  align-items: center;
  padding: 18px 56px 18px 18px;
  cursor: pointer;
  list-style: none;
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 4vw, 1.9rem);
  line-height: 1.05;
  color: var(--text);
}

.program-panel summary::-webkit-details-marker {
  display: none;
}

.program-panel summary::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: var(--sage-deep);
  background: rgba(184, 200, 177, 0.18);
  font-family: "Nunito Sans", "Nunito", sans-serif;
  font-size: 1.2rem;
  font-weight: 800;
  transform: translateY(-50%);
  transition: transform 180ms ease, background 180ms ease;
}

.program-panel[open] summary::after {
  content: "-";
}

.program-panel p {
  margin: 0;
  padding: 0 18px 18px;
  color: var(--muted);
  line-height: 1.8;
}

.program-panel ul {
  color: var(--muted);
  line-height: 1.8;
}

.program-panel li + li {
  margin-top: 8px;
}

.program-panel strong {
  color: var(--text);
}

.program-panel summary:focus-visible {
  outline: 3px solid rgba(120, 143, 114, 0.35);
  outline-offset: -3px;
}

@media (max-width: 699px) {
  [id] {
    scroll-margin-top: 92px;
  }

  .history-nav {
    min-height: 72px;
    padding: 8px 14px;
  }

  .history-nav::before {
    width: 220px;
    height: 54px;
  }

  .history-button {
    width: 46px;
    height: 46px;
  }

  .menu-toggle::before {
    content: none;
  }

  .menu-panel {
    top: calc(100% + 8px);
    right: 10px;
    width: min(320px, calc(100vw - 20px));
    padding: 8px;
    border-radius: 20px;
  }

  .menu-panel-scroll {
    max-height: min(72vh, 420px);
  }

  .page-shell {
    width: min(100% - 16px, 760px);
    padding-top: 96px;
  }

  .brand {
    width: 68px;
    height: 68px;
  }

  .site-nav {
    gap: 8px;
    padding: 8px;
    border-radius: 20px;
  }

  .site-nav a {
    padding: 10px 8px;
    font-size: 0.84rem;
  }

  .gallery-card,
  .program-gallery,
  .staff-gallery {
    padding: 12px;
  }

  .info-card,
  .contact-band,
  .admission-band,
  .detail-band,
  .calendly-section,
  .program-copy-card,
  .staff-card,
  .gallery-post-card {
    border-radius: 22px;
  }

  .slide-caption {
    left: 12px;
    right: 12px;
    bottom: 12px;
    padding: 12px 14px;
  }

  .slide-caption span {
    font-size: 1.2rem;
  }

  .gallery-controls {
    gap: 12px;
    margin-top: 14px;
  }

  .gallery-button {
    width: 42px;
    height: 42px;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .dot.active {
    width: 28px;
  }

  .program-link-card {
    padding: 14px;
  }

  .program-link-title {
    font-size: 1.5rem;
  }

  .program-panel summary {
    padding: 16px 50px 16px 16px;
    font-size: 1.3rem;
  }

  .program-panel p {
    padding: 0 16px 16px;
    font-size: 0.95rem;
  }

  .program-panel ul {
    padding-right: 16px;
    font-size: 0.95rem;
  }

  .menu-table-wrap {
    padding: 0 14px 14px;
  }

  .calendar-gallery-track {
    min-height: 450px;
  }

  .calendar-slide {
    gap: 12px;
    padding: 14px;
  }

  .calendar-weekdays,
  .calendar-days {
    gap: 4px;
  }

  .calendar-blank,
  .calendar-day {
    min-height: 36px;
    border-radius: 10px;
    font-size: 0.86rem;
  }

  .calendar-month-note {
    font-size: 0.9rem;
  }

  .section-title {
    font-size: 0.98rem;
  }

  .section-description,
  .contact-line {
    font-size: 0.9rem;
  }

  .social-link {
    width: 42px;
    height: 42px;
  }

  .social-link img {
    width: 20px;
    height: 20px;
  }

  .calendly-header {
    gap: 8px;
    padding: 14px 10px 4px;
  }

  .calendly-inline-widget {
    height: 500px !important;
  }

  .vision-gallery .gallery-track {
    min-height: min(62vw, 280px);
  }

  .vision-gallery .slide img {
    height: min(62vw, 280px);
  }

  .staff-gallery .gallery-track {
    min-height: 220px;
  }

  .staff-gallery .slide img {
    height: 220px;
  }

  .gallery-page-grid {
    gap: 10px;
  }

  .gallery-post-card img {
    min-height: 140px;
  }
}

@media (min-width: 700px) {
  .page-shell {
    width: min(100% - 32px, 860px);
    padding-top: 116px;
  }

  .site-header {
    align-items: center;
  }

  .hero-actions {
    flex-direction: row;
  }

  .button {
    width: auto;
    min-width: 168px;
  }

  .site-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .program-link-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tuition-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tuition-grid .detail-item:last-child,
  .calendar-gallery {
    grid-column: 1 / -1;
  }

  .calendar-blank,
  .calendar-day {
    min-height: 48px;
  }

  .gallery-track {
    min-height: min(42vh, 420px);
  }

  .slide img {
    aspect-ratio: 16 / 10;
    height: min(42vh, 420px);
  }

  .calendar-gallery .calendar-gallery-track {
    min-height: 500px;
  }

  .program-gallery .gallery-track {
    min-height: 340px;
  }

  .program-gallery .slide img {
    height: 340px;
    aspect-ratio: 16 / 10;
  }

  .vision-gallery .gallery-track {
    min-height: 420px;
  }

  .vision-gallery .slide img {
    height: 420px;
  }

  .staff-gallery .gallery-track {
    min-height: 320px;
  }

  .staff-gallery .slide img {
    height: 320px;
  }

  .program-panel summary {
    padding-left: 22px;
    padding-right: 64px;
  }

  .program-panel p {
    padding: 0 22px 22px;
  }
}

@media (min-width: 980px) {
  .page-shell {
    width: min(100% - 40px, 1180px);
    padding-top: 120px;
  }

  .site-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding-bottom: 28px;
  }

  .site-nav {
    width: auto;
    gap: 18px;
    padding: 14px 18px;
    border-radius: 999px;
    grid-template-columns: repeat(7, max-content);
  }

  .site-nav a {
    background: transparent;
    padding: 0;
  }

  .site-nav a:last-child {
    grid-column: auto;
  }

  .hero {
    display: grid;
    grid-template-columns: minmax(320px, 0.8fr) minmax(360px, 0.82fr);
    gap: 40px;
    align-items: center;
  }

  .hero-copy {
    padding: 12px 8px 12px 0;
  }

  .gallery-track {
    min-height: 520px;
  }

  .slide img {
    aspect-ratio: 4 / 5;
    height: 520px;
  }

  .info-grid {
    grid-template-columns: 1.08fr 0.92fr;
    gap: 24px;
    margin-top: 42px;
  }

  .info-card,
  .contact-band {
    border-radius: 32px;
    padding: 34px;
  }

  .detail-band {
    margin-top: 24px;
    padding: 34px;
    border-radius: 32px;
  }

  .contact-band {
    gap: 12px;
    margin-top: 24px;
  }

  .admission-band {
    margin-top: 24px;
    padding: 34px;
    border-radius: 32px;
  }

  .section-title {
    font-size: 1.16rem;
  }

  .calendly-section {
    margin-top: 24px;
    padding: 8px;
    border-radius: 32px;
  }

  .program-link-list {
    grid-template-columns: 1fr;
  }

  .program-detail-layout {
    gap: 26px;
  }

  .program-gallery {
    padding: 22px;
  }

  .program-gallery .gallery-track {
    min-height: 380px;
  }

  .program-gallery .slide img {
    height: 380px;
    aspect-ratio: 16 / 10;
  }

  .program-copy-card {
    padding: 34px;
    border-radius: 32px;
  }

  .vision-page {
    gap: 24px;
  }

  .vision-hero-card {
    padding: 22px;
  }

  .vision-gallery .gallery-track {
    min-height: 520px;
  }

  .vision-gallery .slide img {
    height: 520px;
  }

  .staff-card {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    gap: 28px;
    padding: 26px;
    border-radius: 32px;
    align-items: start;
  }

  .staff-gallery .gallery-track {
    min-height: 360px;
  }

  .staff-gallery .slide img {
    height: 360px;
  }

  .gallery-page-grid {
    gap: 18px;
  }

  .gallery-post-card img {
    min-height: 240px;
  }
}
