/* ──────────────────────────────────────────────
   INSIGHTS INDEX — `/insights`
   Page-specific layout for the Browse Mode insights index. Reuses
   the `.eyebrow` primitive from main.css for both the filter chips
   and the per-row pillar pill; sector-matched chips set
   `data-sector` so the active state inherits the matching sector
   accent colour token.

   Task #546 layout: a Featured grid sits above the filter chips
   in repeating rows of 3-then-2 cards (mirrors the /work featured
   rhythm). Beneath the chips, the typographic article list lists
   every published insight, one row per article.
   ────────────────────────────────────────────── */

.screen--insights { display: none; }
/* Footer clearance lives on .insights-index's bottom padding (shared
   shell convention, Task #612) — no screen-level reserve needed. */
.screen--insights.active {
  display: block;
}

/* Single scroll surface: the page scrolls at document level (like the
   legal/brief screens) — no inner fixed-height scroller, so visitors
   never see a scrollbar inside a scrollbar (Task #615). */
.insights-scroll {
  background: var(--ink);
  color: var(--text);
}

.insights-index {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--sp-20) var(--sp-12) var(--sp-20);
}

/* ── Hero ────────────────────────────────────────────────────── */
.insights-hero { margin-bottom: var(--sp-14); }
/* Editorial-page hero headlines use DM Sans weight 300 (the serif
   token), not the display weight 900. Display 900 is reserved for
   case-study client names, metric numbers, and section numerals.
   Mirrors the /about and /ai-ops hero treatment. */
.insights-hero__headline {
  font-family: var(--serif);
  font-weight: var(--fw-light);
  font-size: var(--fs-display);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-headline);
  margin: 0 0 var(--sp-6);
  color: var(--white);
}
.insights-hero__headline em {
  font-style: italic;
  font-weight: var(--fw-light);
  color: var(--be-yellow);
}
/* Sublede renders in DM Sans per the v1.1 typography roles — prose
   body copy ("long-form articles..." sentence) sits in sans; serif
   is reserved for the headline above. Task #550. */
.insights-hero__sublede {
  font-family: var(--sans);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sublede);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin: 0;
}

/* ── Featured grid (above the filter chips) ──────────────────
   Repeating rows of 3-then-2 cards (task #546). Each row is its
   own grid so the rhythm is preserved regardless of how many
   featured items exist. Tablets collapse to 2-up, mobile to 1-up
   — matching the /work featured breakpoints. */
.insights-featured {
  margin: 0 0 var(--sp-12);
}
.insights-featured[hidden] { display: none; }
.insights-featured__eyebrow { margin-bottom: 18px; }
.insights-featured__rows {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}
.insights-featured__row {
  display: grid;
  gap: var(--sp-5);
}
.insights-featured__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.insights-featured__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .insights-featured__rows { gap: 18px; }
  .insights-featured__row { gap: 18px; }
  .insights-featured__row--3,
  .insights-featured__row--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 639px) {
  .insights-featured__rows { gap: var(--sp-4); }
  .insights-featured__row { gap: var(--sp-4); }
  .insights-featured__row--3,
  .insights-featured__row--2 { grid-template-columns: 1fr; }
}

/* ── Filter chip row ─────────────────────────────────────────── */
.insights-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin: 0 0 var(--sp-12);
  padding-bottom: var(--sp-6);
  border-bottom: 1px solid var(--ink-line);
}

/* Task #688: chip recipe mirrors the /work filter chips in proof.css
   (mono type, low-alpha sector tint backgrounds, yellow active). */
/* Base, sector and interaction styles share the filter family in proof.css.
   Keep this route's wrapping, spacing and rendering behaviour separate. */

/* ── Article list (typographic, restored) ────────────────────
   One row per article, single column at every breakpoint. Mirrors
   the pre-#534 layout (task #546). */
.insights-list {
  display: flex;
  flex-direction: column;
}
.insights-row {
  display: block;
  padding: var(--sp-8) 0;
  border-bottom: 1px solid var(--ink-line);
  text-decoration: none;
  color: inherit;
  transition: color 0.18s ease;
}
.insights-row:first-child { padding-top: var(--sp-2); }
.insights-row:hover .insights-row__title,
.insights-row:focus-visible .insights-row__title { color: var(--be-yellow); }
.insights-row:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 4px;
}

