/* Syndaq marketing site — Help center (knowledge base), dark theme aligned with Forma */

body.forma-kb-page {
  --forma-kb-surface: #0c1220;
  --forma-kb-surface-2: rgba(15, 23, 42, 0.85);
  --forma-kb-divider: rgba(148, 163, 184, 0.1);
}

body.forma-kb-page .forma-bg-mesh {
  opacity: 0.55;
}

/* ----- Hero: support-themed decoration (no raster image) ----- */
.forma-kb-hero {
  position: relative;
  overflow: hidden;
  min-height: min(44vh, 440px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(2rem, 5vw, 2.75rem);
  background: linear-gradient(118deg, #0a3d47 0%, #0c4a55 22%, #0a2340 58%, #050a14 100%);
  color: var(--forma-text);
  border-bottom: 1px solid var(--forma-border);
}

/* Soft glows */
.forma-kb-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 12% 25%, rgba(34, 211, 238, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 45% at 88% 15%, rgba(167, 139, 250, 0.1), transparent 50%);
  pointer-events: none;
}

/* Subtle grid — documentation / support desk feel */
.forma-kb-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;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, #000 20%, transparent 72%);
  opacity: 0.45;
  pointer-events: none;
}

/* Headset + chat + help icons as large watermarks */
.forma-kb-hero-motif {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.forma-kb-hero-motif__item {
  position: absolute;
  color: rgba(34, 211, 238, 0.11);
  line-height: 1;
  user-select: none;
}

.forma-kb-hero-motif__item .bi {
  display: block;
  filter: drop-shadow(0 4px 24px rgba(34, 211, 238, 0.15));
}

.forma-kb-hero-motif__item--1 {
  left: max(-4%, -2rem);
  bottom: 2%;
  font-size: clamp(5rem, 22vw, 13rem);
  transform: rotate(-14deg);
}

.forma-kb-hero-motif__item--2 {
  right: 4%;
  top: 10%;
  font-size: clamp(3.5rem, 14vw, 9rem);
  color: rgba(167, 139, 250, 0.1);
  transform: rotate(8deg);
}

.forma-kb-hero-motif__item--3 {
  right: 18%;
  bottom: 8%;
  font-size: clamp(2.75rem, 10vw, 6.5rem);
  color: rgba(34, 211, 238, 0.09);
  transform: rotate(6deg);
}

.forma-kb-hero__inner {
  position: relative;
  z-index: 1;
}

.forma-kb-hero h1 {
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.forma-kb-hero .forma-kb-lead {
  color: rgba(241, 245, 249, 0.88);
  max-width: 38rem;
  margin-left: auto;
  margin-right: auto;
}

/* Search — dark field, fits hero */
.forma-kb-search-wrap {
  max-width: 44rem;
  margin-left: auto;
  margin-right: auto;
}

.forma-kb-search {
  display: flex;
  align-items: stretch;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(34, 211, 238, 0.22);
}

.forma-kb-search input[type="search"] {
  flex: 1;
  border: none;
  padding: 1rem 1.15rem;
  font-size: 1rem;
  background: rgba(7, 11, 18, 0.92);
  color: var(--forma-text);
}

.forma-kb-search input[type="search"]::placeholder {
  color: rgba(148, 163, 184, 0.65);
}

.forma-kb-search input[type="search"]:focus {
  outline: none;
  box-shadow: inset 0 0 0 2px rgba(34, 211, 238, 0.35);
}

.forma-kb-search button {
  border: none;
  padding: 0 1.35rem;
  background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 100%);
  color: #0f172a;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: filter 0.15s ease;
}

.forma-kb-search button:hover {
  filter: brightness(1.08);
}

.forma-kb-hero-topics {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.82);
}

.forma-kb-hero-topics a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.forma-kb-hero-topics a:hover {
  color: #cffafe;
}

