/* Kinder Grove Preschool — V2 "Colourful Little World" styles for the block theme.
   Colours, fonts and sizes live in theme.json; this file adds the design's
   components. Breakpoints: 1000px (tablet), 760px (phone). */

:root {
  --kgps-radius: 28px;
  --kgps-shadow-card: 0 6px 0 #213c6108;
  --kgps-blue-text: #1f65a0;
  --kgps-green-text: #1b6f4f;
}

/* ---------- Base ---------- */
body { overflow-x: clip; -webkit-text-size-adjust: 100%; }
.wp-site-blocks > *, .kgps-main, .kgps-page-content > * { margin-block-start: 0 !important; }
.kgps-page-content > .alignfull { margin-block: 0; }
:focus-visible { outline: 3px solid var(--wp--preset--color--pink); outline-offset: 4px; }
[hidden] { display: none !important; }
img { max-width: 100%; height: auto; }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
mark.has-inline-color { background: transparent !important; }
p a:not(.wp-element-button), li a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.kgps-topbar { font-size: 12px; letter-spacing: 1px; }
.kgps-topbar__row { padding-block: 9px; gap: 16px; }
.kgps-topbar p { margin: 0; }
.kgps-topbar a, .kgps-footer__contact a { color: inherit; text-decoration: none !important; }
.kgps-topbar a:hover { text-decoration: underline; color: inherit; }
.kgps-header { position: relative; z-index: 20; }
.kgps-header__row { min-height: 113px; gap: 28px; }
.kgps-logo img { width: 155px; height: auto; display: block; }
.kgps-header__nav { gap: 24px; }
.kgps-nav { font-size: 14px; font-weight: 700; gap: 24px; }
.kgps-nav .wp-block-navigation-item__content { padding: 8px 0; border-bottom: 3px solid transparent; }
.kgps-nav .wp-block-navigation-item__content:hover { color: var(--wp--preset--color--pink); }
.kgps-nav .current-menu-item > .wp-block-navigation-item__content,
.kgps-nav [aria-current='page'] { color: var(--wp--preset--color--pink); border-bottom-color: currentColor; }
.kgps-nav .kgps-mobile-only { display: none; }
.kgps-nav .wp-block-navigation__responsive-container-open {
  border: 2px solid var(--wp--preset--color--blue); border-radius: 100px; padding: 8px 16px;
  min-height: 44px; font-weight: 700; font-size: 15px; color: var(--wp--preset--color--ink); background: #fff;
}
.kgps-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--wp--preset--color--sky-hero); color: var(--wp--preset--color--ink); padding: 24px 20px; }
.kgps-nav .is-menu-open .wp-block-navigation__responsive-container-content,
.kgps-nav .is-menu-open .wp-block-navigation__container { gap: 0 !important; align-items: stretch !important; width: 100%; }
.kgps-nav .is-menu-open .wp-block-navigation-item { width: 100%; border-top: 2px solid #cfe7f6; justify-content: flex-start !important; }
.kgps-nav .is-menu-open .wp-block-navigation-item__content {
  display: block; width: 100%; text-align: left; padding: 14px 0 !important; border: 0 !important;
  font-family: var(--wp--preset--font-family--display); font-size: 22px !important; font-weight: 800; color: var(--wp--preset--color--ink);
}
.kgps-nav .is-menu-open .current-menu-item > .wp-block-navigation-item__content { color: var(--wp--preset--color--pink); }
.kgps-nav .wp-block-navigation__responsive-container-close {
  border: 2px solid var(--wp--preset--color--blue); border-radius: 100px; padding: 8px 16px; font-weight: 700; background: #fff; color: var(--wp--preset--color--ink);
}
.kgps-nav .wp-block-navigation__responsive-container-open { line-height: 1; }
.kgps-nav .is-menu-open .kgps-mobile-only { display: block; }

/* ---------- Buttons ---------- */
.wp-element-button, .wp-block-button__link { transition: background 0.15s, transform 0.15s; text-align: center; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-buttons { gap: 13px; }
.is-style-kgps-outline .wp-block-button__link {
  background: #fff; color: var(--kgps-blue-text); border-color: var(--wp--preset--color--blue); box-shadow: 0 4px 0 #2370b526;
}
.is-style-kgps-outline .wp-block-button__link:hover { background: #e0f2ff; color: var(--kgps-blue-text); }
.is-style-kgps-white .wp-block-button__link { background: #fff; color: var(--wp--preset--color--blue-deep); border-color: #fff; box-shadow: 0 4px 0 #0b3a6380; }
.is-style-kgps-white .wp-block-button__link:hover { background: #fff8d8; color: var(--wp--preset--color--blue-deep); }
.is-style-kgps-green .wp-block-button__link { background: var(--wp--preset--color--green); border-color: var(--wp--preset--color--green); box-shadow: 0 4px 0 #0e4c3780; }
.is-style-kgps-green .wp-block-button__link:hover { background: #106548; }
.is-style-kgps-link .wp-block-button__link {
  background: none; border: 0; border-bottom: 2px solid currentColor; border-radius: 0; box-shadow: none;
  padding: 0 0 4px; color: var(--wp--preset--color--ink); min-height: 0;
}
.is-style-kgps-link .wp-block-button__link:hover { color: var(--wp--preset--color--pink); background: none; transform: none; }
.is-style-kgps-link .wp-block-button__link::after { content: ' ↗'; padding-left: 6px; }
.wp-block-button__link { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; }
.kgps-link a {
  display: inline-block; font-size: 14px; font-weight: 700; text-decoration: none;
  border-bottom: 2px solid currentColor; padding-bottom: 4px; color: var(--wp--preset--color--ink);
}
.kgps-link a:hover { color: var(--wp--preset--color--pink); }
.kgps-link a::after { content: ' ↗'; padding-left: 8px; }

/* ---------- Text styles ---------- */
.is-style-kgps-eyebrow {
  font-size: 12px !important; letter-spacing: 2.3px; text-transform: uppercase; font-weight: 700;
  color: var(--kgps-green-text); margin-bottom: -4px !important;
}
.is-style-kgps-eyebrow::before { content: '✦'; color: #d99612; font-size: 17px; vertical-align: middle; margin-right: 10px; }
.kgps-eyebrow-blue { color: #1d65a0 !important; font-size: 11px !important; }
.kgps-eyebrow-blue::before { display: none; }
.is-style-kgps-note, .wp-element-caption { font-size: 12px; color: var(--wp--preset--color--muted); }
.is-style-kgps-note:not(.has-text-align-center):not(.has-text-align-left) { text-align: right; }
.is-style-kgps-tag {
  display: inline-block; background: #fff; border: 2px dashed #dd9b2c; padding: 7px 18px; border-radius: 25px;
  font-size: 13px; color: #795317; transform: rotate(-2deg); font-weight: 700; width: fit-content;
}
.is-style-kgps-quote { font-family: var(--wp--preset--font-family--display); font-weight: 900; font-size: clamp(28px, 2.6vw, 34px); line-height: 1.25; letter-spacing: -0.5px; }
.is-style-kgps-meta {
  font-size: 13px; color: var(--wp--preset--color--muted); background: #ffffffc8;
  border-radius: 18px; padding: 12px 16px; width: fit-content;
}
.is-style-kgps-meta strong { color: var(--wp--preset--color--ink); }
.kgps-lead { font-size: 18px; color: var(--wp--preset--color--muted); }
.kgps-label { font-size: 12px; letter-spacing: 1.3px; text-transform: uppercase; color: var(--wp--preset--color--muted); font-weight: 700; }
.kgps-number { font-size: 12px; letter-spacing: 2px; color: #b04418; font-weight: 700; }
.kgps-pill {
  display: inline-block; background: #fff; border: 1px solid #abd2af; color: #20693d; border-radius: 30px;
  padding: 6px 13px; font-size: 12px; font-weight: 700; margin: 0 4px 8px 0;
}
.kgps-crumb { font-size: 13px; color: var(--wp--preset--color--muted); }
.kgps-crumb ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.kgps-crumb li + li::before { content: '/'; margin-right: 6px; }
.kgps-crumb a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Decorative motifs ---------- */
.kgps-motif { display: block; pointer-events: none; user-select: none; height: auto; z-index: 0; }
.kgps-motif:not(.kgps-motif--inline) { position: absolute !important; margin: 0 !important; }
.kgps-motif:not(.kgps-motif--inline) + * { margin-block-start: 0 !important; }
.kgps-motif--small { width: 44px; }
.kgps-motif--medium { width: 96px; }
.kgps-motif--large { width: 130px; }
.kgps-motif--top-right { right: 8px; top: 25px; opacity: 0.85; }
.kgps-motif--top-left { left: 8px; top: 25px; opacity: 0.85; }
.kgps-motif--bottom-right { right: 8px; bottom: 12px; opacity: 0.85; }
.kgps-motif--bottom-left { left: 8px; bottom: 12px; opacity: 0.85; transform: rotate(-15deg); }
.kgps-motif--inline { position: relative; }
.kgps-section, .kgps-page-hero, .kgps-hero, .kgps-footer, .is-style-kgps-cta, .kgps-collage { position: relative; }
.kgps-section > *:not(.kgps-motif), .kgps-page-hero > *:not(.kgps-motif), .kgps-hero > *:not(.kgps-motif) { position: relative; z-index: 1; }

/* ---------- Cloud edge ---------- */
.is-style-kgps-cloud, .is-style-kgps-cloud-sun { position: relative; }
.is-style-kgps-cloud::after, .is-style-kgps-cloud-sun::after {
  content: ''; position: absolute; bottom: -1px; left: 0; width: 100%; height: 39px; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse at 50% 100%, var(--wp--preset--color--cream) 69%, transparent 72%) 0 0 / 140px 75px repeat-x;
}
.is-style-kgps-cloud-sun::after { background-image: radial-gradient(ellipse at 50% 100%, var(--wp--preset--color--sun) 69%, transparent 72%); }

/* ---------- Sections ---------- */
.kgps-section { padding-block: 78px; overflow: hidden; }
.kgps-section-heading { gap: 35px !important; margin-bottom: 35px; }
.kgps-section-heading h2 { max-width: 730px; margin: 0; }
.kgps-section-heading > .wp-block-group > * { margin-block: 0; }
.kgps-section-heading > .wp-block-group > * + * { margin-block-start: 18px; }
.kgps-section-heading__desc { max-width: 370px; color: var(--wp--preset--color--muted); margin: 0 !important; }
.kgps-grid { gap: 22px; }

/* Page top */
.kgps-page-hero { padding-block: 50px 85px; overflow: hidden; }
.kgps-page-hero h1, .kgps-page-hero .kgps-lead { max-width: min(960px, calc(100% - 170px)); }
.kgps-page-hero .kgps-lead { max-width: min(790px, calc(100% - 170px)); }
/* Narrow blocks stay left-aligned with the content (WordPress centres them by default). */
.kgps-page-hero > h1, .kgps-page-hero > .kgps-lead, .kgps-section > .kgps-reading, .kgps-section > .kgps-contact-form-inner {
  margin-left: max(0px, calc((100% - var(--wp--style--global--content-size)) / 2)) !important;
  margin-right: auto !important;
}
.kgps-page-hero > .kgps-hero-doodle { right: max(30px, calc((100% - 1180px) / 2 + 30px)); bottom: 50px; width: 140px; opacity: 0.85; transform: none; }

/* Home top */
.kgps-hero { padding-block: 55px 90px; overflow: hidden; }
.kgps-hero h1 { font-size: clamp(45px, 4.8vw, 69px); letter-spacing: -2px; }
.kgps-hero .kgps-lead { font-size: 17px; max-width: 530px; }
.kgps-hero__grid { gap: 37px !important; }
.kgps-hero > .kgps-hero-cloud { width: 180px; left: -60px; top: 15px; opacity: 0.7; transform: none; }
.kgps-hero > .kgps-hero-rocket { width: 130px; right: 10px; top: 5px; transform: rotate(9deg); opacity: 1; }
.kgps-hero > .kgps-hero-pencil { width: 90px; left: 45%; bottom: 15px; transform: rotate(-22deg); opacity: 1; }
.kgps-collage { padding: 40px 10px 92px; }
.kgps-collage > * { margin: 0 !important; }
.kgps-collage__main img {
  width: 100%; aspect-ratio: 3 / 2.1; object-fit: cover; display: block;
  border: 9px solid #fff; box-shadow: 0 12px 0 #aad9ed; border-radius: 100px 35px 100px 35px;
  transform: rotate(2deg); background: #b7e1ef;
}
.kgps-collage__small { position: absolute !important; left: 0; bottom: 0; width: 178px; z-index: 2; }
.kgps-collage__small img {
  width: 178px; height: 167px; object-fit: cover; display: block; border: 8px solid #fff; border-radius: 24px;
  transform: rotate(-9deg); box-shadow: 0 8px 20px #24447322; background: var(--wp--preset--color--yellow);
}
.kgps-collage__note {
  position: absolute; right: 3px; bottom: 12px; z-index: 2; background: var(--wp--preset--color--yellow);
  padding: 16px 22px; border-radius: 60% 45% 45% 40%; transform: rotate(5deg);
  font-family: var(--wp--preset--font-family--display); font-size: 18px; font-weight: 800; color: #4e431b; line-height: 1.3;
}
.kgps-collage .kgps-collage__crayon { position: absolute !important; right: -20px; top: 7px; width: 85px; transform: rotate(17deg); z-index: 3; }
.kgps-collage .kgps-collage__star { position: absolute !important; left: -28px; top: 23px; width: 64px; z-index: 3; }

/* Strip */
.kgps-strip__row { padding-block: 23px; gap: 14px; }
.kgps-strip__row p { margin: 0; }
.kgps-strip__title strong { color: #7d5213; }
.kgps-strip__item { font-size: 14px; font-weight: 700; }
.kgps-strip__item::before { content: '✓'; color: var(--wp--preset--color--green); margin-right: 7px; }

/* ---------- Cards & panels ---------- */
.is-style-kgps-card, .is-style-kgps-card-pink, .is-style-kgps-card-blue, .is-style-kgps-card-green {
  background: #fff; border: 2px solid #e6e6dc; border-radius: var(--kgps-radius); padding: 31px; box-shadow: var(--kgps-shadow-card);
}
.is-style-kgps-card-pink { background: #ffe3eb; border-color: #f9b3ca; }
.is-style-kgps-card-blue { background: #e0f2ff; border-color: #a9d7fa; }
.is-style-kgps-card-green { background: #e9f7d9; border-color: #bfdf9e; }
[class*='is-style-kgps-card'] p:not(.kgps-number):not(.kgps-label):not(.kgps-link), [class*='is-style-kgps-card'] li { font-size: 16px; color: var(--wp--preset--color--muted); }
[class*='is-style-kgps-card'] > * { margin-block: 0; }
[class*='is-style-kgps-card'] > * + * { margin-block-start: 16px; }
[class*='is-style-kgps-card'] h3 { margin-block-start: 18px; }
[class*='is-style-kgps-card'] > h3:first-child { margin-block-start: 0; }
.is-style-kgps-card-photo { margin: -19px -19px 25px !important; }
.is-style-kgps-card-photo img { width: 100%; aspect-ratio: 1.5; object-fit: cover; display: block; border-radius: 20px; border: 5px solid #fff; }
.kgps-symbol { width: 76px; height: 76px; display: flex; align-items: center; justify-content: center; background: #ffffffa0; border-radius: 24px; }
.kgps-symbol .kgps-motif { width: 60px; }
.is-style-kgps-panel { padding: 45px; background: var(--wp--preset--color--blue-deep); color: #fff; border-radius: 44px 24px 44px 24px; }
.is-style-kgps-panel h2, .is-style-kgps-panel h3, .is-style-kgps-panel p { color: inherit; }
.is-style-kgps-panel .is-style-kgps-eyebrow, .is-style-kgps-panel .is-style-kgps-eyebrow::before { color: #ffe27a; }
.is-style-kgps-panel > * { margin-block: 0; }
.is-style-kgps-panel > * + * { margin-block-start: 18px; }
.kgps-h2-small { font-size: 34px !important; }
.wp-block-column > .is-style-kgps-panel + [class*='is-style-kgps-card'] { margin-top: 24px; }

.wp-block-columns.kgps-split { gap: 35px 68px; }
.kgps-list-row { padding: 20px 0; border-bottom: 1px solid #d7e4ef; gap: 20px !important; }
.kgps-list-row > * { margin: 0; }
.kgps-num {
  background: var(--wp--preset--color--yellow); border-radius: 50%; min-width: 42px; width: 42px; height: 42px;
  display: grid; place-items: center; color: #6b470c; font-size: 14px; font-weight: 700; margin: 0 !important;
}
.kgps-list-row__title { font-family: var(--wp--preset--font-family--body) !important; font-size: 18px !important; letter-spacing: 0 !important; font-weight: 700 !important; margin: 0 0 5px !important; line-height: 1.4 !important; }
.kgps-list-row p { margin: 0; font-size: 16px; color: var(--wp--preset--color--muted); }

/* ---------- Photo frames ---------- */
.is-style-kgps-framed img {
  border: 5px solid #fff; border-radius: 26px; box-shadow: 0 7px 0 #2367a013; display: block; width: 100%; object-fit: cover;
}
.is-style-kgps-tilted img {
  border: 8px solid #fff; box-shadow: 0 8px 0 #efc654; border-radius: 50px 25px 50px 25px; transform: rotate(-2deg); display: block; width: 100%;
}
.is-style-kgps-tilted .wp-element-caption, .is-style-kgps-framed .wp-element-caption { text-align: right; margin-top: 14px; }

/* Photo band */
.kgps-band { padding-block: 60px; }
.kgps-photo-wall { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 24px; align-items: center; margin-top: 30px; }
.kgps-photo-wall > * { margin: 0 !important; }
.kgps-photo-wall > figure:nth-child(2) { transform: rotate(4deg); }
.kgps-photo-wall > figure:nth-child(3) { transform: rotate(-4deg); }
.kgps-photo-wall .wp-element-caption { font-size: 14px; font-weight: 700; text-align: center !important; color: #1f5f8a; }
.kgps-wall-main img { height: 340px; border-width: 8px; border-radius: 36px; box-shadow: 0 8px 0 #f0ba37; }
.kgps-motif-row { gap: 24px !important; margin-top: 34px !important; }
.kgps-motif-row .kgps-motif { width: 59px; }

/* ---------- Tour call-to-action ---------- */
.kgps-cta-section { padding-top: 90px; overflow: visible; }
.is-style-kgps-cta {
  padding: 65px 60px; background: var(--wp--preset--color--blue-deep); color: #fff;
  border-radius: 60px 28px 60px 28px; border: 8px solid #d3ecff; gap: 35px !important;
}
.is-style-kgps-cta h2 { color: #fff; max-width: 640px; font-size: clamp(32px, 3vw, 40px); margin: 8px 0 18px; }
.is-style-kgps-cta p { color: #eef5fb; margin: 0; }
.is-style-kgps-cta .kgps-label { color: #ffe27a; }
.is-style-kgps-cta .kgps-cta__rocket { position: absolute !important; width: 90px; right: 20px; top: -62px; transform: rotate(15deg); }

/* ---------- FAQ ---------- */
.kgps-faq > * { margin: 0 !important; }
.wp-block-details { border-bottom: 2px solid #d7e4ef; padding: 23px 0; }
.wp-block-details summary {
  cursor: pointer; font-size: 18px; font-weight: 700; list-style: none;
  display: flex; justify-content: space-between; gap: 20px;
}
.wp-block-details summary::-webkit-details-marker { display: none; }
.wp-block-details summary::after { content: '+'; color: var(--wp--preset--color--pink); font-size: 26px; line-height: 1; font-weight: 700; }
.wp-block-details[open] summary::after { content: '−'; }
.wp-block-details p { max-width: 780px; margin: 18px 0 0; color: var(--wp--preset--color--muted); font-size: 16px; }
.kgps-reading { max-width: 800px; }
.kgps-reading h2 { margin-top: 45px; }
.kgps-reading p { color: var(--wp--preset--color--muted); }
.kgps-notice { background: #fff4cc; border: 2px solid #f2d06b; padding: 14px 16px; border-radius: 14px; font-size: 14px; }
.kgps-notice p { margin: 0; color: var(--wp--preset--color--ink) !important; }

/* ---------- Activity filters ---------- */
.kgps-chip-row { display: flex; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.kgps-chip {
  background: #fff; color: var(--wp--preset--color--ink); border: 2px solid #aad4ed; border-radius: 25px;
  padding: 8px 18px; font-size: 14px; font-weight: 700; min-height: 44px; cursor: pointer; font-family: inherit;
}
.kgps-chip:hover { border-color: var(--wp--preset--color--blue); }
.kgps-chip[aria-pressed='true'] { background: var(--wp--preset--color--blue); color: #fff; border-color: var(--wp--preset--color--blue); }
[class*='is-style-kgps-activity-'] > * { margin-block: 0; }
[class*='is-style-kgps-activity-'] > * + * { margin-block-start: 12px; }

/* ---------- Contact map panel ---------- */
.kgps-map {
  min-height: 260px; background: #d7eacf; border: 4px solid #fff; border-radius: 28px; box-shadow: 0 8px 0 #bfdf9e;
  display: flex; align-items: center; justify-content: center; padding: 30px; text-align: center; position: relative;
}
.kgps-map::before {
  content: ''; position: absolute; inset: 0; border-radius: 24px;
  background: repeating-linear-gradient(35deg, transparent 0px, transparent 58px, #fff9 59px, #fff9 70px);
}
.kgps-map__card { position: relative; background: #fff; padding: 22px; border-radius: 18px; }
.kgps-map__card > * { margin-block: 0 10px; }
.kgps-map__card .kgps-motif { width: 48px; margin: 0 auto 8px; }
.kgps-map__card h3 { font-size: 24px; }

/* ---------- Tour & contact forms ---------- */
.kgps-form-layout { gap: 35px !important; }
.kgps-form-card { padding: 36px; border: 3px solid #b8dff6; box-shadow: 0 8px 0 #d7edf9; border-radius: 28px; background: #fff; }
.kgps-form-card h2 { font-size: 32px; margin: 0 0 12px; }
.kgps-form-card fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
.kgps-field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.kgps-field { margin-bottom: 20px; }
.kgps-field label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 7px; }
.kgps-field input, .kgps-field select, .kgps-field textarea {
  width: 100%; background: #fff; border: 2px solid #9fbccb; border-radius: 12px; font-family: inherit;
  padding: 11px 13px; color: var(--wp--preset--color--ink); min-height: 48px; font-size: 16px; box-sizing: border-box;
}
.kgps-field textarea { resize: vertical; min-height: 110px; }
.kgps-field [aria-invalid='true'] { border-color: var(--wp--preset--color--pink); }
.kgps-field-help { font-size: 13px; color: var(--wp--preset--color--muted); margin-top: 6px; }
.kgps-field-error { font-size: 14px; color: var(--wp--preset--color--pink); font-weight: 700; margin-top: 6px; }
.kgps-field-error:empty { display: none; }
.kgps-req { color: var(--wp--preset--color--pink); }
.kgps-small { font-size: 13px; color: var(--wp--preset--color--muted); }
.kgps-checkbox { display: flex; gap: 10px; align-items: start; font-size: 14px; margin: 10px 0 8px; }
.kgps-checkbox input { margin-top: 4px; width: 20px; height: 20px; flex-shrink: 0; accent-color: var(--wp--preset--color--green); }
.kgps-form-notice { background: #fff4cc; border: 2px solid #f2d06b; padding: 14px 16px; border-radius: 14px; font-size: 14px; margin-bottom: 25px; }
.kgps-form-notice p { margin: 0 0 12px; }
.kgps-form-notice p:last-child { margin: 0; }
.kgps-error-summary { border: 2px solid var(--wp--preset--color--pink); border-radius: 14px; padding: 18px 20px; margin-bottom: 24px; background: #fff5f7; }
.kgps-error-summary h3 { font-family: var(--wp--preset--font-family--body); font-size: 17px; letter-spacing: 0; font-weight: 700; margin: 0 0 8px; }
.kgps-error-summary ul { margin: 0; font-size: 15px; }
.kgps-error-summary a { color: var(--wp--preset--color--pink); }
.kgps-form-status { margin-top: 20px; }
.kgps-result { padding: 24px 28px; border-radius: 18px; }
.kgps-result.ok { background: #e9f7d9; border: 2px solid #bfdf9e; }
.kgps-result.fail { background: #fff5f7; border: 2px solid var(--wp--preset--color--pink); }
.kgps-result h3 { font-size: 24px; margin: 0 0 12px; }
.kgps-result p:last-child { margin-bottom: 0; }
.kgps-hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.kgps-submit {
  display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 13px 25px; cursor: pointer;
  border-radius: 100px; border: 2px solid var(--wp--preset--color--pink); background: var(--wp--preset--color--pink);
  color: #fff; font: 700 14px/1.35 var(--wp--preset--font-family--body); box-shadow: 0 5px 0 #a01640;
}
.kgps-submit[disabled] { opacity: 0.55; cursor: not-allowed; }
.kgps-contact-form-section .kgps-form-card { max-width: 760px; }

/* ---------- Quick links ---------- */
.kgps-go { text-align: center; }
.kgps-go__logo { margin-inline: auto !important; }
.kgps-go__logo img { width: 220px; }
.kgps-go__buttons { gap: 14px !important; }
.kgps-go__buttons .wp-block-button, .kgps-go__buttons .wp-block-button__link { width: 100%; }

/* ---------- Blog ---------- */
.wp-block-post-template > li { display: flex; }
.kgps-post-card { width: 100%; height: 100%; }
.kgps-post-card > * { margin-block: 0; }
.kgps-post-card > * + * { margin-block-start: 12px; }
.kgps-post-card .wp-block-post-featured-image { margin: -19px -19px 20px !important; }
.kgps-post-card .wp-block-post-featured-image img { border-radius: 20px; border: 5px solid #fff; }
.kgps-post-card .wp-block-post-title { font-size: 24px; }
.kgps-post-card .wp-block-post-title a { text-decoration: none; }
.kgps-post-card .wp-block-post-excerpt__more-link { font-weight: 700; font-size: 14px; }
.kgps-post-meta { gap: 16px !important; font-size: 14px; color: var(--wp--preset--color--muted); }
.kgps-post-terms a { text-decoration: none; }
.kgps-single__content { font-size: 18px; }
.kgps-single__content img { border-radius: 20px; }
.kgps-post-nav { margin-top: 40px !important; font-weight: 700; }
.wp-block-query-pagination { margin-top: 40px; font-weight: 700; }
.kgps-search { max-width: 560px; margin-bottom: 30px; }
.kgps-search .wp-block-search__input { border: 2px solid #9fbccb; border-radius: 12px; padding: 11px 13px; }

/* ---------- Footer ---------- */
.kgps-footer { padding-block: 55px 30px; }
.kgps-footer > .kgps-footer__decor { right: max(10px, calc((100% - 1180px) / 2 - 30px)); top: -25px; width: 68px; opacity: 1; }
.kgps-footer__grid { gap: 35px; }
.kgps-footer__brand { font-family: var(--wp--preset--font-family--display); font-weight: 900; font-size: 27px; line-height: 1.2; color: #1f64a0; }
.kgps-footer p:not(.kgps-footer__brand), .kgps-footer .wp-block-site-tagline { font-size: 14px; max-width: 290px; }
.kgps-footer__title { font-family: var(--wp--preset--font-family--body) !important; font-size: 14px !important; letter-spacing: 0 !important; font-weight: 700 !important; margin-bottom: 12px; line-height: 1.4 !important; }
.kgps-footer__nav { font-size: 14px; gap: 8px; }
.kgps-footer__nav a:hover { color: var(--wp--preset--color--pink); }
.kgps-footer__contact { line-height: 2; }
.kgps-footer__bottom { border-top: 1px solid #dccd8c; margin-top: 35px !important; padding-top: 22px; font-size: 13px; }
.kgps-footer__bottom p { font-size: 13px; margin: 0; }
.kgps-mobile-actions { display: none !important; }

@media (min-width: 1600px) { .kgps-hero { padding-block: 85px 100px; } }

/* Keep section motifs in the margins when space is tight. */
@media (max-width: 1320px) {
  .kgps-hero > .kgps-hero-cloud { display: none; }
  .kgps-section > .kgps-motif--medium { width: 60px; }
  .kgps-section > .kgps-motif--top-right, .kgps-section > .kgps-motif--top-left { top: 8px; }
  .kgps-section > .kgps-motif--bottom-left, .kgps-section > .kgps-motif--bottom-right { bottom: 6px; }
}

@media (max-width: 1000px) {
  body { --wp--style--root--padding-left: 24px; --wp--style--root--padding-right: 24px; }
  .kgps-header__row { gap: 14px; }
  .kgps-nav { gap: 12px; font-size: 13px; }
  .kgps-header__cta .wp-block-button__link { padding: 12px 16px; }
  .kgps-collage__note { font-size: 16px; }
  .kgps-collage__small, .kgps-collage__small img { width: 145px; }
  .kgps-collage__small img { height: 138px; }
  .kgps-page-hero > .kgps-hero-doodle { width: 85px; }
  .wp-block-columns.kgps-split { gap: 35px; }
  .is-style-kgps-cta { padding: 40px; }
  .kgps-footer > .kgps-footer__decor { top: -48px; width: 44px; }
}

@media (max-width: 781px) {
  /* Core columns stack below 782px. */
  .wp-block-columns.kgps-split, .kgps-hero__grid, .kgps-form-layout, .kgps-footer__grid { gap: 32px !important; }
}

@media (max-width: 760px) {
  body { font-size: 16px; --wp--style--root--padding-left: 20px; --wp--style--root--padding-right: 20px; }
  h1, h2 { letter-spacing: -1px !important; }
  /* Mobile menu from 760px (core default is 600px). */
  .kgps-nav .wp-block-navigation__responsive-container-open:not(.always-shown) { display: flex; }
  .kgps-nav .wp-block-navigation__responsive-container:not(.hidden-by-default):not(.is-menu-open) { display: none; }
  .kgps-topbar__row { justify-content: center !important; text-align: center; }
  .kgps-topbar__info { display: none; }
  .kgps-header__row { min-height: 91px; }
  .kgps-logo img { width: 118px; }
  .kgps-header__cta { display: none !important; }

  .kgps-hero { padding-block: 30px 65px; }
  .kgps-hero h1 { font-size: 46px; }
  .kgps-hero .kgps-lead { font-size: 16px; }
  .kgps-hero .wp-block-buttons { flex-wrap: nowrap; }
  .kgps-hero .wp-block-button { flex: 1; }
  .kgps-hero .wp-block-button__link { width: 100%; padding: 13px 15px; }
  .kgps-hero > .kgps-hero-rocket { width: 64px; right: -10px; top: 4px; opacity: 0.6; }
  .kgps-hero > .kgps-hero-pencil { display: none; }
  .kgps-collage { padding: 27px 8px 81px; }
  .kgps-collage__main img { border-radius: 65px 25px 65px 25px; border-width: 7px; }
  .kgps-collage__small, .kgps-collage__small img { width: 130px; }
  .kgps-collage__small img { height: 127px; border-width: 6px; }
  .kgps-collage__note { right: 0; bottom: 12px; padding: 13px 16px; font-size: 16px; }
  .kgps-collage .kgps-collage__crayon { width: 60px; right: -6px; top: 0; }
  .kgps-collage .kgps-collage__star { left: -8px; width: 46px; }

  .kgps-strip__row { display: grid !important; grid-template-columns: 1fr 1fr; padding-block: 18px; gap: 12px; }
  .kgps-strip__title { grid-column: span 2; font-size: 15px; }

  .kgps-section { padding-block: 48px; }
  .kgps-cta-section { padding-top: 64px; }
  .kgps-section > .kgps-motif:not(.kgps-motif--inline) { width: 40px; }
  .kgps-section > .kgps-motif--top-right { right: 4px; top: 4px; }
  .kgps-section > .kgps-motif--top-left { left: 4px; top: 4px; }
  .kgps-section > .kgps-motif--bottom-left { left: 4px; bottom: 4px; }
  .kgps-section > .kgps-motif--bottom-right { right: 4px; bottom: 4px; }
  .kgps-section-heading { display: block !important; margin-bottom: 25px; }
  .kgps-section-heading__desc { margin-top: 18px !important; }
  [class*='is-style-kgps-card'] { padding: 27px; }
  .is-style-kgps-card-photo { margin: -15px -15px 22px !important; }
  .is-style-kgps-panel { padding: 29px; }
  .is-style-kgps-cta { padding: 36px 25px; display: block !important; border-width: 5px; border-radius: 35px 20px; }
  .is-style-kgps-cta .wp-block-buttons { margin-top: 25px; }
  .is-style-kgps-cta .kgps-cta__rocket { width: 60px; right: 6px; top: -46px; }

  .kgps-photo-wall { grid-template-columns: 1fr 1fr; gap: 20px; }
  .kgps-photo-wall > figure:first-child { grid-column: span 2; }
  .kgps-wall-main img { height: 250px; }
  .kgps-photo-wall .wp-element-caption { font-size: 13px; }
  .kgps-motif-row { gap: 11px !important; }
  .kgps-motif-row .kgps-motif { width: 40px; }

  .kgps-page-hero { padding-block: 28px 70px; }
  .kgps-page-hero h1 { font-size: 40px; max-width: none; }
  .kgps-page-hero .kgps-lead { font-size: 16px; max-width: none; }
  .kgps-page-hero > .kgps-hero-doodle { width: 56px; right: 20px; bottom: 6px; opacity: 0.7; }
  .kgps-field-grid { grid-template-columns: 1fr; gap: 0; }
  .kgps-form-card { padding: 23px; }
  .kgps-reading h2 { font-size: 30px; }

  .kgps-footer { padding-bottom: calc(105px + env(safe-area-inset-bottom)); }
  .kgps-footer > .kgps-footer__decor { right: 10px; top: -35px; width: 45px; }
  .kgps-footer__bottom { display: block !important; }
  .kgps-footer__bottom > * + * { margin-top: 10px !important; }
  .kgps-mobile-actions {
    display: flex !important; position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; margin: 0 !important;
    padding: 9px 14px calc(9px + env(safe-area-inset-bottom)); background: #fff7da; border-top: 1px solid #f0dc93;
  }
  .kgps-mobile-actions__buttons { width: 100%; gap: 10px; }
  .kgps-mobile-actions__buttons .wp-block-button { flex: 1; }
  .kgps-mobile-actions__buttons .wp-block-button__link { width: 100%; min-height: 44px; font-size: 13px; padding: 10px; }
}

@media (max-width: 360px) {
  .kgps-hero h1 { font-size: 40px; }
  .kgps-page-hero h1 { font-size: 35px; }
  .kgps-hero .wp-block-buttons { flex-wrap: wrap; }
  .kgps-hero .wp-block-button { flex-basis: 100%; }
  .kgps-collage__small, .kgps-collage__small img { width: 110px; }
  .kgps-collage__small img { height: 108px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
  .wp-block-button__link:hover { transform: none; }
}

@media print {
  .kgps-mobile-actions, .kgps-motif, .kgps-topbar { display: none !important; }
}
