/* =====================================================================
   HappyPlugins - HelpScout Docs Premium Theme v2
   =====================================================================
   SETUP:
   1. Manage > Docs > [Your Site] > Custom Code
   2. Upload via Choose File  OR  paste into <head> code in <style> tags
   3. Save
   
   Also paste the Google Fonts <link> tags into the <head> code field
   (see setup guide for the snippet).
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Source+Serif+4:opsz,wght@8..60,400;8..60,600;8..60,700&family=JetBrains+Mono:wght@400;500&display=swap');


/* ===================
   1. FOUNDATIONS
   =================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #334155;
  background-color: #f6f8fb;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

::selection {
  background: #c7d9f5;
  color: #1e3a5f;
}


/* ===================
   2. HEADER / NAV
   =================== */

#header {
  background: #ffffff !important;
  border-bottom: 1px solid #e8ecf2;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03), 0 0 0 1px rgba(15,23,42,0.02);
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 200;
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
}

#header .inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  min-height: 56px;
}

#header #logo a {
  font-family: 'Source Serif 4', Georgia, serif;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: #0f172a;
  text-decoration: none;
}

#header #logo img {
  max-height: 36px;
  vertical-align: middle;
}

#header nav,
#header .headerNav {
  display: flex;
  align-items: center;
  gap: 2px;
}

#header nav a,
#header .headerNav a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  padding: 6px 13px;
  border-radius: 8px;
  transition: all 0.18s ease;
  position: relative;
}

#header nav a:hover,
#header .headerNav a:hover {
  color: #1e40af;
  background: #eef2ff;
}

#header nav a.active,
#header .headerNav a.active {
  color: #1d4ed8;
  font-weight: 600;
  background: #eef2ff;
}


/* ===================
   3. SEARCH HERO
   =================== */

#docsSearch {
  background: linear-gradient(170deg, #0c1b33 0%, #162d50 50%, #1a3460 100%) !important;
  padding: 58px 28px 66px !important;
  border-bottom: none !important;
  position: relative;
  overflow: hidden;
}

/* Soft radial glow */
#docsSearch::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(ellipse, rgba(59,130,246,0.12) 0%, transparent 70%);
  pointer-events: none;
}

/* Subtle grid texture */
#docsSearch::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.025;
  background-image:
    linear-gradient(rgba(255,255,255,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.5) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

#docsSearch h1 {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 34px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  letter-spacing: -0.025em;
  margin: 0 0 6px !important;
  position: relative;
  z-index: 1;
  line-height: 1.2;
}

#docsSearch p,
#docsSearch .siteDescription {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: rgba(203,213,225,0.7) !important;
  font-weight: 400;
  position: relative;
  z-index: 1;
  margin: 0;
}

/* --- Search Bar --- */
#searchBar {
  position: relative;
  z-index: 2;
  max-width: 540px;
  margin: 30px auto 0;
}

#searchBar .search-query {
  width: 100%;
  background: rgba(255,255,255,0.07) !important;
  border: 1.5px solid rgba(255,255,255,0.12) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), inset 0 1px 0 rgba(255,255,255,0.05) !important;
  color: #ffffff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-size: 15px !important;
  padding: 15px 20px 15px 50px !important;
  transition: all 0.25s ease;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

#searchBar .search-query::placeholder {
  color: rgba(148,163,184,0.6) !important;
  font-weight: 400;
}

#searchBar .search-query:focus {
  border-color: rgba(96,165,250,0.55) !important;
  background: rgba(255,255,255,0.1) !important;
  box-shadow: 0 4px 24px rgba(0,0,0,0.12), 0 0 0 4px rgba(59,130,246,0.12) !important;
  outline: none;
}

#searchBar button {
  background: #3b82f6 !important;
  border: none !important;
  border-radius: 10px !important;
  color: #fff !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 22px;
  transition: all 0.2s ease;
  cursor: pointer;
  letter-spacing: 0.01em;
}