.insights-row__pillar {
  display: inline-block;
  margin-bottom: 14px;
  color: var(--text-faint);
}
/* Per-sector text colours come from the shared pillar-label recipe in
   main.css (Task #731) — add new sectors there, not here. */

.insights-row__title {
  font-family: var(--display);
  font-weight: var(--fw-medium);
  font-size: var(--fs-sublede);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-headline);
  color: var(--text);
  margin: 0 0 10px;
  transition: color 0.18s ease;
}
.insights-row__deck {
  font-family: var(--display);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--text-mute);
  margin: 0 0 14px;
  /* Spans the full list container (Task #680) — no reading-measure cap. */
}
/* ── Empty state ─────────────────────────────────────────────── */
.insights-empty {
  padding: var(--sp-16) 0;
  text-align: center;
}
.insights-empty__body {
  font-family: var(--display);
  font-style: italic;
  font-weight: var(--fw-light);
  font-size: var(--fs-h3);
  color: var(--text-mute);
  margin: 0 0 var(--sp-4);
}
.insights-empty__reset {
  background: transparent;
  border: none;
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-nav);
  text-transform: uppercase;
  color: var(--be-yellow);
  cursor: pointer;
  padding: 6px 0;
}
.insights-empty__reset:hover { text-decoration: underline; }
.insights-empty__reset:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 4px;
}

/* .insights-be-entry removed in Task #704 — the index foot uses the
   shared .element-entry primitive without a page wrapper. */

@media (max-width: 767px) {
  .insights-index { padding: var(--sp-14) var(--sp-5) var(--sp-14); }
  .insights-hero { margin-bottom: var(--sp-10); }
  .insights-featured { margin-bottom: var(--sp-8); }
  .insights-filters { margin-bottom: var(--sp-8); padding-bottom: var(--sp-5); }
  .insights-row { padding: var(--sp-6) 0; }
  .insights-row__title { font-size: var(--fs-h3); }
}

/* ── Featured cards ──────────────────────────────────────────
   Dark insight-card chrome reused in the Featured grid. Featured-
   ness is communicated by position and the 3-2 rhythm, NOT by
   colour — so we deliberately drop the previous yellow tint and
   "Featured" flag (task #546). */
.insights-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: var(--sp-5) var(--sp-5) var(--sp-14);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-xs);
  background: rgba(255,255,255,0.02);
  color: var(--paper);
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
  min-height: 240px;
}
.insights-card:hover { border-color: var(--paper); background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.insights-card:focus-visible {
  outline: 2px solid var(--be-yellow);
  outline-offset: 3px;
}
.insights-card__pillar { color: var(--paper); opacity: 0.85; }
/* Per-sector text colours come from the shared pillar-label recipe in
   main.css (Task #731); only the full-opacity override lives here. */
.insights-card__pillar[data-sector] { opacity: 1; }
/* Featured-card titles: DM Sans 22px weight 400 with 2-line clamp so
   long titles truncate gracefully rather than overflow the card.
   Task #488 Phase 3. */
.insights-card__title {
  font-family: var(--serif);
  font-weight: var(--fw-regular);
  font-size: var(--fs-sublede);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-body);
  margin: 0;
  color: var(--paper);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insights-card__deck {
  font-size: var(--fs-sm);
  line-height: var(--lh-base);
  color: var(--paper);
  opacity: 0.72;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.insights-card__arrow {
  position: absolute;
  bottom: 18px;
  right: 22px;
  font-size: var(--fs-h3);
  opacity: 0.5;
  transition: transform 160ms ease, opacity 160ms ease;
}
.insights-card:hover .insights-card__arrow { transform: translateX(4px); opacity: 1; }

/* Load-more affordance for the article list. Same chrome as /work. */
.insights-more {
  display: flex;
  justify-content: center;
  margin: var(--sp-6) 0 var(--sp-2);
}
.insights-more[hidden] { display: none; }
.insights-more__btn {
  font-family: var(--mono);
  font-size: var(--fs-eyebrow);
  font-weight: var(--fw-medium);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  padding: var(--sp-3) var(--sp-5);
  background: transparent;
  color: var(--paper);
  border: 1px solid var(--ink-line);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}
.insights-more__btn:hover { border-color: var(--paper); background: rgba(255,255,255,0.04); }
.insights-more__btn:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
.insights-more__remaining { opacity: 0.6; margin-left: 6px; }
