/* Yellow Pencil Preschool — theme styles
   Concept: the site is a school notebook. Ruled paper, red margin line,
   taped photographs, pencil strokes drawn as you scroll. */

/* ---------- tokens ---------- */
:root {
  --paper: var(--wp--preset--color--paper, #fff6e6);
  --paper-2: var(--wp--preset--color--paper-2, #ffeed3);
  --paper-3: var(--wp--preset--color--paper-3, #ffe2b8);
  --white: var(--wp--preset--color--white, #ffffff);
  --ink: var(--wp--preset--color--ink, #0d0c24);
  --navy: var(--wp--preset--color--navy, #1c2574);
  --ink-soft: var(--wp--preset--color--ink-soft, #4a5290);
  --pencil: var(--wp--preset--color--pencil, #f7942d);
  --pencil-deep: #ec8a12;
  --crayon: var(--wp--preset--color--crayon, #f93827);
  --magenta: var(--wp--preset--color--magenta, #f00075);
  --crimson: #ec0b43;
  --sky: var(--wp--preset--color--sky, #46b1c9);
  --blue: var(--wp--preset--color--blue, #1863dc);
  --green: var(--wp--preset--color--green, #25d366);
  --rule: rgba(28, 37, 116, .16);
  --line: rgba(13, 12, 36, .12);

  --font-display: var(--wp--preset--font-family--display, "Bricolage Grotesque", "Trebuchet MS", system-ui, sans-serif);
  --font-body: var(--wp--preset--font-family--body, "Nunito", system-ui, -apple-system, sans-serif);
  --font-hand: var(--wp--preset--font-family--hand, "Caveat", "Segoe Script", cursive);

  --wrap: 1180px;
  --pad: clamp(20px, 5vw, 56px);
  --r-sm: 10px;
  --r-md: 18px;
  --r-lg: 28px;
  --shadow: 0 18px 44px -26px rgba(13, 12, 36, .6);
  --shadow-hard: 6px 6px 0 var(--ink);

  --cursor-pencil: url("data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAEG0lEQVR4nO3Vb0wbdRgH8Od3v2vH9e5+RyfYREYX2uNoFjeI+J5XZXHuhcbBIMb4Rk18sbVSCyEmGhITk2EZA/XVNJrMsAQS3eISsGpDjG9Mms0XZptJibwxMpfVQo9S7n73+KIF+TctsOIbvy9/ud7z6fM8+R0AAAC0uwAAFCX4FlNbkMn6ixvPq5wOEQBAlfWoquhFpug3mNKMjDX3HBhClfU3NHYMFUW/xg4F9VrWclmRDWTMOFt1hOoJvqkq+qqq6ElV0Z1azUCXyz9f522xpJoAMhaobidUJXhLVfSUJB1pqNVaHEob0d/Qhj+nk87QQD8HeBx9daHqIVRP8CVVaeZezbjidvv/8B9pw9vprzlaGcTVjDMYG+AAjdVFMGacVWUDHzscsuduJh20M7j6+020c3cRU+eceLiJAzXQ563KYpZexpjRLUkBHBro57iacXjuLq58+Qqaw0cRP2l14s+EOAjN6PNWZSfKCDnQA1CPg7EBjqlzjjl8FM0P2tAcP4748fGqIMhmRNry1YV6Fu6bE/Gw6FzoZWTZdNaf8XgA+6csHJ7hgk/jvQvZuaule2TWfgSALYisMxHvFJwLZ1xkeRm2I6ZtoY7hq/dzmcv7QZDtR2WEN9CzkKMT8ZN0E4IAgCQBvvuVhW/fcARWw2OLS5kR3CNiB8DDEYVlIAgACACyQvDSjMWjU1zUpL0jhJ2P0xZAu2shO3fVp/He4Rku9E9ZKEmAWP5RfglJpNNFL3VRO1egCaYG+wjM2mvfln0CtiKgd3jaJkPXLUdWCHIEoATAzCM5H94f4iEj2JjSOA7XBl7OmuKnF1+gdqTTRc08EoEAOFgax1jS4pHJ3Y/jHzqwllInHvw59xmr4bHoFBfHkhaXFYIOAgjrnRDp6IZOQIWdqACwhugQF5cyI5rEY5HJ7Yh8npBImNKxLmIvFkjCK1eGqBAAADBr444IQI4EROJAMW+Tp0920+4zp+wl20poqvGvO1HBDmxNh0hg1mZqsC9XoInRLmpHwpQW8zb5lj4Pd3greOsF/P7zb/iV6WnRLdfEzNwvI+U/6+yjA2vZ3InoJBfHkxZPs268w1vBpayAcPsB+ejHBvoePmUXkSc0WY+Wi2+rtwfAdsT5SS6OT2e5t15ANr8Cp0Z/hcK9LInxVhpfCdmL1LnYJBsndkLs6tLYCZFbmh3xyk0w9cW1hMcs2h/+8AQtLBaJSjzwE7nHr7t+Ew85mCJuex5MEKB0kT7KlBZMU40+t+jH9+lzFsI7zi3hdatReRJB9adOQ7un/PAedq5CBAEAWTP6KAvioPvZ1WNyG4LqT70Gp9eK73Hcu0AAAGiyHgUWwBol8F0YTsgHVHw9AgCA3xNqb/+77QdWfBOinGrNvCLEf1b8/+wqfwHLHQhB5LIqdgAAAABJRU5ErkJggg==") 2 2, auto;
}

/* the whole site is drawn with a pencil (32px: larger images are ignored on Windows) */
html, body, body *:not(input):not(textarea):not(select) { cursor: var(--cursor-pencil); }
input, textarea, select { cursor: auto; }
@media (pointer: coarse) { html, body, body * { cursor: auto; } }

/* pencil trail canvas, sits above the page and ignores clicks */
.yp-trail { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 90; }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: clamp(16px, 1.05vw, 17.5px);
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.02em;
  margin: 0 0 .5em;
  font-variation-settings: "wdth" 96, "opsz" 32;
}
p { margin: 0 0 1.1em; }
:focus-visible { outline: 3px solid var(--magenta); outline-offset: 3px; border-radius: 4px; }
.yp-skip {
  position: absolute; left: -9999px; top: 0; z-index: 999;
  background: var(--ink); color: var(--paper); padding: 12px 18px;
}
.yp-skip:focus { left: 12px; top: 12px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* ---------- layout ---------- */
.yp-wrap { width: min(100% - (var(--pad) * 2), var(--wrap)); margin-inline: auto; }
.yp-section { position: relative; padding: clamp(46px, 5.6vw, 78px) 0; }
.yp-section--paper { background: var(--paper-2); }
.yp-section--paper + .yp-section--paper { padding-top: 0; }

/* ruled notebook paper, the base surface of the site */
.yp-ruled {
  background-image: repeating-linear-gradient(
    to bottom, transparent 0 37px, var(--rule) 37px 38px
  );
  background-position: 0 6px;
}
.yp-margin-line { position: relative; }
.yp-margin-line::before {
  content: "";
  position: absolute; top: -18px; bottom: -18px; left: -34px;
  width: 2px; background: var(--crayon); opacity: .45;
}
@media (max-width: 900px) { .yp-margin-line::before { display: none; } }

/* ---------- type helpers ---------- */
.yp-eyebrow {
  font-family: var(--font-body);
  font-size: .74rem; font-weight: 900; letter-spacing: .16em; text-transform: uppercase;
  color: var(--crayon); margin: 0 0 14px; display: flex; align-items: center; gap: 10px;
}
.yp-eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; }
.yp-h1 { font-size: clamp(2.9rem, 8.2vw, 5.6rem); }
.yp-h2 { font-size: clamp(2rem, 4.6vw, 3.3rem); }
.yp-h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
.yp-lead { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--ink-soft); max-width: 54ch; }
.yp-note { font-family: var(--font-hand); font-size: 1.5rem; color: var(--crayon); line-height: 1.15; }
.yp-mark { position: relative; white-space: nowrap; }
.yp-mark svg { position: absolute; left: -4%; top: -14%; width: 108%; height: 128%; overflow: visible; pointer-events: none; }
.yp-mark path { fill: none; stroke: var(--pencil); stroke-width: 7; stroke-linecap: round; }

/* hand-drawn underline that draws itself in view */
.yp-scribble { display: block; width: 190px; max-width: 60%; height: 14px; margin-top: -.2em; overflow: visible; }
.yp-scribble path {
  fill: none; stroke: var(--pencil); stroke-width: 6; stroke-linecap: round;
  stroke-dasharray: 400; stroke-dashoffset: 400;
  transition: stroke-dashoffset 1.1s cubic-bezier(.2,.7,.3,1);
}
.is-in .yp-scribble path, .yp-mark.is-in path { stroke-dashoffset: 0; }
.yp-mark path { stroke-dasharray: 620; stroke-dashoffset: 620; transition: stroke-dashoffset 1.4s .2s cubic-bezier(.2,.7,.3,1); }

/* reveal on scroll */
.yp-reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.yp-reveal.is-in { opacity: 1; transform: none; }
.yp-reveal[data-d="1"] { transition-delay: .08s; }
.yp-reveal[data-d="2"] { transition-delay: .16s; }
.yp-reveal[data-d="3"] { transition-delay: .24s; }
.yp-reveal[data-d="4"] { transition-delay: .32s; }

/* ---------- buttons ---------- */
.yp-btn:not(.wp-block-button) {
  --btn-bg: var(--pencil);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--btn-bg); color: var(--ink);
  font-weight: 900; font-size: .96rem; text-decoration: none;
  border: 2px solid var(--ink); cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease, background .2s ease;
}
.yp-btn:not(.wp-block-button):hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.yp-btn:not(.wp-block-button):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.yp-btn--ghost { --btn-bg: transparent; }
.yp-btn--chalk { --btn-bg: var(--sky); color: #fff; }
.yp-btn--magenta { --btn-bg: var(--magenta); color: #fff; }
.yp-btn--wa { --btn-bg: var(--green); color: #06331a; }
.yp-btn--sm:not(.wp-block-button) { padding: 11px 20px; font-size: .85rem; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- header ---------- */
.yp-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 2px solid transparent;
  transition: border-color .25s ease, background .25s ease;
}
.yp-header.is-stuck { border-bottom-color: var(--ink); }
.yp-header__in { display: flex; align-items: center; gap: 22px; padding: 12px 0; }
.yp-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; margin-right: auto; }
.yp-brand img { width: 52px; height: 52px; object-fit: contain; }
.yp-brand__name { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; line-height: 1; letter-spacing: -.02em; }
.yp-brand__sub { font-family: var(--font-hand); font-size: 1rem; color: var(--crayon); line-height: 1; }
.yp-nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.yp-nav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  text-decoration: none; font-weight: 700; font-size: .95rem;
  transition: background .18s ease, color .18s ease;
}
.yp-nav a:hover, .yp-nav .current-menu-item > a { background: var(--pencil); }
.yp-header .yp-btn { flex-shrink: 0; }
.yp-burger { display: none; width: 46px; height: 46px; border: 2px solid var(--ink); border-radius: 12px; background: var(--paper); align-items: center; justify-content: center; cursor: pointer; }
.yp-burger span { display: block; width: 20px; height: 2px; background: var(--ink); position: relative; }
.yp-burger span::before, .yp-burger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--ink); transition: transform .2s ease; }
.yp-burger span::before { top: -6px; } .yp-burger span::after { top: 6px; }
body.nav-open .yp-burger span { background: transparent; }
body.nav-open .yp-burger span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .yp-burger span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .yp-burger { display: flex; }
  .yp-header .yp-header__in > .yp-btn { display: none; }
  .yp-nav {
    position: fixed; inset: 0 0 0 28%; background: var(--paper);
    border-left: 2px solid var(--ink); padding: 92px 26px 26px;
    transform: translateX(101%); transition: transform .34s cubic-bezier(.2,.7,.3,1);
    box-shadow: var(--shadow); overflow-y: auto;
  }
  body.nav-open .yp-nav { transform: none; }
  .yp-nav ul { flex-direction: column; gap: 2px; }
  .yp-nav a { font-size: 1.25rem; font-family: var(--font-display); padding: 12px 14px; }
  .yp-brand img { width: 44px; height: 44px; }
  .yp-brand__name { font-size: .98rem; }
  .yp-brand__sub { font-size: .9rem; }
}

/* ---------- hero ---------- */
.yp-hero { position: relative; padding: clamp(34px, 5vw, 62px) 0 clamp(20px, 4vw, 40px); overflow: hidden; }
.yp-hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.yp-hero__grid { position: relative; display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.yp-hero h1 { margin-bottom: .35em; }
.yp-hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.yp-hero__meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: .86rem; font-weight: 800; color: var(--ink-soft); }
.yp-hero__meta span { display: flex; align-items: center; gap: 7px; }
.yp-hero__meta span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--magenta); }

/* taped photo stack */
.yp-stack { position: relative; aspect-ratio: 4 / 4.4; }
.yp-photo {
  position: absolute; inset: 0; background: #fff; padding: 12px 12px 46px;
  border-radius: 4px; box-shadow: var(--shadow);
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.yp-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; background: var(--paper-3); }
.yp-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 12px; font-family: var(--font-hand); font-size: 1.25rem; color: var(--ink-soft); }
.yp-photo::after {
  content: ""; position: absolute; top: -12px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  width: 96px; height: 26px; background: rgba(247, 148, 45, .6); border: 1px dashed rgba(37,37,45,.18);
}
.yp-stack .yp-photo:nth-child(1) { transform: rotate(-7deg) translate(-4%, 2%); }
.yp-stack .yp-photo:nth-child(2) { transform: rotate(4deg) translate(4%, -1%); }
.yp-stack .yp-photo:nth-child(3) { transform: rotate(-1deg); }
.yp-stack:hover .yp-photo:nth-child(1) { transform: rotate(-11deg) translate(-11%, 3%); }
.yp-stack:hover .yp-photo:nth-child(2) { transform: rotate(8deg) translate(10%, -3%); }

/* marquee */
.yp-marquee {
  border-block: 2px solid var(--ink); background: var(--pencil);
  overflow: hidden; padding: 12px 0; margin-top: clamp(28px, 5vw, 54px);
}
.yp-marquee__track { display: flex; gap: 34px; width: max-content; animation: yp-slide 26s linear infinite; }
.yp-marquee span { font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; display: flex; align-items: center; gap: 34px; white-space: nowrap; }
.yp-marquee span::after { content: "✏"; font-size: 1rem; }
@keyframes yp-slide { to { transform: translateX(-50%); } }
.yp-marquee:hover .yp-marquee__track { animation-play-state: paused; }

/* ---------- stats ---------- */
.yp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.yp-stat { padding: 26px 22px; border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-hard); }
.yp-stat b { display: block; font-family: var(--font-display); font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1; }
.yp-stat small { font-size: .84rem; font-weight: 800; color: var(--ink-soft); }
.yp-stat { background: var(--white); }
.yp-stat:nth-child(1) { background: var(--crayon); color: #fff; }
.yp-stat:nth-child(1) small { color: rgba(255,255,255,.88); }
.yp-stat:nth-child(2) { background: var(--pencil); }
.yp-stat:nth-child(3) { background: var(--sky); color: #fff; }
.yp-stat:nth-child(3) small { color: rgba(255,255,255,.85); }
.yp-stat:nth-child(4) { background: var(--magenta); color: #fff; }
.yp-stat:nth-child(4) small { color: rgba(255,255,255,.85); }

/* ---------- section head ---------- */
.yp-head { max-width: 60ch; margin-bottom: clamp(34px, 5vw, 56px); }
.yp-head--split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; max-width: none; align-items: end; }

/* ---------- feature cards ---------- */
.yp-features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.yp-feature {
  position: relative; padding: 28px 24px 26px; border: 2px solid var(--ink);
  border-radius: var(--r-md); background: var(--white); box-shadow: var(--shadow-hard);
  transition: transform .22s cubic-bezier(.2,.7,.3,1);
}
.yp-feature:hover { transform: translateY(-6px) rotate(-1deg); }
.yp-feature:nth-child(even):hover { transform: translateY(-6px) rotate(1deg); }
.yp-feature__icon {
  width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 18px;
  border-radius: 14px; border: 2px solid var(--ink); background: var(--pencil); font-size: 1.5rem;
}
.yp-feature:nth-child(2) .yp-feature__icon { background: var(--sky); }
.yp-feature:nth-child(3) .yp-feature__icon { background: var(--magenta); color: #fff; }
.yp-feature:nth-child(4) .yp-feature__icon { background: var(--blue); color: #fff; }
.yp-feature p { margin: 0; font-size: .96rem; color: var(--ink-soft); }

/* ---------- programs ---------- */
.yp-programs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.yp-program {
  border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--paper);
  padding: 24px 22px; display: flex; flex-direction: column; gap: 8px; position: relative; overflow: hidden;
  transition: background .2s ease, transform .2s ease;
}
.yp-program:hover { transform: translateY(-5px); background: var(--paper-3); }
.yp-program__age { font-family: var(--font-hand); font-size: 1.6rem; color: var(--crayon); line-height: 1; }
.yp-program h3 { margin: 0; }
.yp-program p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.yp-program__bar { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); }
.yp-program__bar i { flex: 1; height: 8px; border-radius: 999px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 12px); opacity: .35; }

/* ---------- day timeline ---------- */
.yp-day { display: grid; grid-template-columns: 300px 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.yp-day__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.yp-day__btn {
  width: 100%; text-align: left; display: flex; align-items: baseline; gap: 14px;
  padding: 14px 18px; border-radius: 14px; border: 2px solid transparent; background: transparent;
  cursor: pointer; font-weight: 800; transition: background .18s ease, border-color .18s ease, transform .18s ease;
}
.yp-day__btn time { font-family: var(--font-display); font-size: .95rem; color: var(--crayon); flex-shrink: 0; width: 62px; }
.yp-day__btn:hover { background: var(--paper-3); }
.yp-day__btn[aria-selected="true"] { background: var(--paper); border-color: var(--ink); box-shadow: 4px 4px 0 var(--ink); transform: translateX(4px); }
.yp-day__panel {
  border: 2px solid var(--ink); border-radius: var(--r-lg); background: var(--white); padding: clamp(24px, 3vw, 40px);
  box-shadow: var(--shadow-hard); min-height: 320px;
}
.yp-day__panel[hidden] { display: none; }
.yp-day__panel img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--r-md); margin-bottom: 22px; border: 2px solid var(--ink); background: var(--paper-3); }
.yp-day__panel h3 { margin-bottom: .3em; }
.yp-day__panel p { color: var(--ink-soft); margin: 0; }
.yp-day__tag { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 999px; background: var(--pencil); border: 2px solid var(--ink); font-size: .76rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }

/* ---------- gallery ---------- */
.yp-gallery { columns: 4; column-gap: 16px; }
.yp-gallery figure {
  break-inside: avoid; margin: 0 0 16px; background: #fff; padding: 10px 10px 34px;
  border: 2px solid var(--ink); border-radius: 4px; cursor: zoom-in; position: relative;
  transition: transform .22s cubic-bezier(.2,.7,.3,1), box-shadow .22s ease;
}
.yp-gallery figure:nth-child(3n) { transform: rotate(1.2deg); }
.yp-gallery figure:nth-child(4n) { transform: rotate(-1.4deg); }
.yp-gallery figure:hover { transform: rotate(0) scale(1.03); box-shadow: var(--shadow); z-index: 2; }
.yp-gallery img { width: 100%; background: var(--paper-3); }
.yp-gallery figcaption { position: absolute; left: 12px; bottom: 8px; font-family: var(--font-hand); font-size: 1.15rem; color: var(--ink-soft); }

.yp-lightbox {
  position: fixed; inset: 0; z-index: 200; display: none; place-items: center;
  background: rgba(37, 37, 45, .92); padding: 24px;
}
.yp-lightbox.is-open { display: grid; }
.yp-lightbox img { max-width: min(92vw, 1000px); max-height: 84vh; border-radius: var(--r-sm); border: 6px solid #fff; }
.yp-lightbox__cap { color: #fff; font-family: var(--font-hand); font-size: 1.3rem; text-align: center; margin-top: 14px; }
.yp-lightbox button {
  position: absolute; top: 50%; transform: translateY(-50%); width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid #fff; background: transparent; color: #fff; font-size: 1.4rem; cursor: pointer;
}
.yp-lightbox .yp-lb-prev { left: 18px; } .yp-lightbox .yp-lb-next { right: 18px; }
.yp-lightbox .yp-lb-close { top: 20px; right: 18px; transform: none; }

/* ---------- testimonials ---------- */
.yp-rail { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 26px; cursor: grab; scrollbar-width: none; }
.yp-rail::-webkit-scrollbar { display: none; }
.yp-rail.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.yp-quote {
  flex: 0 0 min(420px, 82vw); scroll-snap-align: start; position: relative;
  padding: 32px 28px 26px; border: 2px solid var(--ink); border-radius: var(--r-md);
  background: var(--paper);
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--rule) 31px 32px);
  background-position: 0 44px; box-shadow: var(--shadow-hard);
}
.yp-quote::before {
  content: ""; position: absolute; top: -11px; left: 26px; width: 84px; height: 24px;
  background: rgba(70, 177, 201, .45); border: 1px dashed rgba(37,37,45,.2); transform: rotate(-2deg);
}
.yp-quote p { font-size: 1.02rem; line-height: 32px; margin: 0 0 18px; }
.yp-quote footer { display: flex; align-items: center; gap: 12px; }
.yp-quote__avatar { width: 42px; height: 42px; border-radius: 50%; border: 2px solid var(--ink); background: var(--pencil); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; }
.yp-quote cite { font-style: normal; font-weight: 900; display: block; font-size: .95rem; }
.yp-quote small { color: var(--ink-soft); font-size: .82rem; }
.yp-rail-nav { display: flex; gap: 10px; margin-top: 6px; }
.yp-rail-nav button { width: 46px; height: 46px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; box-shadow: 3px 3px 0 var(--ink); }
.yp-rail-nav button:active { transform: translate(2px,2px); box-shadow: none; }

/* ---------- admissions steps ---------- */
.yp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.yp-step { position: relative; padding: 30px 24px; border: 2px dashed var(--ink); border-radius: var(--r-md); }
.yp-step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -20px; left: 24px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--ink); color: var(--paper); display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800;
}
.yp-step h3 { margin-top: 10px; }
.yp-step p { margin: 0; color: var(--ink-soft); font-size: .95rem; }

/* ---------- contact / form ---------- */
.yp-contact { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(26px, 4vw, 52px); align-items: start; }
.yp-form { display: grid; gap: 16px; }
.yp-field { display: grid; gap: 6px; }
.yp-field label { font-size: .82rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); }
.yp-field input, .yp-field select, .yp-field textarea {
  font: inherit; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 12px;
  background: var(--paper); color: var(--ink); width: 100%;
}
.yp-field input:focus, .yp-field select:focus, .yp-field textarea:focus { outline: none; box-shadow: 4px 4px 0 var(--pencil); }
.yp-field.has-error input, .yp-field.has-error select { border-color: var(--crayon); }
.yp-field .yp-err { color: var(--crayon); font-size: .8rem; font-weight: 800; display: none; }
.yp-field.has-error .yp-err { display: block; }
.yp-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.yp-form__msg { display: none; padding: 14px 18px; border-radius: 12px; border: 2px solid var(--sky); background: rgba(70,177,201,.16); font-weight: 800; }
.yp-form__msg.is-on { display: block; }
.yp-info { border: 2px solid var(--ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-hard); background: var(--white); }
.yp-info iframe { width: 100%; height: 240px; border: 0; display: block; border-bottom: 2px solid var(--ink); filter: saturate(.85); }
.yp-info__body { padding: 26px 24px; display: grid; gap: 16px; }
.yp-info__row { display: flex; gap: 12px; align-items: flex-start; font-size: .95rem; }
.yp-info__row b { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.yp-info__row a { text-decoration: none; font-weight: 800; }
.yp-info__row a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.yp-footer { background: var(--ink); color: var(--paper); padding: clamp(50px, 7vw, 84px) 0 30px; margin-top: clamp(60px, 8vw, 110px); }
.yp-footer a { color: var(--paper); }
.yp-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 36px; }
.yp-footer h4 { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); font-family: var(--font-body); font-weight: 900; }
.yp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.yp-footer ul a { text-decoration: none; opacity: .85; }
.yp-footer ul a:hover { opacity: 1; text-decoration: underline; }
.yp-social { display: flex; gap: 10px; margin-top: 18px; }
.yp-social a { width: 40px; height: 40px; border: 2px solid rgba(255,255,255,.35); border-radius: 12px; display: grid; place-items: center; text-decoration: none; font-size: .8rem; font-weight: 900; transition: background .18s ease, color .18s ease; }
.yp-social a:hover { background: var(--pencil); color: var(--ink); border-color: var(--pencil); }
.yp-footer__base { margin-top: 44px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.16); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: .84rem; opacity: .75; }