#searchBar button:hover {
  background: #2563eb !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}


/* ===================
   4. CONTENT WRAPPER
   =================== */

#fullContent,
#content,
.contentWrapper {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 28px;
}


/* ===================
   5. COLLECTIONS GRID (Home Page)
   =================== */

.twoCol .collection,
.threeCol .collection {
  background: #ffffff !important;
  border: 1px solid #eaeff5 !important;
  border-radius: 16px !important;
  padding: 28px 26px 24px !important;
  box-shadow: 0 1px 3px rgba(15,23,42,0.04) !important;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: hidden;
}

.twoCol .collection:hover,
.threeCol .collection:hover {
  transform: translateY(-5px);
  box-shadow:
    0 24px 48px rgba(15,23,42,0.07),
    0 4px 12px rgba(15,23,42,0.04),
    0 0 0 1px rgba(59,130,246,0.08) !important;
  border-color: rgba(59,130,246,0.15) !important;
}

/* Top accent line */
.twoCol .collection::before,
.threeCol .collection::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #3b82f6 0%, #6366f1 100%);
  opacity: 0.85;
  transition: all 0.3s ease;
}

.twoCol .collection:hover::before,
.threeCol .collection:hover::before {
  height: 4px;
  opacity: 1;
}

/* Collection headings */
.twoCol .collection h2,
.threeCol .collection h2 {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 17px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.015em;
  margin: 6px 0 8px !important;
  line-height: 1.35;
}

.twoCol .collection p,
.threeCol .collection p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0 0 12px;
}

/* Article links inside collections */
.twoCol .collection ul,
.threeCol .collection ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.twoCol .collection a,
.threeCol .collection a {
  font-family: 'DM Sans', sans-serif;
  color: #334155;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.18s ease;
  display: inline-block;
}

.twoCol .collection a:hover,
.threeCol .collection a:hover {
  color: #1d4ed8;
  transform: translateX(2px);
}

/* Article count */
.twoCol .collection .count,
.threeCol .collection .count {
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  color: #3b82f6;
  font-weight: 600;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}


/* ===================
   6. CATEGORY LIST
   =================== */

.category-list .category {
  background-color: #ffffff !important;
  border: 1px solid #eaeff5 !important;
  border-radius: 14px !important;
  padding: 22px 24px !important;
  margin-bottom: 10px;
  box-shadow: 0 1px 2px rgba(15,23,42,0.03);
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.category-list .category:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(15,23,42,0.06), 0 2px 8px rgba(15,23,42,0.03);
  border-color: rgba(59,130,246,0.12) !important;
}

.category-list .category h3,
.category-list .category h2 {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 0 0 4px !important;
  letter-spacing: -0.01em;
}

.category-list .category p {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.55;
  margin: 0;
}


/* ===================
   7. ARTICLE LIST
   =================== */

.articleList,
.article-list,
ul.articles {
  list-style: none;
  padding: 0;
  margin: 0;
}

.articleList li,
.article-list li,
ul.articles li {
  padding: 0;
  margin: 0;
  border: none;
  border-bottom: 1px solid #f1f4f8;
}

.articleList li:last-child,
.article-list li:last-child,
ul.articles li:last-child {
  border-bottom: none;
}

.articleList li a,
.article-list li a,
ul.articles li a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14.5px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  transition: all 0.18s ease;
  display: block;
  padding: 12px 16px 12px 0;
  position: relative;
}

.articleList li a::before,
.article-list li a::before,
ul.articles li a::before {
  content: '';
  position: absolute;
  left: -12px;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 0;
  border-radius: 3px;
  background: #3b82f6;
  transition: height 0.2s ease;
}

.articleList li a:hover,
.article-list li a:hover,
ul.articles li a:hover {
  color: #1d4ed8;
  padding-left: 6px;
}

.articleList li a:hover::before,
.article-list li a:hover::before,
ul.articles li a:hover::before {
  height: 18px;
}


/* ===================
   8. BREADCRUMBS
   =================== */

