/*
Theme Name: Simply Love Crayon
Theme URI: https://simplyloveprintables.com/
Description: A warm, fuzzy-crayon redesign for Simply Love Printables. Child theme of Twenty Twenty-Five — paper-cream backgrounds, a crayon-box palette, chunky rounded type, scalloped crayon-wrapper section edges and squishy wax buttons. Upload, activate, and go.
Author: Simply Love Printables
Template: twentytwentyfive
Version: 1.3.0
Requires at least: 6.7
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: simply-love-crayon
*/

/* =========================================================
   0. Crayon-box tokens
   ========================================================= */
:root {
  --slp-paper:  #FFFFFF;
  --slp-paper2: #F7EFDF;
  --slp-ink:    #443B47;
  --slp-ink-soft: rgba(68, 59, 71, 0.14);

  --slp-teal:   #1FA89C; --slp-teal-dk:  #14776E; --slp-teal-tint:  #DFF3F0;
  --slp-yellow: #FFC53D; --slp-yellow-dk:#DD9F14; --slp-yellow-tint:#FFF3D2;
  --slp-coral:  #FF7A59; --slp-coral-dk: #DE5535; --slp-coral-tint: #FFE7DE;
  --slp-green:  #6BBF59; --slp-green-dk: #4E9C3F; --slp-green-tint: #E6F4DF;
  --slp-peri:   #7B8FE8; --slp-peri-dk:  #5C70C9; --slp-peri-tint:  #E8ECFB;

  /* organic “hand-cut sticker” radius */
  --slp-blob: 22px 26px 24px 20px / 24px 20px 26px 22px;
  --slp-shadow: 0 6px 0 rgba(68, 59, 71, 0.10);
  --slp-shadow-up: 0 12px 0 rgba(68, 59, 71, 0.12);
}

::selection { background: var(--slp-yellow); color: var(--slp-ink); }

body { -webkit-font-smoothing: antialiased; }

/* Crayon-drawn focus ring everywhere */
:where(a, button, input, summary, [tabindex]):focus-visible {
  outline: 3px dashed var(--slp-teal);
  outline-offset: 3px;
  border-radius: 6px;
}

/* =========================================================
   1. The crayon-box stripe (top of every page + footer)
   ========================================================= */
.slp-stripe {
  height: 8px;
  background: linear-gradient(90deg,
    var(--slp-teal)   0 20%,
    var(--slp-yellow) 20% 40%,
    var(--slp-coral)  40% 60%,
    var(--slp-green)  60% 80%,
    var(--slp-peri)   80% 100%);
}

/* =========================================================
   2. Header
   ========================================================= */
.slp-sticky {
  position: sticky;
  top: 0;
  z-index: 80;
  background: var(--slp-paper);
  box-shadow: 0 3px 0 var(--slp-ink-soft);
}
.slp-header { background: var(--slp-paper); }

/* compact search in the sticky header */
.slp-head-search .wp-block-search__input {
  padding: 0.45em 1em;
  font-size: 0.92rem;
  border-width: 2.5px;
}
.slp-head-search .wp-block-search__button { padding: 0.45em 0.85em; }
.slp-head-search .wp-block-search__inside-wrapper { gap: 6px; }

.slp-brand .wp-block-site-title a {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 800;
  text-decoration: none;
  color: var(--slp-ink);
  letter-spacing: -0.01em;
}
.slp-brand .wp-block-site-title a:hover { color: var(--slp-teal); }

/* crayon nub before the site title */
.slp-brand .wp-block-site-title::before {
  content: "";
  display: inline-block;
  width: 0.7em; height: 0.7em;
  margin-right: 0.45em;
  background: var(--slp-teal);
  border-radius: 50% 50% 45% 45%;
  clip-path: polygon(50% 0, 100% 62%, 100% 100%, 0 100%, 0 62%);
  vertical-align: baseline;
  transform: translateY(0.04em);
}

