/* Billion Hopes site chrome copied from the live homepage HTML supplied by the site owner.
   Scoped to the BH Content Hub templates so the Hub/article presentation itself remains unchanged. */
:root {
    --bh-navy:#10233f;
    --bh-blue:#0874d1;
    --bh-cyan:#20c9e8;
    --bh-line:#dce8f2;
    --bh-container:min(1180px, calc(100% - 40px));
}

html { scroll-behavior:smooth; }
body.menu-open { overflow:hidden; }

.bh-page-shell { position:relative; padding-top:84px; }
.bh-site-header,
.bh-site-header *,
.bh-footer,
.bh-footer *,
.bh-top { box-sizing:border-box; }
.bh-site-header,
.bh-footer,
.bh-top {
    font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    -webkit-font-smoothing:antialiased;
}
.bh-site-header img,
.bh-footer img { display:block; max-width:100%; }
.bh-site-header a,
.bh-footer a,
.bh-top { color:inherit; text-decoration:none; }
.bh-site-header button { font:inherit; }
.bh-page-shell > .screen-reader-text {
    position:absolute!important;
    width:1px;
    height:1px;
    padding:0;
    margin:-1px;
    overflow:hidden;
    clip:rect(0,0,0,0);
    white-space:nowrap;
    border:0;
}
.bh-container { width:var(--bh-container); margin-inline:auto; }

