/* DUTCH DESIGN AGENCY — insight.css
   Insight article template (insights/*) + insights index, cloned from the
   live Webflow site. Article = offwhite header (title + subtitle) above a
   black reading panel: a sticky left rail (reading-progress bar + Tags/Date)
   and a right body column (lead, prose, full-width figures). Related cards +
   "Start your project" band (via footer.js) close the page.
   Loaded after base.css / nav.css / footer.css. */

/* ---- Header (offwhite) --------------------------------------------------- */
.insight-main { }
.insight-head {
  padding: calc(var(--nav-h) + var(--s-md) + var(--s-sm)) var(--gutter) var(--s-md);
}
.insight-title {
  font-size: var(--fs-2xl); font-weight: 300; line-height: 1.05;
  max-width: 18ch;
}
.insight-subtitle {
  font-size: var(--fs-sm); line-height: 1.4; color: var(--black);
  max-width: 80ch; padding-top: var(--s-3xs);
}
@media (max-width: 767px) {
  .insight-head { padding-top: calc(var(--nav-h) + var(--s-sm)); }
  .insight-title { font-size: var(--fs-lg); max-width: none; }
}

/* ---- Black reading panel ------------------------------------------------- */
.insight-panel {
  background: var(--black); color: var(--white);
  margin: 0;
  padding: var(--s-lg) var(--gutter) var(--s-3xl);
}
.insight-panel-inner {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: var(--s-sm);
}

/* Left rail: reading progress + meta, sticky through the article */
.insight-rail {
  flex: none; width: 17.7rem;
  position: sticky; top: calc(var(--nav-h) + 1.5rem);
  display: flex; flex-direction: column; gap: var(--s-sm);
}
.insight-progress {
  position: relative; width: 100%; height: 1px; background: var(--dgrey);
  overflow: hidden;
}
.insight-progress-fill {
  position: absolute; inset: 0 auto 0 0; width: 0; height: 100%;
  background: var(--white);
}
.insight-meta { display: flex; flex-direction: column; gap: var(--s-xs); }
.insight-meta-item { display: flex; flex-direction: column; gap: 0.35rem; }
.insight-meta-label {
  font-size: var(--fs-2xs); line-height: 1.2; text-transform: uppercase;
  color: var(--grey);
}
.insight-meta-value { font-size: var(--fs-xs); line-height: 1.5; color: var(--white); }
.insight-meta-value a {
  color: var(--white); text-decoration: underline;
  text-underline-offset: 0.15em; text-decoration-thickness: 1px;
}
.insight-meta-value a:hover { color: var(--grey); }
/* Optional per-article CTA pill in the rail (e.g. "Plan AI Workshop") */
.insight-rail-cta { align-self: flex-start; margin-top: var(--s-2xs); }

/* Right body column */
.insight-body {
  flex: 0 1 40.5rem; min-width: 0;
  font-size: var(--fs-xs); line-height: 1.6;
}
.insight-body > * + * { margin-top: 1rem; }
.insight-lead {
  font-size: var(--fs-md); line-height: 1.3; font-weight: 300;
  margin-bottom: var(--s-sm);
}
.insight-body h2 {   /* live section heading (h3, gl-fs-md) */
  font-size: var(--fs-md); font-weight: 300; line-height: 1.15;
  margin-top: var(--s-md); margin-bottom: var(--s-3xs);
}
.insight-body h3 {   /* live sub-heading (h4, gl-fs-xs medium) */
  font-size: var(--fs-xs); font-weight: 500; line-height: 1.5;
  margin-top: var(--s-sm); margin-bottom: 0.25rem;
}
.insight-body h2 + p, .insight-body h3 + p { margin-top: 0; }
.insight-body p { font-size: var(--fs-xs); line-height: 1.6; }
.insight-body a { text-decoration: underline; text-underline-offset: 0.2em; }
.insight-body a:hover { color: var(--grey); }
.insight-body .insight-source {
  font-size: var(--fs-2xs); line-height: 1.4; color: var(--grey);
  margin-top: 0.5rem;
}
.insight-body .insight-source + * { margin-top: var(--s-sm); }
.insight-body em, .insight-body i {
  font-family: var(--ff-serif); font-style: italic;
}
.insight-figure {
  margin: var(--s-md) 0; border-radius: var(--radius); overflow: hidden;
  background: var(--dgrey);
}
.insight-figure img { width: 100%; height: auto; display: block; }

@media (max-width: 900px) {
  .insight-panel { padding: var(--s-md) var(--gutter) var(--s-xl); }
  .insight-panel-inner { flex-direction: column; gap: var(--s-md); }
  .insight-rail {
    position: static; width: 100%; flex-direction: row;
    flex-wrap: wrap; gap: var(--s-sm);
  }
  .insight-progress { display: none; }
  .insight-meta { flex-direction: row; gap: var(--s-md); }
  .insight-body { flex: 1 1 auto; width: 100%; }
}

/* ---- Related articles (offwhite) ---------------------------------------- */
.insight-related { padding: var(--s-xl) var(--gutter) var(--s-sm); }
.insight-related .rel-eyebrow {
  font-size: var(--fs-xs); text-transform: uppercase; margin-bottom: 1.75rem;
}
.ins-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.75rem; }
.ins-card { display: block; color: var(--black); }
.ins-media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #e9e6df; }
.ins-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease-out); }
.ins-card:hover .ins-media img { transform: scale(1.04); }
.ins-cat { font-size: var(--fs-xs); margin: 1.4rem 0 0.4rem; }
.ins-title { font-size: 1.5rem; font-weight: 300; line-height: 1.35; }
@media (max-width: 767px) { .ins-grid { grid-template-columns: 1fr; } }

/* ==========================================================================
   Insights index (insights.html) — giant INSIGHTS wordmark (JS-fitted to full
   width), pillar row, 3-up card grid.
   ========================================================================== */
.insights-index-main { padding-top: calc(var(--nav-h) + var(--s-md)); }
.insights-index-title {
  padding: 0 var(--gutter);
  line-height: 0.9; white-space: nowrap; overflow: hidden;
}
.insights-index-title span {
  display: inline-block; font-weight: 300; text-transform: uppercase;
  line-height: 0.9; letter-spacing: -0.01em;
}
.insights-filter {
  display: flex; justify-content: space-between;
  margin: var(--s-sm) var(--gutter) 0;
  padding: 0.9375rem 0;
  border-top: var(--rule-dark); border-bottom: var(--rule-dark);
  font-size: var(--fs-xs); text-transform: uppercase;
}
.insights-index-grid-wrap { padding: var(--s-md) var(--gutter) var(--s-sm); }
.ins-grid--index { gap: 1.75rem 1.75rem; row-gap: var(--s-md); }
@media (max-width: 767px) {
  .insights-filter { font-size: var(--fs-2xs); }
}