.slp-nav a {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 600;
  font-size: 1.0rem;
  color: var(--slp-ink);
}
.slp-nav a:hover { color: var(--slp-teal); }
.slp-nav .wp-block-navigation-item.current-menu-item > a {
  color: var(--slp-teal);
  text-decoration: underline wavy var(--slp-yellow) 2px;
  text-underline-offset: 6px;
}
.slp-nav .wp-block-navigation__submenu-container {
  border: 2px solid var(--slp-ink-soft);
  border-radius: 14px;
  box-shadow: var(--slp-shadow);
  background: var(--slp-paper) !important;
  padding: 6px;
}
.slp-nav .wp-block-navigation__submenu-container a { border-radius: 9px; }
.slp-nav .wp-block-navigation__submenu-container a:hover {
  background: var(--slp-teal-tint);
}

/* =========================================================
   3. Squiggle underlines (crayon doodle)
   ========================================================= */
.slp-squiggle::after,
.slp-squiggle-left::after {
  content: "";
  display: block;
  width: 150px;
  height: 12px;
  margin: 0.45em auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 12'%3E%3Cpath d='M2 8 Q 12 2 22 8 T 42 8 T 62 8 T 82 8 T 102 8 T 122 8 T 142 8' fill='none' stroke='%231FA89C' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center / contain;
}
.slp-squiggle-left::after { margin-left: 2px; margin-right: auto; }
.slp-squiggle--yellow::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 12'%3E%3Cpath d='M2 8 Q 12 2 22 8 T 42 8 T 62 8 T 82 8 T 102 8 T 122 8 T 142 8' fill='none' stroke='%23FFC53D' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E");
}

/* =========================================================
   4. Squishy wax buttons
   ========================================================= */
.wp-block-button__link,
.wp-block-search__button,
.wp-block-post-comments-form input[type="submit"] {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  border-radius: 999px;
  border: none;
  background: var(--slp-teal);
  color: #fff;
  padding: 0.7em 1.6em;
  box-shadow: 0 5px 0 var(--slp-teal-dk);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease;
}
.wp-block-button__link:hover,
.wp-block-search__button:hover,
.wp-block-post-comments-form input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--slp-teal-dk);
  background: var(--slp-teal);
  color: #fff;
}
.wp-block-button__link:active,
.wp-block-search__button:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--slp-teal-dk);
}
.is-style-outline .wp-block-button__link {
  background: transparent;
  color: var(--slp-ink);
  border: 3px solid var(--slp-ink);
  box-shadow: 0 5px 0 var(--slp-ink-soft);
}
.is-style-outline .wp-block-button__link:hover {
  background: var(--slp-yellow-tint);
  color: var(--slp-ink);
}
.slp-btn-yellow .wp-block-button__link {
  background: var(--slp-yellow);
  color: var(--slp-ink);
  box-shadow: 0 5px 0 var(--slp-yellow-dk);
}
.slp-btn-yellow .wp-block-button__link:hover {
  background: var(--slp-yellow);
  box-shadow: 0 7px 0 var(--slp-yellow-dk);
}

/* =========================================================
   5. Search (hero + everywhere)
   ========================================================= */
.wp-block-search__input {
  border: 3px solid var(--slp-ink);
  border-radius: 999px;
  background: #fff;
  padding: 0.7em 1.3em;
  font-size: 1.05rem;
  font-family: var(--wp--preset--font-family--body);
}
.wp-block-search__input:focus { border-color: var(--slp-teal); outline: none; }
.wp-block-search .wp-block-search__inside-wrapper { gap: 10px; }
.slp-hero-search .wp-block-search__input { padding: 0.95em 1.5em; font-size: 1.1rem; }

/* =========================================================
   6. Hero
   ========================================================= */
.slp-hero {
  position: relative;
  overflow: hidden;
}
.slp-hero::before,
.slp-hero::after {
  content: "";
  position: absolute;
  border-radius: 48% 52% 55% 45% / 50% 46% 54% 50%;
  z-index: 0;
  pointer-events: none;
}
.slp-hero::before {
  width: 420px; height: 420px;
  background: var(--slp-teal-tint);
  top: -160px; right: -120px;
}
.slp-hero::after {
  width: 300px; height: 300px;
  background: var(--slp-yellow-tint);
  bottom: -140px; left: -110px;
}
.slp-hero > * { position: relative; z-index: 1; }

