/* Little Tyvy Montessori - interior pages
   Companion sheet to home.css. home.css must load FIRST: it defines the
   design tokens (--cream, --green, --serif, ...) on .ty-page and every rule
   here inherits them. Everything stays scoped under .ty-page so nothing
   leaks into the rest of the WordPress site. */

/* ------------------------------------------------------------ page hero */
.ty-phero {
  position: relative;
  background: var(--cream-2);
  overflow: hidden;
  text-align: center;
}
.ty-phero__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 76px 0 80px;
  position: relative;
  z-index: 2;
}
.ty-phero .ty-eyebrow { margin-bottom: 18px; }
.ty-phero h1 { font-size: clamp(33px, 4.4vw, 50px); }
.ty-phero__lead {
  margin: 22px auto 0;
  max-width: 545px;
  font-size: 15px;
  line-height: 1.78;
}
.ty-phero__leaf {
  position: absolute;
  right: -30px;
  bottom: -22px;
  width: 210px;
  color: #a9b78f;
  z-index: 1;
  pointer-events: none;
}
.ty-phero__leaf--left {
  right: auto;
  left: -34px;
  bottom: auto;
  top: -30px;
  transform: scaleX(-1);
  width: 180px;
  opacity: .8;
}

.ty-crumbs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  font-size: 12px;
  color: var(--muted);
}
.ty-page .ty-crumbs a { color: var(--muted); transition: color .2s ease; }
.ty-page .ty-crumbs a:hover { color: var(--green); }
.ty-crumbs [aria-current] { color: var(--ink-2); }

/* -------------------------------------------------------------- section */
.ty-sec { padding: 92px 0 96px; }
.ty-sec--white { background: var(--white); }
.ty-sec--cream { background: var(--cream); }
.ty-sec--cream2 { background: var(--cream-2); }
.ty-sec--cream3 { background: var(--cream-3); }
.ty-sec--tight { padding: 68px 0 72px; }

/* .ty-head is inherited from home.css (centred section heading).
   .ty-head--left is the same block, ranged left. */
.ty-head--left { text-align: left; margin-left: 0; max-width: 640px; }

/* ---------------------------------------------------------- split rows */
.ty-split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.02fr);
  align-items: center;
  gap: 72px;
}
.ty-split + .ty-split { margin-top: 86px; }
.ty-split--rev .ty-split__copy { order: 2; }
.ty-split--rev .ty-split__media { order: 1; }
.ty-split__media img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border-radius: 18px;
}
.ty-split__media--arch img { border-radius: 128px 30px 128px 30px; aspect-ratio: 1.05 / 1; }
.ty-split__media--tall img { aspect-ratio: 0.88 / 1; }

/* ---------------------------------------------------------------- prose */
.ty-prose .ty-eyebrow { margin-bottom: 18px; }
.ty-prose h2 { font-size: clamp(29px, 3.2vw, 38px); }
.ty-prose h3 {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0;
  margin-top: 30px;
}
.ty-prose h2 + p, .ty-prose h3 + p { margin-top: 14px; }
.ty-prose p { margin-top: 18px; font-size: 14.5px; line-height: 1.82; }
.ty-prose > p:first-child { margin-top: 0; }
.ty-prose .ty-btn { margin-top: 34px; }
.ty-prose .ty-checks { margin-top: 30px; }
.ty-prose__lead { font-size: 15.5px; line-height: 1.8; color: var(--ink-2); }

/* --------------------------------------------------------- bullet lists */
.ty-bullets { display: grid; gap: 13px; margin-top: 24px; }
.ty-bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--body);
}
.ty-bullets li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 9px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  opacity: .55;
}
.ty-bullets strong { color: var(--ink); font-weight: 500; }

/* ---------------------------------------------------------------- tiles */
.ty-tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 26px;
  margin-top: 54px;
}
.ty-tiles--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ty-tiles--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.ty-tile {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 32px 28px 34px;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.ty-sec--white .ty-tile { background: var(--cream); }
.ty-tile:hover {
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(70, 60, 40, .07);
  transform: translateY(-3px);
}
.ty-tile__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 12px;
  background: #f4efe4;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--green);
}
.ty-sec--white .ty-tile__icon { background: var(--white); }
.ty-tile__icon svg { width: 23px; height: 23px; }
.ty-tile h3 { font-size: 19px; }
.ty-tile__k {
  display: block;
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.ty-tile p { margin-top: 13px; font-size: 13.5px; line-height: 1.7; }
.ty-tile .ty-bullets { margin-top: 16px; }
.ty-tile .ty-bullets li { font-size: 13px; }
.ty-tile .ty-more { margin-top: 20px; }

/* --------------------------------------------------------- numbered set */
.ty-tile__num {
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--gold);
  display: block;
  margin-bottom: 16px;
}

