/* Shared site header + mobile tab bar for standalone pages (blog, impact, fund-impact, 404, docs). Same look as the homepage topbar (home.min.css .topbar/.tabs/.tabbar). */
.cmh{--cmh-ink:#15111B;--cmh-ink2:#5E5868;--cmh-nav:rgba(251,250,247,.74);--cmh-hair:rgba(0,0,0,.1);--cmh-elev:#fff;--cmh-cur:#0058b0;--cmh-curbg:rgba(0,113,227,.1);--cmh-bar:rgba(250,250,252,.62);--cmh-barb:rgba(255,255,255,.55)}
.cmh,.cmh-bar{font-family:-apple-system,BlinkMacSystemFont,"SF Pro Display","SF Pro Text","Helvetica Neue","Segoe UI",Inter,Roboto,Arial,sans-serif;letter-spacing:-.022em;-webkit-font-smoothing:antialiased;box-sizing:border-box}
.cmh *,.cmh-bar *{box-sizing:border-box}
.cmh{position:sticky;top:0;z-index:50;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:16px;height:60px;margin:0;padding:0 20px;color:var(--cmh-ink);background:var(--cmh-nav);-webkit-backdrop-filter:saturate(180%) blur(22px);backdrop-filter:saturate(180%) blur(22px);border-bottom:1px solid var(--cmh-hair)}
.cmh-logo{justify-self:start;display:inline-flex;align-items:center;min-height:44px;color:var(--cmh-ink);text-decoration:none!important}
.cmh-logo .caio-wm{display:block;height:24px;width:auto;color:var(--cmh-ink);overflow:visible}
.cmh-logo:hover .caio-wm{opacity:.86}
.cmh-tabs{display:flex;gap:2px;margin:0;padding:3px;border-radius:12px;background:rgba(118,118,128,.12);box-shadow:inset 0 0 0 .5px rgba(0,0,0,.04)}
.cmh-tab{position:relative;padding:6px 15px;border-radius:9px;font-size:14px;line-height:1.43;font-weight:500;color:var(--cmh-ink);opacity:.72;text-decoration:none!important;white-space:nowrap;transition:background .25s,opacity .2s,box-shadow .25s}
.cmh-tab:hover{opacity:1}
.cmh-tab[aria-current=page]{opacity:1;background:var(--cmh-elev);box-shadow:0 1px 3px rgba(0,0,0,.12),0 0 0 .5px rgba(0,0,0,.04)}
.cmh-tab:focus-visible,.cmh-logo:focus-visible,.cmh-mtab:focus-visible{outline:2px solid #7B3FE4;outline-offset:2px}
.cmh-act{justify-self:end;display:flex;align-items:center;gap:8px;color:var(--cmh-ink)}
.cmh-bar{display:none}
html[data-theme=dark] .cmh,html[data-theme=dark] .cmh-bar{--cmh-ink:#F5F2EE;--cmh-ink2:#ABA4B6;--cmh-nav:rgba(14,11,20,.74);--cmh-hair:rgba(255,255,255,.14);--cmh-elev:#3a3a3c;--cmh-cur:#2997ff;--cmh-curbg:rgba(41,151,255,.16);--cmh-bar:rgba(28,28,32,.94);--cmh-barb:rgba(255,255,255,.12)}
@media (prefers-color-scheme:dark){html:not([data-theme=light]) .cmh,html:not([data-theme=light]) .cmh-bar{--cmh-ink:#F5F2EE;--cmh-ink2:#ABA4B6;--cmh-nav:rgba(14,11,20,.74);--cmh-hair:rgba(255,255,255,.14);--cmh-elev:#3a3a3c;--cmh-cur:#2997ff;--cmh-curbg:rgba(41,151,255,.16);--cmh-bar:rgba(28,28,32,.94);--cmh-barb:rgba(255,255,255,.12)}}
.cmh-bar{--cmh-ink:#15111B;--cmh-ink2:#5E5868;--cmh-cur:#0058b0;--cmh-curbg:rgba(0,113,227,.1);--cmh-bar:rgba(250,250,252,.62);--cmh-barb:rgba(255,255,255,.55)}
html[data-theme=dark] .cmh-bar{--cmh-ink:#F5F2EE;--cmh-ink2:#ABA4B6;--cmh-cur:#2997ff;--cmh-curbg:rgba(41,151,255,.16);--cmh-bar:rgba(28,28,32,.94);--cmh-barb:rgba(255,255,255,.12)}
@media (prefers-color-scheme:dark){html:not([data-theme=light]) .cmh-bar{--cmh-ink:#F5F2EE;--cmh-ink2:#ABA4B6;--cmh-cur:#2997ff;--cmh-curbg:rgba(41,151,255,.16);--cmh-bar:rgba(28,28,32,.94);--cmh-barb:rgba(255,255,255,.12)}}
@media (max-width:1000px) and (min-width:821px){.cmh-tab{padding:6px 9px}}
@media (max-width:820px){
.cmh{grid-template-columns:1fr auto;height:54px;padding:0 14px}
.cmh-tabs{display:none}
.cmh-bar{display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);position:fixed;left:14px;right:14px;bottom:calc(14px + env(safe-area-inset-bottom));z-index:60;height:48px;margin:0;padding:0 2px;border-radius:16px;border:1px solid var(--cmh-barb);background:var(--cmh-bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 8px 22px -8px rgba(20,16,40,.28),0 1px 4px rgba(20,16,40,.06),inset 0 1px rgba(255,255,255,.7)}
.cmh-mtab{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:1px;min-width:0;min-height:44px;margin:2px 0;border-radius:12px;font-size:11px;line-height:1.1;font-weight:500;color:var(--cmh-ink2);text-decoration:none!important;transition:color .2s,transform .2s}
.cmh-mtab svg{width:18px;height:18px}
.cmh-mtab span{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cmh-mtab:active{transform:scale(.92)}
.cmh-mtab[aria-current]{color:var(--cmh-cur);background:var(--cmh-curbg)}
html:has(.cmh-bar) body{padding-bottom:calc(80px + env(safe-area-inset-bottom))}
}
@media (max-width:374px){.cmh-mtab{font-size:10px}}
@media (prefers-reduced-motion:reduce){.cmh-tab,.cmh-mtab{transition:none}.cmh-mtab:active{transform:none}}
@media print{.cmh-bar{display:none!important}.cmh{position:static}}
/* designbar-1111: Arquitectonica-style header for standalone pages (matches home topbar redesign) */
.cmh{gap:0;padding:0 clamp(20px,4vw,48px);background:#fbfbfd;-webkit-backdrop-filter:none;backdrop-filter:none;border-bottom:1px solid rgba(0,0,0,.09)}
@media(prefers-color-scheme:dark){html:not([data-theme=light]) .cmh{background:#161617;border-bottom:1px solid rgba(255,255,255,.1)}}
html[data-theme=dark] .cmh{background:#161617;border-bottom:1px solid rgba(255,255,255,.1)}
.cmh-tabs{background:none;box-shadow:none;padding:0;gap:clamp(18px,2.6vw,36px);border-radius:0;justify-self:center}
.cmh-tab{padding:0 14px;font-size:11.5px;font-weight:600;letter-spacing:.18em;text-transform:uppercase;opacity:.55;border-radius:0;transition:opacity .2s}
.cmh-tab:hover{opacity:.9;background:none;box-shadow:none}
.cmh-tab[aria-current=page]{opacity:1;background:none!important;box-shadow:none!important;color:var(--cmh-ink)}
.cmh-tab:after{content:"";position:absolute;left:0;right:0;bottom:-2px;height:3px;background:linear-gradient(90deg,#7B3FE4,#A47BFF 45%,#D4AF6A);transform:scaleX(0);transform-origin:left;transition:transform .25s cubic-bezier(.28,.11,.32,1)}
.cmh-tab[aria-current=page]:after{transform:scaleX(1)}
