/* ==========================================================================
   Amazing PowerUps — HelpScout Docs Custom Stylesheet
   Matches branding from amazingpowerups.com
   ========================================================================== */

/* ---- Font Import ---- */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ---- CSS Variables ---- */
:root {
  --hs-primary: #0c66a1;
  --hs-primary-dark: #094d7a;
  --hs-accent: #28b5a1;
  --hs-accent-dark: #1f9a89;
  --hs-bg: #f5f7fa;
  --hs-fg: #1d2939;
  --hs-muted: #636f83;
  --hs-border: #d8dee6;
  --hs-white: #ffffff;
  --hs-radius: 0.75rem;
  --hs-shadow-card: 0 1px 0 rgba(9, 30, 66, 0.25);
  --hs-shadow-card-hover: 0 8px 16px -4px rgba(9, 30, 66, 0.25), 0 0 0 1px rgba(9, 30, 66, 0.08);
  --hs-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --hs-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.07);
  --hs-gradient-hero: linear-gradient(135deg, #0c66a1 0%, #1a56b8 50%, #5b3dba 100%);
  --hs-font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

/* ---- Global Reset ---- */
body,
html {
  font-family: var(--hs-font) !important;
  color: var(--hs-fg);
  background-color: var(--hs-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6,
.article-title,
.categoryTitle,
.contentTitle {
  font-family: var(--hs-font) !important;
}

h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--hs-fg);
  line-height: 1.3;
  margin-bottom: 0.75em;
}

h2 {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--hs-fg);
  line-height: 1.3;
  margin-bottom: 0.75em;
}

h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--hs-fg);
  line-height: 1.4;
  margin-bottom: 0.75em;
}

h4 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--hs-fg);
  line-height: 1.4;
  margin-bottom: 0.75em;
}

h5 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--hs-muted);
  line-height: 1.4;
  margin-bottom: 0.75em;
}

h6 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--hs-muted);
  line-height: 1.4;
  margin-bottom: 0.75em;
}

/* Category page title — primary blue */
.categoryHead h1,
.categoryTitle {
  color: var(--hs-primary) !important;
}

/* ---- Header / Navigation ---- */
.header,
header.header {
  background: var(--hs-gradient-hero) !important;
  border-bottom: none !important;
}

.header a,
.header .nav a,
header.header a {
  color: var(--hs-white) !important;
  font-family: var(--hs-font) !important;
  font-weight: 500;
}

.header a:hover,
header.header a:hover {
  color: rgba(255, 255, 255, 0.85) !important;
}

/* ---- Search Bar ---- */
.searchForm,
.search,
.search-form {
  background: var(--hs-gradient-hero) !important;
  border-radius: var(--hs-radius) !important;
  padding: 2.5rem 1.5rem !important;
}

.searchForm input,
.search input,
.search-form input,
input.search-query {
  font-family: var(--hs-font) !important;
  border-radius: var(--hs-radius) !important;
  border: 1px solid var(--hs-border) !important;
  background: #ffffff !important;
  color: var(--hs-fg) !important;
  font-size: 1.125rem !important;
  padding: 0.875rem 1.25rem !important;
  transition: all 0.2s ease !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08) !important;
}

.searchForm input::placeholder,
.search input::placeholder,
input.search-query::placeholder {
  color: var(--hs-muted) !important;
}

.searchForm input:focus,
.search input:focus,
input.search-query:focus {
  border-color: var(--hs-primary) !important;
  background: #ffffff !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(12, 102, 161, 0.2) !important;
}

/* Search heading text */
.searchForm h1,
.search h1,
.search-form h1 {
  color: var(--hs-white) !important;
  font-weight: 700;
}

/* ---- Category Cards ---- */
.category,
.category-list .category,
.col-md-4 .category {
  background: var(--hs-white) !important;
  border: 1px solid var(--hs-border) !important;
  border-radius: var(--hs-radius) !important;
  box-shadow: var(--hs-shadow-card) !important;
  transition: all 0.2s ease !important;
  overflow: hidden;
}

.category:hover,
.category-list .category:hover {
  box-shadow: var(--hs-shadow-card-hover) !important;
  transform: translateY(-2px);
}

.category h2,
.category-list .category h2 {
  font-size: 1.25rem !important;
  font-weight: 700 !important;
  color: var(--hs-fg) !important;
}

.category p,
.category-list .category p {
  color: var(--hs-muted) !important;
  font-size: 0.9375rem;
}

/* Category icon */
.category .icon,
.category-list .category .icon {
  color: var(--hs-primary) !important;
}

/* ---- Links ---- */
a {
  color: var(--hs-primary);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--hs-accent);
  text-decoration: underline;
}

/* ---- Article Content ---- */
.article-content,
#fullArticle,
.articleBody {
  font-family: var(--hs-font) !important;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--hs-fg);
}

.article-content p,
#fullArticle p,
.articleBody p {
  margin-bottom: 1.25em;
}

