/* A brand's own colour, used in exactly two places per card.
 *
 * The 4px rule along the top of the card, and the tint of its hover shadow.
 * Nothing else moves: the Oye take block stays Oye purple, the link stays
 * Oye purple, the type and spacing are untouched. A visitor reads the page as
 * ours and the colour only registers once they look at a card directly.
 *
 * The two first-party campaign cards keep the house purple. They carry the
 * same rule so the grid stays even, but the colour is ours, which is what
 * separates work we ran from work we retold.
 *
 * Loaded only by index.html and case-studies.html.
 */

.case[data-brand] {
  border-top: 4px solid var(--brand, var(--primary));
}

.case[data-brand]:hover {
  box-shadow: 0 20px 40px rgba(77, 53, 148, 0.12);
  box-shadow: 0 20px 40px color-mix(in srgb, var(--brand, var(--primary)) 22%, transparent);
}

/* Monochrome brands take the house ink rather than a flat black, so five
 * black rules in a row still sit inside the Oye palette. */
.case[data-brand="hypermarket-sale-creator-campaign"],
.case[data-brand="household-care-creator-campaign"] { --brand: var(--primary); }

.case[data-brand="zomato"]                 { --brand: #e23744; }
.case[data-brand="lenskart"]               { --brand: #0f9bd7; }
.case[data-brand="boat"]                   { --brand: #d32028; }
.case[data-brand="mamaearth"]              { --brand: #5ba829; }
.case[data-brand="meesho"]                 { --brand: #f43397; }
.case[data-brand="snitch"]                 { --brand: var(--ink); }
.case[data-brand="sugar-cosmetics"]        { --brand: var(--ink); }
.case[data-brand="the-whole-truth"]        { --brand: #f2b705; }
.case[data-brand="bombay-shaving-company"] { --brand: #1b2a49; }
.case[data-brand="daniel-wellington"]      { --brand: var(--ink); }
.case[data-brand="glossier"]               { --brand: #f2a9a2; }
.case[data-brand="gymshark"]               { --brand: var(--ink); }
.case[data-brand="adidas-tango-squad"]     { --brand: var(--ink); }
.case[data-brand="sperry"]                 { --brand: #002b5c; }
.case[data-brand="hellofresh"]             { --brand: #91c11e; }