.breadcrumbs,
#breadcrumbs {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #94a3b8;
  padding: 20px 0 8px;
  letter-spacing: 0.005em;
}

.breadcrumbs a,
#breadcrumbs a {
  color: #64748b;
  text-decoration: none;
  transition: color 0.18s;
  font-weight: 500;
}

.breadcrumbs a:hover,
#breadcrumbs a:hover {
  color: #1d4ed8;
}


/* ===================
   9. ARTICLE PAGE (Full Article)
   =================== */

/* Article container - wrapped in white card */
#fullArticle,
.contentArticle,
.article {
  background: #ffffff;
  border: 1px solid #eaeff5;
  border-radius: 18px;
  padding: 44px 48px 48px;
  box-shadow: 0 1px 3px rgba(15,23,42,0.03);
  margin-bottom: 28px;
}

/* --- Article Title --- */
#fullArticle h1,
.article h1 {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 32px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.025em;
  line-height: 1.25;
  margin: 0 0 10px !important;
}

/* Intro paragraph - first p after h1 */
#fullArticle > p:first-of-type,
.article > p:first-of-type {
  font-size: 16px;
  color: #475569;
  line-height: 1.7;
}

/* --- In This Article (TOC) --- */
#fullArticle h4,
.article h4 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 28px 0 10px !important;
  padding: 0;
}

/* TOC list styling */
#fullArticle h4 + ul,
.article h4 + ul {
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
  padding: 14px 20px 14px 36px;
  margin: 0 0 28px;
  list-style: none;
  counter-reset: toc-counter;
}

#fullArticle h4 + ul li,
.article h4 + ul li {
  counter-increment: toc-counter;
  padding: 5px 0;
  font-size: 14px;
  position: relative;
}

#fullArticle h4 + ul li::before,
.article h4 + ul li::before {
  content: counter(toc-counter, decimal-leading-zero);
  position: absolute;
  left: -24px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  font-family: 'JetBrains Mono', monospace;
  top: 7px;
}

#fullArticle h4 + ul li a,
.article h4 + ul li a {
  color: #334155;
  font-weight: 500;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.18s;
}

#fullArticle h4 + ul li a:hover,
.article h4 + ul li a:hover {
  color: #1d4ed8;
}

/* --- Headings --- */
#fullArticle h2,
.article h2 {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 23px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.015em;
  margin: 44px 0 14px !important;
  padding: 0 0 10px;
  border-bottom: 2px solid #f1f4f8;
  line-height: 1.3;
  position: relative;
}

#fullArticle h2::after,
.article h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, #3b82f6, #6366f1);
  border-radius: 2px;
}

#fullArticle h3,
.article h3 {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #1e293b !important;
  letter-spacing: -0.01em;
  margin: 32px 0 10px !important;
  line-height: 1.35;
}

/* --- Body Text --- */
#fullArticle p,
.article p {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #475569;
  line-height: 1.8;
  margin: 0 0 16px;
}

#fullArticle li,
.article li {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 6px;
}

/* --- Links --- */
#fullArticle a,
.article a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  background-image: linear-gradient(transparent calc(100% - 1px), rgba(37,99,235,0.3) 1px);
  background-size: 100% 100%;
  transition: all 0.18s ease;
}

#fullArticle a:hover,
.article a:hover {
  color: #1d4ed8;
  background-image: linear-gradient(transparent calc(100% - 1px), #1d4ed8 1px);
}

/* --- Inline Code --- */
#fullArticle code,
.article code {
  background: #f1f5f9;
  color: #c2185b;
  padding: 2px 7px;
  border-radius: 6px;
  font-size: 13px;
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', Consolas, monospace;
  font-weight: 500;
  border: 1px solid #e8ecf2;
  white-space: nowrap;
}

/* --- Code Blocks --- */
#fullArticle pre,
.article pre {
  background: #0f172a !important;
  border: none !important;
  border-radius: 14px !important;
  padding: 22px 26px !important;
  margin: 20px 0 24px !important;
  color: #e2e8f0 !important;
  font-size: 13px;
  line-height: 1.7;
  overflow-x: auto;
  box-shadow: 0 4px 16px rgba(15,23,42,0.12), inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
}

/* Top bar accent on code blocks */
#fullArticle pre::before,
.article pre::before {
  content: '';
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(148,163,184,0.2), transparent);
}

