/* ═══════════════════════════════════════════════════════════
   Neoden USA Docs — Syntax-inspired Theme
   CSS Custom Properties + Dark Mode + Sidebar Layout
   ═══════════════════════════════════════════════════════════ */

/* ── Fonts ──────────────────────────────────────────────── */
@import url('https://rsms.me/inter/inter.css');

/* ── CSS Custom Properties ──────────────────────────────── */
:root {
  /* Layout */
  --sidebar-width: 280px;
  --mobile-bar-height: 56px;
  --toc-width: 224px;

  /* Neoden Brand Colors */
  --brand-blue: #1E22AA;
  --brand-dark: #041C2C;
  --brand-grey: #A2AAAD;
  --brand-light: #EBEAEE;
  --brand-red: #F9423A;

  /* Sidebar — Light/white style */
  --sidebar-bg: #ffffff;
  --sidebar-border: #e2e8f0;
  --sidebar-header-color: var(--brand-dark);
  --sidebar-link-color: #64748b;
  --sidebar-link-hover: var(--brand-dark);
  --sidebar-link-active: var(--brand-blue);
  --sidebar-active-dot: var(--brand-blue);
  --sidebar-section-color: var(--brand-dark);

  /* Page */
  --bg-primary: #ffffff;
  --bg-secondary: #f8fafc;
  --bg-tertiary: #f1f5f9;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --accent: var(--brand-blue);
  --accent-hover: #161B88;
  --accent-subtle: rgba(30, 34, 170, 0.08);
  --border: #e2e8f0;
  --border-hover: #cbd5e1;

  /* Cards */
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.06);
  --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.06), 0 4px 10px rgba(0, 0, 0, 0.04);

  /* TOC */
  --toc-header-color: var(--brand-dark);
  --toc-link-color: #64748b;
  --toc-link-active: var(--brand-blue);
  --toc-border: #e2e8f0;

  /* Misc */
  --radius: 8px;
  --radius-lg: 12px;
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --sidebar-bg: #0f172a;
  --sidebar-border: #1e293b;
  --sidebar-header-color: #e2e8f0;
  --sidebar-link-color: #94a3b8;
  --sidebar-link-hover: #e2e8f0;
  --sidebar-link-active: #6366f1;
  --sidebar-active-dot: #6366f1;
  --sidebar-section-color: #e2e8f0;

  --bg-primary: #0f172a;
  --bg-secondary: #1e293b;
  --bg-tertiary: #334155;
  --text-primary: #e2e8f0;
  --text-secondary: #94a3b8;
  --text-tertiary: #64748b;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-subtle: rgba(99, 102, 241, 0.1);
  --border: #334155;
  --border-hover: #475569;

  --card-bg: #1e293b;
  --card-border: #334155;
  --card-shadow: 0 1px 3px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.15);
  --card-shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.3), 0 4px 10px rgba(0, 0, 0, 0.2);

  --toc-header-color: #e2e8f0;
  --toc-link-color: #94a3b8;
  --toc-link-active: #6366f1;
  --toc-border: #334155;
}

/* ── Global Reset & Base ────────────────────────────────── */
html {
  font-family: 'Inter var', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

@supports (font-variation-settings: normal) {
  html { font-family: 'Inter var', sans-serif; }
}

* {
  transition: background-color var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-secondary) !important;
  color: var(--text-primary);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, strong {
  font-weight: 600;
  color: var(--text-primary);
}

strong {
  -webkit-font-smoothing: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--accent-hover);
}

/* ── Hide Original Nav & Search Hero ────────────────────── */
.syntax-layout #mainNav {
  display: none !important;
}

.syntax-layout #docsSearch {
  display: none !important;
}

/* ── Sidebar ────────────────────────────────────────────── */
#syntaxSidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: var(--sidebar-width);
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

/* Sidebar scrollbar */
#syntaxSidebar::-webkit-scrollbar {
  width: 4px;
}

#syntaxSidebar::-webkit-scrollbar-track {
  background: transparent;
}

#syntaxSidebar::-webkit-scrollbar-thumb {
  background: var(--brand-grey);
  border-radius: 2px;
  opacity: 0.4;
}

/* Sidebar header / logo */
.sidebar-header {
  padding: 24px 20px 16px;
  border-bottom: 1px solid var(--sidebar-border);
}

.sidebar-logo {
  display: block;
  line-height: 1;
}

.sidebar-logo img {
  height: 20px;
  width: auto;
}

/* Dark mode: invert logo for readability */
[data-theme="dark"] .sidebar-logo img {
  filter: brightness(0) invert(1);
  opacity: 0.9;
}

/* Sidebar search */
.sidebar-search {
  padding: 16px 16px 8px;
  position: relative;
}

#sidebarSearchBar,
#syntaxSearchBar {
  width: 100% !important;
  display: block !important;
  position: relative;
  margin-bottom: 0 !important;
}

#sidebarSearchBar input.search-query,
#syntaxSearchBar input.search-query {
  width: 100% !important;
  height: 38px !important;
  background: var(--bg-secondary) !important;
  border: 1px solid var(--sidebar-border) !important;
  border-radius: 6px !important;
  color: var(--text-primary) !important;
  font-size: 13px !important;
  padding: 6px 14px !important;
  box-sizing: border-box !important;
  outline: none;
}