/* floating whatsapp */
.yp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70;
  display: inline-flex; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 999px;
  background: #25d366; color: #06331a; border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  text-decoration: none; font-weight: 900; font-size: .9rem;
  transform: translateY(120%); transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.yp-float.is-on { transform: none; }

/* ---------- inner pages ---------- */
.yp-page-head { padding: clamp(40px, 6vw, 78px) 0 clamp(24px, 4vw, 44px); }
.yp-prose { max-width: 72ch; }
.yp-prose h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-top: 1.6em; }
.yp-prose img { border-radius: var(--r-md); border: 2px solid var(--ink); margin: 1.4em 0; }
.yp-prose blockquote { margin: 1.6em 0; padding: 18px 24px; border-left: 5px solid var(--pencil); background: var(--paper-2); border-radius: 0 var(--r-md) var(--r-md) 0; }
.yp-prose ul, .yp-prose ol { padding-left: 1.2em; }
.yp-prose li { margin-bottom: .4em; }
.yp-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.yp-card { border: 2px solid var(--ink); border-radius: var(--r-md); overflow: hidden; background: var(--white); box-shadow: var(--shadow-hard); }
.yp-card img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; border-bottom: 2px solid var(--ink); }
.yp-card__body { padding: 20px 22px; }
.yp-card h3 { margin-bottom: .3em; }
.yp-card p { font-size: .93rem; color: var(--ink-soft); margin: 0; }
.yp-pagination { display: flex; gap: 10px; margin-top: 40px; }
.yp-pagination .page-numbers { padding: 10px 16px; border: 2px solid var(--ink); border-radius: 999px; text-decoration: none; font-weight: 800; }
.yp-pagination .current { background: var(--pencil); }

