/*
 * FMF Blog — editorial design system for /blog/, /th/blog/ and articles.
 * Loaded through $additionalStyles (see blog_stylesheets()). Builds on the site tokens in
 * css/style.css (:root): dark #27242e, purple #6657c2, light #e8e9ef, Inter.
 *
 * Article body contract (inside <article class="blog-article">):
 *   h2, h3, p, ul, ol, a, strong, .blog-lead, .blog-table-wrap > table, .blog-note,
 *   .blog-cta (+ __button, __line), .blog-sources, figure/img/figcaption, pre/code,
 *   .blog-keyfacts, .blog-figure + .viz-* components (see "Visual explanations" below).
 */

.blog-page {
  --blog-ink: #1a1a1a;
  --blog-ink-2: #45424d;
  --blog-muted: #6e6b76;
  --blog-line: #e2e1ea;
  --blog-paper: #fff;
  --blog-paper-2: #f5f4f9;
  --blog-paper-3: #ecebf6;
  --blog-dark: #27242e;
  --blog-dark-2: #322e3b;
  --blog-dark-line: #47454d;
  --blog-purple: #6657c2;
  --blog-purple-deep: #4e40a8;
  --blog-lavender: #b9b2f2;
  --blog-lavender-bg: #efedfb;
  --blog-green: #2f9e6e;
  --blog-amber: #c07a12;
  --blog-red: #c2413a;
  --blog-radius: 14px;
  --blog-font: "Inter", "Noto Sans Thai", -apple-system, "Segoe UI", sans-serif;
  color: var(--blog-ink);
  font-family: var(--blog-font);
  overflow-wrap: break-word;
  background: var(--blog-paper);
}
.blog-page *,
.blog-page *::before,
.blog-page *::after {
  box-sizing: border-box;
}
html[lang="th"] .blog-page {
  --blog-font: "Inter", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}
/* Same Thai typeface for the header, related links, form and footer of blog pages */
html[lang="th"] body {
  font-family: "Inter", "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif;
}
/* Loanwords kept together (blog_thai_keep) and calmer line endings */
.blog-page .nw {
  white-space: nowrap;
}
.blog-page h1,
.blog-page h2,
.blog-page h3 {
  text-wrap: balance;
}
.blog-page p,
.blog-page li {
  text-wrap: pretty;
}

/* Centred frame used by the article: aligns hero, cover and reading column. */
.blog-frame {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}
.blog-frame > .wrap_container {
  width: auto;
  max-width: none;
  min-width: 0;
  padding: 0;
}

/* ---------- Breadcrumbs on dark ---------- */
.blog-masthead .breadcrumbs,
.blog-hero .breadcrumbs {
  padding-top: 0;
  font-size: 14px;
  line-height: 1.6;
  flex-wrap: nowrap;
}
.blog-masthead .breadcrumbs__item,
.blog-hero .breadcrumbs__item {
  min-width: 0;
  flex: 0 0 auto;
}
.blog-masthead .breadcrumbs__item:last-child,
.blog-hero .breadcrumbs__item:last-child {
  flex: 0 1 auto;
}
.blog-masthead .breadcrumbs__item a,
.blog-hero .breadcrumbs__item a {
  color: var(--blog-lavender);
}
.blog-masthead .breadcrumbs__item a:hover,
.blog-hero .breadcrumbs__item a:hover,
.blog-masthead .breadcrumbs__item a:focus-visible,
.blog-hero .breadcrumbs__item a:focus-visible {
  color: #fff;
}
.blog-masthead .breadcrumbs__item a::after,
.blog-hero .breadcrumbs__item a::after {
  color: #6f6a7a;
}
.blog-masthead .breadcrumbs__item > span,
.blog-hero .breadcrumbs__item > span {
  display: block;
  color: #a7a3b0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Tags ---------- */
.blog-tag {
  display: inline-flex;
  align-items: center;
  height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  background: var(--blog-lavender-bg);
  color: var(--blog-purple-deep);
}
.blog-tag--web {
  background: #e6f3ee;
  color: #1f6e4c;
}
.blog-tag--ads {
  background: #fbf0dc;
  color: #87540a;
}
.blog-tag--featured {
  background: var(--blog-purple);
  color: #fff;
}

/* =====================================================================
   INDEX
   ===================================================================== */
.blog-page--index {
  padding-bottom: 0;
}
.blog-masthead {
  background: var(--blog-dark);
  color: #fff;
  padding: 128px 0 176px;
  position: relative;
  overflow: hidden;
}
.blog-masthead::after {
  /* faint wireframe grid, same visual language as the service-page illustrations */
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 30%, #000 85%);
  pointer-events: none;
}
.blog-masthead > * {
  position: relative;
  z-index: 1;
}
.blog-masthead__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 64px;
  align-items: end;
  margin-top: 56px;
}
.blog-eyebrow {
  margin: 0 0 20px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blog-lavender);
}
.blog-masthead__title {
  margin: 0;
  font-size: clamp(44px, 6.4vw, 88px);
  line-height: 1.1;
  font-weight: 400;
  letter-spacing: -0.02em;
}
.blog-masthead__intro {
  max-width: 720px;
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.75;
  color: #d4d1dc;
}
.blog-topics {
  border-top: 1px solid var(--blog-dark-line);
  padding-top: 20px;
}
.blog-topics__label {
  margin: 0 0 8px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a7a3b0;
}
.blog-topics__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.blog-topics__item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--blog-dark-line);
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: color 0.2s, padding 0.2s, border-color 0.2s;
}
.blog-topics__item:hover,
.blog-topics__item:focus-visible {
  color: var(--blog-lavender);
  padding-left: 6px;
}
.blog-topics__count {
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid var(--blog-dark-line);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #d4d1dc;
}