/* ----- Main KB column: one continuous dark surface ----- */
.forma-kb-tags-section,
.forma-kb-results,
.forma-kb-grid-section {
  background: var(--forma-bg);
}

.forma-kb-tags-section {
  border-bottom: 1px solid var(--forma-kb-divider);
  padding: 1rem 0 1.35rem;
}

.forma-kb-tags-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--forma-text);
  text-align: center;
  margin-bottom: 0.85rem;
  letter-spacing: 0.02em;
}

.forma-kb-tag-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem 0.55rem;
}

a.forma-kb-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(34, 211, 238, 0.35);
  color: var(--forma-muted);
  background: var(--forma-kb-surface-2);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

a.forma-kb-tag:hover {
  border-color: rgba(34, 211, 238, 0.55);
  color: var(--forma-text);
  background: rgba(34, 211, 238, 0.08);
}

a.forma-kb-tag.is-active {
  background: linear-gradient(180deg, #22d3ee 0%, #06b6d4 100%);
  border-color: transparent;
  color: #0f172a;
}

a.forma-kb-tag.is-active:hover {
  color: #0f172a;
}

a.forma-kb-tag--ghost {
  border-style: dashed;
  border-color: rgba(148, 163, 184, 0.35);
  color: rgba(148, 163, 184, 0.95);
  background: transparent;
}

a.forma-kb-tag--ghost:hover {
  border-color: rgba(34, 211, 238, 0.45);
  color: var(--forma-text);
}

/* Category grid */
.forma-kb-grid-section {
  padding: 1rem 0 2.25rem;
}

.forma-kb-card {
  height: 100%;
  background: var(--forma-kb-surface);
  border: 1px solid var(--forma-border);
  border-radius: 12px;
  padding: 1.15rem 1.1rem 1rem;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.forma-kb-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
  border-color: rgba(34, 211, 238, 0.28);
}

.forma-kb-card h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--forma-text);
  margin: 0 0 0.55rem;
  letter-spacing: -0.02em;
}

.forma-kb-card hr {
  margin: 0 0 0.75rem;
  border: 0;
  border-top: 1px solid var(--forma-kb-divider);
}

.forma-kb-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.forma-kb-card li {
  margin-bottom: 0.5rem;
}

.forma-kb-card li a {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--forma-muted);
  text-decoration: none;
  font-size: 0.875rem;
  line-height: 1.45;
}

.forma-kb-card li a i {
  flex-shrink: 0;
  margin-top: 0.12rem;
  opacity: 0.5;
  color: var(--forma-accent);
}

.forma-kb-card li a:hover {
  color: var(--forma-accent);
}

.forma-kb-viewall {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 0.65rem;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--forma-accent);
  text-decoration: none;
}

.forma-kb-viewall:hover {
  color: #67e8f9;
}

/* Search results */
.forma-kb-results {
  border-bottom: 1px solid var(--forma-kb-divider);
  padding: 1rem 0 1.25rem;
}

.forma-kb-results .container {
  max-width: min(72rem, 100%);
}

.forma-kb-results h2 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--forma-text);
  margin-bottom: 0.75rem;
}

.forma-kb-results-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 20rem), 1fr));
  gap: 0.65rem 1rem;
  align-items: stretch;
}

.forma-kb-results-hit {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.65rem;
  min-height: 100%;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  border: 1px solid var(--forma-border);
  background: var(--forma-kb-surface);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
  color: var(--forma-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  line-height: 1.4;
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    color 0.15s ease;
}

.forma-kb-results-hit:hover {
  color: var(--forma-accent);
  border-color: rgba(34, 211, 238, 0.35);
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.28);
}

.forma-kb-results-hit__ico {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  margin-top: 0.1rem;
  color: var(--forma-accent);
  opacity: 0.85;
}

.forma-kb-results-hit__body {
  display: block;
  min-width: 0;
}

.forma-kb-results-hit__title {
  display: block;
  color: inherit;
}