.bh-site-header{position:fixed;top:0;left:0;right:0;width:100%;z-index:1000;background:rgba(255,255,255,.93);backdrop-filter:blur(18px);border-bottom:1px solid rgba(220,232,242,.8)}
.bh-header-inner{width:var(--bh-container);height:84px;margin:auto;display:flex;align-items:center;justify-content:space-between;gap:28px;position:relative}
.bh-logo{flex:0 0 auto;width:128px}
.bh-logo img{width:128px;height:auto}
.bh-nav ul{display:flex;align-items:center;gap:28px;list-style:none;margin:0;padding:0}
.bh-nav a{position:relative;font-size:13px;line-height:1;font-weight:750;letter-spacing:.045em;color:#293b53;padding:34px 0}
.bh-nav a::after{content:"";position:absolute;left:0;right:100%;bottom:22px;height:2px;border-radius:999px;background:linear-gradient(90deg,var(--bh-blue),var(--bh-cyan));transition:right .25s ease}
.bh-nav a:hover::after,.bh-nav a:focus-visible::after{right:0}
.bh-menu-toggle{display:none;width:44px;height:44px;border:1px solid var(--bh-line);background:#fff;border-radius:14px;align-items:center;justify-content:center;cursor:pointer}
.bh-menu-toggle span,.bh-menu-toggle span::before,.bh-menu-toggle span::after{display:block;width:20px;height:2px;background:var(--bh-navy);border-radius:4px;transition:.25s ease}
.bh-menu-toggle span{position:relative}
.bh-menu-toggle span::before,.bh-menu-toggle span::after{content:"";position:absolute;left:0}
.bh-menu-toggle span::before{top:-6px}.bh-menu-toggle span::after{top:6px}
.menu-open .bh-menu-toggle span{background:transparent}
.menu-open .bh-menu-toggle span::before{top:0;transform:rotate(45deg)}
.menu-open .bh-menu-toggle span::after{top:0;transform:rotate(-45deg)}

/* V6: separate Billion Hopes and Academy mega menus */
.bh-nav>ul{gap:14px}
.bh-nav-item-mega{position:static!important}
.bh-nav-link-wrap{display:flex;align-items:center;gap:4px}
.bh-mega-toggle{display:grid;place-items:center;width:26px;height:26px;padding:0;border:0;background:transparent;color:#293b53;cursor:pointer;border-radius:8px;transition:.2s ease}
.bh-mega-toggle:hover,.bh-mega-toggle:focus-visible{background:#edf7fd;color:var(--bh-blue)}
.bh-mega-toggle svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round;transition:transform .24s ease}
.bh-nav-item-mega:hover>.bh-nav-link-wrap .bh-mega-toggle svg,.bh-nav-item-mega:focus-within>.bh-nav-link-wrap .bh-mega-toggle svg,.bh-nav-item-mega.is-open>.bh-nav-link-wrap .bh-mega-toggle svg{transform:rotate(180deg)}
.bh-mega-panel{position:absolute;top:76px;right:0;width:min(990px,calc(100vw - 40px));padding:16px;border-radius:27px;box-shadow:0 30px 80px rgba(5,23,45,.25);opacity:0;visibility:hidden;transform:translateY(12px) scale(.985);transform-origin:top right;transition:opacity .22s ease,visibility .22s ease,transform .22s ease;overflow:hidden;z-index:30}
.bh-nav-item-mega:hover>.bh-mega-panel,.bh-nav-item-mega:focus-within>.bh-mega-panel,.bh-nav-item-mega.is-open>.bh-mega-panel{opacity:1;visibility:visible;transform:none}
.bh-mega-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(var(--bh-mega-columns,3),minmax(0,1fr));gap:12px}
.bh-mega-column{padding:20px;border-radius:19px}
.bh-mega-column h3{margin:0 0 12px;font-size:12px;letter-spacing:.16em;text-transform:uppercase}
.bh-mega-column a{display:flex!important;align-items:center;justify-content:space-between;gap:10px;padding:12px 13px!important;margin-top:7px!important;border-radius:12px!important;font-size:13px!important;font-weight:760!important;line-height:1.35!important;letter-spacing:0!important;transition:background .2s ease,border-color .2s ease,transform .2s ease!important}
.bh-mega-column a::after{display:none!important}
.bh-mega-column a:hover,.bh-mega-column a:focus-visible{transform:translateX(3px)}

.bh-unified-arrow{display:inline-flex;align-items:center;justify-content:center;flex:none;line-height:1}
.bh-unified-arrow svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.bh-arrow-left svg,.bh-arrow-right svg{display:block}
.bh-mega-column a .bh-unified-arrow{color:var(--bh-blue);transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease}
.bh-mega-column a:hover .bh-unified-arrow{transform:translateX(2px)}

.bh-mega-panel--academy{left:50%;right:auto;width:min(1180px,calc(100vw - 40px));padding:32px 32px 34px;border:1px solid rgba(76,95,224,.16);border-radius:28px;background:radial-gradient(circle at 0 0,rgba(116,104,255,.11),transparent 30%),radial-gradient(circle at 100% 100%,rgba(32,201,232,.12),transparent 34%),linear-gradient(135deg,#fafaff 0%,#f7fbff 55%,#f2fbff 100%);box-shadow:0 34px 85px rgba(27,45,88,.22);transform:translate(-50%,12px) scale(.985);transform-origin:top center;overflow:hidden}
.bh-nav-item-mega:hover>.bh-mega-panel--academy,.bh-nav-item-mega:focus-within>.bh-mega-panel--academy,.bh-nav-item-mega.is-open>.bh-mega-panel--academy{transform:translateX(-50%)}
.bh-academy-mega-head{position:relative;z-index:1;display:flex;align-items:center;justify-content:space-between;gap:18px;margin:0 0 22px;padding:0 0 20px;border-bottom:1px solid rgba(76,95,224,.14)}
.bh-academy-mega-title{margin:0;padding:0;color:#171b31;font-size:24px;line-height:1.2;font-weight:800;letter-spacing:-.025em}
.bh-academy-home-btn{display:inline-flex!important;align-items:center;justify-content:center;flex:none;min-height:42px;padding:10px 20px!important;border:1px solid rgba(76,95,224,.20)!important;border-radius:13px!important;background:#fff!important;color:#304fe0!important;box-shadow:0 10px 24px -18px rgba(49,72,190,.72)!important;font-size:13px!important;line-height:1!important;font-weight:800!important;letter-spacing:.01em!important;transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease,box-shadow .18s ease!important}
.bh-academy-home-btn::after{display:none!important}
.bh-academy-home-btn:hover,.bh-academy-home-btn:focus-visible{transform:translateY(-2px);background:linear-gradient(135deg,#5264f3,#30bce7)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 16px 28px -18px rgba(49,72,190,.82)!important}
.bh-academy-mega-grid{position:relative;z-index:1;display:grid;grid-template-columns:repeat(var(--bh-academy-columns,3),minmax(0,1fr));grid-template-rows:repeat(3,minmax(88px,auto));grid-auto-flow:column;gap:18px}
.bh-academy-mega-card{position:relative!important;min-height:88px;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:18px;padding:18px 20px 18px 28px!important;border:1px solid rgba(76,95,224,.14)!important;border-radius:20px!important;color:#171b31!important;background:linear-gradient(135deg,#f2f0ff 0%,#edf3ff 100%)!important;box-shadow:0 14px 28px -28px rgba(23,26,46,.55)!important;font-size:inherit!important;line-height:1.25!important;letter-spacing:0!important;overflow:hidden;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease,color .18s ease,background .18s ease!important}
.bh-academy-mega-card::before{content:"";position:absolute;left:0;top:16px;bottom:16px;width:4px;border-radius:0 6px 6px 0;background:linear-gradient(180deg,#5a67f2,#30bce7);opacity:.84}
.bh-academy-mega-card::after{display:none!important}
.bh-academy-mega-card.is-group-2{background:linear-gradient(135deg,#edfbf8 0%,#eefbff 100%)!important}
.bh-academy-mega-card.is-group-3{background:linear-gradient(135deg,#fff2f5 0%,#fff7ee 100%)!important}
.bh-academy-mega-copy{display:flex;min-width:0;flex-direction:column;align-items:flex-start}
.bh-academy-mega-card .bh-mega-title{display:block;color:inherit;font-size:15px;line-height:1.28;font-weight:780;letter-spacing:-.012em}
.bh-academy-mega-card .bh-mega-subtitle{display:block;margin-top:6px;color:#727997;font-size:11px;line-height:1.25;font-weight:650;letter-spacing:.01em}
.bh-academy-mega-card .bh-unified-arrow{width:38px;height:38px;border-radius:12px;border:1px solid rgba(76,95,224,.18);background:rgba(255,255,255,.94);color:#5264f3;box-shadow:0 8px 18px -14px rgba(76,95,224,.7);transition:transform .18s ease,background .18s ease,color .18s ease,border-color .18s ease}
.bh-academy-mega-card:hover,.bh-academy-mega-card:focus-visible{transform:translateY(-3px)!important;color:#4c5fe0!important;border-color:rgba(76,95,224,.30)!important;background:#fff!important;box-shadow:0 22px 38px -28px rgba(45,56,125,.46)!important}
.bh-academy-mega-card:hover .bh-unified-arrow,.bh-academy-mega-card:focus-visible .bh-unified-arrow{transform:translateX(2px);color:#fff;background:linear-gradient(135deg,#5264f3,#30bce7);border-color:transparent}
.bh-academy-mega-card.is-disabled{cursor:default;opacity:.72}
.bh-academy-mega-card.is-disabled .bh-unified-arrow{display:none}

.bh-mega-panel--bh{border:1px solid #d7e8f3;background:linear-gradient(145deg,rgba(255,255,255,.99),rgba(240,249,255,.985))}
.bh-mega-panel--bh::before{content:"";position:absolute;left:-75px;top:-110px;width:280px;height:260px;border-radius:50%;background:radial-gradient(circle,rgba(31,179,229,.19),transparent 68%);pointer-events:none}
.bh-mega-panel--bh::after{content:"";position:absolute;right:-90px;bottom:-130px;width:300px;height:270px;border-radius:50%;background:radial-gradient(circle,rgba(62,96,230,.13),transparent 68%);pointer-events:none}
.bh-mega-panel--bh .bh-mega-column{background:rgba(255,255,255,.82);border:1px solid #dcebf4;box-shadow:0 12px 28px rgba(18,67,105,.07)}
.bh-mega-panel--bh .bh-mega-column:nth-child(2){background:linear-gradient(150deg,#f4fbff,#eef5ff)}
.bh-mega-panel--bh .bh-mega-column:nth-child(3){background:linear-gradient(150deg,#f4fcfb,#f1f8ff)}
.bh-mega-panel--bh .bh-mega-column h3{color:#0c6eb8}
.bh-mega-panel--bh .bh-mega-column a{border:1px solid #e0edf5!important;background:#fff;color:var(--bh-navy)!important}
.bh-mega-panel--bh .bh-mega-column a:hover,.bh-mega-panel--bh .bh-mega-column a:focus-visible{background:#f5fbff;border-color:#add9ef!important}

.bh-footer{background:#10233f;color:#d9e5ef;padding:70px 0 34px}
.bh-footer-top{display:grid;grid-template-columns:290px 1fr;gap:70px;align-items:start}
.bh-footer-brand img{width:240px;height:auto}
.bh-support{display:inline-flex;margin-top:24px;padding:12px 16px;border:1px solid rgba(255,255,255,.16);border-radius:12px;font-size:14px;color:#fff}
.bh-socials{display:flex;gap:10px;margin-top:20px}
.bh-socials a{width:42px;height:42px;display:grid;place-items:center;border-radius:13px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.1);transition:.2s ease}
.bh-socials a:hover{background:rgba(32,201,232,.16);transform:translateY(-2px)}
.bh-socials svg{width:20px;height:20px;fill:#d9e5ef}
.bh-socials svg .cut{fill:none;stroke:#10233f;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.bh-socials svg .fill{fill:#10233f;stroke:none}
.bh-footer-links{display:grid;grid-template-columns:repeat(3,1fr);gap:28px}
.bh-footer-links ul{list-style:none;margin:0;padding:0}
.bh-footer-links li+li{margin-top:11px}
.bh-footer-links a{font-size:14px;color:#c4d4e2;transition:color .2s ease}
.bh-footer-links a:hover{color:#fff}
.bh-footer-bottom{height:1px;background:rgba(255,255,255,.11);margin-top:54px}
.bh-top{position:fixed;right:22px;bottom:22px;width:46px;height:46px;display:grid;place-items:center;border-radius:15px;background:#fff;color:var(--bh-navy);box-shadow:0 15px 40px rgba(16,35,63,.2);opacity:0;visibility:hidden;transform:translateY(10px);transition:.25s ease;z-index:90}
.bh-top.is-visible{opacity:1;visibility:visible;transform:none}
.bh-top svg{width:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:1040px){
    .bh-nav ul{gap:18px}.bh-nav a{font-size:12px}
    .bh-footer-top{grid-template-columns:240px 1fr;gap:42px}
    .bh-nav>ul{gap:10px}
    .bh-mega-panel{width:min(920px,calc(100vw - 34px))}
}

@media (max-width:900px){
    .bh-menu-toggle{display:flex}
    .bh-nav{position:fixed;inset:84px 0 auto 0;max-height:calc(100vh - 84px);overflow:auto;background:#fff;border-bottom:1px solid var(--bh-line);padding:18px 20px 28px;opacity:0;visibility:hidden;transform:translateY(-12px);transition:.25s ease}
    .menu-open .bh-nav{opacity:1;visibility:visible;transform:none}
    .bh-nav ul{display:grid;gap:0}
    .bh-nav a{display:block;padding:16px 4px;font-size:14px;border-bottom:1px solid #edf2f7}
    .bh-nav a::after{display:none}
    .bh-footer-top{grid-template-columns:1fr}
    .bh-nav-link-wrap{display:grid;grid-template-columns:1fr auto;border-bottom:1px solid #edf2f7}
    .bh-nav-link-wrap>a{border-bottom:0!important}
    .bh-mega-toggle{width:44px;height:44px;justify-self:end}
    .bh-mega-panel{position:static;display:none;width:auto;padding:10px 0 2px;border:0;border-radius:0;background:transparent;box-shadow:none;opacity:1;visibility:visible;transform:none;overflow:visible}
    .bh-mega-panel::before,.bh-mega-panel::after{display:none}
    .bh-nav-item-mega:hover>.bh-mega-panel,.bh-nav-item-mega:focus-within>.bh-mega-panel{display:none}
    .bh-nav-item-mega.is-open>.bh-mega-panel{display:block}
    .bh-mega-grid{grid-template-columns:1fr;gap:8px}
    .bh-mega-column{padding:13px!important;background:#f5faff!important;border-color:#dceaf4!important;box-shadow:none!important}
    .bh-mega-column h3{color:var(--bh-blue)!important;margin:0 0 7px}
    .bh-mega-panel--bh .bh-mega-column a{color:var(--bh-navy)!important;background:#fff!important;border-color:#e1edf5!important;padding:11px 12px!important;margin-top:6px!important;font-size:13px!important}
    .bh-mega-panel--academy{width:auto;padding:12px!important;transform:none!important;background:transparent!important}
    .bh-academy-mega-head{margin:0 0 10px;padding:0 0 12px}
    .bh-academy-mega-title{font-size:17px}
    .bh-academy-home-btn{min-height:38px;padding:9px 15px!important;border-radius:11px!important;font-size:12px!important}
    .bh-academy-mega-grid{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row;gap:8px}
    .bh-academy-mega-card{min-height:72px;padding:14px 14px 14px 22px!important;border-radius:15px!important;background:#fff!important}
    .bh-academy-mega-card:nth-child(n){background:#fff!important}
    .bh-academy-mega-card .bh-unified-arrow{width:34px;height:34px}
}

@media (max-width:640px){
    :root{--bh-container:min(100% - 28px,1180px)}
    .bh-page-shell{padding-top:72px}
    .bh-header-inner{height:72px}.bh-nav{inset:72px 0 auto 0;max-height:calc(100vh - 72px)}
    .bh-logo,.bh-logo img{width:108px}
    .bh-footer{padding-top:54px}
    .bh-footer-links{grid-template-columns:1fr 1fr;gap:26px 34px}
    .bh-footer-top{gap:44px}
}

@media (prefers-reduced-motion:reduce){
    html{scroll-behavior:auto}
    .bh-mega-panel,.bh-mega-toggle svg{transition:none!important}
}

/* v1.1.18 — legacy individual posts in the four BH blog families keep their
   article layout/content untouched while the old theme header/footer are
   replaced by the same BH site chrome used on Hub pages. */
body.bhch-family-post-chrome .fusion-header-wrapper,
body.bhch-family-post-chrome .fusion-tb-header,
body.bhch-family-post-chrome #side-header,
body.bhch-family-post-chrome .fusion-footer,
body.bhch-family-post-chrome .fusion-tb-footer,
body.bhch-family-post-chrome #slidingbar-area {
    display:none!important;
}
