/*
Theme Name: Stitch Coloring Pages
Theme URI: https://stitchcoloringpages.com/
Author: OpenAI
Description: A clean, responsive, printable coloring pages theme with category navigation, PDF download and print support. Artwork and PDFs are managed by the site owner.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: stitch-coloring-pages
*/
:root{--scp-blue:#526bd8;--scp-blue-dark:#263b71;--scp-lilac:#f0edff;--scp-sky:#eff7ff;--scp-ink:#27324a;--scp-muted:#65718a;--scp-border:#e5eaf2;--scp-bg:#fff;--scp-radius:18px;--scp-shadow:0 8px 28px rgba(40,59,113,.07)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--scp-bg);color:var(--scp-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;font-size:16px;line-height:1.7}a{color:var(--scp-blue);text-decoration:none}a:hover{color:var(--scp-blue-dark);text-decoration:underline}img{max-width:100%;height:auto;display:block}button,input{font:inherit}.scp-container{width:min(1160px,calc(100% - 40px));margin-inline:auto}.site-header{background:#fff;border-bottom:1px solid var(--scp-border);position:relative;z-index:10}.header-inner{min-height:82px;display:flex;align-items:center;justify-content:space-between;gap:24px}.site-branding{display:flex;align-items:center;gap:12px;min-width:0}.custom-logo{max-height:54px;width:auto}.brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:var(--scp-lilac);color:var(--scp-blue-dark);font-size:25px}.site-title{font-weight:800;font-size:1.2rem;line-height:1.2;color:var(--scp-blue-dark);display:block}.site-description{font-size:.75rem;color:var(--scp-muted);margin-top:3px}.primary-navigation ul{display:flex;align-items:center;gap:22px;list-style:none;padding:0;margin:0}.primary-navigation a{font-size:.94rem;font-weight:650;color:var(--scp-ink)}.menu-toggle{display:none;background:#fff;border:1px solid var(--scp-border);border-radius:10px;padding:8px 12px;color:var(--scp-ink)}.header-search{display:flex;gap:6px}.header-search input{width:150px;min-width:0;border:1px solid var(--scp-border);border-radius:999px;padding:8px 13px}.header-search button{border:0;border-radius:999px;background:var(--scp-blue);color:white;padding:8px 13px}.hero{background:linear-gradient(120deg,#eff7ff 0%,#f4f0ff 100%);padding:64px 0 58px;overflow:hidden}.hero-grid{display:grid;grid-template-columns:1.1fr .9fr;align-items:center;gap:44px}.eyebrow{display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:#fff;color:var(--scp-blue-dark);font-size:.78rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase}.hero h1{font-size:clamp(2.2rem,5vw,3.8rem);line-height:1.08;letter-spacing:-.04em;color:var(--scp-blue-dark);margin:18px 0}.hero p{font-size:1.1rem;color:#53617c;max-width:600px}.button-row{display:flex;flex-wrap:wrap;gap:12px;margin-top:25px}.scp-button{display:inline-flex;justify-content:center;align-items:center;gap:8px;background:var(--scp-blue);color:#fff!important;border:2px solid var(--scp-blue);padding:12px 19px;border-radius:12px;font-weight:750;line-height:1.3;text-decoration:none!important;cursor:pointer}.scp-button:hover{background:var(--scp-blue-dark);border-color:var(--scp-blue-dark)}.scp-button.secondary{background:#fff;color:var(--scp-blue-dark)!important;border-color:#dce3f5}.hero-art{background:#fff;border:1px solid rgba(255,255,255,.8);padding:15px;border-radius:26px;box-shadow:var(--scp-shadow);transform:rotate(1deg)}.hero-art img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:17px}.hero-art-placeholder{aspect-ratio:4/3;border-radius:17px;background:linear-gradient(135deg,#fff,#e7eaff);display:grid;place-items:center;text-align:center;padding:20px;color:var(--scp-blue-dark)}.hero-art-placeholder span{font-size:4rem}.section{padding:54px 0}.section.soft{background:#fafbff}.section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:25px}.section-heading h2,.page-title{font-size:clamp(1.7rem,3vw,2.4rem);line-height:1.2;color:var(--scp-blue-dark);letter-spacing:-.025em;margin:0 0 8px}.section-heading p{margin:0;color:var(--scp-muted)}.text-link{font-weight:750;white-space:nowrap}.scp-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.scp-card{border:1px solid var(--scp-border);border-radius:var(--scp-radius);overflow:hidden;background:#fff;box-shadow:0 4px 16px rgba(40,59,113,.035);transition:transform .18s ease,box-shadow .18s ease}.scp-card:hover{transform:translateY(-3px);box-shadow:var(--scp-shadow)}.scp-card-image{display:block;background:#f6f8fc;aspect-ratio:4/3;overflow:hidden}.scp-card-image img{width:100%;height:100%;object-fit:cover}.scp-card-placeholder{height:100%;min-height:150px;display:grid;place-items:center;color:#a1acd0;font-size:2.7rem;background:linear-gradient(135deg,#f7f8ff,#eff7ff)}.scp-card-body{padding:15px}.scp-card h3{font-size:1.04rem;line-height:1.35;margin:0 0 6px;color:var(--scp-blue-dark)}.scp-card p{font-size:.9rem;color:var(--scp-muted);margin:0}.category-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}.category-tile{display:flex;align-items:center;gap:12px;padding:17px 14px;border:1px solid var(--scp-border);border-radius:15px;color:var(--scp-blue-dark);font-weight:750;background:#fff}.category-icon{display:grid;place-items:center;width:40px;height:40px;flex:0 0 40px;border-radius:12px;background:var(--scp-sky);font-size:1.25rem}.ad-slot{margin:28px auto;padding:14px;border:1px dashed #cbd3e2;border-radius:12px;min-height:90px;display:flex;align-items:center;justify-content:center;color:#8a93a5;font-size:.75rem;letter-spacing:.08em;text-transform:uppercase}.content-wrap{padding:44px 0 60px}.content-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:40px}.content-main{min-width:0}.content-main> :first-child{margin-top:0}.entry-title{font-size:clamp(2rem,4vw,3rem);line-height:1.15;color:var(--scp-blue-dark);letter-spacing:-.035em;margin:0 0 14px}.entry-meta{color:var(--scp-muted);font-size:.9rem;margin-bottom:24px}.entry-content h2,.entry-content h3,.entry-content h4{color:var(--scp-blue-dark);line-height:1.3;margin-top:1.7em}.entry-content p,.entry-content li{line-height:1.8}.entry-content img{border-radius:12px}.featured-image{margin:22px 0 28px}.featured-image img{border-radius:18px;width:100%}.sidebar{border-left:1px solid var(--scp-border);padding-left:25px}.widget{margin-bottom:28px}.widget-title{font-size:1.1rem;color:var(--scp-blue-dark);margin:0 0 12px}.sidebar ul{padding-left:20px}.breadcrumb{font-size:.85rem;color:var(--scp-muted);margin-bottom:20px}.breadcrumb a{color:var(--scp-muted)}.page-intro{max-width:760px;color:var(--scp-muted);margin:0 0 30px}.pagination{display:flex;gap:8px;margin-top:35px;flex-wrap:wrap}.pagination .page-numbers{padding:8px 13px;border:1px solid var(--scp-border);border-radius:9px}.pagination .current{background:var(--scp-blue);color:white;border-color:var(--scp-blue)}.download-panel{display:flex;flex-wrap:wrap;gap:12px;padding:20px;margin:24px 0;background:var(--scp-sky);border:1px solid #dce9fa;border-radius:16px}.download-panel p{flex-basis:100%;margin:0;color:#53617c}.scp-button.print{background:#fff;color:var(--scp-blue-dark)!important;border-color:#dce3f5}.site-footer{background:#202d4e;color:#e9edfa;padding:46px 0 20px}.footer-grid{display:grid;grid-template-columns:1.4fr 1fr 1fr;gap:36px}.site-footer h2,.site-footer h3{color:#fff;margin-top:0}.site-footer a{color:#e9edfa}.site-footer p{color:#c6cfe4}.footer-links{list-style:none;margin:0;padding:0;display:grid;gap:8px}.footer-bottom{border-top:1px solid rgba(255,255,255,.16);margin-top:30px;padding-top:18px;font-size:.85rem;color:#c6cfe4}.not-found{text-align:center;padding:70px 0}.search-form{display:flex;gap:8px;margin:20px 0}.search-form input{flex:1;min-width:0;padding:12px;border:1px solid var(--scp-border);border-radius:10px}.search-form button{border:0;background:var(--scp-blue);color:white;border-radius:10px;padding:12px 18px}.screen-reader-text{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.screen-reader-text:focus{clip:auto;width:auto;height:auto;position:static}.alignwide{max-width:1100px;margin-left:auto;margin-right:auto}.wp-block-button__link{background:var(--scp-blue);border-radius:10px}.wp-block-image img{height:auto}.comments-area{margin-top:40px;padding-top:25px;border-top:1px solid var(--scp-border)}
@media(max-width:1000px){.primary-navigation ul{gap:13px}.header-search{display:none}.scp-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.category-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.content-layout{grid-template-columns:minmax(0,1fr) 250px;gap:25px}.sidebar{padding-left:20px}}
@media(max-width:760px){.scp-container{width:min(100% - 28px,1160px)}.header-inner{min-height:70px;flex-wrap:wrap;padding:10px 0}.menu-toggle{display:block}.primary-navigation{display:none;width:100%;order:5}.primary-navigation.is-open{display:block}.primary-navigation ul{display:flex;flex-direction:column;align-items:stretch;gap:0;padding:5px 0 12px}.primary-navigation li a{display:block;padding:10px 4px;border-top:1px solid var(--scp-border)}.hero{padding:42px 0}.hero-grid{grid-template-columns:1fr;gap:28px}.hero h1{font-size:2.5rem}.hero-art{max-width:540px;margin:auto}.section{padding:40px 0}.section-heading{align-items:start;flex-direction:column}.scp-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:13px}.scp-card-body{padding:12px}.scp-card h3{font-size:.96rem}.category-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.category-tile{padding:12px 10px;font-size:.9rem}.category-icon{width:34px;height:34px;flex-basis:34px}.content-layout{grid-template-columns:1fr}.sidebar{border-left:0;border-top:1px solid var(--scp-border);padding:25px 0 0}.content-wrap{padding:30px 0 45px}.footer-grid{grid-template-columns:1fr;gap:24px}.download-panel{padding:15px}.scp-button{padding:11px 14px}}
@media print{.site-header,.site-footer,.sidebar,.ad-slot,.download-panel,.site-navigation,.section,.breadcrumb{display:none!important}body{background:#fff}.scp-container{width:100%}.content-layout{display:block}.entry-content{color:#000}}

/* Download controls shown under content images (featured images are intentionally excluded). */
.scp-download-options{display:inline-block;position:relative;margin:10px 0 18px;font-size:.92rem}
.scp-download-options summary{list-style:none;cursor:pointer;display:inline-flex;align-items:center;gap:8px;padding:9px 15px;border-radius:10px;background:var(--scp-blue);color:#fff;font-weight:750}
.scp-download-options summary::-webkit-details-marker{display:none}
.scp-download-options summary:after{content:"▾";font-size:.85em}
.scp-download-menu{display:flex;flex-wrap:wrap;gap:8px;padding-top:9px}
.scp-download-menu a{display:inline-flex;padding:9px 12px;border:1px solid var(--scp-border);border-radius:9px;background:#fff;color:var(--scp-blue-dark);font-weight:650}
.scp-download-menu a:hover{background:var(--scp-sky);text-decoration:none}


/* Stylish content images and download controls */
.entry-content img {
  border-radius: 18px;
  border: 1px solid #e5eaf5;
  box-shadow: 0 8px 24px rgba(36, 54, 105, .10);
  transition: transform .22s ease, box-shadow .22s ease;
}
.entry-content figure {
  margin: 1.8rem auto 1.2rem;
  padding: 12px;
  max-width: 100%;
  border: 1px solid #e9edf7;
  border-radius: 22px;
  background: linear-gradient(145deg, #ffffff, #f7f8ff);
  box-shadow: 0 10px 28px rgba(36, 54, 105, .07);
}
.entry-content figure img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: none;
}
.entry-content figure figcaption {
  color: #68738a;
  font-size: .9rem;
  text-align: center;
  padding: 9px 8px 2px;
}
.entry-content p > img {
  margin: 1.2rem auto .65rem;
}
.scp-image-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px auto 26px;
}
.scp-download-options {
  position: relative;
  display: inline-block;
}
.scp-download-options summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #586ee8, #7657d5);
  box-shadow: 0 7px 16px rgba(88, 110, 232, .25);
  font-weight: 750;
  font-size: .94rem;
  transition: transform .18s ease, box-shadow .18s ease;
}
.scp-download-options summary::-webkit-details-marker { display: none; }
.scp-download-options summary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(88, 110, 232, .32);
}
.scp-download-icon { font-size: 1.15rem; line-height: 1; }
.scp-download-menu {
  position: absolute;
  z-index: 30;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  width: max-content;
  min-width: 190px;
  max-width: min(260px, 86vw);
  padding: 7px;
  border: 1px solid #e4e8f5;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 35px rgba(28, 39, 77, .18);
}
.scp-download-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 9px;
  color: #26345a;
  font-weight: 650;
  font-size: .9rem;
  text-decoration: none;
}
.scp-download-menu a:hover {
  color: #354bc0;
  background: #f0f2ff;
  text-decoration: none;
}
.scp-print-image {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 18px;
  border: 1px solid #dfe4f2;
  border-radius: 999px;
  background: #fff;
  color: #38466a;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}
.scp-print-image:hover {
  background: #f6f7ff;
  border-color: #bfc8f3;
  text-decoration: none;
}
@media (max-width: 600px) {
  .entry-content figure { padding: 8px; border-radius: 17px; }
  .scp-image-actions { gap: 8px; margin-bottom: 22px; }
  .scp-download-options summary, .scp-print-image { min-height: 42px; padding: 9px 15px; font-size: .88rem; }
}
