/* ─────────────────────────────────────────
   INSIGHT PAGE — News & Event Archive
   Design-spec aligned, $250K campaign-level
───────────────────────────────────────── */

.insight-page {
  background:
    radial-gradient(circle at 80% 0%, rgba(212, 0, 121, 0.2), transparent 45%),
    radial-gradient(circle at 10% 20%, rgba(255, 215, 0, 0.1), transparent 35%),
    var(--racing-plum);
  position: relative;

  /* ── Category palette (page-scoped) — Insight/News hub only ─────────────
     Derived entirely from the brand trio + sanctioned steel-400; replaces the
     old off-brand sky/violet/emerald/red category hues. These drive the event
     legend, agenda dots and pill accents. Reconciled with the calendar legend:
     racing→magenta · training→gold · promo→white · community→steel-400.
     Pill TEXT uses AA-safe light/dark tints of these tokens (see .insight-pill). */
  --cat-racing:      var(--magenta);       /* #D40079 */
  --cat-training:    var(--gold);          /* #FFD700 */
  --cat-promo:       var(--text-white);    /* neutral white */
  --cat-community:   var(--steel-400);     /* #94A3B8 */
  --cat-partnership: var(--magenta-300);   /* #FF4DB3 */
  --cat-announce:    var(--steel-400);     /* #94A3B8 (news cluster — never co-shown w/ community) */
  --cat-result:      var(--gold);          /* #FFD700 */
  /* Light-zone eyebrow ink — dark magenta from the brand token */
  --ink-accent:      var(--primary-dark);
}

/* ── Width Normalization — Match Header (1400px) ── */
.insight-container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 32px;
}

.insight-section {
  padding: var(--section-pad) 0;
  position: relative;
  overflow: clip; /* was overflow:hidden — clip preserves position:sticky in descendants (news-events calendar rail) */
}

.insight-section--soft {
  background: linear-gradient(180deg, rgba(5,5,5,0.95) 0%, rgba(42,0,24,0.3) 50%, rgba(5,5,5,0.95) 100%);
}

/* Light "Content Archive" zone — scoped paper/ink theme (no ad-hoc hex ink). */
.insight-section--light {
  --paper: #F5F2EC;
  --ink: #1A0510;
  --ink-soft: #4A4148;
  background: var(--paper);
  color: var(--ink);
}

/* 80–120px gradient ramps soften the dark → light → dark sandwich at both edges. */
.insight-section--light::before,
.insight-section--light::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 110px;
  pointer-events: none;
  z-index: 0;
}
.insight-section--light::before {
  top: 0;
  background: linear-gradient(180deg, var(--racing-plum) 0%, rgba(42, 0, 24, 0) 100%);
}
.insight-section--light::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--racing-plum) 0%, rgba(42, 0, 24, 0) 100%);
}

/* Eyebrow consolidation (R2): insight/news headers now use the canonical
   .njt-section__overline (components.css). Only the light-archive-zone color
   override remains page-scoped — gold fails contrast on the paper background. */
.insight-section--light .njt-section__overline {
  color: var(--ink-accent);
}

.insight-section__header {
  margin-bottom: 34px;
}

.insight-section__title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.2;
  color: inherit;
}

/* Representative-schedule disclosure under a section title (calendar). */
.insight-section__note {
  margin-top: 10px;
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-white-80);
}

.insight-hero {
  position: relative;
  min-height: 78vh;
  padding: calc(var(--header-h) + 72px) 0 96px;
  overflow: hidden;
}

/* Evergreen neutral hero backdrop (real track panorama + plum scrim).
   The dated seasonal partnership artwork now lives ONLY in the featured card. */
.insight-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(42, 0, 24, 0.92) 0%, rgba(42, 0, 24, 0.74) 46%, rgba(13, 0, 10, 0.62) 100%),
    url('../assets/01-hero/HERO-001_golden-hour-track-panorama.jpg') center/cover no-repeat;
  transform: scale(1.02);
}

.insight-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(20, 0, 16, 0) 0%, rgba(20, 0, 16, 0.95) 100%);
}

.insight-hero__content {
  position: relative;
  z-index: 1;
}

.insight-hero__top {
  max-width: 760px;
  margin-bottom: 38px;
}

.insight-hero__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 215, 0, 0.45);
  border-radius: 999px;
  padding: 7px 14px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 14px;
}

