/* ==========================================================================
   Blog listing (blog.html) and blog post (blog-cloud-data-migration.html)
   Figma "Final" page: "Web Agency Design-blogs" and "Web Agency Design-blog detail".
   Header, footer, banner, colours, fonts and container width come from style.css.
   Colours are the site's own: where the blog frames used one-off shades they are
   mapped to the nearest existing colour (body text, soft background, card grey,
   the career-badge yellow, the form-error red, the dark text grey).
   ========================================================================== */

/* ---------- Shared small pieces ---------- */
.bl-eyebrow {
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .55px;
  text-transform: uppercase;
  color: var(--color-primary);
}
.bl-round-btn {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  transition: background-color .2s ease, transform .2s ease;
}
.bl-round-btn svg { width: 12px; height: 12px; }
.bl-round-btn:hover { background: #005EB4; }
.bl-round-btn:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 3px; }

/* ==========================================================================
   Blog listing
   ========================================================================== */

/* ---------- Banner: centred title, search and topic pills ---------- */
.bl-hero {
  --banner-h: 968px;
  --banner-pb: 66px;
  text-align: center;
}
/* dark navy with a blue-violet glow low and right of centre, as in the design,
   drawn from the site's own blues (#0B6FD8, #0B2E6E, #4842A8) on the hero navy */
.bl-hero::before {
  background:
    radial-gradient(ellipse 42% 78% at 68% 100%, rgba(11, 111, 216, .62) 0%, rgba(72, 66, 168, .5) 38%, rgba(6, 7, 27, 0) 100%),
    radial-gradient(ellipse 36% 60% at 86% 92%, rgba(11, 111, 216, .45) 0%, rgba(6, 7, 27, 0) 100%),
    radial-gradient(ellipse 50% 55% at 52% 18%, rgba(11, 46, 110, .75) 0%, rgba(6, 7, 27, 0) 100%),
    var(--color-hero-bg);
}
.bl-hero__title {
  width: 830px;
  max-width: 100%;
  margin: 0 auto;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 62px;
  line-height: 78px;
  text-transform: capitalize;
  color: var(--color-white);
}
.bl-hero__text {
  width: 773px;
  max-width: 100%;
  margin: 38px auto 0;
  font-family: var(--font-dm-sans);
  font-size: 18px;
  line-height: 30px;
  color: rgba(255, 255, 255, .9);
}

.bl-search { width: 768px; max-width: 100%; margin: 48px auto 0; }
.bl-search__box {
  display: flex;
  align-items: center;
  height: 60px;
  padding: 8px;
  border-radius: 9999px;
  background: var(--color-white);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, .1), 0 2px 4px -2px rgba(0, 0, 0, .1);
}
.bl-search__icon { flex: 0 0 auto; width: 17px; height: 17px; margin-left: 16px; color: var(--color-body); }
.bl-search__input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 12px;
  border: 0;
  background: none;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  line-height: 18px;
  color: var(--color-heading);
}
.bl-search__input::placeholder { color: var(--color-body); opacity: 1; }
.bl-search__input:focus { outline: none; }
.bl-search__box:focus-within { box-shadow: 0 0 0 2px var(--color-primary), 0 4px 6px -1px rgba(0, 0, 0, .1); }
.bl-search__go { width: 44px; height: 44px; }
.bl-search__go svg { width: 14px; height: 14px; }

.bl-topics { display: flex; align-items: center; gap: 8px; margin-top: 32px; }
.bl-topics__list {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 0;
  margin: 0;
  padding: 0 0 8px;
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  list-style: none;
}
.bl-topics__list::-webkit-scrollbar { display: none; }
.bl-topic {
  flex: 0 0 auto;
  height: 34px;
  padding: 0 20px;
  border: 0;
  border-radius: 9999px;
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 14px;
  line-height: 18px;
  color: var(--color-heading);
  white-space: nowrap;
  transition: background-color .2s ease, color .2s ease;
}
.bl-topic:hover { color: var(--color-primary); }
.bl-topic[aria-pressed="true"] { background: var(--color-primary); color: var(--color-white); }
.bl-topic:focus-visible { outline: 2px solid var(--color-white); outline-offset: 2px; }
.bl-topics__next {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  margin-bottom: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  color: var(--color-heading);
}
.bl-topics__next svg { width: 14px; height: 14px; }

