/* ========================================================================
   insights.css — styling for the Insights system
   Used by: insights.html · insights/post.html · homepage.html (rail)
   ======================================================================== */

/* ---------- Hub layout ---------- */
.if-hub {
  background: #fff;
  padding: 100px 0 140px;
}
.if-hub-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: end;
  margin-bottom: 48px;
}
.if-hub-head h1 {
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink-900);
  margin: 0;
}
.if-hub-head h1 em {
  font-family: var(--font-sans);
  font-weight: 200;
  font-style: italic;
  color: var(--brand-orange);
}
.if-hub-sub {
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink-700);
  max-width: 460px;
  justify-self: end;
}

/* Featured flagship report (hub) */
.if-featured-brief {
  margin-bottom: 40px;
}
.if-featured-brief-link {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 12px 24px;
  padding: 20px 24px;
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 121, 0, 0.06), rgba(7, 163, 209, 0.05));
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.if-featured-brief-link:hover {
  border-color: var(--brand-orange);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}
.if-featured-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-orange);
  width: 100%;
}
.if-featured-title {
  font-family: var(--font-condensed);
  font-weight: 900;
  font-size: clamp(20px, 2.5vw, 28px);
  letter-spacing: -0.02em;
  color: var(--ink-900);
  flex: 1;
  min-width: 200px;
}
.if-featured-cta {
  font-weight: 700;
  font-size: 15px;
  color: var(--brand-orange);
  white-space: nowrap;
}

/* ---------- Filter bar ---------- */
.if-filters {
  position: sticky;
  top: 64px;
  z-index: 20;
  background: #fff;
  border-top: 1px solid var(--ink-200);
  border-bottom: 1px solid var(--ink-200);
  padding: 16px 0;
  margin-bottom: 32px;
}
.if-filters-inner {
  display: grid;
  gap: 12px;
}
.if-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.if-chip-row .if-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-right: 4px;
}
.if-chip {
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  border: 1px solid var(--ink-300);
  background: #fff;
  color: var(--ink-700);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 120ms ease;
}
.if-chip:hover { border-color: var(--ink-900); color: var(--ink-900); }
.if-chip.is-active {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}
.if-search {
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--ink-300);
  background: #fff;
  padding: 8px 14px;
  border-radius: 999px;
  width: 220px;
  margin-left: auto;
}
.if-count {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 16px;
}

/* ---------- Bento grid ---------- */
.if-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: minmax(180px, auto);
  gap: 20px;
}
.if-grid > .ifc { grid-column: span 2; }
.if-grid > .ifc[data-fmt="essay"]  { grid-column: span 4; grid-row: span 2; }
.if-grid > .ifc[data-fmt="report"] { grid-column: span 2; grid-row: span 2; }
.if-grid > .ifc[data-fmt="chart"]  { grid-column: span 4; }
.if-grid > .ifc[data-fmt="video"]  { grid-column: span 4; }
.if-grid > .ifc[data-fmt="quote"]  { grid-column: span 2; grid-row: span 2; }
.if-grid > .ifc[data-fmt="podcast"]{ grid-column: span 2; grid-row: span 2; }
.if-grid > .ifc[data-fmt="poll"]   { grid-column: span 2; grid-row: span 2; }
.if-grid > .ifc[data-fmt="carousel"]{ grid-column: span 3; grid-row: span 2; }
.if-grid > .ifc[data-fmt="event"]  { grid-column: span 3; }

