/* Sales on the shop, music and audio sites (docs/SALES.md): the price struck through, the percent off,
   the end, and the banner. Colours are the family tokens (static/family/tokens.css), so dark mode follows. */
.sale-price { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 .4em; }
.sale-price__badge {
  display: inline-block; padding: .05em .45em; border-radius: 999px; font-size: .78em; font-weight: 700;
  line-height: 1.5; letter-spacing: .01em; background: var(--bad, #ad2b22); color: #fff; font-variant-numeric: tabular-nums;
}
.sale-price__was { color: var(--muted, #6b6b6b); font-weight: 400; text-decoration-thickness: 1px; font-variant-numeric: tabular-nums; }
.sale-price__now { font-weight: 700; color: var(--bad, #ad2b22); font-variant-numeric: tabular-nums; }
.sale-ends { font-size: .875rem; color: var(--ink-2, #333); margin: .25rem 0 .5rem; }
.shop-away__where .sale-ends { display: block; margin: .15rem 0 0; font-size: .8rem; }
.shop-total--saved { color: var(--bad, #ad2b22); }

.sale-banner {
  background: var(--accent, #18171c); color: var(--on-accent, #fff);
  border-bottom: 1px solid rgba(127, 127, 127, .25);
}
.sale-banner__text {
  max-width: 72rem; margin: 0 auto; padding: .55rem 16px; font-size: .9rem; line-height: 1.45;
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .6rem;
}
.sale-banner__tag {
  display: inline-block; padding: 0 .45em; border-radius: 999px; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .04em; background: var(--bad, #ad2b22); color: #fff;
}
.sale-banner__ends { opacity: .85; font-variant-numeric: tabular-nums; }
.sale-banner__link { color: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .15em; margin-left: auto; }
.sale-banner__link:hover, .sale-banner__link:focus-visible { text-decoration-thickness: 2px; }
@media (max-width: 40rem) {
  .sale-banner__text { font-size: .85rem; }
  .sale-banner__link { margin-left: 0; }
}

/* /sale */
.sale-page__lede { font-size: 1.05rem; color: var(--ink-2, #333); max-width: 42rem; }
.sale-page__when { font-weight: 600; }
.sale-page__grid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.sale-card { display: flex; flex-direction: column; gap: .4rem; padding: .75rem; border: 1px solid var(--line, rgba(127,127,127,.3)); border-radius: 10px; background: var(--surface, transparent); height: 100%; }
.sale-card__art img { width: 100%; height: auto; border-radius: 6px; display: block; }
.sale-card__art--wide img { aspect-ratio: 16 / 9; object-fit: cover; }
.sale-card__name { font-weight: 600; color: var(--ink, inherit); text-decoration: none; }
.sale-card__name:hover { text-decoration: underline; }
.sale-card__save { font-size: .85rem; color: var(--ink-2, #333); margin: 0; }
.sale-card form, .sale-card .sale-card__act { margin-top: auto; }

/* The cart: the line's price stacked (regular above, sale below), so a phone keeps room for the name; the
   saving is said once, above the total. */
.shop-line__price .sale-price { display: flex; flex-direction: column; align-items: flex-end; gap: 0; }
.shop-line__price .sale-price__badge { display: none; }
