/* Blog — Figma v4 (RzeLtCm9OafORGhYPS7w1d):
     index  — frame 2062:881 "blog-page"        (1440 x 2164)
     post   — frame 21:456   "blog-post-desktop" (1440 x 3558)

   The navigation sits in flow above the hero in both frames, so the site nav
   band stays a normal 88px section. Article copy is our own; only the shell
   and the typographic scale come from the design. */

/* ===================== shared chrome ===================== */

.blog-nav-holder { background: var(--off-white); }

.blog-nav-holder .h3__nav { justify-content: space-between; }

.nav__logo { display: block; }
.nav__logo img { width: 172px; height: 41px; }
.nav__logo:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }

/* Author block, shared by the featured card, the post cards and the article
   header — only the sizes change. */
.blog-author { display: flex; align-items: center; gap: 12px; }

.blog-author img {
  width: 36px;
  height: 36px;
  border-radius: 100px;
  object-fit: cover;
}

.blog-author > span { display: flex; flex-direction: column; }

.blog-author b {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--obsidian);
  white-space: nowrap;
  transform: translateY(var(--figma-baseline-shift));
}

.blog-author span {
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  transform: translateY(var(--figma-baseline-shift-inter));
}

/* Post card (2062:926) — used by the index grid and by "Related insights". */
.blog-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--white);
  box-shadow: inset 0 0 0 2px var(--muted);
  text-decoration: none;
}

.blog-post__thumb { display: block; width: 100%; height: 200px; object-fit: cover; }
.blog-post__rule { display: block; width: 100%; height: 2px; background: var(--obsidian); }

/* Figma fixes this box at 140px, which is 2.8px short of two 28px lines — so
   a two-line title there loses its descenders. Kept as a floor instead: the
   cards in a row stretch together, so the grid rules still line up. */
.blog-post__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 0 auto;
  min-height: 140px;
  padding: 24px;
  overflow: hidden;
}

.blog-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 12px;
  box-shadow: inset 0 0 0 1px var(--obsidian);
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  color: var(--obsidian);
  white-space: nowrap;
}

.blog-tag > span { display: block; transform: translateY(var(--figma-baseline-shift-inter)); }

.blog-post__head h3 {
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--obsidian);
  /* The card's title box is a fixed 140px. Figma clips with an ellipsis; two
     lines is what fits, and clamping ends on a word rather than mid-glyph. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  transform: translateY(var(--figma-baseline-shift));
}

.blog-post__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px 24px;
}

.blog-post__foot .blog-author { gap: 8px; }
.blog-post__foot .blog-author img { width: 28px; height: 28px; }

.blog-post__foot .blog-author b,
.blog-post__foot .blog-author span {
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  transform: translateY(var(--figma-baseline-shift-inter));
}

.blog-post__foot .blog-author b { color: var(--obsidian); }

.blog-post__go {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1.5px var(--obsidian);
}

.blog-post__go img { width: 24px; height: 24px; }

/* Pagination (2067:616) */
.blog-pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px 0; }

.blog-pager span,
.blog-pager a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 22px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--muted);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--obsidian);
  text-decoration: none;
  transform: translateY(var(--figma-baseline-shift));
}

.blog-pager .is-current { background: var(--obsidian); box-shadow: none; color: var(--white); }

.blog-pager .blog-pager__arrow {
  background: var(--off-white);
  font-family: var(--font-inter);
  font-weight: 500;
  color: var(--muted);
  transform: translateY(var(--figma-baseline-shift-inter));
}

/* ===================== index (2062:881) ===================== */

.bi-hero {
  height: 258px;
  background: var(--off-white);
  box-shadow: inset 0 -2px 0 var(--obsidian);
  display: flex;
  align-items: center;
  gap: 32px;
  padding-left: 80px;
  overflow: hidden;
}

.bi-hero__intro { flex: 1 0 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.bi-hero h1 {
  margin: 0;
  font-size: 45px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--obsidian);
  transform: translateY(var(--figma-baseline-shift));
}

.bi-hero__sub {
  width: 680px;
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: #697386;
  transform: translateY(var(--figma-baseline-shift));
}

.bi-tabs { display: flex; flex-wrap: wrap; gap: 12px; }

.bi-tab {
  padding: 10px 20px;
  border-radius: 100px;
  box-shadow: inset 0 0 0 1px var(--muted);
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
}

.bi-tab > span { display: block; transform: translateY(var(--figma-baseline-shift-inter)); }

