:root {
  --ink: #152f3b;
  --muted: #50646c;
  --paper: #fbfaf6;
  --white: #fff;
  --line: #d9e1df;
  --orange: #faac45;
  --blue: #087caa;
  --green: #187a5a;
  --radius: 18px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system,BlinkMacSystemFont,"Segoe UI",Arial,"PingFang SC","Microsoft YaHei",sans-serif;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-underline-offset: 4px;
}

a:hover {
  text-decoration-thickness: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button,
a,
input,
select,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button {
  cursor: pointer;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid #087caa;
  outline-offset: 5px;
}

p {
  margin: 0 0 1.1rem;
}

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -.035em;
  margin: 0 0 1.1rem;
}

h1 {
  font-size: clamp(2.6rem,5.5vw,4.8rem);
  font-weight: 750;
}

h2 {
  font-size: clamp(2rem,3.6vw,3.15rem);
}

h3 {
  font-size: 1.35rem;
  letter-spacing: -.02em;
}

ul {
  padding-left: 1.3rem;
}

.wrap {
  width: min(var(--max),calc(100% - 48px));
  margin: auto;
}

.section {
  padding: 80px 0;
}

.small {
  color: var(--muted);
}

.small {
  font-size: .86rem;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--green);
  font-size: .74rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 750;
  margin-bottom: 22px;
}

.eyebrow:before {
  content: "";
  height: 7px;
  width: 7px;
  background: currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}

.lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--muted);
  max-width: 650px;
}

.founder-note {
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: none;
}

.entry-oneline {
  max-width: none;
  white-space: nowrap;
}

.skip {
  position: fixed;
  top: -90px;
  left: 20px;
  z-index: 100;
  background: #fff;
  padding: 12px;
}

.skip:focus {
  top: 12px;
}

.topbar {
  background: var(--ink);
  color: #e8f2f3;
  font-size: .74rem;
  padding: 7px 0;
}

.topbar .wrap {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
}

.site-header {
  background: #fffefb;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
}

.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 107px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand img {
  width: 90px;
  height: 75px;
  object-fit: contain;
}

.brand-tagline {
  font-weight: 750;
  font-size: 1.08rem;
  line-height: 1.28;
  letter-spacing: -.01em;
  color: var(--ink);
  white-space: nowrap;
}

.nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav a {
  font-weight: 650;
  font-size: .85rem;
  text-decoration: none;
  padding: 12px 0;
}

.nav a:hover,
.nav a[aria-current] {
  color: #096f94;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  background: var(--ink);
  color: #fff;
  min-height: 49px;
  padding: 12px 23px;
  border: 1px solid var(--ink);
  border-radius: 7px;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  line-height: 1.4;
}

.button:hover {
  background: #28505f;
  border-color: #28505f;
}

.button.primary {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--ink);
}

.button.primary:hover {
  background: #ffbc64;
}

.button.outline {
  background: transparent;
  color: var(--ink);
  border-color: #9aa9ac;
}

.button.outline:hover {
  background: #edf2ed;
}

.actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: 27px 0 20px;
}

.hero-copy .actions .button {
  padding: 12px 15px;
  font-size: .8rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 5px;
  min-height: 44px;
  padding: 5px 12px;
  color: var(--ink);
  font-size: .85rem;
}

.hero {
  padding: 64px 0 38px;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 55px;
  align-items: center;
}

.hero h1 em {
  font-style: normal;
  color: #097fa2;
  position: relative;
}

.hero-copy .lead {
  font-size: 1.08rem;
  max-width: 480px;
}

.hero-visual {
  position: relative;
  margin: 0;
  padding: 0 0 34px 16px;
}

.hero-visual:before {
  content: "";
  position: absolute;
  inset: 30px -20px 50px 40px;
  background: #d9ece7;
  border-radius: 100px 18px 110px 18px;
  transform: rotate(4deg);
  z-index: -1;
}

.hero-photo {
  width: 100%;
  height: 472px;
  object-fit: cover;
  border-radius: 90px 16px 90px 16px;
  object-position: 48% center;
}

.photo-label {
  position: absolute;
  bottom: 80px;
  left: -10px;
  background: white;
  padding: 16px 22px;
  box-shadow: 0 8px 30px #152f3b18;
  border-radius: 10px;
  border-left: 4px solid var(--orange);
  max-width: 85%;
}

.photo-label b {
  display: block;
}

