/* ==========================================================================
   NINEMAGS Help Center - custom CSS for Help Scout Docs
   Palette is built around #4A3685 and mirrors the tokens used in the app.
   To re-theme later, change the variables in :root and nothing else.
   ========================================================================== */

:root {
  --nm-accent: #4a3685;
  --nm-accent-dark: #3d2c6f;
  --nm-accent-400: #6f5bab;
  --nm-accent-300: #a598cd;
  --nm-accent-200: #d6cfea;
  --nm-accent-soft: #f1edf8;

  --nm-bg: #f7fafc;
  --nm-card: #ffffff;
  --nm-text: #151b26;
  --nm-text-body: #364152;
  --nm-muted: #6b7280;
  --nm-border: #e5e7eb;

  --nm-radius-xl: 26px;
  --nm-radius-lg: 20px;
  --nm-radius-md: 14px;
  --nm-radius-sm: 10px;

  --nm-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05);
  --nm-shadow-pop: 0 18px 45px rgba(15, 23, 42, 0.12);
  --nm-shadow-hover: 0 10px 28px rgba(74, 54, 133, 0.14);

  --nm-page-width: 1160px;
  --nm-nav-size: 15px;
  --nm-h2-size: 22px;
  --nm-hero-size: clamp(26px, 3.6vw, 38px);
}

/* ==========================================================================
   1. BASE
   ========================================================================== */

body {
  margin: 0 !important;
  padding: 0 !important;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Avenir, Helvetica, Arial, sans-serif;
  color: var(--nm-text);
  background: var(--nm-bg) !important;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--nm-accent-200);
}

a:focus-visible,
button:focus-visible,
select:focus-visible {
  outline: 2px solid var(--nm-accent-400) !important;
  outline-offset: 2px !important;
}

footer {
  display: none !important;
}

#contentArea {
  box-sizing: border-box !important;
  width: auto !important;
  max-width: var(--nm-page-width) !important;
  margin: 0 auto !important;
  padding: 32px 22px 64px !important;
  background: transparent !important;
  box-shadow: none !important;
}

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

header#mainNav {
  position: relative !important;
  z-index: 20 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--nm-accent) !important;
  border: 0 !important;
  box-shadow: none !important;
}

#mainNav .navbar-inner {
  min-height: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  filter: none !important;
}

#mainNav .container-fluid {
  box-sizing: border-box !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  width: auto !important;
  max-width: var(--nm-page-width) !important;
  min-height: 72px !important;
  margin: 0 auto !important;
  padding: 0 22px !important;
}

#mainNav .container-fluid::before,
#mainNav .container-fluid::after {
  content: none !important;
}

#mainNav a.brand {
  display: block !important;
  flex: 0 0 auto !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#mainNav a.brand img {
  display: block !important;
  width: auto !important;
  height: 42px !important;
  max-height: none !important;
  margin: 0 !important;
}

/* The three sections are always visible, so the burger is not needed. */
#mainNav .btn-navbar {
  display: none !important;
}

#mainNav .nav-collapse {
  display: block !important;
  flex: 0 1 auto !important;
  float: none !important;
  clear: none !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

#mainNav .nav {
  position: static !important;
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#mainNav .nav > li {
  float: none !important;
  margin: 0 !important;
  list-style: none !important;
}

#mainNav .nav > li > a {
  display: block !important;
  margin: 0 !important;
  padding: 9px 16px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: var(--nm-nav-size) !important;
  font-weight: 600 !important;
  line-height: 20px !important;
  text-decoration: none !important;
  text-shadow: none !important;
  white-space: nowrap !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

#mainNav .nav > li > a:hover,
#mainNav .nav > li > a:focus {
  background: rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
}

#mainNav .nav > li.active > a,
#mainNav .nav > li.active > a:hover,
#mainNav .nav > li.active > a:focus {
  background: #ffffff !important;
  color: var(--nm-accent) !important;
}

#mainNav .nav .caret {
  display: none !important;
}

#mainNav a:focus-visible {
  outline-color: #ffffff !important;
}

/* ==========================================================================
   3. HOME - HERO WITH SEARCH
   ========================================================================== */

#docsSearch {
  position: relative !important;
  z-index: 10 !important;
  margin: -1px 0 0 !important;
  padding: 41px 22px 56px !important;
  background: var(--nm-accent) !important;
  border: 0 !important;
  border-radius: 0 0 var(--nm-radius-xl) var(--nm-radius-xl) !important;
  box-shadow: none !important;
  text-align: center !important;
}

#docsSearch h1 {
  max-width: 760px !important;
  margin: 0 auto 26px !important;
  padding: 0 !important;
  color: #ffffff !important;
  font-size: var(--nm-hero-size) !important;
  font-weight: 700 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.02em !important;
  text-shadow: none !important;
  text-wrap: balance;
}

