/* Shared recommendation-card presentation. Use on every page and market. */
.ng-homepage-rework :is(.ng-home-card,.ng25-candidate){border:1px solid #d8c89d;border-top:3px solid #deb349;border-radius:16px;background:linear-gradient(155deg,#fffdf7 0,#fff 36%);box-shadow:0 8px 26px rgba(34,29,16,.11),0 2px 5px rgba(34,29,16,.05);margin-bottom:28px;transition:box-shadow .18s ease,border-color .18s ease}
.ng-homepage-rework :is(.ng-home-card,.ng25-candidate):focus-within{border-color:#aa7d1c;box-shadow:0 10px 30px rgba(34,29,16,.15)}
.ng-homepage-rework .ng-home-card__logo a{border-color:#e8e0cc;border-radius:12px;background:#faf9f5;box-shadow:inset 0 1px 0 #fff;padding:10px}
.ng-homepage-rework .ng-home-card__offer{border-radius:0 9px 9px 0;background:#faf4e3}
@media(min-width:1001px){.ng-homepage-rework .ng-home-card{grid-template-columns:184px minmax(0,1fr) 184px}.ng-homepage-rework .ng-home-card__logo a{min-height:144px}.ng-homepage-rework .ng-home-card__logo img{width:162px;height:120px;max-width:100%;object-fit:contain}.ng-homepage-rework .ng-home-card__logo picture{display:block;width:100%}}
@media(hover:hover){.ng-homepage-rework :is(.ng-home-card,.ng25-candidate):hover{border-color:#bb963e;box-shadow:0 12px 32px rgba(34,29,16,.15),0 2px 6px rgba(34,29,16,.06)}}
@media(prefers-reduced-motion:reduce){.ng-homepage-rework :is(.ng-home-card,.ng25-candidate){transition:none}}
/* Ranked cards share the same outer frame, without adding a second frame inside. */
.ng-homepage-rework .ng25-candidate .ng-home-card,
.ng-homepage-rework .ng25-candidate .ng-home-card:hover,
.ng-homepage-rework .ng25-candidate .ng-home-card:focus-within{border:0;border-radius:0;box-shadow:none;margin:0;background:transparent}

/* Old Content Views logo classes occur on IMG or PICTURE. Match the shared
   homepage dimensions without allowing their ID-scoped 140x80 cap to win. */
#Content .ng-home-card .ng-home-card__logo picture{display:block;width:100%;height:auto;max-width:100%;max-height:none;border-radius:0}
#Content .ng-home-card .ng-home-card__logo img{display:block;width:144px;height:96px;max-width:100%;max-height:none;border-radius:0;object-fit:contain}
@media(min-width:900px) and (max-width:1200px){#Content .ng-home-card .ng-home-card__logo img{height:80px}}
@media(min-width:1001px){#Content .ng-home-card .ng-home-card__logo img{width:162px;height:120px}}
@media(max-width:650px){#Content .ng-home-card .ng-home-card__logo img{width:100px;height:64px}}
