/* ===== Related posts ("More from …") ===== */
.related-posts {
  margin-top: 64px;
}

.related-posts__container {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 100%;
}
@media (min-width: 768px)  { .related-posts__container { padding: 0 64px; } }
@media (min-width: 1200px) { .related-posts__container { padding: 0 16px; max-width: 1232px; } }

.related-posts__title,
.post-feedback__title {
  margin: 0 0 24px;
  font-family: "Inter", sans-serif;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: -0.2px;
  text-transform: none;
  color: var(--text-main);
}
@media (min-width: 768px) {
  .related-posts__title,
  .post-feedback__title {
    font-size: 28px;
    line-height: 32px;
    letter-spacing: -0.5px;
  }
}
.post-feedback__title { text-align: center; }

.related-posts__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px)  { .related-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1200px) { .related-posts__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }


/* ===== Likes counter in the post header ===== */
.post-likes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: 1em;
  font-size: 13px;
  line-height: 1;
  color: var(--text-tetriary);
}
.post-likes[hidden] { display: none; }
.post-likes svg {
  width: 15px;
  height: 15px;
}

/* ===== Post feedback ("Did you like this article?") ===== */
.post-feedback { margin-top: 64px; }

.post-feedback__container {
  margin: 0 auto;
  padding: 0 16px;
  max-width: 100%;
}
@media (min-width: 768px)  { .post-feedback__container { padding: 0 64px; } }
@media (min-width: 1200px) { .post-feedback__container { padding: 0 16px; max-width: 1232px; } }

/* inside the article grid: centred on the article column, the grid cell already has the side padding */
.single-layout .post-feedback { margin-top: 48px; }
.single-layout .post-feedback__container { padding: 0; max-width: none; }

@media only screen and (min-width: 850px) {
  .single-layout .post-feedback { margin-top: 34px; }
}

.post-feedback__buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.post-feedback__btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  min-height: 0;
  padding: 6px 20px 6px 6px;
  font-family: "Inter", sans-serif;
  font-size: 14px;
  line-height: 18px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--button-secondary-text-default);
  background: var(--background-white-to-black2);
  border: 0;
  border-radius: 999px;
  box-shadow: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.post-feedback__btn[aria-disabled="true"] { cursor: default; pointer-events: none; }

.post-feedback__btn:hover { background: var(--hover-overlay); }
.post-feedback__btn:focus-visible {
  outline: 2px solid var(--text-tetriary);
  outline-offset: 2px;
}

/* round icon holder */
.post-feedback__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--image-placeholder);
  color: var(--text-main);
  transition: background 0.2s, color 0.2s;
}
.post-feedback__icon svg { width: 16px; height: 16px; }
.post-feedback__btn--dislike .post-feedback__icon svg { transform: scaleY(-1); }

/* selected: like */
.post-feedback__btn--like[aria-pressed="true"] {
  color: #fff;
  background: #ff7a00;
}
.post-feedback__btn--like[aria-pressed="true"] .post-feedback__icon {
  background: #fff6ec;
  color: #0c0c0d;
}

/* selected: dislike */
.post-feedback__btn--dislike[aria-pressed="true"] {
  color: var(--button-primary-text-default);
  background: var(--button-primary-fill-default);
}
@media (max-width: 767px) {
  .post-feedback__buttons { gap: 8px; }

  .post-feedback__btn {
    gap: 8px;
    padding: 6px 12px 6px 6px;
    font-size: 13px;
  }

  .post-feedback__icon { width: 32px; height: 32px; }
}

.post-feedback__btn--dislike[aria-pressed="true"] .post-feedback__icon {
  background: color-mix(in srgb, var(--button-primary-text-default) 14%, transparent);
  color: var(--button-primary-text-default);
}