/* ---------- Card base ---------- */
.ifc {
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  position: relative;
}
a.ifc:hover, .ifc:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--ink-300);
}
.ifc-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.ifc-eye {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.ifc-fmt {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--brand-orange);
}
.ifc-icon {
  display: inline-grid;
  place-items: center;
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--orange-50);
  color: var(--brand-orange);
  font-size: 11px;
  font-style: normal;
}
.ifc-fmt-podcast .ifc-icon, .ifc-fmt-video .ifc-icon { background: var(--cyan-50); color: var(--cyan-700); }
.ifc-fmt-podcast, .ifc-fmt-video { color: var(--cyan-700); }
.ifc-fmt-poll, .ifc-fmt-quiz { color: #1DAA64; }
.ifc-fmt-poll .ifc-icon, .ifc-fmt-quiz .ifc-icon { background: #E2F5EC; color: #1DAA64; }
.ifc-fmt-event { color: var(--ink-900); }
.ifc-fmt-event .ifc-icon { background: var(--ink-100); color: var(--ink-900); }

.ifc-title {
  font-family: var(--font-sans);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.25;
  color: var(--ink-900);
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.ifc-dek {
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink-700);
  margin: 0;
  flex: 1;
}
.ifc-foot {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ink-500);
  padding-top: 10px;
  margin-top: auto;
  border-top: 1px solid var(--ink-100);
}

/* ---------- Covers ---------- */
.ifc-cover {
  aspect-ratio: 16/9;
  background-color: var(--ink-100);
  background-size: cover;
  background-position: center;
}
.ifc-cover-square { aspect-ratio: 1/1; position: relative; display: grid; place-items: center; }
.ifc-cover-video { aspect-ratio: 16/9; position: relative; display: grid; place-items: center; }
.ifc-cover-chart { aspect-ratio: 16/8; }
.ifc-cover-report {
  aspect-ratio: 3/4;
  position: relative;
  background-color: var(--ink-900);
  background-blend-mode: multiply;
}
.ifc-cover-fallback {
  background:
    radial-gradient(circle at 30% 40%, rgba(255,121,0,0.5), transparent 50%),
    radial-gradient(circle at 70% 60%, rgba(7,163,209,0.4), transparent 50%),
    var(--ink-900);
}

/* ---------- Play button ---------- */
.ifc-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.94);
  color: var(--ink-900);
  display: grid;
  place-items: center;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
}
.ifc-play-lg { width: 72px; height: 72px; }
.ifc-duration {
  position: absolute;
  bottom: 10px; right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.04em;
}

/* ---------- Podcast waveform deco ---------- */
.ifc-wave {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 28px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  padding: 0 10px 6px;
  opacity: 0.6;
}
.ifc-wave span {
  width: 3px;
  background: #fff;
  border-radius: 2px;
  animation: ifc-wave 1.4s ease-in-out infinite alternate;
}
.ifc-wave span:nth-child(odd)  { height: 60%; }
.ifc-wave span:nth-child(even) { height: 90%; }
.ifc-wave span:nth-child(3n)   { height: 40%; }
@keyframes ifc-wave {
  to { transform: scaleY(0.4); }
}

/* ---------- Link list cards ---------- */
.ifc-linklist {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
}
.ifc-linklist li {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--ink-700);
  padding: 6px 0;
  border-top: 1px dashed var(--ink-200);
}
.ifc-linklist li:first-child { border-top: 0; }
.ifc-linksrc {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-cyan);
}

/* ---------- Chart card ---------- */
.ifc-take {
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-900);
  font-weight: 500;
  margin: 0;
}
.ifc-source {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

/* ---------- Quote card ---------- */
.ifc-quote {
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}
.ifc-quote .ifc-eye, .ifc-quote .ifc-foot { color: rgba(255,255,255,0.6); }
.ifc-quote .ifc-fmt { color: var(--brand-orange); }
.ifc-quote .ifc-foot { border-top-color: rgba(255,255,255,0.12); }
.ifc-pullquote {
  font-family: var(--font-condensed);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  text-wrap: balance;
}
.ifc-attrib {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  margin-top: auto;
}

/* ---------- Poll card ---------- */
.ifc-poll { cursor: default; }
.ifc-poll-opts {
  display: grid;
  gap: 8px;
}
.ifc-poll-opt {
  font: inherit;
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 10px 14px;
  cursor: pointer;
  text-align: left;
  overflow: hidden;
  transition: all 120ms ease;
}
.ifc-poll-opt:hover:not(:disabled) {
  border-color: var(--ink-900);
  background: #fff;
}
.ifc-poll-bar {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--pct, 0%);
  background: var(--orange-50);
  z-index: 0;
  transition: width 400ms ease;
  opacity: 0;
}
.ifc-poll.is-voted .ifc-poll-bar { opacity: 1; }
.ifc-poll-opt.is-mine .ifc-poll-bar { background: var(--orange-100); }
.ifc-poll-label, .ifc-poll-pct {
  position: relative;
  z-index: 1;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-900);
}
.ifc-poll-pct {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--ink-700);
  opacity: 0;
  transition: opacity 200ms 200ms ease;
}
.ifc-poll.is-voted .ifc-poll-pct { opacity: 1; }
.ifc-poll-meta {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-top: 4px;
}