.bi-tab--on {
  background: var(--white);
  box-shadow: inset 0 0 0 1.5px var(--obsidian);
  font-weight: 700;
  line-height: normal;
  color: var(--obsidian);
}

/* The line art and its "Learn" node overlap, so they share one 365x258 box. */
.bi-hero__art { position: relative; flex: 0 0 365px; width: 365px; height: 258px; }
.bi-hero__art img { position: absolute; top: 0; left: 42px; width: 323px; height: 258px; }

.bi-hero__node {
  position: absolute;
  top: 81px;
  left: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 50px;
  padding: 12px 16px;
  border-radius: 100px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--muted);
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--obsidian);
  white-space: nowrap;
}

.bi-hero__node > span { transform: translateY(var(--figma-baseline-shift-mono)); }

.bi-featured { padding: 0 80px; box-shadow: inset 0 -2px 0 var(--obsidian); }

.bi-card {
  display: flex;
  height: 480px;
  overflow: hidden;
  background: var(--off-white);
  box-shadow: inset 2px 0 0 var(--obsidian), inset -2px 0 0 var(--obsidian),
              inset 0 -2px 0 var(--obsidian);
  text-decoration: none;
}

.bi-card__art { flex: 1 0 0; min-width: 0; height: 100%; object-fit: cover; }
.bi-card__rule { flex: 0 0 2px; height: 100%; background: var(--obsidian); }

.bi-card__body {
  flex: 0 0 640px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
}

.bi-card__top { display: flex; flex-direction: column; gap: 16px; }

.bi-card__tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 12px;
  background: var(--orange);
  font-family: var(--font-inter);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--white);
  white-space: nowrap;
}

.bi-card__tag > span { display: block; transform: translateY(var(--figma-baseline-shift-inter)); }

.bi-card__body h2 {
  margin: 0;
  font-size: 45px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--obsidian);
  transform: translateY(var(--figma-baseline-shift));
}

.bi-card__body p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  transform: translateY(var(--figma-baseline-shift));
}

.bi-card__foot { display: flex; align-items: center; justify-content: space-between; }

.bi-card__foot .btn { padding: 13px 22px; font-family: var(--font-inter); }
.bi-card__foot .btn > span { transform: translateY(var(--figma-baseline-shift-inter)); }

.bi-latest { box-shadow: inset 0 -2px 0 var(--obsidian); }

/* No gap: the cards' 2px borders meet and read as one rule. */
.bi-grid { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0 80px; }
.bi-grid .blog-post { align-self: stretch; }

/* ===================== post (21:456) ===================== */

/* Full-bleed lead image with the breadcrumbs sitting on it. */
.bp-hero { position: relative; height: 392px; overflow: hidden; background: var(--obsidian); }
.bp-hero > img { width: 100%; height: 100%; object-fit: cover; }

/* The design's lead image is a dark gradient, so its white breadcrumbs read.
   Ours vary per article, several of them light — this scrim keeps the text
   legible whatever the image is. */
.bp-hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(to bottom, rgba(17, 17, 17, 0.6), rgba(17, 17, 17, 0));
  pointer-events: none;
}

.bp-crumbs {
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 24px 80px;
  font-family: var(--font-inter);
  font-size: 13px;
  line-height: 1.4;
  color: var(--white);
}

.bp-crumbs a { color: var(--white); text-decoration: none; }
.bp-crumbs a:hover { text-decoration: underline; }
.bp-crumbs i { font-size: 12px; font-style: normal; line-height: 1.2; }
.bp-crumbs b { font-weight: 700; color: var(--off-white); }
.bp-crumbs > * { transform: translateY(var(--figma-baseline-shift-inter)); }

.bp-head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  padding: 40px 80px;
  background: var(--off-white);
  box-shadow: inset 0 -2px 0 var(--obsidian);
}

.bp-head__tag {
  padding: 6px 12px;
  border-radius: 100px;
  background: var(--orange);
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  color: var(--off-white);
  white-space: nowrap;
}

.bp-head__tag > span { display: block; transform: translateY(var(--figma-baseline-shift-inter)); }

.bp-head h1 {
  width: 100%;
  margin: 0;
  font-size: 56px;
  font-weight: 500;
  line-height: 1.05;
  color: var(--obsidian);
  transform: translateY(var(--figma-baseline-shift));
}

.bp-head__sub {
  width: 760px;
  margin: 8px 0 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  transform: translateY(var(--figma-baseline-shift));
}

.bp-head__meta { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.bp-share { display: flex; gap: 12px; }

.bp-share a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 100px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--obsidian);
}