#docsSearch #searchBar {
  position: relative !important;
  float: none !important;
  width: auto !important;
  max-width: 640px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

#docsSearch .search-query {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: 58px !important;
  margin: 0 !important;
  padding: 0 128px 0 26px !important;
  background: #ffffff !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: 0 12px 32px rgba(21, 14, 48, 0.28) !important;
  color: var(--nm-text) !important;
  font-size: 17px !important;
  line-height: 58px !important;
  transition: box-shadow 0.15s ease !important;
}

#docsSearch .search-query::placeholder {
  color: var(--nm-muted) !important;
  opacity: 1 !important;
}

#docsSearch .search-query:focus {
  outline: none !important;
  box-shadow: 0 12px 32px rgba(21, 14, 48, 0.28), 0 0 0 4px rgba(255, 255, 255, 0.35) !important;
}

#docsSearch #searchBar button {
  position: absolute !important;
  top: 7px !important;
  right: 7px !important;
  width: auto !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  background: var(--nm-accent) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  line-height: 44px !important;
  text-shadow: none !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
}

#docsSearch #searchBar button:hover,
#docsSearch #searchBar button:focus {
  background: var(--nm-accent-dark) !important;
}

#docsSearch #searchBar button span {
  display: inline !important;
  color: #ffffff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

#docsSearch #searchBar button .icon-search {
  display: none !important;
}

/* Live search suggestions (home hero and sidebar) */
#serp-dd {
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  width: auto !important;
  margin: 8px 0 0 !important;
  padding: 0 !important;
  background: #ffffff !important;
  border: 1px solid var(--nm-border) !important;
  border-radius: var(--nm-radius-md) !important;
  box-shadow: var(--nm-shadow-pop) !important;
  overflow: hidden !important;
  text-align: left !important;
  z-index: 60 !important;
}

#serp-dd .result {
  max-height: 340px !important;
  margin: 0 !important;
  padding: 6px !important;
  overflow-y: auto !important;
  list-style: none !important;
}

#serp-dd .result > li {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--nm-radius-sm) !important;
  background: transparent !important;
}

#serp-dd .result a {
  display: block !important;
  padding: 10px 14px !important;
  border-radius: var(--nm-radius-sm) !important;
  color: var(--nm-text) !important;
  font-size: 15px !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
}

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

/* ==========================================================================
   4. HOME - SECTIONS AND CATEGORY CARDS
   ========================================================================== */

.collection-category {
  margin: 0 0 48px !important;
  padding: 0 !important;
}

.collection-category:last-of-type {
  margin-bottom: 0 !important;
}

.collection-category h2 {
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: 0 !important;
  font-size: var(--nm-h2-size) !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.01em !important;
  text-align: left !important;
}

