/* ── Content sections: features, how-to steps, FAQ ──
   Used by _includes/section-features.html, section-steps.html and section-faq.html
   on the home page and on every tool page. */
.cs {
  --cs-brand: #dd4db5;
  --cs-brand-strong: #c2379b;
  --cs-brand-soft: #fdf1fa;
  --cs-ink: #17131f;
  --cs-text: #4b4758;
  --cs-muted: #7b7788;
  --cs-line: #e9e7ef;
  --cs-tint: #faf9fc;
  box-sizing: border-box;
  width: 100%;
  padding: 72px 0;
  background: #fff;
  color: var(--cs-text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  text-align: left;
  scroll-margin-top: 90px;
}

.cs--tint {
  border-top: 1px solid var(--cs-line);
  border-bottom: 1px solid var(--cs-line);
  background: var(--cs-tint);
}

.cs *,
.cs *::before,
.cs *::after {
  box-sizing: border-box;
}

.cs p {
  margin: 0;
}

.cs ul,
.cs ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cs ul li,
.cs ol li {
  margin: 0;
  padding: 0;
}

/* The theme sizes every "ul li span" as a 20px icon slot */
.cs ul li span,
.cs ol li span {
  width: auto;
  margin-right: 0;
}

.cs a {
  text-decoration: none;
}

.cs svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cs-container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
}

.cs-container--narrow {
  max-width: 800px;
}

.cs-center {
  text-align: center;
}

/* ── Heading ── */
.cs-head {
  margin-bottom: 36px;
  text-align: center;
}

.cs .cs-kicker {
  margin-bottom: 8px;
  color: var(--cs-brand-strong);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs .cs-h2 {
  margin: 0;
  color: var(--cs-ink);
  font-family: inherit;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
  /* Some theme layouts centre every h2; follow the heading block instead */
  text-align: inherit;
  text-wrap: balance;
}

/* ── Features ── */
.cs-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px 28px;
}

.cs .cs-feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0 0 14px;
  border-radius: 12px;
  background: var(--cs-brand-soft);
  color: var(--cs-brand-strong);
}

.cs .cs-feature-icon svg {
  width: 22px;
  height: 22px;
}