/* ---------- responsive ---------- */
@media (max-width: 1050px) {
  .yp-features, .yp-programs, .yp-stats { grid-template-columns: repeat(2, 1fr); }
  .yp-gallery { columns: 3; }
  .yp-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .yp-hero__grid { grid-template-columns: 1fr; }
  .yp-stack { width: 100%; max-width: 420px; margin-inline: auto; aspect-ratio: 4 / 3.9; }
  .yp-head--split { grid-template-columns: 1fr; }
  .yp-day { grid-template-columns: 1fr; }
  .yp-day__list { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 8px; }
  .yp-day__btn { flex-direction: column; gap: 2px; min-width: 150px; }
  .yp-contact { grid-template-columns: 1fr; }
  .yp-steps { grid-template-columns: 1fr; gap: 34px; }
  .yp-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .yp-gallery { columns: 2; }
  .yp-cards { grid-template-columns: 1fr; }
  .yp-stats { gap: 12px; }
  .yp-form__row { grid-template-columns: 1fr; }
  .yp-footer__grid { grid-template-columns: 1fr; }
  .yp-float { right: 12px; bottom: 12px; padding: 12px 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
  .yp-reveal { opacity: 1; transform: none; }
  .yp-scribble path, .yp-mark path { stroke-dashoffset: 0; }
}

/* WordPress core alignments */
.alignwide { width: min(100%, 1200px); }
.alignfull { width: 100vw; margin-left: calc(50% - 50vw); }
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { margin-inline: auto; }
.wp-caption-text { font-family: var(--font-hand); font-size: 1.15rem; color: var(--ink-soft); }


/* =========================================================================
   Added in v1.1 — carousel, auto-scrolling quotes, event gallery, Instagram
   ====================================================================== */

.yp-section--white { background: var(--white); }
.yp-section--navy { background: var(--navy); color: var(--paper-2); }
.yp-section--navy .yp-eyebrow { color: var(--pencil); }
.yp-section--navy .yp-lead { color: rgba(255, 246, 230, .8); }
.yp-section--navy .yp-scribble path { stroke: var(--pencil); }
.yp-section--navy .yp-note { color: var(--sky); }

/* ---- hero carousel ---- */
.yp-carousel { position: relative; width: 100%; max-width: 520px; margin-inline: auto; }
.yp-carousel__frame {
  position: relative; aspect-ratio: 4 / 3.4; background: var(--white);
  border: 2px solid var(--ink); border-radius: 6px; padding: 12px 12px 52px;
  box-shadow: 10px 10px 0 var(--ink); transform: rotate(-1.4deg);
}
.yp-carousel__frame::after {
  content: ""; position: absolute; top: -14px; left: 50%; transform: translateX(-50%) rotate(-2deg);
  width: 120px; height: 28px; background: rgba(247, 148, 45, .65); border: 1px dashed rgba(13, 12, 36, .25);
}
.yp-slide {
  position: absolute; inset: 12px 12px 52px; opacity: 0; visibility: hidden;
  transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.3,1);
  transform: scale(1.03);
}
.yp-slide.is-active { opacity: 1; visibility: visible; transform: none; }
.yp-slide img { width: 100%; height: 100%; object-fit: cover; border-radius: 3px; background: var(--paper-3); }
.yp-carousel__cap {
  position: absolute; left: 18px; right: 90px; bottom: 14px;
  font-family: var(--font-hand); font-size: 1.35rem; color: var(--ink-soft);
}
.yp-carousel__dots { position: absolute; right: 16px; bottom: 18px; display: flex; gap: 7px; }
.yp-carousel__dots button {
  width: 11px; height: 11px; padding: 0; border-radius: 50%; border: 2px solid var(--ink);
  background: transparent; transition: background .2s ease, transform .2s ease;
}
.yp-carousel__dots button[aria-current="true"] { background: var(--crayon); transform: scale(1.25); }
.yp-carousel__arrow {
  position: absolute; top: 44%; width: 44px; height: 44px; border-radius: 50%;
  border: 2px solid var(--ink); background: var(--pencil); box-shadow: 3px 3px 0 var(--ink);
  display: grid; place-items: center; font-size: 1.2rem; z-index: 3;
}
.yp-carousel__arrow:active { transform: translate(2px, 2px); box-shadow: none; }
.yp-carousel__arrow--prev { left: -18px; }
.yp-carousel__arrow--next { right: -18px; }
.yp-carousel__bar { position: absolute; left: 12px; right: 12px; bottom: 0; height: 4px; background: rgba(13,12,36,.12); border-radius: 999px; overflow: hidden; }
.yp-carousel__bar i { display: block; height: 100%; width: 0; background: var(--crayon); }