#sidebarSearchBar input.search-query::placeholder,
#syntaxSearchBar input.search-query::placeholder {
  color: var(--text-tertiary) !important;
}

#sidebarSearchBar input.search-query:focus,
#syntaxSearchBar input.search-query:focus {
  background: var(--bg-primary) !important;
  border-color: var(--accent) !important;
  box-shadow: 0 0 0 2px var(--accent-subtle) !important;
}

#sidebarSearchBar button,
#syntaxSearchBar button {
  display: none !important;
}

/* Hide original sidebar autocomplete (we mirror results into #syntaxSerp) */
#sidebarSearchBar #serp-dd {
  display: none !important;
}

/* Sidebar search autocomplete – styled dropdown in our custom sidebar */
#syntaxSerp {
  position: absolute;
  top: 42px;
  left: 0;
  width: 100%;
  z-index: 100;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: var(--card-bg);
  display: none;
}

#syntaxSerp .result {
  list-style: none;
  margin: 0;
  padding: 4px 0;
}

#syntaxSerp .result a {
  display: block;
  padding: 10px 14px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.4;
  transition: background 0.1s ease;
}

#syntaxSerp .result li:hover a,
#syntaxSerp .result li.active a {
  background: var(--bg-tertiary);
  color: var(--accent);
}

/* ── Sidebar: Collection list (home page nav) ──────────── */
.sidebar-collection-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-collection-list li {
  margin: 1px 8px;
}

.sidebar-collection-list li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--sidebar-link-color);
  font-size: 14px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.sidebar-collection-list li a:hover {
  background: var(--accent-subtle);
  color: var(--sidebar-link-hover);
  text-decoration: none;
}

.sidebar-collection-list li.active a {
  background: var(--accent-subtle);
  color: var(--sidebar-link-active);
  font-weight: 500;
}

.sidebar-collection-list li.sidebar-contact {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--sidebar-border);
}

/* ── Sidebar: Back link ────────────────────────────────── */
.sidebar-back-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 500;
  color: var(--sidebar-link-color);
  text-decoration: none;
  transition: color 0.15s ease;
}

.sidebar-back-link:hover {
  color: var(--sidebar-link-active);
  text-decoration: none;
}

.sidebar-back-link svg {
  flex-shrink: 0;
}

/* Collection title (displayed as heading above categories) */
.sidebar-collection-title {
  padding: 4px 20px 12px;
  font-size: 16px;
  font-weight: 700;
  color: var(--sidebar-header-color);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

/* ── Sidebar: Syntax-style hierarchical nav ────────────── */
.sidebar-nav {
  flex: 1;
  padding: 8px 0;
  overflow-y: auto;
}

.syntax-nav-tree {
  padding: 0 16px 16px;
}

.nav-section-header {
  font-size: 14px;
  font-weight: 600;
  color: var(--sidebar-section-color);
  margin: 20px 0 4px;
  padding: 0;
  line-height: 1.4;
}

.nav-section-header:first-child {
  margin-top: 8px;
}

/* Clickable category headers (category/collection pages) */
a.nav-section-header.nav-section-link {
  display: block;
  text-decoration: none;
  font-weight: 500;
  color: var(--sidebar-link-color);
  padding: 7px 10px;
  margin: 1px -10px;
  border-radius: 6px;
  transition: background 0.15s ease, color 0.15s ease;
}

a.nav-section-header.nav-section-link:first-child {
  margin-top: 0;
}

a.nav-section-header.nav-section-link:hover {
  background: var(--accent-subtle);
  color: var(--sidebar-link-active);
  text-decoration: none;
}

a.nav-section-header.nav-section-link.active {
  color: var(--sidebar-link-active);
  background: var(--accent-subtle);
}

.nav-article-list {
  list-style: none;
  margin: 0 0 0 0;
  padding: 0;
  border-left: 2px solid var(--sidebar-border);
}

.nav-article-list li {
  position: relative;
}

.nav-article-list li a {
  display: block;
  width: 100%;
  padding: 4px 0 4px 14px;
  font-size: 14px;
  color: var(--sidebar-link-color);
  text-decoration: none;
  transition: color 0.15s ease;
  line-height: 1.5;
}

/* Before pseudo-element: accent dot on left border */
.nav-article-list li a::before {
  content: '';
  pointer-events: none;
  position: absolute;
  top: 50%;
  left: -1px;
  width: 6px;
  height: 6px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: transparent;
}

.nav-article-list li a:hover {
  color: var(--sidebar-link-hover);
  text-decoration: none;
}

.nav-article-list li a:hover::before {
  background: var(--brand-grey);
}

/* Active article — accent dot + accent color + bold */
.nav-article-list li.active a {
  color: var(--sidebar-link-active);
  font-weight: 600;
}

.nav-article-list li.active a::before {
  background: var(--sidebar-active-dot);
}

/* ── Sidebar: Loading placeholder ──────────────────────── */
.nav-loading-placeholder {
  padding: 4px 0 4px 14px;
  border-left: 2px solid var(--sidebar-border);
}

.nav-loading-placeholder span {
  display: block;
  height: 12px;
  margin: 8px 0;
  border-radius: 3px;
  background: var(--sidebar-border);
  opacity: 0.5;
  animation: shimmer 1.5s ease-in-out infinite alternate;
}

.nav-loading-placeholder span:nth-child(1) { width: 70%; }
.nav-loading-placeholder span:nth-child(2) { width: 55%; }
.nav-loading-placeholder span:nth-child(3) { width: 85%; }

@keyframes shimmer {
  0% { opacity: 0.3; }
  100% { opacity: 0.6; }
}

/* ── Sidebar footer ────────────────────────────────────── */
.sidebar-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--sidebar-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-footer-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  letter-spacing: 0.02em;
}

#darkModeToggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-tertiary);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

#darkModeToggle:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* ── Mobile Top Bar ─────────────────────────────────────── */
#mobileTopBar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--mobile-bar-height);
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  z-index: 999;
  align-items: center;
  padding: 0 16px;
  gap: 12px;
}

#mobileMenuToggle {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

#mobileMenuToggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 1px;
  transition: all 0.2s ease;
}

.mobile-logo {
  flex: 1;
  display: flex;
  align-items: center;
}

.mobile-logo img {
  height: 18px;
  width: auto;
}

[data-theme="dark"] .mobile-logo img {
  filter: brightness(0) invert(1);
}

.mobile-dark-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--bg-tertiary);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
}

.mobile-dark-toggle:hover {
  color: var(--text-primary);
}

/* Sidebar overlay */
#sidebarOverlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

#sidebarOverlay.open {
  display: block;
  opacity: 1;
}

/* ── Layout ─────────────────────────────────────────────── */

/* Desktop: sidebar + offset content */
@media screen and (min-width: 769px) {
  .syntax-layout #contentArea {
    margin-left: var(--sidebar-width);
    max-width: none;
    padding: 40px 60px;
  }

  #mobileTopBar {
    display: none !important;
  }
}

/* Tablet */
@media screen and (min-width: 769px) and (max-width: 1100px) {
  .syntax-layout #contentArea {
    padding: 32px 40px;
  }
}

/* Mobile */
@media screen and (max-width: 768px) {
  #syntaxSidebar {
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
  }

  #syntaxSidebar.open {
    transform: translateX(0);
  }

  #mobileTopBar {
    display: flex !important;
  }

  .syntax-layout #contentArea {
    margin-left: 0;
    padding: 16px;
    padding-top: calc(var(--mobile-bar-height) + 16px);
  }

  body.sidebar-open {
    overflow: hidden;
  }
}

/* ── Content Area ───────────────────────────────────────── */
.syntax-layout #contentArea {
  background: var(--bg-secondary);
  min-height: 100vh;
}

.container-fluid {
  max-width: 1200px;
}

/* ── Page Header (generated by hiding search hero) ──────── */
.syntax-layout #contentArea > .collection-category:first-of-type {
  padding-top: 8px;
}

/* ── Collection Sections ────────────────────────────────── */
.collection-category {
  margin-bottom: 48px;
}

.collection-category h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.collection-category h2 a {
  color: var(--text-primary);
  text-decoration: none;
}

.collection-category h2 a:hover {
  color: var(--accent);
}

/* Category list — flex layout is set by JS; CSS provides fallback */
.collection-category .category-list,
#contentArea .category-list {
  margin-bottom: 0;
}

/* ── Category Cards ─────────────────────────────────────── */
/* JS handles: display, text-align, margin, width (inline styles beat base CSS).
   CSS handles: visual styling (colors, borders, shadows, padding, hover). */
#contentArea .category-list .category {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  box-shadow: var(--card-shadow);
  box-sizing: border-box;
  padding: 24px;
  min-height: auto;
  transition: all 0.2s ease;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  background-image: none;
  cursor: pointer;
}

/* Accent bar on left edge — hidden by default, shown on hover */
#contentArea .category-list .category::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#contentArea .category-list .category:hover {
  background-color: var(--card-bg);
  box-shadow: var(--card-shadow-hover);
  border-color: var(--border-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

#contentArea .category-list .category:hover::before {
  opacity: 1;
}

#contentArea .category-list .category:active {
  transform: translateY(0);
}

#contentArea .category-list h3 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
  line-height: 1.4;
}

#contentArea .category-list .category p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 8px;
  line-height: 1.5;
}

#contentArea .category-list .category .article-count {
  margin-bottom: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  transition: color var(--transition);
}

#contentArea .category-list .category:hover .article-count {
  color: var(--accent-hover);
}

/* Two-col variant */
#contentArea .category-list.two-col .category {
  min-height: auto;
}

/* ── Category Icons — override to remove background images ─ */
#category-65,
#category-4,
#category-55,
#category-58,
#category-33 {
  background-image: none !important;
}

/* Iconless categories */
#collection-category-8 .category {
  padding-top: 24px;
  min-height: auto;
}

/* ── TOC Sidebar (Article pages, right side) ───────────── */
.toc-sidebar {
  display: none; /* Hidden by default, shown on wide screens */
}

@media screen and (min-width: 1280px) {
  .toc-sidebar {
    display: block;
    position: fixed;
    right: 0;
    top: 0;
    width: var(--toc-width);
    height: 100vh;
    padding: 40px 24px 40px 0;
    box-sizing: border-box;
    overflow-y: auto;
    z-index: 10;
  }
}

.toc-sidebar nav {
  position: sticky;
  top: 40px;
}

.toc-sidebar h2 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--toc-header-color);
  margin-bottom: 12px;
}

.toc-list,
.toc-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.toc-list {
  border-left: 2px solid var(--toc-border);
  padding-left: 0;
}

