/* 1.0.3: spacing for Hanet content panels across the site. */
body{--hn-panel-padding:clamp(20px,3vw,36px);--hn-panel-space:clamp(20px,2.4vw,32px);--hn-card-padding:clamp(18px,2.2vw,28px);}
/* Service sections are bordered panels in the active theme. Override the old zero inline padding and zero vertical margins. */
body .wp-site-blocks :is(.hanet-editorial-v389,.hanet-service-overhaul-v390,.hanet-services-seo-release) .hanet-editorial__section,
body .wp-site-blocks :is(.hanet-service-overhaul-v390,.hanet-services-seo-release) .hn39-section,
body .wp-site-blocks .hanet-content-section{
 box-sizing:border-box;padding:var(--hn-panel-padding)!important;margin-block:var(--hn-panel-space)!important;border-radius:20px;
}
body .wp-site-blocks .hanet-service-overhaul-v390 .hn39-section+.hn39-section{margin-block-start:var(--hn-panel-space)!important;}
body .wp-site-blocks .hanet-services-seo-release .hn39-section{border-radius:20px;background:#fff;}
body .wp-site-blocks :is(.hanet-editorial__section,.hn39-section,.hanet-content-section)>:first-child{margin-block-start:0!important;}
body .wp-site-blocks :is(.hanet-editorial__section,.hn39-section,.hanet-content-section)>:last-child{margin-block-end:0!important;}
body .wp-site-blocks :is(.hanet-editorial__card,.hanet-editorial__step,.hanet-service-card,.hanet-v10-service-card,.hn25-growth-card,.hn23-contact__path-card,.hn32-card,.hn50-card,.hn54-services-trust-card,.hn40-media-card,.hanet-pr-card),
body .wp-site-blocks .hn37-cards>.wp-block-column,
body .wp-site-blocks .hn40-cards>.wp-block-column{
 box-sizing:border-box;min-width:0;padding:var(--hn-card-padding)!important;
}
body .wp-site-blocks :is(.hanet-editorial__cards,.hanet-editorial__steps,.hn37-cards,.hn40-cards,.hanet-pr-grid,.hn13-landcards){gap:clamp(16px,2vw,24px)!important;}
body .wp-site-blocks :is(.hanet-order-box,.hanet-domain-box,.hanet-author-box){box-sizing:border-box;padding:var(--hn-panel-padding)!important;margin-block:var(--hn-panel-space)!important;}
body .wp-site-blocks :is(.hanet-editorial-v389,.hanet-service-overhaul-v390,.hanet-services-seo-release) .wp-block-details{box-sizing:border-box;padding:18px 22px!important;margin-block:14px!important;}
body .wp-site-blocks :is(.hanet-design-request__form,.hanet-contact-request__form) fieldset{box-sizing:border-box;min-width:0;padding:20px!important;margin-block:0 20px!important;}
body .wp-site-blocks :is(.hanet-service-overhaul-v390,.hanet-services-seo-release) #hanet-project-request{padding:var(--hn-panel-padding)!important;margin-block:var(--hn-panel-space)!important;}
@media(max-width:640px){
 body{--hn-panel-padding:20px;--hn-panel-space:20px;--hn-card-padding:18px;}
 body .wp-site-blocks :is(.hanet-editorial-v389,.hanet-service-overhaul-v390,.hanet-services-seo-release) .wp-block-details{padding:16px!important;}
 body .wp-site-blocks :is(.hanet-design-request__form,.hanet-contact-request__form) fieldset{padding:16px!important;margin-block-end:16px!important;}
}
/* 1.0.4: original transparent logo, white treatment only in the footer. */
body .wp-site-blocks .hanet-footer-logo{background:transparent!important;padding:0!important;border:0!important;border-radius:0!important;box-shadow:none!important;}
body .wp-site-blocks .hanet-footer-logo img{filter:brightness(0) invert(1)!important;background:transparent!important;box-shadow:none!important;border:0!important;border-radius:0!important;display:block;max-width:100%;height:auto;}
/* 1.0.5: content CTA groups share a responsive horizontal layout. */
body .wp-site-blocks :is(main,.wp-block-post-content,.hanet-editorial-v389) :is(.wp-block-buttons,.hn13-actions){display:flex!important;flex-direction:row!important;flex-wrap:wrap!important;align-items:center!important;gap:12px!important;}
body .wp-site-blocks :is(main,.wp-block-post-content,.hanet-editorial-v389) :is(.wp-block-buttons,.hn13-actions)>.wp-block-button{flex:0 1 auto!important;width:auto!important;max-width:100%;margin:0!important;}
body .wp-site-blocks :is(main,.wp-block-post-content,.hanet-editorial-v389) .wp-block-buttons .wp-block-button__link{width:auto!important;max-width:100%;box-sizing:border-box;white-space:normal;}
@media(max-width:640px){
 body .wp-site-blocks :is(main,.wp-block-post-content,.hanet-editorial-v389) :is(.wp-block-buttons,.hn13-actions){align-items:stretch!important;}
 body .wp-site-blocks :is(main,.wp-block-post-content,.hanet-editorial-v389) :is(.wp-block-buttons,.hn13-actions)>.wp-block-button{flex:1 1 100%!important;width:100%!important;}
 body .wp-site-blocks :is(main,.wp-block-post-content,.hanet-editorial-v389) .wp-block-buttons .wp-block-button__link{width:100%!important;text-align:center;}
}
/* Keep the portfolio viewport inside its centered parent. */
body .wp-site-blocks .hanet-work--slider{box-sizing:border-box;min-width:0;max-width:100%;}
body .wp-site-blocks .hanet-work--slider .hanet-work__grid{min-width:0;max-width:100%;overscroll-behavior-x:contain;}
/* Sorio introduction: a single clear destination, consistent with Hanet services. */
body .wp-site-blocks .hnseo-sorio-landing .hn39-section{background:#fff;border:1px solid #dbe8ee;border-radius:20px;}
body .wp-site-blocks .hnseo-sorio-landing .hnseo-sorio-final{background:linear-gradient(135deg,#edf8fc,#fff);}
body .wp-site-blocks .hnseo-sorio-landing .wp-block-button__link{min-height:48px;line-height:1.7;}
