/* Shared capsule navigation. Existing desktop menus remain available. */
.kh-mobile-nav{display:none}.kh-shelf-a11y-title{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important;border:0!important}
body[data-hub-public] .theme-shelf-heading{justify-content:flex-end;min-height:48px;margin-bottom:16px}
body[data-hub-public] #homeSdgGrid,body[data-hub-public] .sdg-grid.sdg-overview{display:grid!important;grid-template-columns:repeat(6,minmax(134px,1fr))!important;grid-template-rows:repeat(3,max-content)!important;gap:12px!important;overflow-x:auto;overscroll-behavior-x:contain;scrollbar-width:thin;padding:3px 2px 14px;align-items:stretch;max-width:100%}
body[data-hub-public] #homeSdgGrid .sdg-goal-card,body[data-hub-public] .sdg-overview .sdg-goal-card{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:flex-start!important;gap:8px!important;padding:14px!important;min-width:0!important;min-height:174px!important;width:auto!important;border-radius:14px;background:var(--surface,#fff);text-decoration:none}
body[data-hub-public] #homeSdgGrid .sdg-art,body[data-hub-public] .sdg-overview .sdg-art{width:48px!important;height:48px!important;flex:none;grid-row:auto!important}
body[data-hub-public] #homeSdgGrid .sdg-art img,body[data-hub-public] .sdg-overview .sdg-art img{display:block;width:48px!important;height:48px!important;border-radius:7px}
body[data-hub-public] #homeSdgGrid .sdg-goal-name,body[data-hub-public] .sdg-overview .sdg-goal-name{display:block!important;font-size:14px!important;line-height:1.5!important;padding:0!important;margin:0!important;min-height:0!important;overflow-wrap:anywhere;color:var(--ink,#203249)}
body[data-hub-public] #homeSdgGrid .sdg-goal-total,body[data-hub-public] .sdg-overview .sdg-goal-total{font-size:12px!important;line-height:1.5;margin-top:auto;color:var(--muted,#53677d)}
@media(max-width:1050px){
 body[data-hub-public]{padding-bottom:calc(106px + env(safe-area-inset-bottom))}
 body:is([data-hub-page],[data-hub-shell]) .main{padding-bottom:calc(112px + env(safe-area-inset-bottom))!important}
 body[data-hub-public] .kh-mobile-nav,body:is([data-hub-page],[data-hub-shell]) .mobile-nav{position:fixed!important;display:flex!important;align-items:center!important;justify-content:space-between!important;left:50%!important;right:auto!important;bottom:calc(14px + env(safe-area-inset-bottom))!important;transform:translateX(-50%)!important;width:calc(100% - 32px)!important;max-width:460px!important;height:70px!important;min-height:70px!important;box-sizing:border-box!important;margin:0!important;padding:6px!important;gap:4px!important;border:1px solid rgba(255,255,255,.85)!important;border-radius:40px!important;background:rgba(248,249,252,.88)!important;box-shadow:0 8px 28px #182b4320,inset 0 1px 1px #ffffffd9!important;backdrop-filter:blur(22px) saturate(135%);-webkit-backdrop-filter:blur(22px) saturate(135%);z-index:990!important}
 body[data-hub-public] .kh-mobile-nav a,body:is([data-hub-page],[data-hub-shell]) .mobile-nav a{display:flex!important;align-items:center!important;justify-content:center!important;flex:1!important;min-width:0!important;height:56px!important;min-height:56px!important;padding:0!important;box-sizing:border-box!important;border:0!important;border-radius:30px!important;position:relative!important;text-decoration:none!important;color:#263545!important;background:transparent!important;transition:background .18s ease,color .18s ease}
 body[data-hub-public] .kh-mobile-nav a[aria-current=page],body:is([data-hub-page],[data-hub-shell]) .mobile-nav a.active{background:rgba(37,49,65,.1)!important;color:#a91b39!important;box-shadow:inset 0 1px 0 #ffffff70}
 body[data-hub-public] .kh-mobile-nav svg,body:is([data-hub-page],[data-hub-shell]) .mobile-nav .nav-icon svg{width:25px!important;height:25px!important;flex:none;stroke-width:1.8}
 body:is([data-hub-page],[data-hub-shell]) .mobile-nav .nav-icon{display:flex!important;align-items:center;justify-content:center;width:28px!important;height:28px!important;margin:0!important}
 body:is([data-hub-page],[data-hub-shell]) .mobile-nav a>span:not(.nav-icon),body[data-hub-public] .kh-mobile-nav .kh-nav-label{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip-path:inset(50%)!important;white-space:nowrap!important}
 body[data-hub-public] .kh-mobile-nav a:focus-visible,body:is([data-hub-page],[data-hub-shell]) .mobile-nav a:focus-visible{outline:3px solid #a91b39!important;outline-offset:2px!important}
 html[data-theme=dark] body .kh-mobile-nav,html[data-theme=dark] body .mobile-nav,body[data-theme=dark] .kh-mobile-nav,body[data-theme=dark] .mobile-nav{background:rgba(22,24,29,.9)!important;border-color:#ffffff30!important;box-shadow:0 8px 28px #0006!important}
 html[data-theme=dark] body .kh-mobile-nav a,html[data-theme=dark] body .mobile-nav a,body[data-theme=dark] .kh-mobile-nav a,body[data-theme=dark] .mobile-nav a{color:#e5e9ef!important}
 html[data-theme=dark] body .kh-mobile-nav a[aria-current=page],html[data-theme=dark] body .mobile-nav a.active,body[data-theme=dark] .kh-mobile-nav a[aria-current=page],body[data-theme=dark] .mobile-nav a.active{background:#ffffff1f!important;color:#ffbac8!important}
 body[data-hub-public] .sdg-home .section-heading{margin-bottom:20px;align-items:flex-start;flex-wrap:wrap;gap:10px}
 body[data-hub-public] .sdg-home .section-heading>div{flex:1 1 100%}
 body[data-hub-public] .sdg-home .section-heading>.text-button{align-self:flex-start;white-space:nowrap}
}
@media(prefers-reduced-motion:reduce){.kh-mobile-nav a,.mobile-nav a{transition:none!important}}
@media print{.kh-mobile-nav,.mobile-nav{display:none!important}}

/* Mobile SDGs: two columns, normal vertical page flow. */
@media(max-width:1050px){
 body[data-hub-public] #homeSdgGrid,body[data-hub-public] .sdg-grid.sdg-overview{box-sizing:border-box!important;width:100%!important;min-width:0!important;max-width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;grid-template-rows:none!important;grid-auto-flow:row!important;grid-auto-rows:auto!important;overflow-x:visible!important;overscroll-behavior-x:auto;padding-inline:0!important;padding-bottom:0!important}
}
