/* BarunBiz v1.0.8: header actions and responsive public navigation. */
.bb-welstory-header .bb-header-consult,.bb-welstory-header .account-toggle{display:flex;align-items:center;justify-content:center;gap:10px;width:auto;min-width:88px;height:42px;padding:0 18px;border:1px solid var(--brand);border-radius:24px;font-size:14px;font-weight:700;white-space:nowrap;transition:background .2s,color .2s,border-color .2s;flex-shrink:0}
.bb-welstory-header .bb-header-consult{width:108px;background:var(--brand);color:#fff}
.bb-welstory-header .account-toggle{background:var(--brand-soft);color:var(--brand-deep);border-color:var(--brand-line)}
.bb-welstory-header .account-toggle:hover,.bb-welstory-header .account-toggle:focus-visible{background:var(--brand);border-color:var(--brand);color:#fff}
.bb-welstory-header .depth-1-link{cursor:pointer}
.bb-welstory-header .bb-menu-actions{display:none}
@media(min-width:1251px){
 .bb-welstory-header .header-inner{display:grid;grid-template-columns:184px minmax(0,1fr) auto 108px;gap:20px;padding:0 clamp(24px,4vw,80px)}
 .bb-welstory-header .header__logo{width:184px;margin-top:19px}
 .bb-welstory-header .header__gnb{width:100%;min-width:0;max-width:960px;justify-self:center}
 .bb-welstory-header .gnb-depth-1{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
 .bb-welstory-header .depth-1{width:auto;min-width:0}
 .bb-welstory-header .gnb-depth-2{padding-left:14px;padding-right:14px}
 .bb-welstory-header .bb-header-consult{margin-top:29px}
 .bb-floating .bb-floating-consult{display:none}
}
@media(max-width:1250px){
 .bb-welstory-header .header__m{padding:0 20px;gap:8px}
 .bb-welstory-header .header__logo{width:138px}
 .bb-welstory-header .header__btn{margin-left:auto;margin-right:0;flex-shrink:0}
 .bb-welstory-header .bb-header-consult{display:none}
 .bb-welstory-header .header__utils{position:absolute;right:74px;top:9px;display:flex;width:auto;height:42px;padding:0;background:transparent;z-index:2}
 .bb-welstory-header .account-toggle{display:flex;min-width:76px;height:40px;padding:0 15px;font-size:13px}
 .bb-welstory-header .header__gnb{height:calc(100dvh - 60px);padding:20px 20px calc(40px + env(safe-area-inset-bottom))}
 .bb-welstory-header .bb-menu-actions{display:flex;align-items:center;justify-content:center;gap:12px;padding:0 0 24px;margin:0 0 26px;border-bottom:1px solid var(--brand-line)}
 .bb-welstory-header .bb-menu-actions .button{min-width:112px;min-height:44px;padding:10px 18px;font-size:14px}
 .bb-welstory-header .gnb-depth-2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 20px}
 .bb-welstory-header .depth-2-link{overflow-wrap:anywhere}
 .bb-floating{right:max(14px,env(safe-area-inset-right));bottom:calc(18px + env(safe-area-inset-bottom));flex-direction:column;align-items:flex-end;gap:10px}
 .bb-floating .bb-floating-consult{display:flex;align-items:center;justify-content:center;min-height:46px;padding:12px 18px;font-size:13px;font-weight:700;gap:12px}
 .area-public .public-footer{padding-bottom:150px}
 html.bb-menu-locked .bb-floating{visibility:hidden;pointer-events:none}
}
@media(max-width:400px){
 .bb-welstory-header .header__m{padding:0 12px}
 .bb-welstory-header .header__logo{width:126px;max-width:40%}
 .bb-welstory-header .header__utils{right:66px}
 .bb-welstory-header .account-toggle{min-width:70px;padding:0 12px;font-size:12px}
}
/* A 20px clear gap separates the fixed header from either rounded visual. */
.bb-home .bb-hero,.area-public .bb-sub-hero{margin-top:20px;border-radius:30px}
/* Real icons avoid the font-dependent Roman numeral previously used for pause. */
.bb-slide-controls [data-slide-pause]{display:inline-flex;align-items:center;justify-content:center;padding:0;flex-shrink:0}
.bb-slide-controls [data-slide-pause] svg{display:block;width:18px;height:18px;fill:currentColor}
.bb-slide-controls [data-slide-pause] .bb-play-icon{display:none}
.bb-slide-controls [data-slide-pause][aria-pressed="true"] .bb-pause-icon{display:none}
.bb-slide-controls [data-slide-pause][aria-pressed="true"] .bb-play-icon{display:block}
/* Every subpage link participates in normal layout without lateral scrolling. */
.bb-sub-nav{align-items:flex-start;min-height:0}
.bb-sub-nav .bb-sub-home{height:58px;min-height:58px}
.bb-sub-nav>div{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));flex:1;min-width:0;overflow:visible;padding:0;gap:0}
.bb-sub-nav>div>a{min-width:0;min-height:58px;padding:14px 12px;white-space:normal;overflow-wrap:anywhere;word-break:keep-all;line-height:1.5;justify-content:center;text-align:center;border-bottom:1px solid #eee;transition:background .2s,color .2s,border-color .2s}
.bb-sub-nav>div>a.active{background:var(--brand-soft);border-bottom:2px solid var(--brand)}
@media(max-width:700px){
 .bb-sub-nav .bb-sub-home{width:40px}
 .bb-sub-nav>div{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bb-sub-nav>div>a{min-height:54px;padding:12px 8px;font-size:14px;letter-spacing:-.4px}
}
.area-public .auth-wrap{width:calc(100% - 160px);max-width:1320px;margin:30px auto 100px;min-height:600px;border-radius:24px;overflow:hidden;border:1px solid #e5e9ed}
.area-public .auth-visual{background:linear-gradient(145deg,var(--brand-navy),#29485c)}
.area-public .auth-visual h1{font-family:Welstorygothic,sans-serif;font-weight:400}
.area-public .auth-form{background:var(--brand-bg)}
@media(max-width:1000px){.area-public .auth-wrap{width:calc(100% - 80px)}}
@media(max-width:700px){
 .area-public .auth-wrap{width:calc(100% - 40px);margin:30px auto 70px;min-height:0;border-radius:20px}
 .area-public .auth-form{padding:35px 22px 40px;min-height:0}
 .area-public .auth-box h1{font-size:27px}
}