/* Deliberate "Insight/News hub" H1 variant — the only gradient-clipped H1 in the
   build, shared by insight.html + news-events.html. Kept intentionally (audit §4.1);
   sits over the strong plum hero scrim above for contrast. */
.insight-hero__title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 900;
  font-size: var(--text-display-xl);   /* A5 / CONVENTIONS #19 — was clamp(40px, 6vw, 72px) */
  /* line-height deleted (A30) — components.css §38a governs this h1. */
  letter-spacing: -0.025em;
  background: var(--magenta-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 14px;
}

.insight-hero__subtitle {
  max-width: 680px;
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.82);
}

.insight-hero__news {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  gap: 22px;
}

.insight-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 420px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 20px 52px rgba(0, 0, 0, 0.45);
}

.insight-featured__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Portrait 4:5 social artwork cropped into a landscape card — anchor to the
     top so the poster's baked headline copy isn't guillotined mid-line. */
  object-position: top;
}

.insight-featured__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 4, 10, 0.1), rgba(8, 4, 10, 0.9));
}

.insight-featured__body {
  position: absolute;
  inset: auto 0 0;
  padding: 30px;
  z-index: 1;
}

.insight-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  padding: 6px 12px;
  font-family: var(--font-heading);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 11px;
}

/* Category pills — bg tint + AA-safe token text (dark surfaces). All colors are
   brand tokens: magenta family = --magenta-300, gold = --gold, steel = --steel-400,
   neutral = --text-white. (R2 taste C2: the 16-hex rainbow was collapsed to tokens.) */
.insight-pill--partnership { background: rgba(212, 0, 121, 0.18); color: var(--magenta-300); }
.insight-pill--announcement { background: rgba(148, 163, 184, 0.22); color: var(--steel-400); }
.insight-pill--result { background: rgba(255, 215, 0, 0.20); color: var(--gold); }
.insight-pill--promo { background: rgba(255, 255, 255, 0.16); color: var(--text-white); }
.insight-pill--training { background: rgba(255, 215, 0, 0.18); color: var(--gold); }
.insight-pill--community { background: rgba(148, 163, 184, 0.22); color: var(--steel-400); }
.insight-pill--racing { background: rgba(212, 0, 121, 0.22); color: var(--magenta-300); }

/* AA contrast (Gate 2): pills inside light news-card bodies need DARK token text.
   Magenta family = --primary-dark, steel = --steel-600, gold/neutral = --ink/--ink-soft. */
.insight-news-card__body .insight-pill--partnership { color: var(--primary-dark); }
.insight-news-card__body .insight-pill--announcement { background: rgba(71, 85, 105, 0.14); color: var(--steel-600); }
.insight-news-card__body .insight-pill--result { color: var(--ink); }
.insight-news-card__body .insight-pill--promo { background: rgba(26, 5, 16, 0.06); color: var(--ink-soft); }
.insight-news-card__body .insight-pill--training { color: var(--ink); }
.insight-news-card__body .insight-pill--community { background: rgba(71, 85, 105, 0.14); color: var(--steel-600); }
.insight-news-card__body .insight-pill--racing { color: var(--primary-dark); }

.insight-featured__title {
  font-family: var(--font-heading);
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.22;
  color: #fff;
  margin-bottom: 10px;
}

.insight-featured__excerpt {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.65;
  margin-bottom: 12px;
  max-width: 90%;
}

.insight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.insight-secondary {
  display: grid;
  gap: 16px;
}

.insight-secondary__item {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 14px;
  background: rgba(0, 0, 0, 0.4);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  overflow: hidden;
  min-height: 150px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  transition: border-color var(--transition), transform var(--transition);
}
.insight-secondary__item:hover {
  border-color: rgba(255, 215, 0, 0.6);
  transform: translateY(-3px);
}

.insight-secondary__thumb {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.insight-secondary__body {
  padding: 12px 14px 12px 0;
}

.insight-secondary__title {
  font-family: var(--font-heading);
  font-size: 16px;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 8px;
}

.insight-secondary__date {
  color: rgba(255, 255, 255, 0.65);
  font-size: 12px;
}

.insight-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
}

.insight-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
}

.insight-filter {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-white-80);
  padding: 9px 14px;
  border-radius: 999px;
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}

.insight-filter:hover,
.insight-filter.is-active {
  border-color: rgba(255, 215, 0, 0.8);
  color: #0d0d0d;
  background: var(--gold);
}

.insight-events {
  display: grid;
  gap: 14px;
}