.collection-category h2 a {
  color: var(--nm-text) !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.collection-category h2 a:hover,
.collection-category h2 a:focus {
  color: var(--nm-accent) !important;
}

.category-list {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 16px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.category-list::before,
.category-list::after {
  content: none !important;
}

.category-list .category {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h8l4 4v12H6z'/%3E%3Cpath d='M14 4v4h4M9 13h6M9 16.5h6'/%3E%3C/svg%3E");
  position: relative !important;
  box-sizing: border-box !important;
  display: block !important;
  float: none !important;
  width: auto !important;
  height: auto !important;
  min-height: 84px !important;
  margin: 0 !important;
  padding: 19px 20px 18px 80px !important;
  background: var(--nm-card) !important;
  border: 1px solid var(--nm-border) !important;
  border-radius: var(--nm-radius-lg) !important;
  box-shadow: var(--nm-shadow-card) !important;
  text-align: left !important;
  text-decoration: none !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

.category-list .category:hover,
.category-list .category:focus {
  border-color: var(--nm-accent-300) !important;
  box-shadow: var(--nm-shadow-hover) !important;
}

/* Icon tile */
.category-list .category::before {
  content: "" !important;
  position: absolute !important;
  top: 18px !important;
  left: 20px !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 13px !important;
  background: var(--nm-accent-soft) !important;
  transition: background-color 0.15s ease !important;
}

.category-list .category:hover::before,
.category-list .category:focus::before {
  background: var(--nm-accent) !important;
}

/* Icon glyph - drawn with a mask so it always follows --nm-accent */
.category-list .category h3::before {
  content: "" !important;
  position: absolute !important;
  top: 29px !important;
  left: 31px !important;
  width: 22px !important;
  height: 22px !important;
  background: var(--nm-accent) !important;
  -webkit-mask: var(--nm-icon) center / contain no-repeat !important;
  mask: var(--nm-icon) center / contain no-repeat !important;
  transition: background-color 0.15s ease !important;
}

.category-list .category:hover h3::before,
.category-list .category:focus h3::before {
  background: #ffffff !important;
}

.category-list .category h3 {
  position: static !important;
  margin: 0 0 3px !important;
  padding: 0 !important;
  color: var(--nm-text) !important;
  font-size: 16px !important;
  font-weight: 700 !important;
  line-height: 1.3 !important;
  text-align: left !important;
}

.category-list .category p {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--nm-muted) !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  text-align: left !important;
}

.category-list .category p:empty {
  display: none !important;
}

.category-list .category .article-count,
.category-list .category:hover .article-count {
  margin: 7px 0 0 !important;
  color: var(--nm-accent) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

/* Icons by category. A new category without a rule gets the document icon. */
#category-18, #category-56, #category-234 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M15.5 8.5l-2 5-5 2 2-5z'/%3E%3C/svg%3E") !important;
}
#category-20 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4v11'/%3E%3Cpath d='M7.5 10.5L12 15l4.5-4.5'/%3E%3Cpath d='M5 20h14'/%3E%3C/svg%3E") !important;
}
#category-22, #category-66, #category-223 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h10M18 7h2M4 17h2M10 17h10'/%3E%3Ccircle cx='16' cy='7' r='2'/%3E%3Ccircle cx='8' cy='17' r='2'/%3E%3C/svg%3E") !important;
}
#category-40, #category-225 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 4h7.6l8.4 8.4-7.6 7.6L4 11.6z'/%3E%3Ccircle cx='8.2' cy='8.2' r='1.2'/%3E%3C/svg%3E") !important;
}
#category-26 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='2'/%3E%3Cpath d='M4 9.5h16M9.5 9.5V20'/%3E%3C/svg%3E") !important;
}
#category-24 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-6 10-6 10 6 10 6-3.5 6-10 6-10-6-10-6z'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3C/svg%3E") !important;
}
#category-30 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3.5' y='5' width='17' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.5'/%3E%3Cpath d='M20.5 15.5L16 11l-7.5 8'/%3E%3C/svg%3E") !important;
}
#category-45 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 4l8 4-8 4-8-4z'/%3E%3Cpath d='M4 12l8 4 8-4'/%3E%3Cpath d='M4 16l8 4 8-4'/%3E%3C/svg%3E") !important;
}
#category-32 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M8 12.5l2.5 2.5L16 9.5'/%3E%3C/svg%3E") !important;
}
#category-48 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 18a4 4 0 0 1-.5-7.97A5.5 5.5 0 0 1 17.2 9.1 4.5 4.5 0 0 1 17 18z'/%3E%3C/svg%3E") !important;
}
#category-35 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='16' height='16' rx='3'/%3E%3Cpath d='M12 8.5v7M8.5 12h7'/%3E%3C/svg%3E") !important;
}
#category-43 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3.5 2'/%3E%3C/svg%3E") !important;
}
#category-60 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='5.5' width='16' height='14.5' rx='2'/%3E%3Cpath d='M4 10h16M8.5 3.5v4M15.5 3.5v4'/%3E%3C/svg%3E") !important;
}
#category-63 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10 14a4 4 0 0 0 5.66 0l3-3a4 4 0 0 0-5.66-5.66l-1 1'/%3E%3Cpath d='M14 10a4 4 0 0 0-5.66 0l-3 3a4 4 0 0 0 5.66 5.66l1-1'/%3E%3C/svg%3E") !important;
}
#category-251 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='4' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='4' width='7' height='7' rx='1.5'/%3E%3Crect x='4' y='13' width='7' height='7' rx='1.5'/%3E%3Crect x='13' y='13' width='7' height='7' rx='1.5'/%3E%3C/svg%3E") !important;
}
#category-246 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 6L6 18'/%3E%3Ccircle cx='7.5' cy='7.5' r='2.5'/%3E%3Ccircle cx='16.5' cy='16.5' r='2.5'/%3E%3C/svg%3E") !important;
}
#category-232 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 10v9.5h15V10'/%3E%3Cpath d='M3 10l2-5.5h14l2 5.5z'/%3E%3Cpath d='M10 19.5v-5h4v5'/%3E%3C/svg%3E") !important;
}
#category-226 {
  --nm-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l8 4.5v9L12 21l-8-4.5v-9z'/%3E%3Cpath d='M4 7.5l8 4.5 8-4.5M12 12v9'/%3E%3C/svg%3E") !important;
}

/* ==========================================================================
   5. INNER PAGES - LAYOUT (sidebar left, content right)
   ========================================================================== */

#contentArea .row-fluid {
  display: grid !important;
  grid-template-columns: 248px minmax(0, 1fr) !important;
  gap: 32px !important;
  align-items: start !important;
  width: auto !important;
  margin: 0 !important;
}

#contentArea .row-fluid::before,
#contentArea .row-fluid::after {
  content: none !important;
  display: none !important;
}