#fullArticle pre code,
.article pre code {
  background: transparent !important;
  color: #e2e8f0 !important;
  padding: 0 !important;
  border: none !important;
  font-size: 13px;
  font-weight: 400;
  white-space: pre;
}

/* --- Callouts / Blockquotes --- */
#fullArticle .callout,
.article .callout {
  border-radius: 12px;
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 14px;
  line-height: 1.65;
  border: 1px solid;
  position: relative;
}

/* Yellow callout (default) */
#fullArticle .callout-yellow,
#fullArticle .callout,
.article .callout {
  background: #fefce8;
  border-color: #fde68a;
  color: #854d0e;
  border-left: 4px solid #f59e0b;
}

/* Blue callout */
#fullArticle .callout-blue,
.article .callout-blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1e40af;
  border-left: 4px solid #3b82f6;
}

/* Green callout */
#fullArticle .callout-green,
.article .callout-green {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
  border-left: 4px solid #22c55e;
}

/* Red callout */
#fullArticle .callout-red,
.article .callout-red {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
  border-left: 4px solid #ef4444;
}

#fullArticle blockquote,
.article blockquote {
  background: #f8fafc;
  border-left: 4px solid #cbd5e1;
  border-radius: 0 12px 12px 0;
  padding: 18px 22px;
  margin: 22px 0;
  font-size: 14.5px;
  color: #475569;
  font-style: italic;
}

#fullArticle blockquote p,
.article blockquote p {
  margin: 0;
  color: inherit;
}

/* --- Images --- */
#fullArticle img,
.article img {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06), 0 0 0 1px rgba(15,23,42,0.03);
  margin: 20px 0;
  max-width: 100%;
  height: auto;
  transition: box-shadow 0.3s ease;
}

#fullArticle img:hover,
.article img:hover {
  box-shadow: 0 8px 28px rgba(15,23,42,0.1), 0 0 0 1px rgba(15,23,42,0.04);
}

#fullArticle img.noBdr,
.article img.noBdr {
  border-radius: 0;
  box-shadow: none;
}

/* Figure captions */
#fullArticle figcaption,
.article figcaption {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: #94a3b8;
  text-align: center;
  margin-top: -12px;
  margin-bottom: 16px;
  font-style: italic;
}

/* --- Tables --- */
#fullArticle table,
.article table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 22px 0;
  font-size: 14px;
  border: 1px solid #e8ecf2;
  border-radius: 12px;
  overflow: hidden;
}

#fullArticle table th,
.article table th {
  background: #f8fafc;
  font-family: 'DM Sans', sans-serif;
  font-weight: 600;
  font-size: 12.5px;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #e8ecf2;
}

#fullArticle table td,
.article table td {
  font-family: 'DM Sans', sans-serif;
  padding: 11px 16px;
  border-bottom: 1px solid #f1f4f8;
  color: #334155;
  vertical-align: top;
}

#fullArticle table tr:last-child td,
.article table tr:last-child td {
  border-bottom: none;
}

#fullArticle table tr:hover td,
.article table tr:hover td {
  background: #fafbfd;
}

/* --- Definition Lists --- */
#fullArticle dt {
  background: #f1f5f9 !important;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  border-radius: 8px;
  padding: 6px 12px;
  display: inline-block;
  margin: 12px 0 4px;
}

#fullArticle dd {
  font-family: 'DM Sans', sans-serif;
  color: #475569;
  margin-left: 16px;
  padding-left: 12px;
  border-left: 2px solid #e8ecf2;
}

