/* A sale with a look of its own (engine/billing/sale/config.ts `look`; engine/site/home-sale.ts): one contained card that always contrasts the ground it stands on
   (never the accent on the accent): the sale's own ground on a light page (the bar on the selling pages), a light card inside a hero (the home page's band,
   `data-sale-ground="hero"`). The price she pays in the brand's display face, a seal with the saving, the sale's own words. Any look draws in the brand's own
   colours (its site sheet's --accent, --accent-hover, --ink and --paper); a look with a palette of its own sets the --sale-* tokens below ("night": deep navy into
   blue). Nothing moves but transform and opacity, once, as the page arrives; both are in the page as it is served, so nothing shifts. */
[data-sale-look] {
  --sale-ground: var(--accent, #3b3170); --sale-ground-to: var(--accent-hover, var(--accent, #2f2760)); --sale-words: #fff; --sale-was: rgba(255, 255, 255, .78);
  --sale-seal: #fff; --sale-seal-words: var(--accent, #3b3170); --sale-go: #fff; --sale-go-words: var(--accent, #3b3170); --sale-focus: #fff;
  --sale-card: var(--paper, #fff); --sale-card-words: var(--ink, #1d1a21); --sale-card-was: var(--muted, #5f5a66); --sale-card-mark: var(--accent, #3b3170);
  --sale-shadow: rgba(0, 0, 0, .35);
}
[data-sale-look="night"] {
  --sale-ground: #06143a; --sale-ground-to: #0a4fc4; --sale-words: #f3f7ff; --sale-was: #b9cbee; --sale-seal: #fff; --sale-seal-words: #06143a; --sale-go: #fff;
  --sale-go-words: #06143a; --sale-focus: #9cc4ff; --sale-card: #fff; --sale-card-words: #0b2a5e; --sale-card-was: #566783; --sale-card-mark: #06143a; --sale-shadow: rgba(6, 20, 58, .7);
}
[data-sale-look] { position: relative; overflow: hidden; isolation: isolate; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .6rem 1rem; margin: 0 0 1.75rem; padding: 1rem 1.1rem; border-radius: 18px; text-align: center; font-size: .95rem; line-height: 1.4; color: var(--sale-words); background: var(--sale-ground); background-image: linear-gradient(120deg, var(--sale-ground) 0%, var(--sale-ground-to) 100%); box-shadow: 0 18px 40px -24px var(--sale-shadow); }
[data-sale-look]::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .85;
  background-image: radial-gradient(1.2px 1.2px at 8% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 19% 72%, #fff 50%, transparent 51%), radial-gradient(1.4px 1.4px at 33% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 47% 80%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 62% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 74% 66%, #fff 50%, transparent 51%), radial-gradient(1.5px 1.5px at 88% 28%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 95% 78%, #fff 50%, transparent 51%);
  animation: sale-look-sky 5.2s ease-in-out 3 alternate; }
[data-sale-look] p { margin: 0; font-weight: 500; text-wrap: balance; color: inherit; }
[data-sale-look] .sale-now { display: inline-block; font-family: var(--serif, Georgia, serif); font-weight: 600; font-size: 1.4em; line-height: 1; letter-spacing: -.01em; color: var(--sale-words); animation: sale-look-rise .6s cubic-bezier(.2, .8, .2, 1) .15s both; }
[data-sale-look] .sale-was { color: var(--sale-was); text-decoration-thickness: 1.5px; }
[data-sale-look] .sale-seal { flex: none; display: grid; place-items: center; height: 1.9rem; padding: 0 .7rem; border-radius: 999px; background: var(--sale-seal); color: var(--sale-seal-words); font-family: var(--serif, Georgia, serif); font-weight: 700; font-size: .95rem; letter-spacing: -.02em; transform: rotate(-6deg); animation: sale-look-seal .7s cubic-bezier(.2, 1.3, .4, 1) both; }
[data-sale-look] .sale-seal:empty { display: none; }
/* A live countdown to the sale's end (engine/billing/sale/config.ts `countdown`, engine/site/sale-clock.ts): its figures hold their width as they tick
   (tabular, two places at least), so nothing moves. */
[data-sale-look] .sale-clock { white-space: nowrap; }
[data-sale-look] .sale-clock b { display: inline-block; min-width: 2ch; text-align: right; font-variant-numeric: tabular-nums; }
/* A countdown sale's one bar (engine/site/home-sale.ts saleTopBar): a thin strip the window's width above the header, on the sale's ground, flat (no card, sky
   or shadow); one line where it fits, the line over the clock and the button where it doesn't; the whole strip one link, its button the link's label. It
   scrolls away with the page; the header stays where the page keeps it. */
.sale-top[data-sale-look] { display: block; margin: 0; padding: 0; border-radius: 0; overflow: visible; isolation: auto; text-align: center; background: var(--sale-ground); background-image: none; box-shadow: none; }
.sale-top[data-sale-look]::before { content: none; }
.sale-top-go { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 6px 14px; min-height: 44px; padding: 8px var(--gutter, 16px); color: var(--sale-words); text-decoration: none; }
.sale-top-go .sale-clock { flex: none; margin: 0; }
.sale-top-btn { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 999px; background: var(--sale-go); color: var(--sale-go-words); font-weight: 600; white-space: nowrap; }
.sale-top-go:focus-visible { outline: 3px solid var(--sale-focus); outline-offset: -5px; }
@media (max-width: 719px) { .sale-top-line { flex: 0 0 100%; } }
/* A phone's menu opens under the header wherever the header is, the bar above it or scrolled away (where the browser can anchor it). */
@supports (anchor-name: --a) { @media (max-width: 599px) { body:has(> .sale-top) .pop { top: calc(anchor(bottom) + 14px); } } }
/* Its one button, the same on the band and the bar whatever the page's own primary button looks like. */
main [data-sale-look] :is(.btn.btn-primary, .sale-bar-go) { display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.15rem; border: 0; border-radius: 999px; background: var(--sale-go) !important; background-image: none !important; color: var(--sale-go-words) !important; font-weight: 650; font-size: .95rem; text-decoration: none; text-shadow: none; white-space: nowrap; box-shadow: none; transition: transform .16s ease, box-shadow .16s ease; }
main [data-sale-look] :is(.btn.btn-primary, .sale-bar-go)::before, main [data-sale-look] :is(.btn.btn-primary, .sale-bar-go)::after { content: none; }
main [data-sale-look] :is(.btn.btn-primary, .sale-bar-go):hover { transform: translateY(-1px); box-shadow: 0 0 0 4px rgba(255, 255, 255, .22); }
main [data-sale-look] :is(.btn.btn-primary, .sale-bar-go):focus-visible { outline: 3px solid var(--sale-focus); outline-offset: 2px; }
@media (min-width: 720px) {
  [data-sale-look] { flex-wrap: nowrap; justify-content: flex-start; gap: 1rem; padding: .9rem 1.25rem; text-align: left; }
  [data-sale-look] p { flex: 1; text-wrap: pretty; }
}
/* Inside a hero (the home page): a light card over the hero's ground, its ink the brand's, its seal and button in the sale's mark. In the hero's own flow under
   the header, so the header stays as the hero draws it and nothing is covered. */
[data-sale-look][data-sale-ground="hero"] { z-index: 2; width: min(100% - 2rem, 46rem); margin: .75rem auto 0; color: var(--sale-card-words); background: var(--sale-card); background-image: none; box-shadow: 0 22px 48px -22px var(--sale-shadow); }
[data-sale-look][data-sale-ground="hero"]::before { content: none; }
[data-sale-look][data-sale-ground="hero"] p { color: var(--sale-card-words); text-shadow: none; }
[data-sale-look][data-sale-ground="hero"] .sale-now { color: var(--sale-card-mark); }
[data-sale-look][data-sale-ground="hero"] .sale-was { color: var(--sale-card-was); }
[data-sale-look][data-sale-ground="hero"] .sale-seal { background: var(--sale-card-mark); color: var(--sale-card); }
main [data-sale-look][data-sale-ground="hero"] .btn.btn-primary { background: var(--sale-card-mark) !important; color: var(--sale-card) !important; }
main [data-sale-look][data-sale-ground="hero"] .btn.btn-primary:hover { box-shadow: 0 0 0 4px rgba(0, 0, 0, .12); }
main [data-sale-look][data-sale-ground="hero"] .btn.btn-primary:focus-visible { outline-color: var(--sale-card-mark); }
@keyframes sale-look-sky { from { opacity: .35; } to { opacity: .9; } }
@keyframes sale-look-rise { from { opacity: 0; transform: translateY(.35em); } to { opacity: 1; transform: translateY(0); } }
@keyframes sale-look-seal { from { opacity: 0; transform: rotate(-30deg) scale(.6); } to { opacity: 1; transform: rotate(-6deg) scale(1); } }
@media (prefers-reduced-motion: reduce) {
  [data-sale-look]::before, [data-sale-look] .sale-now, [data-sale-look] .sale-seal { animation: none; }
  main [data-sale-look] :is(.btn.btn-primary, .sale-bar-go) { transition: none; }
}