.bp-share img { width: 18px; height: 18px; }
.bp-share a:nth-child(n + 2) img { width: 16px; height: 16px; }
.bp-share a:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }

/* Lede band (2063:1581): the paragraphs that run before the article's first
   heading, set larger and separated by a rule. */
.bp-lede {
  padding: 80px;
  background: var(--off-white);
  box-shadow: inset 0 -2px 0 var(--obsidian);
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.bp-lede p {
  margin: 0;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--muted);
  transform: translateY(var(--figma-baseline-shift));
}

.bp-lede p:first-child {
  font-family: var(--font-inter);
  color: var(--obsidian);
  transform: translateY(var(--figma-baseline-shift-inter));
}

/* ---- Article body (21:501) ---- */
.bp-body {
  padding: 40px 80px;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 32px;
}

.bp-body > * { width: 100%; margin: 0; }

.bp-body p,
.bp-body li {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--obsidian);
  transform: translateY(var(--figma-baseline-shift));
}

.bp-body h2,
.bp-body h3 {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--obsidian);
  transform: translateY(var(--figma-baseline-shift));
}

.bp-body a { color: var(--obsidian); text-decoration: underline; }

.bp-body blockquote {
  padding: 8px 0 8px 24px;
  border-left: 4px solid var(--orange);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.2;
  color: var(--obsidian);
}

.bp-body blockquote p { font: inherit; color: inherit; }
.bp-body blockquote p + p { margin-top: 12px; }

/* Lists carry their marker in the design's orange, at the body size, with the
   12px gap the Figma rows use — hence the manual marker rather than list-style. */
.bp-body ul,
.bp-body ol { display: flex; flex-direction: column; gap: 12px; padding: 0; list-style: none; }

.bp-body li { display: flex; gap: 12px; }
.bp-body li::before { flex: 0 0 auto; color: var(--orange); }
.bp-body ul li::before { content: "\25AA"; }
.bp-body ol { counter-reset: bp; }
.bp-body ol li { counter-increment: bp; }
.bp-body ol li::before { content: counter(bp) "."; }

.bp-body figure { display: flex; flex-direction: column; gap: 12px; }
.bp-body figure img { width: 100%; height: 240px; object-fit: cover; }

.bp-body figcaption {
  font-family: var(--font-inter);
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
  transform: translateY(var(--figma-baseline-shift-inter));
}

.bp-body hr { height: 1px; border: 0; background: var(--obsidian); }

/* ---- Blocks the old articles bring with them ---- */
.bp-body .article-step { display: flex; gap: 24px; }

.bp-body .article-step > b {
  flex: 0 0 60px;
  font-size: 45px;
  font-weight: 500;
  line-height: 1.1;
  color: var(--orange);
  transform: translateY(var(--figma-baseline-shift));
}

.bp-body .article-step > div { flex: 1; display: flex; flex-direction: column; gap: 12px; }

.bp-body .article-callout {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 24px;
  background: var(--lime);
  box-shadow: inset 0 0 0 2px var(--obsidian);
}

.bp-body .article-callout > b {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--obsidian);
  transform: translateY(var(--figma-baseline-shift));
}

.bp-body .touch {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px 24px;
  background: var(--white);
  box-shadow: inset 0 0 0 1px var(--obsidian);
}

.bp-body .touch header { display: flex; align-items: center; gap: 12px; }

.bp-body .touch .day,
.bp-body .touch .channel {
  padding: 4px 10px;
  border-radius: 12px;
  font-family: var(--font-inter);
  font-size: 12px;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
}

.bp-body .touch .day { background: var(--obsidian); color: var(--off-white); }
.bp-body .touch .channel { box-shadow: inset 0 0 0 1px var(--obsidian); color: var(--obsidian); }

.bp-body .touch h4 {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--obsidian);
  transform: translateY(var(--figma-baseline-shift));
}

/* ---- Related insights (2063:1639) ---- */
.bp-related { background: var(--off-white); box-shadow: inset 0 -2px 0 var(--obsidian); }

.bp-related__head {
  display: flex;
  align-items: center;
  padding: 40px 80px;
  box-shadow: inset 0 -2px 0 var(--obsidian);
}

.bp-related__head h2 {
  width: 1280px;
  margin: 0;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--obsidian);
  transform: translateY(var(--figma-baseline-shift));
}

.bp-related__row { display: flex; align-items: stretch; padding: 0 80px; }
.bp-related__row .blog-post { flex: 1 0 0; min-width: 0; }
