/* News & Events — hub bands, event cards, detail pages.
   Built on the existing tokens in styles.css; no new palette is introduced. */

/* ── hub bands ───────────────────────────────────────────────────────────── */
.ne-hub { display: block; }

.ne-band { padding: clamp(2.4rem, 5vw, 4rem) clamp(1.1rem, 5vw, 4.5rem); }
.ne-band--news { background: var(--mist); }
.ne-band--past { padding-top: 2rem; padding-bottom: 3.5rem; }

.ne-band-head { max-width: 46rem; margin: 0 0 1.8rem; }
.ne-band-head h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.1rem);
  color: var(--accent); margin: 0 0 .45rem; line-height: 1.18;
}
.ne-band-head p { color: var(--muted); font-size: var(--text-card); margin: 0; }

/* ── upcoming event cards ────────────────────────────────────────────────── */
.ne-event-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
}
.ne-event-card {
  display: flex; gap: 1.1rem; align-items: flex-start;
  background: var(--ivory); border: 1px solid var(--line);
  border-left: 3px solid var(--accent-soft);
  border-radius: 10px; padding: 1.15rem 1.25rem;
}
/* The date is the first thing a parent looks for, so it gets the strongest
   position and the only filled block on the card. */
.ne-datechip {
  flex: none; width: 3.9rem; text-align: center;
  background: var(--accent); color: #fff; border-radius: 8px;
  padding: .55rem .3rem .45rem; line-height: 1.1;
}
.ne-datechip strong { display: block; font-size: 1.55rem; font-family: var(--font-heading); }
.ne-datechip span { display: block; font-size: .72rem; letter-spacing: .1em; }
.ne-datechip em { display: block; font-size: .66rem; font-style: normal; opacity: .75; }

.ne-event-body { min-width: 0; }
.ne-event-body h3, .ne-news-body h3 {
  font-family: var(--font-heading); font-size: var(--card-title);
  margin: .1rem 0 .4rem; line-height: 1.25;
}
.ne-event-body h3 a, .ne-news-body h3 a { color: var(--accent); text-decoration: none; }
.ne-event-body h3 a:hover, .ne-news-body h3 a:hover { text-decoration: underline; }
.ne-event-body p, .ne-news-body p { color: var(--muted); font-size: var(--text-card); margin: 0 0 .6rem; }

.ne-tag {
  font-family: var(--font-ui); font-size: .72rem; letter-spacing: .11em;
  text-transform: uppercase; color: var(--accent-soft); margin: 0 0 .25rem !important;
}
.ne-card-meta { display: flex; flex-wrap: wrap; gap: .4rem .9rem; margin: 0 0 .7rem; }
.ne-card-meta span { font-size: var(--text-xs); color: var(--muted); }
.ne-card-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }

/* ── news cards ──────────────────────────────────────────────────────────── */
.ne-news-grid {
  display: grid; gap: 1.1rem;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}
.ne-news-card {
  background: var(--ivory); border: 1px solid var(--line);
  border-radius: 10px; overflow: hidden; display: flex; flex-direction: column;
}
.ne-news-img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.ne-news-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ne-news-body { padding: 1rem 1.15rem 1.2rem; }

/* ── past events: an archive, never a registration opportunity ───────────── */
.ne-past-list { list-style: none; margin: 0; padding: 0; max-width: 52rem; }
.ne-past-row {
  display: flex; flex-wrap: wrap; gap: .3rem .9rem; align-items: baseline;
  padding: .65rem 0; border-bottom: 1px solid var(--line);
}
.ne-past-date { font-size: var(--text-xs); color: var(--muted); min-width: 9rem; }
.ne-past-row a { color: var(--accent); }
.ne-past-flag {
  font-size: .68rem; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted); border: 1px solid var(--line); border-radius: 3px; padding: .1rem .4rem;
}
.ne-empty { color: var(--muted); max-width: 40rem; }