.slp-eyebrow {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.8rem;
  color: var(--slp-coral);
}

.slp-badges { color: var(--slp-ink); }
.slp-badges .wp-block-paragraph, .slp-badges p { font-weight: 700; font-size: 0.95rem; }

/* the fuzzy mascot illustration */
.slp-mascot svg { width: min(100%, 380px); height: auto; display: block; margin-inline: auto; }
@media (prefers-reduced-motion: no-preference) {
  .slp-mascot .bob  { animation: slp-bob 4.5s ease-in-out infinite; }
  .slp-mascot .bob2 { animation: slp-bob 5.2s ease-in-out 0.6s infinite; }
  .slp-mascot .bob3 { animation: slp-bob 4.0s ease-in-out 1.1s infinite; }
  @keyframes slp-bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
}

/* =========================================================
   7. Scalloped crayon-wrapper bands  (signature element)
   ========================================================= */
.slp-band { position: relative; --band: var(--slp-paper2); background: var(--band); }
.slp-band--yellow { --band: var(--slp-yellow-tint); }
.slp-band--teal   { --band: var(--slp-teal-tint); }
.slp-band--ink    { --band: var(--slp-ink); }

.slp-band::before,
.slp-band::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 15px;
  pointer-events: none;
}
.slp-band::before {
  top: -14px;
  background: radial-gradient(circle 14px at 50% 15px, var(--band) 98%, transparent 100%);
  background-size: 30px 15px;
  background-repeat: round;
}
.slp-band::after {
  bottom: -14px;
  background: radial-gradient(circle 14px at 50% 0px, var(--band) 98%, transparent 100%);
  background-size: 30px 15px;
  background-repeat: round;
}
.slp-band--no-bottom::after { content: none; }
.slp-band--no-top::before { content: none; }

/* =========================================================
   8. Category crayon cards
   ========================================================= */
.slp-cat-card {
  position: relative;
  border: 2.5px solid var(--slp-ink);
  border-radius: var(--slp-blob);
  background: #fff;
  box-shadow: var(--slp-shadow);
  padding: 26px 22px !important;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.slp-cat-card .slp-cat-emoji { font-size: 2.4rem; line-height: 1; margin: 0; }
.slp-cat-card h3 { margin: 12px 0 4px; font-size: 1.25rem; }
.slp-cat-card h3 a { text-decoration: none; color: var(--slp-ink); }
.slp-cat-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--slp-blob); }
.slp-cat-card .slp-cat-go { font-weight: 800; font-size: 0.92rem; margin: 0; }
.slp-cat-card:hover { transform: translateY(-5px) rotate(-0.6deg); box-shadow: var(--slp-shadow-up); }

.slp-cat--teal   { background: var(--slp-teal-tint); }   .slp-cat--teal .slp-cat-go   { color: var(--slp-teal-dk); }
.slp-cat--yellow { background: var(--slp-yellow-tint); } .slp-cat--yellow .slp-cat-go { color: var(--slp-yellow-dk); }
.slp-cat--coral  { background: var(--slp-coral-tint); }  .slp-cat--coral .slp-cat-go  { color: var(--slp-coral-dk); }
.slp-cat--green  { background: var(--slp-green-tint); }  .slp-cat--green .slp-cat-go  { color: var(--slp-green-dk); }
.slp-cat--peri   { background: var(--slp-peri-tint); }   .slp-cat--peri .slp-cat-go   { color: var(--slp-peri-dk); }
.slp-cat--ink    { background: var(--slp-ink); border-color: var(--slp-ink); }
.slp-cat--ink h3 a, .slp-cat--ink .slp-cat-go, .slp-cat--ink .slp-cat-emoji { color: var(--slp-paper); }