.toc-list > li {
  margin: 0;
}

.toc-list a,
.toc-sublist a {
  display: block;
  padding: 4px 0 4px 14px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--toc-link-color);
  text-decoration: none;
  transition: color 0.15s ease;
  border-left: 2px solid transparent;
  margin-left: -2px;
}

.toc-list a:hover,
.toc-sublist a:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.toc-list a.active,
.toc-sublist a.active {
  color: var(--toc-link-active);
  border-left-color: var(--toc-link-active);
  font-weight: 500;
}

.toc-sublist {
  border-left: none;
  padding-left: 12px;
}

.toc-sublist a {
  font-size: 12px;
  padding: 3px 0 3px 14px;
}

/* Scroll margin for anchored headings */
#fullArticle h1[id],
#fullArticle h2[id],
#fullArticle h3[id],
#fullArticle h4[id] {
  scroll-margin-top: 80px;
}

/* ── Hide HelpScout native sidebar on inner pages ──────── */
/* Use clip instead of display:none so jQuery delegated events      */
/* on #sidebar still fire (needed for search autocomplete proxy).   */
.page-article #sidebar,
.page-category #sidebar,
.page-collection #sidebar {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Expand main content to full width when native sidebar hidden */
.page-article #main-content,
.page-category #main-content,
.page-collection #main-content {
  width: 100% !important;
  float: none !important;
}

/* Reset row-fluid on inner pages (removes Bootstrap span9 constraint) */
.page-article #contentArea .row-fluid,
.page-category #contentArea .row-fluid,
.page-collection #contentArea .row-fluid {
  display: block;
}

/* 3-column layout for article pages: leave space for TOC on right */
@media screen and (min-width: 1280px) {
  .page-article #contentArea {
    margin-right: calc(var(--toc-width) + 24px);
  }
}

/* ── Footer ─────────────────────────────────────────────── */
footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

footer p {
  font-size: 13px;
  color: var(--text-tertiary);
}

footer p a {
  color: var(--text-tertiary);
}

footer p a:hover {
  color: var(--accent);
}

/* ── Article: Content Wrapper ───────────────────────────── */
.contentWrapper,
.related {
  background-color: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  color: var(--text-secondary);
  box-shadow: var(--card-shadow);
  padding: 30px;
  word-break: break-word;
}

@media screen and (min-width: 768px) and (max-width: 1000px) {
  .contentWrapper {
    padding: 50px 55px;
  }
}

@media screen and (min-width: 1000px) {
  .contentWrapper {
    padding: 70px 90px;
  }
}

.contentWrapper h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 0.5em;
  color: var(--text-primary);
}

@media screen and (min-width: 1000px) {
  .contentWrapper h1 {
    font-size: 36px;
  }
}

.contentWrapper a {
  color: var(--accent);
}

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

.related {
  border-radius: var(--radius);
  margin-top: 24px;
  padding: 24px;
}

.related h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  padding-left: 0;
}

.related ul {
  margin-left: 0;
}

.related ul > li a {
  margin-left: 0;
  color: var(--accent);
}

@media screen and (min-width: 1000px) {
  .related {
    padding: 40px 90px;
  }
}

/* ── Article: Typography ────────────────────────────────── */
#fullArticle {
  margin: 0 auto;
  max-width: 720px;
}

#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle blockquote,
#fullArticle dd,
#fullArticle table {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 1.5em;
}

#fullArticle a strong,
#fullArticle strong a {
  color: var(--accent);
}

#fullArticle li {
  margin-bottom: 10px;
}

#fullArticle h1.title {
  margin: 0 1em 1.2em 0;
}

#fullArticle h3 {
  -webkit-font-smoothing: auto;
  color: var(--text-primary);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin: 1.8em 0 .8em;
}

@media screen and (min-width: 768px) {
  #fullArticle h3 {
    font-size: 26px;
  }
}

#fullArticle h4 {
  -webkit-font-smoothing: auto;
  color: var(--text-primary);
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  margin: 2em 0 1.25em;
}

@media screen and (min-width: 768px) {
  #fullArticle h4 {
    font-size: 22px;
  }
}

#fullArticle h5 {
  -webkit-font-smoothing: auto;
  color: var(--text-primary);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 1em 0 .5em;
}

.contentWrapper p.descrip {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 25px;
  margin-top: 0;
  line-height: 1.6;
}

@media screen and (min-width: 1000px) {
  .contentWrapper p.descrip {
    margin-bottom: 0;
    max-width: 30rem;
  }
}

#fullArticle img {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 2em 0 3em;
  padding: 0;
}

/* Index list (table of contents) */
#fullArticle .index-list {
  background: var(--bg-tertiary);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  margin: 3em 0;
  padding: 15px 0px;
}

#fullArticle .index-list:before,
#fullArticle .index-list:after {
  display: table;
  content: "";
  line-height: 0;
}

#fullArticle .index-list::after {
  clear: both;
}

#fullArticle .index-list ul {
  list-style: none;
  margin: 0.7em 25px 0em 0;
  float: left;
  width: 100%;
}

#fullArticle .index-list li {
  padding-left: 25px;
}

@media screen and (min-width: 1000px) {
  #fullArticle .index-list li {
    float: left;
    width: 45%;
  }
}

