/* Homepage first-screen feature card "New and fast search" (index.html #features .card-search).
   Owner-supplied artwork: a living-room TV showing the app's search (search bar + results), cropped to
   the TV side by website/scripts/build-card-art.py (record in assets/hero-search-art.json).
   Each layout keeps the search bar in view with object-position. */

/* ---- desktop canvas: 1rem = 1 reference pixel; media area 12rem inset, 80rem from the top, 265 x 96 ---- */
@media (min-width:900px) and (pointer:fine),(min-width:900px) and (pointer:none){
.thumb-search{left:12rem;top:80rem;width:calc(265rem + var(--cx));height:96rem;object-position:50% 20%}
}

/* ---- phones / tablets: the flow layout (index.html); the card's media is a grid cell ---- */
@media (max-width:899.98px),(pointer:coarse){
.thumb-search{aspect-ratio:270/105;object-position:50% 20%}
}
/* tablets: the last card spans the row, so the artwork gets a taller band like the old devices artwork */
@media (min-width:700px) and (max-width:899.98px),(min-width:700px) and (pointer:coarse){
#features .card:last-of-type .thumb-search{aspect-ratio:auto;height:clamp(150px,24vw,230px)}
}
/* wide touch screens: three cards share a row, so the artwork fills its cell like Recordings */
@media (min-width:1000px) and (pointer:coarse){
#features .card .media:has(>.thumb-search){grid-template-rows:minmax(0,1fr)}
#features .card:last-of-type .thumb-search{aspect-ratio:auto;height:100%;min-height:96px}
}