/* Featured */
.blog-featured {
  margin-top: -120px;
  position: relative;
  z-index: 2;
}
.blog-featured__card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  background: var(--blog-paper);
  border-radius: var(--blog-radius);
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(39, 36, 46, 0.45), 0 0 0 1px var(--blog-line);
  transition: box-shadow 0.25s, transform 0.25s;
}
.blog-featured__card.no-cover {
  grid-template-columns: 1fr;
}
.blog-featured__card:hover {
  transform: translateY(-2px);
  box-shadow: 0 36px 70px -30px rgba(39, 36, 46, 0.55), 0 0 0 1px var(--blog-lavender);
}
.blog-featured__media {
  background: var(--blog-dark);
  aspect-ratio: 16 / 9;
  min-height: 100%;
}
.blog-featured__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-featured__body {
  padding: 44px 44px 36px;
  display: flex;
  flex-direction: column;
}
.blog-featured__title {
  margin: 20px 0 0;
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.blog-featured__title a {
  color: inherit;
  text-decoration: none;
}
.blog-featured__title a::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}
.blog-featured__title a:focus-visible {
  outline: none;
}
.blog-featured__card:focus-within {
  box-shadow: 0 0 0 3px var(--blog-purple);
}
.blog-featured__text {
  margin: 16px 0 0;
  font-size: 17px;
  line-height: 1.75;
  color: var(--blog-ink-2);
}
.blog-featured__foot {
  margin: auto 0 0;
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 16px;
  flex-wrap: wrap;
  font-size: 14px;
  color: var(--blog-muted);
}
.blog-featured__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--blog-purple);
}
.blog-featured__cta svg {
  transition: transform 0.2s;
}
.blog-featured__card:hover .blog-featured__cta svg {
  transform: translate(2px, -2px);
}

/* Section heads (topics, related) */
.blog-topic {
  padding-top: 96px;
}
.blog-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px 32px;
  flex-wrap: wrap;
  padding-top: 24px;
  margin-bottom: 36px;
  border-top: 1px solid var(--outher-light-gray, #d9d9d9);
}
.blog-section-head__title {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.25;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.blog-section-head__count {
  margin-left: 10px;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--blog-muted);
  vertical-align: middle;
}
.blog-section-head__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
  color: var(--blog-purple);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.blog-section-head__link::after {
  content: "→";
}
.blog-section-head__link:hover,
.blog-section-head__link:focus-visible {
  color: var(--purple-hover, #5c2d99);
}

/* Cards */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 48px 32px;
}
/* Two (or four) posts: two columns of horizontal cards instead of an empty third column */
.blog-grid--1,
.blog-grid--2,
.blog-grid--4 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 48px 40px;
}
@media (min-width: 1100px) {
  .blog-grid--1 .blog-card,
  .blog-grid--2 .blog-card,
  .blog-grid--4 .blog-card {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }
  .blog-grid--1 .blog-card__body,
  .blog-grid--2 .blog-card__body,
  .blog-grid--4 .blog-card__body {
    padding-top: 4px;
    height: 100%;
  }
  .blog-grid--1 .blog-card__text,
  .blog-grid--2 .blog-card__text,
  .blog-grid--4 .blog-card__text {
    -webkit-line-clamp: 4;
    font-size: 15.5px;
  }
}
.blog-card {
  position: relative;
  display: flex;
  flex-direction: column;
}
.blog-card__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--blog-radius);
  overflow: hidden;
  background: var(--blog-dark);
}
.blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.blog-card:hover .blog-card__media img {
  transform: scale(1.035);
}
.blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding-top: 22px;
}
.blog-card__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin: 0;
  font-size: 14px;
  color: var(--blog-muted);
}
.blog-card__title {
  margin: 14px 0 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.005em;
}
.blog-card__title a {
  color: inherit;
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.3s;
}
.blog-card__title a::after {
  content: "";
  position: absolute;
  inset: 0;
}
.blog-card:hover .blog-card__title a,
.blog-card__title a:focus-visible {
  background-size: 100% 1px;
}
.blog-card__text {
  margin: 12px 0 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--blog-ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-card__date {
  margin: auto 0 0;
  padding-top: 16px;
  font-size: 14px;
  color: var(--blog-muted);
}

/* Services band */
.blog-services {
  margin-top: 120px;
  padding: 96px 0;
  background: var(--blog-dark);
  color: #fff;
}
.blog-services__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
  padding-top: 24px;
  border-top: 1px solid var(--blog-dark-line);
}
.blog-services__title {
  margin: 0;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1.25;
  font-weight: 400;
}
.blog-services__text {
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
  color: #d4d1dc;
}
.blog-services__text a {
  color: var(--blog-lavender);
}
.blog-services__text a:hover {
  color: #fff;
}
.blog-services__list {
  list-style: none;
  margin: 48px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}
.blog-services__list li {
  display: flex;
}
.blog-services__list .blog-services__item {
  flex: 1;
}
.blog-services__item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 180px;
  padding: 32px 72px 32px 32px;
  border: 1px solid var(--blog-dark-line);
  border-radius: var(--blog-radius);
  color: #fff;
  text-decoration: none;
  transition: background 0.25s, border-color 0.25s;
}
.blog-services__item:hover,
.blog-services__item:focus-visible {
  background: var(--blog-purple);
  border-color: var(--blog-purple);
}
.blog-services__label {
  font-size: 24px;
  font-weight: 500;
}
.blog-services__desc {
  font-size: 16px;
  line-height: 1.65;
  color: #d4d1dc;
}
.blog-services__item:hover .blog-services__desc,
.blog-services__item:focus-visible .blog-services__desc {
  color: #fff;
}
.blog-services__arrow {
  position: absolute;
  top: 32px;
  right: 32px;
  color: var(--blog-lavender);
  transition: transform 0.2s, color 0.2s;
}
.blog-services__item:hover .blog-services__arrow {
  color: #fff;
  transform: translate(3px, -3px);
}

/* The English footer opens with a dark contact form (the Thai one is light grey), so on
   English pages the services band is light to keep the two sections apart. */
html[lang="en"] .blog-services {
  background: var(--blog-paper-2);
  color: var(--blog-ink);
  margin-top: 96px;
}
html[lang="en"] .blog-services__head {
  border-top-color: var(--blog-line);
}
html[lang="en"] .blog-services__text {
  color: var(--blog-ink-2);
}
html[lang="en"] .blog-services__text a {
  color: var(--blog-purple);
}
html[lang="en"] .blog-services__item {
  background: #fff;
  border-color: var(--blog-line);
  color: var(--blog-ink);
}
html[lang="en"] .blog-services__desc {
  color: var(--blog-ink-2);
}
html[lang="en"] .blog-services__arrow {
  color: var(--blog-purple);
}
html[lang="en"] .blog-services__item:hover,
html[lang="en"] .blog-services__item:focus-visible {
  background: var(--blog-purple);
  border-color: var(--blog-purple);
  color: #fff;
}
html[lang="en"] .blog-services__item:hover .blog-services__arrow {
  color: #fff;
}