.photo-label span {
  font-size: .78rem;
  color: var(--muted);
}

figcaption {
  font-size: .71rem;
  color: var(--muted);
  margin: 12px 0 0 18px;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 30px;
}

.section-head h2 {
  max-width: 570px;
  margin-bottom: 0;
}

.text-link {
  font-size: .9rem;
  font-weight: 700;
  white-space: normal;
  color: #17627c;
}

.tinted {
  background: #edf2ef;
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.grid.four {
  grid-template-columns: repeat(4,1fr);
}

.news-cards-col {
  grid-column: span 3;
}

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

.card {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius);
  padding: 27px;
}

.lead-photo {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 16px;
}

.card p {
  color: var(--muted);
  font-size: .93rem;
}

.card .text-link {
  display: inline-block;
  margin-top: 12px;
}

.card-visual {
  height: 145px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  margin-bottom: 24px;
  background: #eaf3f7;
}

.card-visual svg {
  width: 120px;
  height: 105px;
}

.card.green .card-visual {
  background: #e5f0e9;
}

.card.orange .card-visual {
  background: #fff0dc;
}

.card.purple .card-visual {
  background: #efeafa;
}

.news-item h3 {
  margin: 4px 0 8px;
}

.news-item p {
  color: var(--muted);
  font-size: .93rem;
  margin: 0;
}

.news-item .date {
  margin-top: 10px;
  font-size: .8rem;
  color: #7c8f89;
}

.news-item.highlight {
  background: #f5c000;
  border-color: #f5c000;
}

.news-item.highlight h3,
.news-item.highlight p {
  color: var(--ink);
}

.news-item.highlight .date {
  color: #5c4600;
  font-weight: 650;
}

.card .meta {
  font-size: .71rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--muted);
  margin-bottom: 10px;
}

.status {
  font-size: .72rem;
  color: #3d5954;
  background: #edf4ef;
  padding: 5px 9px;
  border-radius: 5px;
  display: inline-block;
  line-height: 1.5;
  margin-bottom: 14px;
}

.card a.title {
  text-decoration: none;
}

.card a.title:hover {
  text-decoration: underline;
}

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

.program-card .text-link {
  margin-top: auto;
  padding-top: 12px;
  align-self: start;
}

.age-card {
  display: block;
  text-decoration: none;
  position: relative;
  border-top: 3px solid #1489aa;
  transition: transform .18s;
}

.age-card:nth-child(2) {
  border-color: #238461;
}

.age-card:nth-child(3) {
  border-color: #dc9635;
}

.age-card:nth-child(4) {
  border-color: #8a76b5;
}

.age-card:hover {
  transform: translateY(-4px);
}

.age-card h3 {
  margin-top: 20px;
}

.age-card .age-number {
  font-size: 2rem;
  font-weight: 750;
  color: #617871;
}

.age-card p {
  margin-bottom: 20px;
}

.age-card .arrow {
  display: block;
  font-size: 1.3rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 65px;
  align-items: start;
}

.process {
  counter-reset: step;
  display: grid;
  gap: 0;
}