/* -------------------------------------------------------- centre cards */
.ty-centres {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 56px;
}
.ty-centre {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.ty-centre:hover {
  border-color: var(--line);
  box-shadow: 0 16px 40px rgba(70, 60, 40, .08);
  transform: translateY(-3px);
}
.ty-centre__media img { width: 100%; aspect-ratio: 1.5 / 1; object-fit: cover; }
.ty-centre__body { padding: 28px 26px 30px; display: flex; flex-direction: column; flex: 1; }
.ty-centre h3 { font-size: 21px; }
.ty-centre__tag {
  margin-top: 7px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.ty-centre .ty-more { margin-top: auto; padding-top: 22px; }
.ty-centre .ty-btn { margin-top: auto; }

/* key/value rows, used for addresses, hours, tuition, job meta */
.ty-meta { margin-top: 20px; display: grid; gap: 12px; }
.ty-meta__row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  font-size: 13.5px;
  line-height: 1.6;
}
.ty-meta__k {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.ty-meta__v { color: var(--ink-2); }
.ty-page .ty-meta__v a { color: var(--ink-2); transition: color .2s ease; }
.ty-page .ty-meta__v a:hover { color: var(--green); }

/* ----------------------------------------------------------- fill slots */
/* Every bracketed slot the school still needs to supply is marked, so the
   remaining copy work is visible at a glance and easy to search for. */
.ty-fill {
  color: var(--gold);
  font-style: italic;
}
.ty-note {
  margin-top: 30px;
  border-left: 2px solid var(--gold);
  background: #faf6ee;
  border-radius: 0 8px 8px 0;
  padding: 16px 22px 18px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--ink-2);
}
.ty-note strong {
  display: block;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* ---------------------------------------------------------------- steps */
.ty-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
  margin-top: 56px;
  counter-reset: ty-step;
}
.ty-steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ty-step { position: relative; padding-top: 34px; }
.ty-step::before {
  counter-increment: ty-step;
  content: counter(ty-step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--gold);
}
.ty-step::after {
  content: '';
  position: absolute;
  top: 11px;
  left: 38px;
  right: -18px;
  height: 1px;
  background: var(--line);
}
.ty-step:last-child::after { display: none; }
.ty-step h3 { font-family: var(--sans); font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.ty-step p { margin-top: 9px; font-size: 13px; line-height: 1.68; }

/* ------------------------------------------------------- daily schedule */
.ty-rhythm { margin-top: 46px; display: grid; gap: 0; }
.ty-rhythm__row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 28px;
  padding: 20px 0;
  border-top: 1px solid var(--line-2);
  align-items: baseline;
}
.ty-rhythm__row:last-child { border-bottom: 1px solid var(--line-2); }
.ty-rhythm__time {
  font-family: var(--serif);
  font-size: 16px;
  color: var(--gold);
}
.ty-rhythm h3 { font-family: var(--sans); font-size: 14.5px; font-weight: 700; color: var(--ink); letter-spacing: 0; }
.ty-rhythm p { margin-top: 7px; font-size: 13.5px; line-height: 1.7; }

/* ---------------------------------------------------------------- table */
.ty-tablewrap { margin-top: 48px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.ty-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  font-size: 13.5px;
}
.ty-table th, .ty-table td {
  text-align: left;
  padding: 17px 22px;
  border-bottom: 1px solid var(--line-2);
  vertical-align: top;
  line-height: 1.6;
}
.ty-table thead th {
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom-color: var(--line);
}
.ty-table tbody th {
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink);
  width: 30%;
}
.ty-table td { color: var(--body); }
.ty-table tbody tr:last-child th, .ty-table tbody tr:last-child td { border-bottom: 0; }
.ty-table--boxed {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}

/* ------------------------------------------------------------------ faq */
.ty-faq { margin-top: 48px; max-width: 780px; margin-left: auto; margin-right: auto; }
.ty-faq details {
  border-bottom: 1px solid var(--line-2);
}
.ty-faq details:first-of-type { border-top: 1px solid var(--line-2); }
.ty-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--ink);
  line-height: 1.4;
  transition: color .2s ease;
}
.ty-faq summary::-webkit-details-marker { display: none; }
.ty-faq summary:hover { color: var(--green); }
.ty-faq summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 11px;
  height: 11px;
  margin-top: -7px;
  border-right: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(45deg);
  transition: transform .25s ease;
}
.ty-faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.ty-faq__a { padding: 0 44px 26px 0; font-size: 14px; line-height: 1.8; }
.ty-faq__a p + p { margin-top: 14px; }

