/* The days across the photo (core/countdown/210, fork of core/countdown/190), INV-22 Crisp · Luxe (A2737, D-417): a photo of the couple (gallery.1) bleeds
   off the top-left; the number of days left, giant, crosses its right edge low, ink on the paper and white on the photo. Both copies are the engine's own
   countdown, so they tick together. Below: "the COUNTDOWN", the four numbers with their labels, and one line in italic. Laptop: the photo half on the left,
   the days crossing the seam. The countdown starts as dashes (the fork's script, the owner's rule D-187). */
.cd210 { position: relative; color: var(--k-cr-ink); }
.cd210 .cd210__in { display: flex; flex-direction: column; align-items: flex-start; }
.cd210 .kjy-countdown [hidden] { display: none; }
/* the giant copies: the days only */
.cd210 :is(.cd210__giant, .cd210__seam) :is(.kjy-countdown__label, .kjy-unit__l, .kjy-countdown__done), .cd210 :is(.cd210__giant, .cd210__seam) .kjy-unit:not(:first-child) { display: none; }
.cd210 :is(.cd210__giant, .cd210__seam) .kjy-countdown__units, .cd210 :is(.cd210__giant, .cd210__seam) .kjy-unit { display: block; }
.cd210 :is(.cd210__giant, .cd210__seam) .kjy-unit__n { display: block; font: inherit; line-height: .84; font-variant-numeric: lining-nums tabular-nums; }
.cd210 .cd210__ph .kjy-unit__n { color: var(--k-cr-on); }
/* the readable timer */
.cd210 .cd210__timer { width: 100%; margin-top: clamp(22px, 4svh, 40px); }
.cd210 .cd210__timer .kjy-countdown__label { display: none; }
.cd210 .cd210__timer .kjy-countdown__units { display: grid; grid-template-columns: repeat(4, auto); justify-content: start; column-gap: clamp(18px, 6vw, 48px); }
.cd210 .cd210__timer .kjy-unit { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.cd210 .cd210__timer .kjy-unit__n { font: 400 calc(clamp(34px, 10vw, 60px) * var(--k-cr-z))/1 var(--k-font-display); font-variant-numeric: lining-nums tabular-nums; }
.cd210 .cd210__timer .kjy-unit__l { margin-top: 8px; font: 400 calc(9.5px * (var(--k-cr-z) + .1))/1 var(--k-font-body); letter-spacing: .26em; text-transform: uppercase; color: var(--k-cr-soft); }
.cd210 .kjy-countdown__done { font: 400 clamp(1.8rem, 7vw, 3rem)/1.2 var(--k-font-display); letter-spacing: .1em; text-transform: uppercase; }
.cd210 .cd210__foot { margin-top: clamp(24px, 4.4svh, 44px); font: italic 400 calc(18px * (var(--k-cr-z) + .1))/1.45 var(--k-font-display); }
@media (max-width: 999px), (orientation: portrait) {
  .cd210 { --cd210-h: clamp(320px, 52svh, 620px); }
  .cd210 .cd210__f { position: absolute; top: 0; left: 0; width: 76vw; height: var(--cd210-h); }
  .cd210 .cd210__giant { font-size: min(38vw, 320px); right: -19vw; top: calc(100% - .5em); }
  .cd210 .cd210__in { padding: calc(var(--cd210-h) + min(38vw, 320px) * .45 + clamp(24px, 4.4svh, 44px)) var(--k-gutter) var(--k-section-pad); }
}
@media (min-width: 1000px) and (orientation: landscape) {
  .cd210 .cd210__giant { display: none; }
}

/* The countdown starts as dashes (D-187; the fork's script): a thin dash on each number until the numbers come into view, then they fade in one after another,
   once. Only under kjy-fx and is-armed: lite, Reduce motion and no script show the numbers. */
.cd210 .kjy-unit:nth-child(2) { --cd210-d: .14s; }
.cd210 .kjy-unit:nth-child(3) { --cd210-d: .28s; }
.cd210 .kjy-unit:nth-child(4) { --cd210-d: .42s; }
html.kjy-fx:not(.kjy-lite) .cd210.is-armed:not(.is-done) .kjy-unit__n { position: relative; }
html.kjy-fx:not(.kjy-lite) .cd210.is-armed:not(.is-done) .kjy-unit__n::after { content: "\2014"; position: absolute; inset: 0; display: flex; align-items: center;
  justify-content: flex-start; color: currentColor; transition: opacity .45s ease-out var(--cd210-d, 0s); }
html.kjy-fx:not(.kjy-lite) .cd210.is-armed:not(.is-in) .kjy-unit__n { color: transparent; }
html.kjy-fx:not(.kjy-lite) .cd210.is-armed:not(.is-in) .kjy-unit__n::after { color: var(--k-cr-ink); }
html.kjy-fx:not(.kjy-lite) .cd210.is-armed:not(.is-in) .cd210__ph .kjy-unit__n::after { color: var(--k-cr-on); }
html.kjy-fx:not(.kjy-lite) .cd210.is-armed.is-in:not(.is-done) .kjy-unit__n { transition: color 1s ease-out var(--cd210-d, 0s); }
html.kjy-fx:not(.kjy-lite) .cd210.is-armed.is-in .kjy-unit__n::after { opacity: 0; }

/* The join above this section (A2754, the owner's pick F): its script word on a line. The space above the line (ja) and below it (jb) read equal,
   counting the space the two sections already leave there (the calendar ends at the section's foot and the photo starts at its top). */
.cd210 { --cd210-ja: var(--k-section-pad); --cd210-jb: var(--k-section-pad); margin-top: calc(var(--cd210-ja) + var(--k-cr-join-h) + var(--cd210-jb)); }
.cd210 > .k-cr-join { bottom: calc(100% + var(--cd210-jb)); }
/* Phones (A2801, D-302): the date above leaves less room on short screens, so the space above the divider grows by ~.108 px per px of height under 828 (and shrinks above it), measured at 10 sizes. */
@media (max-width: 699px) { .cd210 { --cd210-ja: calc(var(--k-section-pad) + clamp(-16px, (828px - 100svh) * .108, 24px)); } }
@media (min-width: 1000px) and (orientation: landscape) { .cd210 { --cd210-ja: var(--k-section-pad); --cd210-jb: var(--k-section-pad); } }
/* a tablet (the calendar ends 30 px above the foot there) */
@media (min-width: 700px) and (orientation: portrait) { .cd210 { --cd210-ja: max(0px, calc(var(--k-section-pad) - 30px)); } }