.forma-kb-results-list small {
  display: block;
  font-weight: 400;
  color: rgba(148, 163, 184, 0.75);
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  line-height: 1.45;
}

/* Single filtered category: full-width card, multi-column article list */
.forma-kb-grid-section--single {
  padding-top: 1.15rem;
}

.forma-kb-grid-section--single .forma-kb-category-row--single > .col {
  flex: 0 0 100%;
  max-width: 100%;
}

.forma-kb-grid-section--single .forma-kb-card {
  max-width: min(72rem, 100%);
  margin-left: auto;
  margin-right: auto;
}

.forma-kb-grid-section--single .forma-kb-card ul {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
  gap: 0.35rem 1rem;
}

.forma-kb-grid-section--single .forma-kb-card li {
  margin-bottom: 0;
}

.forma-kb-grid-section--single .forma-kb-card li a {
  padding: 0.45rem 0.35rem;
  border-radius: 8px;
  transition: background 0.12s ease;
}

.forma-kb-grid-section--single .forma-kb-card li a:hover {
  background: rgba(34, 211, 238, 0.06);
}

/* Empty / admin messages */
.forma-kb-muted {
  color: var(--forma-muted);
}

.forma-kb-page a.link-secondary {
  color: var(--forma-accent-dim);
}

.forma-kb-page a.link-secondary:hover {
  color: var(--forma-accent);
}

/* Outline buttons on dark canvas */
.forma-kb-page .btn-outline-info {
  --bs-btn-color: var(--forma-accent);
  --bs-btn-border-color: rgba(34, 211, 238, 0.42);
  --bs-btn-hover-bg: rgba(34, 211, 238, 0.12);
  --bs-btn-hover-border-color: var(--forma-accent);
  --bs-btn-hover-color: #f8fafc;
  --bs-btn-focus-shadow-rgb: 34, 211, 238;
  --bs-btn-active-bg: rgba(34, 211, 238, 0.2);
  --bs-btn-active-color: #fff;
}

/* Article page */
.forma-kb-article-main {
  background: var(--forma-bg);
  min-height: 50vh;
  padding-bottom: 0;
}

/* ----- Article hero (full-width title, no illustration) ----- */
.forma-kb-article-hero {
  position: relative;
  overflow: hidden;
  margin-bottom: 0;
  border-bottom: 1px solid var(--forma-kb-divider);
  background: linear-gradient(118deg, #0a3d47 0%, #0c4a55 22%, #0a2340 58%, #050a14 100%);
}

.forma-kb-article-hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 65% 55% at 18% 35%, rgba(34, 211, 238, 0.14), transparent 58%),
    radial-gradient(ellipse 45% 40% at 92% 18%, rgba(167, 139, 250, 0.09), transparent 52%);
  pointer-events: none;
}

.forma-kb-article-hero__inner {
  position: relative;
  z-index: 1;
}

.forma-kb-article-hero__title {
  margin: 0;
  max-width: none;
  width: 100%;
  font-family: Syne, system-ui, sans-serif;
  font-size: clamp(1.85rem, 4.2vw, 2.85rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: #fff;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.forma-kb-article-hero__lead {
  margin: 1rem 0 0;
  font-size: 1.08rem;
  line-height: 1.55;
  color: rgba(241, 245, 249, 0.88);
  max-width: min(52rem, 100%);
}

.forma-kb-article-hero__meta {
  margin-top: 1rem;
  font-size: 0.875rem;
  color: rgba(203, 213, 225, 0.72);
}

.forma-kb-breadcrumb--hero {
  --bs-breadcrumb-item-active-color: rgba(226, 232, 240, 0.88);
}

.forma-kb-breadcrumb--hero .breadcrumb-item a {
  color: #7dd3fc;
}

.forma-kb-breadcrumb--hero .breadcrumb-item a:hover {
  color: #e0f2fe;
}

.forma-kb-breadcrumb {
  --bs-breadcrumb-divider: "›";
  font-size: 0.875rem;
  --bs-breadcrumb-item-active-color: var(--forma-muted);
}

.forma-kb-breadcrumb .breadcrumb-item a {
  color: var(--forma-accent-dim);
  text-decoration: none;
}

.forma-kb-breadcrumb .breadcrumb-item a:hover {
  color: var(--forma-accent);
  text-decoration: underline;
}

.forma-kb-article-title {
  color: var(--forma-text);
}

.forma-kb-article {
  padding: 0;
}

.forma-kb-page--article .forma-kb-article-body {
  max-width: min(48rem, 100%);
  margin-top: 0;
  padding-top: 0.15rem;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--forma-muted);
}