#main-content {
  grid-column: 2 !important;
  grid-row: 1 !important;
  box-sizing: border-box !important;
  float: none !important;
  width: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 34px 38px 38px !important;
  background: var(--nm-card) !important;
  border: 1px solid var(--nm-border) !important;
  border-radius: var(--nm-radius-lg) !important;
  box-shadow: var(--nm-shadow-card) !important;
}

#main-content .contentWrapper {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#sidebar {
  grid-column: 1 !important;
  grid-row: 1 !important;
  box-sizing: border-box !important;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

/* Keep the category menu in view while reading a long article */
@media (min-width: 900px) and (min-height: 720px) {
  #sidebar {
    position: sticky !important;
    top: 20px !important;
  }
}

/* ==========================================================================
   6. SIDEBAR - SEARCH AND CATEGORY MENU
   ========================================================================== */

#sidebar #searchBar {
  position: relative !important;
  float: none !important;
  width: auto !important;
  margin: 0 0 24px !important;
  padding: 0 !important;
}

#sidebar .search-query {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  height: 44px !important;
  margin: 0 !important;
  padding: 0 46px 0 18px !important;
  background: #ffffff !important;
  border: 1px solid var(--nm-border) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: var(--nm-text) !important;
  font-size: 15px !important;
  line-height: 42px !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
}

#sidebar .search-query::placeholder {
  color: var(--nm-muted) !important;
  opacity: 1 !important;
}

#sidebar .search-query:focus {
  outline: none !important;
  border-color: var(--nm-accent) !important;
  box-shadow: 0 0 0 3px rgba(74, 54, 133, 0.18) !important;
}

#sidebar #searchBar button {
  position: absolute !important;
  top: 4px !important;
  right: 4px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: var(--nm-accent) !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: none !important;
  color: #ffffff !important;
  text-shadow: none !important;
  cursor: pointer !important;
  transition: background-color 0.15s ease !important;
}

#sidebar #searchBar button:hover,
#sidebar #searchBar button:focus {
  background: var(--nm-accent-dark) !important;
}

#sidebar #searchBar button .icon-search,
#sidebar #searchBar button .icon-search::before {
  position: static !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 15px !important;
  line-height: 1 !important;
  opacity: 1 !important;
}

#sidebar h3 {
  margin: 0 0 8px !important;
  padding: 0 12px !important;
  border: 0 !important;
  color: var(--nm-muted) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
}

#sidebar .nav-list {
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

#sidebar .nav-list li {
  margin: 0 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

#sidebar .nav-list a {
  display: block !important;
  margin: 0 !important;
  padding: 8px 12px !important;
  border: 0 !important;
  border-radius: var(--nm-radius-sm) !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nm-text-body) !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  line-height: 1.35 !important;
  text-decoration: none !important;
  text-shadow: none !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

#sidebar .nav-list a:hover,
#sidebar .nav-list a:focus {
  background: rgba(74, 54, 133, 0.07) !important;
  color: var(--nm-accent) !important;
}

#sidebar .nav-list .active > a,
#sidebar .nav-list .active > a:hover,
#sidebar .nav-list .active > a:focus {
  background: var(--nm-accent-soft) !important;
  color: var(--nm-accent) !important;
  font-weight: 700 !important;
}

#sidebar .nav-list .icon-arrow {
  display: none !important;
}

/* ==========================================================================
   7. CATEGORY / SECTION PAGES - ARTICLE LIST
   ========================================================================== */

#main-content h1 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--nm-text) !important;
  font-size: 28px !important;
  font-weight: 700 !important;
  line-height: 1.2 !important;
  letter-spacing: -0.02em !important;
}

#categoryHead {
  position: relative !important;
  display: block !important;
  margin: 0 0 14px !important;
  padding: 0 0 20px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--nm-border) !important;
}

#categoryHead h1 {
  padding-right: 190px !important;
}

#categoryHead .descrip {
  margin: 0 !important;
  padding: 0 190px 0 0 !important;
  color: var(--nm-muted) !important;
  font-size: 16px !important;
  line-height: 1.5 !important;
}

#categoryHead .sort {
  position: absolute !important;
  top: 0 !important;
  right: 0 !important;
  float: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

#categoryHead .sort form {
  margin: 0 !important;
}

#categoryHead .sort select {
  width: auto !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 12px !important;
  background-color: #ffffff !important;
  border: 1px solid var(--nm-border) !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  color: var(--nm-text-body) !important;
  font-size: 13px !important;
  line-height: 34px !important;
  cursor: pointer !important;
}

.articleList {
  margin: 0 -12px !important;
  padding: 0 !important;
  list-style: none !important;
}

.contentWrapper > h1 + .articleList {
  margin-top: 14px !important;
}

.articleList li {
  margin: 0 0 2px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  list-style: none !important;
}

.articleList li > a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 0 !important;
  padding: 12px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--nm-text) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

.articleList li > a span {
  color: inherit !important;
  text-decoration: none !important;
}

