/** Shopify CDN: Minification failed

Line 1567:0 All "@import" rules must come first
Line 1568:0 All "@import" rules must come first

**/
/* sensoryplay.ch — design system + landing page styles */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400;1,600&family=DM+Sans:wght@400;500;600;700&display=swap');

:root {
  /* Soft Studio palette — feminine, editorial, parent-facing.
     Names retained for backwards compat; values flipped to the new scheme. */
  --clay: #B58A7D;       /* was terracotta — now dusty mauve (accent / pills) */
  --sand: #F5E1DA;       /* was warm beige — now blush (section bg) */
  --moss: #A8B89E;       /* was deep moss — now sage (micro-accent) */
  --cream: #FBF6F1;      /* page background, slightly warmer */
  --charcoal: #2A1F1B;   /* deep oak — replaces pure-ish black */
  --blush: #E8D0C5;      /* gradient mid-tone, harmonised with new sand */
  --warm: #7C4A52;       /* was burnt sienna — now mulberry (CTA hover) */
  --sp-font-heading: 'Playfair Display', Georgia, serif;
  --sp-font-body: 'DM Sans', 'Inter', system-ui, sans-serif;
}

/* Page-level reset for the sensoryplay landing page */
body.template-sensory-play {
  background: var(--cream);
  color: var(--charcoal);
  font-family: var(--sp-font-body);
  -webkit-font-smoothing: antialiased;
}

body.template-sensory-play h1,
body.template-sensory-play h2,
body.template-sensory-play h3,
body.template-sensory-play h4 {
  font-family: var(--sp-font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--charcoal);
  margin: 0;
}

body.template-sensory-play p {
  line-height: 1.65;
  margin: 0;
}

/* ========== LANGUAGE TOGGLE ========== */
.sp-lang-toggle {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  display: flex;
  gap: 0;
  background: rgba(251, 246, 239, 0.95);
  border: 1px solid rgba(200, 137, 106, 0.3);
  border-radius: 999px;
  padding: 4px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.sp-lang-toggle button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  border-radius: 999px;
  font-family: var(--sp-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  cursor: pointer;
  color: var(--charcoal);
  transition: all 0.2s;
}

.sp-lang-toggle button.active {
  background: var(--clay);
  color: white;
}

.sp-lang-toggle button:not(.active):hover {
  background: rgba(200, 137, 106, 0.15);
}

/* Language visibility - default DE shown */
body.template-sensory-play [data-lang="en"]:not(button):not([data-lang-target]) {
  display: none;
}

body.template-sensory-play.lang-en [data-lang="de"]:not(button):not([data-lang-target]) {
  display: none;
}

body.template-sensory-play.lang-en [data-lang="en"]:not(button):not([data-lang-target]) {
  display: revert;
}

/* ========== SCROLL ANIMATIONS ========== */
.sp-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.sp-fade.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ========== SHARED LAYOUT ========== */
.sp-section {
  padding: 100px 24px;
}

.sp-section--compact {
  padding: 80px 24px;
}

.sp-section__inner {
  max-width: 1200px;
  margin: 0 auto;
}

.sp-section__header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.sp-eyebrow {
  display: inline-block;
  font-family: var(--sp-font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 16px;
}

.sp-section__header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 16px;
}

.sp-section__header p {
  font-size: 1.125rem;
  opacity: 0.85;
}

/* ========== HERO ========== */
.sp-hero {
  padding: 140px 24px 100px;
  background: linear-gradient(180deg, var(--cream) 0%, rgba(232, 196, 176, 0.2) 100%);
  position: relative;
  overflow: hidden;
}

.sp-hero__inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}

.sp-hero__content h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.05;
  margin-bottom: 24px;
}

.sp-hero__content h1 em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}

.sp-hero__content p {
  font-size: 1.2rem;
  line-height: 1.6;
  max-width: 560px;
  margin-bottom: 36px;
  color: rgba(45, 45, 45, 0.85);
}

.sp-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--clay);
  color: white;
  border: none;
  border-radius: 999px;
  font-family: var(--sp-font-body);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(200, 137, 106, 0.25);
}

.sp-button:hover {
  background: var(--warm);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(160, 82, 45, 0.3);
}

.sp-button--outline {
  background: transparent;
  color: var(--clay);
  border: 2px solid var(--clay);
  box-shadow: none;
}

.sp-button--outline:hover {
  background: var(--clay);
  color: white;
}

.sp-button--white {
  background: white;
  color: var(--clay);
}

.sp-button--white:hover {
  background: var(--cream);
  color: var(--warm);
}

/* ========== HERO VISUAL PANEL ========== */
.sp-hero__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  justify-self: center;
  width: 100%;
}

.sp-hero__panel {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--clay) 0%, var(--blush) 100%);
  border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%;
  animation: spMorph 12s ease-in-out infinite;
  box-shadow: 0 20px 60px rgba(200, 137, 106, 0.3);
}

