/* ==========================================================================
   Blog — posts (templates/blog/post.html) and their lists (templates/blog/archive.html).
   Our own CSS; values measured from the live site's blog (2026-11-20).
   ========================================================================== */

/* --- the post: inside our white content box (layout.css .content-box: 86%, max 1060px, 40px below the
   page header), text and promos on the left, benefits on the right. The text uses our prose style. ---- */
.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
.post-layout__aside { position: sticky; top: 24px; }
@media (max-width: 991px) {
  .post-layout { grid-template-columns: minmax(0, 1fr); }
  .post-layout__aside { position: static; }
}
.post-body { overflow-wrap: break-word; }
.post-body table { width: 100%; border-collapse: collapse; }
.post-body td, .post-body th { padding: 0.5em; border: 1px solid var(--c-input-border); }

/* --- benefits column ---------------------------------------------------------------------------- */
.benefits {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  margin: 0;
  padding: 24px;
  list-style: none;
  border-radius: var(--radius);
  background: var(--c-orange);
  color: var(--c-white);
}
.benefits__item { display: flex; gap: 16px; }
.benefits__item img { flex: 0 0 56px; width: 56px; height: 49px; object-fit: contain; }
.benefits__title { margin: 0 0 4px; font-size: var(--fs-regular); line-height: var(--lh-regular); font-weight: var(--fw-bold); }
.benefits__text { margin: 0; font-size: 16px; line-height: 24px; font-weight: var(--fw-medium); }

/* --- links to the neighbouring posts (templates/partials/post_nav.html) -------------------------- */
.post-navigation { width: var(--content-share); max-width: var(--content-width); margin: -20px auto 40px; padding: 0; }
.post-navigation .nav-links { display: flex; justify-content: space-between; gap: 20px; margin: 0; }
.post-navigation .nav-links > div { display: flex; justify-content: space-between; gap: 20px; width: 100%; }
.post-navigation a { color: var(--c-text); text-decoration: none; }
.post-navigation a:hover { color: var(--c-orange); }
.post-navigation .icon { width: 1em; height: 1em; vertical-align: -0.125em; fill: currentColor; }
.post-navigation .nav-next { margin-left: auto; text-align: right; }

/* --- shared bands on blog pages: the logo rail's spacing is set by the page (components/trusted-by.css) --- */
.page-post .trusted-by, .page-archive .trusted-by { padding: 40px 0 48px; }

/* --- lists of posts, inside our white content box ---------------------------------------------------- */
.archive-empty__title { margin: 0 0 12px; color: var(--c-heading); font-size: var(--fs-medium); line-height: var(--lh-medium); font-weight: var(--fw-extrabold); }
.archive-empty p { margin: 0 0 16px; }
.archive-empty .search-form { display: flex; max-width: 420px; border: 1px solid var(--c-input-border); border-radius: var(--radius); }
.archive-empty .search-form__input { flex: 1; min-width: 0; padding: 10px 14px; border: 0; border-radius: var(--radius); font: inherit; }
.archive-empty .search-form__submit { padding: 0 14px; border: 0; background: none; color: var(--c-orange); cursor: pointer; }

.post-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.post-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  height: 360px;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--c-blue-dark) center / cover no-repeat;
  color: var(--c-white);
}
.post-card::before {  /* live's shade, so the white text reads on any image */
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000, transparent);
}
.post-card__inner { position: relative; padding: 20px; }
.post-card p { margin: 0; }
.post-card__label {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid var(--c-white);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
}
.post-card__title { margin: 10px 0; font-size: 22px; line-height: 28px; font-weight: var(--fw-extrabold); }
.post-card__title a { color: inherit; text-decoration: none; }
.post-card__title a::after { content: ""; position: absolute; inset: 0; }  /* the whole card opens the post */
.post-card__date { padding-bottom: 4px; font-weight: var(--fw-semibold); text-transform: uppercase; }