/* ---- auto-scrolling quote rails ---- */
.yp-rail--auto { overflow: hidden; scroll-snap-type: none; cursor: grab; padding-bottom: 10px; }
.yp-rail--auto .yp-quote { flex: 0 0 min(400px, 78vw); }
.yp-section--navy .yp-quote { background: var(--paper); color: var(--ink); }
.yp-section--navy .yp-quote::before { background: rgba(240, 0, 117, .45); }
.yp-rails { display: grid; gap: 18px; }

/* ---- event gallery ---- */
.yp-events { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.yp-event {
  position: relative; text-align: left; padding: 0; overflow: hidden;
  border: 2px solid var(--ink); border-radius: var(--r-md); background: var(--white);
  box-shadow: var(--shadow-hard); transition: transform .2s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column;
}
.yp-event:hover { transform: translateY(-6px); }
.yp-event img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 2px solid var(--ink); background: var(--paper-3); }
.yp-event__body { padding: 16px 18px 18px; display: grid; gap: 4px; }
.yp-event__body h3 { margin: 0; font-size: 1.05rem; }
.yp-event__meta { font-size: .8rem; font-weight: 800; color: var(--ink-soft); display: flex; gap: 8px; align-items: center; }
.yp-event__count { background: var(--pencil); border: 2px solid var(--ink); border-radius: 999px; padding: 2px 9px; font-size: .72rem; color: var(--ink); }
.yp-event:nth-child(4n+2) .yp-event__count { background: var(--sky); }
.yp-event:nth-child(4n+3) .yp-event__count { background: var(--magenta); color: #fff; }
.yp-event:nth-child(4n+4) .yp-event__count { background: var(--crayon); color: #fff; }

.yp-eventview[hidden] { display: none; }
.yp-eventview__bar { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 26px; }
.yp-eventview__bar h3 { margin: 0; font-size: clamp(1.4rem, 3vw, 2rem); }
.yp-back { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--ink); background: var(--white); font-weight: 900; font-size: .85rem; box-shadow: 3px 3px 0 var(--ink); }
.yp-back:active { transform: translate(2px,2px); box-shadow: none; }

/* ---- instagram strip ---- */
.yp-insta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.yp-insta__item {
  position: relative; display: block; border: 2px solid var(--ink); border-radius: var(--r-md);
  overflow: hidden; background: var(--white); box-shadow: var(--shadow-hard); text-decoration: none;
  transition: transform .2s ease;
}
.yp-insta__item:hover { transform: translateY(-5px) rotate(-1deg); }
.yp-insta__item img { width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--paper-3); }
.yp-insta__tag { position: absolute; top: 10px; right: 10px; background: var(--magenta); color: #fff; border: 2px solid var(--ink); border-radius: 999px; font-size: .68rem; font-weight: 900; padding: 3px 9px; }
.yp-insta__cap { padding: 12px 14px; font-size: .86rem; color: var(--ink-soft); }
.yp-insta-embed { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.yp-insta-embed iframe, .yp-insta-embed blockquote { margin: 0 !important; width: 100% !important; min-width: 0 !important; }

/* ---- team ---- */
.yp-team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.yp-person { border: 2px solid var(--ink); border-radius: var(--r-md); overflow: hidden; background: var(--white); box-shadow: var(--shadow-hard); }
.yp-person img { width: 100%; aspect-ratio: 1; object-fit: cover; border-bottom: 2px solid var(--ink); }
.yp-person__body { padding: 16px 18px 20px; }
.yp-person h3 { margin: 0 0 2px; font-size: 1.05rem; }
.yp-person small { font-family: var(--font-hand); font-size: 1.2rem; color: var(--crayon); }
.yp-person p { margin: 8px 0 0; font-size: .88rem; color: var(--ink-soft); }

/* ---- misc v1.1 ---- */
.yp-pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.yp-pill { padding: 8px 16px; border: 2px solid var(--ink); border-radius: 999px; background: var(--white); font-weight: 800; font-size: .85rem; }
.yp-pill:nth-child(3n+2) { background: var(--pencil); }
.yp-pill:nth-child(3n+3) { background: var(--sky); color: #fff; }
.yp-cta-band {
  border: 2px solid var(--ink); border-radius: var(--r-lg); background: var(--pencil);
  padding: clamp(28px, 4vw, 46px); box-shadow: var(--shadow-hard);
  display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between;
}
.yp-cta-band h2 { margin: 0; max-width: 22ch; }

@media (max-width: 1050px) {
  .yp-events, .yp-insta, .yp-team { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .yp-events, .yp-insta, .yp-team { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .yp-event__body { padding: 12px 12px 14px; }
  .yp-event__body h3 { font-size: .92rem; }
  .yp-carousel__arrow--prev { left: -10px; }
  .yp-carousel__arrow--next { right: -10px; }
}

/* v1.1 fixes */
.yp-event__title { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.05rem; line-height: 1.1; letter-spacing: -.02em; }
.yp-event__meta { flex-wrap: wrap; min-width: 0; overflow-wrap: anywhere; }
.yp-event__count { white-space: nowrap; }
@media (max-width: 700px) {
  .yp-event__meta { flex-direction: column; align-items: flex-start; gap: 6px; font-size: .74rem; }
  .yp-event__title { font-size: .95rem; }
}


/* =========================================================================
   v2 — block theme additions and fixes
   ====================================================================== */

/* auto rails: html { scroll-behavior: smooth } would swallow the tiny steps */
.yp-rail--auto { scroll-behavior: auto; }

/* carousel slides are core image blocks with a class, so reset figure margins */
.yp-carousel__frame figure, .yp-slide { margin: 0; }
.yp-slide figcaption { display: none; }

/* header CTA hides once you scroll; it reappears docked above WhatsApp */
.yp-header__cta { transition: opacity .2s ease, transform .2s ease; }
body.is-scrolled .yp-header__cta { opacity: 0; transform: translateY(-6px); pointer-events: none; }

.yp-dock {
  position: fixed; right: 18px; bottom: 18px; z-index: 95;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  transform: translateY(140%); transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.yp-dock.is-on { transform: none; }
.yp-dock a {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 20px; border-radius: 999px; border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink); text-decoration: none; font-weight: 900; font-size: .9rem;
  background: var(--pencil); color: var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.yp-dock a:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.yp-dock a:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.yp-dock .yp-dock__wa { background: var(--green); color: #06331a; }
@media (max-width: 600px) {
  .yp-dock { right: 12px; bottom: 12px; gap: 8px; }
  .yp-dock a { padding: 11px 16px; font-size: .82rem; }
}

/* --- review cards: stars, source, owner reply --- */
.yp-quote__stars { display: flex; gap: 3px; margin-bottom: 14px; font-size: 1.05rem; line-height: 1; color: var(--pencil); }
.yp-quote__stars span { color: rgba(13, 12, 36, .18); }
.yp-quote__source {
  display: inline-flex; align-items: center; gap: 7px; margin-top: 2px;
  font-size: .74rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft);
}
.yp-quote__source::before {
  content: "G"; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: .66rem; letter-spacing: 0;
}
.yp-quote__reply {
  margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  background: var(--paper-3); border: 2px dashed rgba(13, 12, 36, .25);
}
.yp-quote__reply b { display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 4px; }
.yp-quote__reply p { margin: 0; font-size: .88rem; line-height: 1.5; }
.yp-quote__date { font-size: .78rem; color: var(--ink-soft); margin-left: auto; align-self: flex-start; }
.yp-quote footer { align-items: flex-start; }
.yp-quote--rich { background-image: none; }
.yp-quote--rich p { line-height: 1.6; }
.yp-quote__link { display: inline-block; margin-top: 10px; font-size: .78rem; font-weight: 800; color: var(--blue); }

.yp-reviews-summary {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px;
  padding: 20px 24px; border: 2px solid var(--ink); border-radius: var(--r-md);
  background: var(--white); box-shadow: var(--shadow-hard); margin-bottom: 28px;
}
.yp-reviews-summary b { font-family: var(--font-display); font-size: 2rem; line-height: 1; }
.yp-reviews-summary .yp-quote__stars { margin: 0; }

/* --- block editor odds and ends --- */
.wp-block-group.yp-wrap { margin-inline: auto; }
.yp-section > .wp-block-group { position: relative; }
.editor-styles-wrapper .yp-day__panel[hidden] { display: block; }

/* =========================================================================
   Block editor compatibility layer
   ====================================================================== */

.wp-site-blocks > * { margin-block: 0; }
.yp-main { display: block; }

/* core adds flow margins between every child; cards manage their own rhythm */
.yp-feature > *, .yp-program > *, .yp-step > *, .yp-person__body > *,
.yp-day__panel > *, .yp-head__main > *, .yp-info__body > *, .yp-hero__copy > * { margin-block: 0; }
.yp-feature > * + *, .yp-program > * + *, .yp-step > * + * { margin-block-start: 10px; }
.yp-day__panel > * + * { margin-block-start: 14px; }
.yp-hero__copy > * + * { margin-block-start: 18px; }
.yp-person__body > * + * { margin-block-start: 4px; }
.yp-info__body > * + * { margin-block-start: 14px; }

/* buttons: the class sits on the core wrapper, so dress the link inside it */
.wp-block-button.yp-btn > .wp-block-button__link {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: 999px;
  background: var(--btn-bg, var(--pencil)); color: var(--ink);
  font-weight: 900; font-size: .96rem; text-decoration: none;
  border: 2px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  transition: transform .16s ease, box-shadow .16s ease;
}
.wp-block-button.yp-btn > .wp-block-button__link:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.wp-block-button.yp-btn > .wp-block-button__link:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
.wp-block-button.yp-btn--sm > .wp-block-button__link { padding: 11px 20px; font-size: .85rem; box-shadow: 3px 3px 0 var(--ink); }
.wp-block-button.yp-btn--ghost > .wp-block-button__link { background: transparent; }
.wp-block-button.yp-btn--chalk > .wp-block-button__link { background: var(--sky); color: #fff; }
.wp-block-button.yp-btn--magenta > .wp-block-button__link { background: var(--magenta); color: #fff; }
.wp-block-button.yp-btn--wa > .wp-block-button__link { background: var(--green); color: #06331a; }
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: 14px; }
.wp-block-buttons.yp-insta__cta, .wp-block-buttons.yp-info__cta { margin-top: 6px; }

/* header */
.yp-header__in { flex-wrap: nowrap; }
.yp-brand { align-items: center; }
.yp-brand__text { display: block; }
.yp-brand__name, .yp-brand__name a { font-family: var(--font-display); font-weight: 800; font-size: 1.12rem; line-height: 1.1; letter-spacing: -.02em; text-decoration: none; margin: 0; }
.yp-brand__sub { font-family: var(--font-hand); font-size: 1rem; color: var(--crayon); line-height: 1; margin: 0; }
.wp-block-site-logo img, .yp-logo { width: 52px; height: 52px; object-fit: contain; }
.yp-nav .wp-block-navigation__container, .yp-nav ul { list-style: none; margin: 0; padding: 0; }
.yp-nav .wp-block-navigation-item__content { padding: 9px 14px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: .95rem; }
.yp-nav .wp-block-navigation-item__content:hover { background: var(--pencil); }

/* hero */
.yp-hero__copy { max-width: none; }
.yp-hero__grid { align-items: center; }
.yp-carousel__frame > figure { margin: 0; }

/* images inside cards */
.yp-day__panel .yp-day__img img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--r-md); border: 2px solid var(--ink); background: var(--paper-3); }
.yp-day__panel .yp-day__img { margin: 0; }
.yp-person__img { margin: 0; }
.yp-person__name { margin: 0; font-size: 1.05rem; }
.yp-person__body small { font-family: var(--font-hand); font-size: 1.2rem; color: var(--crayon); display: block; }

/* instagram cards are core images now */
.yp-insta__item { margin: 0; }
.yp-insta__item figcaption { padding: 12px 14px; font-size: .86rem; color: var(--ink-soft); margin: 0; text-align: left; }

/* reviews */
.yp-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.yp-reviews-grid .yp-quote { flex: none; }
@media (max-width: 1050px) { .yp-reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .yp-reviews-grid { grid-template-columns: 1fr; } }

/* the enquiry form block sits in the two column contact grid */
.yp-form-wrap { min-width: 0; }
.yp-contact > * { min-width: 0; }

/* footer */
.yp-footer__col p { margin: 0 0 12px; }
.yp-footer__h { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--pencil); font-family: var(--font-body); font-weight: 900; margin: 0 0 14px; }
.yp-footer__col .yp-note { color: var(--pencil); }

/* page heads */
.yp-page-head .yp-h1, .yp-page-head .wp-block-post-title { font-size: clamp(2.4rem, 6vw, 4rem); margin-bottom: .2em; }

.yp-brand__name, .yp-brand__sub { display: block; }
.yp-nav a, .yp-nav .wp-block-navigation-item__content { white-space: nowrap; }
.yp-header__in { gap: 16px; }
.yp-nav .wp-block-navigation__container, .yp-nav ul { gap: 2px; }
@media (max-width: 1150px) { .yp-nav a, .yp-nav .wp-block-navigation-item__content { padding: 9px 10px; font-size: .9rem; } }

@media (max-width: 900px) {
  .yp-header__cta { display: none; }
  .yp-brand__name, .yp-brand__name a { font-size: .95rem; }
  .yp-brand__sub { font-size: .88rem; }
  .wp-block-site-logo img, .yp-logo { width: 42px; height: 42px; }
  .yp-nav .wp-block-navigation-item__content { font-size: 1.2rem; font-family: var(--font-display); padding: 12px 14px; }
}