.process-item {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 19px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.process-item:first-child {
  padding-top: 0;
}

.process-item:before {
  counter-increment: step;
  content: "0" counter(step);
  color: var(--green);
  font-size: .86rem;
  font-weight: 750;
  border: 1px solid #c3d6cd;
  width: 37px;
  height: 37px;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.process-item h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.process-item p {
  font-size: .93rem;
  color: var(--muted);
  margin: 0;
}

.detail-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  display: block;
}

.detail-photo figcaption {
  font-size: .8rem;
  color: var(--muted);
  margin-top: 10px;
}

.notebook {
  background: var(--ink);
  color: #fff;
  padding: 36px;
  border-radius: 18px;
  position: relative;
}

.notebook .eyebrow {
  color: #afd6ca;
}

.notebook p {
  color: #d4e1e5;
}

.notebook ul {
  padding-left: 20px;
}

.notebook li {
  margin: 14px 0;
}

.notebook ul.notes {
  list-style: none;
  padding-left: 0;
  margin-top: 4px;
}

.notebook ul.notes li {
  padding-left: 20px;
  position: relative;
}

.notebook ul.notes li:before {
  content: "*";
  position: absolute;
  left: 0;
  color: #afd6ca;
  font-weight: 750;
}

.notebook .line {
  border-top: 1px solid #4c646d;
  margin-top: 25px;
  padding-top: 18px;
  font-size: .8rem;
  color: #c5d8de;
}

.banner {
  background: var(--ink);
  color: #fff;
  border-radius: 22px;
  padding: 47px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 30px;
}

.banner .eyebrow {
  color: #afd6ca;
}

.banner h2 {
  font-size: 2.25rem;
  max-width: 650px;
}

.banner p {
  color: #d3e0e5;
  margin: 0;
  max-width: 630px;
}

.banner .button {
  flex-shrink: 0;
}

.faq {
  border-top: 1px solid var(--line);
}

details {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  padding: 22px 38px 22px 0;
  position: relative;
}

summary::-webkit-details-marker {
  display: none;
}

summary:after {
  content: "+";
  position: absolute;
  right: 4px;
  font-size: 1.3rem;
  top: 16px;
}

details[open] summary:after {
  content: "−";
}

details p {
  color: var(--muted);
  padding-right: 25px;
  max-width: 850px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 55px 0 25px;
  background: #fffefb;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 36px;
}

.footer h3 {
  font-size: .85rem;
  letter-spacing: 0;
}

.footer a:not(.brand) {
  display: block;
  font-size: .83rem;
  text-decoration: none;
  color: var(--muted);
  margin: 9px 0;
  overflow-wrap: anywhere;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .brand {
  margin-bottom: 19px;
}

.footer p {
  font-size: .86rem;
  color: var(--muted);
}

.footer-qr-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
}

.footer-qr {
  text-align: center;
}

.footer-qr img {
  width: 68px;
  height: 68px;
}

.footer-qr span {
  display: block;
  margin-top: 5px;
  font-size: .68rem;
  color: var(--muted);
}

.footer-bottom {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  font-size: .73rem;
  color: var(--muted);
}

.breadcrumbs {
  padding: 24px 0;
  color: var(--muted);
  font-size: .78rem;
}

.breadcrumbs a {
  margin-right: 10px;
}

.page-hero {
  padding: 35px 0 62px;
}

.page-hero h1 {
  max-width: 850px;
}

.page-hero .lead {
  max-width: 760px;
}

.detail-hero {
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: 70px;
  align-items: center;
}

.detail-art {
  background: #e5f0ed;
  border-radius: 28px;
  padding: 36px;
  aspect-ratio: 1.2;
  display: grid;
  place-items: center;
}

.detail-art svg {
  width: 90%;
  max-height: 220px;
}

.facts {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
  background: white;
  border: 1px solid var(--line);
  padding: 25px;
  border-radius: 12px;
  margin-top: 28px;
}

.facts dt {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
}

.facts dd {
  margin: 5px 0 0;
  font-weight: 650;
  font-size: .87rem;
}

.check-list {
  list-style: none;
  padding: 0;
}

.check-list li {
  padding: 17px 0 17px 29px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.check-list li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green);
  font-weight: 800;
}

.callout {
  border-left: 4px solid #b27522;
  background: #fff1dc;
  padding: 22px 25px;
  margin: 25px 0;
  border-radius: 0 10px 10px 0;
  font-size: .9rem;
}

.schedule-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
}

.schedule-table {
  width: 100%;
  min-width: 780px;
  border-collapse: collapse;
  font-size: .85rem;
}

.schedule-table th,
.schedule-table td {
  padding: 14px 16px;
  text-align: center;
  border: 1px solid var(--paper);
  white-space: nowrap;
}

.schedule-table thead th {
  background: var(--ink);
  color: #fff;
  font-weight: 700;
}

.schedule-table thead th:first-child,
.schedule-table tbody th {
  position: sticky;
  left: 0;
  background: var(--ink);
  color: #fff;
  text-align: left;
  font-weight: 650;
}

.schedule-table tbody td {
  background: #eef2f0;
  color: var(--ink);
}

.schedule-table tbody td[class^="slot-"] {
  font-weight: 700;
}

.schedule-table tbody th.slot-blue,
.schedule-table tbody td.slot-blue,
.cal-event.slot-blue {
  background: #cfe8f3;
  color: #0a5a78;
}

.schedule-table tbody th.slot-blue2,
.schedule-table tbody td.slot-blue2,
.cal-event.slot-blue2 {
  background: #aed7ec;
  color: #0b4864;
}

.schedule-table tbody th.slot-blue3,
.schedule-table tbody td.slot-blue3,
.cal-event.slot-blue3 {
  background: #85bfe0;
  color: #0d3550;
}