@keyframes spMorph {
  0%, 100% { border-radius: 40% 60% 60% 40% / 50% 50% 50% 50%; }
  33% { border-radius: 60% 40% 50% 50% / 40% 60% 40% 60%; }
  66% { border-radius: 50% 50% 40% 60% / 60% 40% 60% 40%; }
}

.sp-hero__icons {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sp-hero__icon {
  position: absolute;
  font-size: 3rem;
  animation: spFloat 4s ease-in-out infinite;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.sp-hero__icon:nth-child(1) { top: 20%; left: 20%; animation-delay: 0s; }
.sp-hero__icon:nth-child(2) { top: 20%; right: 20%; animation-delay: 1s; }
.sp-hero__icon:nth-child(3) { bottom: 20%; left: 20%; animation-delay: 2s; }
.sp-hero__icon:nth-child(4) { bottom: 20%; right: 20%; animation-delay: 3s; }

@keyframes spFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

.sp-hero__badge {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 14px 28px;
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--charcoal);
  white-space: nowrap;
}

/* ========== WHY SECTION ========== */
.sp-why {
  background: var(--cream);
}

.sp-benefits {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.sp-benefit-card {
  background: var(--sand);
  padding: 32px 28px;
  border-radius: 16px;
  border-top: 4px solid var(--clay);
  transition: transform 0.3s;
}

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

.sp-benefit-card__icon {
  font-size: 2.25rem;
  margin-bottom: 16px;
  display: block;
}

.sp-benefit-card h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
}

.sp-benefit-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(45, 45, 45, 0.8);
}

/* ========== WORKSHOPS SECTION ========== */
.sp-workshops {
  background: var(--sand);
}

.sp-workshops__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 56px;
}

.sp-workshop-card {
  background: var(--cream);
  padding: 36px 28px;
  border-radius: 20px;
  transition: all 0.3s;
  border: 1px solid rgba(200, 137, 106, 0.15);
}

.sp-workshop-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--clay);
}

.sp-workshop-card__icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
  display: block;
}

.sp-workshop-card h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
  font-style: italic;
}

.sp-workshop-card p {
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(45, 45, 45, 0.8);
  margin-bottom: 16px;
}

.sp-workshop-card__meta {
  display: flex;
  gap: 16px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--clay);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ========== HOW IT WORKS ========== */
.sp-how {
  background: var(--charcoal);
  color: white;
}

.sp-how .sp-section__header h2,
.sp-how .sp-section__header p {
  color: white;
}

.sp-how .sp-eyebrow {
  color: var(--blush);
}

.sp-how__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
  margin-top: 56px;
}

.sp-step {
  text-align: left;
}

.sp-step__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clay);
  color: white;
  font-family: var(--sp-font-heading);
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.sp-step h3 {
  color: white;
  font-size: 1.3rem;
  margin-bottom: 12px;
  font-style: italic;
}

.sp-step p {
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  font-size: 0.95rem;
}

/* ========== SIGNUP ========== */
.sp-signup {
  background: var(--clay);
  color: white;
}

.sp-signup .sp-section__header h2,
.sp-signup .sp-section__header p {
  color: white;
}

.sp-signup .sp-eyebrow {
  color: rgba(255, 255, 255, 0.8);
}

.sp-signup__form {
  max-width: 480px;
  margin: 40px auto 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sp-signup__form input[type="email"] {
  flex: 1 1 240px;
  padding: 16px 20px;
  border: none;
  border-radius: 999px;
  font-family: var(--sp-font-body);
  font-size: 1rem;
  color: var(--charcoal);
  outline: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.sp-signup__form input[type="email"]::placeholder {
  color: rgba(45, 45, 45, 0.5);
}

.sp-signup__form button {
  padding: 16px 32px;
  border: none;
  background: white;
  color: var(--clay);
  border-radius: 999px;
  font-family: var(--sp-font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.sp-signup__form button:hover {
  background: var(--charcoal);
  color: white;
}

.sp-signup__message {
  margin-top: 20px;
  text-align: center;
  font-size: 0.95rem;
}

.sp-signup__message.success {
  color: white;
}

.sp-signup__message.error {
  color: #FFD6D6;
}

/* ========== BLOG TEASER ========== */
.sp-blog {
  background: var(--sand);
}

.sp-blog__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 56px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.sp-blog-card {
  background: var(--cream);
  border-radius: 20px;
  padding: 36px 32px;
  text-decoration: none;
  color: inherit;
  transition: all 0.3s;
  border: 1px solid rgba(200, 137, 106, 0.15);
  display: block;
}

.sp-blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
  border-color: var(--clay);
}

.sp-blog-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--blush);
  color: var(--warm);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.sp-blog-card h3 {
  font-size: 1.35rem;
  line-height: 1.35;
  font-style: italic;
}

/* ========== LOCATION ========== */
.sp-location {
  background: var(--moss);
  color: white;
}

.sp-location .sp-section__header h2,
.sp-location .sp-section__header p {
  color: white;
}

.sp-location .sp-eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.sp-location__details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.sp-location__detail {
  text-align: center;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  backdrop-filter: blur(4px);
}

.sp-location__detail-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 12px;
}

.sp-location__detail p {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* ========== FOOTER ========== */
.sp-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.7);
  padding: 72px 24px 36px;
}

