/* Project 400 v2.1.35. Strictly scoped to new public profile designs.
   Never overrides global headline, header, footer, Quick Access, Framix or existing phone CSS. */
.p400-experience[class*="p400-v2135-page-"] {--p400-visual-gold:#ba9661;--p400-visual-ink:#46212c;--p400-visual-tint:#f6f2eb;font-family:inherit}
.p400-experience[class*="p400-v2135-page-"] .p400-hero{padding:clamp(30px,5vw,78px);border-radius:2px;position:relative;overflow:hidden;align-items:center;min-height:350px}
.p400-experience[class*="p400-v2135-page-"] .p400-hero-copy{position:relative;z-index:2}
.p400-experience[class*="p400-v2135-page-"] .p400-hero .p400-display{font-size:clamp(36px,4.2vw,62px);line-height:1.08;letter-spacing:-.035em}
.p400-experience[class*="p400-v2135-page-"] .p400-hero .p400-lead{font-size:clamp(17px,1.7vw,23px);line-height:1.5;max-width:610px}
.p400-experience[class*="p400-v2135-page-"] .p400-cover{border-radius:2px;min-height:260px;overflow:hidden}
.p400-experience[class*="p400-v2135-page-"] .p400-cover img{width:100%;height:100%;object-fit:cover;display:block}
.p400-v2135-block-editor{padding:0 0 36px;--p400-section-space:58px}
.p400-v2135-block-editor .p400-v2135-story{padding:var(--p400-section-space) clamp(20px,3vw,42px);margin:0;max-width:none}
.p400-v2135-block-editor .p400-v2135-story>h2{font:500 clamp(29px,3.5vw,47px)/1.17 Georgia,serif;letter-spacing:-.03em;color:var(--p400-accent,#581d2b);margin:0 0 22px}
.p400-v2135-block-editor .p400-v2135-story>p{font-size:clamp(16px,1.65vw,19px);line-height:1.76;max-width:850px;margin:0}
.p400-v2135-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:17px;margin:28px 0 0}
.p400-v2135-card{min-width:0;padding:28px 27px;background:#fff;border:1px solid #e6ddd4;border-top:3px solid var(--p400-visual-gold);border-radius:4px;min-height:192px}
.p400-v2135-card h3{font:500 clamp(20px,2vw,28px)/1.22 Georgia,serif;color:var(--p400-visual-ink);margin:0 0 15px}
.p400-v2135-card p{font-size:15px;line-height:1.73;color:#554d47;margin:0}
.p400-v2135-story:nth-child(even){background:var(--p400-visual-tint)}
.p400-v2135-story:nth-child(odd){background:#fff}
.p400-v2135-story:nth-child(even) .p400-v2135-card{box-shadow:0 8px 26px rgba(62,43,32,.045)}
.p400-v2135-motto{padding:29px 22px;background:var(--p400-accent,#58202d);text-align:center;color:#fff}
.p400-v2135-motto p{color:inherit!important;font:500 clamp(18px,2vw,29px)/1.4 Georgia,serif;margin:0;letter-spacing:.035em}
.p400-v2135-related{padding:36px clamp(20px,3vw,42px) 55px;border-top:1px solid #e3d9cf}
.p400-v2135-related h2{font:500 clamp(25px,3vw,36px)/1.15 Georgia,serif;color:#5b1f30}
.p400-v2135-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:20px 0 35px}
.p400-v2135-related-card{padding:20px;background:#fff;border:1px solid #e6dcd5;display:flex;flex-direction:column;gap:10px;text-decoration:none!important;color:#45212a}
.p400-v2135-related-card figure{margin:-20px -20px 8px;aspect-ratio:16/9;overflow:hidden}
.p400-v2135-related-card figure img{width:100%;height:100%;object-fit:cover}
.p400-v2135-related-card>span{font-size:12px;color:#85706c}
.p400-v2135-related-card strong{font:500 19px/1.3 Georgia,serif}
/* CWA and CMA — paired editorial identities, not generic office cards. */
.p400-v2135-page-catholic-womens-association{--p400-accent:#264e67!important;--p400-visual-tint:#eef3f4;--p400-visual-ink:#25455e}
.p400-v2135-page-catholic-mens-association{--p400-accent:#5a2536!important;--p400-visual-tint:#f8f2eb;--p400-visual-ink:#5a2536}
.p400-v2135-page-catholic-womens-association .p400-hero{background:linear-gradient(110deg,#ebf1f3 0%,#dce9ec 64%,#c6dce4 100%)}
.p400-v2135-page-catholic-mens-association .p400-hero{background:linear-gradient(115deg,#f9eee3,#f2ddc6)}
.p400-v2135-page-catholic-womens-association .p400-v2135-card,.p400-v2135-page-catholic-mens-association .p400-v2135-card{border-top:0;border-left:4px solid var(--p400-accent)}
.p400-v2135-page-catholic-womens-association .p400-v2135-section-2,.p400-v2135-page-catholic-mens-association .p400-v2135-section-2{display:grid;grid-template-columns:1.15fr 1fr;gap:32px;align-items:center;background:#edf2f2}
.p400-v2135-page-catholic-mens-association .p400-v2135-section-2{background:#efe6df}
/* Missionary childhood — brighter and rounded but still Catholic and sober. */
.p400-v2135-page-pontifical-missionary-children{--p400-accent:#1d5664!important;--p400-visual-tint:#fcf3da;--p400-visual-ink:#254b54}
.p400-v2135-page-pontifical-missionary-children .p400-hero{background:#f8d976;min-height:380px;border-radius:22px 22px 60px 22px}
.p400-v2135-page-pontifical-missionary-children .p400-cover.p400-art{background:#f4b84e;border-radius:140px 140px 32px 32px}
.p400-v2135-page-pontifical-missionary-children .p400-v2135-card{border:0;border-bottom:6px solid #ddad49;border-radius:15px;background:#fff9e9;transform:rotate(-.3deg)}
.p400-v2135-page-pontifical-missionary-children .p400-v2135-card:nth-child(2){background:#e9f2ee;transform:rotate(.5deg)}
.p400-v2135-page-pontifical-missionary-children .p400-v2135-card:nth-child(3){background:#fff0e9}
/* Liturgy — strong liturgical purple, warm ivory, restrained gold. */
.p400-v2135-page-liturgical-ministry,.p400-v2135-page-liturgy-office{--p400-accent:#49344f!important;--p400-visual-tint:#f4efe8;--p400-visual-ink:#49344f}
.p400-v2135-page-liturgical-ministry .p400-hero,.p400-v2135-page-liturgy-office .p400-hero{background:linear-gradient(125deg,#30233d,#523954);color:#fff;min-height:400px}
.p400-v2135-page-liturgical-ministry .p400-hero :is(.p400-display,.p400-lead,.p400-eyebrow),.p400-v2135-page-liturgy-office .p400-hero :is(.p400-display,.p400-lead,.p400-eyebrow){color:#fff}
.p400-v2135-page-liturgical-ministry .p400-v2135-section-2,.p400-v2135-page-liturgy-office .p400-v2135-section-2{background:#30283b;color:#fff}
.p400-v2135-page-liturgical-ministry .p400-v2135-section-2 :is(h2,p),.p400-v2135-page-liturgy-office .p400-v2135-section-2 :is(h2,p){color:#fff}
.p400-v2135-page-liturgical-ministry .p400-v2135-card,.p400-v2135-page-liturgy-office .p400-v2135-card{border-top-color:#ad9a6b}
/* Vocations — elegant editorial journey. */
.p400-v2135-page-vocations-office,.p400-v2135-page-discern-your-vocation{--p400-accent:#29546a!important;--p400-visual-tint:#eaf2f4}
.p400-v2135-page-vocations-office .p400-hero,.p400-v2135-page-discern-your-vocation .p400-hero{background:#e8f0ef}
.p400-v2135-page-vocations-office .p400-v2135-card,.p400-v2135-page-discern-your-vocation .p400-v2135-card{border-top:0;border-left:5px solid #b6a477;border-radius:0}
/* Institutions — information-rich facility panels. */
.p400-v2135-page-catholic-schools,.p400-v2135-page-colleges-and-seminaries,.p400-v2135-page-hospitals-and-clinics,.p400-v2135-page-pastoral-and-retreat-centres,.p400-v2135-page-social-service-facilities{--p400-accent:#275b65!important;--p400-visual-tint:#edf2f1;--p400-visual-ink:#234d53}
.p400-v2135-page-hospitals-and-clinics{--p400-accent:#26776e!important;--p400-visual-tint:#ebf6f2}
.p400-v2135-page-pastoral-and-retreat-centres{--p400-accent:#6f5946!important;--p400-visual-tint:#f3ede2}
.p400-v2135-page-catholic-schools .p400-hero,.p400-v2135-page-hospitals-and-clinics .p400-hero{background:#e7f1ed}
.p400-v2135-page-catholic-schools .p400-v2135-card,.p400-v2135-page-hospitals-and-clinics .p400-v2135-card{border-top:0;border-left:4px solid var(--p400-accent)}
/* Caritas, justice and pastoral offices — documentary rather than promotional. */
.p400-v2135-page-caritas-ngong,.p400-v2135-page-justice-and-peace{--p400-accent:#6c4533!important;--p400-visual-tint:#f1ede4}
.p400-v2135-page-caritas-ngong .p400-hero{background:#ece8db}
.p400-v2135-page-caritas-ngong .p400-v2135-section-2{border-left:6px solid #a97b4a;padding-left:clamp(28px,5vw,70px)}
/* Safeguarding — clear, readable, authoritative. */
.p400-v2135-page-safeguarding-and-protection,.p400-v2135-page-report-a-safeguarding-concern,.p400-v2135-page-safeguarding-policies{--p400-accent:#274e60!important;--p400-visual-tint:#f0f4f5}
.p400-v2135-page-report-a-safeguarding-concern .p400-hero{background:#e7f0f2}
.p400-v2135-page-report-a-safeguarding-concern .p400-v2135-card:first-child{border-left:5px solid #b35d4d}
/* Other church bodies and congregation detail pages. */
.p400-style-congregation .p400-v2135-block-editor{--p400-visual-tint:#f4efe9}
.p400-v2135-block-editor .wp-block-group{box-sizing:border-box}
.p400-v2135-block-editor .wp-block-heading{overflow-wrap:anywhere}
@media(max-width:900px){.p400-v2135-card-grid,.p400-v2135-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.p400-v2135-page-catholic-womens-association .p400-v2135-section-2,.p400-v2135-page-catholic-mens-association .p400-v2135-section-2{grid-template-columns:1fr}}
@media(max-width:650px){.p400-experience[class*="p400-v2135-page-"] .p400-hero{padding:32px 22px;min-height:0}.p400-experience[class*="p400-v2135-page-"] .p400-hero .p400-display{font-size:clamp(34px,9vw,46px)}.p400-v2135-card-grid,.p400-v2135-related-grid{grid-template-columns:1fr}.p400-v2135-block-editor{--p400-section-space:32px}.p400-v2135-block-editor .p400-v2135-story{padding-left:20px;padding-right:20px}.p400-v2135-card{padding:23px;min-height:0}.p400-v2135-motto{padding:21px}.p400-experience[class*="p400-v2135-page-"] .p400-cover{min-height:170px}}