/* ----- Sidebar ----- */
.forma-kb-sidebar {
  position: sticky;
  top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.forma-kb-sidebar-card {
  background: var(--forma-kb-surface);
  border: 1px solid var(--forma-border);
  border-radius: 12px;
  padding: 1.1rem 1.15rem 1.15rem;
  box-shadow: 0 4px 22px rgba(0, 0, 0, 0.22);
}

.forma-kb-sidebar-card__title {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
  margin: 0 0 0.35rem;
}

.forma-kb-sidebar-card__hint {
  margin: 0 0 0.75rem;
  color: rgba(148, 163, 184, 0.75);
}

.forma-kb-sidebar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.45rem;
}

.forma-kb-mini-tag {
  display: inline-flex;
  padding: 0.22rem 0.55rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
  color: rgba(186, 198, 220, 0.92);
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(0, 0, 0, 0.2);
}

.forma-kb-mini-tag:hover {
  color: var(--forma-accent);
  border-color: rgba(34, 211, 238, 0.35);
}

.forma-kb-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.forma-kb-related-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--forma-kb-divider);
}

.forma-kb-related-list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.forma-kb-related-list li:first-child {
  padding-top: 0;
}

.forma-kb-related-list a {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  text-decoration: none;
  color: rgba(203, 213, 225, 0.92);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
}

.forma-kb-related-list a i {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--forma-accent);
  opacity: 0.85;
}

.forma-kb-related-list a:hover {
  color: var(--forma-accent);
}

.forma-kb-related-list__excerpt {
  display: block;
  margin-top: 0.35rem;
  margin-left: 1.65rem;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(148, 163, 184, 0.78);
  line-height: 1.45;
}

@media (max-width: 991.98px) {
  .forma-kb-sidebar {
    position: static;
  }
}

.forma-kb-article-body h1,
.forma-kb-article-body h2,
.forma-kb-article-body h3 {
  color: var(--forma-text);
  margin-top: 1.5rem;
  margin-bottom: 0.65rem;
}

.forma-kb-article-body p {
  margin-bottom: 1rem;
}

.forma-kb-article-body a {
  color: var(--forma-accent);
}

.forma-kb-article-body a:hover {
  color: #67e8f9;
}

.forma-kb-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  border: 1px solid var(--forma-border);
}

.forma-kb-article-body pre,
.forma-kb-article-body code {
  font-size: 0.9em;
}

.forma-kb-article-body pre {
  background: var(--forma-kb-surface);
  border: 1px solid var(--forma-border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  color: var(--forma-text);
}

.forma-kb-article-body :not(pre) > code {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--forma-border);
  padding: 0.15em 0.4em;
  border-radius: 4px;
  color: #e2e8f0;
}

.forma-kb-article-body blockquote {
  border-left: 3px solid rgba(34, 211, 238, 0.45);
  margin: 1rem 0;
  padding: 0.25rem 0 0.25rem 1rem;
  color: rgba(226, 232, 240, 0.9);
}

.forma-kb-meta {
  font-size: 0.875rem;
  color: var(--forma-muted);
}

/* Footer: flush with main — no white band */
.forma-kb-page .forma-footer {
  margin-top: 0;
}