/* ---------- Quiz card ---------- */
.ifc-quiz-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
}
.ifc-quiz-q, .ifc-quiz-t {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  padding: 4px 10px;
  border-radius: 999px;
}
.ifc-quiz-go {
  margin-left: auto;
  color: var(--brand-orange);
  font-weight: 700;
}

/* ---------- Report card ---------- */
.ifc-cover-report {
  background-image: linear-gradient(135deg, rgba(255,121,0,0.7), rgba(7,163,209,0.5)),
    radial-gradient(circle at 30% 20%, rgba(255,255,255,0.1), transparent 60%);
  position: relative;
  display: grid;
  place-items: center;
}
.ifc-stamp {
  position: absolute;
  top: 12px; right: 12px;
  background: #fff;
  color: var(--ink-900);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 4px;
}
.ifc-report-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-500);
}
.ifc-dl {
  margin-left: auto;
  color: var(--brand-orange);
  font-weight: 700;
  font-size: 13px;
}

/* ---------- Deck card ---------- */
.ifc-deck-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 12px;
  color: var(--ink-500);
  flex-wrap: wrap;
}

/* ---------- Carousel card preview ---------- */
.ifc-frames {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.ifc-frame {
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  padding: 10px;
  display: grid;
  gap: 4px;
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ink-700);
}
.ifc-frame strong {
  color: var(--ink-900);
  font-size: 12px;
}
.ifc-frame-n {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--brand-orange);
  font-weight: 700;
}
.ifc-carousel-cta {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand-orange);
}

/* ---------- Event card ---------- */
.ifc-event-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 16px;
  align-items: start;
}
.ifc-tile {
  background: var(--ink-900);
  color: #fff;
  border-radius: 10px;
  padding: 8px;
  text-align: center;
  display: grid;
  gap: 0;
}
.ifc-tile-mon {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--brand-orange);
}
.ifc-tile-day {
  font-family: var(--font-condensed);
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}
.ifc-event-meta {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--ink-500);
}
.ifc-event-spots {
  background: var(--orange-50);
  color: var(--orange-700);
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 11px;
}

/* ---------- Empty state ---------- */
.if-empty {
  padding: 64px 0;
  text-align: center;
  color: var(--ink-500);
  font-size: 16px;
}

/* ---------- Single post ---------- */
.if-post-wrap {
  background: #fff;
  padding: 48px 0 120px;
}
.if-post-back {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-500);
  text-decoration: none;
  display: inline-block;
  margin-bottom: 32px;
}
.if-post-back:hover { color: var(--ink-900); }
.if-post-head {
  max-width: 760px;
  margin: 0 auto 40px;
}
.if-post-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 16px;
}
.if-post-fmt { color: var(--brand-orange); }
.if-post-title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 0 0 16px;
  text-wrap: balance;
}
.if-post-dek {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-700);
  font-weight: 300;
  margin: 0 0 20px;
}
.if-post-author {
  font-size: 13px;
  color: var(--ink-500);
  padding-top: 16px;
  border-top: 1px solid var(--ink-200);
}
.if-post-cover {
  max-width: 1100px;
  margin: 0 auto 40px;
  aspect-ratio: 16/8;
  background-size: cover;
  background-position: center;
  border-radius: 14px;
}
.if-post-body {
  max-width: 760px;
  margin: 0 auto;
}
.if-post-md + .if-link-list {
  margin-top: 8px;
}
.if-quiz-cta-wrap {
  margin-top: 24px;
}
.if-post-prose {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink-700);
}
.if-post-prose p { margin: 0 0 18px; }
.if-post-prose h2 {
  font-family: var(--font-condensed);
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--ink-900);
  margin: 32px 0 14px;
  line-height: 1.15;
}
.if-post-prose h2:first-child { margin-top: 0; }
.if-post-prose h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 28px 0 10px;
}
.if-post-prose ul,
.if-post-prose ol {
  margin: 0 0 18px;
  padding-left: 1.25em;
}
.if-post-prose li { margin: 0 0 8px; }
.if-post-prose li::marker { color: var(--brand-orange); }
.if-post-prose a {
  color: var(--brand-orange);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.if-post-prose a:hover { color: var(--ink-900); }
.if-post-prose blockquote {
  margin: 0 0 18px;
  padding: 12px 0 12px 20px;
  border-left: 4px solid var(--brand-cyan);
  color: var(--ink-800);
  font-style: italic;
}
.if-post-prose strong { color: var(--ink-900); font-weight: 700; }
.if-post-prose hr {
  border: 0;
  border-top: 1px solid var(--ink-200);
  margin: 28px 0;
}
.if-post-prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--ink-50);
  padding: 1px 6px;
  border-radius: 4px;
}

