/* From the design preview, preview/hero-navigation.css (tools/theme-sync.mjs). */
/* Transparent at the top of the photographic hero; opaque paper from the first scroll. */
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header{
  --hero-nav-height:84px;--hero-nav-inset:0px;--hero-nav-gutter:0px;
  --hero-nav-ink:#5d3b3f;--logo-color:var(--hero-nav-ink);
  --hero-nav-fade:500ms cubic-bezier(.22,.61,.36,1);
  position:sticky;top:0;z-index:60;
  display:grid;grid-template-columns:minmax(0,1fr) auto minmax(0,1fr);
  align-items:center;gap:20px;
  width:100%;
  height:var(--hero-nav-height);min-height:var(--hero-nav-height);max-height:var(--hero-nav-height);
  margin:0;
  /* Counteract the sticky header's flow space while its existing controller measures it. */
  margin-bottom:calc(-1 * (var(--hero-nav-height) + var(--hero-nav-inset)))!important;
  padding:10px 6%;
  color:var(--hero-nav-ink);background:transparent;
  border:0;border-bottom:1px solid transparent;border-radius:0;
  -webkit-backdrop-filter:none;
  backdrop-filter:none;
  box-shadow:none;
  transition:background-color var(--hero-nav-fade),color var(--hero-nav-fade),box-shadow var(--hero-nav-fade),border-color var(--hero-nav-fade);
}
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .brand{
  grid-column:1;grid-row:1;justify-self:start;
  width:148px;height:62px;padding:0;background:transparent;
}
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header > nav{
  grid-column:2;grid-row:1;justify-self:center;align-self:center;
  order:0;flex:initial;width:auto;display:flex;gap:0;padding:0;
}
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .header-tools{
  grid-column:3;grid-row:1;justify-self:end;align-self:center;
}
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header :is(.nav-shop-link,.nav-shop-toggle,.tool-link,.bag-link,.menu-toggle){
  color:var(--hero-nav-ink);
  transition:color var(--hero-nav-fade),background-color .2s ease,padding .45s var(--lv-ease);
}
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .nav-shop-link{padding-block:10px}
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .nav-shop-panel{color:var(--ink);text-shadow:none}
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header :is(a,button):focus-visible{
  outline-color:var(--hero-nav-ink);
}
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header.is-over-hero{
  background:transparent;border-bottom-color:transparent;box-shadow:none;
  -webkit-backdrop-filter:none;backdrop-filter:none;
}
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header:not(.is-over-hero){
  --hero-nav-ink:#5d3b3f;
  background:var(--paper);border-bottom-color:var(--line);
  -webkit-backdrop-filter:none;backdrop-filter:none;
  box-shadow:0 12px 28px -24px rgba(40,25,30,.4);
}
@media(max-width:1000px){
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header{--hero-nav-gutter:0px;padding-inline:5%}
}
@media(max-width:700px) and (orientation:portrait){
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header{
    --hero-nav-height:96px;--hero-nav-inset:0px;--hero-nav-gutter:0px;
    top:0;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:48px 24px;
    column-gap:12px;row-gap:0;padding:10px 6%;border-radius:0;
  }
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .brand{width:116px;height:48px}
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header > nav{
    grid-column:1 / -1;grid-row:2;justify-self:center;display:flex;align-items:center;min-height:24px;
  }
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .header-tools{grid-column:2;grid-row:1}
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .nav-shop-link{padding-block:2px}
}
@media(max-width:700px) and (orientation:landscape){
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header{
    --hero-nav-height:66px;--hero-nav-inset:0px;--hero-nav-gutter:0px;
    top:0;padding:6px 5%;border-radius:0;
  }
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .brand{width:112px;height:50px}
}
/* The narrowest portrait screens keep enough room for the complete photo and its lettering. */
@media(max-width:319px) and (orientation:portrait){
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header[data-layout="centered"]{
    --hero-nav-height:44px;height:44px;min-height:44px;max-height:44px;padding:3px 12px;
  }
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header[data-layout="centered"] .brand{
    width:112px;height:38px;
  }
}
/* Fade the masked logo in step with the navigation and paper background. */
body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .brand::before{
  transition:background-color var(--hero-nav-fade);
}
html.lv-page-change body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .brand::before{transition:none!important}
@media(prefers-reduced-motion:reduce){
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header{transition:none}
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header :is(.nav-shop-link,.nav-shop-toggle,.tool-link,.bag-link,.menu-toggle),
  body[data-direction="gardenpostcard"]:has(.sf-shop-window) > .header .brand::before{transition:none}
}