/* ---------- Post grid ---------- */
.bl-posts { padding: var(--section-space) 0; background: var(--color-soft-bg); }
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px 43px;
  width: var(--container-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.bl-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  padding: 20px;
  border-radius: 12px;
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  transition: transform .3s ease, box-shadow .3s ease;
}
.bl-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(16, 24, 40, .10); }
.bl-card__media { padding: 16px; border-radius: 8px; background: #F4F6FD; }
.bl-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 423 / 176;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, .05);
}
.bl-card__body { display: flex; flex-direction: column; flex: 1; padding-top: 8px; }
.bl-card__title {
  margin-top: 8px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 18px;
  line-height: 26px;
  letter-spacing: -.09px;
  color: var(--color-heading);
}
.bl-card__title a { color: inherit; }
.bl-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: 12px; }   /* whole card is the link */
.bl-card { position: relative; }
.bl-card__title a:focus-visible { outline: none; }
.bl-card:focus-within { outline: 2px solid var(--color-primary); outline-offset: 3px; }
.bl-card__text {
  margin-top: 8px;
  font-family: var(--font-dm-sans);
  font-size: 14px;
  line-height: 22px;
  color: var(--color-body);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bl-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: auto; padding-top: 42px; }   /* 18px + 24px above the author row, as in the design */
.bl-author { display: flex; align-items: center; gap: 10px; min-width: 0; }
.bl-author__initials {
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: #E5E7EB;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .66px;
  color: var(--color-body);
}
.bl-author__name { display: block; font-family: var(--font-dm-sans); font-weight: 600; font-size: 12px; line-height: 16px; color: var(--color-heading); }
.bl-author__date { display: block; font-family: var(--font-dm-sans); font-size: 12px; line-height: 18px; color: var(--color-body); }
.bl-card .bl-round-btn { position: relative; z-index: 1; }   /* stays clickable above the card link */

.bl-empty {
  display: none;
  width: var(--container-width);
  max-width: 100%;
  margin: 0 auto;
  padding: 48px 24px;
  border-radius: 12px;
  background: var(--color-white);
  text-align: center;
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-body);
}
.bl-empty.is-shown { display: block; }

/* ---------- Pagination ---------- */
.bl-pages { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 72px; }
.bl-pages__list { display: flex; align-items: center; gap: 6px; margin: 0 8px; padding: 0; list-style: none; }
.bl-page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 40px;
  height: 40px;
  padding: 0 16px;
  border-radius: 8px;
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  color: var(--color-heading);
  transition: color .2s ease, background-color .2s ease;
}
.bl-pages__list .bl-page { padding: 0; }
.bl-page svg { width: 12px; height: 12px; }
.bl-page:hover { color: var(--color-primary); }
.bl-page[aria-current="page"] { background: var(--color-primary); color: var(--color-white); }
.bl-page[aria-disabled="true"] { color: var(--color-muted); pointer-events: none; }
.bl-pages__gap { width: 32px; text-align: center; font-family: var(--font-poppins); font-weight: 600; font-size: 13px; color: var(--color-body); }

/* ==========================================================================
   Blog post
   ========================================================================== */
.bp-page { padding-top: 112px; }                                   /* room for the header */
.bp-page { background: var(--color-white); }
.bp-head-bar { position: absolute; top: 0; left: 0; right: 0; height: 112px; background: var(--color-hero-bg); }

.bp-wrap { width: var(--container-width); max-width: 100%; margin: 0 auto; }