#fullArticle .index-list h4 {
  text-transform: uppercase;
  margin: 0;
  padding: 8px 26px 0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
}

#fullArticle dt {
  padding: 0;
  width: 26px;
  background: var(--bg-tertiary);
  height: 26px;
  line-height: 26px;
  font-weight: 500;
  font-size: 14px;
  border-radius: 4px;
}

#fullArticle dd {
  margin-left: 40px;
}

/* Article list */
.articleList {
  box-sizing: border-box;
  margin-top: 34px;
  padding-top: 25px;
  position: relative;
}

.articleList:before {
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 3px;
  left: 0;
  background: var(--accent);
  border-radius: 2px;
}

.articleList li a:hover span {
  color: var(--accent-hover);
  text-decoration: none;
}

.articleList li a i {
  display: none;
}

@media screen and (max-width: 768px) {
  .articleList li {
    font-size: 16px;
  }
}

.articleList li {
  margin: 1em 0;
  padding-left: 0;
  font-size: 16px;
}

.articleList a {
  margin-left: 0;
  color: var(--accent);
}

.articleList a:hover {
  color: var(--accent-hover);
}

/* ── Collection Page: Title + Description Header ────────── */
#collectionHead {
  margin-bottom: 8px;
  position: relative;
}

#collectionHead h1 {
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  color: var(--text-primary);
}

@media screen and (min-width: 768px) {
  #collectionHead h1 {
    font-size: 36px;
  }
}

#collectionHead .descrip {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* Demote the "Most Popular Articles" h1 to a section subheading */
.page-collection .contentWrapper > h1:not(#collectionHead h1) {
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-tertiary);
  margin-top: 32px;
  margin-bottom: 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

[data-theme="dark"] #collectionHead h1 {
  color: var(--text-primary) !important;
}

/* ── Category / Collection Page: Article List as Row Cards ─ */
.page-category .articleList,
.page-collection .articleList {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 28px;
  padding-top: 0;
  counter-reset: article;
}

/* Remove the accent bar on category/collection pages (cards replace it) */
.page-category .articleList:before,
.page-collection .articleList:before {
  display: none;
}

.page-category .articleList li,
.page-collection .articleList li {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Numbered badge via CSS counter */
.page-category .articleList li::before,
.page-collection .articleList li::before {
  counter-increment: article;
  content: counter(article);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-tertiary);
  font-size: 12px;
  font-weight: 600;
  transition: all 0.15s ease;
}

.page-category .articleList li a,
.page-collection .articleList li a {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card-bg);
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 450;
  text-decoration: none;
  transition: all 0.15s ease;
  margin-left: 0;
}

.page-category .articleList li a span,
.page-collection .articleList li a span {
  color: inherit;
}

/* Subtle arrow on the right */
.page-category .articleList li a::after,
.page-collection .articleList li a::after {
  content: '';
  flex-shrink: 0;
  margin-left: auto;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E") center/contain no-repeat;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

/* Hover state */
.page-category .articleList li a:hover,
.page-collection .articleList li a:hover {
  border-color: var(--accent);
  background: var(--accent-subtle);
  color: var(--accent);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  text-decoration: none;
}

.page-category .articleList li a:hover span,
.page-collection .articleList li a:hover span {
  color: var(--accent);
}

.page-category .articleList li a:hover::after,
.page-collection .articleList li a:hover::after {
  opacity: 1;
  transform: translateX(2px);
}

.page-category .articleList li:hover::before,
.page-collection .articleList li:hover::before {
  background: var(--accent);
  color: white;
}

/* Hide the original icon */
.page-category .articleList li a i,
.page-collection .articleList li a i {
  display: none;
}

/* Dark mode arrow */
[data-theme="dark"] .page-category .articleList li a::after,
[data-theme="dark"] .page-collection .articleList li a::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpolyline points='9 18 15 12 9 6'/%3E%3C/svg%3E");
}

/* ── Article: Sidebar ───────────────────────────────────── */
@media screen and (max-width: 768px) {
  #sidebar {
    margin-top: 40px;
  }
}

#sidebar h3 {
  font-size: 16px;
  text-transform: none;
  color: var(--text-primary);
  font-weight: 600;
}

#sidebar .nav-list {
  margin: 16px 0;
}

#sidebar .nav-list a {
  font-size: 14px;
  color: var(--text-secondary);
  padding: 6px 12px 6px 0;
  transition: color var(--transition);
}

#sidebar .nav-list a:hover {
  color: var(--accent);
}

#sidebar .nav-list .active a,
#sidebar .nav-list .active a:hover,
#sidebar .nav-list .active a:focus {
  font-weight: 500;
  color: var(--text-primary);
}

.icon-arrow:before {
  color: var(--text-tertiary);
}

/* Sidebar search on article pages */
#searchBar.sm button {
  width: 40px;
  top: 1px;
  right: 0;
  background: url("https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon-search.svg") center center no-repeat;
}

#searchBar.sm button:hover {
  background: url("https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon-search.svg") center center no-repeat;
}

#sidebar form .search-query {
  border: 1px solid var(--border);
  border-radius: 6px;
  height: 38px;
  font-size: 14px;
  background: var(--card-bg);
  color: var(--text-primary);
}

#categoryHead .sort select {
  font-size: 12px;
  height: 28px;
  background: var(--card-bg);
  color: var(--text-primary);
  border-color: var(--border);
}

