/* ============================================================
   EGATIN — Next Study Days (page-specific)
   Builds on aurora.css tokens + about.css (masthead wash,
   .abt__section scaffolding, reveal) + events.css (meta atoms,
   .evtag, .evlink) + research.css (.rfile download rows).
   A single dedicated landing for the upcoming Study Days & AGM:
   masthead with the featured image, a facts strip, the theme
   introduction, a documents tray, a registration call-to-action
   and an organising / contact panel.
   ============================================================ */

/* ---- masthead ---- */
.nsd__head{ display:grid; grid-template-columns:1.05fr .95fr; gap:clamp(1.8rem,4vw,3.6rem);
  align-items:center; padding-bottom:clamp(2rem,4vw,3.2rem); }
.nsd__headmain{ min-width:0; }
.nsd__title{ font-family:var(--font-display); font-weight:800; font-size:clamp(2.2rem,4.8vw,3.9rem);
  line-height:1.02; letter-spacing:-.03em; margin:.55rem 0 0; text-wrap:balance; }
.nsd__title span{ color:var(--accent-deep); }

/* ---- COMPACT header (body[data-head="compact"]) — tighten the text
   column; the featured image keeps its place ---- */
body[data-head="compact"] .nsd__head{
  gap:clamp(1.4rem,3vw,2.6rem); padding-bottom:clamp(1.4rem,3vw,2.4rem);
}
body[data-head="compact"] .nsd__title{ font-size:clamp(1.85rem,3.6vw,2.8rem); margin-top:.35rem; }
body[data-head="compact"] .nsd__when{ margin-top:clamp(.7rem,1.4vw,1rem); }
body[data-head="compact"] .nsd__theme{
  margin-top:clamp(.85rem,1.6vw,1.15rem);
  font-size:clamp(1.08rem,1.6vw,1.32rem); }
body[data-head="compact"] .nsd__actions{ margin-top:clamp(1rem,1.8vw,1.3rem); }

/* date / format / place line */
.nsd__when{ display:flex; flex-wrap:wrap; align-items:center; gap:.6rem 1.1rem;
  margin-top:clamp(1rem,2vw,1.4rem); }
.nsd__when-date{ display:inline-flex; align-items:center; gap:.5em; font-family:var(--font-display);
  font-weight:700; font-size:clamp(1rem,1.4vw,1.16rem); color:var(--ink); font-variant-numeric:tabular-nums; }
.nsd__when-date svg{ width:18px; height:18px; color:var(--accent-deep); flex:none; }
.nsd__when-place{ display:inline-flex; align-items:center; gap:.45em; font-size:.98rem; color:var(--muted); }
.nsd__when-place svg{ width:16px; height:16px; flex:none; }

/* theme statement */
.nsd__theme{ margin-top:clamp(1.2rem,2.2vw,1.6rem); padding-left:1.1rem;
  border-left:3px solid var(--accent);
  font-family:var(--font-serif); font-style:italic; font-weight:500;
  font-size:clamp(1.18rem,1.9vw,1.5rem); line-height:1.34; color:var(--ink); text-wrap:pretty; max-width:36ch; }
.nsd__theme-label{ display:block; font-family:var(--font-display); font-style:normal; font-weight:700;
  font-size:.68rem; letter-spacing:.18em; text-transform:uppercase; color:var(--accent-deep); margin-bottom:.5rem; }

.nsd__actions{ display:flex; flex-wrap:wrap; gap:.8rem; margin-top:clamp(1.5rem,2.6vw,2.1rem); }

/* framed featured image — coloured ring echoes the event cards */
.nsd__media{ margin:0; }
.nsd__frame{ position:relative; margin:0; background:var(--panel);
  border:2px solid var(--ring, var(--accent)); border-radius:20px; padding:7px;
  box-shadow:0 34px 74px -44px rgba(20,16,10,.55); transition:border-color .3s var(--ease); }
.nsd__frame image-slot{ display:block; width:100%; height:auto; aspect-ratio:16/9; border-radius:13px; overflow:hidden;
  outline:1px solid var(--line); outline-offset:-1px; }
.nsd__cap{ margin-top:.85rem; padding-left:.15rem; display:flex; align-items:center; gap:.6em;
  font-size:.84rem; color:var(--muted); }
.nsd__cap b{ font-family:var(--font-display); font-weight:700; color:var(--ink); }
.nsd__cap i{ width:6px; height:6px; border-radius:50%; background:var(--ring,var(--accent)); flex:none; font-style:normal; }

/* ---- facts strip ---- */
.nsd__facts{ list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:1px;
  background:var(--line); border:1px solid var(--line); border-radius:16px; overflow:hidden; }
