/* Cascade Mega Menu — front end. Component rules sit at (0,2,0) so theme link/heading rules (e.g. `.header a`) cannot blank panel content; override at >= (0,2,0) or per-node via the builder. No !important. */
:where(.cmm-sr){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Trigger item + toggle */
:where(li.cmm-has-panel){position:relative}
:where(.cmm-toggle){display:inline-flex;align-items:center;justify-content:center;margin:0;padding:0 .35em;background:none;border:0;color:inherit;font:inherit;line-height:1;cursor:pointer}
:where(.cmm-toggle .cmm-svg){width:1em;height:1em;transition:transform .18s ease}
:where(.cmm-toggle[aria-expanded="true"] .cmm-svg){transform:rotate(180deg)}
:where(.cmm-toggle--focus:not(:focus-visible)){position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0,0,0,0)}
:where(.cmm-toggle:focus-visible){outline:2px solid var(--cmm-c-brand,#1d4ed8);outline-offset:2px}

/* Panel (popup) — hidden unless desktop + open. Without JS the theme submenu stays in charge. */
.cmm-panel{display:none;position:absolute;min-width:min(var(--cmm-minw,0px),calc(var(--cmm-vw,100vw) - 24px));top:100%;left:0;z-index:var(--cmm-z,10000);box-sizing:border-box;width:min(var(--cmm-w,1120px),var(--cmm-maxw,99999px),calc(var(--cmm-vw,100vw) - 24px));max-width:calc(var(--cmm-vw,100vw) - 24px);padding-top:var(--cmm-gap,6px);font-family:var(--cmm-text-ff,var(--cmm-font-body,inherit));font-size:var(--cmm-text-size,inherit);font-weight:var(--cmm-text-weight,inherit);line-height:var(--cmm-text-lh,1.45);letter-spacing:var(--cmm-text-ls,normal);text-transform:var(--cmm-text-tt,none);color:var(--cmm-text-color,var(--cmm-c-ink,#1d2327));text-align:left}
.cmm-desktop .cmm-panel.is-open{display:block;animation:var(--cmm-anim,cmm-fade) var(--cmm-dur,160ms) var(--cmm-ease,ease) both}
@keyframes cmm-fade{from{opacity:0}to{opacity:1}}
@keyframes cmm-slide{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@keyframes cmm-scale{from{opacity:0;transform:scale(.96)}to{opacity:1;transform:none}}
.cmm-root-host{position:static}
.cmm-root-host .cmm-panel{position:fixed}
:is(.cmm-panel,.cmm-static) .cmm-panel__inner{box-sizing:border-box;max-height:min(var(--cmm-maxh,calc(100vh - 140px)),var(--cmm-mh,100000px));overflow:auto;overscroll-behavior:contain;background:var(--cmm-panel-bg,var(--cmm-c-surface,#fff));border:1px solid var(--cmm-c-line,#dcdcde);border-radius:var(--cmm-panel-radius,var(--cmm-radius,10px));box-shadow:var(--cmm-panel-shadow,0 18px 44px rgba(0,0,0,.18));padding:var(--cmm-panel-pad,20px)}
/* Theme submenu hidden only once JS confirmed the panel works (progressive enhancement). */
.cmm-ready.cmm-desktop li.cmm-has-panel>.sub-menu{display:none}
/* .cmm-m-hidden (hide theme submenu on mobile) is emitted with the site breakpoint in the token stylesheet. */

/* Static (shortcode / preview) */
:where(.cmm-static){--cmm-w:100%;font-family:var(--cmm-text-ff,var(--cmm-font-body,inherit));font-size:var(--cmm-text-size,inherit);font-weight:var(--cmm-text-weight,inherit);line-height:var(--cmm-text-lh,1.45);letter-spacing:var(--cmm-text-ls,normal);text-transform:var(--cmm-text-tt,none);color:var(--cmm-text-color,var(--cmm-c-ink,#1d2327))}
.cmm-static .cmm-panel__inner{max-height:var(--cmm-mh,none)}

/* Grid */
:is(.cmm-panel,.cmm-static) .cmm-row{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:var(--cmm-row-gap,20px)}
:is(.cmm-panel,.cmm-static) .cmm-row+.cmm-row{margin-top:var(--cmm-row-gap,20px)}
:is(.cmm-panel,.cmm-static) .cmm-col{grid-column:span 12;display:flex;flex-direction:column;gap:10px;min-width:0}

/* Blocks */
:is(.cmm-panel,.cmm-static) .cmm-b{min-width:0}
:is(.cmm-panel,.cmm-static) .cmm-eyebrow{display:block;font-size:.75em;letter-spacing:.08em;text-transform:uppercase;color:var(--cmm-c-muted,#50575e);font-weight:600}
:is(.cmm-panel,.cmm-static) .cmm-heading{margin:0;font-family:var(--cmm-font-display,inherit);font-size:1.25em;line-height:1.2;color:inherit}
:is(.cmm-panel,.cmm-static) .cmm-text>*:first-child{margin-top:0}:is(.cmm-panel,.cmm-static) .cmm-text>*:last-child{margin-bottom:0}
:is(.cmm-panel,.cmm-static) .cmm-list-title{margin:0 0 8px;font-size:.8em;letter-spacing:.06em;text-transform:uppercase;color:var(--cmm-c-muted,#50575e)}
:is(.cmm-panel,.cmm-static) .cmm-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
:is(.cmm-panel,.cmm-static) .cmm-list--sub{padding-left:14px}
:is(.cmm-panel,.cmm-static) .cmm-link{display:flex;align-items:flex-start;gap:10px;padding:7px 8px;border-radius:calc(var(--cmm-radius,10px) - 4px);color:var(--cmm-link,inherit);text-decoration:none;transition:color var(--cmm-hover-ms,150ms),background-color var(--cmm-hover-ms,150ms)}
:is(.cmm-panel,.cmm-static) a.cmm-link:hover,a.cmm-link:focus-visible{background:color-mix(in srgb,var(--cmm-c-brand,#1d4ed8) 9%,transparent);color:var(--cmm-c-brand,#1d4ed8)}
:is(.cmm-panel,.cmm-static) .cmm-link__text{display:flex;flex-direction:column;min-width:0}
:is(.cmm-panel,.cmm-static) .cmm-link__label{font-weight:600}
:is(.cmm-panel,.cmm-static) .cmm-link__desc{font-size:.875em;color:var(--cmm-c-muted,#50575e)}
:is(.cmm-panel,.cmm-static) .cmm-link__thumb img{width:44px;height:44px;object-fit:cover;border-radius:6px;display:block}
:is(.cmm-panel,.cmm-static) .cmm-icon{display:inline-flex;flex:none;width:1.25em;height:1.25em;color:var(--cmm-c-brand,#1d4ed8)}
:is(.cmm-panel,.cmm-static) .cmm-icon svg,.cmm-icon img{width:100%;height:100%;display:block}
:is(.cmm-panel,.cmm-static) .cmm-bigicon{display:inline-flex;width:var(--cmm-icon-size,32px);height:var(--cmm-icon-size,32px)}
:is(.cmm-panel,.cmm-static) .cmm-bigicon .cmm-icon{width:100%;height:100%}
:is(.cmm-panel,.cmm-static) .cmm-badge{display:inline-block;margin-top:2px;padding:1px 8px;border-radius:999px;background:color-mix(in srgb,var(--cmm-c-accent,#d97706) 16%,transparent);color:var(--cmm-c-ink,#1d2327);font-size:.72em;font-weight:600;width:max-content}
:is(.cmm-panel,.cmm-static) .cmm-badges{display:flex;flex-wrap:wrap;gap:6px;margin-top:6px}
:is(.cmm-panel,.cmm-static) .cmm-btn{display:inline-flex;align-items:center;gap:8px;padding:.6em 1.1em;border-radius:calc(var(--cmm-radius,10px) - 2px);border:1px solid transparent;font-weight:600;text-decoration:none;line-height:1.2}
:is(.cmm-panel,.cmm-static) .cmm-btn--primary{background:var(--cmm-c-brand,#1d4ed8);color:var(--cmm-c-onbrand,#fff)}
:is(.cmm-panel,.cmm-static) .cmm-btn--accent{background:var(--cmm-c-accent,#d97706);color:var(--cmm-c-onbrand,#fff)}
:is(.cmm-panel,.cmm-static) .cmm-btn--secondary{background:transparent;border-color:var(--cmm-c-brand,#1d4ed8);color:var(--cmm-c-brand,#1d4ed8)}
:is(.cmm-panel,.cmm-static) .cmm-btn--ghost{background:transparent;color:var(--cmm-c-brand,#1d4ed8)}
:is(.cmm-panel,.cmm-static) .cmm-btn--full{display:flex;justify-content:center}
:is(.cmm-panel,.cmm-static) .cmm-btn:hover{filter:brightness(1.08)}
:is(.cmm-panel,.cmm-static) .cmm-btn:focus-visible,.cmm-link:focus-visible,.cmm-card:focus-visible{outline:2px solid var(--cmm-c-brand,#1d4ed8);outline-offset:2px}
:is(.cmm-panel,.cmm-static) .cmm-btn__icon{width:1em;height:1em}
:is(.cmm-panel,.cmm-static) .cmm-card{display:flex;flex-direction:column;overflow:hidden;color:inherit;text-decoration:none;border:1px solid var(--cmm-c-line,#dcdcde);border-radius:var(--cmm-radius,10px);background:var(--cmm-c-surface,#fff);height:100%;transition:box-shadow .15s,transform .15s}
:is(.cmm-panel,.cmm-static) a.cmm-card:hover{box-shadow:0 8px 22px rgba(0,0,0,.14);transform:translateY(-2px)}
:is(.cmm-panel,.cmm-static) .cmm-card--emphasis{border-color:var(--cmm-c-accent,#d97706);box-shadow:0 0 0 2px color-mix(in srgb,var(--cmm-c-accent,#d97706) 40%,transparent)}
:is(.cmm-panel,.cmm-static) .cmm-card__media{display:block;overflow:hidden;background:color-mix(in srgb,var(--cmm-c-ink,#1d2327) 6%,transparent)}
:is(.cmm-panel,.cmm-static) .cmm-card__media img{display:block;width:100%;height:100%;object-fit:cover}
:is(.cmm-panel,.cmm-static) .cmm-ratio-16-9{aspect-ratio:16/9}:is(.cmm-panel,.cmm-static) .cmm-ratio-4-3{aspect-ratio:4/3}:is(.cmm-panel,.cmm-static) .cmm-ratio-1-1{aspect-ratio:1/1}:is(.cmm-panel,.cmm-static) .cmm-ratio-3-2{aspect-ratio:3/2}
:is(.cmm-panel,.cmm-static) .cmm-card__body{display:flex;flex-direction:column;gap:4px;padding:12px 14px 14px;flex:1}
:is(.cmm-panel,.cmm-static) .cmm-card__title{font-weight:700;font-family:var(--cmm-font-display,inherit);font-size:1.05em}
:is(.cmm-panel,.cmm-static) .cmm-card__desc{font-size:.9em;color:var(--cmm-c-muted,#50575e)}
:is(.cmm-panel,.cmm-static) .cmm-card__cta{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-weight:600;color:var(--cmm-c-brand,#1d4ed8);padding-top:6px}
:is(.cmm-panel,.cmm-static) .cmm-promo{position:relative;isolation:isolate;display:flex;align-items:flex-end;overflow:hidden;border-radius:var(--cmm-radius,10px);background:var(--cmm-c-brand,#1d4ed8);color:var(--cmm-c-onbrand,#fff);min-height:220px}
:is(.cmm-panel,.cmm-static) .cmm-promo__bg{position:absolute;inset:0;z-index:-2;width:100%;height:100%;object-fit:cover}
:is(.cmm-panel,.cmm-static) .cmm-promo::after{content:"";position:absolute;inset:0;z-index:-1;background:rgba(0,0,0,var(--cmm-overlay,.45))}
:is(.cmm-panel,.cmm-static) .cmm-promo__body{padding:20px;display:flex;flex-direction:column;gap:8px;max-width:46ch}
:is(.cmm-panel,.cmm-static) .cmm-promo--center{justify-content:center;text-align:center}:is(.cmm-panel,.cmm-static) .cmm-promo--center .cmm-promo__body{margin-inline:auto;align-items:center}
:is(.cmm-panel,.cmm-static) .cmm-promo--right{justify-content:flex-end;text-align:right}
:is(.cmm-panel,.cmm-static) .cmm-promo .cmm-eyebrow{color:inherit;opacity:.85}
:is(.cmm-panel,.cmm-static) .cmm-promo__title{margin:0;font-family:var(--cmm-font-display,inherit);font-size:1.5em;line-height:1.15}
:is(.cmm-panel,.cmm-static) .cmm-promo__desc{margin:0}
:is(.cmm-panel,.cmm-static) .cmm-promo__actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:6px}
:is(.cmm-panel,.cmm-static) .cmm-figure{margin:0}:is(.cmm-panel,.cmm-static) .cmm-image{display:block;overflow:hidden;border-radius:calc(var(--cmm-radius,10px) - 2px)}
:is(.cmm-panel,.cmm-static) .cmm-image img{display:block;width:100%;height:auto}:is(.cmm-panel,.cmm-static) .cmm-image[class*="cmm-ratio-"] img{height:100%;object-fit:cover}:is(.cmm-panel,.cmm-static) .cmm-fit-contain img{object-fit:contain!important}
:is(.cmm-panel,.cmm-static) .cmm-figure figcaption{font-size:.85em;color:var(--cmm-c-muted,#50575e);margin-top:4px}
:is(.cmm-panel,.cmm-static) .cmm-hr{border:0;border-top:1px solid var(--cmm-c-line,#dcdcde);margin:4px 0;width:100%}:is(.cmm-panel,.cmm-static) .cmm-hr--dashed{border-top-style:dashed}:is(.cmm-panel,.cmm-static) .cmm-hr--dotted{border-top-style:dotted}
:is(.cmm-panel,.cmm-static) .cmm-spacer{display:block;height:24px}
:is(.cmm-panel,.cmm-static) .cmm-values{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:14px}
:is(.cmm-panel,.cmm-static) .cmm-value{display:flex;gap:10px;align-items:flex-start}:is(.cmm-panel,.cmm-static) .cmm-value span span{display:block;font-size:.875em;color:var(--cmm-c-muted,#50575e)}
:is(.cmm-panel,.cmm-static) .cmm-contact{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
:is(.cmm-panel,.cmm-static) .cmm-contact__item{display:flex;gap:10px;align-items:flex-start}:is(.cmm-panel,.cmm-static) .cmm-contact__label{display:block;font-size:.8em;color:var(--cmm-c-muted,#50575e)}
:is(.cmm-panel,.cmm-static) .cmm-contact__value{color:inherit;font-weight:600}
:is(.cmm-panel,.cmm-static) .cmm-menu-source .cmm-list{column-count:var(--cmm-cols,1);column-gap:24px}:is(.cmm-panel,.cmm-static) .cmm-menu-source .cmm-list>li{break-inside:avoid}

/* Below the desktop breakpoint panels are not used (theme navigation handles mobile in Phase 1). */
/* Mobile: accordion / drawer reuse the same panels, stacked inline. Targets are touch-sized. */
html:not(.cmm-desktop) body[class*="cmm-mobile-"] li.cmm-has-panel{display:flex;flex-wrap:wrap;align-items:center}
html:not(.cmm-desktop) body[class*="cmm-mobile-"] li.cmm-has-panel>a{flex:1 1 0;min-width:0}
html:not(.cmm-desktop) body[class*="cmm-mobile-"] .cmm-toggle{position:static;width:auto;height:auto;margin:0;clip:auto;overflow:visible;min-width:var(--cmm-target,44px);min-height:var(--cmm-target,44px);flex:none}
html:not(.cmm-desktop) body[class*="cmm-mobile-"] li.cmm-has-panel>.sub-menu{display:none}
html:not(.cmm-desktop) body[class*="cmm-mobile-"] .cmm-panel.is-open{display:block;position:static;flex:0 0 100%;width:auto;max-width:none;padding-top:4px;animation:none}
html:not(.cmm-desktop) body[class*="cmm-mobile-"] .cmm-panel__inner{max-height:none;box-shadow:none;border-radius:6px;padding:12px}
html:not(.cmm-desktop) body[class*="cmm-mobile-"] .cmm-row{grid-template-columns:1fr}
html:not(.cmm-desktop) body[class*="cmm-mobile-"] .cmm-col{grid-column:1/-1}
html:not(.cmm-desktop) body[class*="cmm-mobile-"] .cmm-link,html:not(.cmm-desktop) body[class*="cmm-mobile-"] .cmm-btn{min-height:var(--cmm-target,44px)}
@media (prefers-reduced-motion:reduce){.cmm-desktop .cmm-panel.is-open{animation:none}.cmm-toggle .cmm-svg,.cmm-card{transition:none}}

/* 0.3.5 — isolate panel content from surrounding navigation rules. Themes (X: li/a nowrap, text-overflow) and the header Layout feature set
   white-space:nowrap on menu items, which the panel inherits: descriptions stayed on one line and were clipped by the card. Scoped to panel blocks only. */
html body .cmm-panel,html body .cmm-static{white-space:normal;text-align:start;text-indent:0}
html body .cmm-panel .cmm-b,html body .cmm-panel .cmm-b *,html body .cmm-static .cmm-b,html body .cmm-static .cmm-b *{white-space:normal!important;text-overflow:clip!important}
html body .cmm-panel .cmm-b :is(.cmm-card__desc,.cmm-card__title,.cmm-link__desc,.cmm-link__label,.cmm-promo__desc,.cmm-promo__title,.cmm-heading,.cmm-text,.cmm-eyebrow,.cmm-badge,.cmm-contact__value,.cmm-value){overflow-wrap:break-word;word-break:normal;min-width:0;max-width:100%}
html body .cmm-panel .cmm-b :is(.cmm-link__text,.cmm-card__body,.cmm-promo__body){min-width:0}
/* Equal-height cards: the block wrapper fills its stretched column and the card fills the wrapper (CTA stays pinned to the bottom via margin-top:auto). */
:is(.cmm-panel,.cmm-static) .cmm-col>.cmm-b:has(>.cmm-card){display:flex;flex-direction:column;flex:1 1 auto}
:is(.cmm-panel,.cmm-static) .cmm-b>.cmm-card{flex:1 1 auto;height:auto}

/* card image placement + CTA-only links (0.3.6) */
:is(.cmm-panel,.cmm-static) .cmm-card--img-bottom{flex-direction:column-reverse}
:is(.cmm-panel,.cmm-static) .cmm-card--img-left,:is(.cmm-panel,.cmm-static) .cmm-card--img-right{flex-direction:row;align-items:stretch}
:is(.cmm-panel,.cmm-static) .cmm-card--img-right{flex-direction:row-reverse}
:is(.cmm-panel,.cmm-static) .cmm-card--img-left>.cmm-card__media,:is(.cmm-panel,.cmm-static) .cmm-card--img-right>.cmm-card__media{flex:0 0 38%;max-width:38%;aspect-ratio:auto}
:is(.cmm-panel,.cmm-static) .cmm-card--img-left>.cmm-card__body,:is(.cmm-panel,.cmm-static) .cmm-card--img-right>.cmm-card__body{min-width:0}
:is(.cmm-panel,.cmm-static) .cmm-card--cta-link:hover{transform:none;box-shadow:none}
:is(.cmm-panel,.cmm-static) a.cmm-card__cta{text-decoration:none}