/* ---------- Title block ---------- */
.bp-intro { padding-top: 52px; }
.bp-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bp-crumbs li { font-family: var(--font-poppins); font-weight: 600; font-size: 11px; line-height: 16px; letter-spacing: .66px; text-transform: uppercase; color: var(--color-body); }
.bp-crumbs li + li::before { content: "/"; margin-right: 8px; color: #D0D5DD; }
.bp-crumbs a { color: var(--color-body); }
.bp-crumbs a:hover { color: var(--color-primary); }
.bp-crumbs [aria-current] { color: var(--color-primary); letter-spacing: .55px; }

.bp-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 28px;
  padding: 4px 12px;
  border-radius: 9999px;
  background: #E3E8F6;
  font-family: var(--font-dm-sans);
  font-weight: 500;
  font-size: 12px;
  line-height: 16px;
  color: var(--color-heading);
}
.bp-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--color-primary); }

.bp-title {
  width: 1192px;
  max-width: 100%;
  margin-top: 24px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 44px;
  line-height: 52px;
  color: var(--color-heading);
}

.bp-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  width: 1519px;
  max-width: 100%;
  margin-top: 32px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--color-soft-bg);
  font-family: var(--font-dm-sans);
  font-size: 12px;
  line-height: 18px;
  color: var(--color-heading);
}
.bp-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.bp-meta__item svg { width: 13px; height: 13px; color: var(--color-primary); }
.bp-meta__item--muted { color: var(--color-body); }
.bp-meta__item--muted svg { color: var(--color-muted); }
.bp-meta__dot { width: 4px; height: 4px; border-radius: 50%; background: #D0D5DD; }

/* ---------- Lead image + summary ---------- */
.bp-figure { position: relative; margin: 48px 0 0; overflow: hidden; border-radius: 16px; background: #E5E7EB; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.bp-figure img { display: block; width: 100%; height: 384px; object-fit: cover; }
.bp-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(31, 41, 55, .6) 0%, rgba(31, 41, 55, 0) 50%); pointer-events: none; }
.bp-figure__tag {
  position: absolute;
  z-index: 1;
  left: 40px;
  bottom: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .9);
  font-family: var(--font-dm-sans);
  font-weight: 700;
  font-size: 11px;
  line-height: 16px;
  letter-spacing: .66px;
  text-transform: uppercase;
  color: var(--color-heading);
}
.bp-figure__tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #D2405F; }

.bp-lead {
  margin-top: 32px;
  padding: 32px;
  border-radius: 12px;
  background: var(--color-soft-bg);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  font-family: var(--font-dm-sans);
  font-size: 16px;
  line-height: 26px;
  color: var(--color-body);
}
.bp-lead a { font-weight: 600; color: var(--color-primary); }

/* ---------- Article + side rail ---------- */
.bp-body { padding: 46px 0 var(--section-space); }
.bp-body__inner { display: grid; grid-template-columns: 982px 538px; justify-content: space-between; align-items: start; }
.bp-article { min-width: 0; }
.bp-section + .bp-section { margin-top: 56px; }
.bp-section { scroll-margin-top: 40px; }
.bp-h2 {
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 32px;
  line-height: 40px;
  letter-spacing: -.8px;
  color: var(--color-heading);
}
.bp-h3 {
  margin-top: 28px;
  font-family: var(--font-poppins);
  font-weight: 600;
  font-size: 22px;
  line-height: 28px;
  letter-spacing: -.22px;
  color: var(--color-heading);
}
.bp-text { max-width: 967px; margin-top: 16px; font-family: var(--font-dm-sans); font-size: 16px; line-height: 26px; color: var(--color-body); }
.bp-h2 { max-width: 760px; }   /* headings wrap at the same width as in the design */
.bp-text--sm { margin-top: 12px; font-size: 14px; line-height: 22px; }
.bp-text a { color: var(--color-primary); }
.bp-text strong { font-weight: 700; color: var(--color-heading); }
.bp-text a strong { color: inherit; }
.bp-more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; color: var(--color-primary); }
.bp-more svg { width: 11px; height: 11px; }

/* "Typical services offered" box */
.bp-offer { margin-top: 16px; padding: 24px 20px 20px; border-radius: 8px; background: var(--color-soft-bg); }
.bp-offer__list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin: 12px 0 0; padding: 0; list-style: none; }
.bp-offer__list li { max-width: 345px; position: relative; padding-left: 25px; font-family: var(--font-dm-sans); font-size: 14px; line-height: 22px; color: var(--color-heading); }
.bp-offer__list svg { position: absolute; left: 0; top: 3px; width: 17px; height: 17px; color: var(--color-primary); }

