/* Manakamana Paan Bhandar — WB2 Header, Footer & Bilingual Identity Retrofit */

/* Header identity: official H3 is the primary desktop/mobile lockup. */
.p5-header .p5-brand{
  gap:.72rem;
  min-width:0;
  flex:0 0 auto;
}
.p5-header .p5-brand-logo{
  display:block;
  flex:0 0 auto;
  object-fit:contain;
}
.p5-header .p5-brand-logo-h3{
  width:178px !important;
  height:auto !important;
}
.p5-header .p5-brand-logo-i2{
  display:none;
  width:38px !important;
  height:38px !important;
}
.p5-brand-companion{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:.12rem;
  padding-left:.72rem;
  border-left:1px solid rgba(6,45,34,.18);
  line-height:1.12;
  white-space:nowrap;
}
.p5-brand-nepali{
  color:#062D22;
  font-size:.76rem;
  font-weight:760;
  letter-spacing:.005em;
}
.p5-brand-location{
  color:#6c665b;
  font-size:.61rem;
  font-weight:780;
  letter-spacing:.08em;
  text-transform:uppercase;
}

/* Footer identity: official S3 reverse lockup on the existing dark footer. */
.p5-footer-branding{
  max-width:330px;
}
.p5-footer-brand-logo{
  display:block;
  width:154px;
  max-width:100%;
  height:auto;
  margin:0 0 .85rem;
}
.p5-footer-nepali{
  margin:.05rem 0 .8rem !important;
  color:#FFF6E4 !important;
  font-size:.94rem;
  font-weight:700;
  line-height:1.35;
}
.p5-footer-branding > p:not(.p5-footer-nepali){
  margin-top:0;
}

/* Keep the approved identity compact before the navigation collapses. */
@media (max-width:1160px) and (min-width:1001px){
  .p5-brand-companion{display:none;}
  .p5-header .p5-brand-logo-h3{width:164px !important;}
}

@media (max-width:1000px){
  .p5-header .p5-brand-logo-h3{width:172px !important;}
  .p5-brand-companion{display:flex;}
}

@media (max-width:680px){
  .p5-header .p5-brand-logo-h3{width:150px !important;}
  .p5-brand-companion{display:none;}
  .p5-footer-brand-logo{width:146px;}
}

/* Extremely narrow handsets use the approved I2 square symbol rather than compress H3. */
@media (max-width:360px){
  .p5-header .p5-brand-logo-h3{display:none;}
  .p5-header .p5-brand-logo-i2{display:block;}
}
