/**
 * Single-site layer: CMS body + account area on top of trackhubs-marketing.css
 */

.trackhubs-site .site-main {
  width: 100%;
  max-width: 100%;
  min-height: 40vh;
}

.trackhubs-site .cms-marketing-body {
  width: 100%;
}

/* Solution cards: one link on the card — no underline on title/body/explore */
.trackhubs-site .cms-marketing-body a.sol-card,
.trackhubs-site .cms-marketing-body a.sol-card:hover,
.trackhubs-site .cms-marketing-body a.sol-card:focus,
.trackhubs-site .cms-marketing-body a.sol-card .sol-body,
.trackhubs-site .cms-marketing-body a.sol-card .sol-nm,
.trackhubs-site .cms-marketing-body a.sol-card .sol-bl,
.trackhubs-site .cms-marketing-body a.sol-card .sol-ar,
.trackhubs-site .cms-marketing-body a.sol-card .nm,
.trackhubs-site .cms-marketing-body a.sol-card .bl,
.trackhubs-site .cms-marketing-body a.sol-card .ar {
  text-decoration: none !important;
}

/* Cross-link tiles — original handover layout (title left, purple Explore right) */
.trackhubs-site .cms-marketing-body .cross {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 8px;
}

.trackhubs-site .cms-marketing-body .cross > a,
.trackhubs-site .cms-marketing-body .cross > a.cross-card {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-decoration: none !important;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, border-color 0.2s, background 0.2s;
}

.trackhubs-site .cms-marketing-body .cross > a:hover,
.trackhubs-site .cms-marketing-body .cross > a.cross-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  background: linear-gradient(120deg, var(--purple-tint), #fff);
}

/* CKEditor fallback: split links inside <p> — one outer card, plain inner links */
.trackhubs-site .cms-marketing-body .cross > p,
.trackhubs-site .cms-marketing-body .cross > div:not(a) {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 0;
  padding: 20px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, border-color 0.2s, background 0.2s;
}

.trackhubs-site .cms-marketing-body .cross > p:hover,
.trackhubs-site .cms-marketing-body .cross > div:not(a):hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  background: linear-gradient(120deg, var(--purple-tint), #fff);
}

.trackhubs-site .cms-marketing-body .cross > p a,
.trackhubs-site .cms-marketing-body .cross > div:not(a) a {
  display: inline-flex !important;
  align-items: center;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  transform: none !important;
  text-decoration: none !important;
}

.trackhubs-site .cms-marketing-body .cross > p a:first-of-type,
.trackhubs-site .cms-marketing-body .cross > div:not(a) a:first-of-type {
  flex: 1 1 auto;
  min-width: 0;
}

.trackhubs-site .cms-marketing-body .cross > p a:last-of-type,
.trackhubs-site .cms-marketing-body .cross > div:not(a) a:last-of-type {
  flex: 0 0 auto;
}

.trackhubs-site .cms-marketing-body .cross .lbl {
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--plum);
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  display: block;
}

.trackhubs-site .cms-marketing-body .cross .go {
  display: inline-flex !important;
  align-items: center;
  flex: 0 0 auto;
  color: var(--purple) !important;
  font-weight: 700;
  font-size: 13px;
  margin-top: 0 !important;
  white-space: nowrap;
  transition: transform 0.2s;
}

.trackhubs-site .cms-marketing-body .cross > a:hover .go,
.trackhubs-site .cms-marketing-body .cross > p:hover .go,
.trackhubs-site .cms-marketing-body .cross > div:not(a):hover .go {
  transform: translateX(4px);
}

@media (max-width: 1024px) {
  .trackhubs-site .cms-marketing-body .cross {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 920px) {
  .trackhubs-site .cms-marketing-body .cross {
    grid-template-columns: 1fr;
  }
}

.trackhubs-site .foot-legal {
  display: flex;
  gap: 13px;
  align-items: center;
  flex-wrap: wrap;
  font-size: 13px;
}

.trackhubs-site .foot-legal a {
  color: inherit;
  text-decoration: none;
  opacity: 0.82;
}

.trackhubs-site .foot-legal a:hover {
  opacity: 1;
  text-decoration: underline;
}

.trackhubs-site .foot-legal .sep {
  opacity: 0.38;
}

.trackhubs-site .nav .brand img {
  max-height: 48px;
  width: auto;
  display: block;
}


/* Account area (profile, plans, subscription) — same theme */
.trackhubs-site .saas-account-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 40px 64px;
}

