/* CLRBD V52 — site-wide scroll/header hardening, 2026-10-19.
   Additive fixes only. Existing page layouts, admin tools and business logic are preserved. */

/* Keep Bangladesh beside the company title in normal layout flow (never absolutely overlay it). */
.site-header .header-brand-title-row{
  position:relative!important;display:flex!important;flex-flow:row nowrap!important;align-items:center!important;
  justify-content:flex-start!important;gap:12px!important;width:max-content!important;max-width:100%!important;
  min-width:0!important;white-space:nowrap!important;overflow:visible!important;
}
.site-header .header-brand-title-row>.header-brand-title{
  position:static!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  transform:none!important;display:block!important;flex:0 1 auto!important;width:auto!important;max-width:none!important;
  margin:0!important;white-space:nowrap!important;
}
.site-header .header-brand-title-row>.header-country-label{
  position:relative!important;inset:auto!important;top:auto!important;right:auto!important;bottom:auto!important;left:auto!important;
  transform:none!important;display:inline-flex!important;align-items:center!important;align-self:center!important;
  flex:0 0 auto!important;width:auto!important;max-width:none!important;margin:0!important;white-space:nowrap!important;
  pointer-events:none!important;
}
.site-header .header-brand-title-row>.header-country-label::before{
  content:""!important;display:inline-block!important;position:static!important;flex:0 0 2px!important;
  width:2px!important;height:25px!important;margin:0 0 0 1px!important;
}
.site-header .header-brand-copy{min-width:0!important;}
.diaspora-page .ds-hero-category-link{appearance:none!important;-webkit-appearance:none!important;font-family:inherit!important;line-height:1.35!important;cursor:pointer!important;}

/* Keep social icons consistently right aligned. */
.social-topbar .social-topbar-inner{display:flex!important;align-items:center!important;justify-content:flex-end!important;}
.social-topbar .social-links{display:flex!important;align-items:center!important;justify-content:flex-end!important;margin-left:auto!important;}

/* Fixed Get Legal Help CTA: no hover, active, focus or click-induced positional movement. */
body[data-page="home"] .floating-legal-hook,
body[data-page="home"] .floating-legal-hook:hover,
body[data-page="home"] .floating-legal-hook:active,
body[data-page="home"] .floating-legal-hook:focus,
body[data-page="home"] .floating-legal-hook:focus-visible{
  position:fixed!important;top:auto!important;right:18px!important;bottom:22px!important;left:auto!important;
  inset:auto 18px 22px auto!important;translate:none!important;transform:none!important;animation:none!important;
  will-change:auto!important;transition:filter .16s ease,box-shadow .16s ease!important;touch-action:manipulation!important;
}
body[data-page="home"] .floating-legal-hook:hover,
body[data-page="home"] .floating-legal-hook:active{filter:brightness(1.05)!important;transform:none!important;translate:none!important;}
body[data-page="home"] .floating-legal-hook::before,
body[data-page="home"] .floating-legal-hook::after,
body[data-page="home"] .floating-legal-hook .hook-orbit{display:none!important;content:none!important;animation:none!important;transform:none!important;}
body[data-page="home"] .floating-legal-hook .hook-icon{animation:none!important;transform:none!important;translate:none!important;}