.insight-event-item {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  color: inherit;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(42,0,24,0.3));
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  padding: 14px;
  transition: border-color var(--transition), transform var(--transition), background var(--transition), box-shadow var(--transition);
}

.insight-event-item:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 215, 0, 0.6);
  background: linear-gradient(135deg, rgba(255,215,0,0.05), transparent);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

.insight-date-badge {
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  text-align: center;
  display: grid;
  place-content: center;
  min-height: 82px;
}

.insight-date-badge__month {
  font-family: var(--font-display);
  letter-spacing: 1px;
  font-size: 11px;
  color: var(--gold);
}

.insight-date-badge__day {
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1;
  color: #fff;
}

.insight-date-badge__year {
  font-size: 11px;
  color: var(--text-white-60);
}

.insight-event-item__title {
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.35;
  color: #fff;
  margin-bottom: 8px;
}

.insight-event-item__desc {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: 8px;
}

.insight-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.68);
}

.insight-event-status {
  border-radius: 999px;
  border: 1px solid;
  padding: 2px 8px;
  font-size: 12px;
}

.insight-event-status--open {
  border-color: var(--signal-green); /* non-text tint ≥3:1 (CONVENTIONS #8) */
  background: rgba(46, 125, 70, 0.20);
  color: var(--text-white); /* white text — small green text fails AA */
}

.insight-event-status--soon {
  border-color: rgba(255, 215, 0, 0.7);
  color: var(--gold);
}

.insight-calendar {
  border-radius: var(--radius-lg);
  padding: 20px;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
  align-self: start;
  position: sticky;
  top: 112px;
}

.insight-calendar__title {
  font-family: var(--font-heading);
  font-size: 20px;
  color: #fff;
  margin-bottom: 16px;
}

.insight-calendar__month {
  font-family: var(--font-heading);
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 10px;
}

/* ── Two-month grouped agenda ────────────────────────────────────────────
   Replaces the old single-month day-grid, which could only ever show the
   March events and was factually misaligned. This lists every listed event
   across both months, each linked to its relevant page. Honest + maintainable. */
.insight-agenda {
  list-style: none;
  margin: 0 0 18px;
  padding: 0;
  display: grid;
  gap: 16px;
}

.insight-agenda__group-title {
  font-family: var(--font-display);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.insight-agenda__item {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.insight-agenda__item + .insight-agenda__item { margin-top: 6px; }

.insight-agenda__item:hover {
  border-color: rgba(255, 215, 0, 0.5);
  background: rgba(255, 215, 0, 0.06);
  transform: translateX(2px);
}

.insight-agenda__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.insight-agenda__dot--racing   { background: var(--cat-racing); }
.insight-agenda__dot--training  { background: var(--cat-training); }
.insight-agenda__dot--promo     { background: var(--cat-promo); }
.insight-agenda__dot--community { background: var(--cat-community); }

.insight-agenda__date {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  min-width: 26px;
}

.insight-agenda__label {
  font-size: 12.5px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.8);
}

.insight-calendar__legend {
  display: grid;
  gap: 6px;
}

.insight-calendar__legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
}

.insight-calendar__legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.insight-calendar__legend-dot--racing { background: var(--cat-racing); }
.insight-calendar__legend-dot--training { background: var(--cat-training); }
.insight-calendar__legend-dot--promo { background: var(--cat-promo); border: 1px solid rgba(255,255,255,0.4); }
.insight-calendar__legend-dot--community { background: var(--cat-community); }

.insight-news-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.insight-news-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.insight-news-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(25, 16, 32, 0.12);
  background: #fff;
  box-shadow: 0 12px 34px rgba(20, 10, 26, 0.08);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.insight-news-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(212, 0, 121, 0.15);
  border-color: rgba(212, 0, 121, 0.3);
}

.insight-news-card[hidden] {
  display: none;
}

.insight-news-card__image {
  width: 100%;
  aspect-ratio: 16 / 10; /* compact — differentiates the archive index from the hero cluster */
  object-fit: cover;
}

.insight-news-card__body {
  padding: 16px 18px 18px;
}

/* Date-first compact meta row — reads as a dated index, not a repeat of the hero. */
.insight-news-card__meta--top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
}
.insight-news-card__meta--top .insight-pill {
  margin-bottom: 0;
}
.insight-news-card__date {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}

.insight-news-card__title {
  font-family: var(--font-heading);
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  margin-bottom: 8px;
}

.insight-news-card__excerpt {
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 0;
}

