/*
Theme Name: Potters House Derby
Version: 1.0.0
Description: Faithful, lightweight migration of the church's Squarespace website. Native WordPress pages, local fonts and no page builder.
Author: Potters House Derby
Requires at least: 6.6
Requires PHP: 8.0
License: GPL-2.0-or-later
Text Domain: phd-derby
*/
@font-face{font-family:Manrope;src:url(assets/manrope.woff2) format('woff2');font-style:normal;font-weight:200 800;font-display:swap}
@font-face{font-family:'Nunito Sans';src:url(assets/nunito-sans.woff2) format('woff2');font-style:normal;font-weight:200 900;font-display:swap}
:root{--ph-site-max-width:2000px;--ph-site-gutter:4vw;--ph-mobile-site-gutter:6vw;--ph-ink:#212e21;--ph-red:#f01238;--ph-blue:#59b1d9}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;color:var(--ph-ink);background:#fafafa;font-family:'Nunito Sans',Arial,sans-serif;font-size:16px;line-height:1.5}a{color:inherit;text-underline-offset:4px}a:focus-visible,button:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--ph-red);outline-offset:4px}button,input,textarea,select{font:inherit}button{cursor:pointer}button:disabled{cursor:default}img{max-width:100%;height:auto}h1,h2,h3,h4,.ph-h1{font-family:Manrope,Arial,sans-serif;font-weight:500;line-height:1.2;letter-spacing:-.02em;margin:0 0 1.5rem}h1,.ph-h1{font-size:clamp(36px,4.1vw,64px)}h2{font-size:clamp(30px,3vw,44.8px)}h3{font-size:clamp(25px,2.4vw,35.2px)}h4{font-size:25.6px}p{margin:0 0 1rem}p:last-child{margin-bottom:0}strong{font-weight:700}
.ph-skip{position:absolute;left:1rem;top:-200px;z-index:99999;background:white;padding:12px}.ph-skip:focus{top:1rem}.ph-header{position:sticky;top:0;z-index:100;background:#fafafa;box-shadow:0 10px 18px #212e2120;border-bottom:1px solid #212e2160}.admin-bar .ph-header{top:32px}.ph-nav-wrap{min-height:100px;padding:22px 4vw;display:flex;align-items:center;justify-content:space-between;gap:28px}.ph-logo{display:block;width:52px;height:48px;object-fit:contain}.ph-nav{display:flex;gap:24px;align-items:center}.ph-nav a{text-decoration:none;font-size:16px}.ph-nav a[aria-current=page]{text-decoration:underline}.ph-nav .ph-button{margin-left:0}.ph-button{display:inline-flex;align-items:center;justify-content:center;padding:17px 22px;min-height:54px;border:0;border-radius:10px;background:var(--ph-red);color:white;text-decoration:none;font-family:'Nunito Sans',sans-serif;font-weight:400;line-height:1.2}.ph-button:hover{background:#cd0d2f}.ph-button:disabled{opacity:.8}.ph-menu-toggle{display:none}.ph-header-blue{background:var(--ph-blue);color:white}.ph-header-blue .ph-button{background:#fafafa;color:#212e21}
.ph-section{background:#fafafa}.ph-theme-dark{background:var(--ph-blue)}.ph-theme-white{background:#fafafa}.ph-theme-light{background:white}.ph-content{padding:0}.ph-grid{position:relative}.ph-cell{position:relative;min-width:0;min-height:0}.ph-block{display:flex;flex-direction:column;height:100%;width:100%;justify-content:flex-start}.ph-panel{background:#fafafa;padding:6%;color:#212e21}.ph-original-photo{display:block;width:100%;height:100%;object-fit:contain}.ph-accordion{border-top:1px solid #212e21}.ph-accordion:last-child{border-bottom:1px solid #212e21}.ph-accordion summary{list-style:none;padding:30px 32px 30px 0;font-family:Manrope,Arial,sans-serif;font-size:25.6px;position:relative;cursor:pointer}.ph-accordion summary::-webkit-details-marker{display:none}.ph-accordion summary:after{content:'+';position:absolute;right:0;font-size:24px;line-height:1}.ph-accordion[open] summary:after{content:'−'}.ph-accordion>div{max-width:70%;padding-bottom:30px}.ph-map{border:0;width:100%;height:100%;min-height:320px}.ph-giving-title{font-size:clamp(48px,7vw,110px);line-height:1;letter-spacing:-.045em;text-align:center;margin:0 0 56px}.ph-impact{position:relative;display:inline-block}.ph-impact:after{content:'';position:absolute;inset:-.05em -.17em -.12em;border:5px solid var(--ph-red);border-radius:50%;transform:rotate(-3deg);pointer-events:none}.ph-center{text-align:center}.ph-note{font-size:14px;margin-top:12px}.ph-footer{padding:60px 4vw;background:white;display:grid;grid-template-columns:2.4fr .7fr .7fr;gap:32px}.ph-footer h2{margin-bottom:20px}.ph-footer h4{margin-bottom:16px}.ph-footer a{display:inline-block}.ph-watch-extra .ph-container{max-width:1180px;margin:auto;padding:48px 32px}.ph-watch-extra p{max-width:720px}
.phd-form{width:100%}.phd-form label{display:block;margin-bottom:7px}.phd-form input:not([type=hidden]),.phd-form select,.phd-form textarea{width:100%;padding:12px;border:1px solid #a3aaa3;background:#fff;color:#212e21;border-radius:0;min-height:46px}.phd-form textarea{min-height:130px;resize:vertical}.phd-form .phd-field,.phd-form .phd-form-name{margin-bottom:22px}.phd-form-name{display:grid;grid-template-columns:1fr 1fr;gap:20px}.phd-form-status{padding:14px;margin-bottom:20px;border-left:4px solid var(--ph-red);background:#f4f5f1}.phd-form-honeypot{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.phd-form .phd-field-help{font-size:14px;margin:4px 0 8px}.ph-empty{padding:80px 4vw}.ph-empty h1{font-size:42px}
@media(max-width:767px){.admin-bar .ph-header{top:46px}.ph-nav-wrap{min-height:87px;padding:22px 6vw}.ph-logo{width:36px;height:38px}.ph-menu-toggle{display:block;background:transparent;border:0;padding:12px;color:inherit;font-size:25px}.ph-nav{display:none;position:absolute;top:100%;left:0;width:100%;padding:30px 6vw;background:inherit;background-color:#fafafa;color:#212e21;flex-direction:column;align-items:stretch;gap:22px;box-shadow:0 10px 20px #0002}.ph-nav[data-open=true]{display:flex}.ph-nav a{font-size:24px}.ph-nav .ph-button{font-size:16px}.ph-header-blue .ph-nav{background:var(--ph-blue);color:white}.ph-footer{grid-template-columns:1fr;padding:36px 6vw;gap:28px}.ph-footer h2{font-size:34px}.ph-accordion>div{max-width:100%}.ph-giving-title{font-size:clamp(44px,10vw,72px)}.ph-map{min-height:300px}.phd-form-name{gap:14px}.ph-watch-extra .ph-container{padding:36px 22px}}
.phd-form-name{border:0;padding:0;min-width:0}.phd-form-name legend{padding:0 0 8px}.phd-form p{margin-bottom:22px}.phd-form [id$=message-help]{display:block;font-size:14px;margin-bottom:8px}
.ph-original-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
h1,.ph-h1{font-size:min(calc(3.6vw + 16px),88px)}h2{font-size:min(calc(2.16vw + 16px),59.2px)}h3{font-size:min(calc(1.44vw + 16px),44.8px)}h4{font-size:min(calc(.72vw + 16px),30.4px)}:root{--ph-blue:hsl(199.38,63.73%,60%)}
@media(max-width:767px){h1,.ph-h1{font-size:calc(.036 * min(100vh,900px) + 16px)}h2{font-size:calc(.0216 * min(100vh,900px) + 16px)}h3{font-size:calc(.0144 * min(100vh,900px) + 16px)}h4{font-size:calc(.0072 * min(100vh,900px) + 16px)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}


/* Original Squarespace hand-drawn impact highlight, preserved as a local SVG data image. */
.ph-impact:after{border:0;border-radius:0;transform:none;inset:-.3em -.15em -.14em;background:url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%22-12%20-6%20382%20162%22%20preserveAspectRatio%3D%22none%22%3E%3Cpath%20d%3D%22M119.85%2C141.3%20C195.534%2C148.076%20361%2C139.76%20361%2C75.08%20C361%2C20.41%20251.926%2C0%20174.016%2C0%20S-6.29%2C20.41%20-6.29%2C73.232%20S79.411%2C155.006%20264.54%2C148.076%22%20fill%3D%22none%22%20stroke%3D%22%23ed1038%22%20stroke-width%3D%224%22%2F%3E%3C%2Fsvg%3E") center/100% 100% no-repeat}

/* QA: readable contrast, narrow-phone forms and content-driven About spacing. */
:root{--ph-red:#d80e32}
.ph-header-blue,.ph-header-blue .ph-nav{color:var(--ph-ink)}
.ph-header-blue a:focus-visible,.ph-header-blue button:focus-visible{outline-color:var(--ph-ink)}
.phd-btn:not(.phd-btn-secondary){background:var(--ph-red)}
.ph-footer>*{min-width:0}.ph-footer a{overflow-wrap:anywhere;min-height:44px;padding-top:9px;padding-bottom:9px}
@media(max-width:767px){
.ph-section .ph-grid-6ad7791dc29a551967dcd306,.ph-section .ph-grid-6ad7791dc29a551967dcd30a{display:flex;flex-direction:column;gap:24px;padding:36px 6vw}
.ph-section .ph-grid-6ad7791dc29a551967dcd306>.ph-cell,.ph-section .ph-grid-6ad7791dc29a551967dcd30a>.ph-cell{width:100%;height:auto}
.ph-section .ph-grid-6ad7791dc29a551967dcd306 .ph-block,.ph-section .ph-grid-6ad7791dc29a551967dcd30a .ph-block{height:auto}
.ph-section .ph-grid-6ad7791dc29a551967dcd306 .ph-cell-18172152609932bbe1e4{aspect-ratio:5/4}
.ph-section .ph-grid-6ad7791dc29a551967dcd306 h1,.ph-section .ph-grid-6ad7791dc29a551967dcd30a h2{margin-bottom:0}
.ph-accordion summary{font-size:clamp(21px,6vw,25.6px)}
}
@media(max-width:400px){.phd-form-name{grid-template-columns:1fr;gap:0}.phd-form-name p:last-child{margin-bottom:0}}

@media(max-width:767px){.ph-nav{max-height:calc(100vh - 100px);overflow-y:auto}.admin-bar .ph-nav{max-height:calc(100vh - 146px)}}

/* Content refinements: natural-height About, visitor information and privacy. */
.ph-shell{max-width:1244px;margin:0 auto;padding:64px 32px}
.ph-about-intro{background:var(--ph-blue)}.ph-about-intro-grid{display:grid;grid-template-columns:1.05fr 1fr;align-items:center;gap:48px}
.ph-about-copy{background:#fafafa;padding:32px}.ph-about-copy h1{font-size:clamp(36px,4vw,58px)}
.ph-about-intro-grid>img{display:block;width:100%;height:auto;aspect-ratio:5/4;object-fit:contain}
.ph-about-vision{display:grid;grid-template-columns:1fr 2fr;gap:48px}.ph-about-vision .ph-accordion>div{max-width:100%}.ph-about-vision .ph-accordion summary{padding-top:22px;padding-bottom:22px}
.ph-about-beliefs{background:#f1f3ef}.ph-beliefs-list{display:grid;grid-template-columns:1fr 1fr;gap:18px 48px;padding-left:22px;margin:32px 0}.ph-beliefs-list li{padding-left:4px;break-inside:avoid}.ph-about-cta{margin-top:36px}
.ph-visit-intro{max-width:780px}.ph-visit-intro h2{font-size:30px}.ph-visit-times{display:grid;grid-template-columns:1fr 1fr 1.4fr;gap:24px;padding:28px;background:#f1f3ef;margin:36px 0 48px;border-radius:12px}.ph-visit-times h2{font-size:24px;margin-bottom:12px}
.ph-visitor-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}.ph-visitor-cards article{padding:26px;border:1px solid #dfe4da;border-radius:12px}.ph-visitor-cards h3{font-size:24px}
.ph-visit-enquiries{display:grid;grid-template-columns:1fr 1fr;gap:48px;margin-top:56px}.ph-visit-enquiries .ph-map{height:360px;min-height:300px;margin-bottom:20px}
.ph-policy{max-width:860px}.ph-policy h2{font-size:28px;margin-top:36px;margin-bottom:16px}.ph-policy-updated,.phd-privacy-note{font-size:14px;color:#465046}.phd-privacy-note{line-height:1.5}
@media(max-width:767px){.ph-shell{padding:36px 22px}.ph-about-intro-grid,.ph-about-vision,.ph-visit-enquiries{grid-template-columns:1fr;gap:28px}.ph-about-copy{padding:24px}.ph-about-intro-grid>img{grid-row:2}.ph-beliefs-list,.ph-visit-times,.ph-visitor-cards{grid-template-columns:1fr}.ph-beliefs-list{gap:18px}.ph-visit-times{margin:28px 0 36px;padding:24px}.ph-visitor-cards{gap:16px}.ph-visit-enquiries{margin-top:36px}.ph-policy h1{font-size:38px}.ph-policy h2{font-size:25px}.ph-policy{overflow-wrap:anywhere}}

/* Footer church-information pages. */
.ph-footer-policies{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:8px 28px;border-top:1px solid #dfe4da;padding-top:18px}
.ph-policy-safety{margin-top:36px;padding:24px;background:#f1f3ef;border-left:3px solid var(--ph-ink)}.ph-policy-safety h2{margin-top:0}
@media(max-width:767px){.ph-footer-policies{flex-direction:column;align-items:flex-start;gap:4px}}

/* Footer links and agency credit share the final row. */
.ph-footer-bottom{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 28px;border-top:1px solid #dfe4da;padding-top:18px;min-width:0}
.ph-footer-bottom .ph-footer-policies{border:0;padding:0;min-width:0}
.ph-footer-credit{margin-left:auto;white-space:nowrap}
@media(max-width:767px){.ph-footer-bottom{flex-direction:column;align-items:stretch}.ph-footer-credit{align-self:flex-end}}
