/* R13.2: non-sticky premium header only; all R13.1 section surfaces remain unchanged. */
.madar-header{background:#fff;border-block-end:1px solid #5074252e;box-shadow:0 2px 6px #052b6008,0 12px 28px -18px #052b6033;border-end-start-radius:1.75rem;border-end-end-radius:1.75rem;}
.madar-header-inner{min-block-size:8.25rem;padding-block:.5rem;gap:1rem;}
.madar-header-inner .madar-brand{gap:.875rem;align-items:center;flex:none;}
.madar-header-inner .madar-brand-mark{inline-size:8rem;flex:none;}
.madar-header-inner .madar-brand-mark img{display:block;inline-size:100%;block-size:auto;object-fit:contain;}
.madar-header-inner .madar-brand-name,body.editor-styles-wrapper .madar-header-inner .madar-brand-name{inline-size:13.25rem;font-size:1.125rem;line-height:1.45;font-weight:700;text-wrap:balance;overflow-wrap:normal;word-break:normal;padding-inline-start:.875rem;border-inline-start:1px solid #50742530;box-sizing:content-box;}
.madar-header-inner .madar-brand-name a{padding-block:.25rem;}
.madar-header .madar-desktop-nav .wp-block-navigation__container{gap:clamp(.25rem,.7vw,.75rem);}
.madar-header .madar-desktop-nav .wp-block-navigation-item__content{padding:.625rem .5rem;border-radius:.625rem;line-height:1.5;transition:background-color 200ms,color 200ms;}
.madar-header .madar-desktop-nav .wp-block-navigation-item__content:hover,.madar-header .madar-desktop-nav .wp-block-navigation-item__content[aria-current]{background:#f0f6ec;color:var(--madar-navy);}
.madar-header .madar-desktop-nav .wp-block-navigation-item:is(.current-menu-item,.current-menu-ancestor)::after{inset-inline:.5rem;inset-block-end:.125rem;block-size:2px;}
.madar-header .madar-contact{padding:0;background:transparent;}
.madar-header .madar-contact a{display:flex;align-items:center;justify-content:center;background:var(--madar-navy);color:#fff;border-radius:3rem;min-block-size:3rem;padding:.65rem 1.125rem;white-space:nowrap;border:1px solid #052b601a;box-shadow:0 3px 10px #052b6010;transition:background-color 200ms;}
.madar-header .madar-contact a:hover{background:var(--madar-green);color:#fff;}
.madar-header .madar-contact a:focus-visible{outline:3px solid var(--madar-green);outline-offset:4px;}
.madar-header .madar-mobile-nav .wp-block-navigation__responsive-container-open{background:#f1f7f1;border:1px solid #50742533;border-radius:.75rem;}
.madar-header .madar-mobile-nav .wp-block-navigation__responsive-container-close{background:#f1f7f1;border:1px solid #50742533;border-radius:.75rem;}
.madar-header .madar-mobile-nav .wp-block-navigation__responsive-container.is-menu-open{background:#fff;border-block-start:4px solid var(--madar-green);padding:clamp(1.25rem,4vw,2.5rem);}
.madar-header .madar-mobile-nav .is-menu-open .wp-block-navigation__responsive-container-content{max-inline-size:34rem;padding-block-start:4rem;margin-inline:auto;}
.madar-header .madar-mobile-nav .is-menu-open .wp-block-navigation__container{gap:.625rem;}
.madar-header .madar-mobile-nav .is-menu-open .wp-block-navigation-item__content{min-block-size:3.25rem;padding:.75rem 1rem;border:1px solid #50742526;border-radius:.75rem;background:#f8fbf7;color:var(--madar-navy);font-weight:500;line-height:1.5;transition:background-color 200ms;}
.madar-header .madar-mobile-nav .is-menu-open .wp-block-navigation-item__content[aria-current]{background:#edf5e6;color:var(--madar-green);font-weight:700;text-decoration:underline;}
.madar-header .madar-mobile-nav .is-menu-open .wp-block-navigation-item__content:hover{background:#edf5e6;}
@media(min-width:1200px) and (max-width:1399px){.madar-header-inner .madar-brand-name,body.editor-styles-wrapper .madar-header-inner .madar-brand-name{inline-size:11.5rem;font-size:1.0625rem;}.madar-header .madar-desktop-nav{font-size:1rem;}.madar-header .madar-desktop-nav .wp-block-navigation-item__content{padding-inline:.375rem;}.madar-header .madar-contact a{padding-inline:.875rem;font-size:1rem;}}
@media(min-width:1200px){.madar-header-inner{display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);column-gap:1rem;}.madar-header-inner .madar-brand{justify-self:start;}.madar-header-inner .madar-desktop-nav{justify-self:center;}.madar-header-inner .madar-contact{justify-self:end;}}
@media(max-width:1199px){.madar-header-inner{min-block-size:7.5rem;justify-content:space-between;}.madar-header-inner .madar-brand-mark{inline-size:7.125rem;}.madar-header-inner .madar-brand-name,body.editor-styles-wrapper .madar-header-inner .madar-brand-name{inline-size:13rem;font-size:1.125rem;line-height:1.45;}}
@media(max-width:767px){.madar-header{border-end-start-radius:1rem;border-end-end-radius:1rem;}.madar-header-inner{min-block-size:6.5rem;gap:.625rem;}.madar-header-inner .madar-brand{gap:.5rem;}.madar-header-inner .madar-brand-mark{inline-size:6rem;}.madar-header-inner .madar-brand-name,body.editor-styles-wrapper .madar-header-inner .madar-brand-name{inline-size:clamp(8rem,42vw,11rem);font-size:.9375rem;line-height:1.45;padding-inline-start:.5rem;}.madar-header .madar-mobile-nav{margin-inline-start:auto;}}
@media(max-width:359px){.madar-header-inner .madar-brand-mark{inline-size:5rem;}.madar-header-inner .madar-brand-name,body.editor-styles-wrapper .madar-header-inner .madar-brand-name{inline-size:8.75rem;font-size:.90625rem;}.madar-header-inner .madar-brand{gap:.375rem;}.madar-header-inner{gap:.5rem;}}
/* Entrance affects the brand only, never the Core modal's containing block. No hidden pre-JS state. */
@keyframes madar-brand-enter{from{opacity:.85;translate:0 8px;}to{opacity:1;translate:0 0;}}
body:not(.editor-styles-wrapper) .madar-header .madar-brand{animation:madar-brand-enter 420ms ease-out;}
@media(prefers-reduced-motion:reduce){.madar-header *{animation:none!important;transition:none!important;}}
.editor-styles-wrapper .madar-header-inner .madar-brand{animation:none;}

/* R13.3: opened Core Navigation only; closed header and desktop are untouched. */
.madar-header .madar-mobile-nav .wp-block-navigation__responsive-container.is-menu-open{background-color:#f1f7f1!important;}
.madar-header .madar-mobile-nav .is-menu-open .wp-block-navigation__container{padding:1rem;background-color:#fff!important;border:1px solid #50742526;border-radius:1rem;}
.madar-header .madar-mobile-nav .is-menu-open .madar-nav-contact > .wp-block-navigation-item__content{background:var(--madar-navy);border-color:var(--madar-navy);color:#fff;justify-content:center;font-weight:700;text-decoration:none;}
.madar-header .madar-mobile-nav .is-menu-open .madar-nav-contact > .wp-block-navigation-item__content:is(:hover,:focus-visible){background:var(--madar-green);border-color:var(--madar-green);color:#fff;}

/* Core overlay must clear the program icon stacking contexts, only while open. */
.madar-header:has(.madar-mobile-nav .is-menu-open){z-index:1000;}

/* V2.1 verified accessibility defect: at200% user text size the fixed brand
 * exceeded a390px viewport. Allow intrinsic wrapping without shrinking text.
 * At the approved normal text size the existing single-row geometry is retained. */
@media(max-width:767px) {
 .madar-header-inner .madar-brand {flex:0 1 auto;min-inline-size:0;}
 .madar-header-inner .madar-brand-name {min-inline-size:0;overflow-wrap:anywhere;}
 .madar-header-inner .madar-brand-mark {max-inline-size:min(100%,25vw);}
}
