/*
 * Blog listing (/blogs) and articles (/blogs/<slug>).
 * Site typography (Advent Pro), white background, purple with selective yellow.
 */
.blog-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* Shared meta line: category · date · reading time */
.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 0 0 12px;
  color: #6b6578;
  font-size: 14px;
  font-weight: 600;
}

.blog-cat {
  padding: 3px 10px;
  border-radius: 999px;
  background: #f1ebf8;
  color: #542785;
  font-size: 12px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ---------------------------------------------------------------- Listing */
.verticalScroll .rightContents .main section.blog-index {
  max-width: 1040px;
  padding: 40px 30px 80px;
}

.blog-index__header h1.title {
  margin: 0 0 24px;
  text-align: start;
}

.blog-index__intro {
  max-width: 560px;
  margin: 0 0 32px;
  color: #3b3647;
  font-size: 19px;
  line-height: 1.6;
}

.blog-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid #ebe6f2;
}

.blog-search {
  position: relative;
  flex: 1 1 260px;
  max-width: 360px;
}

.blog-search i {
  position: absolute;
  top: 50%;
  inset-inline-start: 16px;
  color: #8e88a0;
  font-size: 14px;
  transform: translateY(-50%);
  pointer-events: none;
}

.blog-search input {
  width: 100%;
  height: 46px;
  padding-block: 0;
  padding-inline: 42px 16px;
  border: 1px solid #ddd5ea;
  border-radius: 999px;
  background: #fff;
  color: #1e2333;
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.blog-search input::placeholder {
  color: #8e88a0;
}

.blog-search input:focus {
  border-color: #542785;
  outline: none;
  box-shadow: 0 0 0 3px rgba(84, 39, 133, 0.15);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.blog-chip {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid #ddd5ea;
  border-radius: 999px;
  background: #fff;
  color: #3b3647;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-chip:hover {
  border-color: #542785;
  color: #542785;
}

.blog-chip[aria-pressed="true"],
.blog-chip--solid {
  border-color: #542785;
  background: #542785;
  color: #fff;
}

.blog-chip:focus-visible,
.blog-readmore:focus-visible,
.blog-feature a:focus-visible,
.blog-card a:focus-visible {
  outline: 2px solid #542785;
  outline-offset: 3px;
}

/* Featured story */
.blog-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.blog-feature__media {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #f1ebf8;
  box-shadow: 0 18px 40px -24px rgba(61, 28, 97, 0.45);
}

.blog-feature__media img,
.blog-card__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 40 / 21;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-feature:hover .blog-feature__media img,
.blog-card:hover .blog-card__media img {
  transform: scale(1.03);
}

.blog-feature__title {
  margin: 0 0 14px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.5px;
}

.blog-feature__title a,
.blog-card h3 a {
  color: #1e2333;
  text-decoration: none;
}

.blog-feature__title a:hover,
.blog-card h3 a:hover {
  color: #542785;
}

.blog-feature__excerpt {
  margin: 0 0 22px;
  color: #3b3647;
  font-size: 18px;
  line-height: 1.6;
}

.blog-readmore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 3px;
  border-bottom: 3px solid #fac400;
  color: #542785;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.blog-readmore:hover {
  color: #3d1c61;
  text-decoration: none;
}

.blog-readmore i {
  font-size: 13px;
  transition: translate 0.2s ease;
}

.blog-readmore:hover i {
  translate: calc(4px * var(--rk-x, 1)) 0;
}

/* More articles (appear once there is more than one match) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 32px 28px;
  margin: 48px 0 0;
  padding: 48px 0 0;
  border-top: 1px solid #ebe6f2;
  list-style: none;
}

.blog-card__media {
  display: block;
  overflow: hidden;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #f1ebf8;
}

.blog-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.3;
}

.blog-card__excerpt {
  margin: 0;
  color: #3b3647;
  font-size: 16px;
  line-height: 1.55;
}

/* No results */
.blog-empty {
  max-width: 520px;
  padding: 48px 0;
  color: #3b3647;
  font-size: 17px;
}

.blog-empty__title {
  margin-bottom: 6px;
  color: #1e2333;
  font-size: 22px;
  font-weight: 700;
}

.blog-empty .blog-chip {
  margin-top: 12px;
}

/* ---------------------------------------------------------------- Article */
.verticalScroll .rightContents .main section.blog-article,
.verticalScroll .rightContents .main article.blog-article {
  max-width: 860px;
  margin: 0 auto;
  padding: 36px 30px 90px;
}

.blog-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin: 0 0 28px;
  padding: 0;
  color: #6b6578;
  font-size: 14px;
  list-style: none;
}

.blog-breadcrumb li + li::before {
  content: "/";
  margin-inline-end: 8px;
  color: #b9b2c4;
}

.blog-breadcrumb a {
  color: #6b6578;
  text-decoration: none;
}

.blog-breadcrumb a:hover {
  color: #542785;
  text-decoration: underline;
}