#categoryHead .sort {
  position: relative;
  top: 0;
}

@media screen and (min-width: 1000px) {
  #categoryHead .sort {
    position: absolute;
    right: 0;
    top: 8px;
  }
}

/* ── Article: Main content area ─────────────────────────── */
#main-content {
  box-sizing: border-box;
  background: none;
}

@media screen and (max-width: 768px) {
  #main-content {
    margin: 20px 0 0;
  }
}

/* ── Callouts ───────────────────────────────────────────── */
#fullArticle .callout-yellow, #fullArticle .callout-blue,
#fullArticle .callout-red,
#fullArticle .callout-green,
#fullArticle .callout,
#fullArticle .private-note {
  border-left-width: 3px;
  border-radius: 0 var(--radius) var(--radius) 0;
}

#fullArticle .callout-yellow,
#fullArticle .private-note {
  background: #fff6e3;
  border-color: #FFC555;
  margin: 2em 0 4em;
}

[data-theme="dark"] #fullArticle .callout-yellow,
[data-theme="dark"] #fullArticle .private-note {
  background: rgba(255, 197, 85, 0.1);
}

#fullArticle .callout-yellow.dashed {
  border-left-width: 1px;
}

#fullArticle .private-note {
  background: #fff6e3 url('https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--lock.svg') no-repeat top 18px right 18px;
  padding: 20px 24px;
}

[data-theme="dark"] #fullArticle .private-note {
  background-color: rgba(255, 197, 85, 0.1);
}

#fullArticle .private-note > h4 {
  margin-top: 0;
}

#fullArticle a:hover, #fullArticle a:focus {
  color: var(--accent-hover);
}

/* ── Dark-mode heading color override ─────────────────── */
/* HelpScout native CSS sets h1/h2 color with equal or     */
/* higher specificity; force our token in dark mode.        */
[data-theme="dark"] .contentWrapper h1,
[data-theme="dark"] #fullArticle h1,
[data-theme="dark"] #fullArticle h2,
[data-theme="dark"] #fullArticle h3,
[data-theme="dark"] #fullArticle h4,
[data-theme="dark"] #categoryHead h1 {
  color: var(--text-primary) !important;
}

/* Headings inside callout boxes keep their original color */
[data-theme="dark"] #fullArticle .callout h1,
[data-theme="dark"] #fullArticle .callout h2,
[data-theme="dark"] #fullArticle .callout h3,
[data-theme="dark"] #fullArticle .callout h4,
[data-theme="dark"] #fullArticle .callout-yellow h1,
[data-theme="dark"] #fullArticle .callout-yellow h2,
[data-theme="dark"] #fullArticle .callout-yellow h3,
[data-theme="dark"] #fullArticle .callout-yellow h4,
[data-theme="dark"] #fullArticle .callout-blue h1,
[data-theme="dark"] #fullArticle .callout-blue h2,
[data-theme="dark"] #fullArticle .callout-blue h3,
[data-theme="dark"] #fullArticle .callout-blue h4,
[data-theme="dark"] #fullArticle .callout-red h1,
[data-theme="dark"] #fullArticle .callout-red h2,
[data-theme="dark"] #fullArticle .callout-red h3,
[data-theme="dark"] #fullArticle .callout-red h4,
[data-theme="dark"] #fullArticle .callout-green h1,
[data-theme="dark"] #fullArticle .callout-green h2,
[data-theme="dark"] #fullArticle .callout-green h3,
[data-theme="dark"] #fullArticle .callout-green h4 {
  color: inherit !important;
}

#fullArticle strong {
  color: var(--text-primary);
}

#fullArticle strong a {
  color: var(--accent);
}

.articleFoot p, .articleFoot time {
  font-style: normal;
  color: var(--text-tertiary);
  font-size: 13px;
}

.articleFoot i {
  color: var(--border);
}

#sbContact {
  color: var(--text-secondary);
  border-bottom: 1px dotted var(--border);
}

/* Admin edit button */
#fullArticle .admin-edit {
  background-color: var(--card-bg);
  border: 1px solid var(--border);
  box-shadow: none;
  color: var(--accent);
  font-size: 13px;
  height: 24px;
  line-height: 26px;
  margin-bottom: 30px;
  margin-top: -20px;
  width: auto;
  border-radius: 4px;
  transition: all var(--transition);
}

#fullArticle .admin-edit:hover {
  border-color: var(--accent);
}

/* Article ratings */
.articleRatings {
  margin: 3em 0 4em;
  color: var(--text-secondary);
  border: 0;
  background: var(--card-bg);
  box-shadow: none;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

/* ── Search icons ───────────────────────────────────────── */
.icon-search::before {
  display: none;
}

.icon-article-doc {
  display: none;
}

/* ── Bold / strong ──────────────────────────────────────── */
strong, b {
  font-weight: 600;
  -webkit-font-smoothing: auto;
}

/* ── Search Results ─────────────────────────────────────── */
#serp {
  box-sizing: border-box;
}

#serp h1 strong {
  color: var(--accent);
}

#serp .articleList > li {
  padding: 0.5em 0 1.5em;
  margin: 1em 0 0 0;
  border-bottom: 1px solid var(--border);
}

#serp .articleList > li a {
  font-weight: 500;
  margin-bottom: 5px;
}

#serp .articleList > li p {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-secondary);
}