/* =====================================================================
   ARTICLE
   ===================================================================== */
.blog-page--article {
  padding-bottom: 0;
}
.blog-hero {
  background: var(--blog-dark);
  color: #fff;
  padding: 128px 0 80px;
  position: relative;
  overflow: hidden;
}
.blog-page--article.has-cover .blog-hero {
  padding-bottom: 240px;
}
.blog-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse at 85% 20%, #000 0%, transparent 60%);
  mask-image: radial-gradient(ellipse at 85% 20%, #000 0%, transparent 60%);
  pointer-events: none;
}
.blog-hero > * {
  position: relative;
  z-index: 1;
}
.blog-hero__text {
  max-width: 900px;
  margin-top: 48px;
}
.blog-hero__cluster {
  margin: 0 0 24px;
}
.blog-hero__cluster .blog-tag {
  background: rgba(185, 178, 242, 0.14);
  color: var(--blog-lavender);
  box-shadow: inset 0 0 0 1px rgba(185, 178, 242, 0.3);
  transition: background 0.2s, color 0.2s;
}
.blog-hero__cluster .blog-tag:hover,
.blog-hero__cluster .blog-tag:focus-visible {
  background: var(--blog-purple);
  color: #fff;
}
.blog-hero__title {
  margin: 0;
  font-size: clamp(32px, 4vw, 54px);
  line-height: 1.28;
  font-weight: 500;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
.blog-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 36px;
}
.blog-meta__avatar {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--blog-purple);
  color: #fff;
  font-family: "Inter", sans-serif;
  font-size: 12px;
  font-weight: 800;
  font-style: italic;
  letter-spacing: 0.02em;
}
.blog-meta__lines {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 15px;
  line-height: 1.6;
}
.blog-meta__author {
  color: #fff;
  font-weight: 500;
}
.blog-meta__details {
  display: flex;
  flex-wrap: wrap;
  gap: 0 8px;
  color: #a7a3b0;
}
.blog-meta__details > span + span::before {
  content: "·";
  margin-right: 8px;
}

/* Cover */
.blog-cover {
  margin-top: -184px;
  position: relative;
  z-index: 2;
}
.blog-cover img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--blog-radius);
  background: var(--blog-dark-2);
  outline: 1px solid rgba(255, 255, 255, 0.1);
  outline-offset: -1px;
  box-shadow: 0 40px 60px -40px rgba(39, 36, 46, 0.55);
}

/* Layout: sticky sidebar + reading column */
.blog-layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 740px);
  justify-content: space-between;
  gap: 64px;
  padding-top: 72px;
  padding-bottom: 104px;
}
.blog-aside {
  position: sticky;
  top: 112px;
  align-self: start;
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-height: calc(100vh - 136px);
  overflow-y: auto;
  scrollbar-width: thin;
}
.blog-toc__title {
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-muted);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--blog-line);
}
.blog-toc__title::-webkit-details-marker {
  display: none;
}
.blog-toc__list {
  list-style: none;
  margin: 0;
  padding: 8px 0 0;
  counter-reset: toc;
}
.blog-toc__list li {
  counter-increment: toc;
}
.blog-toc__list a {
  display: grid;
  grid-template-columns: 28px 1fr;
  padding: 7px 0;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--blog-ink-2);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-toc__list a::before {
  content: counter(toc, decimal-leading-zero);
  font-size: 12px;
  line-height: 22px;
  color: #a7a3b0;
  font-variant-numeric: tabular-nums;
}
.blog-toc__list a:hover,
.blog-toc__list a:focus-visible,
.blog-toc__list a.is-active {
  color: var(--blog-purple);
}
.blog-toc__list a.is-active {
  font-weight: 600;
}
.blog-toc__list a.is-active::before {
  color: var(--blog-purple);
}

.blog-service {
  padding: 24px;
  border-radius: var(--blog-radius);
  background: var(--blog-dark);
  color: #fff;
}
.blog-service__label {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-lavender);
}
.blog-service__text {
  margin: 12px 0 20px;
  font-size: 15px;
  line-height: 1.65;
  color: #e4e2ea;
}
.blog-service__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--blog-purple);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s;
}
.blog-service__button:hover,
.blog-service__button:focus-visible {
  background: #7a6be0;
}

/* ---------- Reading column ---------- */
.blog-article {
  min-width: 0;
  font-size: 18px;
  line-height: 1.8;
  color: var(--blog-ink-2);
}
html[lang="th"] .blog-article {
  line-height: 1.9;
}
.blog-article > :first-child {
  margin-top: 0;
}
.blog-article p {
  margin: 0 0 1.25em;
}
.blog-article strong {
  color: var(--blog-ink);
  font-weight: 600;
}
.blog-article h2 {
  margin: 2.6em 0 0.75em;
  padding-top: 0.9em;
  border-top: 1px solid var(--blog-line);
  font-size: clamp(26px, 2.4vw, 32px);
  line-height: 1.35;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--blog-ink);
  scroll-margin-top: 110px;
}
.blog-article h3 {
  margin: 2em 0 0.5em;
  font-size: 21px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--blog-ink);
  scroll-margin-top: 110px;
}
.blog-article a {
  color: var(--blog-purple);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(102, 87, 194, 0.45);
  transition: text-decoration-color 0.2s, color 0.2s;
}
.blog-article a:hover,
.blog-article a:focus-visible {
  color: var(--purple-hover, #5c2d99);
  text-decoration-color: currentColor;
}
.blog-article ul,
.blog-article ol {
  margin: 0 0 1.4em;
  padding-left: 0;
  list-style: none;
}
.blog-article li {
  position: relative;
  padding-left: 30px;
  margin-bottom: 0.6em;
}
.blog-article ul > li::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 0.78em;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--blog-purple);
  transform: rotate(45deg);
}
.blog-article ol {
  counter-reset: item;
}
.blog-article ol > li {
  counter-increment: item;
  padding-left: 44px;
}
.blog-article ol > li::before {
  content: counter(item);
  position: absolute;
  left: 0;
  top: 0.15em;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--blog-lavender-bg);
  color: var(--blog-purple-deep);
  font-size: 14px;
  font-weight: 700;
  line-height: 30px;
  text-align: center;
}

