:root {
  --blog-black: #000;
  --blog-hero: #101010;
  --blog-white: #f4f4f4;
  --blog-card: #fff;
  --blog-text: #262832;
  --blog-muted: #5b5d67;
  --blog-faint: #141414;
  --blog-line: #ededed;
  --blog-accent: #ee502c;
  --blog-orange: #ff8a17;
  --blog-radius: 8px;
}

header div:has(+ a) {
  margin-bottom: 0;
}

@media (max-width: 800px) {
  header a {
    margin-right: auto;
  }
}
header a {
  font-family: Inter, sans-serif;
  font-weight: 400 !important;
  color: #5e5e5e;
}

main {
  display: flex;
  flex-direction: column;
}

main img {
  opacity: 1 !important;
}

body:has(.blogIndexContent),
body:has(.blogIndexContent) main {
  overflow-x: hidden;
}

.blogArticleHero {
  order: 1;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 130px 0 125px;
  background: #fdf9f0;
}

.blogArticleHero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 880px;
  padding-left: 18px;
  padding-right: 18px;
  box-sizing: border-box;
}

.blogArticleHero__breadcrumbs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 0 0 40px;
}

.blogArticleHero__breadcrumbs :is(a, span) {
  color: #050505;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  opacity: 1;
}

.blogArticleHero__breadcrumbs span {
  color: #6b6b72;
}

.blogArticleHero h1 {
  margin: 0 0 28px !important;
  /* color: #f5f5f5 !important; */
  font-size: 34px;
  font-weight: 800;
  line-height: 1.08;
  text-align: center;
}

.blogArticleHero__inner > p {
  max-width: 665px;
  margin: 0 0 28px !important;
  /* color: #686a74 !important; */
  /* font-size: 11px; */
  font-weight: 400;
  line-height: 1.55;
  text-align: center !important;
}

.blogArticleHero__author,
.blogArticleHero__author div,
.blogRelatedPosts__author,
.blogRelatedPosts__author div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.blogArticleHero__author {
  gap: 12px;
}

.blogArticleHero__author img,
.blogRelatedPosts__author img {
  width: 32px;
  height: 32px;
  margin: 0;
  border-radius: 50%;
  object-fit: cover;
}

.blogArticleHero__author p {
  margin: 0 !important;
  text-align: center;
}

.blogArticleHero__author p:first-child {
  color: #050505 !important;
  /* font-size: 11px; */
  font-weight: 700;
  line-height: 1.25;
}

.blogArticleHero__author p:last-child {
  color: #70727a !important;
  font-size: 14px;
  line-height: 1.35;
}

.blogArticleBody {
  order: 2;
  width: 100% !important;
  max-width: none !important;
  /* margin: 0 !important; */
  padding-top: var(--mar-80) !important;
}

.blogArticleBody__layout {
  display: grid !important;
  grid-template-columns: 306px minmax(0, 953px);
  gap: 119px;
  align-items: start !important;
}

.blogArticleBody__toc {
  max-width: 306px !important;
  min-width: 0 !important;

  @media (min-width: 1024px) {
    & li:not(:last-child) {
      margin-bottom: 12px !important;
    }

    & a {
      padding: 0 !important;
      max-width: max-content !important;
    }

    & .embla__container {
      padding-bottom: 6px;
      transform: unset !important;
    }
  }
}

.blogArticleBody__toc .tocPagination {
  display: none;
}

.blogArticleBody__toc .aside_inner {
  position: sticky;
  /* top: 34px; */
}

.blogArticleBody__toc h2 {
  margin: 0 0 14px !important;
  color: #050505 !important;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.2;
}

.blogArticleBody__toc ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0 !important;
}

.blogArticleBody__toc li {
  margin: 0 !important;
}

.blogArticleBody__toc a.btn_gray {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;

  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: left;

  @media (min-width: 1024px) {
    opacity: 0.86;
    border: 0 !important;
    background: transparent;
    color: #5e5e5e !important;
  }
}

.blogArticleBody__content {
  width: 100%;
  max-width: 953px;
  padding-left: 44px;
  border-left: 1px solid #e0e0e0;

  & .accord__contaner {
    margin-bottom: 0 !important;
  }

  & #faq {
    width: unset !important;
    max-width: unset !important;
    transform: unset !important;
    padding-left: unset !important;
    border-left: unset !important;
  }
}

.blogArticleBody__meta,
.blogRelatedPosts__meta {
  display: flex;
  align-items: center;
  gap: 13px;
}

.blogArticleBody__meta {
  margin: 0 0 13px;
}