.sp-footer__inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 120px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sp-footer__inner > .sp-footer__col {
  flex: 0 1 360px;
}

.sp-footer__logo {
  font-family: var(--sp-font-heading);
  font-size: 1.75rem;
  color: white;
  margin-bottom: 16px;
  font-weight: 600;
}

.sp-footer__tagline {
  font-size: 0.95rem;
  line-height: 1.65;
  max-width: 360px;
}

.sp-footer__col h4 {
  color: white;
  font-family: var(--sp-font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.sp-footer__col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sp-footer__col a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.sp-footer__col a:hover {
  color: var(--clay);
}

.sp-footer__col p {
  font-size: 0.9rem;
  line-height: 1.55;
  margin-bottom: 8px;
}

.sp-footer__bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 36px;
  font-size: 0.8rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.45);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 960px) {
  .sp-hero__inner {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .sp-hero__content p {
    margin-left: auto;
    margin-right: auto;
  }
  .sp-hero__visual {
    max-width: 360px;
  }
  .sp-footer__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

@media (max-width: 640px) {
  .sp-section,
  .sp-hero {
    padding: 72px 20px;
  }
  .sp-hero {
    padding-top: 120px;
  }
  .sp-section__header {
    margin-bottom: 40px;
  }
  .sp-hero__content h1 {
    font-size: 2.25rem;
  }
  .sp-signup__form {
    flex-direction: column;
  }
  .sp-signup__form button {
    width: 100%;
  }
  .sp-lang-toggle {
    top: 12px;
    right: 12px;
  }
  .sp-lang-toggle button {
    padding: 6px 12px;
    font-size: 0.75rem;
  }
}

/* ================================================================
   v2: LOGO, TOPBAR, SVG ILLUSTRATIONS, LOCATION, BLOG CTA
   ================================================================ */

/* Hide Horizon header + layout footer on the sensory-play template.
   The landing page owns its own branded chrome. */
body.template-sensory-play #header-group,
body.template-sensory-play > footer:not(.sp-footer) {
  display: none !important;
}
body.template-sensory-play main#MainContent {
  padding-top: 0;
}

/* ===== LOGO ===== */
.sp-logo {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--sp-font-body);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
  transition: opacity 0.2s;
}
.sp-logo:hover {
  opacity: 0.85;
}
.sp-logo__word {
  font-size: 1.25rem;
  text-transform: lowercase;
}
.sp-logo__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow:
    0 0 0 2px rgba(200, 137, 106, 0.18);
  transform: translateY(-1px);
  transition: background 0.3s, box-shadow 0.3s;
}
.sp-logo:hover .sp-logo__dot {
  background: var(--moss);
  box-shadow: 0 0 0 4px rgba(92, 122, 95, 0.22);
}
.sp-logo--light {
  color: var(--cream);
}
.sp-logo--light .sp-logo__dot {
  background: var(--blush);
  box-shadow: 0 0 0 2px rgba(232, 196, 176, 0.25);
}

/* ===== TOPBAR ===== */
.sp-topbar {
  position: sticky;
  top: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  background: rgba(251, 246, 239, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(200, 137, 106, 0.12);
}
/* When topbar is used, fixed lang toggle becomes inline */
body.template-sensory-play .sp-topbar .sp-lang-toggle {
  position: static;
  box-shadow: none;
  border: 1px solid rgba(200, 137, 106, 0.25);
}

/* ===== SVG ILLUSTRATIONS ===== */
.sp-illus {
  display: block;
  width: 100%;
  height: auto;
  max-width: 520px;
  margin: 0 auto;
}
.sp-illus--hero {
  animation: spFloat 7s ease-in-out infinite;
}
@keyframes spFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
/* Replace any leftover hero__panel/icons rules cleanly */
.sp-hero__visual {
  position: relative;
}

/* Benefit + workshop card SVG icons */
.sp-benefit-card__icon,
.sp-workshop-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: rgba(200, 137, 106, 0.08);
  border-radius: 16px;
  margin-bottom: 20px;
}
.sp-workshop-card__icon {
  background: rgba(92, 122, 95, 0.08);
}
.sp-benefit-card__icon svg,
.sp-workshop-card__icon svg {
  width: 36px;
  height: 36px;
  display: block;
}

