/* From the design preview, preview/header-layout.css (tools/theme-sync.mjs). */
/* Center the brand to the viewport, independently of the width of either set of controls. */
body[data-direction="gardenpostcard"] > .header[data-layout="centered"]{
  --hero-nav-height:84px;
  display:grid;grid-template-columns:38px 38px minmax(0,1fr) 38px 38px;grid-template-rows:1fr;
  align-items:center;column-gap:10px;row-gap:0;
  height:84px;min-height:84px;max-height:84px;padding:6px 6%;
}
body[data-direction="gardenpostcard"] > .header[data-layout="centered"] .brand{
  grid-column:3;grid-row:1;justify-self:center;width:176px;height:70px;padding:0;
}
body[data-direction="gardenpostcard"] > .header[data-layout="centered"] > .header-search{
  grid-column:2;grid-row:1;justify-self:center;align-self:center;
}
body[data-direction="gardenpostcard"] > .header[data-layout="centered"] > .menu-toggle{
  grid-column:1;grid-row:1;justify-self:center;align-self:center;
}
body[data-direction="gardenpostcard"] > .header[data-layout="centered"] > .header-tools{
  display:contents;
}
body[data-direction="gardenpostcard"] > .header[data-layout="centered"] .header-tools > .tool-link{
  grid-column:4;grid-row:1;justify-self:center;align-self:center;
}
body[data-direction="gardenpostcard"] > .header[data-layout="centered"] .header-tools > .bag-link{
  grid-column:5;grid-row:1;justify-self:center;align-self:center;margin:0;
}
@media(max-width:1000px){
  body[data-direction="gardenpostcard"] > .header[data-layout="centered"]{padding-inline:5%}
}
/* Two controls on each side keep the larger phone logo centered with comfortable tap areas. */
@media(max-width:700px) and (orientation:portrait){
  body[data-direction="gardenpostcard"] > .header[data-layout="centered"]{
    grid-template-columns:34px 34px minmax(0,1fr) 34px 34px;grid-template-rows:1fr;
    --hero-nav-height:72px;column-gap:4px;row-gap:0;height:72px;min-height:72px;max-height:72px;padding:6px 16px;
  }
  body[data-direction="gardenpostcard"] > .header[data-layout="centered"] .brand{grid-column:3;grid-row:1;width:136px;height:58px}
  body[data-direction="gardenpostcard"] > .header[data-layout="centered"] > .header-search{grid-column:2;grid-row:1;justify-self:center}
  body[data-direction="gardenpostcard"] > .header[data-layout="centered"] :is(.header-search,.header-tools > a,.menu-toggle){width:34px;height:38px}
}
@media(max-width:360px) and (orientation:portrait){
  body[data-direction="gardenpostcard"] > .header[data-layout="centered"]{padding-inline:12px}
  body[data-direction="gardenpostcard"] > .header[data-layout="centered"] .brand{width:128px;height:56px}
}
@media(max-height:500px) and (orientation:landscape){
  body[data-direction="gardenpostcard"] > .header[data-layout="centered"]{--hero-nav-height:66px;height:66px;min-height:66px;max-height:66px;padding:4px 5%;column-gap:14px}
  body[data-direction="gardenpostcard"] > .header[data-layout="centered"] .brand{width:132px;height:56px}
}
body[data-direction="gardenpostcard"].is-checkout > .header[data-layout="centered"] :is(.menu-toggle,.header-tools,.header-search){display:none}
