/* v629 — subtle framing for four home categories only.
   Preserve v628 category layout, admin image vars and full-image contain behavior.
   Mobile: fix inherited 43px title-panel rule and Golden Edit's hidden eyebrow/description. */

body.gv508-home .category-intro .category-card,
body.gv508-home .category-intro .category-card.category-golden-edit {
  border:1px solid #dfd0c5!important;
  border-radius:7px!important;
  background:#ede6e0!important;
  box-shadow:0 7px 22px rgba(65,46,35,.055)!important;
  isolation:isolate!important;
  overflow:hidden!important;
  transition:border-color .2s ease,box-shadow .2s ease!important;
}
body.gv508-home .category-intro .category-card:hover {
  border-color:#bca492!important;
  box-shadow:0 12px 26px rgba(65,46,35,.085)!important;
}
/* A soft-focus colour fill lives UNDER the uncropped, whole image. */
body.gv508-home .category-intro .category-card::after,
body.gv508-home .category-intro .category-card.category-golden-edit::after {
  border-radius:0!important;
  opacity:.19!important;
  filter:blur(20px) saturate(.7)!important;
}
body.gv508-home .category-intro .category-card::before,
body.gv508-home .category-intro .category-card.category-golden-edit::before {
  inset:10px auto 10px 10px!important;
  width:calc(48% - 20px)!important;
  height:auto!important;
  border-radius:4px!important;
  background-size:contain!important;
  background-repeat:no-repeat!important;
  background-position:center!important;
}
body.gv508-home .category-intro .category-card > div,
body.gv508-home .category-intro .category-card.category-golden-edit > div {
  border-left:1px solid #e7dcd2!important;
  background:#fcf9f6!important;
}
/* Fix inherited mobile rules: make the image and caption two definite rows,
   with no room for the fourth card's text to overlap a photo. */
@media(max-width:700px) {
  body.gv508-home .category-intro .category-card,
  body.gv508-home .category-intro .category-card.category-golden-edit,
  body.gv508-home .category-intro .category-card:not(.category-golden-edit) {
    display:grid!important;
    grid-template-columns:minmax(0,1fr)!important;
    grid-template-rows:minmax(0,1fr) 86px!important;
    aspect-ratio:auto!important;
    height:clamp(230px,69vw,288px)!important;
    min-height:230px!important;
    align-items:stretch!important;
  }
  body.gv508-home .category-intro .category-card::before,
  body.gv508-home .category-intro .category-card.category-golden-edit::before,
  body.gv508-home .category-intro .category-card:not(.category-golden-edit)::before {
    inset:9px 9px 95px!important;
    width:auto!important;
    height:auto!important;
    z-index:1!important;
    border-radius:4px!important;
    background-size:contain!important;
    background-position:center!important;
  }
  body.gv508-home .category-intro .category-card::after,
  body.gv508-home .category-intro .category-card.category-golden-edit::after,
  body.gv508-home .category-intro .category-card:not(.category-golden-edit)::after {
    inset:0 0 86px!important;
    width:100%!important;
    height:auto!important;
    z-index:0!important;
  }
  body.gv508-home .category-intro .category-card > div,
  body.gv508-home .category-intro .category-card:not(.category-golden-edit) > div,
  body.gv508-home .category-intro .category-card.category-golden-edit > div {
    grid-column:1!important;
    grid-row:2!important;
    align-self:stretch!important;
    justify-self:stretch!important;
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    width:100%!important;
    max-width:100%!important;
    min-width:0!important;
    height:86px!important;
    min-height:86px!important;
    margin:0!important;
    padding:10px 6px 12px!important;
    border-left:0!important;
    border-top:1px solid #e4d6cb!important;
    background:#fcf9f6!important;
    overflow:hidden!important;
    text-align:center!important;
    z-index:2!important;
  }
  body.gv508-home .category-intro .category-card .eyebrow,
  body.gv508-home .category-intro .category-card.category-golden-edit .eyebrow,
  body.gv508-home .category-intro .category-card p:not(.eyebrow),
  body.gv508-home .category-intro .category-card.category-golden-edit p:not(.eyebrow) {
    display:none!important;
  }
  body.gv508-home .category-intro .category-card h2,
  body.gv508-home .category-intro .category-card.category-golden-edit h2 {
    display:block!important;
    flex:none!important;
    line-height:1.03!important;
    font-size:clamp(25px,6.2vw,33px)!important;
    margin:0 0 7px!important;
    text-align:center!important;
    max-width:100%!important;
  }
  body.gv508-home .category-intro .category-card.category-golden-edit h2 {
    font-size:clamp(23px,5.8vw,31px)!important;
  }
  body.gv508-home .category-intro .category-card > div > span,
  body.gv508-home .category-intro .category-card.category-golden-edit > div > span {
    display:block!important;
    flex:none!important;
    max-width:100%!important;
    font-size:8px!important;
    line-height:1.3!important;
    letter-spacing:.04em!important;
    padding:0 0 4px!important;
    text-align:center!important;
    white-space:normal!important;
  }
}
@media(max-width:380px) {
  body.gv508-home .category-intro .category-card h2,
  body.gv508-home .category-intro .category-card.category-golden-edit h2 {font-size:22px!important}
}
@media(prefers-reduced-motion:reduce){
  body.gv508-home .category-intro .category-card{transition:none!important}
}
