/* ev201 Day columns (INV-21 Acrylic Glass W1, A2757; plan docs/plans/plan_inv21_acrylic_glass.md, row 6; board W0.4's
   phone_events, tablet_events and laptop_events): one frosted acrylic pane (the skin's .k-ag-pane, its mist first, a small
   gold sprig top right) holding the section heading ("Wedding events" and a gold script title from the data) and one
   column per day: the big date number, the month and weekday in small caps, then each event: its gold line icon, the name
   in caps, the start, the venue in italic, the note, and quiet "Map · Calendar" text links. Between two events of one day
   a short gold line says how much later the next one starts. Thin gold hairlines stand between the columns.
   Up to three days: columns side by side on every size. Four to six days: on a phone one day per row, with a frosted strip
   of dates pinned to the top of the pane; on a tablet or laptop two rows of up to three columns. A day is never split
   (owner rule: a day's events stay one whole line, every mark of one day on one x). section.js deals the flat list into
   the columns; without it the list reads top to bottom, each event with its own date. Nothing on the pane or above it may
   transform, filter or contain. */
.ev201 { position: relative; padding: var(--k-section-pad) var(--k-gutter); text-align: center; color: var(--ag-ink); }
.ev201 .ev201__pane { padding: calc(88 * var(--ag-u)) calc(10 * var(--ag-u)) calc(56 * var(--ag-u)); }
/* the title is long ("three days, five moments"): it may wrap, balanced, where the pane is narrower than its line */
.ev201 .ev201__head .k-ag-head__t { white-space: normal; text-wrap: balance; line-height: 1.08; }
.ev201 .ev201-tpart { white-space: nowrap; }
.ev201 .ev201__oneday { margin-top: calc(4 * var(--ag-u)); }
.ev201 .ev201__deck { margin-top: calc(34 * var(--ag-u)); }

/* ---- an event (the same in the flat list and in a day's column) ---- */
.ev201 .ev201__list { display: grid; gap: calc(40 * var(--ag-u)); max-width: calc(360 * var(--ag-u)); margin: 0 auto; }
.ev201 .ev201-ev { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.ev201 .ev201-ev__day { margin-bottom: calc(10 * var(--ag-u)); }
.ev201 .ev201-ev__ico { width: calc(32 * var(--ag-u)); height: calc(32 * var(--ag-u)); color: var(--ag-gold-1); }
.ev201 .ev201-ev__name { margin-top: calc(12 * var(--ag-u)); padding-left: .18em; font: 600 calc(12 * var(--ag-u))/1.4 var(--k-font-display);
  letter-spacing: .18em; text-transform: uppercase; color: var(--ag-ink); text-wrap: balance; }
.ev201 .ev201-nb { white-space: nowrap; }
.ev201 .ev201-ev__time { margin-top: calc(3 * var(--ag-u)); padding-left: .16em; font: 500 calc(10.5 * var(--ag-u))/1.5 var(--k-font-body);
  letter-spacing: .16em; text-transform: uppercase; color: var(--ag-ink-2); font-variant-numeric: lining-nums; }
.ev201 .ev201-ev__where { margin-top: calc(6 * var(--ag-u)); font: italic 500 calc(14 * var(--ag-u))/1.35 var(--k-font-body); color: var(--ag-ink); text-wrap: balance; }
.ev201 .ev201-ev__note { margin-top: calc(4 * var(--ag-u)); font: 500 calc(12.5 * var(--ag-u))/1.4 var(--k-font-body); color: var(--ag-ink-2); text-wrap: balance; }

/* quiet text links, gold and underlined, never boxes: Map · Calendar (the skin's etched patch is undone here) */
.ev201 .ev201-ev__links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 calc(5 * var(--ag-u)); margin-top: calc(8 * var(--ag-u)); }
.ev201 .ev201-ev__link, .ev201 .ev201-ev__links .kjy-cal__toggle {
  display: inline-flex; align-items: center; min-height: 28px; padding: 0 1px 0 calc(.16em + 1px); border: 0; border-radius: 0;
  font: 600 calc(9 * var(--ag-u))/1.2 var(--k-font-body); letter-spacing: .16em; text-transform: uppercase; color: var(--ag-gold-1);
  background: none; box-shadow: none; text-shadow: none; cursor: pointer; list-style: none;
  text-decoration: underline 1px; text-decoration-color: var(--ag-gold-3); text-underline-offset: .45em; }
.ev201 .ev201-ev__links .kjy-cal__toggle::-webkit-details-marker { display: none; }
.ev201 .ev201-ev__links .kjy-cal__toggle:active { box-shadow: none; }
.ev201 .ev201-ev__sep { font: 600 calc(10 * var(--ag-u))/1 var(--k-font-body); color: var(--ag-gold-2); }
.ev201 .ev201-ev__links .kjy-cal { text-shadow: none; }

/* between two events of one day: a short gold line, the words, a short gold line */
.ev201 .ev201-gap { display: flex; flex-direction: column; align-items: center; gap: calc(5 * var(--ag-u)); margin: 0 0 calc(16 * var(--ag-u)); }
.ev201 .ev201-gap__line { width: 1px; height: calc(20 * var(--ag-u)); background: linear-gradient(transparent, var(--ag-gold-2)); }
.ev201 .ev201-gap__line--b { background: linear-gradient(var(--ag-gold-2), transparent); }
.ev201 .ev201-gap__w { font: italic 500 calc(12.5 * var(--ag-u))/1.2 var(--k-font-body); color: var(--ag-ink-2); white-space: nowrap; }

