/* Genisoft Documentation & Category Stylesheet */

.gs-doc {
  max-width: 1180px;
  margin: 0 auto 2rem;
  color: #1f2937;
}

.gs-doc-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
}

.gs-doc-eyebrow {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e60067;
}

.gs-doc-meta__link {
  font-size: 0.92rem;
  font-weight: 600;
  color: #20114a;
  text-decoration: none;
  transition: color 0.16s ease;
}

.gs-doc-meta__link:hover {
  color: #e60067;
  text-decoration: underline;
}

/* Stepper */
.gs-doc-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.gs-doc-step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  color: #1f2937;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.15s ease;
}

.gs-doc-step:hover {
  border-color: #e60067;
  box-shadow: 0 6px 18px rgba(32, 17, 74, 0.08);
  transform: translateY(-1px);
  color: #20114a;
}

.gs-doc-step__num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid #20114a;
  color: #20114a;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gs-doc-step__label {
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.3;
}

.gs-doc-step.is-active {
  background: #20114a;
  border-color: #20114a;
  color: #ffffff;
}

.gs-doc-step.is-active:hover {
  color: #ffffff;
  border-color: #20114a;
}

.gs-doc-step.is-active .gs-doc-step__num {
  background: #e60067;
  border-color: #e60067;
  color: #ffffff;
}

/* Main two-column layout */
.gs-doc-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  margin-top: 28px;
  align-items: start;
}

.gs-doc-layout--no-toc {
  grid-template-columns: 1fr;
}

.gs-doc-toc {
  position: sticky;
  top: 100px;
  border-left: 2px solid #e2e8f0;
  padding: 6px 0 6px 16px;
}

.gs-doc-toc__title {
  margin: 0 0 10px;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #20114a;
}

.gs-doc-toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
}

.gs-doc-toc li {
  margin: 0 0 8px;
}

.gs-doc-toc a {
  display: block;
  font-size: 0.88rem;
  line-height: 1.4;
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.gs-doc-toc a:hover {
  color: #20114a;
  text-decoration: underline;
}

/* Body typography */
.gs-doc-body {
  min-width: 0;
}

.gs-doc-body > p:first-child {
  font-size: 1.05rem;
  color: #334155;
}

.gs-doc-body h2 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.45rem;
  font-weight: 700;
  color: #20114a;
  margin: 2.5rem 0 0.85rem;
  padding-top: 1.25rem;
  border-top: 1px solid #e2e8f0;
  scroll-margin-top: 110px;
}

.gs-doc-body h2:first-of-type {
  margin-top: 1.25rem;
  padding-top: 0;
  border-top: 0;
}

.gs-doc-body h3 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #20114a;
  margin: 1.5rem 0 0.6rem;
}

.gs-doc-body p,
.gs-doc-body li {
  line-height: 1.7;
  color: #1f2937;
}

.gs-doc-body ul,
.gs-doc-body ol {
  padding-left: 1.25rem;
  margin: 0.65rem 0 1rem;
}

.gs-doc-body li {
  margin: 0.35rem 0;
}

.gs-doc-body code {
  background: #f1f5f9;
  color: #20114a;
  border-radius: 6px;
  padding: 0.1em 0.4em;
  font-size: 0.88em;
  word-break: break-word;
}

/* Figures & screenshots */
.gs-doc-figure {
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 6px 20px rgba(32, 17, 74, 0.08);
}

.gs-doc-figure__link {
  display: block;
}

.gs-doc-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.gs-doc-figure figcaption {
  font-size: 0.85rem;
  line-height: 1.45;
  color: #64748b;
  padding: 10px 14px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Callouts */
.gs-doc-callout {
  padding: 14px 18px;
  border-radius: 12px;
  border-left: 4px solid #6366f1;
  margin: 1.25rem 0;
  background: #eef2ff;
  color: #1f2937;
  line-height: 1.6;
}

.gs-doc-callout ul {
  margin: 6px 0 0;
  padding-left: 1.2rem;
}

.gs-doc-callout--info {
  background: #eef2ff;
  border-left-color: #6366f1;
}

.gs-doc-callout--tip {
  background: #ecfdf5;
  border-left-color: #10b981;
}

.gs-doc-callout--warning {
  background: #fff7ed;
  border-left-color: #f59e0b;
}

/* Prev / Next pager */
.gs-doc-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 40px;
}

.gs-doc-pager__prev,
.gs-doc-pager__next {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px 20px;
  background: #ffffff;
  text-decoration: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.gs-doc-pager__prev span,
.gs-doc-pager__next span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
}

.gs-doc-pager__prev strong,
.gs-doc-pager__next strong {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 0.98rem;
  color: #20114a;
}

.gs-doc-pager__next {
  text-align: right;
  grid-column: 2;
}

.gs-doc-pager__prev:hover,
.gs-doc-pager__next:hover {
  border-color: #e60067;
  box-shadow: 0 6px 18px rgba(32, 17, 74, 0.08);
}

/* Bottom support CTA banner */
.gs-doc-help {
  margin-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 18px;
  background: linear-gradient(135deg, #20114a 0%, #341878 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 24px 28px;
}

.gs-doc-help strong {
  display: block;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.12rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.gs-doc-help p {
  margin: 0;
  font-size: 0.94rem;
  color: #e2e8f0;
}

.gs-doc-help__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.gs-doc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  color: #ffffff;
  text-decoration: none;
  transition: background-color 0.18s ease, border-color 0.18s ease;
}

.gs-doc-btn:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.gs-doc-btn--primary {
  background: #e60067;
  border-color: #e60067;
  color: #ffffff;
}

.gs-doc-btn--primary:hover {
  background: #c70057;
  border-color: #c70057;
  color: #ffffff;
}

/* CMS Category Card Grid */
.gs-doc-cat {
  max-width: 1180px;
  margin: 0 auto 2rem;
}

.gs-doc-cat__intro {
  color: #64748b;
  font-size: 1.05rem;
  line-height: 1.65;
  max-width: 760px;
  margin: 0 0 28px;
}

.gs-doc-cat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.gs-doc-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 22px;
  background: #ffffff;
  text-decoration: none;
  color: #1f2937;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.gs-doc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(32, 17, 74, 0.1);
  border-color: #e60067;
}

.gs-doc-card__num {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #20114a;
  color: #ffffff;
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.gs-doc-card__title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  color: #20114a;
  margin: 14px 0 8px;
}

.gs-doc-card__desc {
  font-size: 0.92rem;
  line-height: 1.55;
  color: #64748b;
  flex: 1;
}

.gs-doc-card__cta {
  color: #e60067;
  font-weight: 600;
  font-size: 0.92rem;
  margin-top: 16px;
}

.gs-doc-cat__subs {
  margin-top: 28px;
  padding-left: 1.25rem;
}

/* Responsive */
@media (max-width: 991.98px) {
  .gs-doc-steps {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 220px;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .gs-doc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .gs-doc-toc {
    position: static;
    border-left: 0;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    padding: 14px 16px;
  }
}

@media (max-width: 575.98px) {
  .gs-doc-pager {
    grid-template-columns: 1fr;
    margin-top: 28px;
  }

  .gs-doc-pager__next {
    grid-column: 1;
    text-align: left;
  }

  .gs-doc-help {
    padding: 18px;
  }

  .gs-doc-card {
    padding: 18px;
  }
}