.blog-breadcrumb [aria-current="page"] {
  display: -webkit-box;
  max-width: 100%;
  overflow: hidden;
  color: #542785;
  font-weight: 600;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.blog-article__header {
  max-width: 720px;
}

.blog-article h1 {
  margin: 0 0 16px;
  color: #1e2333;
  font-size: 40px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.5px;
  text-align: start;
}

.blog-article__dek {
  margin: 0 0 22px;
  color: #3b3647;
  font-size: 21px;
  line-height: 1.55;
}

.blog-article__cover {
  margin: 30px 0 36px;
  overflow: hidden;
  border-radius: 18px;
  background: #f1ebf8;
}

.blog-article__cover img {
  display: block;
  width: 100%;
  height: auto;
}

/* Reading column */
.blog-prose {
  max-width: 680px;
  color: #262236;
  font-size: 19px;
  line-height: 1.75;
  letter-spacing: 0.5px;
}

.blog-prose p {
  margin: 0 0 20px;
}

.blog-prose h2 {
  position: relative;
  margin: 44px 0 16px;
  padding-top: 14px;
  color: #1e2333;
  font-size: 27px;
  font-weight: 700;
  line-height: 1.25;
  scroll-margin-top: 24px;
}

.blog-prose h2::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  width: 44px;
  height: 3px;
  background: #fac400;
}

.blog-prose ol,
.blog-prose ul {
  margin: 0 0 24px;
  padding-inline-start: 0;
  list-style: none;
}

.blog-prose ol {
  counter-reset: tip;
}

.blog-prose ol > li {
  position: relative;
  margin-bottom: 18px;
  padding-inline-start: 46px;
  counter-increment: tip;
}

.blog-prose ol > li::before {
  content: counter(tip);
  position: absolute;
  top: 2px;
  inset-inline-start: 0;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 50%;
  background: #542785;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.blog-prose ul > li {
  position: relative;
  margin-bottom: 8px;
  padding-inline-start: 22px;
}

.blog-prose ul > li::before {
  content: "";
  position: absolute;
  top: 0.72em;
  inset-inline-start: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fac400;
}

.blog-prose strong {
  color: #1e2333;
  font-weight: 700;
}

.blog-prose a,
.blog-cta a {
  color: #542785;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(84, 39, 133, 0.35);
  text-underline-offset: 3px;
}

.blog-prose a:hover {
  color: #3d1c61;
  text-decoration-color: #fac400;
}

.blog-prose a:focus-visible,
.blog-back:focus-visible,
.blog-sources summary:focus-visible {
  outline: 2px solid #542785;
  outline-offset: 2px;
}

/* "In short" */
.blog-takeaways {
  margin: 30px 0 8px;
  padding: 20px 24px 8px;
  border-inline-start: 4px solid #fac400;
  border-radius: 0 12px 12px 0;
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: 12px;
  border-end-end-radius: 12px;
  background: #faf8fc;
}

.blog-takeaways__title {
  margin: 0 0 8px !important;
  color: #542785;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.blog-takeaways ul > li {
  font-size: 18px;
  line-height: 1.6;
}

/* Closing CTA */
.blog-cta {
  margin: 36px 0 0 !important;
  padding: 22px 24px;
  border-radius: 14px;
  background: #542785;
  color: #fff;
  font-size: 18px;
  line-height: 1.6;
}

.blog-cta a {
  color: #fff;
  text-decoration-color: #fac400;
}

.blog-cta a:hover {
  color: #fac400;
}

/* Sharing */
.blog-share {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.blog-share__label {
  margin-inline-end: 4px;
  color: #6b6578;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.blog-share__btn {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  padding: 0;
  border: 1px solid #e3dbee;
  border-radius: 50%;
  background: #fff;
  color: #542785;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.blog-share__btn:hover {
  border-color: #542785;
  background: #542785;
  color: #fff;
  text-decoration: none;
}

.blog-share__btn:focus-visible {
  outline: 2px solid #542785;
  outline-offset: 2px;
}

.blog-share__status {
  color: #2a8a5f;
  font-size: 14px;
  font-weight: 700;
}

/* Footer of the article */
.blog-article__footer {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid #ebe6f2;
}

.blog-sources {
  margin: 22px 0;
  color: #6b6578;
  font-size: 15px;
}

.blog-sources summary {
  color: #3b3647;
  font-weight: 700;
  cursor: pointer;
}

.blog-sources ol {
  margin: 10px 0 0;
  padding-inline-start: 20px;
  list-style: decimal;
}

.blog-sources ol > li {
  margin-bottom: 6px;
  padding-inline-start: 0;
  font-size: 15px;
  line-height: 1.5;
}

.blog-sources ol > li::before {
  content: none;
}

.blog-sources a {
  color: #542785;
  font-weight: 600;
}

.blog-back {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #542785;
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
}

.blog-back:hover {
  color: #3d1c61;
  text-decoration: none;
}

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 992px) {
  .verticalScroll .rightContents .main section.blog-index,
  .verticalScroll .rightContents .main article.blog-article {
    padding: 28px 20px 70px;
  }

  .blog-feature {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 576px) {
  .blog-index__intro {
    font-size: 17px;
  }

  .blog-search {
    max-width: none;
  }

  .blog-feature__title {
    font-size: 25px;
  }

  .blog-article h1 {
    font-size: 30px;
  }

  .blog-article__dek {
    font-size: 18px;
  }

  .blog-prose {
    font-size: 18px;
    line-height: 1.7;
  }

  .blog-prose h2 {
    font-size: 23px;
  }

  .blog-article__cover {
    margin: 22px -20px 28px;
    border-radius: 0;
  }

  .blog-takeaways,
  .blog-cta {
    padding: 18px 18px 6px;
  }

  .blog-cta {
    padding-bottom: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-feature__media img,
  .blog-card__media img,
  .blog-readmore i,
  .blog-chip,
  .blog-share__btn,
  .blog-search input {
    transition: none;
  }

  .blog-feature:hover .blog-feature__media img,
  .blog-card:hover .blog-card__media img {
    transform: none;
  }
}
