/* Educational content pages — Famous CMEs event pages (and future Learn lessons).
   Loaded ALONGSIDE help.css, which provides the :root tokens, .help-top header,
   .callout, .badge, .chip, table.ref, .foot and .subscribe-form. This file adds the
   single-column article layout and the event-page components. */

/* ---------- article layout (help.css .wrap is a two-column TOC layout) ---------- */
.article { max-width: 820px; margin: 0 auto; padding: 0 22px 70px; }
.article section { scroll-margin-top: 64px; margin: 28px 0; }
.article h2 { font-size: 20px; color: var(--text); margin: 28px 0 12px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.article h2 .n { color: var(--accent); margin-right: 9px; font-weight: 700; }
.article h3 { font-size: 14px; color: var(--accent); margin: 18px 0 6px; letter-spacing: .3px; }
.article p { margin: 10px 0; color: #c3cbe2; }
.article p.lead { font-size: 16px; color: var(--text); line-height: 1.6; }
.article ul { margin: 10px 0 10px 4px; list-style: none; }
.article ul li { position: relative; padding-left: 18px; margin: 6px 0; color: #c3cbe2; }
.article ul li::before { content: "▸"; position: absolute; left: 2px; color: var(--accent); opacity: .7; }
.article strong, .article b { color: var(--text); }

/* breadcrumb */
.crumb { max-width: 820px; margin: 0 auto; padding: 16px 22px 0; font-size: 12px; color: var(--muted); }
.crumb a { color: var(--muted); }
.crumb a:hover { color: var(--accent); }

/* ---------- hero ---------- */
.event-hero { max-width: 820px; margin: 0 auto; padding: 14px 22px 4px; }
.event-hero .kicker { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }
.event-hero h1 { font-size: 30px; line-height: 1.15; color: var(--text); margin: 8px 0; letter-spacing: .4px; }
.event-hero .meta { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 12px 0; font-size: 13px; color: var(--muted); }
.event-hero .lead { font-size: 16px; color: #c3cbe2; line-height: 1.6; margin-top: 12px; }
.event-hero figure { margin: 20px 0 0; }
.event-hero img { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); display: block; }

/* G-scale badge + provenance chip */
.gbadge { display: inline-block; font-weight: 700; font-size: 12px; padding: 3px 10px; border-radius: 6px; letter-spacing: .5px; color: #1a1205; }
.gbadge.g5 { background: #ff3b5c; color: #fff; } .gbadge.g4 { background: #ff5470; color: #fff; }
.gbadge.g3 { background: #ff8c1a; } .gbadge.g2 { background: #ffb347; } .gbadge.g1 { background: #e8c97a; }
.gbadge.gx { background: #2a3350; color: var(--text); }
.prov { font-size: 11px; padding: 2px 8px; border-radius: 5px; border: 1px solid var(--line); color: var(--muted); }
.prov.measured { color: var(--green); border-color: rgba(61,220,151,.5); }
.prov.recon { color: var(--accent); border-color: rgba(255,179,71,.5); }

/* CSS-rendered hero art (used until a credited photo is dropped in) */
.hero-art { aspect-ratio: 16 / 7; border-radius: 12px; border: 1px solid var(--line); position: relative; overflow: hidden;
  background: radial-gradient(130% 150% at 12% 22%, #2a1606 0%, #14101f 42%, var(--bg) 100%); }
.hero-art .orb { position: absolute; left: 9%; top: 50%; transform: translateY(-50%); width: 86px; height: 86px; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, #ffe08a, var(--accent) 45%, var(--accent2) 100%); box-shadow: 0 0 70px rgba(255,140,0,.55); }
.hero-art .wave { position: absolute; right: -10%; top: 50%; width: 70%; height: 78%; transform: translateY(-50%); border-radius: 50%;
  background: radial-gradient(circle, transparent 58%, rgba(255,140,0,.10) 60%, transparent 64%, rgba(255,84,112,.08) 70%, transparent 74%); }

/* ---------- replay CTA ---------- */
.replay-cta { max-width: 820px; margin: 22px auto; padding: 0 22px; }
.replay-cta a { display: flex; align-items: center; gap: 14px; text-decoration: none;
  background: linear-gradient(120deg, rgba(255,140,0,.15), rgba(255,179,71,.05));
  border: 1px solid var(--accent); border-radius: 12px; padding: 15px 18px; transition: background .15s; }
.replay-cta a:hover { background: linear-gradient(120deg, rgba(255,140,0,.24), rgba(255,179,71,.1)); text-decoration: none; }
.replay-cta .play { font-size: 22px; color: var(--accent); flex: none; }
.replay-cta .t { flex: 1; }
.replay-cta .t b { color: var(--text); font-size: 15px; display: block; }
.replay-cta .t span { color: var(--muted); font-size: 12.5px; }
.replay-cta .go { color: var(--accent); font-weight: 700; flex: none; }

/* ---------- by-the-numbers stat grid ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 14px 0; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 13px 15px; }
.stat .v { font-size: 21px; font-weight: 700; color: var(--text); }
.stat .l { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 3px; }

/* ---------- vertical narrative timeline ---------- */
.timeline { list-style: none; margin: 14px 0; padding-left: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 16px 30px; }
.timeline li::before { content: ""; position: absolute; left: 2px; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
.timeline .when { color: var(--accent); font-size: 12px; font-weight: 700; }
.timeline .what { color: #c3cbe2; margin-top: 2px; }

/* ---------- imagery ---------- */
.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 16px 0; }
figure { margin: 16px 0; }
figure img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); display: block; }
figcaption { font-size: 11.5px; color: var(--muted); margin-top: 6px; line-height: 1.5; }

/* ---------- sources ---------- */
.sources li { padding-left: 18px; font-size: 12.5px; }

/* ---------- hub: intro + event cards ---------- */
.hub-intro { max-width: 980px; margin: 0 auto; padding: 22px 22px 4px; }
.hub-intro h1 { font-size: 26px; color: var(--text); letter-spacing: .4px; }
.hub-intro p { color: #c3cbe2; max-width: 730px; margin-top: 8px; font-size: 14.5px; }
.event-grid { max-width: 980px; margin: 18px auto; padding: 0 22px 30px; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.event-card { display: flex; flex-direction: column; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 17px; text-decoration: none; transition: border-color .15s, transform .15s; }
.event-card:hover { border-color: var(--accent); transform: translateY(-2px); text-decoration: none; }
.event-card .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.event-card h3 { font-size: 16px; color: var(--text); margin: 2px 0; }
.event-card .date { font-size: 12px; color: var(--muted); }
.event-card .hook { font-size: 13px; color: #c3cbe2; flex: 1; line-height: 1.5; }
.event-card .read { font-size: 12.5px; color: var(--accent); font-weight: 700; }

@media (max-width: 640px) {
  .event-hero h1 { font-size: 24px; }
  .article h2 { font-size: 18px; }
}
