/* NJCA Site plugin styles. Colours come from the school uniform (navy, plaid blue) and the flyer gold. */
:root{--njca-navy:#102a6a;--njca-navy-d:#0a1c4a;--njca-blue:#2a4fa3;--njca-sky:#7f92c0;--njca-light:#e7edf8;--njca-cream:#fdf6e1;--njca-grey:#f0f2f5;--njca-gold:#eaad02;--njca-gold-d:#c99300;--njca-gold-l:#f6d77a;--njca-ink:#102a6a;--njca-text:#1d2433;--njca-muted:#5a6475}


/* 3D tilt */
.tilt{transition:transform .45s cubic-bezier(.2,.8,.2,1),box-shadow .45s;transform-style:preserve-3d;will-change:transform}
.tilt.t-on{box-shadow:0 30px 50px -24px rgba(16,42,106,.35)}

/* announcement ticker */
.njca-ticker{background:var(--njca-navy);color:#fff;font-size:14px;font-weight:700;overflow:hidden;padding:10px 0;position:relative;z-index:101}
.njca-ticker b{color:var(--njca-gold-l);padding:0 6px}
.njca-ticker a{color:#fff;text-decoration:underline;text-underline-offset:3px}
.njca-ticker a:hover{color:var(--njca-gold-l)}

/* scrolling: starts centred and still, starts moving once the script has filled the screen */
.njca-ticker.is-scroll .njca-ticker-t{display:flex;justify-content:center}
.njca-ticker.is-scroll .njca-ticker-i{padding:0 34px;white-space:nowrap}
.njca-ticker.is-scroll.is-ready .njca-ticker-t{justify-content:flex-start;width:max-content;animation:njca-mq 30s linear infinite}
.njca-ticker.is-scroll.is-ready:hover .njca-ticker-t{animation-play-state:paused}
@keyframes njca-mq{to{transform:translateX(-50%)}}

/* still: centred, wraps on small screens */
.njca-ticker.is-still{text-align:center;padding:10px 16px;line-height:1.5}

/* WhatsApp button */
.njca-wa{position:fixed;right:18px;bottom:calc(18px + env(safe-area-inset-bottom,0px));z-index:150;width:60px;height:60px;border-radius:50%;background:#25d366;border:2px solid #fff;display:grid;place-items:center;box-shadow:0 10px 28px rgba(0,0,0,.18);transition:transform .25s}
.njca-wa:hover{transform:scale(1.08)}
.njca-wa svg{width:30px;height:30px;fill:#fff}

/* mobile action bar */
.njca-mbar{display:none}
.njca-btn{display:inline-flex;align-items:center;justify-content:center;border:1.5px solid var(--njca-ink);background:#fff;color:var(--njca-ink);padding:12px 10px;border-radius:999px;font-weight:700;font-size:16px;text-decoration:none;box-shadow:3px 3px 0 rgba(15,30,61,.14)}
.njca-btn-primary{background:var(--njca-gold);border-color:var(--njca-gold);color:var(--njca-navy)}
.njca-btn:hover{color:var(--njca-ink)}
.njca-btn-primary:hover{color:var(--njca-navy)}

@media (max-width:640px){
  .njca-mbar{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:140;background:#fff;border-top:1.5px solid var(--njca-ink);padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px))}
  .njca-mbar .njca-btn{flex:1}
  body.njca-has-mbar{padding-bottom:calc(72px + env(safe-area-inset-bottom,0px))}
  body.njca-has-mbar .njca-wa{bottom:calc(84px + env(safe-area-inset-bottom,0px));width:54px;height:54px}
}

@media (prefers-reduced-motion:reduce){
  .njca-ticker-t{animation:none!important}
  .njca-ticker .njca-ticker-i{white-space:normal!important}
  .tilt{transition:none}
}

/* =========================================================
   HOME PAGE SECTIONS
   ========================================================= */

/* Kadence wraps every Group block in an extra inner box. Make it invisible to layout. */
[class*="njca-"] > .wp-block-group__inner-container{display:contents}
.entry-content > .wp-block-group.alignfull{margin-top:0;margin-bottom:0}

/* ---------- hero ---------- */
.entry-content .njca-hero{padding:60px 20px 48px !important;overflow-x:clip;box-sizing:border-box}
.entry-content .njca-hero .wp-block-columns{max-width:1200px !important;width:100%;margin:0 auto !important;gap:48px;align-items:center;box-sizing:border-box}
.njca-hero-left > *{animation:njca-up .75s cubic-bezier(.2,.8,.2,1) both}
.njca-hero-left > :nth-child(2){animation-delay:.08s}
.njca-hero-left > :nth-child(3){animation-delay:.16s}
.njca-hero-left > :nth-child(4){animation-delay:.24s}
.njca-hero-left > :nth-child(5){animation-delay:.3s}
@keyframes njca-up{from{opacity:0;transform:translateY(26px)}}

.njca-eyebrow{display:inline-block;width:fit-content;position:relative;border:1.5px solid var(--njca-ink);border-radius:999px;padding:7px 13px 7px 30px;font-size:13px;font-weight:700;line-height:1.4;background:#fff;margin:0}
.njca-eyebrow::before{content:'';position:absolute;left:13px;top:50%;width:8px;height:8px;margin-top:-4px;border-radius:50%;background:#20a35a;box-shadow:0 0 0 5px rgba(32,163,90,.14);animation:njca-pulse 1.9s infinite}
@keyframes njca-pulse{50%{box-shadow:0 0 0 9px rgba(32,163,90,0)}}

.njca-hero .njca-hero-title{font-size:clamp(52px,7.6vw,112px);line-height:.9;letter-spacing:-.055em;margin:20px 0 22px;color:var(--njca-navy)}
.njca-hero-title mark,.njca-ink{background:none !important;color:var(--njca-gold) !important;position:relative;white-space:nowrap;padding:0}
.njca-hero-title mark::after,.njca-ink::after{content:'';position:absolute;left:0;right:0;bottom:-.06em;height:.14em;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 60 2, 130 12, 197 5' fill='none' stroke='%23eaad02' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;clip-path:inset(0 100% 0 0);animation:njca-ink 1.2s ease .5s forwards}
@keyframes njca-ink{to{clip-path:inset(0 0 0 0)}}

.njca-hero-copy{font-size:19px;color:var(--njca-muted);max-width:560px;margin:0 0 26px}
.njca-actions{gap:12px}
.njca-hero .wp-block-button__link{padding:13px 22px;font-size:16px}
.wp-block-button.is-style-outline > .wp-block-button__link{background:#fff !important;border-color:var(--njca-ink) !important;color:var(--njca-ink) !important}
.njca-hero-note{font-size:14px;color:var(--njca-muted);margin:16px 0 0}

/* hero picture stack */
.entry-content .njca-visual{position:relative !important;min-height:520px;margin:0 !important}
.njca-visual > .wp-block-group__inner-container{display:contents}
.entry-content .njca-visual :is(.njca-hv-main,.njca-hv-a,.njca-hv-b,.njca-hv-star,.njca-hv-card){position:absolute !important;margin:0 !important;max-width:none !important;transition:transform .35s cubic-bezier(.2,.8,.2,1)}
.entry-content .njca-visual .wp-block-image img{display:block;width:100% !important;height:100% !important;max-width:none !important;object-fit:cover}
.entry-content .njca-visual .njca-hv-main{width:auto;height:auto;inset:30px 20px 30px 40px;border:1.5px solid var(--njca-ink);border-radius:30px;overflow:hidden;rotate:2deg;box-shadow:0 14px 45px rgba(16,42,106,.08)}
.entry-content .njca-visual .njca-hv-a{left:0;bottom:40px;width:170px;height:200px;border:1.5px solid var(--njca-ink);border-radius:22px;overflow:hidden;rotate:-7deg;box-shadow:0 14px 45px rgba(16,42,106,.08);z-index:2}
.entry-content .njca-visual .njca-hv-b{right:-8px;top:40px;width:150px;height:185px;border:1.5px solid var(--njca-ink);border-radius:22px;overflow:hidden;rotate:7deg;box-shadow:0 14px 45px rgba(16,42,106,.08);z-index:2}
.entry-content .njca-visual .njca-hv-star{left:20px;top:0;width:66px;height:66px;border:1.5px solid var(--njca-ink);border-radius:18px;background:#e7f1ff;display:grid;place-items:center;rotate:-8deg;z-index:3;font-size:22px;line-height:1;color:var(--njca-ink)}
.entry-content .njca-visual .njca-hv-card{right:28px;bottom:58px;width:240px;background:#fff;border:1.5px solid var(--njca-ink);border-radius:20px;padding:18px;z-index:3;box-shadow:0 14px 45px rgba(16,42,106,.08)}
.njca-hv-card p{margin:0;font-size:14px;color:var(--njca-muted)}
.njca-hv-card .njca-hv-card-title{font-family:'Fraunces',Georgia,serif;font-weight:700;font-size:24px;line-height:1.05;color:var(--njca-navy);margin:0 0 8px;letter-spacing:-.02em}

/* ---------- word band ---------- */
.njca-band{border-block:1.5px solid var(--njca-ink);background:#fff;overflow:hidden;padding:0;margin:0}
.njca-band p{margin:0;padding:14px 20px;white-space:nowrap;font-weight:700;font-size:15px;letter-spacing:.06em;text-transform:uppercase;text-align:center}
.njca-band.is-ready p{display:none}
.njca-band-t{display:flex;width:max-content;animation:njca-mq 34s linear infinite}
.njca-band-t span{display:flex;align-items:center;gap:20px;padding:14px 10px;white-space:nowrap;font-weight:700;font-size:15px;letter-spacing:.06em;text-transform:uppercase}
.njca-band-t i{width:7px;height:7px;border-radius:50%;background:var(--njca-gold);display:inline-block}

/* ---------- shared section parts (used by every Home section) ---------- */
.entry-content .njca-sec{padding:70px 20px !important;box-sizing:border-box}
.entry-content .njca-sec > .wp-block-group__inner-container,
.entry-content .njca-sec-in{max-width:1200px;margin:0 auto !important}
.entry-content .njca-sec > .wp-block-group__inner-container{display:block}
.entry-content .njca-head{display:flex;justify-content:space-between;align-items:flex-end;gap:36px;margin:0 0 34px !important}
.entry-content .njca-kicker{font-size:13px;font-weight:700;letter-spacing:.14em;text-transform:uppercase;color:var(--njca-blue);margin:0}
.entry-content .njca-title{font-size:clamp(40px,5.2vw,72px);line-height:.98;margin:10px 0 0;color:var(--njca-navy)}
.entry-content .njca-copy{color:var(--njca-muted);max-width:520px;margin:0;flex:0 1 420px}
.entry-content .njca-head-l{flex:1 1 auto;min-width:0}

/* ---------- learning stages ---------- */
.entry-content .njca-stages{display:grid;grid-template-columns:repeat(4,1fr);gap:18px;margin:0 !important}
.entry-content .njca-stage{background:#fff;border:1.5px solid var(--njca-ink);border-top-width:6px;border-radius:26px;padding:24px;display:flex;flex-direction:column;gap:10px;min-height:260px;margin:0 !important;box-sizing:border-box}
.entry-content .njca-stage.is-pink{border-top-color:#102a6a}
.entry-content .njca-stage.is-green{border-top-color:#2a4fa3}
.entry-content .njca-stage.is-blue{border-top-color:#7f92c0}
.entry-content .njca-stage.is-orange{border-top-color:var(--njca-gold)}
.entry-content .njca-stage :is(p,h3){margin:0 !important}
.entry-content .njca-age{align-self:flex-start;background:var(--njca-light);border-radius:999px;padding:5px 11px;font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase}
.entry-content .njca-stage h3{font-size:28px;line-height:1.05}
.entry-content .njca-stage p{color:var(--njca-muted);font-size:15px}
.entry-content .njca-stage p.njca-g{margin-top:auto !important;font-weight:700;color:var(--njca-blue)}
.entry-content .njca-stage p.njca-age{color:var(--njca-ink)}

@media (max-width:1000px){
  .entry-content .njca-head{flex-direction:column;align-items:flex-start}
  .entry-content .njca-stages{grid-template-columns:1fr 1fr}
}
@media (max-width:600px){
  .entry-content .njca-sec{padding:48px 18px !important}
  .entry-content .njca-stages{grid-template-columns:1fr}
  .entry-content .njca-stage{min-height:0}
}

/* ---------- why families choose us (panels) ---------- */
.entry-content .njca-features{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin:0 !important}
.entry-content .njca-stack{display:grid;gap:18px;margin:0 !important}
.entry-content .njca-panel{background:var(--njca-light);border:1.5px solid var(--njca-ink);border-radius:26px;padding:30px;margin:0 !important;box-sizing:border-box}
.entry-content .njca-panel :is(p,h3){margin:0}
.entry-content .njca-panel h3{font-size:clamp(28px,3vw,38px);line-height:1.05;margin:10px 0 12px !important}
.entry-content .njca-panel.is-small h3{font-size:30px}
.entry-content .njca-panel p{color:var(--njca-muted)}
.entry-content .njca-panel p.njca-kicker{color:var(--njca-blue)}
.entry-content .njca-panel.is-big{display:flex;flex-direction:column;min-height:420px}
.entry-content [class*="has-ico-"]::before{content:'';display:block;width:46px;height:46px;border-radius:14px;border:1.5px solid var(--njca-ink);background:#fff center/24px 24px no-repeat;margin-bottom:6px;box-sizing:border-box}
.entry-content .njca-panel.has-ico-chart::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a6a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 20V10M10 20V4M16 20v-7M22 20H2'/%3E%3C/svg%3E")}
.entry-content .njca-panel.has-ico-heart::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a6a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M12 21c-4-4-8-7-8-11a4 4 0 018-1 4 4 0 018 1c0 4-4 7-8 11z'/%3E%3C/svg%3E")}
.entry-content .njca-pills{display:flex;flex-wrap:wrap;gap:8px;margin:18px 0 0 !important}
.entry-content .njca-pills p.njca-pill{border:1.5px solid var(--njca-ink);border-radius:999px;padding:6px 13px;font-size:13px;font-weight:600;background:#fff;color:var(--njca-ink);margin:0}
.entry-content .njca-quote{margin:auto 0 0 !important;align-self:flex-end;max-width:330px;background:#fff;border:1.5px solid var(--njca-ink);border-radius:16px;padding:16px 18px;rotate:-2deg;font-size:15px;box-sizing:border-box}
.entry-content .njca-quote p{color:var(--njca-ink);font-size:15px}
.entry-content .njca-quote strong{font-size:13px}
.entry-content .njca-panel .wp-block-buttons{margin-top:16px}
.entry-content .njca-btn-sm .wp-block-button__link{padding:10px 16px;font-size:14px}

@media (max-width:1000px){
  .entry-content .njca-features{grid-template-columns:1fr}
  .entry-content .njca-panel.is-big{min-height:0}
  .entry-content .njca-quote{margin-top:20px !important}
}

/* ---------- numbers strip ---------- */
.entry-content .njca-stats-sec{padding:70px 20px !important;box-sizing:border-box}
.entry-content .njca-stats{display:grid;grid-template-columns:repeat(4,1fr);max-width:1200px;margin:0 auto !important;background:var(--njca-light);border:1.5px solid var(--njca-ink);border-radius:28px;overflow:hidden;box-shadow:0 14px 45px rgba(16,42,106,.08)}
.entry-content .njca-stat{padding:28px 24px;border-right:1px solid rgba(15,30,61,.12);margin:0 !important}
.entry-content .njca-stat:last-child{border-right:0}
.entry-content .njca-stat .njca-count{display:block;font-family:'Fraunces',Georgia,serif;font-weight:700;font-size:48px;line-height:1;color:var(--njca-navy);letter-spacing:-.03em;margin:0 0 8px}
.entry-content .njca-stat p:not(.njca-count){font-size:14px;line-height:1.45;color:var(--njca-muted);margin:0}

@media (max-width:781px){
  .entry-content .njca-stats-sec{padding:44px 18px !important}
  .entry-content .njca-stats{grid-template-columns:1fr 1fr}
  .entry-content .njca-stat{border-bottom:1px solid rgba(15,30,61,.12);padding:22px 18px}
  .entry-content .njca-stat:nth-child(2n){border-right:0}
  .entry-content .njca-stat:nth-last-child(-n+2){border-bottom:0}
  .entry-content .njca-stat .njca-count{font-size:40px}
}

@media (max-width:781px){
  .entry-content .njca-hero{padding:36px 18px 40px !important}
  .entry-content .njca-visual{min-height:400px}
  .entry-content .njca-visual .njca-hv-main{inset:24px 12px 24px 26px}
  .entry-content .njca-visual .njca-hv-a{width:120px;height:140px;bottom:20px}
  .entry-content .njca-visual .njca-hv-b{width:110px;height:135px;top:30px;right:0}
  .entry-content .njca-visual .njca-hv-card{width:200px;right:12px;bottom:28px;padding:14px}
  .njca-hv-card .njca-hv-card-title{font-size:20px}
}

@media (prefers-reduced-motion:reduce){
  .njca-hero-left > *,.njca-eyebrow::before,.njca-band-t{animation:none}
  .njca-hero-title mark::after,.njca-ink::after{animation:none;clip-path:none}
}


/* =========================================================
   HOME PAGE: remaining sections (v1.1.0)
   ========================================================= */
.entry-content .has-ico-calendar::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a6a' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E")}
.entry-content .has-ico-camera::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a6a' stroke-width='1.8' stroke-linecap='round'%3E%3Crect x='3' y='6' width='18' height='14' rx='2'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3Cpath d='M8 6l2-2h4l2 2'/%3E%3C/svg%3E")}
.entry-content .has-ico-trophy::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a6a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M7 4h10v5a5 5 0 01-10 0zM12 14v4M8 21h8M7 6H4a3 3 0 003 4M17 6h3a3 3 0 01-3 4'/%3E%3C/svg%3E")}
.entry-content .has-ico-book::before{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23102a6a' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 5a2 2 0 012-2h12v18H6a2 2 0 01-2-2zM8 7h6M8 11h6'/%3E%3C/svg%3E")}
.entry-content .njca-sec :is(h3,h4){margin:0}
.entry-content .njca-pill-link a{color:inherit;text-decoration:none}

/* scroll reveal (added by the script, so nothing hides if scripts fail) */
.njca-rv{opacity:0;transform:translateY(26px);transition:opacity .7s ease,transform .7s cubic-bezier(.2,.8,.2,1)}
.njca-rv.is-in{opacity:1;transform:none}

/* clubs */
.entry-content .njca-cards3{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:0 !important}
.entry-content .njca-club{position:relative;background:#fff;border:1.5px solid var(--njca-ink);border-radius:26px;overflow:hidden;display:flex;flex-direction:column;margin:0 !important}
.entry-content .njca-club > figure,.entry-content .njca-club .wp-block-image{height:190px;margin:0 !important;border-bottom:1.5px solid var(--njca-ink);overflow:hidden}
.entry-content .njca-club .wp-block-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease}
.entry-content .njca-club:hover .wp-block-image img{transform:scale(1.06)}
.entry-content .njca-club p.njca-lbl{position:absolute;left:12px;top:146px;margin:0;background:#fff;border:1.5px solid var(--njca-ink);border-radius:999px;padding:5px 11px;font-size:12px;font-weight:700;z-index:2;color:var(--njca-ink)}
.entry-content .njca-club-bd{padding:22px;display:flex;flex-direction:column;gap:8px;flex:1;margin:0 !important}
.entry-content .njca-club-bd h3{font-size:26px}
.entry-content .njca-club-bd p{margin:0;color:var(--njca-muted);font-size:15px}
.entry-content .njca-meta{display:flex;justify-content:space-between;align-items:center;margin:auto 0 0 !important;padding-top:10px}
.entry-content .njca-meta p{font-size:13px;font-weight:700;color:var(--njca-ink)}
.entry-content .njca-meta p.njca-tag{border:1.5px solid rgba(15,30,61,.12);background:var(--njca-light);border-radius:999px;padding:5px 11px}

/* gallery */
.njca-copy-wrap{flex:0 1 420px}
.njca-filters{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.njca-filters button{border:1.5px solid var(--njca-ink);border-radius:999px;background:#fff;color:var(--njca-ink);padding:8px 16px;font:700 14px/1.2 'DM Sans',system-ui,sans-serif;cursor:pointer;transition:transform .2s}
.njca-filters button:hover{transform:translateY(-2px)}
.njca-filters button[aria-pressed="true"]{background:var(--njca-navy);border-color:var(--njca-navy);color:#fff}
.entry-content .njca-gallery{display:grid;grid-template-columns:repeat(6,1fr);grid-auto-rows:170px;grid-auto-flow:dense;gap:14px;margin:0 !important}
.entry-content .njca-gallery .wp-block-image{grid-column:span 2;grid-row:span 2;position:relative;border:1.5px solid var(--njca-ink);border-radius:22px;overflow:hidden;margin:0 !important}
.entry-content .njca-gallery .wp-block-image.is-wide{grid-column:span 4}
.entry-content .njca-gallery .wp-block-image.is-hidden{display:none}
.entry-content .njca-gallery .wp-block-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s ease}
.entry-content .njca-gallery .wp-block-image:hover img{transform:scale(1.05)}
.entry-content .njca-gallery .wp-block-image::after{content:'';position:absolute;inset:0;background:linear-gradient(to top,rgba(10,28,74,.5),transparent 38%);pointer-events:none}
.entry-content .njca-gallery figcaption{position:absolute;left:14px;bottom:12px;margin:0;z-index:2;color:#fff;font-weight:700;font-size:14px;text-shadow:0 1px 6px rgba(0,0,0,.4);text-align:left}

/* events */
.entry-content .njca-events{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin:0 !important}
.entry-content .njca-event{display:grid;grid-template-columns:120px 1fr;background:#fff;border:1.5px solid var(--njca-ink);border-radius:26px;overflow:hidden;margin:0 !important}
.entry-content .njca-date{border-right:1.5px solid var(--njca-ink);display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#fff;background:var(--njca-navy);margin:0 !important;padding:18px 6px}
.entry-content .njca-date.is-green{background:var(--njca-blue)}
.entry-content .njca-date p{margin:0;color:#fff}
.entry-content .njca-date p.njca-mon{font-weight:700;letter-spacing:.14em;text-transform:uppercase;font-size:13px}
.entry-content .njca-date p.njca-day{font-family:'Fraunces',Georgia,serif;font-weight:700;font-size:50px;line-height:1}
.entry-content .njca-event-bd{padding:22px;margin:0 !important}
.entry-content .njca-event-bd h3{font-size:26px;margin:4px 0 6px !important}
.entry-content .njca-event-bd p{margin:0;color:var(--njca-muted);font-size:15px}
.entry-content .njca-event-bd p.njca-kicker{color:var(--njca-blue)}
.entry-content .njca-event-bd .njca-pills{margin-top:14px !important}
.entry-content .njca-head .wp-block-buttons{margin:0;flex:none}

/* parent voices */
.entry-content .njca-voices{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:0 !important}
.entry-content .njca-voice{background:#fff;border:1.5px solid var(--njca-ink);border-radius:26px;padding:26px;display:flex;flex-direction:column;gap:16px;margin:0 !important}
.entry-content .njca-voice p{margin:0}
.entry-content .njca-voice p.njca-stars{color:var(--njca-gold);letter-spacing:2px}
.entry-content .njca-voice p.njca-bq{font-family:'Fraunces',Georgia,serif;font-size:21px;line-height:1.35;color:var(--njca-navy);letter-spacing:-.01em;font-weight:600}
.entry-content .njca-voice p.njca-who{font-size:14px;color:var(--njca-muted);font-weight:700;margin-top:auto}

/* results portal teaser */
.entry-content .njca-pteaser{display:grid;grid-template-columns:1fr 1fr;border:1.5px solid var(--njca-ink);border-radius:30px;overflow:hidden;background:var(--njca-light);margin:0 !important}
.entry-content .njca-pteaser-copy{padding:40px;margin:0 !important}
.entry-content .njca-pteaser-copy h3{font-size:clamp(32px,3.6vw,46px);line-height:1.02;margin:12px 0 !important}
.entry-content .njca-pteaser-copy p{color:var(--njca-muted);margin:0 0 22px}
.entry-content .njca-pteaser-copy p.njca-kicker{color:var(--njca-blue);margin:0}
.entry-content .njca-scr{background:var(--njca-navy-d);padding:34px;display:grid;place-items:center;position:relative;overflow:hidden;margin:0 !important}
.entry-content .njca-scr::before{content:'';position:absolute;right:-60px;top:-60px;width:220px;height:220px;border-radius:40px;background:var(--njca-gold);opacity:.9;transform:rotate(18deg)}
.njca-win{position:relative;width:100%;max-width:420px;background:#13265a;border:1px solid rgba(255,255,255,.14);border-radius:22px;padding:22px;color:#fff;transform:perspective(900px) rotateY(-8deg) rotateX(4deg);transition:transform .6s;box-sizing:border-box}
.njca-pteaser:hover .njca-win{transform:perspective(900px) rotateY(0) rotateX(0)}
.njca-win .r{display:flex;justify-content:space-between;padding:11px 0;border-bottom:1px solid rgba(255,255,255,.1);font-size:15px}
.njca-win .r b{color:var(--njca-gold)}
.njca-win .tp{display:flex;justify-content:space-between;align-items:flex-end;padding-bottom:12px;border-bottom:1px solid rgba(255,255,255,.14)}
.njca-win .tp span{font-size:12px;color:rgba(255,255,255,.6)}
.njca-win .tp strong{display:block;font-family:'Fraunces',Georgia,serif;font-size:22px}

/* stay connected (tools) */
.entry-content .njca-desk{display:grid;grid-template-columns:1fr 1fr;gap:28px;align-items:center}
.entry-content .njca-desk-copy h3{font-size:clamp(30px,3.4vw,46px);line-height:1.05;margin:10px 0 12px !important}
.entry-content .njca-desk-copy .wp-block-buttons{margin-top:18px}
.entry-content .njca-tools{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:0 !important}
.entry-content .njca-tool{background:#fff;border:1.5px solid var(--njca-ink);border-radius:20px;padding:20px;margin:0 !important}
.entry-content .njca-tool h4{font-family:'DM Sans',system-ui,sans-serif;font-size:17px;letter-spacing:0;margin:8px 0 4px !important;color:var(--njca-ink)}
.entry-content .njca-tool p{margin:0;font-size:14px;color:var(--njca-muted)}

/* photo story */
.entry-content .njca-story{display:grid;grid-template-columns:1.05fr .95fr;border:1.5px solid var(--njca-ink);border-radius:30px;overflow:hidden;background:#fff;margin:0 !important}
.entry-content .njca-story > .wp-block-image,.entry-content .njca-story .njca-story-pic{min-height:380px;margin:0 !important;height:100%}
.entry-content .njca-story .njca-story-pic img{width:100%;height:100%;object-fit:cover;display:block}
.entry-content .njca-story-bd{padding:40px;display:flex;flex-direction:column;justify-content:center;margin:0 !important}
.entry-content .njca-story-bd h3{font-size:clamp(30px,3.4vw,44px);line-height:1.02;margin:10px 0 12px !important}
.entry-content .njca-story-bd p{color:var(--njca-muted);margin:0 0 18px}
.entry-content .njca-story-bd p.njca-kicker{color:var(--njca-blue);margin:0}

/* newsletter */
.entry-content .njca-news{display:grid;grid-template-columns:1fr auto;gap:30px;align-items:center;border:1.5px solid var(--njca-ink);border-radius:28px;padding:34px;background:#fff;margin:0 !important}
.entry-content .njca-news h3{font-size:clamp(28px,3vw,40px);line-height:1.05;margin:8px 0 !important}
.entry-content .njca-news p{color:var(--njca-muted);margin:0}
.entry-content .njca-news p.njca-kicker{color:var(--njca-blue)}

/* call to action */
.entry-content .njca-cta{background:var(--njca-navy-d);color:#fff;border-radius:34px;padding:56px 48px;position:relative;overflow:hidden;margin:0 !important}
.entry-content .njca-cta::after{content:'';position:absolute;right:-80px;bottom:-80px;width:300px;height:300px;border-radius:60px;background:var(--njca-gold);transform:rotate(20deg);opacity:.9}
.entry-content .njca-cta h2{color:#fff;font-size:clamp(40px,5vw,72px);line-height:.98;max-width:760px;position:relative;z-index:1;margin:0 0 16px}
.entry-content .njca-cta p{color:rgba(255,255,255,.72);max-width:560px;position:relative;z-index:1;margin:0 0 24px}
.entry-content .njca-cta .wp-block-buttons{position:relative;z-index:1;gap:12px}
.entry-content .njca-cta .wp-block-button .wp-block-button__link{background:#fff !important;color:var(--njca-ink) !important;border-color:#fff !important}

/* tighter gaps between the boxed sections */
.entry-content .njca-sec.is-tight{padding-top:20px !important;padding-bottom:20px !important}

@media (max-width:1000px){
  .entry-content :is(.njca-cards3,.njca-voices){grid-template-columns:1fr 1fr}
  .entry-content :is(.njca-events,.njca-pteaser,.njca-desk,.njca-story,.njca-news){grid-template-columns:1fr}
  .entry-content .njca-gallery{grid-template-columns:repeat(4,1fr)}
}
@media (max-width:600px){
  .entry-content :is(.njca-cards3,.njca-voices,.njca-tools){grid-template-columns:1fr}
  .entry-content .njca-gallery{grid-template-columns:1fr 1fr;grid-auto-rows:150px}
  .entry-content .njca-gallery .wp-block-image{grid-column:span 1;grid-row:span 1}
  .entry-content .njca-gallery .wp-block-image.is-wide{grid-column:span 2}
  .entry-content .njca-event{grid-template-columns:96px 1fr}
  .entry-content .njca-date p.njca-day{font-size:40px}
  .entry-content :is(.njca-pteaser-copy,.njca-story-bd){padding:26px}
  .entry-content .njca-news{padding:24px}
  .entry-content .njca-cta{padding:40px 24px}
  .entry-content .njca-story > .wp-block-image,.entry-content .njca-story .njca-story-pic{min-height:240px}
}
@media (prefers-reduced-motion:reduce){
  .njca-rv{opacity:1;transform:none;transition:none}
}


/* =========================================================
   COLOUR CHAPTERS (v1.2.0): navy, light blue, white, cream, grey, navy
   Add one of these classes to a full-width section to set its colour.
   ========================================================= */
.entry-content .njca-bg-navy{background:var(--njca-navy)}
.entry-content .njca-bg-light{background:var(--njca-light)}
.entry-content .njca-bg-white{background:#fff}
.entry-content .njca-bg-cream{background:var(--njca-cream)}
.entry-content .njca-bg-grey{background:var(--njca-grey)}

/* text on navy */
.entry-content .njca-bg-navy :is(h1,h2,h3,.njca-title,.njca-hero-title){color:#fff}
.entry-content .njca-bg-navy :is(.njca-copy,.njca-hero-copy,.njca-hero-note){color:rgba(255,255,255,.8)}
.entry-content .njca-bg-navy .njca-kicker{color:var(--njca-gold)}
.entry-content .njca-bg-navy .njca-eyebrow{border-color:#fff}
.entry-content .njca-bg-navy .wp-block-button.is-style-outline > .wp-block-button__link{background:transparent !important;border-color:#fff !important;color:#fff !important}
.entry-content .njca-bg-navy .wp-block-button.is-style-outline > .wp-block-button__link:hover{background:rgba(255,255,255,.1) !important}
.entry-content .njca-bg-navy :is(.njca-hv-main,.njca-hv-a,.njca-hv-b,.njca-hv-star,.njca-hv-card){border-color:rgba(255,255,255,.9) !important;box-shadow:0 18px 50px rgba(0,0,0,.28)}
.entry-content .njca-bg-navy .njca-hv-card .njca-hv-card-title{color:var(--njca-navy)}
.entry-content .njca-bg-navy .njca-hv-star{background:var(--njca-gold)}

/* gold word band between the navy hero and the light blue chapter */
.entry-content .njca-band{background:var(--njca-gold);border-color:var(--njca-navy);color:var(--njca-navy)}
.njca-band-t i{background:var(--njca-navy)}

/* boxes keep contrast inside each chapter */
.entry-content .njca-bg-light .njca-stats{background:#fff}
.entry-content .njca-bg-light .njca-age{background:var(--njca-light)}
.entry-content .njca-bg-grey :is(.njca-pteaser,.njca-panel,.njca-story,.njca-news){background:#fff}
.entry-content .njca-bg-cream .njca-pill{background:#fff}
.entry-content .njca-meta p.njca-tag{background:var(--njca-light)}

/* final call to action: deep navy box with gold shape, gold + white buttons */
.entry-content .njca-cta{background:var(--njca-navy-d)}
.entry-content .njca-cta .wp-block-button:first-child .wp-block-button__link{background:var(--njca-gold) !important;color:var(--njca-navy) !important;border-color:var(--njca-gold) !important}

/* announcement bar and phone action bar */
.njca-ticker{background:var(--njca-navy-d)}
.njca-ticker b{color:var(--njca-gold)}
.njca-ticker a:hover{color:var(--njca-gold)}
.njca-btn{background:#fff;color:var(--njca-navy);border-color:var(--njca-navy)}


/* =========================================================
   v1.3.0: SafariBox-style soft colour flow + plaid tops + faceted cards
   ========================================================= */

/* 1. Soft flow between chapters, so colours melt into each other instead of hard bands */
.entry-content #stages.njca-bg-light{background:linear-gradient(180deg,var(--njca-light) 0%,var(--njca-light) 30%,#fff 100%)}
.entry-content #life.njca-bg-white{background:linear-gradient(180deg,#fff 0%,#fff 25%,var(--njca-cream) 100%)}
.entry-content #voices.njca-bg-cream{background:linear-gradient(180deg,var(--njca-cream) 0%,var(--njca-cream) 25%,var(--njca-grey) 100%)}
.entry-content > .njca-sec:last-child,
.entry-content > .wp-block-group__inner-container > .njca-sec:last-child{background:linear-gradient(180deg,var(--njca-grey) 0%,var(--njca-grey) 30%,var(--njca-navy-d) 100%);padding-bottom:70px !important}
.entry-content .njca-cta{border:1.5px solid rgba(255,255,255,.16);box-shadow:0 24px 60px rgba(10,28,74,.35)}
/* the hero melts into the gold band with a soft shadow line */
.entry-content .njca-hero.njca-bg-navy{background:linear-gradient(180deg,var(--njca-navy) 0%,var(--njca-navy) 70%,#0d2358 100%)}

/* 2. Plaid tops, woven from the uniform: navy, plaid blue and white stripes */
.entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-panel,.njca-stats,.njca-event,.njca-voice,.njca-news){position:relative;overflow:hidden;--plaid:var(--njca-navy)}
.entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-panel,.njca-stats,.njca-event,.njca-voice,.njca-news)::after{
  content:'';position:absolute;left:0;right:0;top:0;height:12px;z-index:3;pointer-events:none;
  background:
    repeating-linear-gradient(90deg,rgba(255,255,255,.55) 0 2px,transparent 2px 10px,rgba(127,146,192,.75) 10px 17px,transparent 17px 26px),
    repeating-linear-gradient(0deg,rgba(255,255,255,.35) 0 2px,transparent 2px 6px),
    var(--plaid);
  border-bottom:1.5px solid var(--njca-ink)}
/* four shades, taken in turn */
.entry-content [class*="njca-bg-"] :is(.njca-panel,.njca-event,.njca-voice):nth-child(4n+2),.entry-content .njca-stage.is-green{--plaid:var(--njca-blue)}
.entry-content [class*="njca-bg-"] :is(.njca-panel,.njca-event,.njca-voice):nth-child(4n+3),.entry-content .njca-stage.is-blue{--plaid:var(--njca-sky)}
.entry-content [class*="njca-bg-"] :is(.njca-panel,.njca-event,.njca-voice):nth-child(4n+4),.entry-content .njca-stage.is-orange{--plaid:#c9d4ea}
.entry-content .njca-stage.is-orange::after{background:
    repeating-linear-gradient(90deg,rgba(16,42,106,.55) 0 2px,transparent 2px 10px,rgba(127,146,192,.8) 10px 17px,transparent 17px 26px),
    repeating-linear-gradient(0deg,rgba(255,255,255,.5) 0 2px,transparent 2px 6px),#c9d4ea}
.entry-content .njca-stage{border-top-width:1.5px !important;padding-top:34px}
.entry-content .njca-panel{padding-top:40px}
.entry-content .njca-voice{padding-top:36px}
.entry-content .njca-news{padding-top:44px}
.entry-content .njca-event-bd{padding-top:30px}
.entry-content .njca-stat{padding-top:34px}
.entry-content .njca-date{padding-top:28px}

/* 3. Faceted (low-poly) card backgrounds, a different tint per chapter */
.entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-stats,.njca-event,.njca-voice,.njca-tool){background:#f6f8fd url("img/facet-white.svg") center/cover no-repeat}
.entry-content [class*="njca-bg-"] .njca-panel{background:var(--njca-light) url("img/facet-light.svg") center/cover no-repeat}
.entry-content .njca-bg-cream :is(.njca-event,.njca-voice){background:#fffaf0 url("img/facet-cream.svg") center/cover no-repeat}
.entry-content .njca-bg-grey :is(.njca-panel,.njca-news){background:#f8f9fb url("img/facet-grey.svg") center/cover no-repeat}
.entry-content .njca-bg-grey .njca-pteaser-copy{background:#f8f9fb url("img/facet-grey.svg") center/cover no-repeat}
/* keep the event date block solid */
.entry-content .njca-date{position:relative;z-index:1}


/* =========================================================
   v1.4.0: deeper tints, navy to light blue flow, faceted transitions, slanted tartan
   ========================================================= */
:root{--njca-light:#d9e3f5;--njca-cream:#fdf3d8;--njca-grey:#e6e9ef;
  --njca-facet:url("img/facet-overlay.svg") center/cover no-repeat}

/* navy hero ends in plain navy, then the gold band, then navy melts into light blue */
.entry-content .njca-hero.njca-bg-navy{background:var(--njca-facet),var(--njca-navy)}
.entry-content .njca-stats-sec.njca-bg-light{background:var(--njca-facet),linear-gradient(180deg,var(--njca-navy) 0%,#2c4a8c 28%,#8fa6d2 58%,var(--njca-light) 88%)}
.entry-content .njca-bg-light .njca-stats{box-shadow:0 24px 60px rgba(10,28,74,.35)}

/* light blue melts into white */
.entry-content #stages.njca-bg-light{background:var(--njca-facet),linear-gradient(180deg,var(--njca-light) 0%,var(--njca-light) 25%,#eef3fb 60%,#fff 100%)}
/* white melts into a richer cream */
.entry-content #life.njca-bg-white{background:var(--njca-facet),linear-gradient(180deg,#fff 0%,#fff 20%,var(--njca-cream) 100%)}
.entry-content :is(#gallery,#events).njca-bg-cream{background:var(--njca-facet),var(--njca-cream)}
/* cream melts into grey */
.entry-content #voices.njca-bg-cream{background:var(--njca-facet),linear-gradient(180deg,var(--njca-cream) 0%,var(--njca-cream) 20%,var(--njca-grey) 100%)}
.entry-content .njca-bg-grey{background:var(--njca-facet),var(--njca-grey)}
/* grey melts into the navy footer */
.entry-content > .njca-sec:last-child,
.entry-content > .wp-block-group__inner-container > .njca-sec:last-child{background:var(--njca-facet),linear-gradient(180deg,var(--njca-grey) 0%,var(--njca-grey) 25%,#8fa0c4 65%,var(--njca-navy-d) 100%)}

/* tartan tops: slanted north-east, woven like the uniform plaid (navy ground, plaid blue bands, fine white lines) */
.entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-panel,.njca-stats,.njca-event,.njca-voice,.njca-news)::after{
  height:14px;
  background:
    repeating-linear-gradient(135deg,transparent 0 6px,rgba(255,255,255,.75) 6px 7.5px,transparent 7.5px 10px,rgba(127,146,192,.6) 10px 18px,transparent 18px 20px,rgba(255,255,255,.75) 20px 21.5px,transparent 21.5px 28px),
    repeating-linear-gradient(45deg,transparent 0 6px,rgba(255,255,255,.4) 6px 7.5px,transparent 7.5px 10px,rgba(127,146,192,.4) 10px 18px,transparent 18px 20px,rgba(255,255,255,.4) 20px 21.5px,transparent 21.5px 28px),
    var(--plaid)}
.entry-content .njca-stage.is-orange::after{
  background:
    repeating-linear-gradient(135deg,transparent 0 6px,rgba(16,42,106,.7) 6px 7.5px,transparent 7.5px 10px,rgba(127,146,192,.7) 10px 18px,transparent 18px 20px,rgba(16,42,106,.7) 20px 21.5px,transparent 21.5px 28px),
    repeating-linear-gradient(45deg,transparent 0 6px,rgba(16,42,106,.35) 6px 7.5px,transparent 7.5px 10px,rgba(127,146,192,.45) 10px 18px,transparent 18px 20px,rgba(16,42,106,.35) 20px 21.5px,transparent 21.5px 28px),
    #c9d4ea}

/* card colours: each card reads --card, so a single colour can be set per card later */
.entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-stats,.njca-event,.njca-voice,.njca-tool){background:var(--card,#fff) url("img/facet-white.svg") center/cover no-repeat;background-blend-mode:multiply}
.entry-content [class*="njca-bg-"] .njca-panel{background:var(--card,#fff) url("img/facet-light.svg") center/cover no-repeat;background-blend-mode:multiply}
.entry-content .njca-bg-cream :is(.njca-event,.njca-voice){background:var(--card,#fff) url("img/facet-cream.svg") center/cover no-repeat;background-blend-mode:multiply}
.entry-content .njca-bg-grey :is(.njca-panel,.njca-news,.njca-pteaser-copy){background:var(--card,#fff) url("img/facet-grey.svg") center/cover no-repeat;background-blend-mode:multiply}


/* =========================================================
   v1.5.0: plain section backgrounds (colours come from Settings, NJCA Site).
   Faceted texture stays on the cards only.
   ========================================================= */
:root{--njca-facet:none}
.entry-content .njca-hero.njca-bg-navy,
.entry-content .njca-bg-navy{background:var(--njca-navy)}
.entry-content .njca-stats-sec.njca-bg-light{background:linear-gradient(180deg,var(--njca-navy) 0%,var(--njca-light) 85%)}
.entry-content #stages.njca-bg-light{background:linear-gradient(180deg,var(--njca-light) 0%,var(--njca-light) 25%,var(--njca-white,#fff) 100%)}
.entry-content .njca-bg-white{background:var(--njca-white,#fff)}
.entry-content #life.njca-bg-white{background:linear-gradient(180deg,var(--njca-white,#fff) 0%,var(--njca-white,#fff) 20%,var(--njca-cream) 100%)}
.entry-content .njca-bg-cream,
.entry-content :is(#gallery,#events).njca-bg-cream{background:var(--njca-cream)}
.entry-content #voices.njca-bg-cream{background:linear-gradient(180deg,var(--njca-cream) 0%,var(--njca-cream) 20%,var(--njca-grey) 100%)}
.entry-content .njca-bg-grey{background:var(--njca-grey)}
.entry-content > .njca-sec:last-child,
.entry-content > .wp-block-group__inner-container > .njca-sec:last-child{background:linear-gradient(180deg,var(--njca-grey) 0%,var(--njca-grey) 25%,var(--njca-navy-d) 100%)}
/* footer follows the "Footer dark blue" setting */
body .site-footer,
body .site-footer .site-footer-row-container-inner{background:var(--njca-navy-d)}
.njca-ticker{background:var(--njca-navy-d)}

/* switches from Settings, NJCA Site */
.njca-no-facets .entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-stats,.njca-event,.njca-voice,.njca-tool,.njca-panel,.njca-news,.njca-pteaser-copy){background-image:none}
.njca-no-tartan .entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-panel,.njca-stats,.njca-event,.njca-voice,.njca-news)::after{display:none}


/* =========================================================
   v1.6.0: glassy dark blue header with white text (follows the "Dark blue" setting)
   ========================================================= */
body #masthead{
  background:rgba(16,42,106,.86);
  background:color-mix(in srgb,var(--njca-navy) 86%,transparent);
  -webkit-backdrop-filter:blur(16px) saturate(150%);
  backdrop-filter:blur(16px) saturate(150%);
  border-bottom:1px solid rgba(255,255,255,.14);
  box-shadow:0 10px 30px rgba(10,28,74,.18), inset 0 1px 0 rgba(255,255,255,.10)}
/* Kadence paints its own white rows inside the header: make them see-through so the glass shows */
body #masthead :is(.site-header-wrap,.site-header-inner-wrap,.site-header-upper-wrap,.site-header-upper-inner-wrap,.site-main-header-wrap,.site-header-row-container-inner,.site-main-header-inner-wrap,#mobile-header,.site-mobile-header-wrap){background:transparent !important;border-color:rgba(255,255,255,.14) !important}
body #masthead .site-branding .site-title,
body #masthead .site-branding .site-title a,
body #masthead .site-branding .site-description{color:#fff !important}
body #masthead .header-navigation .menu > li > a{color:#fff !important;opacity:.92}
body #masthead .header-navigation .menu > li > a:hover,
body #masthead .header-navigation .menu > li.current-menu-item > a{opacity:1}
body #masthead .menu-toggle-open,
body #masthead .menu-toggle-open .menu-toggle-icon{color:#fff !important}
body #masthead .header-button{box-shadow:0 0 0 3px rgba(255,255,255,.08),3px 3px 0 rgba(0,0,0,.18)}
/* phone menu drawer in the same blue */
body .popup-drawer .drawer-inner{background:var(--njca-navy) !important;color:#fff}
body .popup-drawer .drawer-inner a,
body .popup-drawer .menu-toggle-close{color:#fff !important}
body .popup-drawer .mobile-navigation ul li > a{border-color:rgba(255,255,255,.14) !important}


/* =========================================================
   v1.8.0: readability pass. Every line of text should stand out.
   ========================================================= */
:root{--njca-muted:#2e3a52;--njca-text:#141c2e}

/* word band: no gold, white words on deep blue */
.entry-content .njca-band{background:var(--njca-navy-d) !important;color:#fff;border-color:rgba(255,255,255,.18)}
.entry-content .njca-band p,.njca-band-t span{color:#fff}
.njca-band-t i{background:var(--njca-gold)}

/* hero text: bright white, with a soft shadow so it holds over a photo */
.entry-content .njca-bg-navy :is(.njca-hero-copy,.njca-hero-note,.njca-copy){color:#fff !important;text-shadow:0 1px 12px rgba(5,15,40,.55)}
.entry-content .njca-bg-navy :is(.njca-hero-title,h1,h2){text-shadow:0 2px 18px rgba(5,15,40,.45)}
.entry-content .njca-hero-copy{font-weight:500}

/* body text on light sections and cards: darker and slightly heavier */
.entry-content :is(.njca-copy,.njca-stage p,.njca-panel p,.njca-club-bd p,.njca-event-bd p,.njca-tool p,.njca-pteaser-copy p,.njca-desk-copy p,.njca-story-bd p,.njca-news p,.njca-stat p){color:var(--njca-muted) !important;font-weight:500}
.entry-content :is(.njca-panel p.njca-kicker,.njca-event-bd p.njca-kicker,.njca-pteaser-copy p.njca-kicker,.njca-story-bd p.njca-kicker,.njca-news p.njca-kicker){color:var(--njca-blue) !important;font-weight:700}
.entry-content .njca-stage p.njca-g{color:var(--njca-blue) !important;font-weight:700}
.entry-content .njca-stage p.njca-age{color:var(--njca-navy) !important;font-weight:700}
.entry-content .njca-voice p.njca-who{color:var(--njca-muted)}
/* text sitting on the stronger facets gets a faint light halo so it never drowns */
.entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-panel,.njca-event,.njca-voice,.njca-tool,.njca-news,.njca-pteaser-copy) :is(p,h3,h4){text-shadow:0 0 10px rgba(255,255,255,.7)}

/* gold buttons: deepest navy text, heavier weight */
.entry-content .wp-block-button:not(.is-style-outline) .wp-block-button__link,
.njca-btn-primary,
body #masthead .header-button{color:#0a1c4a !important;font-weight:800}

/* footer: white text throughout */
body .site-footer :is(p,span,a,li,.njca-fcol a,.njca-fcol span,.widget-title,h2,h3,h4){color:#fff !important}
body .site-footer a:hover{color:var(--njca-gold) !important}
body .site-footer .njca-motto{color:var(--njca-gold-l) !important}
body .site-footer .njca-fbrand small{color:rgba(255,255,255,.85) !important}
body .site-bottom-footer-wrap,
body .site-bottom-footer-wrap *{color:#fff !important}
body .site-footer .njca-fbrand .mark{color:#0a1c4a !important}

/* v1.8.1: word band floats over the bottom of the hero, no background of its own */
.entry-content .njca-band{background:transparent !important;border:0 !important;position:relative;z-index:2;margin-top:-60px !important;margin-bottom:0 !important}
.entry-content .njca-band p,.njca-band-t span{color:#fff;text-shadow:0 1px 10px rgba(5,15,40,.7)}
.entry-content .njca-hero{padding-bottom:110px !important}
@media (max-width:781px){.entry-content .njca-hero{padding-bottom:96px !important}}

/* v1.9.1: numbers strip now lives inside the learning stages section, so the light blue chapter is one section
   (one background, one photo). Navy fades into light blue, then into white. */
.entry-content #stages.njca-bg-light{background:linear-gradient(180deg,var(--njca-navy) 0%,var(--njca-light) 28%,var(--njca-light) 55%,var(--njca-white,#fff) 100%)}
.entry-content #stages .njca-stats{margin:0 auto 70px !important}
@media (max-width:600px){.entry-content #stages .njca-stats{margin-bottom:44px !important}}


/* =========================================================
   v1.11.0: phone fixes
   ========================================================= */
/* the side text was given a fixed width for desktop rows; on phones the row turns into a column,
   so that width became a 420px tall empty box. That was the big gaps. */
@media (max-width:1000px){
  .entry-content :is(.njca-copy,.njca-copy-wrap){flex:none !important;max-width:none}
  .entry-content .njca-head{gap:16px;margin-bottom:26px !important}
}
@media (max-width:600px){
  .entry-content .njca-sec{padding-top:44px !important;padding-bottom:44px !important}
  .entry-content .njca-sec.is-tight{padding-top:14px !important;padding-bottom:14px !important}
  .entry-content .njca-title{font-size:clamp(34px,10vw,44px)}
  .entry-content .njca-hero .njca-hero-title{font-size:clamp(44px,13vw,56px)}
  .entry-content .njca-hero-copy{font-size:17px}
  .entry-content .njca-visual{min-height:340px}
}

/* phone header: school name on one line, smaller, so the header stays slim */
@media (max-width:1024px){
  body #masthead .site-branding .site-title{font-size:19px !important;line-height:1.15;white-space:nowrap}
  body #masthead .site-branding{max-width:calc(100vw - 80px);overflow:hidden}
}
/* logged-in only: on phones WordPress lets its black admin bar scroll away while the header sticks,
   so the header slid underneath it. Keep both fixed and stack them. Visitors never see the admin bar. */
@media (max-width:600px){
  html #wpadminbar{position:fixed}
  .admin-bar #masthead{top:46px !important}
}


/* =========================================================
   v1.12.0: the top colour setting only paints backgrounds. Brand navy (header, headings,
   buttons, tartan) stays the school blue whatever the top colour is.
   ========================================================= */
:root{--njca-navy:#102a6a;--njca-bg1:#102a6a;--njca-header:#102a6a}
.entry-content .njca-hero.njca-bg-navy,
.entry-content .njca-bg-navy{background:var(--njca-bg1)}
.entry-content #stages.njca-bg-light{background:linear-gradient(180deg,var(--njca-bg1) 0%,color-mix(in srgb,var(--njca-bg1) 55%,var(--njca-light)) 12%,var(--njca-light) 30%,var(--njca-light) 55%,var(--njca-white,#fff) 100%)}
.entry-content .njca-band{background:transparent !important}
body #masthead{background:rgba(16,42,106,.86);background:color-mix(in srgb,var(--njca-header) 86%,transparent)}
body .popup-drawer .drawer-inner{background:var(--njca-header) !important}


/* =========================================================
   v1.13.0: one tartan for every card, sitting neatly inside the card
   ========================================================= */
.entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-panel,.njca-stats,.njca-event,.njca-voice,.njca-news){--plaid:var(--njca-navy) !important;border:1.5px solid var(--njca-ink) !important}
.entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-panel,.njca-stats,.njca-event,.njca-voice,.njca-news)::after{
  top:0;left:0;right:0;border-radius:0;
  background:
    repeating-linear-gradient(135deg,transparent 0 6px,rgba(255,255,255,.75) 6px 7.5px,transparent 7.5px 10px,rgba(127,146,192,.6) 10px 18px,transparent 18px 20px,rgba(255,255,255,.75) 20px 21.5px,transparent 21.5px 28px),
    repeating-linear-gradient(45deg,transparent 0 6px,rgba(255,255,255,.4) 6px 7.5px,transparent 7.5px 10px,rgba(127,146,192,.4) 10px 18px,transparent 18px 20px,rgba(255,255,255,.4) 20px 21.5px,transparent 21.5px 28px),
    var(--njca-navy) !important}
/* the card's rounded corners clip the strip, so nothing pokes out above the box */
.entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-panel,.njca-stats,.njca-event,.njca-voice,.njca-news){overflow:hidden;isolation:isolate;background-clip:padding-box}


/* =========================================================
   v1.14.0: parts 2 and 3 (learning stages, why families choose us, clubs): black and gold wording.
   Gold on a light background is too faint for text, so the gold here is a deep gold that stays readable.
   ========================================================= */
:root{--njca-black:#111827;--njca-gold-text:#8a6400}
.entry-content :is(#stages,#about,#life) :is(.njca-title,h2,h3,.njca-stage h3,.njca-panel h3,.njca-club-bd h3){color:var(--njca-black) !important}
.entry-content :is(#stages,#about,#life) .njca-kicker,
.entry-content :is(#stages,#about,#life) .njca-panel p.njca-kicker,
.entry-content :is(#stages,#about,#life) .njca-stage p.njca-g{color:var(--njca-gold-text) !important;font-weight:800}
.entry-content :is(#stages,#about,#life) :is(.njca-copy,.njca-stage p,.njca-panel p,.njca-club-bd p,.njca-stat p){color:#1f2937 !important}
.entry-content :is(#stages,#about,#life) .njca-stage p.njca-age{color:var(--njca-black) !important}
.entry-content :is(#stages,#about,#life) .njca-count{color:var(--njca-black) !important}
.entry-content :is(#stages,#about,#life) .njca-meta p{color:var(--njca-black)}
/* over a photo, the section text gets a soft light halo so it stays crisp */
.entry-content #stages :is(.njca-title,.njca-copy,.njca-kicker){text-shadow:0 0 14px rgba(255,255,255,.85),0 0 4px rgba(255,255,255,.6)}


/* =========================================================
   v2.0.0: chapters regrouped (Home, Our school, Gallery, Events and below, Footer),
   gold "minds" highlights, bigger reading text.
   ========================================================= */
:root{--njca-fs:18px;--njca-os-a:color-mix(in srgb,var(--njca-light) 33%,var(--njca-white,#fff));--njca-os-b:color-mix(in srgb,var(--njca-light) 66%,var(--njca-white,#fff))}

/* Our school: starts white (after the dark home), ends light blue at the bottom of the clubs */
.entry-content #stages.njca-bg-light{background:linear-gradient(180deg,var(--njca-bg1) 0%,var(--njca-white,#fff) 16%,var(--njca-os-a) 100%)}
.entry-content #about.njca-bg-white{background:linear-gradient(180deg,var(--njca-os-a) 0%,var(--njca-os-b) 100%)}
.entry-content #life.njca-bg-white{background:linear-gradient(180deg,var(--njca-os-b) 0%,var(--njca-light) 100%)}
/* Gallery: cream, melting in from the light blue */
.entry-content #gallery.njca-bg-cream{background:linear-gradient(180deg,var(--njca-light) 0%,var(--njca-cream) 22%,var(--njca-cream) 100%)}
/* Events and below: grey, melting in from the cream, all the way to the footer */
.entry-content #events.njca-bg-cream{background:linear-gradient(180deg,var(--njca-cream) 0%,var(--njca-grey) 25%,var(--njca-grey) 100%)}
.entry-content #voices.njca-bg-cream{background:var(--njca-grey)}
.entry-content :is(#events,#voices) :is(.njca-event,.njca-voice){background:var(--card,#fff) url("img/facet-white.svg") center/cover no-repeat !important;background-blend-mode:multiply}

/* gold "minds" highlight: words from Settings, NJCA Site, and anything marked with the editor's Highlight tool */
.entry-content .njca-hl,
.entry-content :is(h2,h3,p) mark{position:relative;white-space:nowrap;background:none !important;padding:0;color:var(--njca-gold-text,#8a6400) !important;text-shadow:none !important}
.entry-content .njca-bg-navy :is(.njca-hl,mark){color:var(--njca-gold) !important}
.entry-content .njca-hl::after,
.entry-content :is(h2,h3,p) mark::after{content:'';position:absolute;left:0;right:0;bottom:-.08em;height:.16em;min-height:3px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 12' preserveAspectRatio='none'%3E%3Cpath d='M3 8 C 60 2, 130 12, 197 5' fill='none' stroke='%23eaad02' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100%;clip-path:inset(0 100% 0 0);animation:njca-ink 1.2s ease .4s forwards}
.entry-content .njca-kicker .njca-hl::after{height:3px;bottom:-4px}
@media (prefers-reduced-motion:reduce){.entry-content :is(.njca-hl,mark)::after{animation:none;clip-path:none}}

/* bigger reading text (Text size setting) */
.entry-content :is(.njca-copy,.njca-stage p,.njca-panel p,.njca-club-bd p,.njca-event-bd p,.njca-tool p,.njca-pteaser-copy p,.njca-desk-copy p,.njca-story-bd p,.njca-news p,.njca-stat p):not(.njca-kicker):not(.njca-age):not(.njca-g):not(.njca-pill):not(.njca-lbl):not(.njca-tag){font-size:var(--njca-fs) !important;line-height:1.6}
.entry-content :is(.njca-stage p,.njca-club-bd p,.njca-event-bd p,.njca-tool p,.njca-stat p):not(.njca-age):not(.njca-g){font-size:calc(var(--njca-fs) - 1px) !important}
.entry-content .njca-hero-copy{font-size:max(19px,calc(var(--njca-fs) + 1px)) !important}
.entry-content .njca-kicker{font-size:14px}
@media (max-width:600px){
  .entry-content :is(.njca-copy,.njca-stage p,.njca-panel p,.njca-club-bd p,.njca-event-bd p,.njca-tool p,.njca-pteaser-copy p,.njca-desk-copy p,.njca-story-bd p,.njca-news p,.njca-stat p):not(.njca-kicker):not(.njca-age):not(.njca-g):not(.njca-pill):not(.njca-lbl):not(.njca-tag){font-size:min(var(--njca-fs),17px) !important}
  .entry-content .njca-hero-copy{font-size:17px !important}
}

/* v2.1.1: highlighted words use the same gold as "minds" everywhere.
   On light backgrounds a fine dark edge keeps the bright gold letters readable. */
.entry-content .njca-hl,
.entry-content :is(h2,h3,p) mark{color:var(--njca-gold) !important}
.entry-content :is(#stages,#about,#life,#gallery,#events,#voices,.njca-bg-grey,.njca-bg-white,.njca-bg-light,.njca-bg-cream) :is(.njca-hl,mark){text-shadow:0 1px 0 rgba(17,24,39,.35),0 0 1px rgba(17,24,39,.45) !important}


/* =========================================================
   v2.2.0
   ========================================================= */
/* announcement bar matches the header */
.njca-ticker{background:rgba(16,42,106,.86);background:color-mix(in srgb,var(--njca-header) 86%,transparent);border-bottom:1px solid rgba(255,255,255,.12)}

/* Our school starts clean white right under the home photo (no dark band) */
.entry-content #stages.njca-bg-light{background:linear-gradient(180deg,var(--njca-white,#fff) 0%,var(--njca-os-a) 100%)}

/* motto under the school name, in the footer's motto style */
body #masthead .site-branding .njca-motto-h{display:block;font-family:'DM Sans',system-ui,sans-serif;font-style:italic;font-weight:500;font-size:13px;line-height:1.2;color:#f6d77a;margin-top:3px;letter-spacing:.01em}
@media (max-width:1024px){body #masthead .site-branding .njca-motto-h{font-size:11px;margin-top:1px}}
body #masthead .site-branding .site-title{margin:0}

/* calm design: no crystals, no tilting, no fade-ins; tartan and gold underlines stay */
.njca-calm .tilt{transform:none !important;transition:none}
.njca-calm .entry-content [class*="njca-bg-"] :is(.njca-stage,.njca-stats,.njca-event,.njca-voice,.njca-tool,.njca-panel,.njca-news,.njca-pteaser-copy) :is(p,h3,h4){text-shadow:none}
.njca-calm .entry-content [class*="njca-bg-"] .njca-panel{background-color:#f4f7fd}


/* v2.3.0: the big numbers keep their size (the text-size setting is for paragraphs only) */
.entry-content .njca-stat p.njca-count,
.entry-content .njca-stats .njca-count{font-size:48px !important;line-height:1 !important;font-weight:700}
@media (max-width:781px){.entry-content .njca-stat p.njca-count,.entry-content .njca-stats .njca-count{font-size:40px !important}}

/* =========================================================
   v2.8.0: the original "minds" underline everywhere: a hand-drawn, slightly tilted gold stroke
   that draws itself in when the word comes into view. Used by highlighted words (.njca-hl),
   underlined words (.nje-ul) and photo captions.
   ========================================================= */
body .elementor :is(.njca-hl,.nje-ul)::after,
body .entry-content :is(.njca-hl,.nje-ul)::after,
body .njca-tile-cap::after{
  content:'' !important;position:absolute;left:-2% !important;right:-2% !important;bottom:-.14em !important;
  height:.2em !important;min-height:6px;border-radius:0 !important;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 10 C 50 3, 120 13, 197 4' fill='none' stroke='%23eaad02' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat center/100% 100% !important;
  transform:rotate(-1.5deg);transform-origin:left center;clip-path:inset(0 0 0 0)}
body .njca-tile-cap{padding-bottom:8px}
body .njca-tile-cap::after{bottom:0 !important;height:9px !important}
body .elementor h3 :is(.njca-hl,.nje-ul)::after{height:.24em !important;min-height:5px;bottom:-.18em !important}
/* the drawing: only when the script is running, so the line is never missing */
body .njca-ink-wait::after{clip-path:inset(0 100% 0 0) !important}
body .njca-ink-go::after{animation:njca-draw 1.1s cubic-bezier(.6,.05,.3,1) forwards}
@keyframes njca-draw{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@media (prefers-reduced-motion:reduce){body .njca-ink-wait::after{clip-path:none !important}body .njca-ink-go::after{animation:none}}

/* v2.8.2: the statement card keeps its gentle tilt (no skew); the photo of the learners gets the matching slant */
body .nje-quote .elementor-widget-text-editor p{font-family:'Fraunces',Georgia,serif;font-style:italic}
body .nje-hero-photo img{transform:rotate(-3deg) !important;transform-origin:center}
@media (max-width:767px){body .nje-hero-photo img{transform:rotate(-2deg) !important}}