/* Code blocks */
.article-content code,
#fullArticle code,
.articleBody code {
  background: #edf2f7;
  color: #c7254e;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.article-content pre,
#fullArticle pre,
.articleBody pre {
  background: var(--hs-fg) !important;
  color: #e2e8f0 !important;
  border-radius: var(--hs-radius) !important;
  padding: 1.25rem !important;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 1.5em;
}

.article-content pre code,
#fullArticle pre code,
.articleBody pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Blockquotes */
.article-content blockquote,
#fullArticle blockquote,
.articleBody blockquote {
  border-left: 4px solid var(--hs-accent) !important;
  background: rgba(40, 181, 161, 0.06);
  padding: 1rem 1.25rem;
  margin: 1.5em 0;
  border-radius: 0 var(--hs-radius) var(--hs-radius) 0;
  color: var(--hs-fg);
}

/* Tables */
.article-content table,
#fullArticle table,
.articleBody table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 0.9375rem;
}

.article-content th,
#fullArticle th,
.articleBody th {
  background: var(--hs-bg);
  font-weight: 600;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid var(--hs-border);
  color: var(--hs-fg);
}

.article-content td,
#fullArticle td,
.articleBody td {
  padding: 0.75rem 1rem;
  border-bottom: none;
}

.article-content tr:hover,
#fullArticle tr:hover,
.articleBody tr:hover {
  background: rgba(245, 247, 250, 0.6);
}

/* Images in articles */
.article-content img,
#fullArticle img,
.articleBody img {
  border-radius: var(--hs-radius);
  box-shadow: var(--hs-shadow-md);
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

/* ---- Sidebar ---- */
.sidebar,
.contentSidebar {
  background: var(--hs-white) !important;
  border-right: 1px solid var(--hs-border) !important;
  border-radius: var(--hs-radius);
}

.sidebar a,
.contentSidebar a {
  color: var(--hs-fg) !important;
  font-weight: 500;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  transition: all 0.15s ease;
}

.sidebar a:hover,
.contentSidebar a:hover {
  background: var(--hs-bg) !important;
  color: var(--hs-primary) !important;
  text-decoration: none !important;
}

.sidebar a.is-active,
.contentSidebar a.is-active,
.sidebar .active a,
.contentSidebar .active a {
  color: var(--hs-primary) !important;
  font-weight: 600;
  background: rgba(12, 102, 161, 0.08) !important;
}

/* ---- Article List ---- */
.articleList a,
.article-list a {
  color: var(--hs-fg) !important;
  font-weight: 500;
  padding: 0.5rem 0;
  border-bottom: none;
  display: block;
  transition: color 0.15s ease;
}

.articleList a:hover,
.article-list a:hover {
  color: var(--hs-primary) !important;
  text-decoration: none !important;
}

/* ---- Breadcrumbs ---- */
.breadcrumbs,
.breadcrumb {
  font-size: 0.875rem;
  color: var(--hs-muted);
}

.breadcrumbs a,
.breadcrumb a {
  color: var(--hs-muted) !important;
  font-weight: 500;
}

.breadcrumbs a:hover,
.breadcrumb a:hover {
  color: var(--hs-primary) !important;
}

/* ---- Buttons ---- */
.btn,
button.btn {
  font-family: var(--hs-font) !important;
  border-radius: var(--hs-radius) !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-primary,
button.btn-primary {
  background: var(--hs-primary) !important;
  border-color: var(--hs-primary) !important;
  color: var(--hs-white) !important;
}

.btn-primary:hover,
button.btn-primary:hover {
  background: var(--hs-primary-dark) !important;
  border-color: var(--hs-primary-dark) !important;
}

/* ---- Responsive ---- */
@media (max-width: 768px) {
  h1 {
    font-size: 1.75rem;
  }
  h2 {
    font-size: 1.5rem;
  }
  h3 {
    font-size: 1.25rem;
  }
  h4 {
    font-size: 1.125rem;
  }
  .searchForm,
  .search,
  .search-form {
    padding: 1.5rem 1rem !important;
  }
}

/* ==========================================================================
   Preserved Existing Custom Rules
   ========================================================================== */

/** Hide the updated time. */
.articleFoot time.lu {
   display: none;
}

/** Hide the footer because of wrong company name. */
footer {
   display: none;
}

.max-width-50 {
   max-width: 50px;
}
.max-width-100 {
   max-width: 100px;
}
.max-width-200 {
   max-width: 200px;
}

.width-50 {
   width: 50px;
}
.width-100 {
   width: 100px;
}
.width-200 {
   width: 200px;
}

.tr-callout-with-image {
   display: flex;
   flex-direction: row;
}
.tr-callout-with-image .image-block {
   margin-right: 25px;
   width: 240px;
}

#fullArticle .tr-callout-with-image img,
.tr-callout-with-image img {
   margin: 5px;
}

#fullArticle .tr-callout-with-image p {
   margin-bottom: 0.25em;
}

/* ── Remove divider lines under category article links ── */
.articleList li,
.articleList .article,
.article-list li,
.article-list a,
.category-list ul li,
.categoryList ul li,
ul.articleList li {
   border-bottom: none !important;
   border-top: none !important;
}

/* ── Stronger override: remove all divider lines from article/category links ── */
.articleList a,
.article-list a,
.category-list a,
.categoryList a,
.docs a.ArticleList-item,
.docs .ArticleList a {
   border-bottom: 0 !important;
   box-shadow: none !important;
   text-decoration: none !important;
}
.articleList a::after,
.article-list a::after,
.category-list a::after,
.categoryList a::after,
.docs a.ArticleList-item::after,
.docs .ArticleList a::after {
   content: none !important;
   display: none !important;
}
