:root {
  --bg: #f7ebe2;
  --paper: rgba(255, 251, 247, 0.95);
  --ink: #594741;
  --brown: #8d5f53;
  --green: #cfe4a9;
  --pink: #efbcc4;
  --teal: #91d4d2;
  --cream: #fff4ed;
  --line: rgba(122, 93, 84, 0.12);
  --shadow: 0 18px 44px rgba(118, 85, 74, 0.12);
}

* {
  box-sizing: border-box;
}

.summer-school-2026 {
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 16px !important;
  line-height: 1.85 !important;
}

.summer-school-2026,
.summer-school-2026 p,
.summer-school-2026 li,
.summer-school-2026 span,
.summer-school-2026 strong,
.summer-school-2026 td,
.summer-school-2026 th,
.summer-school-2026 label,
.summer-school-2026 input,
.summer-school-2026 textarea,
.summer-school-2026 select,
.summer-school-2026 button {
  font-family: "M PLUS Rounded 1c", sans-serif !important;
}

.summer-school-2026 p,
.summer-school-2026 li,
.summer-school-2026 td,
.summer-school-2026 th,
.summer-school-2026 label,
.summer-school-2026 input,
.summer-school-2026 textarea,
.summer-school-2026 select,
.summer-school-2026 button {
  font-size: 16px !important;
  line-height: 1.85 !important;
}

.summer-school-2026 button,
.summer-school-2026 input,
.summer-school-2026 textarea,
.summer-school-2026 select {
  color: inherit;
}

.summer-school-2026 h1,
.summer-school-2026 h2,
.summer-school-2026 h3,
.summer-school-2026 .calendar-card__title,
.summer-school-2026 .modal-title {
  margin: 0;
  line-height: 1.15;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "M PLUS Rounded 1c", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.55), transparent 22%),
    linear-gradient(180deg, #f8eee7 0%, #f7ebe2 100%);
}

img {
  max-width: 100%;
}

.page-shell {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 48px;
}

.hero,
.section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 24px;
  align-items: center;
  padding: 24px;
}

.hero__brand {
  display: inline-flex;
  margin: 0 0 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--brown);
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
}

.hero h1,
.section-heading h2,
.calendar-card__title,
.modal-title {
  margin: 0;
  font-family: "Baloo 2", cursive;
}

.hero h1 {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.92;
  color: #79aa39;
  text-shadow:
    -3px -3px 0 #fff,
    3px -3px 0 #fff,
    -3px 3px 0 #fff,
    3px 3px 0 #fff;
}

.hero__date {
  display: inline-flex;
  margin: 16px 0 0;
  padding: 10px 16px;
  border-radius: 16px;
  background: #ffe37f;
  color: #35536c;
  font-size: clamp(1.15rem, 2.6vw, 1.85rem);
  font-weight: 800;
}

.hero__lead,
.section-heading p,
.modal-copy,
.modal-list span {
  margin: 14px 0 0;
  line-height: 1.85 !important;
  font-size: 16px !important;
}

.hero__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 18px;
}

.hero__summary span,
.hero__meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  font-size: 16px !important;
  font-weight: 700;
}

.hero__summary strong {
  color: var(--brown);
}

.hero__meta {
  margin-top: 12px;
}

.hero__meta span {
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 16px !important;
}

.hero__image img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 22px;
}