.insight-news-card__meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 12px;
  color: var(--ink-soft);
}

.insight-load-more-wrap {
  margin-top: 22px;
  text-align: center;
}

.insight-load-more {
  border: 1px solid rgba(26, 5, 16, 0.3); /* --ink @ 30% */
  color: var(--ink);
  background: transparent;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 600;
}

.insight-load-more:hover {
  border-color: var(--ink);
  background: rgba(26, 5, 16, 0.06); /* --ink @ 6% */
}

.insight-results {
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}

.insight-results__head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.insight-results__event {
  font-family: var(--font-heading);
  font-size: 24px;
  color: #fff;
}

.insight-results__date {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
}

/* Horizontal-scroll wrapper so the 5-col table reflows cleanly on mobile. */
.insight-results__scroll {
  overflow-x: auto;
}

.insight-results__table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
}

/* Rider names link to their racing-team roster anchor. */
.insight-results__table td a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color var(--transition), color var(--transition);
}
.insight-results__table td a:hover {
  color: var(--gold);
  border-bottom-color: rgba(255, 215, 0, 0.6);
}

.insight-results__table th,
.insight-results__table td {
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  text-align: left;
  font-size: 14px;
}

.insight-results__table th {
  font-family: var(--font-heading);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(0, 0, 0, 0.2);
}

.insight-results__table td {
  color: rgba(255, 255, 255, 0.86);
}

/* Position chips — 28px rounded squares; P1 gold-filled, others outlined. */
.insight-pos {
  display: inline-grid;
  place-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.insight-pos--gold {
  color: #1a0510;
  background: var(--gold);
  border-color: var(--gold);
}

.insight-subscribe {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 215, 0, 0.18), transparent 30%),
    radial-gradient(circle at 100% 100%, rgba(212, 0, 121, 0.24), transparent 35%),
    rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 34px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  box-shadow: 0 20px 52px rgba(0,0,0,0.45);
}

.insight-subscribe__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 38px);
  color: #fff;
  line-height: 1.2;
  margin-bottom: 10px;
}

.insight-subscribe__desc {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
  margin-bottom: 16px;
}

.insight-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.insight-form input {
  flex: 1 1 260px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  padding: 12px 14px;
  font-family: var(--font-body);
}

.insight-form input::placeholder {
  color: rgba(255, 255, 255, 0.62);
}

.insight-form button {
  border: 0;
  border-radius: 12px;
  background: var(--gold);
  color: #120f14;
  padding: 0 18px;
  font-family: var(--font-heading);
  font-weight: 700;
}

.insight-subscribe__note {
  margin-top: 10px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* Honest demo confirmation for the panel newsletter (no backend). */
.insight-form__confirm {
  margin-top: 12px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid rgba(46, 125, 70, 0.55); /* --signal-green */
  background: rgba(46, 125, 70, 0.16);
  color: var(--text-white); /* white on green tint — small green text fails AA */
  font-size: 13px;
  font-family: var(--font-heading);
}

/* This panel is the page's SINGLE newsletter capture — suppress the shared
   footer newsletter on these two routes so there is exactly one email form. */
.insight-page .site-footer__newsletter {
  display: none;
}

.insight-social-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

/* Ghost social buttons — 1px white/20 border, white label, platform-color icon.
   F1.com-register restraint; replaces the four saturated foreign fills. */
.insight-social-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 9px;
  padding: 12px 14px;
  border-radius: 12px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.04);
  transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.insight-social-btn:hover {
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-2px);
}
.insight-social-btn__icon {
  display: inline-flex;
  width: 18px;
  height: 18px;
}
.insight-social-btn__icon svg { width: 100%; height: 100%; }

/* Icons are brand-token white on the dark glass buttons (platform recognition
   comes from the glyph shape); LINE keeps its sanctioned brand-green token. */
.insight-social-btn--fb   .insight-social-btn__icon { color: var(--text-white); }
.insight-social-btn--ig   .insight-social-btn__icon { color: var(--text-white); }
.insight-social-btn--tt   .insight-social-btn__icon { color: var(--text-white); }
.insight-social-btn--line .insight-social-btn__icon { color: var(--line-green); }

/* Token-only, magenta-dominant field (no yellow endpoint) so the yellow
   btn-cta keeps a strong figure/ground separation (≥4:1 over the magenta). */