.blogArticleBody__meta :is(time, p),
.blogRelatedPosts__meta :is(time, p) {
  margin: 0 !important;
  /* color: #e9e9e9 !important; */
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.blogArticleBody__meta span,
.blogRelatedPosts__meta span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--blog-accent);
}

.blogArticleBody__section:not(:last-child) {
  margin: 0 0 30px !important;
}

.blogArticleBody__section h2 {
  margin: 0 0 12px !important;
  color: var(--blog-text) !important;
  /* font-size: 27px; */
  font-weight: 800;
  line-height: 1.12;
  text-align: left;
}

.blogArticleBody__section > p,
.blogArticleBody__bullets li,
.blogArticleBody__steps p {
  color: #404040 !important;
  /* font-size: 11px; */
  font-weight: 400;
  line-height: 1.55;
}

.blogArticleBody__section p {
  margin: 0 0 14px !important;
}

.blogArticleBody__image {
  width: 100%;
  aspect-ratio: 906 / 454;
  margin: 30px 0 14px;
  overflow: hidden;
  border-radius: 8px;
  background: #180c09;
}

.blogArticleBody__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

table {
  & thead {
    p {
      color: white !important;
    }
  }
}

.blogArticleBody__bullets {
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin: 15px 0 0 !important;
}

.blogArticleBody__bullets li {
  margin: 0 !important;
  padding-left: 19px;
}

.blogArticleBody__bullets li::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 10px;
  height: 8px;
  border-left: 2px solid var(--blog-accent);
  border-bottom: 2px solid var(--blog-accent);
  transform: rotate(-45deg);
}

.blogRelatedPosts {
  order: 4;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 83px 0 88px;
  background: var(--blog-white) !important;
  background-image: none !important;
}

.blogRelatedPosts h2 {
  /* margin: 0 0 47px !important; */
  color: #030303 !important;
  /* font-size: 27px; */
  /* font-weight: 800; */
  line-height: 1.15;
  text-align: center;
}

.blogRelatedPosts__cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 auto;
}

.blogRelatedPosts__card {
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: var(--blog-card);
  box-shadow: 0 10px 30px rgba(20, 20, 20, 0.12);

  padding: 24px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.blogRelatedPosts__card:hover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px rgba(20, 20, 20, 0.18);
}

@media (prefers-reduced-motion: reduce) {
  .blogRelatedPosts__card,
  .blogRelatedPosts__image img {
    transition: none;
  }

  .blogRelatedPosts__card:hover {
    transform: none;
  }
}

.blogRelatedPosts__card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  gap: 16px;
}

.blogRelatedPosts__image {
  height: 132px;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  overflow: hidden;
}

.blogRelatedPosts__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blogRelatedPosts__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.blogRelatedPosts__meta {
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
}

.blogRelatedPosts__meta span {
  display: none;
}

.blogRelatedPosts__meta :is(time, p) {
  color: #5f626b !important;
  font-size: 16px;
  font-weight: 500;
}

.blogRelatedPosts__card h3 {
  margin: 0 0 8px !important;
  color: #050505 !important;
  /* font-size: 18px; */
  font-weight: 800;
  line-height: 1.08;
}

.blogRelatedPosts__content > p {
  margin: 0 0 18px !important;
  color: #62646d !important;
  line-height: 1.45;
}

.blogRelatedPosts__author {
  flex-direction: row;
  align-items: center;
  gap: 7px;
  margin-top: auto;
}

.blogRelatedPosts__author img {
  width: 28px;
  height: 28px;
  min-width: 28px;
}

.blogRelatedPosts__author div {
  align-items: flex-start;
}

.blogRelatedPosts__author p {
  margin: 0 !important;
}

.blogRelatedPosts__author p:first-child {
  color: #0b0b0b !important;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
}

.blogRelatedPosts__author p:last-child {
  display: none;
}

.blogIndexContent {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 92px;
}

.blogIndexContent > .wrapper {
  max-width: 1360px !important;
}

.blogIndexContent .blogCategories {
  padding: 0;
  margin: 0 auto 82px;
  text-align: center;
}

.blogIndexContent .blogCategories h2,
.blogIndexContent .blogLatestPosts > h2 {
  margin: 0 0 18px !important;
  color: #050505 !important;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.blogIndexContent .blogCategories > p,
.blogIndexContent .blogLatestPosts > p {
  max-width: 760px;
  margin: 0 auto !important;
  color: #5e5e5e !important;
  font-size: 18px;
  font-weight: 500;
  line-height: 1.45;
  text-align: center;
}

.blogIndexContent .blogCategories__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 12px;
  max-width: 848px;
  margin: 48px auto 0 !important;
}