.section {
  margin-top: 20px;
  padding: 22px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading--stack {
  display: block;
}

.section-heading h2 {
  font-size: clamp(2.4rem, 4.8vw, 3.6rem);
  line-height: 0.95;
  color: var(--brown);
}

.section-heading p {
  margin: 0;
  font-size: 16px !important;
}

.section-copy {
  max-width: 720px;
}

.section-copy p + p {
  margin-top: 8px;
}

.flow-card {
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.info-grid,
.pricing-grid {
  display: grid;
  gap: 14px;
}

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

.info-card,
.price-card,
.note-card {
  padding: 18px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.info-card h3,
.note-card h3 {
  margin: 0 0 10px;
  color: var(--brown);
  font-size: 22px !important;
  line-height: 1.35;
}

.info-card p,
.fee-notes p {
  margin: 0;
  line-height: 1.8;
}

.info-card p + p,
.fee-notes p + p {
  margin-top: 8px;
}

.info-card--wide {
  grid-column: 1 / -1;
}

.info-list {
  margin: 0;
  padding-left: 1.2rem;
  line-height: 1.8;
  font-size: 16px !important;
}

.price-card {
  display: grid;
  gap: 8px;
  text-align: center;
}

.price-card strong {
  font-size: clamp(1.9rem, 3.4vw, 2.35rem);
  color: var(--brown);
}

.price-card__label {
  display: inline-flex;
  justify-self: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fdf3ec;
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.2;
}

.price-card--accent .price-card__label {
  background: #e3f4d1;
}

.fee-notes {
  margin-top: 14px;
  padding: 18px;
  border-radius: 20px;
  background: #fff8f2;
  border: 1px solid var(--line);
}

.apply-card {
  padding: 20px;
  border-radius: 24px;
  background: #fff;
  border: 1px solid var(--line);
}

.quick-cta {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 251, 247, 0.94);
  border: 1px solid var(--line);
  box-shadow: 0 12px 30px rgba(118, 85, 74, 0.12);
  backdrop-filter: blur(12px);
}

.quick-cta__button,
.mobile-sticky-cta__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid rgba(141, 95, 83, 0.18);
  background: #fff;
  color: var(--brown);
  text-decoration: none;
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: 0 6px 16px rgba(118, 85, 74, 0.08);
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.quick-cta__button:hover,
.quick-cta__button:focus-visible,
.mobile-sticky-cta__button:hover,
.mobile-sticky-cta__button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(118, 85, 74, 0.12);
}

.quick-cta__button--primary,
.mobile-sticky-cta__button--primary {
  background: #f7c768;
  border-color: #f7c768;
  color: #5d4724;
}

.mobile-sticky-cta {
  display: none;
}

.apply-note {
  margin: 0 0 14px;
  line-height: 1.85 !important;
  font-size: 16px !important;
}

.apply-embed {
  min-height: 320px;
  padding: 18px;
  border-radius: 20px;
  background: linear-gradient(180deg, #fffdfb 0%, #fff7f1 100%);
  border: 2px dashed rgba(141, 95, 83, 0.18);
}

.apply-placeholder {
  display: grid;
  place-items: center;
  min-height: 280px;
  text-align: center;
  gap: 10px;
  color: var(--brown);
}

.apply-placeholder strong {
  font-size: 18px !important;
}

.apply-placeholder span {
  max-width: 34rem;
  line-height: 1.85 !important;
  font-size: 16px !important;
}

.wpforms-shortcode {
  display: none;
}

.flow-pill {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff2ae;
  color: #6d593e;
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.2;
}

.flow-table {
  width: 100%;
  margin-top: 14px;
  table-layout: fixed;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
}

.flow-table th,
.flow-table td {
  padding: 18px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  word-break: keep-all;
  overflow-wrap: normal;
}

.flow-table th {
  background: #fdf3ec;
  color: var(--brown);
  font-size: 16px !important;
}

.flow-table td:first-child,
.flow-table th:first-child {
  width: 156px;
  min-width: 156px;
  font-weight: 800;
  font-size: 18px !important;
  white-space: nowrap;
}

.flow-note {
  margin: 12px 0 0;
  line-height: 1.85 !important;
  font-size: 16px !important;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.calendar-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 24px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.calendar-card:hover,
.calendar-card:focus-visible {
  transform: translateY(-3px);
}

.calendar-card__frame {
  overflow: hidden;
  border-radius: 24px;
  border: 3px solid transparent;
  background: #fff;
  box-shadow: 0 12px 28px rgba(118, 85, 74, 0.12);
}

.calendar-card__frame--green {
  background: var(--green);
}

.calendar-card__frame--pink {
  background: var(--pink);
}

.calendar-card__frame--teal {
  background: var(--teal);
}

.calendar-card__date {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  margin: 8px 0 0 8px;
  padding: 10px 16px 9px;
  border-radius: 16px;
  font-family: "Baloo 2", cursive;
  font-size: clamp(1.38rem, 2.4vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 1;
  color: rgba(89, 71, 65, 0.82);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  box-shadow: 0 6px 14px rgba(118, 85, 74, 0.08);
}

.calendar-card__image {
  aspect-ratio: 1 / 1;
  background-size: cover;
  background-position: center;
}

.calendar-card__title {
  min-height: 82px;
  padding: 12px 14px 16px;
  color: rgba(89, 71, 65, 0.94);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
}

.calendar-card__title small {
  display: block;
  margin-top: 6px;
  font-family: "M PLUS Rounded 1c", sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: 0.01em;
}

.calendar-card--special .calendar-card__frame {
  box-shadow: 0 16px 30px rgba(104, 152, 151, 0.18);
}

.calendar-break {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border: 0;
  border-radius: 24px;
  background: #fff;
  border: 2px dashed rgba(145, 212, 210, 0.8);
  color: var(--brown);
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.calendar-break__date {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--teal);
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.2;
}

.calendar-break__title {
  font-weight: 800;
  font-size: 1.42rem;
  line-height: 1.35;
}

.program-modal {
  width: min(920px, calc(100vw - 48px));
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 28px;
  background: #fffaf6;
  box-shadow: 0 24px 60px rgba(72, 53, 47, 0.26);
  z-index: 999999;
  overflow: hidden;
}

.program-modal[open] {
  position: fixed;
  inset: 0;
  transform: none;
  width: min(920px, calc(100vw - 48px));
  max-width: calc(100vw - 48px);
  height: fit-content;
  max-height: calc(100vh - 48px);
  overflow-x: hidden;
  overflow-y: auto;
  margin: auto;
}

.program-modal::backdrop {
  background: rgba(63, 46, 42, 0.34);
  backdrop-filter: blur(4px);
}

.program-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brown);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

#program-modal-content {
  padding: 26px;
}

.modal-pill,
.modal-meta span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 16px !important;
  font-weight: 800;
  line-height: 1.2;
}

.modal-visual {
  margin: 14px 0 18px;
  overflow: hidden;
  border-radius: 22px;
  width: 100%;
}

.modal-visual img {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.modal-title {
  margin-top: 10px;
  font-size: clamp(2.2rem, 5vw, 3.1rem);
  line-height: 1.04;
  color: var(--brown);
}

.modal-copy {
  white-space: pre-line;
  font-size: 16px !important;
  line-height: 1.85 !important;
}

.modal-meta {
  margin-top: 10px;
}

.modal-list {
  margin-top: 18px;
}

.modal-list div {
  padding: 16px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
}

.modal-list strong {
  display: block;
  margin-bottom: 6px;
  color: var(--brown);
  font-size: 20px !important;
  line-height: 1.35;
}

.modal-list span {
  font-size: 16px !important;
  line-height: 1.85 !important;
}

@media (max-width: 1080px) {
  .hero {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 14px, 100%);
    padding-top: 10px;
  }

  .hero,
  .section {
    padding: 16px;
    border-radius: 22px;
  }

  .hero {
    gap: 16px;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  .section-heading h2,
  .calendar-card__title,
  .calendar-card__date,
  .modal-title {
    font-family: "M PLUS Rounded 1c", sans-serif !important;
  }

  .hero__lead {
    font-size: 0.95rem;
  }

  .hero__summary {
    display: none;
  }

  .hero__summary span,
  .hero__meta span {
    width: auto;
    font-size: 0.88rem;
  }

  .hero__image img {
    min-height: 220px;
  }

  .section-heading {
    display: block;
  }

  .section-heading p {
    margin-top: 6px;
  }

  .section-copy p + p {
    margin-top: 10px;
  }

  .flow-card {
    padding: 14px;
  }

  .info-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .quick-cta {
    display: none;
  }

  .mobile-sticky-cta {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 120;
    display: block;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 251, 247, 0.96);
    border-top: 1px solid var(--line);
    box-shadow: 0 -10px 24px rgba(118, 85, 74, 0.12);
    backdrop-filter: blur(10px);
  }

  .mobile-sticky-cta__inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 8px;
  }

  .mobile-sticky-cta__button {
    min-height: 44px;
    padding: 11px 10px;
    font-size: 14px !important;
    line-height: 1.2 !important;
  }

  body {
    padding-bottom: 80px;
  }

  .apply-card,
  .apply-embed {
    padding: 14px;
  }

  .flow-table th,
  .flow-table td {
    padding: 11px 10px;
    font-size: 16px;
  }

  .flow-table td:first-child,
  .flow-table th:first-child {
    width: 120px;
    min-width: 120px;
  }

  .calendar-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .calendar-card__date {
    margin: 8px 0 0 8px;
    padding: 8px 12px 7px;
    font-size: 1.34rem;
    font-weight: 800;
  }

  .calendar-card__title {
    min-height: 70px;
    padding: 12px 12px 16px;
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1.3;
  }

  .calendar-card__title small {
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.45;
  }

  #program-modal-content {
    padding: 18px;
  }

  .program-modal[open] {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
  }
}

@media (max-width: 420px) {
  .hero__image {
    display: none;
  }

  .flow-table,
  .flow-table tbody,
  .flow-table tr,
  .flow-table th,
  .flow-table td {
    display: block;
    width: 100%;
  }

  .flow-table thead {
    display: none;
  }

  .flow-table tr {
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
  }

  .flow-table td {
    padding: 4px 0;
    border-bottom: 0;
  }

  .flow-table td:first-child {
    width: 100%;
    color: var(--brown);
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }
}