/* =========================================================
   9. Post cards ("hand-placed stickers")
   ========================================================= */
.slp-grid .wp-block-post {
  border: 2.5px solid var(--slp-ink);
  border-radius: var(--slp-blob);
  background: #fff;
  box-shadow: var(--slp-shadow);
  padding: 16px 16px 20px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.slp-grid .wp-block-post:nth-child(odd)  { transform: rotate(-0.45deg); }
.slp-grid .wp-block-post:nth-child(even) { transform: rotate(0.45deg); }
.slp-grid .wp-block-post:hover {
  transform: translateY(-6px) rotate(0deg);
  box-shadow: var(--slp-shadow-up);
}
.slp-grid .wp-block-post-featured-image img {
  border-radius: 16px;
  border: 2px solid var(--slp-ink-soft);
}
.slp-grid .wp-block-post-title { font-size: 1.22rem; line-height: 1.25; margin: 10px 0 6px; }
.slp-grid .wp-block-post-title a { text-decoration: none; color: var(--slp-ink); }
.slp-grid .wp-block-post-title a:hover { color: var(--slp-teal); }
.slp-grid .wp-block-post-excerpt { font-size: 0.95rem; }
.slp-grid .wp-block-post-excerpt__more-link {
  font-weight: 800;
  color: var(--slp-coral);
  text-decoration: none;
}
.slp-grid .wp-block-post-excerpt__more-link:hover { text-decoration: underline wavy 2px; text-underline-offset: 4px; }

/* category chips */
.slp-chips { font-size: 0.78rem; }
.slp-chips a {
  display: inline-block;
  background: var(--slp-teal-tint);
  color: var(--slp-teal-dk);
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  padding: 3px 12px;
  margin: 0 4px 4px 0;
}
.slp-chips a:nth-child(2n) { background: var(--slp-yellow-tint); color: var(--slp-yellow-dk); }
.slp-chips a:nth-child(3n) { background: var(--slp-coral-tint); color: var(--slp-coral-dk); }
.slp-chips a:nth-child(4n) { background: var(--slp-peri-tint); color: var(--slp-peri-dk); }
.slp-chips a:hover { filter: brightness(0.96); }
.slp-chips .wp-block-post-terms__separator { display: none; }

/* =========================================================
   10. How-it-works steps
   ========================================================= */
.slp-step { text-align: center; padding: 10px; }
.slp-step-num {
  width: 58px; height: 58px;
  margin: 0 auto 12px;
  display: grid; place-items: center;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 800; font-size: 1.5rem;
  color: #fff;
  border-radius: 46% 54% 52% 48% / 50% 48% 52% 50%;
  box-shadow: 0 4px 0 rgba(68,59,71,0.18);
}
.slp-step:nth-child(1) .slp-step-num { background: var(--slp-teal); }
.slp-step:nth-child(2) .slp-step-num { background: var(--slp-coral); }
.slp-step:nth-child(3) .slp-step-num { background: var(--slp-green); }
.slp-step h3 { margin: 0 0 6px; font-size: 1.25rem; }
.slp-step p { margin: 0; font-size: 0.98rem; }

/* =========================================================
   11. Single post
   ========================================================= */
.slp-post-title { line-height: 1.12; letter-spacing: -0.015em; }
.slp-post-meta { font-weight: 700; font-size: 0.92rem; color: var(--slp-ink); opacity: 0.75; }

.slp-featured img,
.wp-block-post-featured-image img {
  border-radius: 22px;
}

/* entry content */
.entry-content img { border-radius: 18px; }
.entry-content h2 {
  position: relative;
  padding-left: 0.85em;
}
.entry-content h2::before {
  content: "";
  position: absolute;
  left: 0; top: 0.18em; bottom: 0.18em;
  width: 0.32em;
  background: var(--slp-yellow);
  border-radius: 999px;
}
.entry-content a { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.entry-content blockquote {
  border: none;
  background: var(--slp-paper2);
  border-radius: var(--slp-blob);
  padding: 22px 26px;
  font-style: normal;
}
.entry-content blockquote p { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.15rem; }

/* printing-tip note */
.slp-print-note {
  border: 2.5px dashed var(--slp-teal);
  border-radius: var(--slp-blob);
  background: var(--slp-teal-tint);
  padding: 20px 24px !important;
}
.slp-print-note p { margin: 0; font-weight: 600; }
.slp-print-note a { color: var(--slp-teal-dk); font-weight: 800; }

/* prev / next */
.slp-postnav a {
  text-decoration: none;
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  color: var(--slp-ink);
}
.slp-postnav a:hover { color: var(--slp-teal); }

/* comments */
.wp-block-post-comments-form textarea,
.wp-block-post-comments-form input[type="text"],
.wp-block-post-comments-form input[type="email"],
.wp-block-post-comments-form input[type="url"] {
  border: 2.5px solid var(--slp-ink-soft);
  border-radius: 14px;
  background: #fff;
  padding: 0.6em 0.9em;
}
.wp-block-post-comments-form textarea:focus,
.wp-block-post-comments-form input:focus { border-color: var(--slp-teal); outline: none; }

/* =========================================================
   12. Archive / category pages
   ========================================================= */
.slp-archive-title { letter-spacing: -0.015em; }
.slp-archive-title .wp-block-query-title { margin: 0; }
.slp-term-desc { max-width: 640px; margin-inline: auto; }

.wp-block-query-pagination a,
.wp-block-query-pagination span.current {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 800;
  text-decoration: none;
  border: 2.5px solid var(--slp-ink);
  border-radius: 12px;
  padding: 6px 13px;
  background: #fff;
  color: var(--slp-ink);
  box-shadow: 0 3px 0 var(--slp-ink-soft);
}
.wp-block-query-pagination a:hover { background: var(--slp-yellow-tint); transform: translateY(-2px); }
.wp-block-query-pagination span.current { background: var(--slp-teal); color: #fff; border-color: var(--slp-teal-dk); box-shadow: 0 3px 0 var(--slp-teal-dk); }
.wp-block-query-pagination-next, .wp-block-query-pagination-previous { font-weight: 800; }

/* =========================================================
   13. Footer
   ========================================================= */
.slp-footer { color: var(--slp-paper); }
.slp-footer a { color: var(--slp-paper); text-decoration: none; }
.slp-footer a:hover { color: var(--slp-yellow); text-decoration: underline wavy 2px; text-underline-offset: 4px; }
.slp-footer .slp-footer-head {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--slp-yellow);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.slp-footer-bottom { border-top: 2px dashed rgba(255, 252, 244, 0.25); }
.slp-footer-bottom p { font-size: 0.92rem; opacity: 0.9; }

/* =========================================================
   14. 404 & search results
   ========================================================= */
.slp-404-num {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 800;
  font-size: clamp(5rem, 16vw, 9rem);
  line-height: 1;
  background: linear-gradient(90deg, var(--slp-teal), var(--slp-coral), var(--slp-yellow));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* =========================================================
   15. Motion safety & small screens
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .slp-grid .wp-block-post,
  .slp-grid .wp-block-post:nth-child(odd),
  .slp-grid .wp-block-post:nth-child(even) { transform: none; }
}

@media (max-width: 781px) {
  .slp-hero::before { width: 260px; height: 260px; top: -120px; right: -100px; }
  .slp-hero::after { display: none; }
  .slp-cat-card { padding: 20px 16px !important; }
}

/* =========================================================
   16. THE FUZZY LAYER — fur, felt and plush everywhere
   (uses the #slpFuzz / #slpFuzzBig SVG filters in the header)
   ========================================================= */

/* clean white background so printable previews blend in */
body { background-color: #ffffff; font-size: 20px; }

/* the crayon-box stripe becomes a fuzzy fur trim */
.slp-stripe { filter: url(#slpFuzz); height: 9px; }

/* squiggle underlines drawn with a fuzzy crayon */
.slp-squiggle::after,
.slp-squiggle-left::after { filter: url(#slpFuzz); }

/* hero blobs get fluffy edges */
.slp-hero::before,
.slp-hero::after { filter: url(#slpFuzzBig); }

/* scalloped band edges become fur trim */
.slp-band::before,
.slp-band::after { filter: url(#slpFuzz); }

/* fuzzy felt backing behind cards — like plush stickers */
.slp-cat-card,
.slp-grid .wp-block-post,
.slp-side-box {
  position: relative;
  z-index: 0;
  --halo: var(--slp-paper2);
}
.slp-cat-card::before,
.slp-grid .wp-block-post::before,
.slp-side-box::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: var(--slp-blob);
  background: var(--halo);
  filter: url(#slpFuzzBig);
  z-index: -1;
}
.slp-cat--teal   { --halo: var(--slp-teal-tint); }
.slp-cat--yellow { --halo: var(--slp-yellow-tint); }
.slp-cat--coral  { --halo: var(--slp-coral-tint); }
.slp-cat--green  { --halo: var(--slp-green-tint); }
.slp-cat--peri   { --halo: var(--slp-peri-tint); }
.slp-cat--ink    { --halo: var(--slp-ink); }

/* fuzzy step number blobs */
.slp-step-num { filter: url(#slpFuzz); }

/* plush list markers in posts */
.entry-content ul li::marker { content: "●  "; color: var(--slp-teal); }
.entry-content ul li:nth-child(even)::marker { color: var(--slp-coral); }

/* =========================================================
   17. Post sidebar & ad slots
   ========================================================= */
.slp-side-col { min-width: 0; }
.slp-sidebar { display: block; }

.slp-ad {
  border: 2.5px dashed var(--slp-ink-soft);
  border-radius: var(--slp-blob);
  background: #fff;
  padding: 14px !important;
  margin-bottom: 26px;
  text-align: center;
}
.slp-ad-label {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 800;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.5;
  margin: 0 0 8px;
}
.slp-ad-slot {
  display: grid;
  place-items: center;
  min-height: 250px;
  border-radius: 12px;
  background: repeating-linear-gradient(45deg, var(--slp-paper2) 0 12px, #fff 12px 24px);
}
.slp-ad-slot--tall { min-height: 600px; }
.slp-ad-slot:empty::after {
  content: "Ad space — paste your ad code in the Site Editor";
  font-size: 0.85rem;
  font-weight: 700;
  opacity: 0.45;
  padding: 12px;
}
.slp-ad--sticky { position: sticky; top: 96px; }

.slp-side-box {
  border: 2.5px solid var(--slp-ink);
  border-radius: var(--slp-blob);
  background: #fff;
  box-shadow: var(--slp-shadow);
  padding: 20px !important;
  margin-bottom: 26px;
}
.slp-side-head {
  font-size: 1.12rem;
  font-weight: 800;
  margin: 0 0 14px;
}
.slp-side-head::after {
  content: "";
  display: block;
  width: 90px;
  height: 9px;
  margin-top: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 12'%3E%3Cpath d='M2 8 Q 12 2 22 8 T 42 8 T 62 8 T 82 8 T 102 8 T 122 8 T 142 8' fill='none' stroke='%23FFC53D' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat left / contain;
  filter: url(#slpFuzz);
}
.slp-side-list .wp-block-post { padding: 10px 0; border-bottom: 2px dashed var(--slp-ink-soft); }
.slp-side-list .wp-block-post:last-child { border-bottom: none; padding-bottom: 0; }
.slp-side-list .wp-block-post-title { font-size: 0.98rem; line-height: 1.35; margin: 0; }
.slp-side-list .wp-block-post-title a { text-decoration: none; color: var(--slp-ink); }
.slp-side-list .wp-block-post-title a:hover { color: var(--slp-teal); }
.slp-side-list .wp-block-post-title a::before { content: "🖍️ "; font-size: 0.85em; }

/* single layout: keep sidebar tidy on mobile (columns stack < 782px) */
@media (max-width: 781px) {
  .slp-ad--sticky { position: static; }
  .slp-ad-slot--tall { min-height: 250px; }
  .slp-head-search { display: none; }
}

/* =========================================================
   18. Fixes: sticky header, post grid, search box, mobile menu
   ========================================================= */

/* --- sticky header: stick the whole header template part --- */
header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--slp-paper);
}
body { overflow-x: clip; }
.wp-site-blocks { overflow: visible !important; }
.slp-sticky { position: static; } /* inner wrapper no longer needs to stick */

/* --- homepage / archive post grids: force a proper 3-column grid --- */
.slp-grid { max-width: 1180px; margin-inline: auto; }
.slp-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}
.slp-grid .wp-block-post {
  width: 100%;
  max-width: 100%;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.slp-grid .wp-block-post-featured-image,
.slp-grid .wp-block-post-featured-image a {
  display: block;
  width: 100%;
  margin: 0;
}
.slp-grid .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.slp-grid .wp-block-post-excerpt { font-size: 17px; }
.slp-grid .wp-block-post-title { font-size: 1.35rem; }
@media (max-width: 980px) {
  .slp-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .slp-grid .wp-block-post-template { grid-template-columns: 1fr; }
}

/* --- search blocks: remove the box around input + button --- */
.wp-block-search .wp-block-search__inside-wrapper {
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  gap: 8px;
}
.wp-block-search .wp-block-search__input { background: #fff; }

/* --- mobile hamburger menu: friendly full-screen overlay --- */
.wp-block-navigation__responsive-container-open,
.wp-block-navigation__responsive-container-close {
  color: var(--slp-ink);
}
.wp-block-navigation__responsive-container-open svg,
.wp-block-navigation__responsive-container-close svg {
  width: 34px;
  height: 34px;
}
.wp-block-navigation__responsive-container.is-menu-open {
  background-color: var(--slp-paper) !important;
  padding: 84px 30px 40px !important;
  border-top: 9px solid transparent;
  border-image: linear-gradient(90deg, var(--slp-teal) 0 20%, var(--slp-yellow) 20% 40%, var(--slp-coral) 40% 60%, var(--slp-green) 60% 80%, var(--slp-peri) 80% 100%) 1;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  align-items: flex-start;
  text-align: left;
  gap: 4px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  align-items: flex-start;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item {
  width: 100%;
  border-bottom: 2px dashed var(--slp-ink-soft);
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  font-family: var(--wp--preset--font-family--display);
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--slp-ink);
  padding: 12px 0;
  display: block;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  position: static !important;
  border: none;
  background: transparent !important;
  padding-left: 18px;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item {
  border-bottom: none;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 7px 0;
}
.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-icon {
  color: var(--slp-teal);
}

/* =========================================================
   19. Grid hardening — identical cards everywhere, real gaps
   (high specificity + !important to beat any DB-saved layout
   styles or stale per-block layout CSS)
   ========================================================= */
.wp-block-query.slp-grid .wp-block-post-template {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 44px !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}
.wp-block-query.slp-grid .wp-block-post {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  background: #fff !important;
  border: 2.5px solid var(--slp-ink) !important;
  border-radius: var(--slp-blob) !important;
  box-shadow: var(--slp-shadow) !important;
  padding: 16px 16px 20px !important;
  display: flex !important;
  flex-direction: column !important;
}
.wp-block-query.slp-grid .wp-block-post-featured-image,
.wp-block-query.slp-grid .wp-block-post-featured-image a {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}
.wp-block-query.slp-grid .wp-block-post-featured-image img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 3 / 2 !important;
  object-fit: cover !important;
  border-radius: 16px;
  border: 2px solid var(--slp-ink-soft);
}
@media (max-width: 980px) {
  .wp-block-query.slp-grid .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}
@media (max-width: 640px) {
  .wp-block-query.slp-grid .wp-block-post-template { grid-template-columns: 1fr !important; }
}
