/* Saman Academy 99: compact primary logo and stable responsive header. */
.site-header .brand img.sa99-primary-logo {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  object-position: center;
}
@media (min-width: 1024px) {
  .site-header .site-header__inner { grid-template-rows: 122px 80px; }
  .site-header .brand { width: 172px; max-width: 172px; }
  .site-header .brand img.sa99-primary-logo {
    max-width: 172px;
    max-height: 114px;
  }
}
@media (min-width: 591px) and (max-width: 1023px) {
  .site-header .site-header__inner { min-height: 105px; }
  .site-header .brand { width: 145px; max-width: 145px; flex: 0 1 145px; }
  .site-header .brand img.sa99-primary-logo { max-width: 145px; max-height: 96px; }
  .site-header .sa-mini-cart-panel { top: calc(112px + var(--wp-admin--admin-bar--height, 0px)); }
}
@media (min-width: 361px) and (max-width: 590px) {
  .site-header .site-header__inner { min-height: 83px; padding-block: 5px; gap: 5px; }
  .site-header .brand { width: clamp(100px, 29vw, 112px); max-width: clamp(100px, 29vw, 112px); flex: 0 1 clamp(100px, 29vw, 112px); }
  .site-header .brand img.sa99-primary-logo { max-width: 112px; max-height: 75px; }
  .site-header .sa-header-tools { flex: 0 0 auto; }
  .site-header .menu-toggle { flex: 0 0 auto; }
  .site-header .sa-mini-cart-panel { top: calc(89px + var(--wp-admin--admin-bar--height, 0px)); }
}
@media (max-width: 360px) {
  .site-header .site-header__inner { min-height: 73px; padding-block: 5px; gap: 3px; }
  .site-header .brand { width: 88px; max-width: 88px; flex: 0 1 88px; }
  .site-header .brand img.sa99-primary-logo { max-width: 88px; max-height: 59px; }
  .site-header .sa-header-tools { flex: 0 0 auto; gap: 2px; }
  .site-header .menu-toggle { flex: 0 0 auto; }
  .site-header .sa-mini-cart-panel { top: calc(79px + var(--wp-admin--admin-bar--height, 0px)); }
}