/* Lead = the article's key takeaway, set as a highlighted panel */
.blog-article .blog-lead {
  position: relative;
  margin: 0 0 2em;
  padding: 28px 32px 28px 36px;
  border-radius: var(--blog-radius);
  background: var(--blog-lavender-bg);
  font-size: 20px;
  line-height: 1.75;
  color: var(--blog-ink);
}
.blog-article .blog-lead::before {
  content: "";
  position: absolute;
  left: 0;
  top: 24px;
  bottom: 24px;
  width: 4px;
  border-radius: 0 4px 4px 0;
  background: var(--blog-purple);
}

/* Notes */
.blog-article .blog-note {
  position: relative;
  margin: 1.8em 0;
  padding: 20px 24px 20px 64px;
  border: 1px solid #f0dcb5;
  border-radius: var(--blog-radius);
  background: #fdf7ea;
  font-size: 16px;
  line-height: 1.75;
  color: #4e3d1c;
}
.blog-article .blog-note::before {
  content: "i";
  position: absolute;
  left: 22px;
  top: 22px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blog-amber);
  color: #fff;
  font: italic 700 15px/26px Georgia, serif;
  text-align: center;
}
.blog-article .blog-note p {
  margin: 0;
}
.blog-article .blog-note p + p {
  margin-top: 0.8em;
}
.blog-article .blog-note strong {
  color: inherit;
}

/* Tables */
.blog-article .blog-table-wrap {
  margin: 1.8em 0 2em;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--blog-paper);
}
.blog-article table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.6;
}
.blog-article th,
.blog-article td {
  padding: 14px 18px;
  text-align: left;
  vertical-align: top;
}
.blog-article thead th {
  background: var(--blog-dark);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.blog-article tbody tr + tr td {
  border-top: 1px solid var(--blog-line);
}
.blog-article tbody tr:nth-child(even) td {
  background: var(--blog-paper-2);
}
.blog-article tbody td:first-child {
  min-width: 132px;
  font-weight: 600;
  color: var(--blog-ink);
}

/* CTA inside the article */
.blog-article .blog-cta {
  position: relative;
  margin: 2.4em 0;
  padding: 40px;
  border-radius: var(--blog-radius);
  background: var(--blog-purple) url("/img/last-case.svg") no-repeat right -40px bottom -40px / 280px auto;
  color: #fff;
  overflow: hidden;
}
.blog-article .blog-cta p {
  margin: 0 0 24px;
  max-width: 520px;
  font-size: 22px;
  line-height: 1.5;
  font-weight: 500;
  color: #fff;
}
.blog-article .blog-cta a {
  text-decoration: none;
}
.blog-article .blog-cta__button,
.blog-article .blog-cta__line {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0 10px 10px 0;
  padding: 0 26px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.blog-article .blog-cta__button {
  background: #fff;
  color: var(--blog-purple);
}
.blog-article .blog-cta__button:hover,
.blog-article .blog-cta__button:focus-visible {
  background: var(--blog-dark);
  color: #fff;
}
.blog-article .blog-cta__line {
  background: #06c755;
  color: #fff;
}
.blog-article .blog-cta__line:hover,
.blog-article .blog-cta__line:focus-visible {
  background: #05a648;
  color: #fff;
}

/* Sources */
.blog-article .blog-sources {
  margin-top: 1em;
  padding: 8px 24px;
  border-radius: var(--blog-radius);
  background: var(--blog-paper-2);
  font-size: 14.5px;
  line-height: 1.6;
  counter-reset: src;
}
.blog-article .blog-sources li {
  counter-increment: src;
  padding: 12px 0 12px 36px;
  margin: 0;
  border-bottom: 1px solid var(--blog-line);
  color: var(--blog-muted);
}
.blog-article .blog-sources li:last-child {
  border-bottom: 0;
}
.blog-article .blog-sources li::before {
  content: counter(src);
  left: 0;
  top: 12px;
  width: 24px;
  height: 22px;
  border-radius: 6px;
  transform: none;
  background: var(--blog-paper-3);
  color: var(--blog-muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 22px;
  text-align: center;
}

/* Images, code */
.blog-article figure {
  margin: 2em 0;
}
.blog-article img {
  max-width: 100%;
  height: auto;
  border-radius: var(--blog-radius);
}
.blog-article figcaption {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--blog-muted);
}
.blog-article pre {
  margin: 1.6em 0;
  padding: 20px 24px;
  overflow-x: auto;
  border-radius: var(--blog-radius);
  background: var(--blog-dark);
  color: #e9e7f0;
  font-size: 14.5px;
  line-height: 1.65;
}
.blog-article code {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.4em;
  border-radius: 6px;
  background: var(--blog-paper-3);
  color: var(--blog-purple-deep);
  overflow-wrap: anywhere;
}
.blog-article pre code {
  padding: 0;
  background: none;
  color: inherit;
  font-size: inherit;
}

/* =====================================================================
   VISUAL EXPLANATIONS — components for figures inside articles.
   All text stays real HTML (translatable, accessible, crisp). Values come
   from the article text itself; components never introduce new data.
   ===================================================================== */

/* Key figures strip
   <section class="blog-keyfacts" aria-label="…">
     <p class="blog-keyfacts__title">…</p>
     <div class="blog-keyfact"><span class="blog-keyfact__value">… <span class="blog-keyfact__unit">…</span></span>
       <span class="blog-keyfact__label">…</span></div>
   </section> */
.blog-article .blog-keyfacts {
  margin: 2em 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1px;
  border-radius: var(--blog-radius);
  overflow: hidden;
  background: var(--blog-dark-line);
  border: 1px solid var(--blog-dark);
}
.blog-article .blog-keyfacts__title {
  grid-column: 1 / -1;
  margin: 0;
  padding: 14px 24px;
  background: var(--blog-dark);
  color: var(--blog-lavender);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.blog-article .blog-keyfact {
  margin: 0;
  padding: 22px 24px 24px;
  background: var(--blog-dark-2);
  color: #fff;
}
.blog-article .blog-keyfact__value {
  display: block;
  white-space: nowrap;
  font-size: 23px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.blog-article .blog-keyfact__unit {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--blog-lavender);
}
.blog-article .blog-keyfact__label {
  display: block;
  margin-top: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: #d4d1dc;
}

/* Figure frame
   <figure class="blog-figure"><p class="blog-figure__title">…</p><p class="blog-figure__sub">…</p>
     …component…<figcaption>…</figcaption></figure> */
.blog-article .blog-figure {
  margin: 2.2em 0 2.4em;
  padding: 28px;
  border: 1px solid var(--blog-line);
  border-radius: var(--blog-radius);
  background: var(--blog-paper-2);
}
.blog-article .blog-figure__title {
  margin: 0 0 4px;
  font-size: 18px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--blog-ink);
}
.blog-article .blog-figure__sub {
  margin: 0 0 22px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--blog-muted);
}
.blog-article .blog-figure figcaption {
  margin: 22px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--blog-line);
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--blog-muted);
}
.blog-article .blog-figure ul,
.blog-article .blog-figure ol {
  margin: 0;
  padding: 0;
}
.blog-article .blog-figure li {
  margin: 0;
  padding-left: 0;
}
.blog-article .blog-figure li::before {
  content: none;
}