#serp-dd {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  background: var(--card-bg);
  top: 85px;
}

#serp-dd .result a {
  padding: 12px 15px;
  color: var(--text-primary);
}

#serp-dd .result > li.active {
  background: var(--bg-tertiary);
}

#serp-dd .result > li {
  position: relative;
}

#serp-dd .result > li.active a {
  color: var(--accent) !important;
}

#serp-dd.sb {
  top: 45px;
  width: 375px;
}

#serp .articlesFound,
#serp .nada {
  color: var(--text-tertiary);
}

#serp-dd .result > li.private a {
  color: var(--text-tertiary);
}

#serp-dd .icon-private-w:before {
  display: none;
}

#serp-dd .icon-private-w {
  background-image: url('https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--lock.svg');
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  position: absolute;
  top: 9px;
}

/* ── Inputs ─────────────────────────────────────────────── */
input[type=text],
input[type=email],
textarea {
  background-color: var(--card-bg);
  border-radius: 6px;
  border: 1px solid var(--border);
  padding: 0 12px;
  font-size: 14px;
  box-shadow: none;
  color: var(--text-primary);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

input::placeholder {
  color: var(--text-tertiary);
}

input:focus, textarea:focus {
  box-shadow: 0 0 0 2px var(--accent-subtle) !important;
  border-color: var(--accent) !important;
}

label {
  font-size: 14px;
  color: var(--text-secondary);
}

/* Contact button */
.btn,
input[type=submit] {
  border: none;
  text-shadow: none;
  background: var(--brand-blue);
  font-weight: 500;
  font-size: 15px;
  border-radius: 6px;
  color: white;
  height: 42px;
  width: auto;
  padding: 0 20px;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover,
input[type=submit]:hover {
  background: var(--accent-hover);
}

/* ── Nav styling (kept for mobile fallback) ─────────────── */
.nav-collapse .nav {
  margin-top: 40px;
}

.navbar .navbar-inner {
  background-color: var(--card-bg);
}

.navbar .nav > li > a {
  font-size: 15px;
  padding: 0 20px;
  -webkit-font-smoothing: auto;
  color: var(--text-primary);
}

@media screen and (max-width: 768px) {
  .navbar .nav > li > a {
    padding: 15px 20px;
  }
}

.navbar .nav li a,
.navbar .icon-private-w {
  color: var(--text-primary);
  transition: color var(--transition);
}

.navbar .brand {
  height: 30px;
  width: 250px;
  padding: 0;
  margin-top: 29px;
}

.navbar .brand span {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#mainNav .container-fluid {
  min-height: 90px;
  line-height: 90px;
}

.navbar .btn-navbar {
  right: 0;
  margin-right: 0;
  padding-right: 0;
}

.navbar .btn-navbar .icon-bar {
  width: 20px;
}

@media screen and (max-width: 768px) {
  .navbar .btn-navbar {
    margin-top: 32px;
  }

  .navbar .btn-navbar .icon-bar {
    background: var(--text-primary);
  }
}

.navbar .nav .active .caret {
  display: none;
}

.navbar .nav .active a {
  font-weight: 500;
}

.nav .icon-private-w:before {
  display: none;
}

.nav .icon-private-w {
  background-image: url('https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--lock-white.svg');
  background-repeat: no-repeat;
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  opacity: 0.6;
  position: relative;
  top: 5px;
  left: -2px;
}

@media screen and (min-width: 768px) {
  .nav #internal {
    position: relative;
  }
}

.nav > li.active .icon-private-w,
.nav > li a:hover .icon-private-w {
  opacity: 1;
}

/* ── Contact Modal ──────────────────────────────────────── */
#contactModal {
  border: 0;
  width: 600px;
  margin-left: -300px;
  top: 8%;
  border-radius: var(--radius-lg);
  background: var(--card-bg);
}

#contactModal h2 {
  color: var(--text-primary);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.02em;
  border: 0;
  padding: 40px 0 10px 60px;
}

#contactModal .control-label {
  float: none;
  display: block;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 400;
  margin: 0 0 5px;
  padding: 0;
  text-align: left;
  width: 100%;
}

#contactModal .controls {
  margin: 0;
}

#contactModal input[type=text], #contactModal input[type=email], #contactModal textarea {
  box-sizing: border-box;
  min-height: 42px;
  width: 100%;
}

#contactModal .modal-body {
  padding: 15px 60px 40px;
}

#contactModal #md-message {
  padding: 14px;
  height: 70px;
  width: 100%;
}

#contactModal .form-actions {
  padding: 0;
}

#contactModal input[type=submit].btn {
  width: 100%;
  background: var(--brand-blue);
  height: 52px;
}

#contactModal input[type=submit].btn:hover,
#contactModal input[type=submit].btn:focus,
#contactModal input[type=submit].btn:active {
  background: var(--accent-hover);
  color: #fff;
}

#contactModal .icon-close:before {
  display: none;
}

#contactModal .icon-close {
  background-image: url('https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--cross.svg');
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.2s;
}

#contactModal #closeBtn {
  right: 14px;
}

#contactModal .icon-close:hover {
  opacity: 1;
}

#file-upload:focus {
  border: none !important;
  box-shadow: none !important;
}