.trackhubs-site .saas-account-header h1 {
  font-family: "Manrope", sans-serif;
  color: var(--plum);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  margin-bottom: 8px;
}

.trackhubs-site .saas-account-header p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 24px;
}

.trackhubs-site .saas-account-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.trackhubs-site .saas-account-links a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 8px 14px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface);
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.trackhubs-site .saas-account-links a:hover,
.trackhubs-site .saas-account-links a.active {
  color: var(--plum);
  border-color: var(--purple);
  background: var(--purple-tint);
}

.trackhubs-site .saas-account-links a i {
  margin-right: 6px;
  color: var(--purple);
}

.trackhubs-site .saas-form-panel,
.trackhubs-site .saas-card-panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.trackhubs-site .saas-form-panel h3 {
  font-family: "Manrope", sans-serif;
  color: var(--plum);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.trackhubs-site .field-label {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
}

.trackhubs-site .btn-primary {
  background: var(--green) !important;
  border-color: var(--green) !important;
  color: var(--green-ink) !important;
  font-weight: 700;
  border-radius: 11px;
}

.trackhubs-site .btn-primary:hover {
  background: var(--green-deep) !important;
  border-color: var(--green-deep) !important;
}

.trackhubs-site .text-primary {
  color: var(--purple) !important;
}

/* Auth pages (sign-in / sign-up) */
.trackhubs-site .auth-page-wrap {
  max-width: 480px;
  margin: 48px auto 64px;
  padding: 0 24px;
}

.trackhubs-site .box-login {
  background: var(--surface);
  border: 1px solid var(--line) !important;
  border-radius: var(--radius) !important;
  padding: 32px 36px !important;
  box-shadow: var(--shadow-sm);
}

.trackhubs-site .box-login h2,
.trackhubs-site .box-login h3 {
  font-family: "Manrope", sans-serif;
  color: var(--plum);
}

@media (max-width: 768px) {
  .trackhubs-site .saas-account-page {
    padding: 32px 20px 48px;
  }

  .trackhubs-site .foot-legal {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  .trackhubs-site .foot-legal .sep {
    display: none;
  }
}

/* —— Knowledge Base —— */
.trackhubs-site .kb-page .kb-hero {
  padding: 56px 40px 52px;
}

.trackhubs-site .kb-page .kb-hero-compact {
  padding: 48px 40px 44px;
}

.trackhubs-site .kb-page .kb-hero .hero-in {
  text-align: left;
}

.trackhubs-site .kb-page .kb-hero h1 {
  max-width: 820px;
}

.trackhubs-site .kb-page .kb-hero-date {
  margin-top: 18px;
  font-size: 14px;
  color: var(--lavender);
  display: flex;
  align-items: center;
  gap: 8px;
}

.trackhubs-site .kb-page .kb-section {
  padding-top: 36px;
  padding-bottom: 72px;
}

.trackhubs-site .kb-page .kb-search {
  position: relative;
  max-width: 640px;
  margin: 0 auto 36px;
}

.trackhubs-site .kb-page .kb-search input[type="search"] {
  width: 100%;
  height: 54px;
  padding: 12px 52px 12px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-family: "Hanken Grotesk", system-ui, sans-serif;
  font-size: 15px;
  box-shadow: var(--shadow-sm);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.trackhubs-site .kb-page .kb-search input[type="search"]:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(106, 50, 176, 0.15);
}

.trackhubs-site .kb-page .kb-search button {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--purple);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.2s, color 0.2s;
}

.trackhubs-site .kb-page .kb-search button:hover {
  background: var(--purple-soft);
  color: var(--plum);
}

.trackhubs-site .kb-page .kb-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.trackhubs-site .kb-page .kb-sidebar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 18px;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 88px;
}

.trackhubs-site .kb-page .kb-sidebar-title {
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 14px;
}

.trackhubs-site .kb-page .kb-categories {
  list-style: none;
  margin: 0;
  padding: 0;
}

.trackhubs-site .kb-page .kb-categories li + li {
  margin-top: 4px;
}

.trackhubs-site .kb-page .category-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 11px;
  text-decoration: none !important;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: background 0.18s, color 0.18s;
}

.trackhubs-site .kb-page .category-filter:hover {
  background: var(--purple-tint);
  color: var(--plum);
}