/* Range chart: rows of labelled bars on a shared scale.
   <ul class="viz-range" style="--max: 100">
     <li class="viz-range__row [is-open|is-accent|is-muted]" style="--from: 10; --to: 30">
       <span class="viz-range__label">…</span>
       <span class="viz-range__track"><span class="viz-range__bar"></span></span>
       <span class="viz-range__value">…</span>
     </li>
   </ul>
   <div class="viz-range__axis-wrap"><div class="viz-range__axis"><span>0</span>…</div></div> */
.blog-article .viz-range {
  display: grid;
  gap: 18px;
  list-style: none;
}
.blog-article .viz-range__row {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 2fr);
  grid-template-areas: "label track" "label value";
  column-gap: 20px;
  align-items: center;
}
.blog-article .viz-range__label {
  grid-area: label;
  font-size: 15px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--blog-ink);
}
.blog-article .viz-range__track {
  grid-area: track;
  position: relative;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--blog-line);
}
.blog-article .viz-range__bar {
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--from) / var(--max, 100) * 100%);
  width: calc((var(--to) - var(--from)) / var(--max, 100) * 100%);
  min-width: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #9387e0, var(--blog-purple));
}
.blog-article .viz-range__row.is-accent .viz-range__bar {
  background: var(--blog-purple-deep);
}
.blog-article .viz-range__row.is-open .viz-range__bar {
  width: calc((var(--to) - var(--from)) / var(--max, 100) * 100% - 22px);
  border-radius: 999px 0 0 999px;
}
.blog-article .viz-range__row.is-open .viz-range__bar::after {
  /* dashed tail + arrow: the range continues past the end of the scale */
  content: "";
  position: absolute;
  left: 100%;
  top: 50%;
  width: 22px;
  height: 4px;
  margin-top: -2px;
  background: repeating-linear-gradient(90deg, currentColor 0 4px, transparent 4px 7px);
  color: var(--blog-purple);
}
.blog-article .viz-range__row.is-open.is-accent .viz-range__bar::after {
  color: var(--blog-purple-deep);
}
.blog-article .viz-range__row.is-muted .viz-range__bar {
  background: #c9c4ea;
}
.blog-article .viz-range__value {
  grid-area: value;
  margin-top: 6px;
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--blog-muted);
  font-variant-numeric: tabular-nums;
}
.blog-article .viz-range__axis-wrap {
  display: grid;
  grid-template-columns: minmax(120px, 0.9fr) minmax(0, 2fr);
  column-gap: 20px;
  margin-top: 14px;
}
.blog-article .viz-range__axis {
  grid-column: 2;
  display: flex;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px dashed #cfcbe0;
  font-size: 12px;
  color: var(--blog-muted);
  font-variant-numeric: tabular-nums;
}

/* Comparison: two or three columns, each a card with a heading and points.
   <div class="viz-compare">
     <div class="viz-compare__col [is-good|is-risk|is-dark]">
       <p class="viz-compare__kicker">…</p><p class="viz-compare__head">…</p>
       <ul class="viz-compare__list"><li>…</li></ul>
     </div>
   </div> */
.blog-article .viz-compare {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
}
.blog-article .viz-compare__col {
  padding: 22px 22px 16px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--blog-line);
  border-top: 4px solid var(--blog-purple);
}
.blog-article .viz-compare__col.is-good {
  border-top-color: var(--blog-green);
}
.blog-article .viz-compare__col.is-risk {
  border-top-color: var(--blog-red);
}
.blog-article .viz-compare__col.is-dark {
  background: var(--blog-dark);
  border-color: var(--blog-dark);
  border-top-color: var(--blog-lavender);
  color: #e4e2ea;
}
.blog-article .viz-compare__col.is-dark .viz-compare__head,
.blog-article .viz-compare__col.is-dark strong {
  color: #fff;
}
.blog-article .viz-compare__kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blog-muted);
}
.blog-article .viz-compare__col.is-dark .viz-compare__kicker {
  color: var(--blog-lavender);
}
.blog-article .viz-compare__head {
  margin: 0 0 12px;
  font-size: 18px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--blog-ink);
}
.blog-article .viz-compare__list {
  list-style: none;
}
.blog-article .blog-figure .viz-compare__list li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-top: 1px solid var(--blog-line);
  font-size: 15px;
  line-height: 1.55;
}
.blog-article .viz-compare__col.is-dark .viz-compare__list li {
  border-top-color: var(--blog-dark-line);
}
.blog-article .blog-figure .viz-compare__list li::before {
  content: "";
  background: none;
  border-radius: 0;
  position: absolute;
  left: 2px;
  top: 16px;
  width: 13px;
  height: 7px;
  border-left: 2px solid var(--blog-purple);
  border-bottom: 2px solid var(--blog-purple);
  transform: rotate(-45deg);
}
.blog-article .blog-figure .viz-compare__col.is-good .viz-compare__list li::before {
  border-color: var(--blog-green);
}
.blog-article .blog-figure .viz-compare__col.is-dark .viz-compare__list li::before {
  border-color: var(--blog-lavender);
}
.blog-article .blog-figure .viz-compare__col.is-risk .viz-compare__list li::before {
  width: 12px;
  height: 12px;
  top: 15px;
  border: 0;
  transform: none;
  background:
    linear-gradient(45deg, transparent 42%, var(--blog-red) 42% 58%, transparent 58%),
    linear-gradient(-45deg, transparent 42%, var(--blog-red) 42% 58%, transparent 58%);
}
.blog-article .viz-compare__foot {
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--blog-muted);
}