/* App messages */
#contentArea > .appMessage {
  border-radius: var(--radius);
  color: #268C55;
  top: -25px;
  background: #E3fBEE;
  border: 1px solid #56C288;
  font-size: 15px !important;
  width: 390px;
  margin: 0 auto;
  padding: 12px 30px;
  position: relative;
}

[data-theme="dark"] #contentArea > .appMessage {
  background: rgba(86, 194, 136, 0.1);
  color: #56C288;
}

#contentArea > .appMessage em {
  background: none;
  color: #268C55;
  font-size: 16px;
  text-transform: none;
  font-weight: 500;
  margin-right: 0;
  padding-left: 22px;
  position: relative;
}

[data-theme="dark"] #contentArea > .appMessage em {
  color: #56C288;
}

#contentArea > .appMessage em:before {
  content: "";
  background-image: url('https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--check.svg');
  width: 24px;
  height: 24px;
  position: absolute;
  left: -4px;
  top: -2px;
}

.appMessage {
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 14px !important;
  padding: 12px 30px;
  border-radius: var(--radius);
}

@media screen and (min-width: 768px) and (max-width: 999px) {
  .appMessage {
    padding: 12px 55px;
  }
}

@media screen and (min-width: 1000px) {
  .appMessage {
    padding: 12px 90px;
  }
}

.appMessage em {
  background: var(--accent);
  font-weight: 500;
  line-height: 1.1;
}

/* Modal backdrop */
.modal-backdrop {
  background: #0f172a;
}

.modal-backdrop.in {
  opacity: .7;
}

/* ── Contact Form Page ──────────────────────────────────── */
#contactForm input, #contactForm textarea {
  min-height: 42px;
  box-sizing: border-box;
  width: 100%;
}

#contactForm textarea {
  padding: 14px;
}

#contactForm input.btn {
  width: auto;
  height: 52px;
  min-width: 150px;
  background: var(--brand-blue);
}

#contactForm input.btn:hover {
  background: var(--accent-hover);
  color: #fff;
}

#contactForm input.btn:focus, #contactForm input.btn:active {
  border: 1px solid;
  color: #fff;
}

#contactForm .control-group,
#contactModal .control-group,
.abuse .control-group {
  margin-bottom: 20px;
}

/* Print icon */
.icon-print:before {
  display: none;
}

.icon-print {
  background-image: url('https://d2x2losda9vsjs.cloudfront.net/docs/assets/2019/icon--print.svg');
  width: 24px;
  height: 24px;
  background-size: cover;
  display: inline-block;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.icon-print:hover {
  opacity: 1;
}

/* ── Errors ─────────────────────────────────────────────── */
#errorContainer .icon-error {
  color: #FFC555;
  font-size: 36px;
}

#errorContainer p {
  color: var(--text-secondary);
}

/* ── HubSpot Cookie Notice ──────────────────────────────── */
body div#hs-eu-cookie-confirmation.hs-cookie-notification-position-bottom {
  background: var(--card-bg);
  border: 0;
  bottom: 0 !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  left: 0;
  line-height: 18px;
  max-width: 100%;
  padding: 20px;
  position: fixed;
  text-align: left;
  text-shadow: none !important;
  top: auto;
  z-index: 100000000 !important;
}

@media screen and (min-width: 768px) {
  body div#hs-eu-cookie-confirmation.hs-cookie-notification-position-bottom {
    border-radius: var(--radius-lg);
    bottom: 15px !important;
    box-shadow: 0 4px 6px rgba(50, 50, 93, .11), 0 1px 3px rgba(0, 0, 0, .08) !important;
    left: 50%;
    max-width: 480px;
    transform: translate3d(-50%, 0, 0);
  }
}

body div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner {
  background: transparent !important;
  -webkit-font-smoothing: antialiased;
  padding: 0 !important;
}

body div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner p {
  font-size: 14px !important;
  line-height: 20px !important;
  margin-bottom: 0 !important;
  padding-right: 90px !important;
  color: var(--text-secondary) !important;
}

body div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner a {
  color: var(--accent) !important;
  font-size: 14px !important;
}

body div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner a#hs-eu-confirmation-button {
  color: white !important;
  font-weight: 500 !important;
  background: var(--brand-blue) !important;
  border: 0 !important;
  border-radius: 6px !important;
  padding: 7px 16px !important;
  margin: 0 !important;
}

body div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner div#hs-en-cookie-confirmation-buttons-area {
  display: inline-block;
  margin: 0 !important;
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translate3d(0, -50%, 0);
}

body div#hs-eu-cookie-confirmation div#hs-eu-cookie-confirmation-inner div#hs-en-cookie-confirmation-buttons-area #hs-eu-confirmation-button {
  margin: 0 !important;
  font-size: 14px !important;
}

/* ── Search form (original, hidden on desktop) ──────────── */
#searchBar {
  z-index: 2;
}

@media screen and (max-width: 767px) {
  #searchBar {
    width: 80%;
  }
}

@media screen and (min-width: 768px) {
  #searchBar {
    width: 440px;
  }
}

#searchBar .search-query::placeholder {
  color: var(--text-tertiary);
}

#searchBar .search-query {
  padding: 0 55px 0 12px;
}

#searchBar button .icon-search {
  color: var(--text-tertiary);
  font-size: 20px;
}

/* ── No Results ─────────────────────────────────────────── */
#noResults {
  color: var(--text-secondary);
  text-align: center;
  padding: 40px 0;
  font-size: 16px;
}
