/* CLRBD 2026-10-27 v56 — small, scoped public-header and Diaspora fixes.
   No admin, client auth, accounts, forms, or catalogue rules are changed. */

/* Legal Health: keep Bangladesh with the firm name, never floating over navigation. */
body[data-page="legal-health"] .site-header{position:relative!important;top:auto!important;background:#101d31!important;z-index:30}
body[data-page="legal-health"] .site-header .nav-wrap{width:min(1300px,calc(100% - 32px));max-width:1300px;gap:12px;min-height:82px;align-items:center}
body[data-page="legal-health"] .site-header .brand{display:flex;flex:0 0 auto;gap:10px;min-width:0;text-decoration:none}
body[data-page="legal-health"] .site-header .brand-copy{min-width:0}
body[data-page="legal-health"] .site-header .header-brand-title-row{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
body[data-page="legal-health"] .site-header .header-country-label{position:static!important;inset:auto!important;transform:none!important;display:inline!important;white-space:nowrap;font:800 11px/1.2 system-ui,sans-serif!important;letter-spacing:0!important;color:#5addf2!important;pointer-events:none!important;margin:0!important}
body[data-page="legal-health"] .site-header .header-country-label::before{display:none!important}
body[data-page="legal-health"] .site-header .main-nav{flex:1 1 auto;min-width:0;justify-content:center;gap:0}
body[data-page="legal-health"] .site-header .main-nav a{padding:9px 7px!important;white-space:nowrap!important;font-size:11px!important;letter-spacing:0!important;font-weight:750!important;text-transform:none!important}
body[data-page="legal-health"] .site-header .nav-actions{flex:0 0 auto;gap:8px}
body[data-page="legal-health"] .site-header .nav-actions>.btn{border-radius:7px;background:linear-gradient(115deg,#1b667f,#d9b76d)!important;color:#fff!important;border:1px solid #a29c79!important;font-weight:800!important}
body[data-page="legal-health"] .site-header .lang-switch{flex:0 0 auto}
@media(max-width:1220px){
 body[data-page="legal-health"] .site-header .main-nav a{padding-inline:4px!important;font-size:10px!important}
 body[data-page="legal-health"] .site-header .brand-seal{width:44px!important;height:44px!important}
 body[data-page="legal-health"] .site-header .header-brand-title{font-size:17px!important}
}
@media(max-width:1000px){
 body[data-page="legal-health"] .site-header .nav-wrap{min-height:72px;flex-wrap:wrap}
 body[data-page="legal-health"] .site-header .main-nav{flex-basis:100%;order:6;display:none}
 body[data-page="legal-health"] .site-header .main-nav.open{display:flex;flex-wrap:wrap;align-items:stretch;padding:12px 0!important;gap:3px}
 body[data-page="legal-health"] .site-header .main-nav.open a{font-size:12px!important;padding:11px 14px!important}
 body[data-page="legal-health"] .site-header .nav-toggle{display:block!important;margin-left:auto}
 body[data-page="legal-health"] .site-header .nav-actions{margin-left:0}
}
@media(max-width:570px){
 body[data-page="legal-health"] .site-header .header-brand-title{font-size:15px!important}
 body[data-page="legal-health"] .site-header .header-country-label{font-size:9px!important}
 body[data-page="legal-health"] .site-header .nav-wrap{width:calc(100% - 20px);gap:6px}
 body[data-page="legal-health"] .site-header .brand-seal{width:38px!important;height:38px!important}
 body[data-page="legal-health"] .site-header .nav-actions>.btn{display:none!important}
}

/* Diaspora and all 11 category pages: match the homepage navy, single-row desktop header. */
@media(min-width:1201px){
 body.diaspora-page .ds-header{display:grid!important;grid-template-columns:minmax(220px,280px) minmax(0,1fr) auto;gap:14px;align-items:center;padding:0 max(20px,calc((100vw - 1310px)/2));min-height:82px}
 body.diaspora-page .ds-brand-row{display:contents!important}
 body.diaspora-page .ds-brand{grid-column:1;grid-row:1;min-width:0}
 body.diaspora-page .ds-brand-actions{grid-column:3;grid-row:1;gap:7px}
 body.diaspora-page .ds-nav-strip{grid-column:2;grid-row:1;display:block!important;min-width:0;background:transparent!important;box-shadow:none!important}
 body.diaspora-page .ds-nav-inner{width:100%!important;min-height:64px;display:flex!important;align-items:center;justify-content:space-evenly;gap:2px;max-width:none!important;min-width:0}
 body.diaspora-page .ds-nav-inner a{min-height:46px!important;padding:0 4px!important;font:750 10.5px/1.2 system-ui,-apple-system,'Segoe UI',sans-serif!important;letter-spacing:0!important;text-transform:none!important;border-radius:5px;box-shadow:none!important;white-space:nowrap}
 body.diaspora-page .ds-nav-inner a.active{color:#f2d288!important;background:rgba(212,176,100,.08)!important;box-shadow:inset 0 -2px #d7b263!important}
 body.diaspora-page .ds-nav-toggle{display:none!important}
}
body.diaspora-page .ds-header{position:relative!important;top:auto!important;background:#101d31!important;box-shadow:0 5px 15px rgba(8,20,34,.12)!important;z-index:25!important}
body.diaspora-page .ds-brand{gap:9px}
body.diaspora-page .ds-brand img{width:47px;height:47px;object-fit:contain}
body.diaspora-page .ds-brand-copy strong{font:700 20px/1.1 Georgia,serif;color:#fff}
body.diaspora-page .ds-brand-copy small{font:600 9px/1.35 system-ui,sans-serif;color:#e3c788;letter-spacing:.035em;margin-top:3px;text-transform:none}
body.diaspora-page .ds-nav-strip{background:#101d31}
body.diaspora-page .ds-head-btn.primary{border:1px solid #ab995f!important;background:linear-gradient(120deg,#1b647e,#d4b76c)!important;color:#fff!important;border-radius:7px!important}
body.diaspora-page .ds-head-btn{border-radius:7px}
body.diaspora-page .ds-nav-inner a:hover,body.diaspora-page .ds-nav-inner a:focus-visible{color:#f4d48e!important;background:rgba(255,255,255,.09)!important;outline-offset:2px}
@media(max-width:1200px){
 body.diaspora-page .ds-header{display:block!important}
 body.diaspora-page .ds-brand-row{display:flex!important;min-height:73px!important}
 body.diaspora-page .ds-nav-toggle{display:block!important}
 body.diaspora-page .ds-nav-strip{display:none!important}
 body.diaspora-page .ds-nav-strip.open{display:block!important;position:static!important;background:#12283e!important}
 body.diaspora-page .ds-nav-inner{flex-direction:column;align-items:stretch!important;width:min(100% - 32px,1180px)!important;padding:8px 0!important}
 body.diaspora-page .ds-nav-inner a{min-height:43px!important;padding:10px 12px!important;font-size:12px!important}
}
@media(max-width:570px){
 body.diaspora-page .ds-brand-copy strong{font-size:16px}
 body.diaspora-page .ds-brand-copy small{font-size:8px}
 body.diaspora-page .ds-brand img{width:40px;height:40px}
 body.diaspora-page .ds-brand-row{gap:8px;padding:9px 0!important}
 body.diaspora-page .ds-brand-actions{gap:4px}
 body.diaspora-page .ds-head-btn{font-size:10px;padding-inline:7px}
}

/* Diaspora: remove text layout jumps; balanced informative intro. */
body.diaspora-page .ds-hero{padding:58px 0 52px!important}
body.diaspora-page .ds-hero h1{font-size:clamp(36px,4.35vw,65px)!important;line-height:1.07!important;margin:0 0 20px!important;overflow-wrap:normal}
body.diaspora-page .ds-hero-grid{align-items:center!important;gap:clamp(22px,3vw,40px)!important}
body.diaspora-page .ds-hero-main{min-width:0}
body.diaspora-page .ds-hero-category-links{align-items:stretch}
body.diaspora-page #diaspora-services{padding:58px 0 66px!important}
body.diaspora-page #diaspora-services .ds-section-head{grid-template-columns:minmax(0,1fr) minmax(260px,.8fr);align-items:center;gap:34px;margin-bottom:26px}
body.diaspora-page #diaspora-services .ds-section-head h2{font-size:clamp(28px,3.2vw,42px)!important;line-height:1.16!important;max-width:590px}
body.diaspora-page #diaspora-services .ds-section-head>p{max-width:450px;color:#34465a!important;font-size:14px;line-height:1.7}
body.diaspora-page .ds-hero-popular{margin-top:22px;max-width:590px}
body.diaspora-page .ds-hero-popular>strong{display:block;margin-bottom:10px;color:#f0d393;font:800 11px/1.3 system-ui,sans-serif;letter-spacing:.09em;text-transform:uppercase}
body.diaspora-page .ds-hero-popular-links{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
body.diaspora-page .ds-hero-popular-links a{display:inline-flex;align-items:center;gap:5px;min-height:36px;padding:8px 12px;border:1px solid rgba(222,187,115,.47);border-radius:9px;background:rgba(11,32,52,.84);color:#f9f5e9;font:750 11px/1.2 system-ui,sans-serif;text-decoration:none;transition:background .15s ease}
body.diaspora-page .ds-hero-popular-links a:hover,body.diaspora-page .ds-hero-popular-links a:focus-visible{background:#22516d;outline-color:#d9bc75}
@media(max-width:850px){
 body.diaspora-page #diaspora-services .ds-section-head{grid-template-columns:1fr;gap:11px}
 body.diaspora-page .ds-hero{padding:36px 0 38px!important}
 body.diaspora-page .ds-hero h1{font-size:clamp(31px,8vw,49px)!important}
 body.diaspora-page .ds-hero-popular-links{gap:7px}
 body.diaspora-page .ds-hero-popular-links a{font-size:10px;min-height:36px;padding:7px 9px}
}

/* Consistent restrained navy styling for remaining public-page header variants. */
body:not(.diaspora-page) .simple-header,
body:not(.diaspora-page) .lp-header,
body:not(.diaspora-page) .privacy-header,
body:not(.diaspora-page) .catalog-header,
body:not(.diaspora-page) .v7-consult-head{background:#101d31!important;color:#fff!important}
body:not(.diaspora-page) .simple-header .page-brand,
body:not(.diaspora-page) .lp-header .lp-brand{color:#fff!important}

/* Bring Legal Health content closer to the header, without changing the assessment form. */
body[data-page="legal-health"] .lh-page-main{padding-top:20px!important}
body[data-page="legal-health"] .lh-page-hero{padding-top:30px!important}

/* Diaspora guide pages use the same restrained navy header without disrupting their quick navigation. */
.top:has(.topnav){background:#101d31!important;border-bottom:1px solid rgba(212,176,100,.4)!important}
.top .topnav a{color:#f2eee3!important}
.top .topnav a:hover{color:#efd18e!important}
