/* Shared public chrome and behaviour hooks (no inline scripts, strict CSP friendly) */
body.pub{margin:0;background:#F2F4F3;font-family:'Instrument Sans',system-ui,sans-serif;color:#0F1B2D;overflow-x:hidden}
.skip{position:absolute;left:-999px;top:8px;background:#E09A2D;color:#0F1B2D;padding:10px 16px;border-radius:8px;z-index:100}.skip:focus{left:8px}
.pub-root{overflow-x:hidden}
.pub-head{position:fixed;top:0;left:0;right:0;z-index:60;box-sizing:border-box;padding:18px max(32px,calc((100% - 1360px)/2 + 32px));display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:18px;transition:background-color .3s ease,padding .3s ease,box-shadow .3s ease}
.pub-head.scrolled{background:rgba(15,27,45,.94);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);padding-top:10px;padding-bottom:10px;box-shadow:0 8px 30px -12px rgba(0,0,0,.45)}
.pub-head-space{flex:none;height:82px}
.pub-social{flex-basis:100%;display:flex;justify-content:center;align-items:center;gap:12px;margin-top:6px}
.pub-foot .pub-social .soc{margin:0}.pub-social .soc{display:inline-flex;align-items:center;justify-content:center;width:28px;height:28px;box-sizing:border-box;border-radius:50%;border:1px solid rgba(174,185,196,.55);color:#AEB9C4;transition:color .2s ease,border-color .2s ease,background-color .2s ease}
.pub-social .soc:hover{color:#F2F4F3;border-color:#F2F4F3;background:rgba(242,244,243,.08)}
.pub-social .soc:focus-visible{outline:2px solid #F2F4F3;outline-offset:2px}
.pub-social svg{display:block;transition:transform .3s ease}
@media(max-width:860px){.pub-head{padding-left:20px;padding-right:20px}.pub-head.open-nav{background:rgba(15,27,45,.97)}}
.pub-head .brand{display:flex;align-items:center;gap:12px;color:#F2F4F3;text-decoration:none}
.pub-head .brand-name{display:flex;flex-direction:column;font-family:'Instrument Sans',sans-serif;font-weight:400;font-size:18px;line-height:1.15;letter-spacing:-.005em}
@media(max-width:420px){.pub-head .brand-name{font-size:15px}.pub-head .brand .logo-img{width:38px!important;height:38px!important}}
.pub-head nav{display:flex;flex-wrap:wrap;align-items:center;gap:24px;font-size:15px}
.pub-head nav .navlink{color:#F2F4F3}.pub-head nav .navlink.cur:after,.pub-head nav .navlink:hover:after{right:0}
.pub-head .portal-link{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border-radius:999px;background:rgba(242,244,243,.12);border:1px solid rgba(242,244,243,.35);color:#F2F4F3;text-decoration:none;font-weight:600;transition:background .2s}
.pub-head .portal-link:hover{background:rgba(242,244,243,.24);color:#fff}
.burger{display:none;background:none;border:1px solid rgba(242,244,243,.4);border-radius:12px;width:46px;height:46px;cursor:pointer;flex-direction:column;justify-content:center;align-items:center;gap:5px}
.burger span{display:block;width:20px;height:2px;background:#F2F4F3}
@media(max-width:860px){.burger{display:flex}.pub-head nav{display:none;width:100%;flex-direction:column;align-items:flex-start;gap:6px;padding:12px 0}.pub-head nav.open{display:flex}.pub-head nav a{min-height:44px;display:flex;align-items:center}}
.pub-foot{background:#0F1B2D;color:#8FA3B3;padding:44px 32px;font-size:14px;line-height:1.6}
.pub-foot .inner{max-width:1360px;margin:0 auto;display:flex;flex-wrap:wrap;justify-content:space-between;gap:22px}
.pub-foot a{color:#C9D6DF;margin-right:16px}.pub-foot p{margin:4px 0}.pub-foot b{color:#F2F4F3}
.hero-slide{position:absolute;inset:0;opacity:0;transition:opacity 1.6s ease}.hero-slide.on{opacity:1}
[hidden]{display:none!important}
.toast{position:fixed;left:50%;bottom:28px;transform:translateX(-50%);z-index:90;background:#0F1B2D;color:#F2F4F3;padding:14px 22px;border-radius:14px;box-shadow:0 12px 40px -10px rgba(0,0,0,.5)}
.pill-err{color:#A3221B;font-size:14px;margin-top:8px}
.form-card label{display:block;font-size:14px;font-weight:600;margin:14px 0 6px}
.form-card input,.form-card select,.form-card textarea{width:100%;box-sizing:border-box;min-height:48px;padding:10px 14px;border-radius:14px;border:1px solid #C9D6DF;background:#fff;font:inherit;color:#0F1B2D}
.form-card textarea{min-height:110px}.form-card input:focus,.form-card select:focus,.form-card textarea:focus{outline:2px solid #E09A2D;border-color:#E09A2D}
.btn-pub{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 24px;border-radius:999px;background:#E09A2D;color:#0F1B2D;font:600 15px 'Instrument Sans',sans-serif;border:0;cursor:pointer;text-decoration:none;transition:transform .2s,box-shadow .2s}
.btn-pub:hover{transform:translateY(-2px);box-shadow:0 10px 24px -10px rgba(224,154,45,.8)}.btn-pub[disabled]{opacity:.6;cursor:wait}
.hp-field{position:absolute;left:-9999px;opacity:0;height:0;overflow:hidden}
.lb-open{overflow:hidden}
.lb{position:fixed;inset:0;z-index:80;background:rgba(15,27,45,.94);display:flex;align-items:center;justify-content:center;padding:24px}
.lb[hidden]{display:none}.lb .lbimg{max-width:min(1100px,92vw);max-height:80vh;width:100%;aspect-ratio:3/2;border-radius:20px}
.lb button{position:absolute;background:rgba(242,244,243,.14);color:#fff;border:0;border-radius:50%;width:52px;height:52px;font-size:22px;cursor:pointer}
.lb .x{top:20px;right:20px}.lb .p{left:20px;top:50%}.lb .n{right:20px;top:50%}
@media (prefers-reduced-motion:reduce){*{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
/* ministries accordion */
.acc{flex:1 1 110px;transition:flex .6s cubic-bezier(.2,.7,.2,1);position:relative;overflow:hidden;min-height:520px;min-width:110px;border-radius:28px;border:0;padding:0;cursor:pointer;text-align:left;color:#F2F4F3;font-family:'Instrument Sans',sans-serif}
.acc[aria-expanded=true]{flex:6 1 440px}
.acc .vert{position:absolute;left:22px;bottom:26px;z-index:2;writing-mode:vertical-rl;transform:rotate(180deg);font-family:'Bricolage Grotesque',sans-serif;font-weight:600;font-size:24px;opacity:1;transition:opacity .3s}
.acc[aria-expanded=true] .vert{opacity:0}
.acc .body{position:absolute;left:0;right:0;bottom:0;z-index:2;padding:32px;opacity:0;transform:translateY(30px);transition:opacity .5s .15s,transform .5s .15s}
.acc[aria-expanded=true] .body{opacity:1;transform:none}
.acc[hidden]{display:none}
.form-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
@media(max-width:700px){.acc{min-height:120px;flex:1 1 100%}.acc[aria-expanded=true]{min-height:420px;flex:1 1 100%}.acc .vert{writing-mode:horizontal-tb;transform:none;left:20px;bottom:20px}}
/* event flip cards and registration dialog */
.card .flip{position:relative;display:block;width:100%;height:100%;border-radius:26px;transform-style:preserve-3d;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.card[aria-pressed=true] .flip{transform:rotateY(180deg)}
.card[hidden],[data-day][hidden]{display:none}
.reg-dialog{border:0;border-radius:26px;padding:0;max-width:440px;width:92vw;box-shadow:0 40px 80px -20px rgba(15,27,45,.6)}.reg-dialog::backdrop{background:rgba(15,27,45,.7);backdrop-filter:blur(4px)}
.reg-dialog .form-card{padding:28px}
.faq .ans{grid-template-rows:0fr}.faq button[aria-expanded=true]+.ans{grid-template-rows:1fr}.faq button[aria-expanded=true] .plus{transform:rotate(45deg)}

.logo-badge{background:#fff;border-radius:50%;padding:3px;box-sizing:border-box;box-shadow:0 2px 8px rgba(0,0,0,.18)}

/* performance: promote animated layers and pause them when off screen */
.ph .tex,.ph .tex:before,.ph .tex:after{will-change:transform;backface-visibility:hidden}
.ph.off .tex,.ph.off .tex:before,.ph.off .tex:after{animation-play-state:paused}
.ph .tex:before,.ph .tex:after{filter:blur(28px)}
img,.ph{content-visibility:visible}
