/* Canonical title-card layout for all directory pages; see TITLE-CARD-STANDARD.md.
   Legacy page styles define copy typography only. This file alone owns card geometry,
   shared 18px frame, responsive copy/image placement, and full-bleed image fit. */
html body #app .br-page-title-card.br-directory-hero.hero{
  --br-title-card-radius:18px;
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr)!important;
  grid-template-rows:minmax(0,1fr)!important;
  align-items:stretch!important;
  gap:0!important;
  width:100%!important;
  max-width:1200px!important;
  height:clamp(300px,32vw,420px)!important;
  min-height:300px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  padding:0!important;
  overflow:hidden!important;
  border:1px solid #d7d2c2!important;
  border-radius:var(--br-title-card-radius)!important;
  background:#fff!important;
}
html body #app .br-page-title-card.br-directory-hero.hero>div:first-child{
  position:relative!important;
  grid-column:1!important;
  grid-row:1!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  align-items:flex-start!important;
  box-sizing:border-box!important;
  width:auto!important;
  min-width:0!important;
  height:100%!important;
  min-height:0!important;
  margin:0!important;
  padding:clamp(22px,3vw,40px)!important;
  background:#fff!important;
  color:#263126!important;
}
html body #app .br-page-title-card.br-directory-hero.hero>div:first-child h1{
  width:100%!important;
  max-width:100%!important;
  overflow-wrap:normal!important;
  word-break:normal!important;
}
html body #app .br-page-title-card.br-directory-hero.hero>.br-directory-art{
  position:relative!important;
  grid-column:2!important;
  grid-row:1!important;
  display:block!important;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:none!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
  background:#fff!important;
  align-self:stretch!important;
  justify-self:stretch!important;
}
html body #app .br-page-title-card.br-directory-hero.hero>.br-directory-art>picture{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  margin:0!important;
  padding:0!important;
  overflow:hidden!important;
}
html body #app .br-page-title-card.br-directory-hero.hero>.br-directory-art img{
  position:absolute!important;
  inset:0!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  min-width:0!important;
  min-height:0!important;
  max-width:none!important;
  border-radius:0!important;
  -webkit-border-radius:0!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
  object-fit:cover!important;
  object-position:center!important;
  background:#fff!important;
}
html body #app .br-page-title-card.br-directory-hero.hero>.br-directory-art,
html body #app .br-page-title-card.br-directory-hero.hero>.br-directory-art>picture,
html body #app .br-page-title-card.br-directory-hero.hero>img{
  border-radius:0!important;
  -webkit-border-radius:0!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
}
html[data-theme="dark"] body #app .br-page-title-card.br-directory-hero.hero,
html[data-theme="dark"] body #app .br-page-title-card.br-directory-hero.hero>div:first-child{
  background:#252f28!important;
}
html[data-theme="dark"] body #app .br-page-title-card.br-directory-hero.hero>div:first-child{color:#f5efdf!important}
html[data-theme="dark"] body #app .br-page-title-card.br-directory-hero.hero>div:first-child h1,
html[data-theme="dark"] body #app .br-page-title-card.br-directory-hero.hero>div:first-child .br-directory-blurb{color:#f5efdf!important}
html[data-theme="dark"] body #app .br-page-title-card.br-directory-hero.hero>div:first-child .eyebrow{color:#c2d0b5!important}

/* Portrait: copy sits above an edge-to-edge image track with no trailing card space. */
@media(max-width:900px) and (orientation:portrait){
  html body #app .br-page-title-card.br-directory-hero.hero{
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:auto auto!important;
    align-content:start!important;
    width:100%!important;
    max-width:none!important;
    height:auto!important;
    min-height:0!important;
  }
  html body #app .br-page-title-card.br-directory-hero.hero>div:first-child{
    grid-column:1!important;
    grid-row:1!important;
    width:100%!important;
    height:auto!important;
    padding:clamp(22px,5vw,32px)!important;
  }
  html body #app .br-page-title-card.br-directory-hero.hero>div:first-child h1{
    font-size:clamp(36px,9vw,48px)!important;
    line-height:1.05!important;
  }
  html body #app .br-page-title-card.br-directory-hero.hero>.br-directory-art{
    grid-column:1!important;
    grid-row:2!important;
    width:100%!important;
    height:auto!important;
    min-height:0!important;
    aspect-ratio:512/305!important;
  }
}
/* Landscape: both columns share one fixed-height track; the artwork fills its entire side. */
@media(max-width:900px) and (orientation:landscape){
  html body #app .br-page-title-card.br-directory-hero.hero{
    grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr)!important;
    grid-template-rows:minmax(0,1fr)!important;
    align-content:stretch!important;
    width:100%!important;
    max-width:none!important;
    height:min(68vh,330px)!important;
    min-height:230px!important;
  }
  html body #app .br-page-title-card.br-directory-hero.hero>div:first-child{
    grid-column:1!important;
    grid-row:1!important;
    height:100%!important;
    padding:clamp(14px,3vw,24px)!important;
  }
  html body #app .br-page-title-card.br-directory-hero.hero>div:first-child h1{
    font-size:clamp(28px,5vw,42px)!important;
    line-height:1.05!important;
  }
  html body #app .br-page-title-card.br-directory-hero.hero>.br-directory-art{
    grid-column:2!important;
    grid-row:1!important;
    height:100%!important;
    aspect-ratio:auto!important;
  }
}
/* Remaining title-card variants keep one shared outer frame and square image seam. */
html body #app .br-page-title-card{
  --br-title-card-radius:18px;
  box-sizing:border-box!important;
  width:100%!important;
  max-width:1200px!important;
  margin-left:auto!important;
  margin-right:auto!important;
  border-radius:var(--br-title-card-radius)!important;
  overflow:hidden!important;
}
html body #app .br-page-title-card>.br-directory-art,
html body #app .br-page-title-card>.br-directory-art>picture,
html body #app .br-page-title-card>.br-directory-art img,
html body #app .br-page-title-card>img{
  border-radius:0!important;
  -webkit-border-radius:0!important;
  clip-path:none!important;
  -webkit-clip-path:none!important;
}

/* Align My Kitchen's title-card start with directory pages; the general .br-home top inset is for dashboard content. */
html body #app .br-home.br-my-kitchen-page{padding-top:0!important}

/* Relax uses the shared title card; same top alignment and back-link gap as My Kitchen. */
html body #app .br-home.br-unwind-page{padding-top:0!important}