/* ── calls to action ─────────────────────────────────────────────────────── */
.ne-cta { display: flex; flex-wrap: wrap; gap: .65rem; align-items: center; margin: 1rem 0 0; }
.ne-cta-primary {
  display: inline-block; background: var(--accent); color: #fff;
  font-family: var(--font-ui); font-weight: 600; font-size: var(--text-sm);
  padding: .72rem 1.35rem; border-radius: 6px; text-decoration: none;
}
.ne-cta-primary:hover { background: var(--accent-hover); }
.ne-cta-sm { padding: .5rem .95rem; font-size: var(--text-xs); }
.ne-cta-secondary {
  display: inline-block; border: 1px solid var(--line); color: var(--accent);
  font-family: var(--font-ui); font-size: var(--text-sm);
  padding: .68rem 1.1rem; border-radius: 6px; text-decoration: none;
}
.ne-cta-secondary:hover { border-color: var(--accent-soft); }
/* Matches .text-button / .step-cta so every inline action on the site behaves
   the same way: brand blue, underline on hover, colour deepens. */
.ne-text-link {
  font-family: var(--font-ui); font-size: var(--text-xs);
  color: var(--blue-700); font-weight: 600; text-decoration: none;
}
.ne-text-link:hover, .ne-text-link:focus-visible {
  color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px;
}
.ne-closed { font-size: var(--text-sm); color: var(--muted); margin: .4rem 0 0; }

/* ── detail pages ────────────────────────────────────────────────────────── */
.ne-detail {
  max-width: 52rem; margin: 0 auto;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.1rem, 5vw, 2rem) 4rem;
}
.ne-crumb { font-size: var(--text-xs); color: var(--muted); margin: 0 0 1.4rem; }
.ne-crumb a { color: var(--accent-soft); }
.ne-hero { border-bottom: 1px solid var(--line); padding-bottom: 1.5rem; margin-bottom: 1.8rem; }
.ne-kicker {
  font-family: var(--font-ui); font-size: .74rem; letter-spacing: .12em;
  text-transform: uppercase; color: var(--accent-soft); margin: 0 0 .5rem;
}
.ne-hero h1 {
  font-family: var(--font-heading); color: var(--accent);
  font-size: clamp(1.75rem, 1.3rem + 2vw, 2.7rem); line-height: 1.12;
  margin: 0 0 .8rem; text-wrap: balance;
}
.ne-hero-meta { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin: 0 0 .4rem; }
.ne-hero-meta span { font-size: var(--text-sm); color: var(--muted); }
.ne-hero-date { font-weight: 600; color: var(--accent) !important; }