/* The sticky Diaspora header must be accounted for when changing the left-hand category. */
.diaspora-page{--ds-sticky-safe-gap:16px;}
.diaspora-page #diaspora-services{scroll-margin-top:160px!important;}
.diaspora-page .ds-service-browser{display:grid!important;grid-template-columns:minmax(245px,315px) minmax(0,1fr)!important;align-items:start!important;gap:20px!important;width:100%!important;min-width:0!important;max-width:100%!important;}
.diaspora-page .ds-category-list,.diaspora-page .ds-service-panel{min-width:0!important;max-width:100%!important;}
.diaspora-page .ds-service-panel{position:relative!important;overflow:hidden!important;contain:inline-size!important;scroll-margin-top:160px!important;}
.diaspora-page .ds-service-panel-head{min-width:0!important;max-width:100%!important;scroll-margin-top:160px!important;overflow-wrap:anywhere!important;}
.diaspora-page .ds-service-panel-head>div{min-width:0!important;max-width:100%!important;}
.diaspora-page .ds-service-panel-head h3,.diaspora-page .ds-service-panel-head p{max-width:100%!important;overflow-wrap:anywhere!important;}
.diaspora-page .ds-service-grid{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important;gap:12px!important;width:100%!important;min-width:0!important;max-width:100%!important;}
.diaspora-page .ds-service-item{display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;grid-template-rows:auto 1fr auto!important;gap:9px 12px!important;align-items:start!important;width:100%!important;min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important;white-space:normal!important;}
.diaspora-page .ds-service-item>*{min-width:0!important;max-width:100%!important;box-sizing:border-box!important;overflow-wrap:anywhere!important;}
.diaspora-page .ds-service-title{grid-column:2!important;grid-row:1!important;}
.diaspora-page .ds-service-description{grid-column:2!important;grid-row:2!important;}
.diaspora-page .ds-service-card-action{grid-column:2!important;grid-row:3!important;}
.diaspora-page .ds-service-mark{grid-column:1!important;grid-row:1 / span 3!important;}
.diaspora-page .ds-service-panel-foot{display:flex!important;flex-wrap:wrap!important;min-width:0!important;max-width:100%!important;}
.diaspora-page .ds-service-panel-foot>*{min-width:0!important;max-width:100%!important;}
.diaspora-page .ds-service-dialog{z-index:2200!important;}

@media(max-width:1120px){
  .site-header .header-brand-title-row{gap:8px!important;}
  .site-header .header-brand-title-row>.header-country-label{font-size:15px!important;}
  .site-header .header-brand-title-row>.header-country-label::before{height:21px!important;}
}
@media(max-width:980px){
  .diaspora-page .ds-service-browser{grid-template-columns:minmax(0,1fr)!important;}
  .diaspora-page .ds-category-list{position:static!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;}
  .diaspora-page .ds-service-panel{contain:none!important;}
}
@media(max-width:760px){
  .site-header .header-brand-title-row{gap:5px!important;max-width:calc(100vw - 110px)!important;}
  .site-header .header-brand-title-row>.header-brand-title{font-size:clamp(12px,3.5vw,15px)!important;letter-spacing:-.035em!important;}
  .site-header .header-brand-title-row>.header-country-label{gap:5px!important;font-size:clamp(9px,2.5vw,11px)!important;}
  .site-header .header-brand-title-row>.header-country-label::before{height:16px!important;width:1.5px!important;flex-basis:1.5px!important;}
  body[data-page="home"] .floating-legal-hook,
  body[data-page="home"] .floating-legal-hook:hover,
  body[data-page="home"] .floating-legal-hook:active,
  body[data-page="home"] .floating-legal-hook:focus,
  body[data-page="home"] .floating-legal-hook:focus-visible{right:10px!important;bottom:12px!important;left:auto!important;top:auto!important;inset:auto 10px 12px auto!important;width:148px!important;min-width:148px!important;max-width:148px!important;min-height:48px!important;}
  .diaspora-page #diaspora-services,.diaspora-page .ds-service-panel,.diaspora-page .ds-service-panel-head{scroll-margin-top:104px!important;}
  .diaspora-page .ds-category-list{grid-template-columns:minmax(0,1fr)!important;}
  .diaspora-page .ds-service-grid{grid-template-columns:minmax(0,1fr)!important;}
  .diaspora-page .ds-service-panel{overflow:hidden!important;}
}
@media(max-width:420px){
  .site-header .header-brand-title-row{gap:4px!important;max-width:calc(100vw - 100px)!important;}
  .site-header .header-brand-title-row>.header-country-label{font-size:9px!important;gap:4px!important;}
}
@media(prefers-reduced-motion:reduce){
  body[data-page="home"] .floating-legal-hook,.diaspora-page .ds-service-item{transition:none!important;}
}
