/* ACAP Phill Adventure Journal | Scoped styles for Miniworld Kindergarten Pro */
.acap-phill{--ph-ink:#303d65;--ph-text:#596881;--ph-purple:#7d58b2;--ph-pink:#e760ad;--ph-sky:#cdeffc;--ph-cream:#fff9ec;--ph-line:#e5e3f4;color:var(--ph-ink);font-family:inherit;line-height:1.65;}
.acap-phill,.acap-phill *{box-sizing:border-box}
.acap-phill a{text-decoration:none}
.acap-phill h1,.acap-phill h2,.acap-phill h3{font-family:inherit!important;line-height:1.19!important;color:var(--ph-ink)!important;letter-spacing:-.02em!important}
.acap-phill h1{font-size:clamp(2.35rem,5vw,4.3rem)!important;font-weight:900!important;margin:0 0 17px!important}
.acap-phill h2{font-size:clamp(1.75rem,3vw,2.5rem)!important;font-weight:900!important;margin:0!important}
.acap-phill h3{font-size:clamp(1.16rem,2vw,1.37rem)!important;font-weight:850!important;margin:0 0 7px!important}
.acap-phill p{color:var(--ph-text);line-height:1.73;margin:0 0 13px}
.acap-phill .acap-phill-tag,.acap-phill .acap-phill-kicker{font-size:.77rem;letter-spacing:.10em;text-transform:uppercase;color:#8f5499;font-weight:850}
.acap-phill-hero{position:relative;display:grid;grid-template-columns:1.35fr .55fr;gap:40px;align-items:center;padding:48px clamp(25px,5vw,70px);background:linear-gradient(115deg,#e2f5ff 0%,#f8e8fb 58%,#fff6dc 100%);border:1px solid var(--ph-line);border-radius:28px;margin:16px 0 42px;overflow:hidden;box-shadow:0 14px 35px #5c5b8d10}
.acap-phill-hero:before{content:'✦';position:absolute;right:27%;top:12%;font-size:30px;color:#e7a3da;opacity:.65}
.acap-phill-hero p{font-size:1.06rem;max-width:670px;color:#4a5679}
.acap-phill-hero>a,.acap-phill-hero div>a{display:inline-block;color:#7043a3;font-weight:800;margin-top:10px}
.acap-phill-hero img{width:100%;max-width:255px;height:245px;object-fit:cover;border:9px solid white;border-bottom-width:20px;border-radius:7px;transform:rotate(4deg);box-shadow:0 9px 29px #35406a28;justify-self:center;background:white}
.acap-phill-area{max-width:1140px;margin:0 auto 50px}
.acap-phill-section-head{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:0 0 26px}
.acap-phill-section-head span{color:#8856a5;font-weight:850;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}
.acap-phill-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px;margin:12px 0 24px}
.acap-phill-card{min-width:0;background:#fff;border:1px solid #e7e5f2;border-radius:21px;overflow:hidden;box-shadow:0 6px 22px #62637e11;transition:transform .18s ease,box-shadow .18s ease}
.acap-phill-card:hover{transform:translateY(-4px);box-shadow:0 12px 28px #62637e21}
.acap-phill-photo-link{display:block;position:relative;aspect-ratio:4/3;background:linear-gradient(135deg,#d6efff,#fce8f1);overflow:hidden}
.acap-phill-card-photo{display:block;width:100%;height:100%;object-fit:cover;transition:transform .2s ease}
.acap-phill-card:hover .acap-phill-card-photo{transform:scale(1.035)}
.acap-phill-no-photo{display:flex;height:100%;justify-content:center;align-items:center;font-size:2.7rem}
.acap-phill-card-copy{padding:23px 23px 25px}
.acap-phill-card-copy h3 a{color:#303d65!important}
.acap-phill-card-copy .acap-phill-meta{margin:9px 0 13px}
.acap-phill-meta{font-size:.80rem;color:#75809b;line-height:1.5}
.acap-phill-card-copy p{font-size:.92rem;margin-bottom:11px}
.acap-phill-read{font-weight:850;color:#6b4da9!important;font-size:.93rem}
.acap-phill-actions{display:flex;justify-content:center;gap:12px;flex-wrap:wrap;margin:26px auto 6px}
.acap-phill-btn{display:inline-flex!important;align-items:center;justify-content:center;gap:8px;padding:12px 20px!important;border-radius:999px!important;font-size:.96rem!important;line-height:1.4!important;font-weight:850!important;cursor:pointer;border:2px solid transparent!important;text-align:center;transition:transform .15s ease,filter .15s ease;box-shadow:none!important}
.acap-phill-btn:hover{transform:translateY(-2px);filter:brightness(.98)}
.acap-phill-btn.primary{background:#7b54b7!important;color:#fff!important;border-color:#7b54b7!important}
.acap-phill-btn.secondary{background:#fff!important;color:#7b54b7!important;border-color:#d7c2ec!important}
.acap-phill-empty{padding:33px;text-align:center;background:linear-gradient(100deg,#f4faff,#fff7fb);border:2px dashed #d6c7e9;border-radius:19px;font-size:1.12rem}
.acap-phill-empty strong{display:block;margin:8px 0 6px;font-size:1.23rem}
.acap-phill-empty p{margin-bottom:0}
.acap-phill-privacy{margin:29px 0 0;padding:18px 20px;border-radius:14px;background:#f6f9ff;color:#65718b;font-size:.92rem;text-align:center}
.acap-phill-pagination{display:flex;flex-wrap:wrap;gap:8px;justify-content:center;margin:28px 0}
.acap-phill-pagination .page-numbers{padding:8px 14px;background:#f7f3ff;border:1px solid #e4d6f3;border-radius:10px;color:#6b469e;font-weight:700}
.acap-phill-pagination .current{background:#7952b1;color:white}
.acap-phill-form-area{max-width:800px;margin:0 auto 55px}
.acap-phill-panel{background:#fff;border:1px solid #e7e5f2;border-radius:24px;padding:clamp(22px,4vw,42px);box-shadow:0 13px 35px #545b9115}
.acap-phill-form-title{font-size:clamp(1.35rem,3vw,1.75rem);font-weight:900;margin-bottom:10px;color:#38456a}
.acap-phill-field{font-size:.97rem;font-weight:800;color:#465174;display:block;margin:19px 0 14px}
.acap-phill-field small{font-size:.80rem;font-weight:500;color:#858eaa;display:inline;margin-left:4px}
.acap-phill-field input,.acap-phill-field textarea{display:block;margin-top:7px;width:100%;background:#fcfcff!important;border:1.5px solid #d9d8e9!important;padding:13px 15px!important;font:inherit!important;font-weight:500!important;color:#364366!important;min-height:49px;line-height:1.4!important;border-radius:12px!important;outline:none!important;box-shadow:none!important}
.acap-phill-field input:focus,.acap-phill-field textarea:focus{border-color:#9067c1!important;box-shadow:0 0 0 3px #9974be22!important}
.acap-phill-field textarea{min-height:155px;resize:vertical}
.acap-phill-field input[type=file]{padding:15px!important;background:#f7f7ff!important;height:auto}
.acap-phill-two{display:grid;grid-template-columns:1fr 1fr;gap:14px}
.acap-phill-check{background:#f8f9ff;border:1px solid #e6e8f7;border-radius:14px;padding:17px 19px;margin:20px 0}
.acap-phill-check label{display:flex;align-items:flex-start;gap:10px;margin:8px 0;color:#505c7b;line-height:1.45;font-size:.92rem}
.acap-phill-check input{flex:none;margin-top:5px;min-width:16px;min-height:16px;accent-color:#8056b5}
.acap-phill-fine{font-size:.82rem!important;color:#7b849e!important;margin:12px 0 18px!important}
.acap-phill-notice{padding:15px 20px;margin:0 0 20px;border-radius:13px;font-weight:700}
.acap-phill-notice.success{background:#e7f9ee;color:#2d7451;border:1px solid #b4dfc4}
.acap-phill-notice.error{background:#fff0f0;color:#a73d42;border:1px solid #f2c5c7}
.acap-phill-bottom{text-align:center;padding:23px 0;color:#8087a2}
.acap-phill-bottom a{color:#7752aa;font-weight:750}
.acap-phill-hp{position:absolute!important;left:-99999px!important;height:0!important;width:0!important;overflow:hidden!important}
.acap-phill-story{padding:12px 0 40px;max-width:1000px;margin:auto}
.acap-phill-single-meta{font-size:.93rem;color:#777f97;margin:0 0 18px}
.acap-phill-journal{font-size:1.08rem;line-height:1.8;color:#4c5873;margin:0 0 27px}
.acap-phill-photo-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-top:20px}
.acap-phill-photo-gallery a{display:block;overflow:hidden;border-radius:16px;background:#f6f2ff;border:1px solid #e5e0ed}
.acap-phill-photo-gallery img{display:block;width:100%;height:auto;max-height:520px;object-fit:contain}
/* Keep the new journal pages spacious within the Miniworld page template. */
body:has(.acap-phill-shell) .page-main-header{display:none!important}
body:has(.acap-phill-shell) #innerpage-box .entry-content.row{display:block!important}
body:has(.acap-phill-shell) #innerpage-box .entry-footer{display:none!important}
@media (max-width:850px){.acap-phill-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.acap-phill-hero{grid-template-columns:1.4fr .7fr;gap:17px}.acap-phill-hero img{height:190px}}
@media (max-width:600px){.acap-phill-card-grid{grid-template-columns:1fr;gap:17px}.acap-phill-hero{grid-template-columns:1fr;padding:34px 23px;text-align:center}.acap-phill-hero img{max-width:210px;height:200px;grid-row:1}.acap-phill-section-head{justify-content:center;text-align:center}.acap-phill-actions{flex-direction:column}.acap-phill-actions .acap-phill-btn{width:100%}.acap-phill-two{grid-template-columns:1fr;gap:0}.acap-phill-photo-gallery{grid-template-columns:1fr}.acap-phill-panel{border-radius:18px}.acap-phill-hero h1{font-size:2.3rem!important}}
@media(prefers-reduced-motion:reduce){.acap-phill-card,.acap-phill-card-photo,.acap-phill-btn{transition:none!important}}

/* v1.1 | Phill story page: plugin-owned layout, no theme post sidebar */
#acap-phill-story-page{
 --aps-ink:#303d65;--aps-body:#566581;--aps-purple:#7952b3;--aps-pink:#e760ad;
 box-sizing:border-box;display:block;clear:both;width:100%;max-width:none;
 background:linear-gradient(180deg,#fffaff 0%,#fff 520px);color:var(--aps-ink);
 margin:0;padding:32px 0 88px;overflow:hidden;line-height:1.7;font-family:inherit;
}
#acap-phill-story-page *,#acap-phill-story-page *:before,#acap-phill-story-page *:after{box-sizing:border-box}
#acap-phill-story-page .aps-wrap{width:min(1160px,calc(100% - 42px));max-width:1160px;margin:0 auto}
#acap-phill-story-page a{text-decoration:none!important}
#acap-phill-story-page h1,#acap-phill-story-page h2,#acap-phill-story-page h3{
 font-family:inherit!important;letter-spacing:-.025em!important;color:#303d65!important;
 line-height:1.18!important;text-transform:none!important;
}
#acap-phill-story-page p{color:var(--aps-body);line-height:1.75}
#acap-phill-story-page .aps-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:10px;
 color:#7984a0;font-size:.86rem;margin:0 0 25px}
#acap-phill-story-page .aps-breadcrumb a{font-weight:800;color:#7552ae!important}
#acap-phill-story-page .aps-breadcrumb span[aria-hidden]{opacity:.45}
#acap-phill-story-page .aps-hero{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(230px,.68fr);
 align-items:center;gap:clamp(25px,5vw,65px);position:relative;
 background:linear-gradient(113deg,#e2f5ff 0%,#f3eafe 54%,#fff3df 100%);
 border:1px solid #e4dff5;border-radius:31px;padding:clamp(25px,4.5vw,58px);
 box-shadow:0 15px 42px rgba(64,65,114,.07);margin-bottom:38px;overflow:hidden}
#acap-phill-story-page .aps-hero:after{content:'✦';position:absolute;right:35%;top:6%;color:#e8b0e4;opacity:.8;font-size:31px;pointer-events:none}
#acap-phill-story-page .aps-hero-copy{position:relative;z-index:1;min-width:0}
#acap-phill-story-page .aps-eyebrow{display:block;color:#80519d;font-size:.77rem;
 font-weight:900;letter-spacing:.1em;margin-bottom:14px}
#acap-phill-story-page .aps-hero h1{font-size:clamp(2rem,4.5vw,3.9rem)!important;
 font-weight:900!important;overflow-wrap:anywhere;margin:0 0 14px!important;padding:0!important}
#acap-phill-story-page .aps-hero-lead{font-size:1.08rem!important;max-width:550px;margin:0 0 20px!important;color:#535c7b!important}
#acap-phill-story-page .aps-hero-tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 23px}
#acap-phill-story-page .aps-hero-tags span{display:inline-block;padding:7px 13px;border-radius:999px;
 background:#ffffffd9;border:1px solid #ebe4fa;color:#4e5876;font-weight:750;font-size:.82rem}
#acap-phill-story-page .aps-back-link{display:inline-flex;color:#6c489e!important;font-weight:850}
#acap-phill-story-page .aps-hero-photo{display:block;position:relative;width:100%;max-width:330px;
 transform:rotate(3deg);margin:7px auto!important;background:white;padding:10px 10px 20px;border-radius:6px;
 box-shadow:0 15px 30px #3e406c31;align-self:center;z-index:1}
#acap-phill-story-page .aps-hero-photo .aps-featured-img{display:block;width:100%;height:270px;
 object-fit:cover;object-position:center;border-radius:2px;background:#faf4fd}
#acap-phill-story-page .aps-hero-photo figcaption{color:#62637b!important;text-align:center;
 font-size:.78rem;line-height:1.4;margin-top:13px;font-weight:800}
#acap-phill-story-page .aps-tape{display:block;position:absolute;z-index:2;top:-17px;left:34%;
 width:90px;height:32px;transform:rotate(-8deg);background:#ffefb7a8;border:1px solid #f6e6a3}
#acap-phill-story-page .aps-story-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(245px,320px);
 align-items:start;gap:30px;margin-bottom:38px}
#acap-phill-story-page .aps-paper{position:relative;min-width:0;background:#fff;border:1px solid #e6e4f1;
 border-radius:25px;padding:clamp(24px,4.2vw,48px);box-shadow:0 12px 32px rgba(63,68,106,.06);
 margin:0;max-width:none;float:none;display:block}
#acap-phill-story-page .aps-chapter{color:#a05f9f;font-size:.80rem;letter-spacing:.08em;
 text-transform:uppercase;font-weight:900;display:flex;align-items:center;gap:8px;margin-bottom:11px}
#acap-phill-story-page .aps-chapter span{font-size:1.5rem}
#acap-phill-story-page .aps-paper h2{font-size:clamp(1.65rem,3vw,2.35rem)!important;
 font-weight:900!important;margin:0 0 22px!important}
#acap-phill-story-page .aps-journal-body{color:#4b5875;font-size:1.065rem;line-height:1.85;
 overflow-wrap:break-word;min-height:54px}
#acap-phill-story-page .aps-journal-body > :last-child{margin-bottom:0!important}
#acap-phill-story-page .aps-journal-body p{margin:0 0 18px!important;color:#4e5a76!important;
 line-height:1.85!important;font-size:inherit!important}
#acap-phill-story-page .aps-journal-body h2,#acap-phill-story-page .aps-journal-body h3{
 margin:24px 0 12px!important;font-weight:850!important}
#acap-phill-story-page .aps-journal-body img{max-width:100%;height:auto;border-radius:13px}
#acap-phill-story-page .aps-journal-body figure{max-width:100%;margin:24px 0}
#acap-phill-story-page .aps-journal-body a{color:#6945a6!important;text-decoration:underline!important}
#acap-phill-story-page .aps-journal-body blockquote{border-left:4px solid #d9bde9;
 margin:23px 0;padding:10px 20px;background:#fcf7ff;border-radius:0 12px 12px 0}
#acap-phill-story-page .aps-photo-section{margin-top:30px;padding-top:30px;border-top:1px dashed #dcd8ee}
#acap-phill-story-page .aps-photo-section h2{font-size:clamp(1.45rem,2.5vw,1.9rem)!important;margin-bottom:6px!important}
#acap-phill-story-page .aps-photo-section p{margin:0 0 20px}
#acap-phill-story-page .aps-photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
#acap-phill-story-page .aps-photos a{display:block;background:#f8f4ff;overflow:hidden;border-radius:14px;
 border:1px solid #e8e0f2;min-width:0;align-self:start}
#acap-phill-story-page .aps-photos img{display:block;max-width:100%;width:100%;height:auto;max-height:440px;object-fit:contain}
#acap-phill-story-page .aps-paper-footer{margin:34px 0 0;padding-top:20px;border-top:1px dashed #e4dcf1;
 font-size:.82rem;font-weight:800;letter-spacing:.03em;text-align:center;color:#9e8daf}
#acap-phill-story-page .aps-sidebar{position:relative;min-width:0;display:grid;gap:20px}
#acap-phill-story-page .aps-passport{border:2px dashed #c8b7e8;background:#f9f5ff;
 padding:26px;border-radius:22px;box-shadow:0 8px 27px #6455940b}
#acap-phill-story-page .aps-small-label{font-size:.72rem;font-weight:900;letter-spacing:.10em;color:#8a64b1}
#acap-phill-story-page .aps-passport h2{font-size:1.55rem!important;font-weight:900!important;
 margin:7px 0 9px!important}
#acap-phill-story-page .aps-stamp{height:76px;width:76px;border:3px solid #d0addc;border-radius:50%;
 display:grid;place-items:center;font-size:1.9rem;transform:rotate(-13deg);margin:10px auto 15px;background:#ffffff9e}
#acap-phill-story-page .aps-passport-field{padding:12px 0;border-top:1px solid #e6dff1}
#acap-phill-story-page .aps-passport-field small{display:block;font-size:.71rem;font-weight:850;
 color:#8a77a9;letter-spacing:.055em;text-transform:uppercase;margin-bottom:4px}
#acap-phill-story-page .aps-passport-field strong{font-size:.96rem;color:#454c71;display:block;overflow-wrap:anywhere}
#acap-phill-story-page .aps-side-note{font-size:.86rem;line-height:1.6;margin:19px 0 0!important;color:#71718c!important}
#acap-phill-story-page .aps-sidebar-links{background:white;border:1px solid #e7e4f1;border-radius:19px;padding:23px;box-shadow:0 8px 22px #4745650b}
#acap-phill-story-page .aps-sidebar-links h3{font-size:1.19rem!important;font-weight:900!important;margin:0 0 12px!important}
#acap-phill-story-page .aps-sidebar-links a{display:flex;align-items:center;justify-content:space-between;
 gap:10px;color:#704ca9!important;padding:12px 0;font-weight:820;font-size:.9rem;
 border-top:1px solid #f0edf7}
#acap-phill-story-page .aps-sidebar-links a span{color:#af95d0}
#acap-phill-story-page .aps-next{display:flex;align-items:center;justify-content:space-between;
 gap:22px;flex-wrap:wrap;padding:30px 36px;background:linear-gradient(115deg,#edf8ff,#fbedf7 58%,#fff6e7);
 border-radius:23px;border:1px solid #e8e1f6;margin:0}
#acap-phill-story-page .aps-next span{font-size:.76rem;font-weight:900;letter-spacing:.1em;color:#9056a5}
#acap-phill-story-page .aps-next h2{font-size:clamp(1.45rem,2.7vw,2rem)!important;
 font-weight:900!important;margin:5px 0 7px!important}
#acap-phill-story-page .aps-next p{margin:0!important;max-width:670px}
#acap-phill-story-page .aps-next .acap-phill-btn{flex:none}
@media(max-width:850px){
 #acap-phill-story-page .aps-story-grid{grid-template-columns:minmax(0,1fr)}
 #acap-phill-story-page .aps-sidebar{grid-template-columns:1fr 1fr}
 #acap-phill-story-page .aps-hero{grid-template-columns:minmax(0,1.2fr) minmax(180px,.75fr);gap:18px}
 #acap-phill-story-page .aps-hero-photo .aps-featured-img{height:230px}
}
@media(max-width:620px){
 #acap-phill-story-page{padding:20px 0 50px}
 #acap-phill-story-page .aps-wrap{width:calc(100% - 26px)}
 #acap-phill-story-page .aps-breadcrumb{font-size:.79rem;gap:6px;margin:0 4px 18px}
 #acap-phill-story-page .aps-hero{grid-template-columns:minmax(0,1fr);padding:25px 23px 32px;
 border-radius:22px;gap:28px;margin-bottom:22px}
 #acap-phill-story-page .aps-hero h1{font-size:clamp(2rem,9vw,3rem)!important}
 #acap-phill-story-page .aps-hero-photo{max-width:300px;width:min(100%,300px);grid-row:2;transform:rotate(2deg)}
 #acap-phill-story-page .aps-hero-photo .aps-featured-img{height:230px}
 #acap-phill-story-page .aps-hero:after{right:10%;top:4%}
 #acap-phill-story-page .aps-story-grid{gap:22px}
 #acap-phill-story-page .aps-paper{padding:26px 21px;border-radius:19px}
 #acap-phill-story-page .aps-photos{grid-template-columns:1fr}
 #acap-phill-story-page .aps-sidebar{grid-template-columns:1fr;gap:17px}
 #acap-phill-story-page .aps-next{padding:27px 22px}
 #acap-phill-story-page .aps-next .acap-phill-btn{width:100%}
}
@media(prefers-reduced-motion:reduce){#acap-phill-story-page *{scroll-behavior:auto!important}}

/* v1.2: visible multiple-photo uploader and editor photo album */
.acap-phill-photo-field {background:#faf8ff;border:2px dashed #d4c1eb;border-radius:18px;padding:22px!important}
.acap-phill-photo-field > label {display:block;font-size:1.02rem;font-weight:850;color:#455071}
.acap-phill-photo-field small {display:block;margin:5px 0 12px!important;font-weight:500!important;color:#6e7890!important}
.acap-phill-photo-field input[type=file]{width:100%;display:block;background:white!important;border:1px solid #e3ddf0!important;border-radius:11px;padding:12px!important}
.acap-phill-add-photo{display:inline-block;background:#fff!important;border:2px solid #cbb7e5!important;color:#70499f!important;border-radius:999px;padding:10px 18px;cursor:pointer;font-weight:800;line-height:1.4}
.acap-phill-add-photo:hover{background:#f2eaff!important}
.acap-phill-add-photo:disabled{opacity:.55;cursor:not-allowed}
.acap-phill-extra-file{display:flex;gap:12px;align-items:center;margin:12px 0}
.acap-phill-extra-file input{flex:1;min-width:0}
.acap-phill-remove-file{border:0;background:transparent;color:#8f4474;cursor:pointer;font-weight:750;padding:9px}
.acap-phill-photo-count{font-size:.86rem!important;margin:11px 0!important;color:#626a87!important}
.acap-phill-photo-count.has-error{font-weight:800!important;color:#a42d39!important}
.acap-phill-photo-preview{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:11px;margin:15px 0}
.acap-phill-photo-thumb{margin:0;padding:6px;border-radius:11px;background:white;border:1px solid #e4dced;min-width:0}
.acap-phill-photo-thumb img{display:block;width:100%;height:110px;object-fit:cover;border-radius:7px}
.acap-phill-photo-thumb figcaption{font-size:.70rem;color:#5a6381;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:6px 2px 2px}
@media(max-width:620px){.acap-phill-extra-file{align-items:stretch;flex-direction:column}.acap-phill-photo-field{padding:16px!important}}