/* Timeline / process: stages on a line (vertical on phones).
   <ol class="viz-steps"><li class="viz-steps__item [is-accent]">
     <span class="viz-steps__when">…</span><span class="viz-steps__what">…</span><span class="viz-steps__note">…</span>
   </li></ol> */
.blog-article .viz-steps {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 20px;
  list-style: none;
  position: relative;
}
.blog-article .viz-steps::before {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  top: 9px;
  height: 2px;
  background: linear-gradient(90deg, var(--blog-lavender), var(--blog-purple));
}
.blog-article .blog-figure .viz-steps__item {
  position: relative;
  padding-top: 36px;
}
.blog-article .blog-figure .viz-steps__item::before {
  content: "";
  transform: none;
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--blog-purple);
}
.blog-article .blog-figure .viz-steps__item.is-accent::before {
  background: var(--blog-purple);
  box-shadow: 0 0 0 5px rgba(102, 87, 194, 0.18);
}
.blog-article .viz-steps__when {
  display: block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--blog-purple);
}
.blog-article .viz-steps__what {
  display: block;
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 600;
  color: var(--blog-ink);
}
.blog-article .viz-steps__note {
  display: block;
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.55;
  color: var(--blog-muted);
}

/* Tier cards: columns that step up (price levels, website types, package sizes).
   <ol class="viz-tiers"><li class="viz-tiers__item" data-level="1..4">
     <span class="viz-tiers__name">…</span><span class="viz-tiers__price">…</span><span class="viz-tiers__text">…</span>
   </li></ol> */
.blog-article .viz-tiers {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  align-items: end;
  gap: 12px;
  list-style: none;
}
.blog-article .blog-figure .viz-tiers__item {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 18px 16px;
  border-radius: 12px 12px 4px 4px;
  background: #ded9f6;
  color: var(--blog-ink);
}
.blog-article .blog-figure .viz-tiers__item[data-level="2"] { min-height: 190px; background: #b9b0ec; }
.blog-article .blog-figure .viz-tiers__item[data-level="3"] { min-height: 230px; background: #8577d6; color: #fff; }
.blog-article .blog-figure .viz-tiers__item[data-level="4"] { min-height: 270px; background: var(--blog-purple-deep); color: #fff; }
.blog-article .blog-figure .viz-tiers__item[data-level="5"] { min-height: 310px; background: var(--blog-dark); color: #fff; }
.blog-article .viz-tiers__name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  opacity: 0.85;
}
.blog-article .viz-tiers__price {
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.3;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.blog-article .viz-tiers__text {
  margin-top: 10px;
  font-size: 13.5px;
  line-height: 1.5;
  opacity: 0.92;
}

/* Checklist grid
   <ul class="viz-checks"><li>… <small>…</small></li></ul> */
.blog-article .viz-checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  list-style: none;
}
.blog-article .blog-figure .viz-checks li {
  position: relative;
  padding: 16px 16px 16px 52px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--blog-line);
  font-size: 15px;
  line-height: 1.5;
  font-weight: 600;
  color: var(--blog-ink);
}
.blog-article .blog-figure .viz-checks li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 16px;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  transform: none;
  background: var(--blog-purple) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.blog-article .viz-checks small {
  display: block;
  margin-top: 4px;
  font-size: 13.5px;
  font-weight: 400;
  color: var(--blog-muted);
}

/* Paired pages: two cards joined by two-way arrows (e.g. language versions and hreflang).
   Side by side on desktop, stacked with vertical arrows on phones.
   <div class="viz-pair">
     <div class="viz-pair__card [is-accent]"><p class="viz-pair__name">…</p><p class="viz-pair__url">…</p>
       <ul class="viz-pair__tags"><li>…</li></ul></div>
     <div class="viz-pair__link"><span class="viz-pair__arrow">… →</span><span class="viz-pair__arrow is-back">← …</span></div>
     <div class="viz-pair__card">…</div>
     <p class="viz-pair__foot">…</p>
   </div> */
.blog-article .viz-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 0.7fr) minmax(0, 1fr);
  align-items: center;
  gap: 0;
}
.blog-article .viz-pair__card {
  padding: 20px;
  border-radius: 12px;
  background: #fff;
  border: 1.5px solid var(--blog-line);
}
.blog-article .viz-pair__card.is-accent {
  border-color: var(--blog-purple);
}
.blog-article .viz-pair__name {
  margin: 0;
  font-size: 17px;
  line-height: 1.4;
  font-weight: 600;
  color: var(--blog-ink);
}
.blog-article .viz-pair__url {
  margin: 4px 0 14px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 14px;
  color: var(--blog-purple-deep);
}
.blog-article .viz-pair__tags {
  display: grid;
  gap: 8px;
  list-style: none;
}
.blog-article .blog-figure .viz-pair__tags li {
  padding: 8px 12px;
  border-radius: 8px;
  background: var(--blog-lavender-bg);
  font-size: 14px;
  line-height: 1.45;
  color: var(--blog-ink);
}
.blog-article .viz-pair__link {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 0 8px;
}
.blog-article .viz-pair__arrow {
  position: relative;
  display: block;
  padding-bottom: 10px;
  font-size: 12.5px;
  line-height: 1.35;
  text-align: center;
  color: var(--blog-muted);
}
.blog-article .viz-pair__arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 6px;
  bottom: 0;
  height: 2px;
  background: var(--blog-purple);
}
.blog-article .viz-pair__arrow::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  border: 6px solid transparent;
  border-left: 9px solid var(--blog-purple);
  border-right: 0;
}
.blog-article .viz-pair__arrow.is-back::before {
  left: 6px;
  right: 0;
}
.blog-article .viz-pair__arrow.is-back::after {
  right: auto;
  left: 0;
  border-left: 0;
  border-right: 9px solid var(--blog-purple);
}
.blog-article .viz-pair__foot {
  grid-column: 1 / -1;
  justify-self: center;
  margin: 18px 0 0;
  padding: 6px 16px;
  border-radius: 999px;
  background: var(--blog-dark);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
}

