/*=============================================
=            Blog: articles and index         =
=============================================*/
:root {
  --bp-ink: #1d1838;
  --bp-body: #46415c;
  --bp-muted: #6b6780;
  --bp-brand: #805dcd;
  --bp-brand-strong: #6340b5;
  --bp-soft: #eee7ff;
  --bp-line: #e5e0f1;
  --bp-tint: #f7f5fc;
  --bp-night: #140d2e;
  --bp-night-2: #2d1a66;
  --bp-header: 90px;
}

/* Reading progress */
.bp-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10000;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #b79cf2, var(--bp-brand-strong));
  transform: scaleX(0);
  transform-origin: left;
}

/* Hero */
.bp-hero {
  padding: 150px 0 150px;
  background:
    radial-gradient(circle at 85% 15%, rgba(128, 93, 205, 0.5), transparent 45%),
    linear-gradient(135deg, var(--bp-night), var(--bp-night-2));
  color: rgba(255, 255, 255, 0.82);
}

.bp-hero__inner {
  max-width: 860px;
}

.bp-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
}

.bp-crumbs a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bp-crumbs a:hover {
  color: #fff;
}

.bp-cat {
  display: inline-block;
  margin-bottom: 18px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.12);
  color: #e0d4ff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.bp-hero h1 {
  margin: 0 0 18px;
  color: #fff;
  font-size: clamp(32px, 4.4vw, 54px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.bp-dek {
  margin: 0 0 30px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 19px;
  line-height: 1.6;
}

.bp-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  font-size: 15px;
}

.bp-meta img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.bp-meta strong {
  color: #fff;
  font-weight: 600;
}

.bp-meta__dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
}

/* Cover */
.bp-cover {
  margin-top: -100px;
}

/* Covers show in full, never trimmed; the width cap keeps taller covers in proportion */
.bp-cover img {
  display: block;
  width: 100%;
  max-width: 1000px;
  height: auto;
  margin: 0 auto;
  border-radius: 20px;
  box-shadow: 0 30px 60px rgba(20, 13, 46, 0.25);
}

/* Layout */
.bp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 72px;
  align-items: start;
  padding-top: 64px;
  padding-bottom: 96px;
}

.bp-aside {
  position: sticky;
  top: calc(var(--bp-header) + 24px);
  display: grid;
  gap: 20px;
}

.bp-panel {
  padding: 22px;
  border: 1px solid var(--bp-line);
  border-radius: 16px;
  background: #fff;
}