/* ===== LOCATION TAGLINE ===== */
.sp-location__tagline {
  margin-top: 24px;
  font-size: 0.95rem;
  color: var(--warm);
  font-style: italic;
  opacity: 0.9;
}

/* ===== BLOG CTA (view all button) ===== */
.sp-blog__cta {
  text-align: center;
  margin-top: 48px;
}

/* ===== GHOST BUTTON VARIANT ===== */
.sp-button--ghost {
  background: transparent;
  color: var(--clay);
  border: 1.5px solid var(--clay);
  box-shadow: none;
}
.sp-button--ghost:hover {
  background: var(--clay);
  color: #fff;
  transform: translateY(-1px);
}

/* ===== FOOTER REGION LINE ===== */
.sp-footer__region {
  margin-top: 10px;
  font-size: 0.85rem;
  opacity: 0.75;
  letter-spacing: 0.04em;
}

/* ===== MOBILE ADJUSTMENTS ===== */
@media (max-width: 768px) {
  .sp-topbar {
    padding: 14px 18px;
  }
  .sp-logo__word {
    font-size: 1.1rem;
  }
  .sp-illus--hero {
    max-width: 360px;
  }
  .sp-benefit-card__icon,
  .sp-workshop-card__icon {
    width: 52px;
    height: 52px;
  }
}

/* =================================================================
   v3: BLOG + ARTICLE PAGES — bilingual support, branded chrome,
   inline images, scientific article rendering
   ================================================================= */

/* Bilingual article content — supports both [lang="de"] (HTML standard)
   and [data-lang="de"] (used in custom sections). Scoped inside the article
   content wrapper so it does NOT affect html[lang=...] at root level. */
body.template-sensory-play .sp-article-body [data-lang="en"],
body.template-sensory-play .sp-article-body [lang="en"],
body.template-sensory-play .sp-article-lang-en {
  display: none;
}
body.template-sensory-play.lang-en .sp-article-body [data-lang="de"],
body.template-sensory-play.lang-en .sp-article-body [lang="de"],
body.template-sensory-play.lang-en .sp-article-lang-de {
  display: none;
}
body.template-sensory-play.lang-en .sp-article-body [data-lang="en"],
body.template-sensory-play.lang-en .sp-article-body [lang="en"],
body.template-sensory-play.lang-en .sp-article-lang-en {
  display: block;
}

/* Topbar nav links */
.sp-topbar__nav {
  display: flex;
  gap: 24px;
  align-items: center;
  flex: 1;
  justify-content: center;
}
.sp-topbar__nav a {
  text-decoration: none;
  color: var(--charcoal);
  font-family: var(--sp-font-body);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 6px 2px;
  border-bottom: 1.5px solid transparent;
  transition: border-color 0.25s, color 0.25s;
}
.sp-topbar__nav a:hover {
  color: var(--clay);
  border-bottom-color: var(--clay);
}
@media (max-width: 640px) {
  .sp-topbar__nav { display: none; }
}

/* Article page shell — rebrand the Horizon article rendering */
body.template-sensory-play .article-template,
body.template-sensory-play [class*="article"],
body.template-sensory-play main-blog-post,
body.template-sensory-play .main-blog-post {
  background: var(--cream);
}
body.template-sensory-play main#MainContent {
  background: var(--cream);
  min-height: 100vh;
}

/* Re-style article headings/text on sensory-play blog */
body.template-sensory-play article h1,
body.template-sensory-play article h2,
body.template-sensory-play article h3,
body.template-sensory-play article h4,
body.template-sensory-play .article h1,
body.template-sensory-play .article h2,
body.template-sensory-play .article h3 {
  font-family: var(--sp-font-heading);
  color: var(--charcoal);
  letter-spacing: -0.01em;
}
body.template-sensory-play article p,
body.template-sensory-play article li,
body.template-sensory-play .article p,
body.template-sensory-play .article li {
  font-family: var(--sp-font-body);
  color: var(--charcoal);
  line-height: 1.75;
  font-size: 1.05rem;
}
body.template-sensory-play article h2,
body.template-sensory-play .article h2 {
  margin-top: 2.2em;
  margin-bottom: 0.6em;
  font-size: 1.7rem;
}
body.template-sensory-play article h3,
body.template-sensory-play .article h3 {
  margin-top: 1.6em;
  margin-bottom: 0.4em;
  font-size: 1.3rem;
}
body.template-sensory-play article p,
body.template-sensory-play .article p {
  margin-bottom: 1.1em;
}
body.template-sensory-play article hr,
body.template-sensory-play .article hr {
  border: none;
  border-top: 1px solid rgba(200, 137, 106, 0.25);
  margin: 2.5em 0;
}
body.template-sensory-play article a,
body.template-sensory-play .article a {
  color: var(--warm);
  text-decoration: underline;
  text-decoration-color: rgba(160, 82, 45, 0.35);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.2s;
}
body.template-sensory-play article a:hover,
body.template-sensory-play .article a:hover {
  text-decoration-color: var(--warm);
}