.schedule-table tbody th.slot-orange,
.schedule-table tbody td.slot-orange,
.cal-event.slot-orange {
  background: #fbdfb3;
  color: #92590a;
}

.schedule-table tbody th.slot-orange2,
.schedule-table tbody td.slot-orange2,
.cal-event.slot-orange2 {
  background: #f5c980;
  color: #7a4400;
}

.schedule-table tbody th.slot-orange3,
.schedule-table tbody td.slot-orange3,
.cal-event.slot-orange3 {
  background: #eeb055;
  color: #603500;
}

.schedule-table tbody th.slot-green,
.schedule-table tbody td.slot-green,
.cal-event.slot-green {
  background: #cfe9d8;
  color: #166a48;
}

.schedule-table tbody th.slot-green2,
.schedule-table tbody td.slot-green2,
.cal-event.slot-green2 {
  background: #9cd3b6;
  color: #0e5536;
}

.schedule-table tbody th.slot-red,
.schedule-table tbody td.slot-red,
.cal-event.slot-red {
  background: #f8d3ce;
  color: #9a332c;
}

.schedule-table tbody th.slot-red2,
.schedule-table tbody td.slot-red2,
.cal-event.slot-red2 {
  background: #f0a99e;
  color: #7c2921;
}

.cal-block {
  margin-bottom: 36px;
}

.cal-block:last-child {
  margin-bottom: 0;
}

.cal-scroll {
  overflow-x: auto;
  border-radius: 14px;
  box-shadow: 0 2px 14px #152f3b14;
}

.cal-grid {
  display: grid;
  min-width: 640px;
  border: 1px solid #dde3e0;
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
}

.cal-corner,
.cal-day-head {
  padding: 12px 8px;
  border-bottom: 1px solid #dde3e0;
  background: var(--ink);
  color: #fff;
}

.cal-day-head {
  border-left: 1px solid #26414d;
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
}

.cal-axis {
  position: relative;
  border-right: 1px solid #dde3e0;
  background: #f6f8f7;
}

.cal-hour {
  position: absolute;
  left: 0;
  right: 0;
  padding: 3px 8px 0 0;
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  text-align: right;
}