.insight-cta {
  border-radius: var(--radius-lg);
  padding: 46px 34px;
  text-align: center;
  background:
    radial-gradient(circle at 85% 12%, rgba(255, 215, 0, 0.16), transparent 42%),
    linear-gradient(120deg, var(--racing-plum) 0%, var(--magenta) 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.insight-cta__title {
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 42px);
  color: #fff;
  margin-bottom: 10px;
}

.insight-cta__subtitle {
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 18px;
  font-size: 16px;
}

.insight-cta__actions {
  display: inline-flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Decorative Elements ── */
.insight-section__glow {
  position: absolute;
  width: 384px;
  height: 384px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
  z-index: 0;
}
.insight-section__glow--yellow {
  background: rgba(255,215,0,0.08);
  top: -128px;
  right: -64px;
}
.insight-section__glow--magenta {
  background: rgba(212,0,121,0.15);
  bottom: -96px;
  left: -96px;
}
.insight-racing-stripe {
  width: 100%;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0.2;
}
/* Border above the CTA box (news-events only — insight.html carries no stripe here).
   A second rule was NOT added: this separator already sits directly above the CTA
   section, so a border-top there would have produced two parallel lines a couple of
   pixels apart. Instead the existing stripe is promoted into a readable border —
   full opacity, and the gradient no longer fades to nothing at the ends, so it
   reads as a defined edge rather than a faint smudge. */
.insight-racing-stripe--cta {
  height: 1px;
  opacity: 1;
  background: linear-gradient(to right,
    rgba(255, 215, 0, 0.05) 0%,
    rgba(255, 215, 0, 0.45) 22%,
    rgba(255, 215, 0, 0.45) 78%,
    rgba(255, 215, 0, 0.05) 100%);
  margin-bottom: 40px;
}
.insight-grid-texture {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,215,0,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,215,0,0.03) 1px, transparent 1px);
  background-size: 50px 50px;
  pointer-events: none;
  z-index: 0;
}
.insight-section > .insight-container {
  position: relative;
  z-index: 1;
}

/* ── Light section filter styling ── */
.insight-section--light .insight-filter {
  border-color: rgba(42,0,24,0.15);
  background: rgba(42,0,24,0.04);
  color: var(--ink-soft);
}
.insight-section--light .insight-filter:hover,
.insight-section--light .insight-filter.is-active {
  border-color: var(--magenta);
  background: var(--magenta);
  color: #fff;
}

/* ── Date badge enhanced ── */
.insight-date-badge {
  background: linear-gradient(135deg, rgba(0,0,0,0.5), rgba(42,0,24,0.3));
}

/* ── Featured card shimmer overlay ── */
.insight-featured::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 40%, rgba(255,215,0,0.06) 50%, transparent 60%);
  background-size: 200% 200%;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
  z-index: 2;
}

@media (max-width: 1199px) {
  .insight-hero__news {
    grid-template-columns: 1fr;
  }

  .insight-featured {
    min-height: 390px;
  }

  .insight-layout {
    grid-template-columns: 1fr;
  }

  .insight-calendar {
    position: static;
  }

  .insight-news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .insight-hero {
    padding-top: calc(var(--header-h) + 48px);
  }

  .insight-secondary__item {
    grid-template-columns: 1fr;
  }

  .insight-secondary__thumb {
    max-height: 180px;
  }

  .insight-secondary__body {
    padding: 0 14px 14px;
  }

  .insight-event-item {
    grid-template-columns: 1fr;
  }

  .insight-date-badge {
    max-width: 100px;
  }

  .insight-subscribe {
    grid-template-columns: 1fr;
  }

  .insight-social-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .insight-container {
    padding: 0 16px;
  }

  .insight-section {
    padding: var(--section-pad-mob) 0;
  }

  .insight-news-grid {
    grid-template-columns: 1fr;
  }

  .insight-results__table {
    font-size: 12px;
  }

  .insight-results__table th,
  .insight-results__table td {
    padding: 10px 8px;
  }

  .insight-cta {
    padding: 32px 18px;
  }

  .insight-cta__actions {
    justify-content: center;
  }
}

/* ═══════════════════════════════════════════════════════════════════
   V4/G7 — FRESHNESS STAMP (news-events calendar + insight archive)
   Quieter than the representative-schedule note it sits under: this is
   provenance metadata, not a caveat.
   ═══════════════════════════════════════════════════════════════════ */
.insight-section__stamp {
  margin-top: 8px;
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-white-60);
}
.insight-section--light .insight-section__stamp { color: var(--text-white-70); }