.cs .cs-feature-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.cs .cs-feature-title,
.cs .cs-step-title {
  margin: 0 0 6px;
  color: var(--cs-ink);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.cs .cs-feature-desc,
.cs .cs-step-desc {
  color: var(--cs-text);
  font-size: 15px;
  line-height: 1.6;
  text-align: left;
}

/* ── Steps ── */
.cs-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

/* Pick the column count from the number of steps so the last row is not left with one card */
@media (min-width: 901px) {
  .cs-steps--n3,
  .cs-steps--n5,
  .cs-steps--n6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .cs-steps--n4,
  .cs-steps--n7,
  .cs-steps--n8 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .cs-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cs-steps-wrap--video {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.cs .cs-steps-wrap--video .cs-steps {
  grid-template-columns: minmax(0, 1fr);
}

.cs-video {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: #000;
}

.cs-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cs .cs-step {
  display: block;
  padding: 24px;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: #fff;
}

.cs .cs-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin: 0 0 14px;
  border-radius: 50%;
  background: var(--cs-brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.cs .cs-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 26px;
  margin-top: 32px;
  border-radius: 12px;
  background: var(--cs-brand);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 8px 20px rgba(221, 77, 181, 0.3);
  transition: background 0.18s ease;
}

.cs .cs-btn:hover {
  background: var(--cs-brand-strong);
  color: #fff;
}

/* ── Related tools ── */
.cs--bordered {
  border-top: 1px solid var(--cs-line);
}

.cs .cs-sub {
  max-width: 560px;
  margin: 10px auto 0;
  color: var(--cs-muted);
  font-size: 16px;
  line-height: 1.5;
}

.cs-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 10px;
}

.cs .cs-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
  min-height: 54px;
  padding: 12px 18px;
  border: 1px solid var(--cs-line);
  border-radius: 12px;
  background: #fff;
  color: var(--cs-ink);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cs .cs-link svg {
  width: 18px;
  height: 18px;
  color: #c4c1cf;
  transition: color 0.15s ease, transform 0.15s ease;
}

.cs .cs-link:hover,
.cs .cs-link:focus-visible {
  border-color: var(--cs-brand);
  background: var(--cs-brand-soft);
  color: var(--cs-brand-strong);
  outline: none;
}

.cs .cs-link:hover svg {
  color: var(--cs-brand);
  transform: translateX(3px);
}

/* ── FAQ ── */
.cs details.cs-faq {
  margin: 0 0 10px;
  padding: 0;
  border: 1px solid var(--cs-line);
  border-radius: 14px;
  background: #fff;
}

.cs .cs-faq > summary {
  position: relative;
  display: block;
  margin: 0;
  padding: 18px 52px 18px 20px;
  border-radius: 14px;
  color: var(--cs-ink);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  list-style: none;
  text-align: left;
  cursor: pointer;
}

.cs .cs-faq > summary::-webkit-details-marker {
  display: none;
}

/* Own chevron, so the section does not depend on the theme's icon font */
.cs .cs-faq > summary::after,
.cs .cs-faq[open] > summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 22px;
  width: 8px;
  height: 8px;
  margin-top: -6px;
  border: solid var(--cs-muted);
  border-width: 0 2px 2px 0;
  font-family: inherit;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
}

.cs .cs-faq[open] > summary::after {
  margin-top: -2px;
  transform: rotate(-135deg);
}

.cs .cs-faq > summary:focus-visible {
  outline: 3px solid rgba(221, 77, 181, 0.35);
}

.cs .cs-faq-answer {
  padding: 0 20px 20px;
  color: var(--cs-text);
  font-size: 15px;
  line-height: 1.65;
  text-align: left;
  overflow-wrap: anywhere;
}

.cs .cs-faq-answer a {
  color: var(--cs-brand-strong);
  text-decoration: underline;
}

@media (max-width: 900px) {
  .cs-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-steps-wrap--video {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 600px) {
  .cs-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs {
    padding: 52px 0;
  }

  .cs-container {
    padding: 0 16px;
  }

  .cs-head {
    margin-bottom: 28px;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .cs * {
    transition: none !important;
  }
}

/* ── Heading with a link or controls on the right (posts, infographics) ── */
.cs .cs-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px 24px;
  text-align: left;
}

.cs .cs-head--split .cs-sub {
  margin: 8px 0 0;
}

.cs .cs-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--cs-brand-strong);
  font-size: 15px;
  font-weight: 600;
}

.cs .cs-more svg {
  width: 18px;
  height: 18px;
  transition: transform 0.15s ease;
}

.cs .cs-more:hover {
  color: var(--cs-brand);
}

.cs .cs-more:hover svg {
  transform: translateX(3px);
}

/* ── Blog post cards ── */
.cs-posts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.cs .cs-post {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cs .cs-post:hover {
  border-color: #f6cfea;
  box-shadow: 0 12px 32px rgba(23, 19, 31, 0.08);
  transform: translateY(-2px);
}

.cs .cs-post-media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--cs-brand-soft);
}

.cs .cs-post-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.cs .cs-post:hover .cs-post-media img {
  transform: scale(1.03);
}

.cs .cs-post-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #fdf1fa, #f6cfea);
  color: var(--cs-brand);
}

.cs .cs-post-placeholder svg {
  width: 40px;
  height: 40px;
  stroke-width: 1.5;
}

.cs .cs-post-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.cs .cs-post-meta {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
  color: var(--cs-muted);
  font-size: 13px;
}

.cs .cs-post-title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
}

.cs .cs-post-title a {
  color: var(--cs-ink);
}

.cs .cs-post-title a:hover {
  color: var(--cs-brand-strong);
}

.cs .cs-post-desc {
  margin-bottom: 16px;
  color: var(--cs-text);
  font-size: 14px;
  line-height: 1.55;
}

