/* ============================================================
   EGATIN — Events page (page-specific)
   Builds on aurora.css tokens + about.css (masthead, reveal,
   header wash) + research.css (file tray + filter chips).
   Two movements: an "Events" list of image cards in the order
   they were entered, then a year-grouped "Past Study Days"
   timeline with downloads. Each event: date / format / place
   meta, title (theme), description and resources.
   ============================================================ */

/* ---- masthead aside: host / propose ---- */
.ev-host{ background:var(--panel); border:1px solid var(--line); border-radius:18px;
  padding:clamp(1.5rem,2.6vw,2.1rem); }
.ev-host__eyebrow{ font-size:.7rem; font-weight:700; letter-spacing:.16em; text-transform:uppercase; color:var(--accent-deep); }
.ev-host__text{ margin:.85rem 0 1.2rem; font-size:.98rem; color:var(--ink-soft); line-height:1.55; }
.ev-host__text strong{ color:var(--ink); font-weight:600; }
.ev-host .btn{ width:100%; justify-content:center; }
.ev-host__note{ display:flex; align-items:center; gap:.7rem; margin-top:1.2rem;
  padding-top:1.1rem; border-top:1px solid var(--line); font-size:.86rem; color:var(--muted); }
.ev-host__note b{ color:var(--ink); font-weight:600; }

/* shared meta row (used by cards + timeline) */
.evt__meta{ display:flex; flex-wrap:wrap; align-items:center; gap:.5rem .95rem; }
.evt__date{ display:inline-flex; align-items:center; gap:.45em; font-size:.9rem; font-weight:600;
  color:var(--ink); font-variant-numeric:tabular-nums; white-space:nowrap; }
.evt__date svg{ width:15px; height:15px; color:var(--accent-deep); flex:none; }
.evt__where{ display:inline-flex; align-items:center; gap:.45em; font-size:.9rem; color:var(--muted); }
.evt__where svg{ width:15px; height:15px; flex:none; }
.evtag{ display:inline-flex; align-items:center; gap:.45em; font-size:.66rem; font-weight:700;
  letter-spacing:.1em; text-transform:uppercase; padding:.38em .72em; border-radius:100px;
  border:1px solid currentColor; line-height:1; }
.evtag::before{ content:""; width:6px; height:6px; border-radius:50%; background:currentColor; }
.evtag--inperson{ color:var(--accent-deep); background:rgba(242,182,90,.12); }
.evtag--online{ color:#4E5CC8; background:rgba(126,140,255,.12); }

/* shared external-link chip */
.evlink{ display:inline-flex; align-items:center; gap:.42rem; font-size:.85rem; font-weight:600;
  color:var(--accent-deep); background:var(--panel); border:1px solid var(--line-2); border-radius:100px;
  padding:.5em .95em; transition:border-color .2s, transform .2s; }
.evlink:hover{ border-color:var(--accent); transform:translateY(-1px); }
.evlink svg{ width:14px; height:14px; }

/* ============ EVENT CARDS (entry order) ============ */
/* flat editorial entries — image + long-form text, no card, no shadow */
.evlist{ display:flex; flex-direction:column; }
.evx{ display:grid; grid-template-columns:clamp(168px,21vw,232px) 1fr; gap:clamp(1.4rem,3.4vw,3rem);
  padding:clamp(1.8rem,3.6vw,2.8rem) 0; }
.evx + .evx{ border-top:1px solid var(--line); }
.evx:first-child{ padding-top:clamp(.4rem,1.2vw,.8rem); }

/* matted photo frame — coloured ring echoes the Committee portraits */
.evx__frame{ align-self:start; position:sticky; top:96px;
  background:var(--panel); border:2px solid var(--ring, var(--accent)); border-radius:16px; padding:6px;
  transition:border-color .3s var(--ease); }
.evx__frame image-slot{ display:block; width:100%; aspect-ratio:4/3; border-radius:10px; overflow:hidden;
  outline:1px solid var(--line); outline-offset:-1px; }
.evx__src{ margin-top:.6rem; font-size:.66rem; font-weight:700; letter-spacing:.14em; text-transform:uppercase;
  color:var(--accent-deep); }

/* text column */
.evx__body{ min-width:0; }
.evx__meta{ margin-bottom:.55rem; }
.evx__name{ display:block; margin:0; font-family:var(--font-display); font-weight:800; letter-spacing:-.02em;
  font-size:clamp(1.3rem,2vw,1.75rem); line-height:1.12; color:var(--ink); text-wrap:balance; }
.evx__div{ display:none; }
.evx__div{ width:1px; align-self:center; height:1.05em; background:var(--line-2); flex:none; }

.evx__theme{ margin:clamp(1rem,2vw,1.35rem) 0 0; font-family:var(--font-display); font-weight:700;
  font-size:clamp(1.04rem,1.5vw,1.18rem); line-height:1.34; color:var(--ink); text-wrap:pretty; }
.evx__h{ margin:clamp(1.3rem,2.4vw,1.7rem) 0 .2rem; font-family:var(--font-display); font-weight:700;
  font-size:1.02rem; color:var(--ink); }
.evx__body p{ margin-top:.85rem; font-family:var(--font-serif); font-size:1.04rem; line-height:1.68;
  color:var(--ink-soft); max-width:68ch; text-wrap:pretty; }
.evx__body p:first-of-type{ margin-top:.85rem; }
.evx__body p em{ font-style:italic; }
.evx__body p strong{ color:var(--ink); font-weight:700; }

.evx__foot{ margin-top:clamp(1.2rem,2.2vw,1.6rem); display:flex; flex-wrap:wrap; gap:.5rem .65rem; align-items:center; }
.evx__cta{ display:inline-flex; align-items:center; gap:.4rem; font-size:.92rem; font-weight:600;
  color:var(--accent-deep); }
.evx__cta:hover{ text-decoration:underline; text-underline-offset:3px; }
.evx__cta svg{ width:14px; height:14px; }
.evx__foot .rfiles{ width:100%; max-width:760px; margin-top:.3rem;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(228px,1fr)); gap:.5rem; }
.evx__foot .rfiles__hd{ grid-column:1 / -1; }

