/* ============================================================
   Contactable — Blog Post template styles
   Loads on top of tokens.css + iip.css + blog.css (reuses .bl-news
   from blog.css and .final from iip.css verbatim — see CLAUDE.md
   "reuse whole components across pages").
   Figma: Blog Post • Desktop (node 10631-65856, file OyfxfaTqBNEbhTIApEtkXN)
   ============================================================ */

/* ===== Header (Figma nodes 13298-1044 desktop / 1209 tablet / 1203 mobile) ===== */
.bp-hero {
  background: var(--gradient-tertiary);
  padding: 112px 0;
}
.bp-hero__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.bp-hero__head { display: flex; flex-direction: column; align-items: center; gap: 24px; width: 100%; }
.bp-hero__eyebrow { color: #fff; font-size: clamp(15px, 1.56vw, 20px); } /* hero-eyebrow size, matches cap-hero__eyebrow */
.bp-hero__title {
  font-family: var(--font-brand);
  font-weight: 700;
  font-size: clamp(40px, 4.44vw, 64px); /* 64px @1440 Figma, fluid down */
  line-height: 1.1;
  color: #fff;
  text-align: center;
  max-width: 920px;
  margin: 0;
  text-wrap: wrap;
}
.bp-hero__meta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  margin: 0;
  color: #fff;
  font-family: var(--font-brand);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.5;
}
.bp-hero__dot { font-size: 18px; line-height: 1; }
.bp-share { display: flex; gap: 8px; }
.bp-share__btn {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.bp-share__btn .material-symbols-rounded { font-size: 18px; font-weight: 400; color: var(--deep-blue); }
.bp-share--lg .bp-share__btn { width: 40px; height: 40px; }
.bp-share--lg .bp-share__btn .material-symbols-rounded { font-size: 20px; }
.bp-hero__img { width: 100%; aspect-ratio: 1280 / 600; border-radius: 30px; overflow: hidden; box-shadow: var(--shadow-lg); }
.bp-hero__img img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ===== Article ===== */
.bp-article { background: #fff; padding: 112px 0; }
.bp-article__inner { display: flex; flex-direction: column; align-items: center; gap: 64px; }

.bp-body { width: 100%; max-width: 860px; }
.bp-body h2 {
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  line-height: 1.2;
  color: var(--deep-blue);
  margin: 0 0 16px;
  text-wrap: wrap; /* greedy fill, overriding the global balance reset on headings */
}
.bp-body h2:not(:first-child) { margin-top: 48px; }
.bp-body p { font-size: 16px; line-height: 1.5; color: var(--deep-blue); margin: 0 0 16px; }
.bp-body p:last-child { margin-bottom: 0; }
.bp-lead { font-weight: 700; font-size: clamp(20px, 2vw, 24px); line-height: 1.3; margin: 8px 0 32px !important; }

.bp-figure { margin: 40px 0; display: flex; flex-direction: column; gap: 16px; }
/* Default: show the whole image at its natural ratio — never crop. A definite height="…" attribute
   (required on every blog img) overrides CSS aspect-ratio, so a cover crop here silently took the
   image's pixel height and sliced the sides off any content that ran to the edges (infographics).
   height:auto lets the width/height attributes scale proportionally. */
.bp-figure img { width: 100%; height: auto; border-radius: 30px; display: block; }
/* Opt-in uniform banner crop for lifestyle photos where a consistent 768/400 frame is wanted.
   height:auto is required so the aspect-ratio actually engages (see note above). */
.bp-figure--crop img { aspect-ratio: 768 / 400; height: auto; object-fit: cover; }
.bp-figure figcaption { display: flex; align-items: stretch; gap: 8px; font-size: 14px; line-height: 1.5; color: var(--deep-blue); }
.bp-figure__rule { width: 2px; flex-shrink: 0; background: var(--deep-blue); }

.bp-quote { display: flex; gap: 20px; margin: 36px 0; }
.bp-quote__rule { width: 2px; flex-shrink: 0; background: var(--deep-blue); }
.bp-quote p { margin: 0; font-family: var(--font-brand); font-style: italic; font-size: 20px; line-height: 1.4; color: var(--deep-blue); }

.bp-footer { width: 100%; max-width: 860px; display: flex; flex-direction: column; align-items: center; gap: 48px; }
.bp-social { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bp-social p { margin: 0; font-size: 18px; font-weight: 600; color: var(--deep-blue); }
.bp-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.bp-tag { background: var(--soft-grey); color: var(--periwinkle); font-size: 14px; font-weight: 600; line-height: 1.5; padding: 4px 8px; border-radius: 9999px; white-space: nowrap; }
.bp-divider { width: 100%; height: 1px; background: rgba(15, 30, 109, 0.12); }
.bp-author { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.bp-author img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; display: block; }
.bp-author p { margin: 0; text-align: center; font-size: 14px; line-height: 1.5; color: var(--deep-blue); max-width: 192px; display: flex; flex-direction: column; }
.bp-author p span { font-weight: 600; }

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* --- Header --- */
@media (max-width: 900px) {
  .bp-hero { padding: 80px 0; }
  .bp-hero__inner { gap: 32px; }
  .bp-hero__img { aspect-ratio: 764 / 399; }
}
@media (max-width: 640px) {
  .bp-hero { padding: 56px 0; }
  .bp-hero__inner { gap: 20px; }
  .bp-hero__title { font-size: 24px; line-height: 1.4; }
  .bp-hero__img { aspect-ratio: 506 / 540; border-radius: 20px; }
}

/* --- Article --- */
@media (max-width: 900px) {
  .bp-article { padding: 64px 0; }
  .bp-article__inner { gap: 48px; }
}
@media (max-width: 640px) {
  .bp-body h2 { margin-top: 40px; }
  .bp-figure img, .bp-hero__img img { border-radius: 16px; }
  .bp-quote p { font-size: 18px; }
  .bp-tags { gap: 12px; }
}