/* --- Lists --- */
#fullArticle ul,
.article ul {
  padding-left: 20px;
}

#fullArticle ol,
.article ol {
  padding-left: 20px;
}

#fullArticle ul li::marker,
.article ul li::marker {
  color: #94a3b8;
}

#fullArticle ol li::marker,
.article ol li::marker {
  color: #64748b;
  font-weight: 600;
  font-size: 14px;
}

/* --- Bold & Italic --- */
#fullArticle strong,
.article strong {
  font-weight: 600;
  color: #1e293b;
}

#fullArticle em,
.article em {
  font-style: italic;
  color: #475569;
}

/* --- Horizontal Rules --- */
#fullArticle hr,
.article hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
  margin: 36px 0;
}

/* --- Videos --- */
#fullArticle .video.widescreen,
.article .video.widescreen {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(15,23,42,0.06);
  margin: 22px 0;
}


/* ===================
   10. RELATED ARTICLES
   =================== */

.relatedArticles,
#fullArticle .related {
  margin-top: 32px;
  padding: 20px 24px;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 14px;
}

.relatedArticles h3,
#fullArticle .related h3 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 10px !important;
}

.relatedArticles a,
#fullArticle .related a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  background: none;
  transition: color 0.18s;
  display: block;
  padding: 5px 0;
}

.relatedArticles a:hover,
#fullArticle .related a:hover {
  color: #1d4ed8;
}


/* ===================
   11. ARTICLE FOOTER
   =================== */

.articleFoot {
  border-top: none;
  padding: 24px 0 0;
  margin-top: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.articleFoot time.lu {
  font-family: 'DM Sans', sans-serif;
  font-size: 12.5px;
  color: #94a3b8;
  font-weight: 400;
}

/* Feedback question */
.articleFoot .question {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
}

/* Thumbs up / down */
.articleFoot .thumbsUp,
.articleFoot .thumbsDown,
.articleFoot button {
  border-radius: 10px !important;
  font-family: 'DM Sans', sans-serif !important;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 18px;
  border: 1px solid #e8ecf2 !important;
  background: #fff !important;
  color: #475569 !important;
  cursor: pointer;
  transition: all 0.18s ease;
}

.articleFoot .thumbsUp:hover,
.articleFoot button:hover {
  background: #f0fdf4 !important;
  border-color: #86efac !important;
  color: #166534 !important;
}

.articleFoot .thumbsDown:hover {
  background: #fef2f2 !important;
  border-color: #fca5a5 !important;
  color: #991b1b !important;
}


/* ===================
   12. SIDEBAR
   =================== */

.sidebar,
#sidebar {
  font-family: 'DM Sans', sans-serif;
}

.sidebar h3,
#sidebar h3 {
  font-family: 'DM Sans', sans-serif !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #94a3b8 !important;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin: 0 0 12px !important;
  padding-bottom: 8px;
  border-bottom: 1px solid #f1f4f8;
}

.sidebar ul,
#sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar li,
#sidebar li {
  margin: 0;
  padding: 0;
}

.sidebar a,
#sidebar a {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  display: block;
  padding: 7px 12px;
  border-radius: 8px;
  transition: all 0.18s ease;
  border-left: 2px solid transparent;
}

.sidebar a:hover,
#sidebar a:hover {
  color: #1d4ed8;
  background: #f0f4ff;
  border-left-color: #3b82f6;
}

.sidebar a.active,
#sidebar a.active {
  color: #1d4ed8;
  font-weight: 600;
  background: #eef2ff;
  border-left-color: #3b82f6;
}

/* Sidebar search */
#sidebar .search input,
.sidebar .search input {
  font-family: 'DM Sans', sans-serif;
  font-size: 13.5px;
  border: 1px solid #e8ecf2;
  border-radius: 10px;
  padding: 9px 14px;
  width: 100%;
  transition: all 0.2s;
  background: #f8fafc;
}

#sidebar .search input:focus,
.sidebar .search input:focus {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(59,130,246,0.1);
  outline: none;
  background: #fff;
}