/* Scientific callout / source box inside articles */
body.template-sensory-play .sp-science-box {
  background: rgba(92, 122, 95, 0.07);
  border-left: 4px solid var(--moss);
  padding: 18px 24px;
  border-radius: 8px;
  margin: 2em 0;
  font-size: 0.95rem;
}
body.template-sensory-play .sp-science-box strong {
  color: var(--moss);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  display: block;
  margin-bottom: 6px;
}
body.template-sensory-play .sp-problem-box {
  background: rgba(200, 137, 106, 0.08);
  border-left: 4px solid var(--clay);
  padding: 18px 24px;
  border-radius: 8px;
  margin: 2em 0;
}
body.template-sensory-play .sp-sources {
  margin-top: 3em;
  padding-top: 1.5em;
  border-top: 1px dashed rgba(200, 137, 106, 0.35);
  font-size: 0.85rem;
  color: rgba(45, 45, 45, 0.7);
}
body.template-sensory-play .sp-sources h3 {
  font-size: 0.9rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--warm);
  margin-bottom: 0.8em;
}
body.template-sensory-play .sp-sources ul {
  padding-left: 1.2em;
}
body.template-sensory-play .sp-sources li {
  font-size: 0.85rem !important;
  line-height: 1.5 !important;
  margin-bottom: 0.5em;
}

/* ============= IMAGE SECTIONS ON LANDING ============= */
/* Hero photo mode (when image_picker has a value) */
.sp-hero__photo {
  display: block;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 24px;
  box-shadow:
    0 24px 60px -20px rgba(160, 82, 45, 0.35),
    0 6px 18px -8px rgba(45, 45, 45, 0.15);
}
.sp-hero__photo-wrap {
  position: relative;
  display: inline-block;
}
.sp-hero__photo-wrap::before {
  content: '';
  position: absolute;
  inset: -16px -18px 10px 10px;
  background: var(--blush);
  border-radius: 24px;
  z-index: -1;
  opacity: 0.55;
  transform: rotate(-2deg);
}

/* Gallery strip between sections */
.sp-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.sp-gallery__item {
  aspect-ratio: 1 / 1;
  background: var(--sand);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}
.sp-gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.sp-gallery__item:hover img {
  transform: scale(1.04);
}
.sp-gallery__item--span2 {
  grid-column: span 2;
  aspect-ratio: 2 / 1;
}
@media (max-width: 768px) {
  .sp-gallery {
    grid-template-columns: repeat(2, 1fr);
    padding: 0 18px;
  }
  .sp-gallery__item--span2 {
    grid-column: span 2;
  }
}

/* Decorative waves between sections */
.sp-wave {
  display: block;
  width: 100%;
  height: 60px;
  margin: -1px 0;
}
.sp-wave svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Section alt background */
.sp-section--alt-bg {
  background: var(--sand);
}

/* Article hero block (on article pages) — subtle branded top strip */
body.template-sensory-play article header,
body.template-sensory-play .article header {
  padding-bottom: 1em;
}

/* Footer credits line */
.sp-footer__credits {
  opacity: 0.6;
  font-size: 0.8rem;
}

/* Hero photo aspect + max width for real photos */
body.template-sensory-play .sp-hero__photo {
  max-width: 520px;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}






/* ================================================================
   BLOG LIST PAGE — uniform 3-up grid, hero/compact override
   ================================================================ */