/* numbered phases */
.bp-steps { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.bp-step { display: flex; gap: 16px; padding: 20px; border-radius: 12px; background: var(--color-soft-bg); counter-increment: step; }
.bp-step::before {
  content: counter(step);
  display: grid;
  place-items: center;
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-primary);
  font-family: var(--font-poppins);
  font-weight: 700;
  font-size: 13px;
  line-height: 18px;
  color: var(--color-white);
}
.bp-step__title { font-family: var(--font-poppins); font-weight: 600; font-size: 18px; line-height: 26px; color: var(--color-heading); }
.bp-step__text { margin-top: 2px; font-family: var(--font-dm-sans); font-size: 14px; line-height: 22px; color: var(--color-body); }

/* challenges table */
.bp-table-wrap { margin-top: 24px; overflow-x: auto; border-radius: 12px; background: var(--color-white); box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.bp-table { width: 100%; border-collapse: collapse; font-family: var(--font-dm-sans); font-size: 14px; line-height: 22px; }
.bp-table th {
  padding: 14px 16px;
  background: #E5E7EB;
  font-weight: 700;
  font-size: 13px;
  line-height: 18px;
  letter-spacing: .65px;
  text-align: left;
  text-transform: uppercase;
  color: var(--color-heading);
}
.bp-table td { padding: 16px; vertical-align: middle; color: var(--color-body); }
.bp-table tbody tr:nth-child(even) { background: #F4F6FD; }
.bp-table td:first-child { width: 37.5%; font-weight: 600; color: var(--color-heading); }
.bp-table td:nth-child(2) { width: 21.8%; font-weight: 500; color: #D2405F; }

/* author + share */
.bp-author { display: flex; gap: 20px; margin-top: 40px; padding: 32px; border-radius: 12px; background: #F4F6FD; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.bp-author__photo { flex: 0 0 64px; width: 64px; height: 64px; align-self: center; border-radius: 50%; object-fit: cover; background: #E5E7EB; }
.bp-author__name { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-poppins); font-weight: 700; font-size: 18px; line-height: 26px; letter-spacing: -.09px; color: var(--color-heading); }
.bp-author__name a { color: var(--color-primary); }
.bp-author__name svg { width: 14px; height: 15px; }
.bp-author__bio { max-width: 620px; margin-top: 6px; font-family: var(--font-dm-sans); font-size: 14px; line-height: 22px; color: var(--color-body); }
.bp-author__team { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; font-family: var(--font-dm-sans); font-size: 12px; line-height: 18px; color: var(--color-body); }
.bp-author__team strong { margin-right: 2px; font-weight: 600; color: var(--color-heading); }
.bp-author__badge { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #E3E8F6; font-weight: 700; font-size: 11px; color: var(--color-heading); }

.bp-share { display: flex; align-items: center; gap: 12px; margin-top: 40px; padding: 20px; border-radius: 12px; background: var(--color-soft-bg); }
.bp-share__label { margin-right: 2px; font-family: var(--font-dm-sans); font-weight: 700; font-size: 11px; line-height: 16px; letter-spacing: .55px; text-transform: uppercase; color: var(--color-heading); }
.bp-share a {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-white);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05);
  color: var(--color-heading);
  transition: color .2s ease;
}
.bp-share a:hover { color: var(--color-primary); }
.bp-share svg { width: 14px; height: 14px; }

/* side rail */
.bp-rail { position: sticky; top: 40px; display: grid; gap: 24px; }
.bp-card { position: relative; overflow: hidden; padding: 24px; border-radius: 16px; }
.bp-card__icon { width: 30px; height: 27px; color: #F5B82E; }
.bp-card__title { margin-top: 12px; font-family: var(--font-poppins); font-weight: 600; font-size: 22px; line-height: 28px; letter-spacing: -.22px; }
.bp-card__text { margin-top: 8px; font-family: var(--font-dm-sans); font-size: 14px; line-height: 22px; }

.bp-card--promo { background: var(--color-primary); color: var(--color-white); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .1), 0 4px 6px -4px rgba(0, 0, 0, .1); }
.bp-card--promo::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 144px; height: 144px; border-radius: 50%; background: #2E8BFF; opacity: .4; filter: blur(24px); pointer-events: none; }
.bp-card--promo .bp-card__text { color: rgba(255, 255, 255, .85); }
.bp-pill-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 20px;
  padding: 10px 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--color-white);
  font-family: var(--font-dm-sans);
  font-weight: 600;
  font-size: 13px;
  line-height: 18px;
  color: var(--color-primary);
  transition: transform .2s ease;
}
.bp-pill-btn svg { width: 12px; height: 12px; }
.bp-pill-btn:hover { transform: translateX(2px); }