/* ---- the days, dealt into columns (section.js) ---- */
.ev201.is-dealt .ev201-ev__day, .ev201.is-dealt .ev201__oneday { display: none; }
.ev201.is-dealt .ev201__deck { display: flex; flex-wrap: wrap; justify-content: center; }
.ev201 .ev201-day { position: relative; flex: 0 0 33.333%; min-width: 0; padding: 0 calc(4 * var(--ag-u)); }
.ev201.ev201--n1 .ev201-day { flex-basis: min(100%, calc(360 * var(--ag-u))); }
.ev201.ev201--n2 .ev201-day { flex-basis: 50%; }
.ev201 .ev201-day__head { display: flex; flex-direction: column; align-items: center; margin-bottom: calc(18 * var(--ag-u)); }
.ev201 .ev201-day__n { display: block; font-weight: 300; }
.ev201 .ev201-day__wm { margin-top: calc(6 * var(--ag-u)); padding-left: .24em; line-height: 1.4; }
.ev201 .ev201-day__list { display: flex; flex-direction: column; align-items: stretch; gap: calc(24 * var(--ag-u)); }
/* the thin gold hairline between two columns of one row */
.ev201 .ev201-day + .ev201-day::before { content: ""; position: absolute; left: 0; top: 2%; bottom: 2%; width: 1px;
  background: linear-gradient(transparent, var(--ag-gold-2) 12%, var(--ag-gold-2) 88%, transparent); opacity: .8; }

@media (max-width: 699px) and (max-aspect-ratio: 999/1000) {
  /* three narrow columns on a phone: Map over Calendar (one line won't fit a third of the pane) */
  .ev201.ev201--n3 .ev201-ev__links { flex-direction: column; }
  .ev201.ev201--n3 .ev201-ev__sep { display: none; }
  .ev201.ev201--n3 .ev201-ev__link, .ev201.ev201--n3 .ev201-ev__links .kjy-cal__toggle { min-height: 26px; }
  /* a phone with four to six days: one day per row, a soft gold rule between the days */
  .ev201:is(.ev201--n4, .ev201--n5, .ev201--n6) .ev201-day { flex-basis: 100%; padding: 0 calc(8 * var(--ag-u)); }
  .ev201:is(.ev201--n4, .ev201--n5, .ev201--n6) .ev201-day + .ev201-day { margin-top: calc(34 * var(--ag-u)); padding-top: calc(34 * var(--ag-u)); }
  .ev201:is(.ev201--n4, .ev201--n5, .ev201--n6) .ev201-day + .ev201-day::before { left: 22%; right: 22%; top: 0; bottom: auto; width: auto; height: 1px;
    background: var(--ag-hair); }
  /* the strip of dates: a small frosted pane pinned to the top of the screen while the pane is on it */
  .ev201 .ev201__pane > .ev201-strip { position: sticky; top: calc(10px + env(safe-area-inset-top)); z-index: 3; display: flex; justify-content: center; gap: 2px;
    width: fit-content; max-width: 100%; margin: 0 auto calc(26 * var(--ag-u)); padding: 4px; }
}
.ev201 .ev201-strip { display: none; }
.ev201 .ev201-tab { display: grid; align-content: center; justify-items: center; gap: 3px; min-width: 42px; min-height: 48px; padding: 4px 2px; border: 0; border-radius: 10px;
  background: none; color: var(--ag-ink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  font: 600 9px/1 var(--k-font-body); letter-spacing: .14em; text-transform: uppercase; transition: background-color .3s ease, color .3s ease; }
.ev201 .ev201-tab b { font: 300 20px/1 var(--k-font-display); letter-spacing: 0; }
.ev201 .ev201-tab.is-on { background: var(--ag-etched-tint); color: var(--ag-gold-1); }

/* tablet: more air */
@media (min-width: 700px) and (max-aspect-ratio: 999/1000) {
  .ev201 .ev201__pane { padding: calc(84 * var(--ag-u)) 4% calc(60 * var(--ag-u)); }
  .ev201 .ev201-day { padding: 0 calc(10 * var(--ag-u)); }
}
/* laptop: the wide pane, the columns well apart */
@media (min-aspect-ratio: 1/1) {
  .ev201 .ev201__pane { padding: calc(72 * var(--ag-u)) 6% calc(60 * var(--ag-u)); }
  .ev201 .ev201-day { padding: 0 calc(18 * var(--ag-u)); }
}
/* tablet and laptop with four to six days: two rows of up to three columns (four: two and two), a gold rule between rows */
@media (min-width: 700px), (min-aspect-ratio: 1/1) {
  .ev201.ev201--n4 .ev201-day { flex-basis: 50%; }
  .ev201.ev201--n4 .ev201-day:nth-child(2n + 1)::before,
  .ev201:is(.ev201--n5, .ev201--n6) .ev201-day:nth-child(3n + 1)::before { content: none; }
  .ev201.ev201--n4 .ev201-day:nth-child(n + 3),
  .ev201:is(.ev201--n5, .ev201--n6) .ev201-day:nth-child(n + 4) { margin-top: calc(30 * var(--ag-u)); padding-top: calc(36 * var(--ag-u));
    background: var(--ag-hair) 50% 0 / 76% 1px no-repeat; }
  .ev201.ev201--n4 .ev201-day:nth-child(n + 3)::before,
  .ev201:is(.ev201--n5, .ev201--n6) .ev201-day:nth-child(n + 4)::before { top: calc(36 * var(--ag-u)); }
}