body.template-sensory-play .blog-posts {
  --page-content-width: 1100px;
  padding-block: 32px 64px !important;
}
body.template-sensory-play .blog-posts h1 {
  font-family: var(--sp-font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  text-align: center;
  margin: 32px 0 48px;
  color: var(--charcoal);
}
body.template-sensory-play .blog-posts-container {
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 40px !important;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}
body.template-sensory-play .blog-post-item {
  grid-column: span 1 !important;
  border: none !important;
  padding: 0 !important;
  background: transparent;
}
body.template-sensory-play .blog-post-item--horizontal .blog-post-card {
  flex-direction: column !important;
}
body.template-sensory-play .blog-post-item--horizontal .blog-post-card > *:first-child,
body.template-sensory-play .blog-post-item--horizontal .blog-post-card > *:last-child {
  flex-basis: auto !important;
}
body.template-sensory-play .blog-post-card {
  background: var(--cream);
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
body.template-sensory-play .blog-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(42, 31, 27, 0.10);
}
body.template-sensory-play .blog-post-card__image-container {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--sand);
}
body.template-sensory-play .blog-post-card__image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
body.template-sensory-play .blog-post-card__content {
  padding: 20px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
body.template-sensory-play .blog-post-card__content h3,
body.template-sensory-play .blog-post-card__content [class*='heading'] {
  font-family: var(--sp-font-heading);
  font-size: 1.2rem;
  line-height: 1.35;
  color: var(--charcoal);
  margin: 0;
}
body.template-sensory-play .blog-post-card__content-text {
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(42, 31, 27, 0.75);
}
body.template-sensory-play .blog-post-card__content-text a {
  color: var(--warm) !important;
  font-weight: 500;
}
@media (max-width: 749px) {
  body.template-sensory-play .blog-posts-container {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 16px;
  }
  body.template-sensory-play .blog-posts h1 {
    font-size: 2rem;
    margin: 24px 0 28px;
  }
  body.template-sensory-play .blog-post-card__content h3 {
    font-size: 1.1rem;
  }
}
@media (min-width: 750px) and (max-width: 1024px) {
  body.template-sensory-play .blog-posts-container {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* ================================================================
   ARTICLE PAGE — featured image + body cap, mobile-friendly
   ================================================================ */
body.template-sensory-play .blog-post-featured-image {
  max-width: 760px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding: 0 16px;
}
body.template-sensory-play .blog-post-featured-image__image {
  width: 100% !important;
  height: auto !important;
  border-radius: 14px;
}
body.template-sensory-play main#MainContent .article-template,
body.template-sensory-play main#MainContent .blog-article,
body.template-sensory-play main#MainContent article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
body.template-sensory-play .sp-article-body,
body.template-sensory-play .article-lang-de,
body.template-sensory-play .article-lang-en,
body.template-sensory-play .sp-article-lang-de,
body.template-sensory-play .sp-article-lang-en {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--charcoal);
}
body.template-sensory-play .sp-article-lang-de h1,
body.template-sensory-play .sp-article-lang-en h1,
body.template-sensory-play .article-lang-de h1,
body.template-sensory-play .article-lang-en h1 {
  font-family: var(--sp-font-heading);
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.2;
  margin: 16px 0 24px;
  color: var(--charcoal);
}
body.template-sensory-play .sp-article-lang-de h2,
body.template-sensory-play .sp-article-lang-en h2,
body.template-sensory-play .article-lang-de h2,
body.template-sensory-play .article-lang-en h2 {
  font-family: var(--sp-font-heading);
  font-size: 1.5rem;
  margin: 36px 0 12px;
  color: var(--charcoal);
}
body.template-sensory-play .sp-article-lang-de p,
body.template-sensory-play .sp-article-lang-en p,
body.template-sensory-play .article-lang-de p,
body.template-sensory-play .article-lang-en p {
  margin: 0 0 18px;
}
@media (max-width: 749px) {
  body.template-sensory-play main#MainContent .article-template,
  body.template-sensory-play main#MainContent .blog-article,
  body.template-sensory-play main#MainContent article {
    padding: 0 16px;
  }
}

/* ================================================================
   GENERAL MOBILE RESPONSIVENESS — landing + all pages
   ================================================================ */
@media (max-width: 749px) {
  body.template-sensory-play .sp-section,
  body.template-sensory-play .sp-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  body.template-sensory-play .sp-section__inner {
    padding: 0;
  }
  body.template-sensory-play .sp-hero__inner {
    flex-direction: column;
    gap: 24px;
  }
  body.template-sensory-play h1,
  body.template-sensory-play .sp-hero h1 {
    font-size: clamp(1.8rem, 7vw, 2.4rem) !important;
  }
  body.template-sensory-play h2 {
    font-size: clamp(1.5rem, 5vw, 2rem) !important;
  }
  body.template-sensory-play .sp-footer__inner {
    flex-direction: column;
    gap: 32px !important;
    text-align: center;
  }
  body.template-sensory-play .sp-footer__inner > .sp-footer__col {
    flex: 1 1 auto !important;
  }
}


/* === SP article CTA module === */
.sp-article-cta {
  margin: 64px auto 32px;
  max-width: 760px;
  padding: 0 20px;
}
.sp-article-cta__inner {
  background: var(--cream);
  border: 1px solid rgba(181, 138, 125, 0.18);
  border-radius: 16px;
  padding: 32px 28px;
  text-align: center;
}
.sp-article-cta__lead {
  font-family: var(--sp-font-heading);
  font-size: 1.25rem;
  margin: 0 0 24px;
  color: var(--charcoal);
}
.sp-article-cta__cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.sp-article-cta__card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 22px 26px;
  border-radius: 12px;
  text-decoration: none;
  background: white;
  color: var(--charcoal);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: left;
  position: relative;
}
.sp-article-cta__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(42, 31, 27, 0.10);
}
.sp-article-cta__card--lk { border: 1px solid rgba(181, 138, 125, 0.28); }
.sp-article-cta__card--yk { border: 1px solid rgba(168, 184, 158, 0.4); }
.sp-article-cta__eyebrow {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--warm);
}
.sp-article-cta__card--yk .sp-article-cta__eyebrow {
  color: var(--moss);
}
.sp-article-cta__title {
  font-family: var(--sp-font-heading);
  font-size: 1.15rem;
  line-height: 1.3;
}
.sp-article-cta__body {
  font-size: 0.9rem;
  color: rgba(42, 31, 27, 0.7);
  line-height: 1.5;
}
.sp-article-cta__arrow {
  position: absolute;
  top: 22px;
  right: 22px;
  font-size: 1.2rem;
  color: var(--clay);
  transition: transform 0.2s ease;
}
.sp-article-cta__card:hover .sp-article-cta__arrow {
  transform: translateX(4px);
}
@media (max-width: 640px) {
  .sp-article-cta__cards {
    grid-template-columns: 1fr;
  }
  .sp-article-cta__inner {
    padding: 24px 18px;
  }
}