/* ===================
   13. SEARCH RESULTS PAGE
   =================== */

.searchResults,
.search-results {
  max-width: 1120px;
  margin: 0 auto;
  padding: 20px 28px;
}

.searchResults h2,
.search-results h2 {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 22px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  margin-bottom: 16px;
}

.searchResults .result,
.search-results .result {
  background: #fff;
  border: 1px solid #eaeff5;
  border-radius: 14px;
  padding: 20px 24px;
  margin-bottom: 10px;
  transition: all 0.25s ease;
}

.searchResults .result:hover,
.search-results .result:hover {
  border-color: rgba(59,130,246,0.15);
  box-shadow: 0 4px 16px rgba(15,23,42,0.05);
}

.searchResults .result a,
.search-results .result a {
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
  transition: color 0.18s;
}

.searchResults .result a:hover,
.search-results .result a:hover {
  color: #1d4ed8;
}

.searchResults .result p,
.search-results .result p {
  font-size: 14px;
  color: #64748b;
  margin: 6px 0 0;
  line-height: 1.6;
}


/* ===================
   14. FOOTER
   =================== */

#footer,
footer {
  background: #ffffff !important;
  border-top: 1px solid #e8ecf2;
  padding: 24px 28px;
  text-align: center;
  margin-top: 48px;
}

#footer p, footer p,
#footer a, footer a {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  color: #94a3b8;
}

#footer a:hover,
footer a:hover {
  color: #3b82f6;
}


/* ===================
   15. SECTION HEADINGS (Homepage)
   =================== */

.contentWrapper > h2,
#fullContent > h2 {
  font-family: 'Source Serif 4', Georgia, serif !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.015em;
  position: relative;
  padding-left: 16px;
  margin: 36px 0 18px !important;
}

.contentWrapper > h2::before,
#fullContent > h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, #3b82f6, #6366f1);
}


/* ===================
   16. RESPONSIVE
   =================== */

@media (max-width: 900px) {
  #fullArticle,
  .contentArticle,
  .article {
    padding: 32px 28px 36px;
    border-radius: 14px;
  }
}

@media (max-width: 768px) {
  #docsSearch {
    padding: 40px 20px 48px !important;
  }

  #docsSearch h1 {
    font-size: 26px !important;
  }

  #searchBar {
    max-width: 100%;
  }

  .twoCol .collection,
  .threeCol .collection {
    padding: 22px 20px !important;
    border-radius: 14px !important;
  }

  #fullArticle,
  .contentArticle,
  .article {
    padding: 24px 20px 28px;
    border-radius: 12px;
  }

  #fullArticle h1,
  .article h1 {
    font-size: 25px !important;
  }

  #fullArticle h2,
  .article h2 {
    font-size: 20px !important;
  }

  #fullArticle pre,
  .article pre {
    border-radius: 10px !important;
    padding: 16px 18px !important;
    font-size: 12.5px;
  }

  #fullArticle table,
  .article table {
    border-radius: 10px;
    font-size: 13px;
  }

  #fullArticle table th,
  .article table th,
  #fullArticle table td,
  .article table td {
    padding: 9px 12px;
  }

  #header {
    padding: 0 16px;
  }

  #fullContent,
  #content,
  .contentWrapper {
    padding: 0 16px;
  }
}

@media (max-width: 480px) {
  #fullArticle,
  .contentArticle,
  .article {
    padding: 20px 16px 24px;
    border-radius: 10px;
  }

  #fullArticle h1,
  .article h1 {
    font-size: 22px !important;
  }
}


/* ===================
   17. PRINT STYLES
   =================== */

@media print {
  #header, #docsSearch, #sidebar, .sidebar,
  .articleFoot, #footer, footer {
    display: none !important;
  }

  #fullArticle,
  .contentArticle,
  .article {
    box-shadow: none;
    border: none;
    padding: 0;
  }

  body {
    background: #fff;
    color: #000;
  }
}
