/* assets/nbsx/sections/events.css — section.nbsx-events (blueprint v2 §2.11 / v1 §2.10)
   Ruled list #2: hairlines, row padding and the reveal come from core.css
   (.nbsx-rows, .nbsx-rise); this file lays out the two columns (6/6, one
   vertical hairline, 64px between), the date block and the two row shapes
   (event: 96px / 1fr / auto — article: the whole row is one link).
   Own motion budget: the day digit turns indigo (color, paint-only), the title
   underline slides (background-size), the arrow nudges (transform). No JS. */

/* ── two columns, hairline top rule inside the container ───────────────── */
.nbsx-events__grid{border-top:1px solid var(--hair);padding-top:48px;display:grid;grid-template-columns:1fr}
.nbsx-events__grid--two{grid-template-columns:1fr 1fr}
.nbsx-events__col{min-width:0}
.nbsx-events__grid--two .nbsx-events__col--first{padding-right:32px}
.nbsx-events__grid--two .nbsx-events__col--second{border-left:1px solid var(--hair);padding-left:32px}
.nbsx-events__h{margin:0 0 24px}
.nbsx-events__list{margin:0}

/* ── event rows: date block · body · register ──────────────────────────── */
.nbsx-events__row--event{grid-template-columns:96px 1fr auto;column-gap:var(--gutter);row-gap:0;align-items:baseline}
.nbsx-events__date{display:flex;flex-direction:column;gap:6px;line-height:1}
.nbsx-events__day{font-size:40px;font-weight:300;line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums;color:var(--fg);transition:color .2s var(--ease)}
.nbsx-events__day--month{font-size:28px;letter-spacing:0}
.nbsx-events__month{font-size:var(--t-eyebrow);font-weight:500;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);line-height:1.4}
.nbsx-events__body{display:flex;flex-direction:column;align-items:flex-start;gap:6px;min-width:0}
.nbsx-events__title{font-size:var(--t-title);font-weight:500;line-height:1.25;justify-self:start;text-wrap:pretty}
.nbsx-events__meta{display:block;font-size:14px;line-height:1.4;color:var(--muted);text-align:left;justify-self:start}
.nbsx-events__register{white-space:nowrap;align-self:baseline;justify-self:end}

/* hover / focus-within: day turns indigo, title underline slides in */
.nbsx-events__row--event:hover .nbsx-events__day,
.nbsx-events__row--event:focus-within .nbsx-events__day{color:var(--indigo)}
.nbsx-events__row--event:hover .nbsx-events__title,
.nbsx-events__row--event:focus-within .nbsx-events__title{background-size:100% 1px}

/* ── article rows: the whole row is one link ───────────────────────────── */
.nbsx-events__row--article{display:block}
.nbsx-events__article{display:grid;grid-template-columns:1fr auto;gap:6px var(--gutter);align-items:start;color:inherit;text-decoration:none}
.nbsx-events__article:hover,.nbsx-events__article:focus-visible{color:inherit;text-decoration:none}
.nbsx-events__article .nbsx-events__eyebrow,
.nbsx-events__article .nbsx-events__title,
.nbsx-events__article .nbsx-events__byline{grid-column:1;grid-row:auto}
.nbsx-events__eyebrow{line-height:1.4}
.nbsx-events__byline{display:block;font-size:14px;line-height:1.4;color:var(--muted);text-align:left;justify-self:start}
.nbsx-events__byline time{font:inherit;color:inherit}
.nbsx-events__arrow{grid-column:2;grid-row:1/4;align-self:start;color:var(--muted);display:inline-flex;padding-top:4px}
.nbsx-events__arrow svg{width:16px;height:16px;flex:none;transition:transform .2s var(--ease)}
.nbsx-events__row--article:hover .nbsx-events__title,
.nbsx-events__article:focus-visible .nbsx-events__title{background-size:100% 1px}
.nbsx-events__row--article:hover .nbsx-events__arrow svg,
.nbsx-events__article:focus-visible .nbsx-events__arrow svg{transform:translateX(6px)}

/* ── closing links ─────────────────────────────────────────────────────── */
.nbsx-events__more{display:flex;flex-wrap:wrap;gap:12px 32px;margin:32px 0 0}

/* ── tablet ≤1024: two columns stay; the register link drops under the body
   so the title column is not squeezed between the date block and the link ── */
@media (max-width:1024px){
  .nbsx-events__grid--two .nbsx-events__col--first{padding-right:24px}
  .nbsx-events__grid--two .nbsx-events__col--second{padding-left:24px}
  .nbsx-events__row--event{grid-template-columns:96px 1fr;row-gap:12px}
  .nbsx-events__row--event .nbsx-events__date{grid-column:1;grid-row:1}
  .nbsx-events__row--event .nbsx-events__body{grid-column:2;grid-row:1}
  .nbsx-events__row--event .nbsx-events__register{grid-column:2;grid-row:2;justify-self:start}
}

/* ── mobile ≤700: columns stack (events first), date block 64px ────────── */
@media (max-width:700px){
  .nbsx-events__grid{padding-top:40px}
  .nbsx-events__grid--two{grid-template-columns:1fr}
  .nbsx-events__grid--two .nbsx-events__col--first{padding-right:0}
  .nbsx-events__grid--two .nbsx-events__col--second{border-left:0;padding-left:0;border-top:1px solid var(--hair);padding-top:40px;margin-top:40px}
  .nbsx-events__h{margin-bottom:20px}
  .nbsx-events__row--event{grid-template-columns:64px 1fr;row-gap:12px}
  .nbsx-events__day{font-size:32px}
  .nbsx-events__day--month{font-size:24px}
  .nbsx-events__row--event .nbsx-events__date{grid-column:1;grid-row:1}
  .nbsx-events__row--event .nbsx-events__body{grid-column:2;grid-row:1}
  .nbsx-events__row--event .nbsx-events__register{grid-column:2;grid-row:2;justify-self:start}
  .nbsx-events__more{margin-top:28px;gap:10px 24px}
}

/* ── reduced motion: nothing this file animates moves ──────────────────── */
@media (prefers-reduced-motion:reduce){
  .nbsx-events__day{transition:none}
  .nbsx-events__arrow svg{transition:none}
  .nbsx-events__row--article:hover .nbsx-events__arrow svg,
  .nbsx-events__article:focus-visible .nbsx-events__arrow svg{transform:none}
}