.articleList li > a:hover,
.articleList li > a:focus {
  background: var(--nm-accent-soft) !important;
  color: var(--nm-accent) !important;
}

/* Chevron at the end of each row */
.articleList li > a::after {
  content: "" !important;
  flex: 0 0 16px !important;
  width: 16px !important;
  height: 16px !important;
  margin-left: auto !important;
  background: var(--nm-accent-300) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.articleList li > a:hover::after,
.articleList li > a:focus::after {
  background: var(--nm-accent) !important;
}

/* Document icon in article rows */
.icon-article-doc {
  display: block !important;
  flex: 0 0 20px !important;
  width: 20px !important;
  height: 20px !important;
  margin: 0 !important;
  font-size: 0 !important;
  line-height: 0 !important;
  background: var(--nm-accent) !important;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h8l4 4v12H6z'/%3E%3Cpath d='M14 4v4h4M9 13h6M9 16.5h6'/%3E%3C/svg%3E") center / contain no-repeat !important;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 4h8l4 4v12H6z'/%3E%3Cpath d='M14 4v4h4M9 13h6M9 16.5h6'/%3E%3C/svg%3E") center / contain no-repeat !important;
}

.icon-article-doc::before {
  content: none !important;
}

/* ==========================================================================
   8. SEARCH RESULTS PAGE
   ========================================================================== */

#serp .articlesFound {
  margin: 0 0 8px !important;
  padding: 0 0 18px !important;
  border-bottom: 1px solid var(--nm-border) !important;
  color: var(--nm-muted) !important;
  font-size: 15px !important;
}

#serp .articleList {
  margin: 0 !important;
}

#serp .articleList li {
  margin: 0 !important;
  padding: 16px 0 !important;
  border-bottom: 1px solid var(--nm-border) !important;
}

#serp .articleList li:last-child {
  border-bottom: 0 !important;
}

#serp .articleList li > a {
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--nm-accent) !important;
  font-size: 17px !important;
  font-weight: 600 !important;
}

#serp .articleList li > a:hover,
#serp .articleList li > a:focus {
  color: var(--nm-accent-dark) !important;
  text-decoration: underline !important;
}

#serp .articleList li > a::after {
  content: none !important;
}

#serp .articleList li p {
  margin: 6px 0 0 32px !important;
  padding: 0 !important;
  color: var(--nm-muted) !important;
  font-size: 15px !important;
  line-height: 1.55 !important;
}

/* ==========================================================================
   9. ARTICLE PAGE
   ========================================================================== */

#fullArticle {
  position: relative !important;
  max-width: 720px !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  color: var(--nm-text-body) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

#fullArticle p,
#fullArticle ul,
#fullArticle ol,
#fullArticle li,
#fullArticle div,
#fullArticle dd,
#fullArticle table {
  color: var(--nm-text-body) !important;
  font-size: 17px !important;
  line-height: 1.7 !important;
}

#fullArticle .title {
  margin: 0 0 20px !important;
  padding: 0 48px 0 0 !important;
  font-size: 32px !important;
  line-height: 1.2 !important;
}

#fullArticle h2,
#fullArticle h3,
#fullArticle h4,
#fullArticle h5 {
  padding: 0 !important;
  border: 0 !important;
  color: var(--nm-text) !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em !important;
}

#fullArticle h2 {
  margin: 40px 0 12px !important;
  font-size: 24px !important;
  line-height: 1.3 !important;
}

#fullArticle h3 {
  margin: 28px 0 8px !important;
  font-size: 19px !important;
  line-height: 1.35 !important;
}

#fullArticle h4,
#fullArticle h5 {
  margin: 24px 0 8px !important;
  font-size: 17px !important;
  line-height: 1.4 !important;
}

#fullArticle h2 strong,
#fullArticle h3 strong,
#fullArticle h4 strong {
  color: inherit !important;
  font-weight: inherit !important;
}

#fullArticle p {
  margin: 0 0 14px !important;
}

#fullArticle strong,
#fullArticle b {
  color: var(--nm-text) !important;
  font-weight: 600 !important;
}

#fullArticle a,
#fullArticle a strong,
#fullArticle strong a {
  color: var(--nm-accent) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1px !important;
  text-underline-offset: 3px !important;
  overflow-wrap: anywhere !important;
}

#fullArticle a:hover,
#fullArticle a:hover strong {
  color: var(--nm-accent-dark) !important;
  text-decoration-thickness: 2px !important;
}

/* Lists inside articles keep their numbers and bullets */
#fullArticle ul,
#fullArticle ol {
  margin: 0 0 16px !important;
  padding: 0 0 0 26px !important;
}

#fullArticle ul {
  list-style: disc !important;
}

#fullArticle ol {
  list-style: decimal !important;
}

#fullArticle li {
  display: list-item !important;
  margin: 0 0 8px !important;
  padding: 0 0 0 4px !important;
  background: transparent !important;
  border: 0 !important;
  list-style: inherit !important;
}