.bp-panel__title {
  margin: 0 0 12px;
  color: var(--bp-ink);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bp-toc {
  margin: 0;
  padding: 0;
  list-style: none;
}

.bp-toc a {
  display: block;
  padding: 7px 0 7px 14px;
  border-left: 2px solid var(--bp-line);
  color: var(--bp-muted);
  font-size: 14.5px;
  line-height: 1.4;
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.bp-toc a:hover {
  color: var(--bp-ink);
}

.bp-toc a[aria-current] {
  border-color: var(--bp-brand-strong);
  color: var(--bp-brand-strong);
  font-weight: 600;
}

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

.bp-share a,
.bp-share button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--bp-line);
  border-radius: 50%;
  background: #fff;
  color: var(--bp-ink);
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bp-share a:hover,
.bp-share button:hover {
  border-color: var(--bp-brand-strong);
  background: var(--bp-brand-strong);
  color: #fff;
}

.bp-share__status {
  flex-basis: 100%;
  min-height: 1.2em;
  margin: 0;
  color: var(--bp-muted);
  font-size: 13px;
}

.bp-aside-cta {
  padding: 24px;
  border-radius: 16px;
  background: linear-gradient(150deg, var(--bp-brand), #5a33c2);
  color: rgba(255, 255, 255, 0.88);
}

.bp-aside-cta strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
}

.bp-aside-cta p {
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.55;
}

.bp-aside-cta a {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 18px;
  border-radius: 8px;
  background: #fff;
  color: var(--bp-brand-strong);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.bp-aside-cta a:hover {
  background: var(--bp-soft);
  color: var(--bp-brand-strong);
}

.bp-toc-mobile {
  display: none;
}

/* Article typography: also restyles the older blog markup */
.bp-article {
  max-width: 740px;
  color: var(--bp-body);
  font-size: 18px;
  line-height: 1.78;
}

.bp-article p,
.bp-article .list_content {
  margin: 0 0 22px;
  color: var(--bp-body);
  font-size: 18px;
  line-height: 1.78;
}

.bp-article h2 {
  margin: 56px 0 18px;
  color: var(--bp-ink);
  font-size: clamp(25px, 2.8vw, 31px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.01em;
  scroll-margin-top: calc(var(--bp-header) + 24px);
}

.bp-article h3 {
  margin: 34px 0 12px;
  color: var(--bp-ink);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
}

.bp-article b,
.bp-article strong {
  color: var(--bp-ink);
  font-weight: 600;
}

.bp-article a:not([class]) ,
.bp-article .ab-link {
  color: var(--bp-brand-strong);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bp-article ul.paragraph_ul,
.bp-article ul:not([class]) {
  margin: 0 0 24px;
  padding-left: 0;
  list-style: none;
}

.bp-article ul.paragraph_ul li,
.bp-article ul:not([class]) li {
  position: relative;
  margin-bottom: 10px;
  padding-left: 28px;
  color: var(--bp-body);
  font-size: 17.5px;
  line-height: 1.7;
}

.bp-article ul.paragraph_ul li::before,
.bp-article ul:not([class]) li::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--bp-brand);
}

.bp-article .sub_listing {
  margin-bottom: 10px;
  padding-left: 18px;
  border-left: 3px solid var(--bp-soft);
}

.bp-article .text_primary,
.bp-article .text-color-primary {
  color: var(--bp-brand-strong);
}

.bp-article .img_box {
  margin: 34px 0;
}

.bp-article img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  border-radius: 14px;
}

.bp-article .img_box img {
  border: 1px solid var(--bp-line);
}

.bp-article > :first-child {
  margin-top: 0;
}

/* After the article */
.bp-author {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-top: 56px;
  padding: 26px;
  border-radius: 18px;
  background: var(--bp-tint);
}

.bp-author img {
  flex: 0 0 64px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff;
  object-fit: contain;
}

.bp-author small {
  display: block;
  color: var(--bp-brand-strong);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.bp-author strong {
  display: block;
  margin: 2px 0 8px;
  color: var(--bp-ink);
  font-size: 19px;
  font-weight: 600;
}

.bp-author p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.6;
}

.bp-share--inline {
  display: none;
  margin-top: 28px;
}

.bp-more {
  padding: 88px 0;
  background: var(--bp-tint);
}

.bp-more__head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 32px;
}

.bp-more__head h2 {
  margin: 0;
  color: var(--bp-ink);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
}

.bp-more__head a {
  color: var(--bp-brand-strong);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* Post cards, shared by the article pages and the blog index */
.bl-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.bl-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--bp-line);
  border-radius: 18px;
  background: #fff;
  color: var(--bp-body);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.bl-card:hover {
  color: var(--bp-body);
  box-shadow: 0 22px 44px rgba(40, 30, 80, 0.13);
  transform: translateY(-5px);
}

.bl-card__img {
  overflow: hidden;
}

.bl-card__img img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.bl-card:hover .bl-card__img img {
  transform: scale(1.04);
}