.cal-day-body {
  position: relative;
  border-left: 1px solid #e7ebe8;
  background: linear-gradient(to bottom, #fbfcfb 1px, transparent 1px) 0 0 / 100% 60px,
    #fff;
}

.cal-event {
  position: absolute;
  left: 4px;
  right: 4px;
  overflow: hidden;
  border-radius: 8px;
  border-left: 3px solid currentColor;
  box-shadow: 0 1px 3px #152f3b1f;
  padding: 4px 8px;
  font-size: 0.72rem;
  line-height: 1.3;
}

.cal-event-title {
  display: block;
  font-weight: 700;
}

.cal-event-time {
  display: block;
  opacity: 0.8;
  font-variant-numeric: tabular-nums;
}

.form-layout {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  align-items: start;
}

.form-card {
  background: white;
  border: 1px solid var(--line);
  padding: 32px;
  border-radius: 18px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: .86rem;
  font-weight: 650;
  margin-bottom: 7px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #9eacae;
  border-radius: 6px;
  background: #fff;
  padding: 11px 12px;
  color: var(--ink);
  min-height: 48px;
}

textarea {
  resize: vertical;
  min-height: 110px;
}

.checkbox {
  display: flex;
  align-items: start;
  gap: 12px;
  font-size: .83rem;
  margin: 22px 0;
}

.checkbox input {
  width: 20px;
  min-height: 20px;
  flex-shrink: 0;
  margin-top: 3px;
}

.form-help {
  font-size: .79rem;
  color: var(--muted);
  margin-top: 5px;
}

.review {
  margin-top: 25px;
  padding-top: 25px;
  border-top: 1px solid var(--line);
}

.review textarea {
  font-size: .85rem;
  height: 260px;
}

.form-status {
  font-size: .86rem;
  margin: 15px 0 0;
}

.prose {
  max-width: 800px;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 35px;
}

.prose li {
  margin: 10px 0;
}

.empty {
  border: 1px dashed #93aaa3;
  padding: 30px;
  border-radius: 14px;
  margin: 30px 0;
}

.mobile-cta {
  display: none;
}

[hidden] {
  display: none!important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tinker-launcher {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 24px;
  z-index: 40;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--orange);
  border: 1px solid var(--orange);
  color: var(--ink);
  place-items: center;
  box-shadow: 0 8px 24px #152f3b33;
}

.js .tinker-launcher {
  display: grid;
}

.tinker-launcher:hover {
  background: #ffbc64;
}

.tinker-panel {
  position: fixed;
  right: 20px;
  bottom: 92px;
  z-index: 40;
  width: min(340px, calc(100% - 40px));
  max-height: min(480px, calc(100vh - 140px));
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 20px 50px #152f3b26;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.tinker-head {
  background: var(--ink);
  color: #fff;
  padding: 16px 18px;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.tinker-head h2 {
  font-size: 1rem;
  margin: 0;
}

.tinker-head span {
  font-size: .74rem;
  color: #afd6ca;
  display: block;
  margin-top: 2px;
}

.tinker-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.1rem;
  min-height: 32px;
  min-width: 32px;
  flex-shrink: 0;
}

.tinker-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tinker-msg {
  max-width: 88%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: .87rem;
  line-height: 1.5;
}

.tinker-msg.bot {
  background: var(--paper);
  border: 1px solid var(--line);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.tinker-msg.bot a {
  color: #17627c;
}

.tinker-msg.user {
  background: var(--ink);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.tinker-form {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
}

.tinker-form input {
  flex: 1;
  min-height: 44px;
}

.tinker-form button {
  min-height: 44px;
  padding: 0 16px;
}

@media(min-width:1100px) {
  .program-grid .program-card:nth-child(4),
  .program-grid .program-card:nth-child(5) {
    grid-column: auto;
  }
  .hero {
    min-height: 640px;
  }
}

@media(max-width:1090px) {
  .nav {
    gap: 16px;
  }
  .header-row {
    gap: 15px;
    flex-wrap: wrap;
  }
  .hero-grid {
    gap: 30px;
  }
  .grid.four {
    grid-template-columns: repeat(2,1fr);
  }
  .program-grid {
    grid-template-columns: repeat(2,1fr);
  }
  .hero-photo {
    height: 450px;
  }
  .footer-grid {
    grid-template-columns: repeat(2,1fr);
  }
}

@media(max-width:760px) {
  .wrap {
    width: calc(100% - 36px);
  }
  .section {
    padding: 52px 0;
  }
  .header-row {
    min-height: 86px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand img {
    width: 66px;
    height: 55px;
  }
  .brand-tagline {
    white-space: normal;
    font-size: .86rem;
    flex-basis: 100%;
  }
  .js .menu-toggle {
    display: block;
  }
  .header-trial {
    margin-left: auto;
  }
  .nav {
    margin: 0;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0;
    padding-bottom: 16px;
  }
  .nav a {
    width: 50%;
    padding: 12px;
  }
  .js .nav:not(.is-open) {
    display: none;
  }
  .hero {
    padding-top: 38px;
  }
  .hero-grid,
  .split,
  .detail-hero,
  .form-layout {
    grid-template-columns: 1fr;
    gap: 33px;
  }
  .hero h1 {
    font-size: 3.05rem;
    max-width: 570px;
  }
  .hero .lead {
    max-width: none;
  }
  .hero-visual {
    padding-left: 14px;
    max-width: 650px;
    width: 100%;
  }
  .hero-photo {
    height: 345px;
    border-radius: 60px 12px 60px 12px;
  }
  .photo-label {
    bottom: 65px;
    left: 0;
  }
  .hero-visual:before {
    inset: 20px -5px 45px 40px;
  }
  .section-head {
    display: block;
  }
  .section-head .text-link {
    display: inline-block;
    margin-top: 18px;
  }
  .grid.three,
  .program-grid {
    grid-template-columns: 1fr;
  }
  .grid.two {
    grid-template-columns: 1fr;
  }
  .banner {
    padding: 30px;
    display: block;
  }
  .banner .eyebrow {
    color: #afd6ca;
  }
  .banner h2 {
    font-size: 2rem;
  }
  .banner .button {
    margin-top: 22px;
  }
  .card {
    padding: 24px;
  }
  .card-visual {
    height: 135px;
  }
  .grid.four {
    gap: 13px;
  }
  .age-card {
    padding: 19px;
  }
  .age-card h3 {
    font-size: 1.2rem;
  }
  .age-card p {
    font-size: .86rem;
  }
  .footer {
    padding-bottom: 90px;
  }
  .footer-grid {
    gap: 28px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }
  .page-hero {
    padding: 20px 0 40px;
  }
  .page-hero h1 {
    font-size: 2.7rem;
  }
  .detail-art {
    display: none;
  }
  .facts {
    grid-template-columns: 1fr;
    padding: 22px;
    gap: 18px;
  }
  .field-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .form-card {
    padding: 22px;
  }
  .mobile-cta {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fffefbf5;
    border-top: 1px solid var(--line);
    padding: 9px 18px max(9px,env(safe-area-inset-bottom));
    z-index: 25;
    gap: 12px;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 -5px 20px #152f3b09;
  }
  .mobile-cta span {
    font-size: .74rem;
    font-weight: 650;
    max-width: 45%;
  }
  .mobile-cta .button {
    padding: 10px 17px;
    min-height: 44px;
    font-size: .8rem;
  }
  .notebook {
    padding: 27px;
  }
  body {
    padding-bottom: 0;
  }
  html {
    scroll-padding-top: 100px;
  }
  .tinker-launcher {
    right: 14px;
    bottom: 78px;
    width: 52px;
    height: 52px;
  }
  .tinker-panel {
    right: 10px;
    left: 10px;
    bottom: 138px;
    width: auto;
    max-height: min(60vh, 420px);
  }
}

@media(max-width:360px) {
  .hero h1 {
    font-size: 2.6rem;
  }
  .grid.four {
    grid-template-columns: 1fr;
  }
  .actions .button {
    width: 100%;
  }
}

@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *:before,
  *:after {
    transition: none!important;
    animation: none!important;
  }
}

@media print {
  .site-header,
  .topbar,
  .footer,
  .mobile-cta,
  .actions,
  .menu-toggle,
  .tinker {
    display: none;
  }
  .section {
    padding: 20px 0;
  }
  body {
    background: white;
    color: black;
  }
  .wrap {
    width: 100%;
  }
  .card,
  .notebook {
    break-inside: avoid;
  }
}

/* Tinker AI: same brand, accessible transcript, explicit provider failures. */
.tinker-panel{width:min(410px,calc(100% - 40px));height:620px;max-height:calc(100dvh - 118px)}
.tinker-head{flex-shrink:0;align-items:center}
.tinker-close{min-width:44px;min-height:44px}
.tinker-tools{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:0 14px;border-bottom:1px solid var(--line);flex-shrink:0}
.tinker-tools button,.tinker-tools a{font-size:.78rem;color:var(--ink);background:none;border:0;min-height:44px;display:inline-flex;align-items:center;padding:6px 0;text-decoration:underline}
.tinker-notice{font-size:.72rem;line-height:1.5;color:var(--muted);padding:10px 14px;margin:0;background:var(--paper);flex-shrink:0}
.tinker-messages{min-height:65px;overscroll-behavior:contain}
.tinker-msg{white-space:pre-wrap;overflow-wrap:anywhere;flex-shrink:0}
.tinker-sources{margin-top:10px;padding-top:8px;border-top:1px solid var(--line);font-size:.74rem;display:flex;flex-wrap:wrap;gap:5px 10px}
.tinker-status{font-size:.78rem;color:var(--muted);margin:0;padding:0 14px;flex-shrink:0}
.tinker-status:not(:empty){padding-bottom:8px}
.tinker-suggestions{display:flex;gap:7px;padding:4px 12px 10px;flex-wrap:wrap;flex-shrink:0}
.tinker-suggestions button{background:var(--paper);color:var(--ink);border:1px solid var(--line);border-radius:8px;font-size:.78rem;padding:8px 10px;min-height:44px}
.tinker-form{flex-shrink:0;margin:0}.tinker-form input{min-width:0;font-size:16px}.tinker-form button:disabled{opacity:.65;cursor:wait}
.tinker-error-actions{display:flex;gap:14px;align-items:center;margin-top:8px;flex-wrap:wrap}
.tinker-error-actions button{background:white;color:var(--ink);border:1px solid var(--line);border-radius:6px;padding:6px 12px;min-height:44px}
.tinker-error-actions a{display:inline-flex;align-items:center;min-height:44px;font-size:.8rem}
@media(max-width:760px){.tinker-panel{width:auto;max-height:calc(100dvh - 154px);height:570px}.tinker-notice{font-size:.71rem}}
@media(max-width:760px){.header-row .brand{max-width:100%;min-width:0}.header-row .brand-tagline{min-width:0}}
