/* Shared countdown digit treatments. Hosts supply colour and type variables. */
[data-countdown] [data-countdown-part][hidden],
[data-countdown] [hidden] { display: none !important; }
[data-countdown] .hs-number-matrix,
[data-countdown] .hs-number-flip { display: inline-flex; gap: .09em; direction: ltr; vertical-align: middle; }
[data-countdown] .hs-matrix-digit { display: grid; grid-template-columns: repeat(5, 1fr); gap: .025em; width: .68em; height: 1em; }
[data-countdown] .hs-matrix-digit > span { background: currentColor; opacity: .12; }
[data-countdown] .hs-matrix-digit > [data-lit="1"] { opacity: 1; }
[data-countdown] .hs-flip-digit { position: relative; display: block; width: .72em; height: 1.25em; perspective: 5em; }
[data-countdown] .hs-flap { position: absolute; inset-inline: 0; height: 50%; overflow: hidden; background: var(--countdown-tile-background); color: var(--countdown-tile-text); backface-visibility: hidden; }
[data-countdown] .hs-flap > span { display: block; height: 1.25em; line-height: 1.25; text-align: center; }
[data-countdown] .hs-flap-top { top: 0; border-radius: .12em .12em 0 0; transform-origin: center bottom; }
[data-countdown] .hs-flap-top::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .035; }
[data-countdown] .hs-flap-bottom { bottom: 0; border-radius: 0 0 .12em .12em; transform-origin: center top; box-shadow: inset 0 1px var(--countdown-tile-divider); }
[data-countdown] .hs-flap-bottom > span { transform: translateY(-50%); }

[data-countdown] .hs-countdown-separator { display: block; flex: none; line-height: 1; }

/* Standalone flipclock skin. Event and dashboard hosts supply their own palette. */
[data-countdown-display][data-alignment="left"] { --countdown-alignment: start; }
[data-countdown-display][data-alignment="right"] { --countdown-alignment: end; }
[data-countdown-display][data-size="compact"] { --countdown-gap: clamp(.75rem,3cqw,1.5rem); --countdown-unit-gap: .5rem; --countdown-value-size: clamp(1.25rem,5cqw,2rem); --countdown-label-size: .6rem; }
[data-countdown].countdown-flip { display: grid; grid-template-columns: repeat(4,max-content); justify-content: var(--countdown-alignment, center); gap: var(--countdown-gap, clamp(.75rem,8cqw,7rem)); --countdown-tile-background: var(--countdown-background, #f3f4f6); --countdown-tile-text: var(--countdown-text, #242424); --countdown-tile-divider: var(--countdown-divider, #e5e7eb); }
.countdown-flip .countdown-flip-unit { display: flex; min-width: 0; align-items: center; flex-direction: column; gap: var(--countdown-unit-gap, clamp(.75rem,2cqw,1.5rem)); }
.countdown-flip .countdown-flip-value { font-family: var(--countdown-font, inherit); font-size: var(--countdown-value-size, clamp(1.25rem,8cqw,5rem)); font-weight: 700; filter: drop-shadow(0 .06em .08em rgb(0 0 0 / .12)); }
.countdown-flip .countdown-flip-label { text-transform: uppercase; letter-spacing: .12em; font-size: var(--countdown-label-size, clamp(.6rem,1.5cqw,.875rem)); color: var(--countdown-label, #242424); }