/* ============ ARCHIVE / TIMELINE ============ */
.evarchive{ padding-top:clamp(1.6rem,3.4vw,2.6rem); }
.evchips{ margin:clamp(1.2rem,2.4vw,1.7rem) 0 clamp(.4rem,1.4vw,1rem); }

.evtimeline{ list-style:none; margin:clamp(1rem,2vw,1.6rem) 0 0; padding:0; }
/* The archive is eighteen rows of one line each, so it is sized to be scanned
   rather than read one entry at a time — but not so small that it reads as
   fine print. Roughly midway between the original and the first pass at
   compacting it. */
.evt{ display:grid; grid-template-columns:clamp(66px,9vw,104px) 1fr; gap:clamp(.8rem,2.1vw,1.6rem); }
.evt[hidden]{ display:none; }

/* left rail — year marker */
.evt__rail{ text-align:right; padding-top:.05rem; }
.evt__year{ font-family:var(--font-display); font-weight:800; font-variant-numeric:tabular-nums;
  font-size:clamp(1.15rem,1.8vw,1.55rem); line-height:1; letter-spacing:-.02em; color:var(--accent-deep); }
.evt__rail span{ display:block; margin-top:.3rem; font-size:.59rem; font-weight:700; letter-spacing:.115em;
  text-transform:uppercase; color:var(--faint); }

/* main column with timeline node */
.evt__main{ position:relative; border-left:2px solid var(--line);
  padding-left:clamp(1.15rem,2.2vw,1.8rem); padding-bottom:clamp(1.7rem,3vw,2.55rem);
  margin-bottom:0; }
.evt:last-child .evt__main{ padding-bottom:clamp(.3rem,1vw,.6rem); }
/* horizontal divider sits inside the spacing zone, clearly inset from the timeline spine */
.evt__main::after{ content:""; position:absolute; left:clamp(1.4rem,2.5vw,2.1rem); right:0;
  bottom:clamp(.8rem,1.5vw,1.25rem); height:1px; background:var(--line); }
.evt:last-child .evt__main::after{ display:none; }
.evt__main::before{ content:""; position:absolute; left:-7px; top:.32rem; width:12px; height:12px;
  border-radius:50%; background:var(--bg-3); border:2px solid var(--accent);
  box-shadow:0 0 0 4px rgba(242,182,90,.14); }
