/* Devil n Dove Brand V3 — 70-page public site polish, independent of Admin.
   Real customer / product images use contain; no fictional listing data. */
body:not([data-admin-page]) :where(.card,.public-service-card,.public-media-band){
 border-color:rgba(139,106,169,.43);
 border-radius:16px;
}
body:not([data-admin-page]) :where(.card,.public-service-card):hover{
 border-color:rgba(212,175,55,.53);
}
body :where(.dd-brand-v3-illustrative-frame){
 display:block;width:100%;max-width:100%;
 margin:10px 0 20px;overflow:hidden;
 border-radius:16px;border:1px solid rgba(139,106,169,.53);
 background:linear-gradient(120deg,#111425,#281635);
}
body :where(.dd-brand-v3-illustrative-frame) img[data-brand-v3-recovered="1"]{
 display:block;width:100%;height:auto;max-height:clamp(260px,38vw,485px);
 object-fit:contain;object-position:center;background-color:#151123;
}
body :where(img[data-brand-v3-recovered="1"]){
 max-width:100%;object-fit:contain;object-position:center;
 background:linear-gradient(130deg,#161024,#1d1730);
}
/* Respect customer merchandise photography and show it fully within modern cards. */
body :where(.shop-product-card,.shop-item-card,.tool.card,.item.card){
 border:1px solid rgba(139,106,169,.48);border-radius:16px;
 background:linear-gradient(138deg,#111929,#1a1529);
 box-shadow:0 7px 24px rgba(0,0,0,.18);
}
body :where(.shop-product-card,.shop-item-card,.tool.card,.item.card) :where(.thumb,.shop-card-main-image){
 display:grid;place-items:center;overflow:hidden;
 border-radius:12px;background-color:#121322;
}
body :where(.shop-product-card,.shop-item-card,.tool.card,.item.card) :where(.thumb,.shop-card-main-image) img{
 display:block;max-width:100%;max-height:100%;object-fit:contain;
}
/* Default content sections, guides and public support pages */
body :where(.hero,.page-hero,.public-service-hero){
 border-radius:17px;
 background-color:#191326; /* preserve existing owner-approved hero artwork */
 border:1px solid rgba(139,106,169,.45);
}
body :where(.hero,.page-hero,.public-service-hero) :where(h1,h2){
 line-height:1.18;overflow-wrap:break-word;
}
body :where(.grid,.shop-collection-card-grid,.dd-brand-v3-promo-grid){
 max-width:100%;min-width:0;
}
body :where(.grid,.shop-collection-card-grid,.dd-brand-v3-promo-grid)>*{min-width:0}
body :where(.media-managed-slot-frame,.public-media-band){
 max-width:100%;
}
body :where(.dd-brand-v3-promo-card,.dd-brand-v3-category-tile) img{
 width:100%;height:auto;object-fit:contain;
}
body :where(.workshop-journal-hero,.public-service-hero) .media-managed-image{
 max-width:100%;height:auto;object-fit:contain;
}
@media(max-width:740px){
 body :where(.container,main,.admin-shell){max-width:100%}
 body :where(.grid.cols-4,.grid.cols-3){grid-template-columns:repeat(2,minmax(0,1fr))}
 body :where(.public-service-hero,.hero,.page-hero){padding:clamp(15px,4vw,24px)}
 body :where(.dd-brand-v3-illustrative-frame) img{max-height:320px}
}
@media(max-width:540px){
 body :where(.grid.cols-4,.grid.cols-3,.grid.cols-2){grid-template-columns:minmax(0,1fr)}
 body :where(.shop-product-card,.tool.card,.item.card){min-width:0}
}
@media(prefers-reduced-motion:reduce){
 body :where(.shop-product-card,.tool.card,.item.card){transition:none}
}


/* Brand V3 actual visual card repairs: source images belong to decorative categories, not products. */
body .what-we-make-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
body .what-we-make-grid .what-we-make-card{
 display:flex;flex-direction:column;justify-content:flex-start;gap:0;padding:0;
 min-width:0;min-height:255px;overflow:hidden;border-radius:16px;
 background:linear-gradient(145deg,#151225,#101d2a);
 border:1px solid rgba(139,106,169,.56);
}
body .what-we-make-card>.dd-brand-v3-home-category-art{
 display:block;width:100%;height:clamp(145px,18vw,235px);max-width:100%;max-height:none;
 object-fit:contain;object-position:center;background:linear-gradient(135deg,#1b1032,#101b27);
}
body .what-we-make-card>span{display:block;padding:14px 15px 0;color:#f5e6d3}
body .what-we-make-card>small{display:block;padding:4px 15px 18px;color:#d2c7de;opacity:1;line-height:1.5}
body #shopCollectionsMount .shop-collection-card[data-dd-brand-v3-origin-card]>.dd-brand-v3-origin-image{
 display:block;position:static;width:100%;height:clamp(160px,22vw,300px);max-height:none;
 object-fit:contain;object-position:center;padding:0;margin:0;
 background:linear-gradient(135deg,#171025,#121d2d);
 border:1px solid rgba(212,175,55,.30);border-radius:11px
}
body #build208CustomDiscovery .custom-discovery-gallery{
 display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px;align-items:stretch
}
body #build208CustomDiscovery .custom-discovery-gallery>article{
 display:flex;flex-direction:column;gap:10px;min-width:0;padding:10px 10px 14px;overflow:hidden;
 background:linear-gradient(150deg,#111a2b,#1b132d);
 border:1px solid rgba(139,106,169,.59);border-radius:16px
}
body #build208CustomDiscovery .custom-discovery-gallery .custom-discovery-art{
 display:block;width:100%;height:clamp(150px,19vw,230px);max-width:100%;
 aspect-ratio:auto;object-fit:contain;object-position:center;
 border:1px solid rgba(212,175,55,.29);border-radius:11px;
 background-color:#171024;margin:0
}
body #build208CustomDiscovery .custom-discovery-gallery>article>strong{
 color:#f5e6d3;font-size:1rem;line-height:1.3
}
body #build208CustomDiscovery .custom-discovery-gallery>article>.small{color:#d2c9dd;line-height:1.5}
body #build208CustomDiscovery .capability-navigation-links{
 margin-top:auto;display:flex;flex-wrap:wrap;gap:7px
}
body #build208CustomDiscovery .capability-navigation-links a{
 border:1px solid rgba(173,123,232,.73);
 background:linear-gradient(115deg,#281741,#462470);
 color:#f9efff;border-radius:999px;padding:8px 11px;min-height:38px
}
@media(max-width:1050px){
 body #build208CustomDiscovery .custom-discovery-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:700px){
 body #build208CustomDiscovery .custom-discovery-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}
 body .what-we-make-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:450px){
 body #build208CustomDiscovery .custom-discovery-gallery,
 body .what-we-make-grid{grid-template-columns:minmax(0,1fr)}
}

/* Set 276–285: the *catalogued* media-slot dimensions are 1600x1000 (8:5),
   not the 1712x324 supplemental banner ratio. Preserve the entire image. */
img[data-media-slot="socials.hero.image"][data-brand-v3-recovered="1"],
img[data-media-slot="workshop-journal-story.hero.image"][data-brand-v3-recovered="1"],
img[data-media-slot="workshop-journal-coin-and-spoon-ring-care.hero.image"][data-brand-v3-recovered="1"],
img[data-media-slot="workshop-journal-polymer-clay-earring-care.hero.image"][data-brand-v3-recovered="1"],
img[data-media-slot="workshop-journal-handmade-vintage-sourced-guide.hero.image"][data-brand-v3-recovered="1"],
img[data-media-slot="marketplaces.hero.image"][data-brand-v3-recovered="1"],
img[data-media-slot="gift-cards.section.visual.1"][data-brand-v3-recovered="1"],
img[data-media-slot="events.section.visual.1"][data-brand-v3-recovered="1"],
img[data-media-slot="about.section.visual.1"][data-brand-v3-recovered="1"],
img[data-media-slot="contact.section.visual.1"][data-brand-v3-recovered="1"]{
 display:block;max-width:100%;width:100%;height:auto;max-height:none;
 aspect-ratio:8 / 5;object-fit:contain;object-position:center;
}


/* Build 433 — curated public fallback art, not actual inventory/condition proof.
   Media Studio slot attributes are retained for owner overrides. */
body:not([data-admin-page]) .dd-brand-v3-public-art{
  grid-template-columns:minmax(140px,220px) minmax(0,1fr);
  gap:clamp(14px,2.5vw,24px);
  align-items:center;
  background:linear-gradient(130deg,rgba(23,17,44,.96),rgba(39,27,54,.96));
  border:1px solid rgba(192,149,222,.55);
  margin-block:clamp(16px,2vw,26px);
}
body:not([data-admin-page]) .dd-brand-v3-public-art img{
  display:block;width:100%;max-width:220px;height:auto;
  aspect-ratio:8/5;object-fit:contain;object-position:center;
  background:#19152a;border-radius:12px;box-shadow:none;
}
body:not([data-admin-page]) .dd-brand-v3-public-art h2{color:#f7eafd;margin:0 0 8px}
body:not([data-admin-page]) .dd-brand-v3-public-art p{color:#d7cadd;margin:0;line-height:1.6}
body:not([data-admin-page]) .media-managed-hero-visual img[data-brand-v3-curated-default="workshop-gifts-hero"]{
  width:100%;height:auto;max-height:485px;object-fit:contain;object-position:center;
}
@media(max-width:640px){
 body:not([data-admin-page]) .dd-brand-v3-public-art{grid-template-columns:1fr}
 body:not([data-admin-page]) .dd-brand-v3-public-art img{max-width:100%}
}