.blogIndexContent .blogCategories__list li {
  flex: 0 0 calc((100% - 36px) / 4);
  margin: 0 !important;
}

.blogIndexContent .blogCategories__list a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 28px;
  border: 1px solid #ffb9ad;
  border-radius: 100px;
  color: #ff7f6f !important;
  background: #fdf4f2;
  font-size: 16px;
  font-weight: 400;
  text-align: center;

  &::after {
    content: none !important;
  }
}

.blogIndexContent .blogCategories__list a.active,
.blogIndexContent .blogCategories__list a:hover {
  border-color: #ffd8cf;
  background: #ffd8cf;
  color: #f05a3f !important;
  scale: 1;
}

.blogIndexContent .blogLatestPosts {
  background: transparent;
}

.blogIndexContent .blogLatestPostsTabs {
  position: relative;
}

.blogIndexContent .blogLatestPosts {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
}

.blogIndexContent .blogLatestPosts.is-active {
  position: relative;
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.blogIndexContent .blogLatestPosts > p {
  margin-bottom: 30px !important;
}

.blogIndexContent .blogRelatedPosts__cards {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  max-width: 1360px;
  margin: 0 auto;
}

.blogIndexContent .blogRelatedPosts__card {
  min-height: 0;
  padding: 24px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 0 26px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}

.blogIndexContent .blogRelatedPosts__card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 16px;
}

.blogIndexContent .blogRelatedPosts__image {
  width: 100%;
  height: 132px;
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
}

.blogIndexContent .blogRelatedPosts__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blogRelatedPosts__image img {
  transition: transform 0.4s ease;
}

.blogRelatedPosts__card:hover .blogRelatedPosts__image img {
  transform: scale(1.06);
}

.blogIndexContent .blogRelatedPosts__content {
  display: flex;
  flex: 1;
  flex-direction: column;
}

.blogIndexContent .blogRelatedPosts__meta {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 12px;
}

.blogIndexContent .blogRelatedPosts__meta :is(time, p) {
  margin: 0 !important;
  color: #5e5e5e !important;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.2;
}

.blogIndexContent .blogRelatedPosts__card h3 {
  margin: 0 0 12px !important;
  color: #050505 !important;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.05;
}

.blogIndexContent .blogRelatedPosts__content > p {
  margin: 0 0 22px !important;
  color: #5e5e5e !important;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.45;
}