.evt--online .evt__main::before{ border-color:#7E8CFF; box-shadow:0 0 0 4px rgba(126,140,255,.16); }

.evt__title{ font-family:var(--font-display); font-weight:700; letter-spacing:-.014em;
  font-size:clamp(1.05rem,1.5vw,1.28rem); line-height:1.24; color:var(--ink); text-wrap:balance;
  margin:0; transition:color .25s; }

/* theme line (under the title) */
.evt__theme{ margin:.38rem 0 0; font-size:clamp(.85rem,1.05vw,.94rem); line-height:1.42;
  font-weight:400; font-style:italic; color:var(--muted); text-wrap:pretty; }

/* venue with coloured left border (always shown, even when unknown) */
.evt__venue{ margin:clamp(.85rem,1.7vw,1.15rem) 0 0; padding:.35rem 0 .35rem 1.05rem;
  border-left:2px solid var(--accent); font-size:.93rem; line-height:1.42; color:var(--ink); }
.evt--online .evt__venue{ border-left-color:#7E8CFF; }
.evt__venue b{ font-weight:700; }

/* ---- collapsible header / panel ---- */
.evt__head{ display:flex; align-items:center; gap:.85rem; cursor:pointer; }
.evt__head:focus-visible{ outline:2px solid var(--accent-deep); outline-offset:5px; border-radius:8px; }
.evt__headmain{ flex:1; min-width:0; }
.evt__toggle{ flex:none; width:31px; height:31px; margin-top:0; border-radius:50%;
  border:1px solid var(--line-2); display:flex; align-items:center; justify-content:center;
  color:var(--ink-soft); transition:background .25s, color .25s, border-color .25s; }
.evt__toggle svg{ width:18px; height:18px; transition:transform .35s var(--ease); }
.evt__head:hover .evt__toggle{ border-color:var(--accent); color:var(--accent-deep); }
.evt__head:hover .evt__title{ color:var(--accent-deep); }
.evt.is-open .evt__toggle{ border-color:var(--accent); color:var(--accent-deep); }
.evt.is-open .evt__toggle svg{ transform:rotate(180deg); }

.evt__panel{ display:grid; grid-template-rows:0fr;
  transition:grid-template-rows .45s var(--ease); }
.evt.is-open .evt__panel{ grid-template-rows:1fr; }
.evt__panelinner{ min-height:0; overflow:hidden; }
@media (prefers-reduced-motion: reduce){ .evt__panel{ transition:none; } }
.evt__body{ margin-top:clamp(.7rem,1.4vw,1rem); max-width:64ch; }
.evt__body p{ font-family:var(--font-serif); font-size:1.02rem; line-height:1.66; color:var(--ink-soft); }
.evt__body p + p{ margin-top:.65rem; }
.evt__body em{ font-style:italic; }
.evt__body strong{ color:var(--ink); font-weight:700; }

/* per-event facts strip (registration, fees, venue) */
.evt__facts{ list-style:none; margin:clamp(.9rem,1.8vw,1.2rem) 0 0; padding:.1rem 0 .1rem 1.05rem;
  border-left:2px solid var(--accent); display:flex; flex-direction:column; gap:.3rem; }
.evt--online .evt__facts{ border-left-color:#7E8CFF; }
.evt__facts li{ font-size:.93rem; line-height:1.42; color:var(--ink); }
.evt__facts li b{ font-weight:700; }

/* footer: links + downloads */
.evt__foot{ margin-top:clamp(1rem,2vw,1.4rem); display:flex; flex-direction:column; gap:.9rem; }
.evt__links{ display:flex; flex-wrap:wrap; gap:.5rem; }

/* downloads tray (reuse research .rfiles, widened into a grid) */
.evt__foot .rfiles{ width:100%; max-width:780px;
  display:grid; grid-template-columns:repeat(auto-fill,minmax(232px,1fr)); gap:.5rem; }
.evt__foot .rfiles__hd{ grid-column:1 / -1; }

/* ---- responsive ---- */
@media (max-width:760px){
  .evx{ grid-template-columns:1fr; gap:1rem; }
  .evx__frame{ position:static; max-width:300px; }
  .evx__frame image-slot{ aspect-ratio:16/10; }
}
@media (max-width:620px){
  .evt{ grid-template-columns:1fr; gap:.5rem; }
  .evt__rail{ text-align:left; display:flex; align-items:baseline; gap:.6rem; }
  .evt__rail span{ margin-top:0; }
  .evt__main{ border-left:none; padding-left:0; }
  .evt__main::before{ display:none; }
  .evt__foot .rfiles{ grid-template-columns:1fr; }
}

/* A timeline row whose year has an archive page links to it. */
.evt__link{ color:inherit; text-decoration:none; }
.evt__link:hover{ color:var(--accent-deep); text-decoration:underline; text-underline-offset:3px; }
.evt__link:focus-visible{ outline:2px solid var(--accent-deep); outline-offset:3px; border-radius:4px; }
