/* CAE event-list — the paint of the `event-list` PANEL BUILDER (HOMEEVENTS 2026-09-09).
 *
 * KATE SHAWVER, ClickUp 869ew09tx 2026-09-09 18:28, verbatim: "For Events tab reuse this list
 * format: [Figma CAE-News&Events-Events-List-V5 20505:7268] - Should be the three 'most near'
 * upcoming events with a button to Browse Events that goes to the Events landing page. Use
 * placeholders for now and then we will swap in real events when that content migration is done."
 *
 * EVERY NUMBER BELOW IS READ FROM THAT FRAME, captured read-only through
 * tools/cae/homeevents_figma_capture.sh at Figma file version 2397146519750174244
 * (2026-09-09T08:46:20Z) into build/figma-rest-fresh/homeevents-20505-7268/. Nothing here is a
 * preference, and no node id appears in any selector — the markup this paints is built by
 * sites/cae-website-redesign/inc/cae-interact-surface.php from a registry row, so it carries the
 * builder's own class names and never a compiled node key.
 *
 *   wrap   20505:7280  VERTICAL, itemSpacing 40, counterAxisAlignItems CENTER, width 1200
 *   list   20505:7281  VERTICAL, itemSpacing 24, width 1200 (3 rows x 207 + 2 x 24 = 669)
 *   row    20505:7282  1200 x 207, fill #F7F4E2, cornerRadius 16
 *     date I20505:7282;5747:86092   188 x 207, fill #B15533
 *       txt I20505:7282;5747:86093  "24 \nMay", Acumin Pro Condensed, #FFFFFF, CENTER/CENTER,
 *                                   per-character styles from its own styleOverrideTable:
 *                                   day  = Black 900, 64/70, letterSpacing 0
 *                                   month= Regular 400, 40/50, letterSpacing 0.8
 *     body I20505:7282;5747:86094   x 220 (= 188 + 32), width 948 (= 1200 - 188 - 32 - 32),
 *                                   VERTICAL, itemSpacing 16, vertically centred in the row
 *                                   (row 1 body 127 at y 40 / 40; row 3 body 159 at y 24 / 24)
 *       head I…;5747:86095          VERTICAL, itemSpacing 7
 *         title I…;5747:86096       Acumin Pro 700, 24/32, #004F39
 *         meta  I…;5747:86097       Acumin Pro 400, 20/28, #767769
 *       rule I…;5747:86098          LINE, width 948, stroke #F2A518, strokeWeight 1
 *       foot I…;5747:86099          HORIZONTAL, SPACE_BETWEEN / CENTER, itemSpacing 19, h 28
 *         time  I…;5747:86100       Acumin Pro 400, 20/28, #767769
 *         more  I…;5747:86101       Acumin Pro Condensed 400, 20/28, #B15533, itemSpacing 10,
 *                                   with a 20x20 CAE-Global-Icon-Next chevron
 *   browse 20505:7285  150 x 51, cornerRadius 40, stroke #004F39 weight 1 INSIDE,
 *                      padding 12 / 24 / 11 / 24, itemSpacing 10,
 *                      label Acumin Pro Condensed 400, 20/28, #004F39, 20x20 chevron
 *
 * THE CHEVRON'S PAINT IS `currentColor`, and that is the design's own value rather than a
 * shortcut: the frame paints each chevron the colour of the label beside it (#B15533 on the row,
 * #004F39 on the browse button — read from root.png, which is the arbiter; the component's inner
 * VECTOR carries a white fill that the instance hides, `fills[0].visible: false`). The chevron's
 * FILE is not named here either: the PHP reads it out of an <img class="button-icon"> the
 * compiler already emitted on this band and hands it over as --cae-evlist-chevron.
 *
 * FONT STACKS are the theme's own (style.css): 'Acumin Pro', system-ui, sans-serif and
 * 'Acumin Pro Condensed', 'Liberation Sans Narrow', 'Arial Narrow', system-ui, sans-serif.
 */

.cae-evlist {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  width: 1200px;
  max-width: 100%;
  margin-inline: auto;
}

