/* Fix 15: Only the legacy /study-materials/ catalogue, never homepage or product pages. */
.vid-catalog-resource-surface .vid-product-card__content{display:flex;flex-direction:column;min-width:0;flex:1;gap:10px;margin-top:12px}
.vid-catalog-resource-surface .vid-product-card__meta{display:flex;align-items:center;flex-wrap:wrap;min-height:22px;gap:7px;padding-right:44px}
.vid-catalog-resource-surface .vid-product-card__code{font-size:.76rem;font-weight:850;letter-spacing:.025em;color:#075f9f}
.vid-catalog-resource-surface .vid-product-card__type{display:inline-flex;align-items:center;padding:5px 8px;border-radius:999px;background:#eef7fc;color:#135b86;font-size:.64rem;font-weight:750;line-height:1.1}
.vid-catalog-resource-surface .vid-product-card__title{margin:0;color:#0b2444;font-size:1rem;font-weight:800;line-height:1.34;min-height:2.68em;overflow-wrap:break-word}
.vid-catalog-resource-surface .vid-product-card__title a{color:inherit;text-decoration:none}
.vid-catalog-resource-surface .vid-product-card__title a:hover{color:#07649e}
.vid-catalog-resource-surface .vid-product-card__price{color:#0b2444;font-size:1.13rem;font-weight:850;line-height:1.2}
.vid-catalog-resource-surface .vid-product-card__details{margin:0;color:#576d7e;font-size:.75rem;line-height:1.55}
.vid-catalog-resource-surface .vid-product-card__demo{align-self:flex-start;color:#086da6;text-decoration:none;font-size:.75rem;font-weight:750}
.vid-catalog-resource-surface .vid-product-card__demo:hover{text-decoration:underline}
.vid-catalog-resource-surface .vid-product-card__actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:auto;padding-top:8px}
.vid-catalog-resource-surface .vid-product-card__actions>a{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;min-width:0;min-height:42px;margin:0;padding:8px;border:1px solid #b6d1e1;border-radius:10px;background:#f7fbff;color:#174265;font-size:.75rem;font-weight:750;text-decoration:none;text-align:center;box-shadow:none;white-space:normal}
.vid-catalog-resource-surface .vid-product-card__actions>.vid-product-card__buy,
.vid-catalog-resource-surface .vid-product-card__actions>.vid-product-card__details-link{border-color:#075e9b;background:#075e9b;color:#fff}
.vid-catalog-resource-surface .vid-product-card__actions>a:focus-visible,
.vid-catalog-resource-surface .vid-product-card__wishlist:focus-visible{outline:2px solid #0a80c9;outline-offset:3px}
.vid-catalog-resource-surface .vid-resource-grid--single{grid-template-columns:minmax(0,340px)}
@media(max-width:680px){
  .vid-catalog-resource-surface .vid-product-card__content{margin-top:0;gap:7px}
  .vid-catalog-resource-surface .vid-product-card__title{font-size:.88rem;min-height:0;line-height:1.32}
  .vid-catalog-resource-surface .vid-product-card__price{font-size:1rem}
  .vid-catalog-resource-surface .vid-product-card__details{font-size:.7rem}
  .vid-catalog-resource-surface .vid-product-card__actions{gap:6px;padding-top:4px}
  .vid-catalog-resource-surface .vid-product-card__actions>a{min-height:40px;font-size:.69rem;padding:6px}
}
@media(max-width:360px){
  .vid-catalog-resource-surface .vid-product-card__meta{padding-right:40px}
  .vid-catalog-resource-surface .vid-product-card__type{font-size:.59rem}
}

/* 1.5.89 material type pills: shared brand colour language (CSS only). */
.vid-material-pill{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:23px;padding:4px 9px;border:1px solid #b8dced;border-radius:999px;background:#e9f5fd;color:#075e98;font-size:.68rem;font-weight:850;line-height:1.17;letter-spacing:0;white-space:normal;text-align:center;box-shadow:0 1px 2px rgba(4,42,79,.04)}
.vid-material-pill--solved{background:#e5f3ff;border-color:#add5f3;color:#075c94}
.vid-material-pill--guess{background:#fff3dc;border-color:#f3cc81;color:#8a5104}
.vid-material-pill--project{background:#f1eaff;border-color:#d5c1f5;color:#6739a0}
.vid-material-pill--notes{background:#e3faf5;border-color:#a5e2d6;color:#096c64}
.vid-material-pill--other{background:#eef5f8;border-color:#d4e2e9;color:#365e72}

/* Override previous low-contrast neutral type tags without altering card geometry. */
.vid-product-card__meta .vid-product-card__type.vid-material-pill--solved{background:#e5f3ff!important;color:#075c94!important;border:1px solid #add5f3!important}
.vid-product-card__meta .vid-product-card__type.vid-material-pill--guess{background:#fff3dc!important;color:#8a5104!important;border:1px solid #f3cc81!important}
.vid-product-card__meta .vid-product-card__type.vid-material-pill--project{background:#f1eaff!important;color:#6739a0!important;border:1px solid #d5c1f5!important}
.vid-product-card__meta .vid-product-card__type.vid-material-pill--notes{background:#e3faf5!important;color:#096c64!important;border:1px solid #a5e2d6!important}
