/*
Theme Name: KidsPDF
Theme URI: https://kidspdf.com/
Author: KidsPDF.com
Description: A colorful, mobile-first WordPress theme for KidsPDF.com stories, worksheets, learning packets, and printable resources.
Version: 1.3.9
Requires at least: 6.0
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: kidspdf
*/
:root{--kp-primary:#6c5ce7;--kp-secondary:#00b894;--kp-accent:#fdcb6e;--kp-ink:#263238;--kp-muted:#667085;--kp-bg:#f8f9ff;--kp-card:#fff;--kp-radius:18px;--kp-shadow:0 10px 30px rgba(35,42,70,.08)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--kp-bg);color:var(--kp-ink);font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;line-height:1.65}a{color:var(--kp-primary);text-decoration:none}a:hover{text-decoration:underline}img{max-width:100%;height:auto}.site-header{background:#fff;border-bottom:1px solid #eee;position:sticky;top:0;z-index:20}.header-inner{max-width:1180px;margin:auto;padding:14px 20px;display:flex;align-items:center;gap:20px}.header-inner nav{margin-left:auto}.menu-toggle{margin-left:auto}.brand{font-weight:900;font-size:1.45rem;color:var(--kp-ink)}.brand span{color:var(--kp-primary)}.nav-menu{display:flex;gap:18px;list-style:none;margin:0;padding:0;align-items:center}.nav-menu a{font-weight:700;color:var(--kp-ink)}.menu-toggle{display:none;border:0;background:var(--kp-primary);color:#fff;border-radius:10px;padding:8px 12px}.container{max-width:1180px;margin:auto;padding:0 20px}.hero{padding:56px 20px;background:linear-gradient(135deg,#eeeaff,#e9fff8);border-radius:0 0 30px 30px}.hero-inner{max-width:900px;margin:auto}.hero-copy{max-width:760px}.hero-kicker{font-weight:800;color:var(--kp-primary);margin:0 0 8px}.hero h1{font-size:clamp(2rem,5vw,3.4rem);line-height:1.1;margin:0 0 14px}.hero p:not(.hero-kicker){font-size:1.08rem;color:var(--kp-muted);max-width:650px;margin:0 0 22px}.hero-art{display:none}.section{padding:58px 0}.section-title{display:flex;justify-content:space-between;gap:20px;align-items:end;margin-bottom:24px}.section-title h2{margin:0;font-size:2rem}.story-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px}.story-card{background:#fff;border-radius:var(--kp-radius);overflow:hidden;box-shadow:var(--kp-shadow);display:flex;flex-direction:column}.story-cover{aspect-ratio:8.5/11;background:#eef0f8;overflow:hidden}.story-cover img{width:100%;height:100%;object-fit:cover}.story-cover .placeholder{height:100%;display:grid;place-items:center;font-size:3rem}.story-card-body{padding:17px}.story-card h3{margin:0 0 7px;font-size:1.08rem}.story-card p{color:var(--kp-muted);font-size:.92rem;margin:0 0 14px}.site-main{min-height:60vh}.page-wrap{padding:55px 20px}.content-card{background:#fff;border-radius:20px;padding:32px;box-shadow:var(--kp-shadow)}.story-single{padding:45px 20px}.story-header{display:grid;grid-template-columns:280px 1fr;gap:35px;align-items:start}.story-header .cover{aspect-ratio:8.5/11;border-radius:18px;overflow:hidden;background:#eee}.story-header .cover img{width:100%;height:100%;object-fit:cover}.story-meta{color:var(--kp-muted)}.story-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin:24px 0;max-width:780px}
.kp-action{position:relative;display:flex;align-items:center;gap:14px;min-height:78px;padding:14px 18px;border:0;border-radius:18px;color:#fff;text-decoration:none;overflow:hidden;box-shadow:0 10px 24px rgba(35,42,70,.14);transition:transform .18s ease,box-shadow .18s ease,filter .18s ease}
.kp-action::after{content:"";position:absolute;inset:0;background:linear-gradient(120deg,rgba(255,255,255,.16),transparent 48%);pointer-events:none}
.kp-action:hover,.kp-action:focus-visible{color:#fff;text-decoration:none;transform:translateY(-3px);box-shadow:0 14px 30px rgba(35,42,70,.2);filter:saturate(1.06)}
.kp-action:focus-visible{outline:3px solid rgba(108,92,231,.28);outline-offset:3px}
.kp-action-read{background:linear-gradient(135deg,#7a68ee 0%,#5d4bd7 100%)}
.kp-action-download{background:linear-gradient(135deg,#242a45 0%,#343b5e 100%)}
.kp-action-icon{position:relative;z-index:1;flex:0 0 46px;width:46px;height:46px;display:grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.18);box-shadow:inset 0 1px 0 rgba(255,255,255,.22)}
.kp-action-icon svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.kp-action-read .kp-action-icon svg{fill:currentColor;stroke:none}
.kp-action-copy{position:relative;z-index:1;display:flex;flex-direction:column;min-width:0;line-height:1.25}
.kp-action-copy strong{font-size:1.05rem;letter-spacing:-.01em}
.kp-action-copy small{margin-top:3px;color:rgba(255,255,255,.82);font-size:.78rem;line-height:1.3}
.kp-action-arrow{position:relative;z-index:1;margin-left:auto;font-size:1.35rem;font-weight:800;line-height:1;opacity:.92}
.hero-actions{display:flex;gap:12px;align-items:center}.hero-actions .button{display:inline-flex;align-items:center;gap:10px}.section-subtitle{margin:7px 0 0;color:var(--kp-muted);max-width:700px}.resource-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.resource-card{display:flex;align-items:center;gap:14px;background:#fff;border-radius:20px;padding:20px;box-shadow:var(--kp-shadow);color:var(--kp-ink);border:1px solid rgba(32,36,58,.05);transition:transform .18s ease,box-shadow .18s ease}.resource-card:hover{text-decoration:none;transform:translateY(-3px);box-shadow:0 16px 34px rgba(32,36,58,.12)}.resource-icon{width:52px;height:52px;flex:0 0 52px;border-radius:16px;display:grid;place-items:center;font-size:1.55rem;background:#f0edff}.resource-card-content{display:flex;flex-direction:column;gap:3px;min-width:0}.resource-card-content strong{font-size:1.08rem}.resource-card-content small{color:var(--kp-muted);line-height:1.45;font-size:.9rem}.resource-arrow{margin-left:auto;font-size:1.35rem;color:var(--kp-primary);font-weight:800}.resource-card-worksheet .resource-icon{background:#fff4d8}.resource-card-packets .resource-icon{background:#e8f6ff}.resource-card-activities .resource-icon{background:#eafaf2}.categories{display:flex;gap:10px;flex-wrap:wrap}.category-pill{background:#fff;padding:10px 14px;border-radius:999px;box-shadow:var(--kp-shadow);font-weight:700}.site-footer{background:#20243a;color:#e8eaf0;margin-top:50px}.footer-inner{max-width:1180px;margin:auto;padding:42px 20px;display:grid;grid-template-columns:2fr 1fr 1fr;gap:35px}.site-footer a{color:#fff}.footer-bottom{border-top:1px solid rgba(255,255,255,.12);padding:16px 20px;text-align:center;color:#b9bfd0}.pagination{margin:35px 0;display:flex;gap:8px}.pagination a,.pagination span{background:#fff;padding:8px 12px;border-radius:9px}.site-notice{background:#fff4d6;padding:12px 20px;text-align:center;font-size:.9rem}.search-form{display:flex;gap:10px;margin:20px 0}.search-form input{flex:1;padding:12px;border:1px solid #ddd;border-radius:10px}.screen-reader-text{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:900px){.story-grid{grid-template-columns:repeat(3,1fr)}.hero-inner{grid-template-columns:1fr}.footer-inner{grid-template-columns:1fr 1fr}}@media(max-width:680px){
 .site-header{position:sticky;top:0}
 .header-inner{padding:11px 16px;justify-content:flex-start;position:relative}
 .brand{font-size:1.25rem;white-space:nowrap}
 .menu-toggle{display:block;margin-left:auto;font-size:1rem;padding:9px 15px;border-radius:12px}
 .site-header nav{margin:0;padding:0}
 .nav-menu{display:none;position:absolute;left:0;right:0;top:100%;background:#fff;padding:10px 18px 16px;flex-direction:column;align-items:stretch;border-bottom:1px solid #eee;box-shadow:0 10px 24px rgba(0,0,0,.08);z-index:30}
 .nav-menu.is-open{display:flex}
 .nav-menu li{width:100%}
 .nav-menu a{display:block;padding:10px 4px}
 .hero{padding:38px 18px;border-radius:0 0 22px 22px}
 .hero h1{font-size:2rem}
 .hero p:not(.hero-kicker){font-size:1rem;line-height:1.55}

 .hero-actions .button{width:100%;justify-content:center}
 .resource-grid{grid-template-columns:1fr;gap:12px}
 .resource-card{padding:16px;border-radius:17px}
 .resource-icon{width:48px;height:48px;flex-basis:48px}
 .resource-card-content strong{font-size:1rem}
 .resource-card-content small{font-size:.84rem}
 .container{padding:0 16px}
 .section{padding:34px 0}
 .section-title{margin-bottom:16px}
 .section-title h2{font-size:1.45rem}
 .story-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .story-card{border-radius:14px}
 .story-card-body{padding:12px}
 .story-card h3{font-size:.98rem;line-height:1.35}
 .story-card p{font-size:.84rem;line-height:1.45}
 .story-card .button{font-size:.85rem;padding:9px 12px}
 .category-pill{padding:8px 11px;font-size:.88rem}
 .footer-inner{grid-template-columns:1fr;gap:18px}
 .page-wrap{padding:35px 16px}
 .content-card{padding:22px}
 .story-single{padding:30px 16px}
 .story-header{grid-template-columns:1fr;gap:24px}
 .story-header .cover{width:min(86vw,340px);max-width:340px;margin:0 auto}
 .story-header .story-meta{font-size:1rem}
 .story-header h1{font-size:2.25rem;line-height:1.12;margin:8px 0 18px}
 .story-actions{grid-template-columns:1fr;gap:12px;margin:22px 0}
 .kp-action{min-height:72px;padding:13px 15px;border-radius:17px;gap:12px}
 .kp-action-icon{flex-basis:43px;width:43px;height:43px;border-radius:13px}
 .kp-action-copy strong{font-size:1rem}
 .kp-action-copy small{font-size:.76rem}
 .kp-action-arrow{font-size:1.25rem}
 .kp-reader{margin-top:28px}
}/* v1.3 Paid PDF / UPI */
.kp-pay-box{margin:14px 0;max-width:600px;background:linear-gradient(145deg,#fff,#f4f1ff);border:1px solid rgba(108,92,231,.14);border-radius:16px;padding:13px 15px;box-shadow:0 8px 22px rgba(35,42,70,.07)}
.kp-pay-badge{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;background:#ece8ff;color:#5b4ad3;font-size:.68rem;font-weight:900;letter-spacing:.04em}.kp-pay-box h2{margin:7px 0 3px;font-size:1.15rem}.kp-pay-box>p{margin:0 0 8px;color:var(--kp-muted);font-size:.82rem;line-height:1.35}.kp-price-row{display:flex;align-items:baseline;gap:8px;margin:2px 0 9px}.kp-price-row strong{font-size:1.4rem;color:var(--kp-ink)}.kp-price-row span{color:var(--kp-muted);font-size:.74rem}.kp-pay-button{width:100%;min-height:46px;border:0;border-radius:13px;background:linear-gradient(135deg,#7a68ee,#5d4bd7);color:#fff;font-size:.98rem;font-weight:850;display:flex;align-items:center;justify-content:space-between;padding:0 14px;cursor:pointer;box-shadow:0 12px 24px rgba(108,92,231,.24);transition:transform .18s ease,filter .18s ease}.kp-pay-button:hover{transform:translateY(-2px);filter:saturate(1.08)}.kp-pay-button:disabled{opacity:.65;cursor:wait;transform:none}.kp-upi-note{margin-top:9px;text-align:center;font-size:.78rem;color:var(--kp-muted)}.kp-payment-note{display:block;margin-top:6px;color:#7a8194;line-height:1.3;font-size:.72rem}.kp-payment-status{margin-top:8px;font-size:.82rem;font-weight:700;color:#5b4ad3;min-height:1.3em}.kp-preview-note{margin-top:28px;padding:17px 19px;border-radius:16px;background:#fff;border:1px dashed #cfc9ff;color:var(--kp-muted)}
@media(max-width:680px){.kp-pay-box{padding:11px 12px;border-radius:14px;margin:12px 0}.kp-pay-box h2{font-size:1.08rem}.kp-pay-box>p{font-size:.78rem;margin-bottom:7px}.kp-price-row{margin-bottom:8px}.kp-price-row strong{font-size:1.3rem}.kp-price-row span{font-size:.7rem}.kp-pay-button{min-height:44px;border-radius:12px;font-size:.9rem}.kp-payment-note{font-size:.68rem;margin-top:5px}}

/* v1.3.1: direct Google Pay + paid-download layout */
.kp-pay-grid{display:block}
.kp-gpay-button{min-height:44px;border-radius:12px;background:#111;color:#fff;text-decoration:none;display:flex;align-items:center;gap:9px;padding:0 12px;box-shadow:0 10px 22px rgba(0,0,0,.15);transition:transform .18s ease,box-shadow .18s ease}
.kp-gpay-button:hover,.kp-gpay-button:focus-visible{color:#fff;text-decoration:none;transform:translateY(-2px);box-shadow:0 14px 28px rgba(0,0,0,.2)}
.kp-gpay-button>span:last-child{margin-left:auto;font-size:1.15rem;font-weight:800}
.kp-gpay-mark{width:28px;height:28px;border-radius:8px;background:#fff;color:#4285f4;display:grid;place-items:center;font-size:1.15rem;font-weight:900;font-family:Arial,sans-serif}
.kp-gpay-button span:nth-child(2){display:flex;flex-direction:column;line-height:1.2}
.kp-gpay-button strong{font-size:.82rem}.kp-gpay-button small{margin-top:2px;color:rgba(255,255,255,.72);font-size:.64rem}
@media(max-width:680px){.kp-gpay-button{min-height:42px;padding:0 11px}.kp-gpay-mark{width:27px;height:27px;font-size:1.05rem}.kp-gpay-button strong{font-size:.82rem}.kp-gpay-button small{font-size:.62rem}}

/* Resource landing pages */
.resource-landing{padding-top:36px;padding-bottom:70px}.resource-landing-hero{display:flex;gap:24px;align-items:center;padding:34px;border-radius:28px;background:linear-gradient(135deg,#f0edff,#fff);border:1px solid #e2def7;box-shadow:0 14px 40px rgba(63,52,120,.08)}.resource-landing-icon{width:92px;height:92px;border-radius:26px;display:grid;place-items:center;background:#eee9ff;font-size:48px;flex:0 0 92px}.resource-landing-hero h1{margin:0 0 10px;font-size:clamp(34px,6vw,58px);line-height:1.05}.resource-lead{margin:0;color:#667085;font-size:20px;line-height:1.6;max-width:760px}.resource-info-card{margin-top:24px;padding:28px 32px;border-radius:24px;background:#fff;border:1px solid #eceaf3;box-shadow:0 10px 30px rgba(20,24,40,.05)}.resource-info-card h2{margin:0 0 8px}.resource-info-card p{margin:0;color:#667085;font-size:18px;line-height:1.65}.resource-results{padding-top:30px}
@media(max-width:640px){.resource-landing-hero{padding:24px;gap:16px}.resource-landing-icon{width:68px;height:68px;flex-basis:68px;font-size:36px;border-radius:20px}.resource-lead{font-size:17px}.resource-info-card{padding:22px}.resource-info-card p{font-size:16px}}


/* v1.3.8: make FREE PDF download prominent on desktop/tablet without enlarging payment UI */
.kp-free-download{min-height:82px;padding:16px 20px;border-radius:18px}
.kp-free-download .kp-action-icon{flex-basis:48px;width:48px;height:48px}
.kp-free-download .kp-action-copy strong{font-size:1.12rem}
.kp-free-download .kp-action-copy small{font-size:.82rem}
.kp-free-download .kp-action-arrow{font-size:1.45rem}
@media(max-width:680px){.kp-free-download{min-height:72px;padding:13px 15px;border-radius:17px}.kp-free-download .kp-action-icon{flex-basis:43px;width:43px;height:43px}.kp-free-download .kp-action-copy strong{font-size:1rem}.kp-free-download .kp-action-copy small{font-size:.76rem}.kp-free-download .kp-action-arrow{font-size:1.25rem}}

/* v1.3.9: share + subscribe */
.kp-story-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:18px 0 0}.kp-story-tool{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;padding:8px 14px;border-radius:11px;border:1px solid #e2def7;background:#fff;color:var(--kp-ink);font-weight:800;font-size:.88rem;text-decoration:none;cursor:pointer;box-shadow:0 5px 14px rgba(35,42,70,.06)}.kp-story-tool:hover{text-decoration:none;transform:translateY(-1px)}.kp-share-button{color:#5b4ad3}.kp-subscribe-button{background:#6c5ce7;color:#fff;border-color:#6c5ce7}.kp-share-status{font-size:.78rem;color:#667085}.kp-subscribe-box{margin-top:18px;max-width:430px}.kp-subscribe-box h3{margin:0 0 3px}.kp-subscribe-box p{margin:0 0 10px;color:#b9bfd0;font-size:.86rem}.kp-subscribe-form{display:flex;gap:7px}.kp-subscribe-form input{min-width:0;flex:1;padding:10px 12px;border:1px solid rgba(255,255,255,.18);border-radius:9px;background:#fff;color:#263238}.kp-subscribe-form button{border:0;border-radius:9px;padding:10px 13px;background:#6c5ce7;color:#fff;font-weight:800;cursor:pointer}@media(max-width:680px){.kp-story-tools{margin-top:14px}.kp-story-tool{min-height:38px;padding:7px 12px;font-size:.82rem}.kp-subscribe-form{flex-direction:column}.kp-subscribe-form button{width:100%}}