.blog-article .viz-pair__set {
  grid-column: 1 / -1;
  margin-top: 16px;
  padding: 18px 20px;
  border-radius: 12px;
  background: var(--blog-lavender-bg);
  border: 1.5px solid var(--blog-purple);
}
.blog-article .viz-pair__set-title {
  margin: 0 0 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--blog-ink);
}
.blog-article .viz-pair__set dl {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 6px 18px;
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}
.blog-article .viz-pair__set dt {
  font-weight: 700;
  color: var(--blog-purple-deep);
}
.blog-article .viz-pair__set dd {
  margin: 0;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 13.5px;
  color: var(--blog-ink);
  overflow-wrap: anywhere;
}
.blog-article .viz-pair__set dd span {
  display: block;
  font-family: var(--blog-font);
  color: var(--blog-muted);
}

/* Legend under a graphic: <ul class="viz-legend"><li><span class="viz-legend__key is-accent|is-green|is-dashed"></span><span>…</span></li></ul> */
.blog-article .viz-legend {
  display: grid;
  gap: 10px;
  margin-top: 18px;
  list-style: none;
}
.blog-article .blog-figure .viz-legend li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 10px;
  align-items: baseline;
  font-size: 15px;
  line-height: 1.55;
  color: var(--blog-ink-2);
}
.blog-article .viz-legend__key {
  display: block;
  height: 5px;
  border-radius: 3px;
  transform: translateY(-4px);
  background: var(--blog-purple);
}
.blog-article .viz-legend__key.is-green {
  background: var(--blog-green);
}
.blog-article .viz-legend__key.is-dashed {
  height: 2px;
  background: repeating-linear-gradient(90deg, #a9a5b8 0 6px, transparent 6px 11px);
}

/* Free-form diagram (inline SVG). Colour through classes so it follows the theme:
   .d-line (muted stroke), .d-accent (purple stroke), .d-fill (lavender fill), .d-purple,
   .d-dark, .d-white-bg (fills), .d-text, .d-muted, .d-white (text), .d-green, .d-red (strokes). */
.blog-article .viz-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
  font-family: var(--blog-font);
}
.blog-article .viz-svg .d-line { stroke: #c9c6d6; fill: none; }
.blog-article .viz-svg .d-accent { stroke: var(--blog-purple); fill: none; }
.blog-article .viz-svg .d-fill { fill: var(--blog-lavender-bg); }
.blog-article .viz-svg .d-purple { fill: var(--blog-purple); }
.blog-article .viz-svg .d-dark { fill: var(--blog-dark); }
.blog-article .viz-svg .d-white-bg { fill: #fff; }
.blog-article .viz-svg .d-text { fill: var(--blog-ink); }
.blog-article .viz-svg .d-muted { fill: var(--blog-muted); }
.blog-article .viz-svg .d-white { fill: #fff; }
.blog-article .viz-svg .d-green { stroke: var(--blog-green); fill: none; }
.blog-article .viz-svg .d-red { stroke: var(--blog-red); fill: none; }
.blog-article .viz-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.blog-article .viz-scroll > .viz-svg {
  min-width: 560px;
}

/* ---------- Related articles ---------- */
.blog-related {
  padding: 96px 0 104px;
  background: var(--blog-paper-2);
}
.blog-related .blog-section-head {
  border-top-color: var(--blog-line);
}

/* Related services after the article (include/seo-related-links.php) */
.blog-page + .seo-related-links {
  padding-top: 88px;
  padding-bottom: 24px;
}
.blog-page--article + .seo-related-links {
  width: 100%;
  max-width: 1180px;
  min-width: 0;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}
.blog-page + .seo-related-links ul:has(> li:nth-child(3):last-child) {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.blog-page + .seo-related-links h2 {
  margin-bottom: 32px;
  font-size: clamp(30px, 3vw, 44px);
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-height: 820px) and (min-width: 1100px) {
  /* Short laptop screens: keep the whole table of contents visible */
  .blog-service {
    display: none;
  }
}

@media (max-width: 1099px) {
  .blog-cover,
  .blog-hero .blog-frame {
    max-width: 848px;
  }
  .blog-page + .seo-related-links ul:has(> li:nth-child(3):last-child) {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-layout {
    grid-template-columns: minmax(0, 1fr);
    max-width: 848px;
    gap: 28px;
    padding-top: 48px;
  }
  .blog-aside {
    position: static;
    max-height: none;
    overflow: visible;
    gap: 16px;
  }
  .blog-toc {
    border: 1px solid var(--blog-line);
    border-radius: var(--blog-radius);
    padding: 16px 20px;
    background: var(--blog-paper-2);
  }
  .blog-toc__title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 0;
    border-bottom: 0;
    color: var(--blog-ink);
  }
  .blog-toc__title::after {
    content: "";
    width: 9px;
    height: 9px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translate(-2px, -2px);
    transition: transform 0.2s;
  }
  .blog-toc[open] .blog-toc__title::after {
    transform: rotate(-135deg);
  }
  .blog-toc[open] .blog-toc__title {
    padding-bottom: 12px;
    border-bottom: 1px solid var(--blog-line);
  }
  .blog-service {
    display: none;
  }
  .blog-masthead__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }
  .blog-topics {
    border-top: 0;
    padding-top: 0;
  }
  .blog-topics__list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
  }
  .blog-topics__item {
    border: 1px solid var(--blog-dark-line);
    border-radius: 999px;
    padding: 8px 10px 8px 18px;
    gap: 12px;
    font-size: 16px;
  }
  .blog-topics__item:hover,
  .blog-topics__item:focus-visible {
    padding-left: 18px;
    border-color: var(--blog-lavender);
  }
  .blog-featured__card {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-featured__media {
    min-height: 0;
  }
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .blog-masthead {
    padding: 112px 0 128px;
  }
  .blog-masthead__grid {
    margin-top: 36px;
  }
  .blog-masthead__intro {
    font-size: 17px;
  }
  .blog-featured {
    margin-top: -88px;
  }
  .blog-featured__body {
    padding: 26px 22px 26px;
  }
  .blog-featured__text {
    font-size: 16px;
  }
  .blog-topic {
    padding-top: 72px;
  }
  .blog-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 48px;
  }
  .blog-grid .blog-card__title {
    font-size: 21px;
  }
  .blog-services {
    margin-top: 88px;
    padding: 72px 0;
  }
  .blog-services__head {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-services__item {
    min-height: 0;
    padding: 24px 64px 24px 24px;
  }
  .blog-services__arrow {
    top: 26px;
    right: 24px;
  }

  .blog-frame {
    padding: 0 16px;
  }
  .blog-hero {
    padding: 108px 0 56px;
  }
  .blog-page--article.has-cover .blog-hero {
    padding-bottom: 96px;
  }
  .blog-hero__text {
    margin-top: 32px;
  }
  .blog-hero__title {
    font-size: 29px;
    line-height: 1.38;
  }
  .blog-meta {
    margin-top: 28px;
    align-items: flex-start;
  }
  .blog-cover {
    margin-top: -64px;
  }
  .blog-cover img {
    border-radius: 10px;
  }
  .blog-layout {
    padding-top: 32px;
    padding-bottom: 72px;
  }
  .blog-article {
    font-size: 17px;
  }
  .blog-article h2 {
    font-size: 25px;
  }
  .blog-article h3 {
    font-size: 19px;
  }
  .blog-article .blog-lead {
    padding: 22px 20px 22px 24px;
    font-size: 18px;
  }
  .blog-article .blog-cta {
    padding: 28px 22px;
    background-size: 200px auto;
  }
  .blog-article .blog-cta p {
    font-size: 19px;
  }
  .blog-article .blog-cta__button,
  .blog-article .blog-cta__line {
    width: 100%;
    margin-right: 0;
  }
  .blog-article .blog-figure {
    padding: 20px 16px;
  }
  .blog-article .blog-sources {
    padding: 4px 16px;
  }

  /* Tables become stacked cards: each row a card, each cell labelled by its column heading */
  .blog-article .blog-table-wrap {
    border: 0;
    border-radius: 0;
    overflow: visible;
    background: none;
  }
  .blog-article table.blog-table--compact {
    border: 1px solid var(--blog-line);
    border-radius: 12px;
    overflow: hidden;
    font-size: 14px;
  }
  .blog-article table.blog-table--compact th,
  .blog-article table.blog-table--compact td {
    padding: 10px 12px;
  }
  .blog-article table.blog-table--compact tbody td:first-child {
    min-width: 0;
  }
  .blog-article table.blog-table--stack,
  .blog-article table.blog-table--stack tbody,
  .blog-article table.blog-table--stack tr,
  .blog-article table.blog-table--stack td {
    display: block;
    width: 100%;
  }
  .blog-article table.blog-table--stack thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .blog-article table.blog-table--stack tr {
    margin-bottom: 12px;
    border: 1px solid var(--blog-line);
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
  }
  .blog-article table.blog-table--stack tbody tr + tr td,
  .blog-article table.blog-table--stack tbody tr:nth-child(even) td {
    background: none;
  }
  .blog-article table.blog-table--stack td {
    padding: 10px 16px;
    border-top: 1px solid var(--blog-line);
    font-size: 15px;
  }
  .blog-article table.blog-table--stack td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 2px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.03em;
    color: var(--blog-muted);
  }
  .blog-article table.blog-table--stack tbody tr td:first-child {
    border-top: 0;
    background: var(--blog-paper-3);
    color: var(--blog-ink);
    font-size: 16px;
    font-weight: 700;
  }
  .blog-article table.blog-table--stack tbody tr td:first-child::before {
    content: none;
  }

  /* Components */
  .blog-article .viz-range__row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "label" "track" "value";
    row-gap: 6px;
  }
  .blog-article .viz-range__axis-wrap {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-article .viz-range__axis {
    grid-column: 1;
  }
  .blog-article .viz-steps {
    grid-auto-flow: row;
    gap: 22px;
  }
  .blog-article .viz-steps::before {
    left: 9px;
    right: auto;
    top: 10px;
    bottom: 10px;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--blog-lavender), var(--blog-purple));
  }
  .blog-article .blog-figure .viz-steps__item {
    padding: 0 0 0 36px;
  }
  .blog-article .viz-tiers {
    grid-auto-flow: row;
  }
  .blog-article .viz-pair {
    grid-template-columns: minmax(0, 1fr);
  }
  .blog-article .viz-pair__link {
    flex-direction: row;
    justify-content: center;
    gap: 28px;
    padding: 12px 0;
  }
  .blog-article .viz-pair__arrow {
    flex: 0 1 140px;
    min-height: 64px;
    padding: 0 0 0 18px;
    text-align: left;
    display: flex;
    align-items: center;
  }
  .blog-article .viz-pair__arrow::before {
    left: 4px;
    right: auto;
    top: 0;
    bottom: 6px;
    width: 2px;
    height: auto;
  }
  .blog-article .viz-pair__arrow::after {
    left: -1px;
    right: auto;
    bottom: -3px;
    top: auto;
    border: 6px solid transparent;
    border-top: 9px solid var(--blog-purple);
    border-bottom: 0;
  }
  .blog-article .viz-pair__arrow.is-back::before {
    top: 6px;
    bottom: 0;
    left: 4px;
  }
  .blog-article .viz-pair__arrow.is-back::after {
    top: -3px;
    bottom: auto;
    left: -1px;
    border: 6px solid transparent;
    border-bottom: 9px solid var(--blog-purple);
    border-top: 0;
  }
  .blog-article .blog-figure .viz-tiers__item,
  .blog-article .blog-figure .viz-tiers__item[data-level] {
    min-height: 0;
    border-radius: 12px;
  }
  .blog-article .blog-keyfact__value {
    font-size: 24px;
  }
}

/* Thai has no letter case: no tracking on the small all-caps labels */
html[lang="th"] .blog-eyebrow,
html[lang="th"] .blog-topics__label,
html[lang="th"] .blog-toc__title,
html[lang="th"] .blog-service__label,
html[lang="th"] .blog-keyfacts__title,
html[lang="th"] .viz-compare__kicker {
  letter-spacing: 0.01em;
  font-size: 15px;
}

@media (prefers-reduced-motion: reduce) {
  .blog-page *,
  .blog-page *::before,
  .blog-page *::after {
    transition: none !important;
  }
}