#fullArticle li::marker {
  color: var(--nm-accent) !important;
  font-weight: 600 !important;
}

#fullArticle li > p {
  margin: 0 0 8px !important;
}

#fullArticle li > h2,
#fullArticle li > h3,
#fullArticle li > h4 {
  margin-top: 0 !important;
}

#fullArticle img {
  box-sizing: border-box !important;
  max-width: 100% !important;
  height: auto !important;
  margin: 6px 0 !important;
  border: 1px solid var(--nm-border) !important;
  border-radius: 12px !important;
}

#fullArticle iframe,
#fullArticle video {
  max-width: 100% !important;
  border-radius: 12px !important;
}

#fullArticle hr {
  height: 0 !important;
  margin: 32px 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--nm-border) !important;
  background: transparent !important;
}

#fullArticle code,
#fullArticle .inline-code {
  padding: 2px 7px !important;
  background: var(--nm-accent-soft) !important;
  border: 0 !important;
  border-radius: 6px !important;
  color: var(--nm-accent-dark) !important;
  font-size: 0.88em !important;
  overflow-wrap: anywhere !important;
}

#fullArticle pre {
  margin: 16px 0 !important;
  padding: 16px 18px !important;
  background: var(--nm-text) !important;
  border: 0 !important;
  border-radius: 12px !important;
  color: #ece9f6 !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  overflow-x: auto !important;
}

#fullArticle pre code {
  padding: 0 !important;
  background: transparent !important;
  color: inherit !important;
  font-size: inherit !important;
}

#fullArticle blockquote {
  margin: 16px 0 !important;
  padding: 2px 0 2px 18px !important;
  border: 0 !important;
  border-left: 3px solid var(--nm-accent-200) !important;
  color: var(--nm-muted) !important;
}

#fullArticle table {
  width: 100% !important;
  margin: 16px 0 !important;
  border-collapse: collapse !important;
  font-size: 15px !important;
}

#fullArticle th,
#fullArticle td {
  padding: 10px 12px !important;
  border: 1px solid var(--nm-border) !important;
  font-size: 15px !important;
  line-height: 1.5 !important;
  text-align: left !important;
  vertical-align: top !important;
}

#fullArticle th {
  background: var(--nm-accent-soft) !important;
  color: var(--nm-text) !important;
  font-weight: 600 !important;
}

/* Help Scout callouts: default and blue follow the brand colour */
#fullArticle .callout,
#fullArticle .callout-blue,
#fullArticle .callout-green,
#fullArticle .callout-yellow,
#fullArticle .callout-red,
#fullArticle .private-note {
  margin: 18px 0 !important;
  padding: 14px 18px !important;
  border: 0 !important;
  border-left: 4px solid var(--nm-accent) !important;
  border-radius: 12px !important;
  background: var(--nm-accent-soft) !important;
  box-shadow: none !important;
}

#fullArticle .callout-green {
  border-left-color: #2f9e6e !important;
  background: #edf8f2 !important;
}

#fullArticle .callout-yellow {
  border-left-color: #d9a100 !important;
  background: #fdf7e3 !important;
}

#fullArticle .callout-red {
  border-left-color: #d64545 !important;
  background: #fdeeee !important;
}

#fullArticle .callout p:last-child,
#fullArticle [class*="callout-"] p:last-child {
  margin-bottom: 0 !important;
}

/* Print button */
#fullArticle .printArticle {
  position: absolute !important;
  top: 2px !important;
  right: 0 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 36px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 50% !important;
  background: transparent !important;
  color: var(--nm-muted) !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

#fullArticle .printArticle:hover,
#fullArticle .printArticle:focus {
  background: var(--nm-accent-soft) !important;
  color: var(--nm-accent) !important;
}

/* "Did this answer your question?" */
.articleRatings {
  box-sizing: border-box !important;
  max-width: 720px !important;
  margin: 40px 0 0 !important;
  padding: 16px 20px !important;
  background: var(--nm-accent-soft) !important;
  border: 0 !important;
  border-radius: var(--nm-radius-md) !important;
  box-shadow: none !important;
}

.articleRatings-question,
.articleRatings-feedback-message {
  color: var(--nm-text) !important;
  font-size: 15px !important;
  font-weight: 600 !important;
}

.articleRatings .rateAction {
  background: #ffffff !important;
  border: 1px solid var(--nm-accent-200) !important;
  box-shadow: none !important;
  transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

.articleRatings .rateAction svg path {
  fill: var(--nm-accent) !important;
}

.articleRatings .rateAction:hover,
.articleRatings .rateAction:focus {
  background: var(--nm-accent) !important;
  border-color: var(--nm-accent) !important;
}

.articleRatings .rateAction:hover svg path,
.articleRatings .rateAction:focus svg path {
  fill: #ffffff !important;
}

.articleFoot {
  max-width: 720px !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
  border: 0 !important;
  color: var(--nm-muted) !important;
  font-size: 13px !important;
}

.articleFoot p,
.articleFoot time {
  color: var(--nm-muted) !important;
  font-family: inherit !important;
  font-size: 13px !important;
  font-style: normal !important;
}

/* Related articles */
#main-content .related {
  max-width: 720px !important;
  margin: 32px 0 0 !important;
  padding: 24px 0 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-top: 1px solid var(--nm-border) !important;
  border-radius: 0 !important;
}