/* ------------------------------------------------------------ link rows */
.ty-linklist { margin-top: 26px; display: grid; }
.ty-page .ty-linklist a {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 4px;
  border-bottom: 1px solid var(--line-2);
  font-size: 14px;
  color: var(--ink-2);
  transition: color .2s ease, padding-left .2s ease;
}
.ty-linklist a:first-child { border-top: 1px solid var(--line-2); }
.ty-page .ty-linklist a:hover { color: var(--green); padding-left: 10px; }
.ty-linklist svg { width: 16px; height: 16px; flex: none; color: var(--green); }
.ty-linklist span { flex: 1; }
.ty-linklist em {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------------------ job cards */
.ty-jobs { margin-top: 52px; display: grid; gap: 20px; }
.ty-job {
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 30px 32px 32px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 30px;
  align-items: center;
  transition: border-color .25s ease, box-shadow .25s ease;
}
.ty-sec--white .ty-job { background: var(--cream); }
.ty-job:hover { border-color: var(--line); box-shadow: 0 14px 36px rgba(70, 60, 40, .07); }
.ty-job h3 { font-size: 21px; }
.ty-job p { margin-top: 12px; font-size: 13.5px; line-height: 1.7; max-width: 560px; }
.ty-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.ty-chip {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 12px;
  border-radius: 20px;
  background: #f4efe4;
  border: 1px solid var(--line-2);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-2);
}
.ty-sec--white .ty-chip { background: var(--white); }

/* ---------------------------------------------------------------- stats */
.ty-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
  margin-top: 54px;
  padding: 42px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.ty-stat { text-align: center; }
.ty-stat__n {
  display: block;
  font-family: var(--serif);
  font-size: clamp(30px, 3.4vw, 40px);
  line-height: 1;
  color: var(--ink);
}
.ty-stat__n .ty-fill { font-size: .8em; }
.ty-stat__l {
  display: block;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------- team portraits */
.ty-team {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
  margin-top: 54px;
}
.ty-person__media img {
  width: 100%;
  aspect-ratio: 0.86 / 1;
  object-fit: cover;
  border-radius: 14px;
}
.ty-person h3 { margin-top: 20px; font-size: 18px; }
.ty-person__role {
  margin-top: 6px;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--gold);
}
.ty-person p { margin-top: 11px; font-size: 13px; line-height: 1.68; }

/* ------------------------------------------------------------- map card */
.ty-map {
  margin-top: 54px;
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
  background: var(--white);
}
.ty-map img { width: 100%; aspect-ratio: 2.1 / 1; object-fit: cover; }
.ty-map__bar {
  padding: 20px 26px;
  border-top: 1px solid var(--line-2);
  font-size: 13px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------- quote */
.ty-quote { text-align: center; max-width: 760px; margin: 0 auto; }
.ty-quote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(21px, 2.5vw, 29px);
  line-height: 1.45;
  color: var(--ink);
}
.ty-quote figcaption {
  margin-top: 26px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ------------------------------------------------- current page in nav */
.ty-page .ty-nav a[aria-current="page"] { color: var(--green); }
.ty-page .ty-nav a[aria-current="page"]::after { transform: scaleX(1); }

/* two-up variant of the card grid, for the four programme cards */
.ty-centres--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ty-centres--2 .ty-centre__media img { aspect-ratio: 1.7 / 1; }

/* a link list inside a tile carries the tile's rhythm, not its own */
.ty-tile .ty-linklist { margin-top: 18px; }
.ty-page .ty-tile .ty-linklist a { padding: 13px 2px; font-size: 13.5px; }
.ty-tile .ty-linklist a:last-child { border-bottom: 0; padding-bottom: 0; }

/* ========================================================== responsive == */
@media (max-width: 980px) {
  .ty-sec { padding: 72px 0 76px; }
  .ty-sec--tight { padding: 56px 0 60px; }
  .ty-phero__inner { padding: 58px 0 62px; }
  .ty-split { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .ty-split + .ty-split { margin-top: 60px; }
  .ty-split--rev .ty-split__copy { order: 1; }
  .ty-split--rev .ty-split__media { order: 2; }
  .ty-tiles, .ty-tiles--4, .ty-centres { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ty-steps, .ty-steps--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px 30px; }
  .ty-step::after { display: none; }
  .ty-team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ty-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .ty-job { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .ty-job .ty-btn { justify-self: start; }
  .ty-phero__leaf { width: 150px; right: -40px; }
  .ty-phero__leaf--left { display: none; }
}

@media (max-width: 640px) {
  .ty-sec { padding: 58px 0 62px; }
  .ty-sec--tight { padding: 48px 0 52px; }
  .ty-phero__inner { padding: 46px 0 50px; }
  .ty-crumbs { margin-bottom: 20px; }
  .ty-tiles, .ty-tiles--2, .ty-tiles--4, .ty-centres, .ty-team { grid-template-columns: minmax(0, 1fr); }
  .ty-steps, .ty-steps--3 { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .ty-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; padding: 32px 0; }
  .ty-rhythm__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ty-meta__row { grid-template-columns: minmax(0, 1fr); gap: 3px; }
  .ty-faq summary { font-size: 16px; padding-right: 34px; }
  .ty-faq__a { padding-right: 0; }
  .ty-split__media--arch img { border-radius: 90px 22px 90px 22px; }
  .ty-phero__leaf { width: 120px; bottom: -14px; opacity: .8; }
  .ty-tile { padding: 26px 22px 28px; }
  .ty-job { padding: 26px 22px 28px; }
}