.bp-card--toc { background: var(--color-white); box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 0 0 1px #EEF0F4; }
.bp-toc__head { display: flex; align-items: center; gap: 8px; font-family: var(--font-poppins); font-weight: 600; font-size: 18px; line-height: 26px; letter-spacing: -.09px; color: var(--color-heading); }
.bp-toc__head svg { width: 15px; height: 14px; color: var(--color-primary); }
.bp-toc__list { display: grid; gap: 8px; margin: 16px 0 0; padding: 0; list-style: none; counter-reset: toc; }
.bp-toc__list li { counter-increment: toc; }
.bp-toc__list a { display: block; padding: 4px 0; font-family: var(--font-dm-sans); font-size: 12px; line-height: 18px; color: var(--color-body); transition: color .2s ease; }
.bp-toc__list a::before { content: counter(toc) ". "; }
.bp-toc__list a:hover, .bp-toc__list a.is-active { color: var(--color-primary); }

.bp-card--news { background: #1F2937; color: var(--color-white); }
.bp-card--news .bp-card__icon { width: 24px; height: 21px; }
.bp-card--news .bp-card__title { margin-top: 8px; font-weight: 700; }
.bp-card--news .bp-card__text { margin-top: 4px; font-size: 12px; line-height: 18px; color: rgba(255, 255, 255, .8); }
.bp-news__form { display: grid; gap: 12px; margin-top: 16px; }
.bp-news__input {
  height: 42px;
  padding: 0 16px;
  border: 0;
  border-radius: 9999px;
  background: rgba(255, 255, 255, .12);
  font-family: var(--font-dm-sans);
  font-size: 14px;
  line-height: 18px;
  color: var(--color-white);
}
.bp-news__input::placeholder { color: rgba(255, 255, 255, .5); opacity: 1; }
.bp-news__input:focus { outline: 2px solid #F5B82E; outline-offset: 0; }
.bp-news__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 38px;
  border: 0;
  border-radius: 9999px;
  background: #F5B82E;
  font-family: var(--font-dm-sans);
  font-weight: 700;
  font-size: 13px;
  line-height: 18px;
  color: var(--color-heading);
  transition: filter .2s ease;
}
.bp-news__btn svg { width: 9px; height: 9px; }
.bp-news__btn:hover { filter: brightness(1.05); }

/* ==========================================================================
   Below 1200px: one column, the site's spacing system
   (tablets 16px page edge / 64px sections, phones 20px / 72px, 24px inside cards)
   ========================================================================== */
@media (max-width: 1199.98px) {
  /* banner: left-aligned like every other banner on phones and tablets */
  .bl-hero { text-align: left; }
  .bl-hero__title { width: auto; max-width: 720px; margin: 0; font-size: 40px; line-height: 48px; }
  .bl-hero__text { width: auto; max-width: 720px; margin: 20px 0 0; font-size: 17px; line-height: 28px; }
  .bl-search { width: auto; max-width: 768px; margin: 32px 0 0; }
  .bl-topics { margin-top: 24px; max-width: 768px; }
  .bl-topics__next { display: none; }

  .bl-posts { padding: 64px 16px; }
  .bl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; width: auto; }
  .bl-card { padding: 24px; }
  .bl-pages { margin-top: 48px; }

  .bp-page { padding-top: 112px; }
  .bp-wrap { width: auto; padding: 0 16px; }
  .bp-intro { padding-top: 40px; }
  .bp-title { font-size: 40px; line-height: 48px; }
  .bp-figure { margin-top: 40px; }
  .bp-figure img { height: auto; aspect-ratio: 1567 / 384; min-height: 220px; }
  .bp-figure__tag { left: 24px; bottom: 24px; }
  .bp-lead { padding: 24px; }

  .bp-body { padding: 48px 0 64px; }
  /* article first, then the side cards; the contents list moves above the article */
  .bp-body__inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "toc" "article" "promo" "news"; gap: 40px; }
  .bp-rail { display: contents; }
  .bp-article { grid-area: article; }
  .bp-card--toc { grid-area: toc; }
  .bp-card--promo { grid-area: promo; }
  .bp-card--news { grid-area: news; }
  .bp-h2 { font-size: 32px; line-height: 40px; letter-spacing: -.5px; }
  .bp-table { min-width: 640px; }
}