#main-content .related h3 {
  margin: 0 0 8px !important;
  padding: 0 !important;
  color: var(--nm-text) !important;
  font-size: 17px !important;
  font-weight: 700 !important;
}

#main-content .related ul {
  margin: 0 -12px !important;
  padding: 0 !important;
  list-style: none !important;
}

#main-content .related li {
  margin: 0 0 2px !important;
  padding: 0 !important;
  list-style: none !important;
}

#main-content .related li a {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  color: var(--nm-text) !important;
  font-size: 16px !important;
  font-weight: 500 !important;
  text-decoration: none !important;
  transition: background-color 0.15s ease, color 0.15s ease !important;
}

#main-content .related li a span {
  color: inherit !important;
}

#main-content .related li a:hover,
#main-content .related li a:focus {
  background: var(--nm-accent-soft) !important;
  color: var(--nm-accent) !important;
}

/* ==========================================================================
   10. TABLET AND MOBILE
   ========================================================================== */

@media (max-width: 959px) {
  .category-list {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 899px) {
  /* One column: search, then categories as a swipeable row of chips
     (current category first), then the page */
  #contentArea .row-fluid {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }

  #sidebar {
    display: contents !important;
  }

  #sidebar #searchBar {
    order: -2 !important;
    margin: 0 0 12px !important;
  }

  #main-content {
    order: 0 !important;
  }

  #sidebar h3 {
    display: none !important;
  }

  #sidebar .nav-list {
    order: -1 !important;
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 8px !important;
    margin: 0 -22px 14px !important;
    padding: 2px 22px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
    -webkit-overflow-scrolling: touch;
  }

  #sidebar .nav-list::-webkit-scrollbar {
    display: none !important;
  }

  #sidebar .nav-list li {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }

  #sidebar .nav-list li.active {
    order: -1 !important;
  }

  #sidebar .nav-list a {
    padding: 8px 14px !important;
    background: #ffffff !important;
    border: 1px solid var(--nm-border) !important;
    border-radius: 999px !important;
    font-size: 14px !important;
    line-height: 20px !important;
    white-space: nowrap !important;
  }

  #sidebar .nav-list .active > a,
  #sidebar .nav-list .active > a:hover,
  #sidebar .nav-list .active > a:focus {
    background: var(--nm-accent) !important;
    border-color: var(--nm-accent) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
  }
}

@media (max-width: 767px) {
  :root {
    --nm-nav-size: 14px;
    --nm-h2-size: 20px;
  }

  #contentArea {
    padding: 24px 16px 48px !important;
  }

  #sidebar .nav-list {
    margin-left: -16px !important;
    margin-right: -16px !important;
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  /* Header: logo on the first row, section tabs on the second */
  #mainNav .container-fluid {
    flex-wrap: wrap !important;
    gap: 12px !important;
    min-height: 0 !important;
    padding: 14px 16px 0 !important;
  }

  #mainNav a.brand img {
    height: 34px !important;
  }

  #mainNav .nav-collapse {
    flex: 0 0 auto !important;
    width: calc(100% + 32px) !important;
    margin: 0 -16px !important;
    padding: 0 16px 14px !important;
    box-sizing: border-box !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scrollbar-width: none !important;
  }

  #mainNav .nav-collapse::-webkit-scrollbar {
    display: none !important;
  }

  #mainNav .nav {
    flex-wrap: nowrap !important;
    width: max-content !important;
    gap: 5px !important;
  }

  #mainNav .nav > li > a {
    padding: 8px 12px !important;
    background: rgba(255, 255, 255, 0.12) !important;
  }

  #docsSearch {
    padding: 22px 16px 36px !important;
    border-radius: 0 0 var(--nm-radius-lg) var(--nm-radius-lg) !important;
  }

  #docsSearch h1 {
    margin-bottom: 20px !important;
  }

  #docsSearch .search-query {
    height: 52px !important;
    padding: 0 104px 0 20px !important;
    font-size: 16px !important;
    line-height: 52px !important;
  }

  #docsSearch #searchBar button {
    top: 6px !important;
    right: 6px !important;
    height: 40px !important;
    padding: 0 18px !important;
    line-height: 40px !important;
  }

  .collection-category {
    margin-bottom: 36px !important;
  }

  .category-list .category {
    border-radius: var(--nm-radius-md) !important;
  }

  #main-content {
    padding: 22px 18px 24px !important;
    border-radius: var(--nm-radius-md) !important;
  }

  #main-content h1 {
    font-size: 24px !important;
  }

  #categoryHead h1,
  #categoryHead .descrip {
    padding-right: 0 !important;
  }

  #categoryHead .sort {
    position: static !important;
    margin-top: 14px !important;
  }

  #fullArticle,
  #fullArticle p,
  #fullArticle ul,
  #fullArticle ol,
  #fullArticle li,
  #fullArticle div,
  #fullArticle dd {
    font-size: 16px !important;
    line-height: 1.65 !important;
  }

  #fullArticle .title {
    font-size: 26px !important;
  }

  #fullArticle h2 {
    margin-top: 32px !important;
    font-size: 21px !important;
  }

  #fullArticle h3 {
    font-size: 18px !important;
  }

  #fullArticle ul,
  #fullArticle ol {
    padding-left: 22px !important;
  }

  #fullArticle table {
    display: block !important;
    overflow-x: auto !important;
  }
}