.trackhubs-site .kb-page .category-filter.is-active {
  background: linear-gradient(120deg, var(--purple-soft), #fff);
  color: var(--plum);
  font-weight: 700;
  border: 1px solid var(--line);
}

.trackhubs-site .kb-page .kb-cat-count {
  flex: 0 0 auto;
  min-width: 26px;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--purple);
  background: var(--purple-soft);
  border-radius: 999px;
  padding: 3px 8px;
}

.trackhubs-site .kb-page .kb-content {
  min-width: 0;
}

.trackhubs-site .kb-page .kb-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 120px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
}

.trackhubs-site .kb-page .kb-loading[hidden] {
  display: none !important;
}

.trackhubs-site .kb-page .kb-spinner {
  width: 22px;
  height: 22px;
  border: 2.5px solid var(--line);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: kbSpin 0.7s linear infinite;
}

@keyframes kbSpin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .trackhubs-site .kb-page .kb-spinner {
    animation: none;
  }
}

.trackhubs-site .kb-page .kb-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.trackhubs-site .kb-page .kb-article-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s, border-color 0.2s, box-shadow 0.2s;
}

.trackhubs-site .kb-page .kb-article-card:hover {
  transform: translateY(-3px);
  border-color: var(--purple);
  box-shadow: var(--shadow);
}

.trackhubs-site .kb-page .kb-article-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--faint);
  margin-bottom: 10px;
}

.trackhubs-site .kb-page .kb-article-meta i {
  color: var(--purple);
}

.trackhubs-site .kb-page .kb-article-title {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  font-weight: 800;
  color: var(--plum);
  margin: 0 0 10px;
  line-height: 1.25;
}

.trackhubs-site .kb-page .kb-article-title a {
  color: inherit;
  text-decoration: none !important;
}

.trackhubs-site .kb-page .kb-article-title a:hover {
  color: var(--purple);
}

.trackhubs-site .kb-page .kb-article-excerpt {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0 0 14px;
}

.trackhubs-site .kb-page .kb-article-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--purple);
  text-decoration: none !important;
}

.trackhubs-site .kb-page .kb-article-link:hover {
  color: var(--plum);
}

.trackhubs-site .kb-page .kb-empty {
  text-align: center;
  color: var(--muted);
  padding: 40px 16px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius);
}

.trackhubs-site .kb-page .kb-load-more-wrap {
  text-align: center;
  margin-top: 28px;
}

.trackhubs-site .kb-page .kb-load-more:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}

.trackhubs-site .kb-page .kb-article-body {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 36px;
  box-shadow: var(--shadow-sm);
}

.trackhubs-site .kb-page .kb-article-html {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
}

.trackhubs-site .kb-page .kb-article-html h2,
.trackhubs-site .kb-page .kb-article-html h3,
.trackhubs-site .kb-page .kb-article-html h4 {
  font-family: "Manrope", sans-serif;
  color: var(--plum);
  margin: 1.4em 0 0.55em;
}

.trackhubs-site .kb-page .kb-article-html p {
  margin: 0 0 1em;
}

.trackhubs-site .kb-page .kb-article-html a {
  color: var(--purple);
}

.trackhubs-site .kb-page .kb-article-html ul,
.trackhubs-site .kb-page .kb-article-html ol {
  margin: 0 0 1em 1.25em;
}

.trackhubs-site .kb-page .kb-article-html img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

.trackhubs-site .kb-page .kb-article-footer {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.trackhubs-site .kb-page .kb-back-btn {
  background: var(--surface) !important;
  color: var(--plum) !important;
  border: 1px solid var(--line) !important;
  padding: 12px 20px;
  font-size: 14px;
}

.trackhubs-site .kb-page .kb-back-btn:hover {
  border-color: var(--purple) !important;
  background: var(--purple-tint) !important;
}

.trackhubs-site .kb-page .visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 920px) {
  .trackhubs-site .kb-page .kb-layout {
    grid-template-columns: 1fr;
  }

  .trackhubs-site .kb-page .kb-sidebar {
    position: static;
  }

  .trackhubs-site .kb-page .kb-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .trackhubs-site .kb-page .kb-categories li {
    margin: 0;
  }

  .trackhubs-site .kb-page .category-filter {
    border: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  .trackhubs-site .kb-page .kb-hero,
  .trackhubs-site .kb-page .kb-hero-compact {
    padding: 40px 16px 36px;
  }

  .trackhubs-site .kb-page .kb-section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .trackhubs-site .kb-page .kb-article-body {
    padding: 22px 18px;
  }
}
