.public-shell #site-header .mobile-home-brand {display:none}

@media (max-width:900px) {
  body.public-shell {--public-header-height:calc(76px + env(safe-area-inset-top,0px))}

  .public-shell #sidebar a.brand {display:none}

  .public-shell #site-header {
    display:grid;
    grid-template-columns:34px minmax(0,1fr) clamp(96px, calc(100% - 207px), 145px) minmax(0,1fr) 34px;
    grid-template-rows:minmax(0,1fr);
    align-items:center;
    height:var(--public-header-height);
    min-height:var(--public-header-height);
    padding:env(safe-area-inset-top,0px) 12px 0;
    column-gap:5px;
  }

  .public-shell #site-header :is(.site-header-heading,.site-header-controls) {display:contents}
  .public-shell #site-header #menu-toggle {grid-area:1/1;justify-self:start}
  .public-shell #site-header #theme-switch {grid-area:1/2;justify-self:start}
  .public-shell #site-header .site-language {grid-area:1/4;justify-self:end}
  .public-shell #site-header .site-account-actions {grid-area:1/5;justify-self:end;padding:0;border:0}

  .public-shell #site-header .mobile-home-brand {
    display:grid;
    grid-area:1/3;
    align-items:center;
    min-height:40px;
  }
  .public-shell #site-header .mobile-home-brand img {
    display:block;width:100%;height:auto;object-fit:contain;
    border:0;border-radius:0;box-shadow:none;filter:none;transform:none;
  }
  html[data-theme=light] .public-shell #site-header .mobile-home-brand img {
    content:url('/assets/lowdown-full-black.png');
  }
  .public-shell #site-header #site-section-name {
    grid-area:1/3;
    justify-self:stretch;
    text-align:center;
    transform:translateY(22px);
    font-size:11px;
    line-height:14px;
    pointer-events:none;
  }

  /* Keep the same centre line if the store adds a second account action. */
  .public-shell #site-header:has(.site-account-actions > :nth-child(2)) {
    grid-template-columns:34px minmax(0,1fr) min(110px, 30%) minmax(0,1fr) 34px;
  }
  .public-shell #site-header:has(.site-account-actions > :nth-child(2)) .site-language {grid-area:1/2;align-self:start;margin-top:3px}
  .public-shell #site-header:has(.site-account-actions > :nth-child(2)) #theme-switch {align-self:end;margin-bottom:3px}
  .public-shell #site-header:has(.site-account-actions > :nth-child(2)) .site-account-actions {grid-column:4/6}
}