.if-section { margin: 32px 0; }
.if-section h3 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 12px;
}
.if-collapse {
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  padding: 14px 18px;
  margin-top: 24px;
}
.if-collapse summary {
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-900);
}
.if-collapse[open] summary { margin-bottom: 12px; }

/* ---------- Audio player ---------- */
.if-player {
  display: grid;
  grid-template-columns: 56px 1fr 48px;
  gap: 16px;
  align-items: center;
  background: var(--ink-900);
  color: #fff;
  border-radius: 12px;
  padding: 18px 20px;
  margin-bottom: 16px;
}
.if-player-play {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--brand-orange);
  color: #fff;
  border: 0;
  font-size: 18px;
  cursor: pointer;
}
.if-player-title { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.if-player-bar {
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 2px;
  overflow: hidden;
}
.if-player-fill {
  height: 100%;
  width: 28%;
  background: var(--brand-orange);
}
.if-player-time {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.if-player-rate {
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-align: center;
}
.if-listen-on {
  display: flex;
  gap: 14px;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 24px;
}
.if-listen-on a {
  color: var(--brand-cyan);
  text-decoration: none;
}
.if-listen-on a:hover { text-decoration: underline; }
.if-guests {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 10px;
}
.if-guests li {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 8px;
  font-size: 14px;
}
.if-guests strong { color: var(--ink-900); }
.if-guests span { color: var(--ink-500); font-size: 13px; }

/* ---------- Video embed ---------- */
.if-video {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}
.if-video iframe { width: 100%; height: 100%; border: 0; }
.if-chapters {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 6px;
}
.if-chapters li {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 12px;
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid var(--ink-100);
}
.if-chapters li:first-child { border-top: 0; }
.if-ts {
  font-family: var(--font-mono);
  color: var(--brand-orange);
  font-weight: 600;
}

/* ---------- Quote single-post ---------- */
.if-quote-body {
  background: var(--ink-900);
  color: #fff;
  padding: 64px 56px;
  border-radius: 14px;
}
.if-pullquote-xl {
  font-family: var(--font-condensed);
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0 0 24px;
  text-wrap: balance;
}
.if-attrib-xl {
  font-size: 16px;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.if-context {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  font-style: italic;
}

/* ---------- Chart single-post ---------- */
.if-chart-hero {
  aspect-ratio: 16/9;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  margin-bottom: 24px;
  background-color: var(--ink-100);
}
.if-take-line {
  font-size: 18px;
  line-height: 1.5;
  padding: 16px 20px;
  background: var(--orange-50);
  border-left: 3px solid var(--brand-orange);
  border-radius: 0 8px 8px 0;
  color: var(--ink-900);
  margin-bottom: 12px;
}
.if-source-line {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 24px;
}

/* ---------- Gate (download lead form) ---------- */
.if-gate {
  margin-top: 40px;
  padding: 32px;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 14px;
}
.if-gate h3 { margin: 0 0 4px; font-size: 22px; font-weight: 700; color: var(--ink-900); }
.if-gate p { margin: 0 0 16px; font-size: 14px; color: var(--ink-700); }
.if-gate-form {
  display: flex;
  gap: 8px;
}
.if-gate-form input {
  flex: 1;
  font: inherit;
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--ink-300);
  border-radius: 8px;
  background: #fff;
}
.if-gate-form button {
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  background: var(--ink-900);
  color: #fff;
  border: 0;
  cursor: pointer;
}
.if-dl-btn {
  display: inline-block;
  background: var(--ink-900);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
}

/* ---------- Event single-post ---------- */
.if-event-card {
  padding: 32px;
  background: var(--ink-50);
  border: 1px solid var(--ink-200);
  border-radius: 14px;
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
}
.if-event-when {
  font-family: var(--font-condensed);
  font-size: 24px;
  font-weight: 700;
  color: var(--ink-900);
  line-height: 1.2;
}
.if-event-where { font-size: 14px; color: var(--ink-700); }
.if-event-cap { font-size: 12px; color: var(--brand-orange); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.if-rsvp {
  justify-self: start;
  background: var(--brand-orange);
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 8px;
}

/* ---------- Link single-post ---------- */
.if-link-list {
  list-style: none;
  margin: 0; padding: 0;
  display: grid;
  gap: 8px;
}
.if-link-list a {
  display: block;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--ink-200);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  transition: all 120ms ease;
}
.if-link-list a:hover { border-color: var(--ink-900); transform: translateX(2px); }
.if-link-src {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand-cyan);
  margin-bottom: 4px;
}
.if-link-title { font-size: 16px; font-weight: 600; color: var(--ink-900); margin-bottom: 4px; }
.if-link-note { font-size: 13.5px; color: var(--ink-700); line-height: 1.45; }

/* ---------- Carousel single-post ---------- */
.if-carousel {
  display: grid;
  gap: 16px;
}
.if-carousel-slide {
  background: linear-gradient(135deg, var(--ink-900), #2a2d31);
  color: #fff;
  border-radius: 14px;
  padding: 40px 44px;
  display: grid;
  gap: 12px;
  aspect-ratio: 4/3;
  align-content: center;
  position: relative;
}
.if-carousel-slide:nth-child(2n) { background: linear-gradient(135deg, var(--brand-orange), #D63D00); }
.if-carousel-slide:nth-child(3n) { background: linear-gradient(135deg, var(--brand-cyan), #0A7DA1); }
.if-carousel-n {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.6);
}
.if-carousel-slide h3 {
  font-family: var(--font-condensed);
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -0.02em;
  margin: 0;
}
.if-carousel-slide p { font-size: 17px; line-height: 1.5; margin: 0; opacity: 0.9; }

/* ---------- Related posts ---------- */
.if-related {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 0 32px;
}
.if-related h2 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin: 0 0 20px;
}
.if-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.if-related-grid > .ifc { grid-column: span 1; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .if-grid { grid-template-columns: repeat(2, 1fr); }
  .if-grid > .ifc,
  .if-grid > .ifc[data-fmt="essay"],
  .if-grid > .ifc[data-fmt="report"],
  .if-grid > .ifc[data-fmt="chart"],
  .if-grid > .ifc[data-fmt="video"],
  .if-grid > .ifc[data-fmt="quote"],
  .if-grid > .ifc[data-fmt="podcast"],
  .if-grid > .ifc[data-fmt="poll"],
  .if-grid > .ifc[data-fmt="carousel"],
  .if-grid > .ifc[data-fmt="event"] {
    grid-column: span 2; grid-row: auto;
  }
  .if-hub-head { grid-template-columns: 1fr; }
  .if-related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .if-grid { grid-template-columns: 1fr; }
  .if-grid > .ifc,
  .if-grid > .ifc[data-fmt] { grid-column: span 1; grid-row: auto; }
  .if-quote-body { padding: 36px 28px; }
  .if-event-row { grid-template-columns: 64px 1fr; }
}