/* === Editorial polish layer === */

/* 1. HERO TYPOGRAPHY — bigger, italic accent on key word */
body.template-sensory-play .sp-hero h1 {
  font-size: clamp(2.5rem, 7vw, 5rem) !important;
  line-height: 1.05 !important;
  letter-spacing: -0.02em;
  font-weight: 500;
}
body.template-sensory-play .sp-hero h1 em,
body.template-sensory-play .sp-section__header h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--warm);
}

/* 2. NUMBERED SECTION LABELS — auto-numbered eyebrows on landing */
body.template-sensory-play { counter-reset: sp-section; }
body.template-sensory-play .sp-section { counter-increment: sp-section; }
body.template-sensory-play .sp-section .sp-eyebrow::before {
  content: counter(sp-section, decimal-leading-zero) " — ";
  font-family: var(--sp-font-heading);
  font-style: italic;
  font-weight: 400;
  color: var(--clay);
  margin-right: 4px;
  text-transform: none;
  letter-spacing: 0;
}

/* 3. SUBTLE PAPER GRAIN — analog feel without distraction */
body.template-sensory-play::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.035;
  z-index: 9999;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
}

/* 4. DROP CAP — first letter of first paragraph in articles */
body.template-sensory-play .sp-article-lang-de > p:first-of-type::first-letter,
body.template-sensory-play .sp-article-lang-en > p:first-of-type::first-letter,
body.template-sensory-play .article-lang-de > p:first-of-type::first-letter,
body.template-sensory-play .article-lang-en > p:first-of-type::first-letter {
  font-family: var(--sp-font-heading);
  font-size: 4rem;
  line-height: 0.85;
  float: left;
  margin: 0.05em 0.1em -0.05em 0;
  color: var(--warm);
  font-weight: 500;
}

/* 5. DECORATIVE RULE BETWEEN MAJOR SECTIONS */
body.template-sensory-play .sp-section + .sp-section .sp-section__header::before {
  content: "";
  display: block;
  width: 48px;
  height: 1px;
  background: var(--clay);
  margin: 0 auto 32px;
  opacity: 0.5;
}

/* GENEROUS VERTICAL RHYTHM */
body.template-sensory-play .sp-section { padding-block: clamp(72px, 10vw, 128px) !important; }
body.template-sensory-play .sp-section__header { margin-bottom: clamp(40px, 6vw, 72px); }

/* TIGHT MOBILE OVERRIDES */
@media (max-width: 749px) {
  body.template-sensory-play .sp-hero h1 { font-size: clamp(2rem, 8vw, 2.6rem) !important; }
  body.template-sensory-play .sp-section { padding-block: 56px !important; }
  body.template-sensory-play .sp-article-lang-de > p:first-of-type::first-letter,
  body.template-sensory-play .sp-article-lang-en > p:first-of-type::first-letter,
  body.template-sensory-play .article-lang-de > p:first-of-type::first-letter,
  body.template-sensory-play .article-lang-en > p:first-of-type::first-letter { font-size: 3rem; }
}


/* === LK-inspired warmth layer === */

/* Script font for italic accents — matches LoftKids' Cedarville Cursive vibe */
@import url('https://fonts.googleapis.com/css2?family=Cedarville+Cursive&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Allura&display=swap');

.sp-script {
  font-family: 'Cedarville Cursive', cursive;
  font-style: normal !important;
  font-weight: 400;
  color: var(--warm);
  font-size: 1.15em;
  line-height: 0.95;
}

/* Pill buttons site-wide */
body.template-sensory-play .sp-button,
body.template-sensory-play .sp-button--ghost {
  border-radius: 999px !important;
  letter-spacing: 0.06em;
}

