/* dt200 Glass month (INV-21 Acrylic Glass W1, A2757; plan docs/plans/plan_inv21_acrylic_glass.md, row 4): the main day's
   month on one frosted acrylic pane (the skin's .k-ag-pane, its mist first). The section heading ("Save the date", the
   month in gold script, the year in small caps), then the month page: weekday initials over a gold hairline and the days
   in Cormorant. Every event day in the month sits on a soft gold wash that runs on between days next to each other (a
   range reads as one band); the main day is ringed in gold foil (the skin's sprite gradient #ag-gold). Under it: a gold
   rule, the long date in caps, the time in italic and Add to calendar. Phone and tablet stack; a laptop splits the wide
   pane in two (the words left, the month right, a gold hairline between). Nothing on the pane or above it may transform,
   filter or contain. */
.dt200 { --dt200-cell: calc(39 * var(--ag-u));
  position: relative; padding: var(--k-section-pad) var(--k-gutter); text-align: center; color: var(--ag-ink); }
.dt200 .dt200__pane { padding: calc(50 * var(--ag-u)) calc(18 * var(--ag-u)) calc(46 * var(--ag-u)); }
.dt200 .dt200__year { margin-top: calc(-2 * var(--ag-u)); letter-spacing: .42em; padding-left: .42em; }

/* ---- the month page: weekday initials over a gold hairline, then the days ---- */
.dt200 .dt200__page { width: calc(var(--dt200-cell) * 7); max-width: 100%; margin: calc(26 * var(--ag-u)) auto 0; }
.dt200 .dt200__wd, .dt200 .dt200__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.dt200 .dt200__wd { padding-bottom: calc(8 * var(--ag-u)); margin-bottom: calc(10 * var(--ag-u)); background: var(--ag-hair) 0 100% / 100% 1px no-repeat; }
.dt200 .dt200__wd li { padding-left: .2em; font: 600 calc(9.6 * var(--ag-u))/1.6 var(--k-font-body); letter-spacing: .2em; color: var(--ag-ink-2); }
.dt200 .dt200__grid { row-gap: calc(4 * var(--ag-u)); }
.dt200 .dt200__d { position: relative; display: grid; place-items: center; height: calc(var(--dt200-cell) * .9); }
.dt200 .dt200__n { position: relative; z-index: 2; font: 400 calc(16 * var(--ag-u))/1 var(--k-font-display); font-variant-numeric: lining-nums; }
.dt200 .dt200__d--ev .dt200__n { font-weight: 500; }
.dt200 .dt200__d--main .dt200__n { font-weight: 600; color: var(--ag-gold-1); }

/* the event days' wash: a soft gold band behind each, rounded where a run of days starts and ends (and at the week's
   edges, where the band wraps to the next row) */
.dt200 .dt200__d--ev::before, .dt200 .dt200__d--main::before { content: ""; position: absolute; z-index: 0; inset: 12% 0; background: var(--ag-etched-tint); }
.dt200 .dt200__d--ev:not(:is(.dt200__d--ev, .dt200__d--main) + .dt200__d)::before,
.dt200 .dt200__d--main:not(:is(.dt200__d--ev, .dt200__d--main) + .dt200__d)::before,
.dt200 .dt200__d:nth-child(7n + 1)::before { left: 6%; border-start-start-radius: 999px; border-end-start-radius: 999px; }
.dt200 .dt200__d--ev:not(:has(+ :is(.dt200__d--ev, .dt200__d--main)))::before,
.dt200 .dt200__d--main:not(:has(+ :is(.dt200__d--ev, .dt200__d--main)))::before,
.dt200 .dt200__d:nth-child(7n)::before { right: 6%; border-start-end-radius: 999px; border-end-end-radius: 999px; }

/* the main day's ring: gold foil (the sprite's gradient), a faint gold glow, a whiter bead inside */
.dt200 .dt200__ring { position: absolute; z-index: 1; left: 50%; top: 50%; width: calc(var(--dt200-cell) * .98); height: calc(var(--dt200-cell) * .98);
  max-width: none; margin: calc(var(--dt200-cell) * -.49); overflow: visible; pointer-events: none; }
.dt200 .dt200__ring circle { vector-effect: non-scaling-stroke; }
.dt200 .dt200__halo { fill: var(--ag-etched-frost); stroke: var(--ag-gold-3); stroke-width: 5; stroke-opacity: .3; }
.dt200 .dt200__foil { fill: none; stroke: var(--ag-gold-2); stroke: url(#ag-gold) var(--ag-gold-2); stroke-width: 1.6; }

/* ---- the long date, the time and the calendar ---- */
.dt200 .dt200__rule { margin: calc(26 * var(--ag-u)) auto calc(16 * var(--ag-u)); }
.dt200 .dt200__long { padding-left: .2em; font: 500 calc(15 * var(--ag-u))/1.45 var(--k-font-display); letter-spacing: .2em; text-transform: uppercase; text-wrap: balance; }
.dt200 .dt200__time { margin-top: calc(4 * var(--ag-u)); font-style: italic; color: var(--ag-ink-2); }
.dt200 .dt200__cal { margin-top: calc(20 * var(--ag-u)); }
.dt200 .kjy-cal { max-width: 100%; text-shadow: none; }
.dt200 .kjy-cal__toggle { list-style: none; }
.dt200 .kjy-cal__toggle::-webkit-details-marker { display: none; }

/* tablet: more air, bigger cells */
@media (min-width: 700px) and (max-aspect-ratio: 999/1000) {
  .dt200 { --dt200-cell: calc(44 * var(--ag-u)); }
  .dt200 .dt200__pane { padding: calc(56 * var(--ag-u)) 8% calc(52 * var(--ag-u)); }
}
/* laptop: the wide pane in two halves, the words left and the month right, a gold hairline between */
@media (min-aspect-ratio: 1/1) {
  .dt200 { --dt200-cell: calc(46 * var(--ag-u)); }
  .dt200 .dt200__pane { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: "head page" "foot page";
    padding: calc(56 * var(--ag-u)) 6%; }
  .dt200 .dt200__head { grid-area: head; align-self: end; }
  .dt200 .dt200__foot { grid-area: foot; align-self: start; }
  .dt200 .dt200__page { grid-area: page; align-self: center; width: auto; margin: 0; padding: calc(12 * var(--ag-u)) 0;
    background: linear-gradient(transparent, var(--ag-gold-2) 25%, var(--ag-gold-2) 75%, transparent) 0 0 / 1px 100% no-repeat; }
  .dt200 .dt200__wd, .dt200 .dt200__grid { width: calc(var(--dt200-cell) * 7); margin-inline: auto; }
}