.nsd__fact{ background:var(--panel); padding:clamp(1.1rem,2vw,1.45rem) clamp(1.05rem,1.8vw,1.35rem);
  display:flex; flex-direction:column; gap:.4rem; }
.nsd__fact-k{ display:inline-flex; align-items:center; gap:.5em; font-size:.66rem; font-weight:700;
  letter-spacing:.14em; text-transform:uppercase; color:var(--accent-deep); }
.nsd__fact-k svg{ width:14px; height:14px; flex:none; }
.nsd__fact-v{ font-family:var(--font-display); font-weight:600; font-size:clamp(1.02rem,1.3vw,1.16rem);
  letter-spacing:-.01em; color:var(--ink); line-height:1.22; }
.nsd__fact-s{ font-size:.84rem; color:var(--muted); line-height:1.4; }
.nsd__fact-s a{ color:var(--accent-deep); border-bottom:1px solid var(--line-2); transition:border-color .2s; }
.nsd__fact-s a:hover{ border-color:var(--accent); }
@media (max-width:820px){ .nsd__facts{ grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:460px){ .nsd__facts{ grid-template-columns:1fr; } }

/* ---- theme introduction ---- */
/* spans the full container width as a single column */
.nsd__prose{ max-width:none; }
.nsd__prose p{ font-family:var(--font-serif); font-size:clamp(1.04rem,1.25vw,1.14rem); line-height:1.72;
  color:var(--ink-soft); text-wrap:pretty; }
.nsd__prose p + p{ margin-top:1.05rem; }
.nsd__prose p:last-child{ font-family:var(--font-display); font-weight:600; font-style:normal;
  color:var(--ink); font-size:clamp(1.02rem,1.2vw,1.12rem); margin-top:1.05rem; }
@media (max-width:820px){ .nsd__prose{ columns:1; } }

/* ---- documents / downloads ---- */
.nsd__files{ margin-top:clamp(1.3rem,2.6vw,1.9rem);
  display:grid; grid-template-columns:repeat(auto-fill,minmax(280px,1fr)); gap:.7rem; }
.nsd__files .rfile{ padding:.85rem .95rem; border-radius:14px; }
.nsd__files .rfile__label{ font-size:.95rem; }
.nsd__files .rfile__note{ display:block; margin-top:.15rem; font-size:.78rem; font-weight:500; color:var(--muted); }

/* ---- registration — blended inline call-to-action (sits under the description) ---- */
.nsd__signup{ margin-top:clamp(2.6rem,5vw,4rem); padding-top:clamp(2rem,3.6vw,2.8rem);
  border-top:1px solid var(--line); }
.nsd__signup-title{ font-family:var(--font-display); font-weight:700; font-size:clamp(1.45rem,2.7vw,2.1rem);
  line-height:1.08; letter-spacing:-.018em; margin:.85rem 0 0; text-wrap:balance; }
.nsd__signup-title span{ color:var(--accent-deep); }
.nsd__signup-text{ margin-top:.9rem; color:var(--ink-soft); font-size:clamp(1rem,1.2vw,1.1rem);
  line-height:1.6; max-width:60ch; }
.nsd__signup-actions{ display:flex; flex-wrap:wrap; gap:.85rem; margin-top:clamp(1.4rem,2.4vw,1.9rem); }
.nsd__signup-deadline{ display:inline-flex; align-items:center; gap:.55em; margin-top:1.3rem;
  font-size:.88rem; color:var(--muted); }
.nsd__signup-deadline b{ color:var(--ink); font-weight:600; }
.nsd__signup-deadline i{ width:7px; height:7px; border-radius:50%; background:var(--accent); flex:none; font-style:normal;
  box-shadow:0 0 0 3px rgba(242,182,90,.18); }

/* ---- organising / contact ---- */
.nsd__contact-grid{ display:grid; grid-template-columns:1.25fr .75fr; gap:clamp(1.8rem,4vw,3.4rem);
  align-items:start; }
.nsd__contact-body .abt__h2{ margin-top:.55rem; }
.nsd__contact-body p{ color:var(--ink-soft); font-size:clamp(1.02rem,1.3vw,1.14rem); line-height:1.65;
  margin-top:1.1rem; max-width:56ch; }
.nsd__contact-body p strong{ color:var(--ink); font-weight:600; }
@media (max-width:820px){ .nsd__contact-grid{ grid-template-columns:1fr; gap:1.8rem; } }

/* ---- responsive ---- */
@media (max-width:860px){
  .nsd__head{ grid-template-columns:1fr; gap:1.8rem; }
  .nsd__media{ order:-1; max-width:520px; }
  .nsd__theme{ max-width:none; }
}