/* ===== AI assistants buttons (post hero) ===== */
.ai-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.ai-tools .ai-pill {
  display: inline-block;
  padding: 0.45rem 1rem;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
}
.ai-tools .ai-pill:hover { color: #fff; opacity: 0.9; }
.ai-pill--chatgpt { background: #10a37f; }
.ai-pill--perplex { background: #6b4ed4; }
.ai-pill--grok    { background: #2d2d2d; }
.ai-pill--gemini  { background: #4285f4; }


/* ===== Sticky table of contents ===== */
.post-sidebar .post-toc-sticky {
  position: sticky;
  top: var(--post-sticky-top, 85px);
}

/* ===== FAQ (details/summary) ===== */
.faq .faq__list { padding-bottom: 8px; }
.faq .faq__item { margin: 0; }

.faq .faq__question {
  position: relative;
  display: block;
  padding: 15px 40px 18px 1em;
  font-size: 0.875em;
  font-weight: 500;
  line-height: 18px;
  color: var(--text-main);
  list-style: none;
  cursor: pointer;
}
.faq .faq__question::-webkit-details-marker { display: none; }
.faq .faq__question:focus-visible {
  outline: 2px solid var(--text-tetriary);
  outline-offset: -2px;
}

/* separator between items (not above the first one) */
.faq .faq__item + .faq__item .faq__question::before {
  content: "";
  position: absolute;
  top: 0;
  left: 1em;
  width: calc(100% - 1em);
  height: 1px;
  background: var(--border-secondary);
}

/* arrow */
.faq .faq__question::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 16px;
  width: 0.875em;
  height: 0.875em;
  background-color: var(--text-main);
  -webkit-mask: url("../../icons/arrow-right.svg") center / contain no-repeat;
  mask: url("../../icons/arrow-right.svg") center / contain no-repeat;
  transform: rotate(90deg);
}

.faq .faq__item[open] .faq__question::after {
  top: 0.95em;
  transform: rotate(-90deg);
}

@media (prefers-reduced-motion: no-preference) {
  .faq { interpolate-size: allow-keywords; }

  .faq .faq__item::details-content {
    block-size: 0;
    overflow: hidden;
    transition: block-size 0.3s ease, content-visibility 0.3s ease allow-discrete;
  }
  .faq .faq__item[open]::details-content { block-size: auto; }

  .faq .faq__question::after { transition: transform 0.3s ease, top 0.3s ease; }
}

.faq .faq__answer {
  padding: 8px 16px 16px;
  font-size: 12px;
  line-height: 18px;
}
.faq .faq__answer p:last-child { margin-bottom: 0; }

@media only screen and (min-width: 850px) {
  .faq .faq__question { padding-left: 24px; }
  .faq .faq__answer   { padding: 16px 24px 24px; }
}

/* ===== Post layout (replaces Flatsome row / col) ===== */
.single-container,
.single-layout {
  width: 100%;
  max-width: 1077px;
  margin: 0 auto;
}

.single-container { padding: 0 15px; }

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

/* cell = former .col: 15px side padding */
.single-layout > * {
  min-width: 0;
  padding: 0 15px 1em;
}

.single-layout__hero { grid-column: 1 / -1; }

@media only screen and (min-width: 850px) {
  .single-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } /* 8/12 + 4/12 */
  .single-layout > * { padding-bottom: 30px; }
}

/* ===== Share block (replaces the Flatsome [share] shortcode) ===== */
.blog-share .share-icons.yesim-share {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 0;
}

.yesim-share .yesim-share__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  min-height: 0;
  margin: 0;
  padding: 0;
  color: #ACAEB4;
  background: none;
  border: 0;
  border-radius: 7px;
  box-shadow: none;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.3s ease-in-out;
}
.yesim-share .yesim-share__btn svg { display: block; width: 24px; height: 24px; }
.yesim-share .yesim-share__btn:focus-visible { outline: 2px solid var(--text-tetriary); outline-offset: 2px; }

.yesim-share .yesim-share__btn--copy:is(:hover, :focus-visible)      { color: #FF7A00; }
.yesim-share .yesim-share__btn--facebook:is(:hover, :focus-visible)  { color: #1877F2; }
.yesim-share .yesim-share__btn--x:is(:hover, :focus-visible)         { color: var(--text-main); }
.yesim-share .yesim-share__btn--threads:is(:hover, :focus-visible)   { color: var(--text-main); }
.yesim-share .yesim-share__btn--pinterest:is(:hover, :focus-visible) { color: #E60023; }
.yesim-share .yesim-share__btn--linkedin:is(:hover, :focus-visible)  { color: #0A66C2; }
.yesim-share .yesim-share__btn--telegram:is(:hover, :focus-visible)  { color: #26A5E4; }

.yesim-snackbar {
  position: fixed;
  bottom: 20px;
  left: 50%;
  z-index: 10000;
  transform: translate(-50%, 8px);
  padding: 10px 18px;
  font-size: 14px;
  line-height: 18px;
  color: #fff;
  background: #2d2d2d;
  border-radius: 100px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.yesim-snackbar.is-visible { opacity: 1; transform: translate(-50%, 0); }

.blog-share .share-title { display: inline-block; margin-bottom: 8px; }
.blog-share .share-icons-wrapper { margin-bottom: 6px; }