.bl-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.bl-card__cat {
  margin-bottom: 10px;
  color: var(--bp-brand-strong);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bl-card h3 {
  margin: 0 0 10px;
  color: var(--bp-ink);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.35;
}

.bl-card p {
  margin: 0 0 18px;
  font-size: 15.5px;
  line-height: 1.6;
}

.bl-card__meta {
  margin-top: auto;
  color: var(--bp-muted);
  font-size: 14px;
}

/* Blog index */
.bl-hero {
  padding: 150px 0 72px;
  background:
    radial-gradient(circle at 85% 15%, rgba(128, 93, 205, 0.5), transparent 45%),
    linear-gradient(135deg, var(--bp-night), var(--bp-night-2));
  color: rgba(255, 255, 255, 0.82);
}

.bl-hero h1 {
  max-width: 760px;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.bl-hero h1 span {
  background: linear-gradient(90deg, #cdb8ff, #fff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.bl-hero p {
  max-width: 620px;
  margin: 0;
  font-size: 19px;
  line-height: 1.6;
}

.bl-eyebrow {
  margin: 0 0 16px;
  color: #cdb8ff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.bl-body {
  padding: 64px 0 96px;
}

.bl-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 36px;
}

.bl-topics button {
  padding: 9px 18px;
  border: 1px solid var(--bp-line);
  border-radius: 30px;
  background: #fff;
  color: var(--bp-body);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.bl-topics button:hover {
  border-color: var(--bp-brand);
  color: var(--bp-ink);
}

.bl-topics button[aria-pressed='true'] {
  border-color: var(--bp-brand-strong);
  background: var(--bp-brand-strong);
  color: #fff;
}

.bl-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  margin-bottom: 40px;
  overflow: hidden;
  border: 1px solid var(--bp-line);
  border-radius: 22px;
  background: #fff;
  color: var(--bp-body);
  text-decoration: none;
  transition: box-shadow 0.3s ease;
}

.bl-featured:hover {
  color: var(--bp-body);
  box-shadow: 0 26px 50px rgba(40, 30, 80, 0.14);
}

/* The whole cover shows, centred, however tall the text beside it is */
.bl-featured .bl-card__img {
  display: flex;
  align-items: center;
  background: var(--bp-tint);
}

.bl-featured .bl-card__img img {
  height: auto;
  aspect-ratio: 16 / 9;
}

.bl-featured .bl-card__body {
  justify-content: center;
  padding: 44px;
}

.bl-featured h2 {
  margin: 0 0 14px;
  color: var(--bp-ink);
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 600;
  line-height: 1.25;
}

.bl-featured p {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.65;
}

.bl-featured__badge {
  align-self: flex-start;
  margin-bottom: 14px;
  padding: 5px 12px;
  border-radius: 20px;
  background: var(--bp-soft);
  color: var(--bp-brand-strong);
  font-size: 12.5px;
  font-weight: 700;
}

.bl-read {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--bp-ink);
  font-size: 15.5px;
  font-weight: 600;
}

.bl-read i {
  color: var(--bp-brand);
  transition: transform 0.2s ease;
}

.bl-featured:hover .bl-read i,
.bl-card:hover .bl-read i {
  transform: translateX(5px);
}

.bl-empty {
  padding: 40px;
  border: 1px dashed var(--bp-line);
  border-radius: 16px;
  color: var(--bp-muted);
  text-align: center;
}

.bp-hero a:focus-visible,
.bp-layout a:focus-visible,
.bp-layout button:focus-visible,
.bp-layout summary:focus-visible,
.bp-more a:focus-visible,
.bl-body a:focus-visible,
.bl-body button:focus-visible {
  outline: 3px solid var(--bp-brand);
  outline-offset: 3px;
}

/* Responsive */
@media (max-width: 1199px) {
  .bp-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 48px;
  }
}

@media (max-width: 991px) {
  .bp-hero,
  .bl-hero {
    padding-top: 120px;
  }

  .bp-layout {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
  }

  .bp-aside {
    display: none;
  }

  .bp-article {
    max-width: none;
  }

  .bp-toc-mobile {
    display: block;
    margin-bottom: 32px;
    border: 1px solid var(--bp-line);
    border-radius: 14px;
    background: #fff;
  }

  .bp-toc-mobile summary {
    padding: 16px 20px;
    color: var(--bp-ink);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .bp-toc-mobile .bp-toc {
    padding: 0 20px 16px;
  }

  .bp-share--inline {
    display: flex;
  }

  .bl-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .bl-featured {
    grid-template-columns: minmax(0, 1fr);
  }

  .bl-featured .bl-card__img img {
    min-height: 0;
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 767px) {
  .bp-hero {
    padding-bottom: 120px;
  }

  .bp-cover {
    margin-top: -80px;
  }

  .bp-article,
  .bp-article p,
  .bp-article .list_content {
    font-size: 17px;
  }

  .bl-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .bl-featured .bl-card__body {
    padding: 26px;
  }

  .bp-author {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bl-card,
  .bl-card__img img,
  .bl-read i,
  .bp-toc a {
    transition: none;
  }

  .bl-card:hover,
  .bl-card:hover .bl-card__img img {
    transform: none;
  }
}

/* Captioned screenshots inside articles */
.bp-article .ip-figure {
  margin: 34px 0;
}

.bp-article .ip-figure img {
  border: 1px solid var(--bp-line);
  box-shadow: 0 14px 30px rgba(40, 30, 80, 0.08);
}

.bp-article .ip-figure figcaption {
  margin-top: 12px;
  color: var(--bp-muted);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}