.cae-evlist__rows {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.cae-evlist__row {
  display: flex;
  align-items: stretch;
  min-height: 207px;
  /* --cae-evlist-row-fill: a page-scoped override, set inline on the .cae-evlist panel by
   * cae_intsurf_build_event_list() from the registry row's `rowFill` (KATE SHAWVER, 869ew09tx
   * 2026-09-11: "Change the bg tan in the event list rows/blocks to white on this page placement
   * specifically"). The fallback here is the design's own drawn fill (frame 20505:7282,
   * #F7F4E2) — a page/state that declares no rowFill serves it byte-identical to before. */
  background-color: var(--cae-evlist-row-fill, #F7F4E2);
  border-radius: 16px;
  /* The date block has no radius of its own; its left corners are the ROW's, clipped. */
  overflow: hidden;
}

.cae-evlist__date {
  flex: 0 0 188px;
  background-color: #B15533;
  color: #FFFFFF;
  font-family: 'Acumin Pro Condensed', 'Liberation Sans Narrow', 'Arial Narrow', system-ui, sans-serif;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* THE DRAWN INSETS, not a centring of my own. The design's date TEXT is a box 62x116 at
   * (63, 52) inside the 188x207 block with textAlignVertical CENTER — i.e. the text is centred
   * inside a box that starts 52 from the top and ends 39 from the bottom, which is NOT the
   * block's own centre (110 vs 103.5). Centring the two lines in the whole block put the served
   * ink 8.75 design px high of the design's (measured from root.png and from the served shot:
   * design "24" ink rows 60.0-101.0, served 51.25-92.5). The insets are declared instead.
   *
   * WHY 50/37 AND NOT THE DRAWN 52/39, with the arithmetic. Figma's text box is 116 tall while
   * the two declared line heights sum to 120 (70 + 50) — the design's own numbers do not add up,
   * because Figma clips its text box to the ink. At the drawn 52/39 the column measures
   * 52+120+39 = 211 and the ROW grows with it: measured 210.98 against the drawn 207 (+3.98),
   * which also moves the panel (+11.95) and docH. The row's 207 is the design's clearest literal
   * and it wins; the 4px is split off both insets so the stack's CENTRE stays where the design
   * puts it. Cost, measured on the shipped build and declared (ink bands, row-relative design
   * px): the day's ink runs 57.50-98.75 against the design's 60.00-101.00 (-2.50 top, -2.25
   * bottom, glyph height 41.25 vs 41.00), and the row is 206.99 against the drawn 207. */
  padding-block: 50px 37px;
  justify-content: center;
}

.cae-evlist__day {
  display: block;
  font-size: 64px;
  line-height: 70px;
  font-weight: 900;
  letter-spacing: 0;
}

.cae-evlist__month {
  display: block;
  font-size: 40px;
  line-height: 50px;
  font-weight: 400;
  letter-spacing: 0.8px;
}

.cae-evlist__body {
  flex: 1 1 auto;
  min-width: 0;
  padding-inline: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}

.cae-evlist__head {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.cae-evlist__title {
  margin: 0;
  font-family: 'Acumin Pro', system-ui, sans-serif;
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: #004F39;
}

.cae-evlist__meta {
  margin: 0;
  font-family: 'Acumin Pro', system-ui, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #767769;
}

.cae-evlist__rule {
  margin: 0;
  border: 0;
  border-top: 1px solid #F2A518;
  height: 0;
  width: 100%;
  background: none;
}

.cae-evlist__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 19px;
}

.cae-evlist__time {
  margin: 0;
  font-family: 'Acumin Pro', system-ui, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #767769;
}

.cae-evlist__more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  font-family: 'Acumin Pro Condensed', 'Liberation Sans Narrow', 'Arial Narrow', system-ui, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #B15533;
  text-decoration: none;
}

/* A row with no event behind it has no destination, so its Learn More is a <span> and says so
 * in the markup (data-cae-evlist-inert). It is NOT dimmed or hidden: the design draws the
 * control, and hiding a drawn control is as much an invention as inventing a destination. */
.cae-evlist__more--inert {
  cursor: default;
}

.cae-evlist__chevron {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  background-color: currentColor;
  -webkit-mask: var(--cae-evlist-chevron) center / contain no-repeat;
  mask: var(--cae-evlist-chevron) center / contain no-repeat;
}

.cae-evlist__browse {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  /* strokeAlign INSIDE on 20505:7285: the 1px stroke is drawn INSIDE the 51px box, so the border
   * must not add to it. Measured before this line: 53.50 served against the drawn 51 (+2.50 =
   * the two 1.25px computed borders under the 0.8 presentation zoom). border-box + the drawn
   * height is the CSS expression of "inside", and the width stays auto because Kate's label
   * ("Browse Events") is longer than the frame's own "Load More". */
  box-sizing: border-box;
  height: 51px;
  padding: 12px 24px 11px;
  border: 1px solid #004F39;
  border-radius: 40px;
  font-family: 'Acumin Pro Condensed', 'Liberation Sans Narrow', 'Arial Narrow', system-ui, sans-serif;
  font-weight: 400;
  font-size: 20px;
  line-height: 28px;
  color: #004F39;
  text-decoration: none;
}

/* 2026-10-08 (globalpages-1008, Kate 869ew09tx 90120262663463 / 90120262663022: buttons never
 * underline; the arrow moves on hover instead). The pill read underlined AT REST on the homepage
 * (a site-wide inline-link rule outranked the plain class) and this rule added one on hover. The
 * doubled class carries the specificity; no node key. */
a.cae-evlist__browse.cae-evlist__browse,
a.cae-evlist__browse.cae-evlist__browse:hover,
a.cae-evlist__browse.cae-evlist__browse:focus-visible {
  text-decoration: none;
}

/* bkaq (Learn More clipped at 390 on rows carrying a Weekly/Monthly pill): the foot is a
 * single nowrap line, so time + pill + Learn More outgrew the narrow row body and the link ran
 * past the card (+31/+44 px). Narrow viewports let the foot wrap so the link drops to its own
 * line; only pill-bearing rows are touched (:has), so rows without pills are unchanged.
 * 1024 and up are outside this query. */
@media (max-width: 600px) {
  .cae-evlist__foot:has(.cae-cal-recur) {
    flex-wrap: wrap;
    row-gap: 8px;
  }
}

/* NO RESULTS on a narrowed list (noresults-1130): the site's standard box (.cae-recgrid__empty + the yellow
 * .cae-recgrid__empty-reset, cae_cal_render_list_view) across the list's full width, close under the controls as the
 * cream box it replaces was (Kate 869ew7t2q 2026-10-18: "closer to the month title"). On a phone Kate's mobile sheet insets
 * the box 10px each side; the holder steps out by the same 10px so the box lines up with the full-width search field. */
.cae-evlist > .cae-evlist__noresults {
  align-self: stretch;
  box-sizing: border-box;
  min-width: 0;
}
.cae-evlist__noresults > .cae-recgrid__empty {
  margin: 0;
}
.wp-site-blocks .wp-block-post-content > :has(> .cae-evlist > .cae-evlist__noresults) {
  margin-top: 28px;
}
@media (max-width: 781px) {
  .cae-evlist > .cae-evlist__noresults {
    margin: 0 -10px;
  }
}