@media (max-width: 374px) {
  :root {
    --nm-nav-size: 13px;
  }

  #mainNav .nav > li > a {
    padding: 8px 10px !important;
  }
}

@media (max-width: 599px) {
  .category-list {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  #mainNav a,
  #docsSearch *,
  #contentArea * {
    transition: none !important;
  }
}

@media print {
  #mainNav,
  #sidebar,
  .articleRatings,
  #fullArticle .printArticle {
    display: none !important;
  }

  #contentArea .row-fluid {
    display: block !important;
  }

  #main-content {
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* ==========================================================================
   11. SECTION NAMES (temporary)
   The names of the sections and the home headline live in Help Scout
   settings, not in CSS. This block only repaints them on screen:
     NINEMAGS(R) Uploader -> Uploader
     NINEMAGS(R) Live     -> Markets & Events
     NINEMAGS(R) Pages    -> Online Store
   Rename the three collections and the headline in Help Scout, then delete
   everything below this comment.
   ========================================================================== */

#mainNav .nav > li > a[href*="/collection/15-"],
#mainNav .nav > li > a[href*="/collection/53-"],
#mainNav .nav > li > a[href*="/collection/220-"] {
  font-size: 0 !important;
  line-height: 0 !important;
}

#mainNav .nav > li > a[href*="/collection/15-"]::before,
#mainNav .nav > li > a[href*="/collection/53-"]::before,
#mainNav .nav > li > a[href*="/collection/220-"]::before {
  display: block !important;
  font-size: var(--nm-nav-size) !important;
  line-height: 20px !important;
}

#collection-15 a,
#collection-53 a,
#collection-220 a {
  display: inline-flex !important;
  font-size: 0 !important;
  line-height: 0 !important;
  vertical-align: top !important;
}

#collection-15 a::before,
#collection-53 a::before,
#collection-220 a::before {
  display: block !important;
  font-size: var(--nm-h2-size) !important;
  line-height: 1.25 !important;
}

#mainNav .nav > li > a[href*="/collection/15-"]::before,
#collection-15 a::before {
  content: "Uploader" !important;
}

#mainNav .nav > li > a[href*="/collection/53-"]::before,
#collection-53 a::before {
  content: "Markets & Events" !important;
}

#mainNav .nav > li > a[href*="/collection/220-"]::before,
#collection-220 a::before {
  content: "Online Store" !important;
}

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

#docsSearch h1::before {
  content: "Guides for Uploader, Markets\a0 &\a0 Events, and Online\a0 Store" !important;
  display: block !important;
  font-size: var(--nm-hero-size) !important;
  letter-spacing: -0.02em !important;
}/* ==========================================================================
   12. WIDER ARTICLES AND CLICK-TO-ZOOM IMAGES
   ========================================================================== */

:root {
  --nm-page-width: 1320px;
  --nm-article-width: 960px;
}

#fullArticle,
.articleRatings,
.articleFoot,
#main-content .related {
  max-width: var(--nm-article-width) !important;
}

#fullArticle img {
  cursor: zoom-in !important;
  transition: box-shadow 0.15s ease, border-color 0.15s ease !important;
}

#fullArticle img:hover {
  border-color: var(--nm-accent-300) !important;
  box-shadow: var(--nm-shadow-hover) !important;
}

/* Lightbox (opened by the script in Custom Code) */
.nm-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(21, 14, 48, 0.82);
  cursor: zoom-out;
  animation: nm-fade 0.15s ease;
}

.nm-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.nm-lightbox-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 26px;
  line-height: 44px;
  cursor: pointer;
}

.nm-lightbox-close:hover,
.nm-lightbox-close:focus {
  background: rgba(255, 255, 255, 0.3);
}

@keyframes nm-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .nm-lightbox { animation: none; }
}

@media print {
  .nm-lightbox { display: none !important; }
}
