/* Shared PASCOM design system and shell. Individual pages may extend content styles. */
:root{color-scheme:light;--navy:#092b43;--deep:#061e34;--gold:#bd882b;--gold-light:#f2c96e;--ink:#102e48;--muted:#526679;--paper:#fffdf8;--line:#e3e1db;--site-width:1240px}
*{box-sizing:border-box}
body{margin:0;font-family:system-ui,-apple-system,"Segoe UI",sans-serif}
.site-header,.site-footer{background:var(--deep);color:#fff;font:400 16px/1.5 system-ui,-apple-system,"Segoe UI",sans-serif}
.site-header{position:sticky;top:0;z-index:100;display:block;padding:0;border:0;box-shadow:0 2px 8px #061e3426}
.site-header .wrap,.site-footer .wrap{width:min(var(--site-width),calc(100% - 64px));margin:auto}
.site-header .header-inner{min-height:106px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.site-header .brand{display:flex;align-items:center;flex:0 1 370px;min-width:0;text-decoration:none}
.site-header .brand .pascom-logo{display:block;width:100%;max-width:360px;height:auto;object-fit:contain}
.site-header .main-nav{margin:0;display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:clamp(13px,2vw,30px)}
.site-header .main-nav a{display:block;font:650 14px/1.5 system-ui,sans-serif;padding:8px 0;border:0;border-bottom:2px solid transparent;border-radius:0;color:#fff;background:transparent;white-space:nowrap;text-decoration:none}
.site-header .main-nav a:hover,.site-header .main-nav a[aria-current=page]{color:var(--gold-light)}
.site-header .main-nav a[aria-current=page]{border-bottom-color:var(--gold-light)}
.site-header a:focus-visible,.site-footer a:focus-visible{outline:3px solid var(--gold-light);outline-offset:4px}
.site-footer{display:block;position:static;padding:30px 0 15px;text-align:left;border:0;border-bottom:6px solid var(--gold)}
.site-footer .footer-grid{display:grid;grid-template-columns:1.15fr 1fr .75fr;gap:35px}
.site-footer .footer-grid>div+div{border-left:1px solid #d4b77377;padding-left:26px}
.site-footer .footer-brand img{display:block;width:245px;max-width:100%;height:auto}
.site-footer .footer-brand p{font-weight:600;margin-top:8px}
.site-footer h3{font:700 17px/1.3 system-ui,sans-serif;color:white;margin:0 0 10px}
.site-footer p,.site-footer a{font:400 14px/1.5 system-ui,sans-serif;color:#dbe6ed;margin:0 0 6px;text-decoration:none}
.site-footer a{display:block}.site-footer a:hover{text-decoration:underline}
.site-footer .footer-bottom{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;border-top:1px solid #ffffff26;padding-top:15px;margin-top:20px;font-size:11px;color:#c3d0db}
.site-footer .footer-bottom a{font-size:11px;margin:0}
@media(max-width:900px){.site-header .wrap,.site-footer .wrap{width:calc(100% - 40px)}.site-header .header-inner{flex-wrap:wrap;justify-content:center;gap:3px;padding:9px 0 12px}.site-header .brand{flex-basis:300px}.site-header .main-nav{justify-content:center;gap:16px}.site-footer .footer-grid{gap:20px}}
@media(max-width:560px){.site-header .wrap,.site-footer .wrap{width:calc(100% - 28px)}.site-header .header-inner{min-height:0}.site-header .brand{flex-basis:260px}.site-header .main-nav{gap:8px 14px}.site-header .main-nav a{font-size:12px;padding:5px 0}.site-footer .footer-grid{grid-template-columns:1fr;gap:16px}.site-footer .footer-grid>div+div{border-left:0;border-top:1px solid #ffffff26;padding:14px 0 0}}
/* Course reader: the same header and footer, compact footer presentation. */
@media screen {
 .page-module{height:100dvh;display:grid;grid-template-rows:auto auto minmax(0,1fr) auto auto;overflow:hidden}
 .page-module .layout{min-height:0;height:100%;width:100%}
 .page-module .site-footer{padding:4px 0;border-bottom-width:3px}
 .page-module .site-footer .footer-grid{display:none}
 .page-module .site-footer .footer-bottom{margin:0 auto;padding:3px 0;border:0;gap:5px 12px}
}
.module-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:7px clamp(12px,3vw,40px);background:#e8e4da;color:var(--ink);font:600 14px/1.3 system-ui,sans-serif;border-bottom:1px solid var(--line)}
.module-toolbar .back-link{color:var(--ink);font-size:13px}
.module-toolbar button.secondary{background:#fff;color:var(--navy);padding:6px 12px}
.lesson-controls{background:var(--navy);color:#fff;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:10px clamp(12px,3vw,40px)}
@media(max-width:760px){.module-toolbar{padding:4px 10px;font-size:11px}.module-toolbar .header-actions{gap:6px}.module-toolbar .back-link{font-size:11px}.module-toolbar button.secondary{font-size:11px;padding:5px 7px}.lesson-controls{gap:7px;padding:8px 10px}.lesson-controls .progress{gap:4px}.lesson-controls .progress span{white-space:nowrap}.page-module .site-footer .footer-bottom>span{display:none}}
@media print{.site-header,.site-footer,.module-toolbar,.lesson-controls{display:none!important}}

/* Parish uses its own horizontal artwork within the shared shell. */
.site-header .parish-brand,.site-footer .parish-brand{display:flex;align-items:center;color:white;text-decoration:none}
.site-header .parish-brand{flex:0 1 360px}
.site-header .parish-brand .parish-logo,.site-footer .parish-brand .parish-logo{display:block;width:100%;height:auto;object-fit:contain}
.site-footer .parish-brand{max-width:320px;margin-bottom:12px}
@media(max-width:900px){.site-header .parish-brand{flex-basis:300px}}
@media(max-width:560px){.site-header .parish-brand{justify-content:center;flex-basis:290px;max-width:100%}}

/* Keep anchored content clear of the shared persistent header. */
@media screen{html{scroll-padding-top:135px}}
@media screen and (max-width:900px){html{scroll-padding-top:190px}}
@media screen and (max-width:560px){html{scroll-padding-top:210px}}

.cms-editorial-image{display:block;max-width:100%;height:auto;margin:0 auto 1rem;border-radius:10px}

.cms-background-replaced{background-image:none!important;background-color:#fff}
.cms-background-replaced .cms-card-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;margin:0;border-radius:inherit;pointer-events:none}
.cms-background-replaced:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#fff 40%,#fff9 74%,#fff2);pointer-events:none}
.cms-background-replaced>div{z-index:1}
.cms-slot-image{max-width:100%;max-height:480px;object-fit:contain}
img[hidden]{display:none!important}

.cms-hero-replaced{position:relative;isolation:isolate;overflow:hidden;background-image:none!important;background-color:#03254a!important}
.cms-hero-replaced:before{background:none!important}
.cms-hero-replaced .cms-card-background,.cms-future-replaced .cms-card-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;margin:0;pointer-events:none;z-index:0}
.cms-hero-replaced>div{position:relative;z-index:2}
.cms-hero-replaced:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#03254ae0,#03254a44);z-index:1;pointer-events:none}
.cms-future-replaced{position:relative;isolation:isolate;background-image:none!important;overflow:hidden}
.cms-future-replaced:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,#f7f7f4a8,#f9f9f8 70%);z-index:1;pointer-events:none}
.cms-future-replaced>div{position:relative;z-index:2}

.cms-page-blocks,.cms-lesson-blocks{display:grid;gap:18px}.cms-added-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:16px}.cms-added-section,.cms-added-card{padding:20px;border:1px solid #dce1e7;border-radius:12px;background:#fff;color:#122e45}.cms-added-section h3,.cms-added-card h3{margin-bottom:12px}.cms-added-card img{max-height:240px;object-fit:contain}.cms-added-section img{max-height:480px;object-fit:contain}