@media (max-width: 767.98px) {
  .bl-hero__title { font-size: 35px; line-height: 44px; }
  .bl-hero__text { margin-top: 16px; font-size: 16px; line-height: 29px; }
  .bl-search__box { height: 56px; padding: 6px; }
  .bl-search__icon { margin-left: 12px; }
  .bl-search__go { width: 44px; height: 44px; }

  .bl-posts { padding: 72px 20px; }
  .bl-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .bl-pages { flex-wrap: wrap; gap: 8px; margin-top: 40px; }
  .bl-pages__list { margin: 0; }
  .bl-page--edge span { display: none; }   /* arrows only; the links keep "Previous page" / "Next page" as their names */
  .bl-page--edge { padding: 0; width: 40px; }

  .bp-page { padding-top: 78px; }
  .bp-head-bar { height: 78px; }
  .bp-wrap { padding: 0 20px; }
  .bp-intro { padding-top: 32px; }
  .bp-pill { margin-top: 24px; }
  .bp-title { margin-top: 20px; font-size: 30px; line-height: 39px; }
  .bp-meta { flex-direction: column; align-items: flex-start; gap: 8px; margin-top: 24px; padding: 16px 20px; }
  .bp-meta__dot { display: none; }
  .bp-figure { margin-top: 32px; border-radius: 12px; }
  .bp-figure img { aspect-ratio: 4 / 3; min-height: 0; }
  .bp-figure__tag { left: 16px; right: 16px; bottom: 16px; justify-content: flex-start; width: max-content; max-width: calc(100% - 32px); }
  .bp-lead { margin-top: 24px; }

  .bp-body { padding: 40px 0 72px; }
  .bp-body__inner { gap: 32px; }
  .bp-section + .bp-section { margin-top: 48px; }
  .bp-h2 { font-size: 30px; line-height: 39px; letter-spacing: -.3px; }
  .bp-h3 { margin-top: 24px; font-size: 20px; line-height: 28px; }
  .bp-offer__list { grid-template-columns: minmax(0, 1fr); }
  .bp-step { padding: 20px 24px 20px 20px; }
  .bp-author { flex-direction: column; gap: 16px; padding: 24px; }
  .bp-author__photo { align-self: flex-start; }
  .bp-card { padding: 24px; }
}

/* ---------- The same cards inside other pages' blog sections (homepage, Staff Augmentation) ---------- */
/* Lined up with the section heading, with the usual gap below the heading row */
.blog-section .blog-feed { width: var(--container-width); max-width: 100%; margin: var(--head-gap, 56px) 0 0; }
@media (min-width: 768px) and (max-width: 1199.98px) {
  .blog-section .blog-feed { width: auto; margin: 40px 16px 0; }   /* tablets: same 16px margins as the heading */
}
@media (max-width: 767.98px) {
  .blog-section .blog-feed { width: auto; margin: 35px 20px 0; }   /* same 20px side margins as the rest of the phone layout */
}