.blogIndexContent .blogRelatedPosts__author {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

.blogIndexContent .blogRelatedPosts__author img {
  width: 28px;
  height: 28px;
  min-width: 28px;
}

.blogIndexContent .blogRelatedPosts__author p:first-child {
  color: #050505 !important;
  font-size: 14px;
  font-weight: 500;
}

.blogIndexContent .blogLatestPosts__more {
  min-width: 258px;
  margin: 28px auto 0;
  padding: 18px 58px;
  box-shadow: 0 0 24px rgba(238, 80, 44, 0.48);
}

.blogLatestPosts__more[hidden] {
  display: none !important;
}

.blogArticleBody__table {
  width: 100%;
  overflow-x: hidden;
}

.blogArticleBody__table table,
.blogArticleBody__table table.comparison-table {
  width: 100% !important;
  min-width: 0 !important;
  table-layout: fixed !important;
}

/* neutralise the forced last-column widths from the global min CSS */
.blogArticleBody__table th,
.blogArticleBody__table td,
.blogArticleBody__table thead th:last-child,
.blogArticleBody__table tbody tr td:last-child {
  width: auto !important;
  padding: 14px !important;
  vertical-align: top;
  text-align: left;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto;
}

/* kill `table p { min-width: max-content }` that prevents wrapping */
.blogArticleBody__table th p,
.blogArticleBody__table td p {
  min-width: 0 !important;
  max-width: 100% !important;
  margin: 0 !important;
  white-space: normal !important;
  word-break: normal !important;
  overflow-wrap: break-word !important;
  hyphens: auto;
}

@media (max-width: 768px) {
  .blogArticleBody__table th,
  .blogArticleBody__table td {
    padding: 10px 8px !important;
  }

  .blogArticleBody__table th p,
  .blogArticleBody__table td p {
    font-size: 13px !important;
    line-height: 1.35 !important;
  }
}

@media (max-width: 1024px) {
  .blogArticleBody {
    margin: 0 auto !important;
    padding-top: 0 !important;
    max-width: 93% !important;
  }

  .blogArticleBody__layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .blogArticleBody__toc {
    background-color: white !important;
    position: static !important;
    top: auto !important;
    left: auto !important;
    /* width: 100vw !important; */
    max-width: none !important;
    /* min-width: 0 !important; */
    max-height: none !important;
    margin-left: 0 !important;
    padding: var(--mar-44) 0;
    transform: none !important;
    /* background: #000 !important; */
    overflow: hidden !important;
    z-index: 1;

    @media (min-width: 1024px) {
      & a:hover {
        background-color: transparent !important;
      }
    }
  }

  .blogArticleBody__toc .aside_inner {
    position: static !important;
    width: 95%;
    max-width: 1280px;
    margin: 0 auto;
    overflow: visible !important;
    max-height: none !important;
  }

  .blogArticleBody__toc .embla {
    width: 100%;
    overflow: hidden;
  }

  .blogArticleBody__toc h2 {
    margin-bottom: 28px !important;
    /* color: #fff !important; */
  }

  .blogArticleBody__toc ul {
    flex-flow: row nowrap;
    gap: 8px !important;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
  }

  .blogArticleBody__toc li {
    flex: 0 0 auto;
  }

  .blogArticleBody__toc a.btn_gray {
    display: block;
    min-width: max-content;
    padding: 8px 16px;
    border: 0;
    border-radius: 100px;
    /* background-color: #191919; */
    /* color: #999999 !important; */
    font-weight: 400 !important;
    line-height: 160%;
    opacity: 1;
    text-transform: none !important;
  }

  .blogArticleBody__toc a.btn_gray:hover {
    /* background-color: var(--accent1) !important; */
    /* color: #fff !important; */
    /* scale: 1 !important; */
  }

  .blogArticleBody__toc .tocPagination {
    display: block;
    margin-top: 24px;
  }

  .blogArticleBody__content {
    max-width: none;
    margin-top: 0px;
    padding-left: 0px !important;
    border-left: 0;
    width: 100%;
  }

  #faq {
    width: 95%;
    max-width: 95% !important;
    padding-left: 24px;
    transform: none;
  }

  .blogRelatedPosts__cards {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .blogIndexContent .blogRelatedPosts__cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 760px;
  }
}

@media (max-width: 640px) {
  .blogArticleHero {
    padding: 154px 0 54px;
  }

  .blogArticleHero__breadcrumbs {
    flex-wrap: wrap;
    margin-bottom: 30px;
  }

  .blogArticleHero h1 {
    font-size: 30px;
  }

  .blogArticleHero__inner > p {
    font-size: 16px;
  }

  .blogArticleBody__content {
    padding-left: 16px;
    border-left-width: 2px;
  }

  .blogArticleBody__section h2,
  #faq > h2,
  .blogRelatedPosts h2 {
    /* font-size: 24px; */
  }

  .blogArticleBody__table {
    overflow-x: auto;
  }

  .blogRelatedPosts {
    padding: 54px 0;
  }

  .blogIndexContent {
    padding-bottom: 54px;
  }

  .blogIndexContent .blogCategories {
    margin-bottom: 58px;
  }

  .blogIndexContent .blogCategories__list {
    gap: 10px;
    margin-top: 24px !important;
  }

  .blogIndexContent .blogCategories__list a {
    min-width: 0;
    width: 100%;
    height: 46px;
  }

  .blogIndexContent .blogCategories__list li {
    width: calc(50% - 5px);
  }

  .blogIndexContent .blogRelatedPosts__cards {
    grid-template-columns: 1fr;
    max-width: 440px;
  }

  .blogIndexContent .blogRelatedPosts__card {
    padding: 18px;
  }

  .blogIndexContent .blogRelatedPosts__card h3 {
    font-size: 22px;
  }

  .blogIndexContent .blogRelatedPosts__image {
    height: 180px;
  }
}

ol li,
.blogArticleBody__bullets li {
  font-size: 16px;
}

p a {
  color: var(--accent1) !important;
}

/* ===== Mobile tables: fit to screen, wrap by words (no scroll, no char-break) ===== */
@media (max-width: 768px) {
  .table {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden;
  }
  .table table {
    min-width: 0 !important;
    width: 100% !important;
    table-layout: auto;
  }
  .table table th,
  .table table td {
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
    hyphens: none;
    font-size: 12px;
    padding: 8px 6px;
    vertical-align: top;
  }
  .table table th p,
  .table table td p {
    font-size: 12px;
    margin: 0;
  }
}
