
/* Unified portfolio navigation */
.hg-footer {box-sizing:border-box;max-width:1800px;margin:0 auto;padding:39px 26px 24px;background:#fff;border-top:1px solid #1c1c1b;color:#1c1c1b;font-family:"General Sans","Helvetica Neue",Arial,sans-serif;}
.hg-footer-primary{display:flex;align-items:baseline;justify-content:space-between;gap:24px;padding-bottom:38px;}
.hg-footer-location{font-size:12px;color:#676762;letter-spacing:.01em;}
.hg-footer-email{font-size:clamp(19px,2.3vw,30px);letter-spacing:-.035em;text-decoration:none;color:inherit;}
.hg-footer-email:hover,.hg-footer a:hover{text-decoration:underline;text-underline-offset:5px;}
.hg-footer-email span{font-size:.75em;vertical-align:top;}
.hg-footer-links{display:flex;flex-wrap:wrap;gap:12px clamp(16px,2vw,33px);padding-top:21px;border-top:1px solid #e3e2de;font-size:12px;}
.hg-footer-links a{color:inherit;white-space:nowrap;text-decoration:none;}
.hg-footer-links a[aria-current="page"]{text-decoration:underline;text-underline-offset:5px;}
.site-header .site-nav a[aria-current="page"]{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px;}
/* Homepage */
body:has(.selected) .site-header{background:white;}
body:has(.selected) .hero{padding-top:30px!important;}
body:has(.selected) .hero-meta{font-size:13px;}
body:has(.selected) .project{border-bottom:0!important;}
body:has(.selected) .project-link{padding:4px 0!important;}
body:has(.selected) .palette{height:84px!important;border:0!important;}
body:has(.selected) .archive-grid{scrollbar-width:none!important;-ms-overflow-style:none;padding-bottom:4px!important;}
body:has(.selected) .archive-grid::-webkit-scrollbar{display:none!important;height:0!important;}
body:has(.selected) .hg-archive-bottom{display:flex;justify-content:flex-end;margin-top:14px;padding-bottom:6px;}
body:has(.selected) .hg-archive-bottom .archive-controls{margin:0;}
body:has(.selected) .hg-footer{padding-left:0;padding-right:0;margin-top:8px;}
@media(min-width:1600px){body:has(.selected) .hero{padding-top:36px!important;}body:has(.selected) .palette{height:92px!important}}
@media(max-width:1100px){body:has(.selected) .palette{height:76px!important}}
@media(max-width:760px){
 .hg-footer{padding:30px 18px 24px;}
 .hg-footer-primary{flex-direction:column;align-items:flex-start;gap:13px;padding-bottom:24px;}
 .hg-footer-links{gap:14px 23px;}
 body:has(.selected) .hero{padding-top:26px!important;}
 body:has(.selected) .palette{height:67px!important;}
 body:has(.selected) .site-header .site-nav{gap:14px;}
}
@media(max-width:480px){
 body:has(.selected) .hero{padding-top:24px!important;}
 body:has(.selected) .palette{height:57px!important;}
 body:has(.selected) .project--babybar .project-logo{max-height:42px;}
 body:has(.selected) .site-nav{gap:10px!important;font-size:10px!important;}
 body:has(.selected) .site-name{font-size:18px!important;}
 body:has(.selected) .hero-meta{font-size:12px!important;}
}
@media(max-width:360px){body:has(.selected) .palette{height:53px!important}body:has(.selected) .site-nav{gap:8px!important;font-size:9px!important}}

/* Apella case-study global navigation (keeps internal study index separate) */
.hg-case-page .hg-case-global{box-sizing:border-box;height:64px;padding:0 26px;max-width:none;margin:0;background:white;display:flex;position:sticky;top:0;left:0;right:0;justify-content:space-between;align-items:center;z-index:30;border-bottom:1px solid #d3d3d0;font-family:"General Sans",Arial,sans-serif;}
.hg-case-page .hg-case-global .wordmark{font-size:21px;font-weight:600;text-decoration:none;white-space:nowrap;}
.hg-case-page .hg-case-global nav.site-nav{margin:0;padding:0;max-width:none;width:auto;display:flex;gap:30px;position:static;border:0;flex-direction:row;font-size:14px;}
.hg-case-page .hg-case-global .menu-toggle{display:none;}
.hg-case-page .screen-nav{max-width:1056px;margin:0 auto;}
@media(max-width:760px){.hg-case-page .hg-case-global{height:58px;padding:0 12px;}.hg-case-page .hg-case-global .wordmark{font-size:18px;}.hg-case-page .hg-case-global .menu-toggle{display:flex;}.hg-case-page .hg-case-global nav.site-nav{display:none;position:absolute;top:58px;left:0;right:0;background:white;padding:10px 18px 20px;flex-direction:column;gap:0;border-bottom:1px solid #ddd;}.hg-case-page .hg-case-global nav.site-nav[data-open="true"]{display:flex;}.hg-case-page .hg-case-global nav.site-nav a{padding:11px 0;font-size:30px;border-bottom:1px solid #ddd;}.hg-case-page .hg-case-global nav.site-nav a:last-child{border-bottom:0;}}
@media print{.hg-case-global,.hg-footer{display:none!important;}}