.cs .cs-post-author {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--cs-line);
  color: var(--cs-ink);
  font-size: 13px;
  font-weight: 600;
}

.cs .cs-post-author img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--cs-tint);
  object-fit: cover;
}

.cs .cs-post-author:hover span {
  color: var(--cs-brand-strong);
}

/* ── About the author ── */
.cs .cs-author {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 28px;
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  background: #fff;
}

.cs .cs-author-photo {
  flex-shrink: 0;
}

.cs .cs-author-photo img {
  display: block;
  width: 88px;
  height: 88px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--cs-brand-soft);
  box-shadow: 0 0 0 1px var(--cs-line);
  object-fit: cover;
}

.cs .cs-author-body {
  min-width: 0;
  text-align: left;
}

.cs .cs-author-body .cs-kicker {
  margin-bottom: 4px;
}

.cs .cs-author-name {
  margin: 0 0 10px;
  text-align: inherit;
  font-family: inherit;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.cs .cs-author-name a {
  color: var(--cs-ink);
}

.cs .cs-author-name a:hover {
  color: var(--cs-brand-strong);
}

.cs .cs-author-bio {
  margin-bottom: 14px;
  color: var(--cs-text);
  font-size: 15px;
  line-height: 1.65;
}

.cs .cs-contributors {
  margin-top: 28px;
  text-align: center;
}

.cs-contributor-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.cs .cs-contributor {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 5px;
  border: 1px solid var(--cs-line);
  border-radius: 999px;
  background: #fff;
  color: var(--cs-ink);
  font-size: 14px;
  font-weight: 600;
}

.cs .cs-contributor img {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.cs .cs-contributor:hover {
  border-color: var(--cs-brand);
  background: var(--cs-brand-soft);
}

/* ── Infographics ── */
/* Arrows sit on the left and right edges of the row, over the cards */
.cs-ig-viewport {
  position: relative;
}

.cs-ig-nav {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -21px;
  pointer-events: none;
}

.cs .cs-ig-nav .cs-ig-arrow {
  box-shadow: 0 6px 18px rgba(23, 19, 31, 0.12);
  pointer-events: auto;
}

.cs .cs-ig-nav .cs-ig-arrow:disabled {
  visibility: hidden;
}

.cs-ig-nav[hidden] {
  display: none;
}

.cs .cs-ig-arrow,
.cs .cs-ig-step,
.cs .cs-ig-dialog-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin: 0;
  padding: 0;
  border: 1px solid var(--cs-line);
  border-radius: 50%;
  background: #fff;
  color: var(--cs-ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.cs .cs-ig-arrow:hover:not(:disabled),
.cs .cs-ig-step:hover,
.cs .cs-ig-dialog-close:hover {
  border-color: var(--cs-brand);
  background: var(--cs-brand-soft);
  color: var(--cs-brand-strong);
}

.cs .cs-ig-arrow:disabled {
  opacity: 0.4;
  cursor: default;
}

.cs-ig-track {
  display: grid;
  grid-auto-columns: calc((100% - 3 * 20px) / 4);
  grid-auto-flow: column;
  /* Fewer cards than fit: keep the row centred. "safe" falls back to the start when the cards
     overflow, so the first one is never cut off; browsers without it use the plain start value. */
  justify-content: start;
  justify-content: safe center;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}

.cs-ig-track::-webkit-scrollbar {
  display: none;
}

.cs .cs-ig-track li {
  scroll-snap-align: start;
}

.cs .cs-ig-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--cs-line);
  border-radius: 16px;
  background: #fff;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: zoom-in;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.cs .cs-ig-card:hover,
.cs .cs-ig-card:focus-visible {
  border-color: #f6cfea;
  box-shadow: 0 12px 32px rgba(23, 19, 31, 0.08);
  outline: none;
}

.cs .cs-ig-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  padding: 14px;
  background: var(--cs-tint);
  border-bottom: 1px solid var(--cs-line);
}

.cs .cs-ig-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.cs .cs-ig-caption {
  padding: 14px 16px 16px;
  color: var(--cs-ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

/* Centred in the viewport. Set explicitly: theme stylesheets reset dialog margins and position,
   which pinned it to the top left. */
.cs-ig-dialog {
  position: fixed !important;
  inset: 0 !important;
  width: min(960px, calc(100vw - 32px));
  max-width: none;
  height: fit-content;
  max-height: calc(100dvh - 32px);
  margin: auto !important;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(23, 19, 31, 0.3);
}

.cs-ig-dialog[open] {
  display: flex;
  flex-direction: column;
}

.cs-ig-dialog::backdrop {
  background: rgba(23, 19, 31, 0.7);
}

.cs-ig-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--cs-line);
}

.cs .cs-ig-dialog-title {
  color: var(--cs-ink);
  font-size: 15px;
  font-weight: 700;
}

.cs-ig-dialog-body {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 0;
  padding: 16px;
  background: var(--cs-tint);
}

/* The whole infographic fits on screen, however tall it is */
.cs .cs-ig-dialog-img {
  flex: 1;
  width: auto;
  min-width: 0;
  height: auto;
  max-height: calc(100dvh - 32px - 66px - 32px);
  margin: 0;
  object-fit: contain;
}

.cs .cs-ig-step[hidden] {
  display: none;
}

/* ── Rate this tool ── */
.cs.cs-rate-section {
  padding: 40px 0;
}

.cs .cs-rate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  max-width: 800px;
  margin: 0 auto;
  padding: 24px 28px;
  border: 1px solid var(--cs-line);
  border-radius: 20px;
  background: linear-gradient(135deg, #fff, var(--cs-brand-soft));
}

.cs .cs-rate-title {
  margin: 0 0 4px;
  color: var(--cs-ink);
  font-family: inherit;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.cs .cs-rate-score {
  color: var(--cs-muted);
  font-size: 14px;
}

.cs .cs-rate-value {
  color: var(--cs-ink);
  font-size: 16px;
  font-weight: 800;
}

.cs .cs-rate-out {
  margin-right: 4px;
  color: var(--cs-ink);
  font-weight: 600;
}

.cs .cs-rate-dot {
  margin-right: 4px;
}

.cs-rate-stars {
  display: flex;
  gap: 4px;
}

.cs .cs-star {
  display: inline-flex;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  color: #d9d6e0;
  cursor: pointer;
  transition: color 0.12s ease, transform 0.12s ease;
}

.cs .cs-star svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  stroke: none;
}

.cs .cs-star.is-hover,
.cs .cs-star.is-on {
  color: #fbbf24;
}

.cs .cs-star.is-hover {
  transform: scale(1.1);
}

.cs .cs-star:disabled {
  cursor: default;
}

.cs .cs-star:focus-visible {
  outline: 3px solid rgba(221, 77, 181, 0.35);
}

.cs .cs-rate-thanks {
  flex-basis: 100%;
  color: var(--cs-brand-strong);
  font-size: 14px;
  font-weight: 600;
  text-align: right;
}

@media (max-width: 1000px) {
  .cs-ig-track {
    grid-auto-columns: calc((100% - 2 * 20px) / 3);
  }
}

@media (max-width: 900px) {
  .cs-posts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .cs-posts {
    grid-template-columns: minmax(0, 1fr);
  }

  .cs-ig-track {
    grid-auto-columns: 72%;
    gap: 14px;
    justify-content: start;
  }

  .cs-ig-nav {
    display: none;
  }

  .cs .cs-author {
    flex-direction: column;
    align-items: center;
    padding: 24px 20px;
    text-align: center;
  }

  .cs .cs-author-body {
    text-align: center;
  }

  .cs .cs-rate {
    flex-direction: column;
    padding: 24px 20px;
    text-align: center;
  }

  .cs .cs-rate-thanks {
    text-align: center;
  }

  .cs-ig-dialog-body {
    padding: 10px;
  }

  .cs .cs-ig-step {
    display: none;
  }
}