.ne-banner {
  border-radius: 8px; padding: .9rem 1.1rem; margin: 0 0 1.6rem;
  font-size: var(--text-sm); border: 1px solid var(--line);
}
.ne-banner--cancelled { background: #fdf1ef; border-color: #e7c4bc; color: #7a2f1e; }
.ne-banner--done { background: var(--mist); color: var(--muted); }

.ne-section { margin: 0 0 2rem; }
.ne-section h2 {
  font-family: var(--font-heading); font-size: clamp(1.15rem, 1rem + .6vw, 1.5rem);
  color: var(--accent); margin: 0 0 .7rem;
}
.ne-prose p { margin: 0 0 .9rem; }
.ne-prose ul, .ne-prose ol { margin: 0 0 .9rem; padding-left: 1.3rem; }
.ne-prose li { margin-bottom: .35rem; }
.ne-standfirst { font-size: var(--text-lg); color: var(--muted); margin: 0 0 1.3rem; }

/* Key details are text, never only a poster image — a screen reader and a slow
   connection must both get the date, venue and deadline. */
.ne-facts { display: grid; gap: .1rem; margin: 0; }
.ne-fact {
  display: grid; grid-template-columns: minmax(8rem, 12rem) 1fr; gap: .3rem 1rem;
  padding: .6rem 0; border-bottom: 1px solid var(--line);
}
.ne-fact dt { font-family: var(--font-ui); font-size: var(--text-xs);
  letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.ne-fact dd { margin: 0; font-size: var(--text-card); color: var(--charcoal); }

.ne-poster, .ne-hero-figure { margin: 0 0 1.8rem; }
.ne-poster img, .ne-hero-figure img {
  width: 100%; height: auto; border-radius: 10px; display: block;
}

/* ── homepage band ───────────────────────────────────────────────────────── */
.ne-home-band .ne-event-grid, .ne-home-band .ne-news-grid { margin-top: 1.4rem; }
.ne-home-more { margin-top: 1.4rem; }

@media (max-width: 620px) {
  .ne-event-card { flex-direction: column; gap: .8rem; }
  .ne-datechip { width: auto; display: inline-flex; gap: .4rem; align-items: baseline;
    padding: .35rem .7rem; }
  .ne-datechip strong { font-size: 1.15rem; }
  .ne-fact { grid-template-columns: 1fr; }
  .ne-past-date { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .ne-cta-primary, .ne-cta-secondary { transition: none; }
}

/* ── on-page registration ────────────────────────────────────────────────── */
.ne-register { border-top: 1px solid var(--line); padding-top: 1.6rem; }
.ne-register-note { color: var(--muted); font-size: var(--text-sm); margin: -.3rem 0 1rem; }
.ne-form-grid {
  display: grid; gap: .85rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  margin: 0 0 .85rem;
}
.ne-form label, .ne-form-full {
  display: block; font-family: var(--font-ui); font-size: var(--text-xs);
  color: var(--muted); letter-spacing: .02em;
}
.ne-form-full { margin: 0 0 1rem; }
.ne-opt { color: var(--muted); font-weight: 400; opacity: .8; }
.ne-form input, .ne-form textarea {
  display: block; width: 100%; margin-top: .3rem;
  font-family: var(--font-ui); font-size: var(--text-card); color: var(--charcoal);
  background: var(--ivory); border: 1px solid var(--line); border-radius: 6px;
  padding: .6rem .7rem;
}
.ne-form input:focus-visible, .ne-form textarea:focus-visible {
  outline: 2px solid var(--accent-soft); outline-offset: 1px; border-color: var(--accent-soft);
}
.ne-form button[type="submit"] { border: 0; cursor: pointer; font-family: var(--font-ui); }
.ne-form button[disabled] { opacity: .6; cursor: default; }
.ne-form-status { font-size: var(--text-sm); margin: .7rem 0 0; min-height: 1.2em; }
.ne-form-status.is-error { color: #a4341c; }
.ne-form-done h3 {
  font-family: var(--font-heading); color: var(--accent);
  font-size: var(--card-title); margin: 0 0 .5rem;
}
.ne-form-done p { color: var(--muted); margin: 0; }


/* ── detail hero sits inside the site's standard .page-hero band ──────────
   The site header is fixed, transparent and white-on-dark, so a detail page
   must open with the same dark hero every other inner page uses. These rules
   only recolour the news-specific parts for that ground. */
.page-hero .ne-kicker { color: rgba(255, 255, 255, .82); }
.page-hero .hero-breadcrumb a { color: rgba(255, 255, 255, .9); }
.page-hero .ne-hero-meta { margin: .2rem 0 1.1rem; gap: .35rem 1.4rem; }
.page-hero .ne-hero-meta span { color: rgba(255, 255, 255, .9); font-size: var(--text-card); }
.page-hero .ne-hero-date { color: #fff !important; }
/* A navy button on a navy hero disappears; invert it here only. */
.page-hero .ne-cta-primary { background: #fff; color: var(--accent); }
.page-hero .ne-cta-primary:hover { background: var(--blue-100); }
.page-hero .ne-cta { margin: 0; }

/* The hero now carries the title, so the article starts straight into content. */
.ne-detail { padding-top: clamp(2rem, 4vw, 3.2rem); }
