/* Scoped adaptation of the approved prototype: one inset owns the desktop rail. */
body.has-social-rail { --social-rail-width: 144px; box-sizing: border-box; width: 100%; min-width: 0; padding-left: var(--social-rail-width); }
/* The viewport-sized shell owns the inset; page children must be able to shrink. */
body.has-social-rail > :is(.product-header, main, .site-footer),
body.has-social-rail :is(.nav-shell, .hero, .hero-copy, .hero-brand) { min-width: 0; }
body.has-social-rail.social-rail-collapsed { --social-rail-width: 72px; }
.editorial-rail { position:fixed; inset:0 auto 0 0; z-index:100; width:var(--social-rail-width); overflow-y:auto; height:100dvh; background:#fbfbf9; border-right:1px solid #d0dce1; color:#12344a; }
.rail-head { position:sticky; top:0; height:80px; display:flex; align-items:center; padding-inline:2px; background:#fbfbf9; }
.rail-toggle { display:grid; place-items:center; width:44px; height:44px; padding:7px; background:transparent; border:0; color:#12344a; cursor:pointer; }
.rail-toggle svg { width:30px; height:30px; fill:none; stroke:currentColor; stroke-width:1.8; }
.rail-content { margin-top:48px; padding-inline:12px; }
.rail-eyebrow { margin:0 0 18px; padding-inline:4px; color:#506676; font-size:10px; font-weight:600; letter-spacing:.12em; }
.rail-links { display:grid; gap:14px; }
.rail-links a { display:flex; align-items:center; gap:8px; min-height:44px; padding:10px 4px; color:#12344a; font-size:13px; line-height:1.5; text-decoration:none; }
.social-icon { display:block; flex:none; width:19px; height:19px; fill:currentColor; }
.rail-links .social-icon { width:17px; height:17px; }
.rail-links span { white-space:nowrap; }
.rail-dismiss-layer { position:fixed; inset:52px 0 0; z-index:99; background:rgb(18 52 74 / 6%); }
.rail-content[hidden], .rail-dismiss-layer[hidden] { display:none; }
.rail-toggle:focus-visible,.rail-links a:focus-visible,.footer-social:focus-visible { outline:2px solid #146b92; outline-offset:3px; }
.footer-socials { display:flex; align-items:center; gap:5px; padding-top:24px; }
.footer-socials a { display:inline-flex; justify-content:center; align-items:center; width:44px; height:44px; color:#344e60; }
.footer-socials a:first-child { margin-left:-12px; }
.footer-socials .social-icon { width:17px; height:17px; }
.footer-email-address { margin:2px 0 0; color:#344e60; font-size:13px; line-height:1.6; font-weight:400; user-select:text; overflow-wrap:anywhere; }
@media(hover:hover) { .rail-toggle:hover,.rail-links a:hover,.footer-socials a:hover { color:#146b92; } }
@media(min-width:1101px) {
 /* Keep all homepage sections and the header on the same fluid 56px gutter. */
 body.has-social-rail[data-view="index"] .wrap,
 body.has-social-rail[data-view="index"] .product-header .nav-shell { width:calc(100% - 112px); max-width:none; }
 .social-rail-collapsed .rail-head { padding-inline:14px; }
 .social-rail-collapsed .rail-links span { display:none; }
 /* Hidden text otherwise overflows the narrow rail while still contributing width. */
 .social-rail-collapsed .rail-eyebrow { visibility:hidden; font-size:0; letter-spacing:0; height:15px; }
 .social-rail-collapsed .rail-content { padding-inline:13px; }
 .social-rail-collapsed .rail-links a { justify-content:center; padding-inline:0; }
}
@media(max-width:1100px) {
 body.has-social-rail,body.has-social-rail.social-rail-collapsed { --social-rail-width:0px; padding-left:0; padding-top:calc(52px + env(safe-area-inset-top,0px)); }
 .editorial-rail { inset:0 0 auto; width:auto; height:calc(52px + env(safe-area-inset-top,0px)); overflow:visible; border-right:0; border-bottom:1px solid #d0dce1; }
 .rail-head { height:100%; padding-top:env(safe-area-inset-top,0px); padding-inline:max(16px,env(safe-area-inset-left,0px)); }
 .rail-content { position:fixed; top:calc(52px + env(safe-area-inset-top,0px)); left:0; width:min(244px,calc(100% - 24px)); max-height:calc(100dvh - 52px); overflow-y:auto; margin:0; padding:23px 22px 25px; border-right:1px solid #d0dce1; border-bottom:1px solid #d0dce1; background:#fbfbf9; }
 .rail-eyebrow { margin-bottom:14px; font-size:11px; }.rail-links { gap:8px; }.rail-links a { min-height:46px; gap:13px; font-size:15px; }.rail-links .social-icon { width:18px; height:18px; }
}
body:lang(bn) .rail-eyebrow { letter-spacing:0; }

@media(max-width:768px) { .footer-socials { padding-top:20px; } }