/* === FOUNDERS section === */
.sp-founders {
  background: var(--cream);
}
.sp-founders__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 0 32px;
}
.sp-founders__photo img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  box-shadow: 0 30px 60px -25px rgba(42, 31, 27, 0.25);
}
.sp-founders__text .sp-eyebrow {
  margin-bottom: 16px;
  display: inline-block;
}
.sp-founders__text h2 {
  font-family: var(--sp-font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.15;
  margin: 0 0 24px;
  color: var(--charcoal);
}
.sp-founders__text h2 .sp-script {
  display: inline-block;
  margin-left: 4px;
}
.sp-founders__text p {
  font-size: 1.02rem;
  line-height: 1.7;
  color: rgba(42, 31, 27, 0.85);
  margin: 0 0 20px;
}
.sp-founders__signature {
  margin-top: 28px !important;
  font-size: 1.4rem !important;
}
.sp-founders__location {
  margin-top: 80px;
  text-align: center;
}
.sp-wordmark {
  font-family: var(--sp-font-body);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  color: var(--clay);
  text-transform: lowercase;
  font-weight: 400;
}

@media (max-width: 749px) {
  .sp-founders__inner {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 0 16px;
  }
  .sp-founders__photo img {
    max-width: 320px;
    margin: 0 auto;
    aspect-ratio: 1 / 1;
  }
  .sp-founders__text {
    text-align: center;
  }
  .sp-founders__location {
    margin-top: 48px;
    padding: 0 16px;
  }
  .sp-wordmark {
    font-size: 0.7rem;
  }
}


/* === LK round 2 — site-wide warmth === */

/* Cursive script accents inside h2/h1 — bigger, sits ON the line not above */
body.template-sensory-play h1 .sp-script,
body.template-sensory-play h2 .sp-script {
  font-size: 1.25em;
  line-height: 0.85;
  margin: 0 0.05em;
  display: inline-block;
  transform: translateY(0.08em);
}

/* Hero greeting — handwritten welcome above the eyebrow */
.sp-greeting {
  display: block;
  font-family: 'Cedarville Cursive', cursive;
  font-size: 1.4rem;
  color: var(--warm);
  margin-bottom: 8px;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  line-height: 1;
}

/* Make eyebrows feel softer — slightly looser tracking, lighter weight */
body.template-sensory-play .sp-eyebrow {
  font-weight: 500;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
  color: var(--clay);
}

/* Section heading scale — bigger + softer */
body.template-sensory-play .sp-section__header h2 {
  font-size: clamp(2.2rem, 5vw, 3.4rem) !important;
  line-height: 1.1 !important;
  letter-spacing: -0.015em;
  font-weight: 500;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* Section description text — bigger, more readable */
body.template-sensory-play .sp-section__header p {
  font-size: 1.08rem;
  line-height: 1.65;
  max-width: 640px;
  margin: 18px auto 0;
}

/* Soften shadows on cards — LK uses very gentle shadows */
body.template-sensory-play .sp-blog-card {
  box-shadow: 0 4px 14px -8px rgba(42, 31, 27, 0.12);
}

/* Mobile tightening */
@media (max-width: 749px) {
  .sp-greeting { font-size: 1.2rem; }
  body.template-sensory-play .sp-section__header h2 {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
  }
  body.template-sensory-play h1 .sp-script,
  body.template-sensory-play h2 .sp-script {
    font-size: 1.15em;
  }
}


/* === Logo D — Allura cursive === */
.sp-logo {
  align-items: center;
  gap: 8px;
}
.sp-logo__word {
  font-family: 'Allura', cursive !important;
  font-weight: 400 !important;
  font-size: 2.4rem !important;
  letter-spacing: 0 !important;
  line-height: 0.85 !important;
  text-transform: lowercase;
  transform: translateY(2px);
}
.sp-logo__dot {
  width: 7px;
  height: 7px;
  transform: translateY(-2px);
}
@media (max-width: 749px) {
  .sp-logo__word {
    font-size: 2rem !important;
  }
}


/* ── Site-wide Path B rules (added 2026-05-04) ──
 * Apply outside .template-sensory-play too, because lang-toggle now renders on every page. */
body [data-lang="en"]:not(button):not([data-lang-target]):not(.allow-en) {
  display: none;
}
body.lang-en [data-lang="de"]:not(button):not([data-lang-target]) {
  display: none;
}
body.lang-en [data-lang="en"]:not(button):not([data-lang-target]) {
  display: revert;
}

/* article-lang-* class blocks — same treatment */
.article-lang-en, .sp-article-lang-en { display: none; }
.article-lang-de, .sp-article-lang-de { display: block; }
body.lang-en .article-lang-en, body.lang-en .sp-article-lang-en { display: block; }
body.lang-en .article-lang-de, body.lang-en .sp-article-lang-de { display: none; }
