/* ==========================================================================
   ScalePad Help Center theme
   Styled to match scalepad.com. Colors and fonts come from theme settings.
   ========================================================================== */

/* ---------- 1. Design tokens ---------- */
:root {
  --sp-text: #132435;
  --sp-text-muted: #5B6B7B;
  --sp-page-bg: #F5F7F9;
  --sp-surface: #FFFFFF;
  --sp-border: #DFE5EB;
  --sp-accent: #CF304C;
  --sp-accent-text: #FFFFFF;
  --sp-link: #CF304C;
  --sp-link-hover: #A1253B;
  --sp-dark: #0D1B2A;
  --sp-dark-accent: #CF304C;
  --sp-announcement-bg: #14615D;
  --sp-announcement-label: #EBA900;

  --sp-font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --sp-font-text: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --sp-radius: 6px;
  --sp-radius-lg: 12px;
  --sp-shadow: 0 1px 2px rgba(19, 36, 53, 0.06), 0 4px 16px rgba(19, 36, 53, 0.06);
  --sp-container: 1200px;
  --sp-gutter: 24px;
  --sp-header-height: 72px;
  --sp-focus: 0 0 0 3px rgba(33, 96, 146, 0.35);
}

/* ---------- 2. Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--sp-header-height) + 16px); }

body {
  margin: 0;
  background: var(--sp-page-bg);
  color: var(--sp-text);
  font-family: var(--sp-font-text);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--sp-font-heading);
  color: var(--sp-text);
  line-height: 1.2;
  margin: 0 0 0.5em;
}
h1 { font-size: 2.5rem; font-weight: 700; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; font-weight: 600; letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.0625rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--sp-link); text-decoration: none; }
a:hover { color: var(--sp-link-hover); text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: none;
  box-shadow: var(--sp-focus);
  border-radius: var(--sp-radius);
}

img { max-width: 100%; height: auto; }

button { font: inherit; color: inherit; }

[hidden] { display: none !important; }

.sp-visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* ---------- 3. Layout helpers ---------- */
.sp-container {
  width: 100%;
  max-width: var(--sp-container);
  margin: 0 auto;
  padding: 0 var(--sp-gutter);
}

@media (max-width: 600px) {
  :root { --sp-gutter: 16px; }
  h1 { font-size: 2rem; }
}

/* Small uppercase label used above headings, like scalepad.com */
.sp-eyebrow {
  display: block;
  margin: 0 0 12px;
  color: var(--sp-accent);
  font-family: var(--sp-font-text);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ---------- 4. Buttons ---------- */
.sp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: var(--sp-radius);
  font-family: var(--sp-font-text);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.sp-button:hover { text-decoration: none; }

.sp-button--primary { background: var(--sp-accent); color: var(--sp-accent-text); }
.sp-button--primary:hover { background: color-mix(in srgb, var(--sp-accent) 88%, #000); color: var(--sp-accent-text); }

.sp-button--dark { background: #000; color: #fff; }
.sp-button--dark:hover { background: #1f2a36; color: #fff; }

.sp-button--outline { background: transparent; color: var(--sp-text); border-color: var(--sp-border); }
.sp-button--outline:hover { border-color: var(--sp-text); color: var(--sp-text); }

.sp-button--small { padding: 8px 16px; font-size: 0.875rem; }

/* Contact Support: ScalePad yellow on every help center */
.sp-button--contact { background: #EBA900; color: #132435; white-space: nowrap; }
.sp-button--contact:hover { background: #D49A00; color: #132435; }

/* ---------- 5. Skip link ---------- */
.sp-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 10px 16px;
  background: var(--sp-surface);
  color: var(--sp-text);
  border-radius: var(--sp-radius);
  box-shadow: var(--sp-shadow);
}
.sp-skip-link:focus { top: 12px; }

/* ---------- 6. Announcement bar ---------- */
.sp-announcement {
  background: linear-gradient(90deg, var(--sp-announcement-bg), color-mix(in srgb, var(--sp-announcement-bg) 70%, var(--sp-dark)));
  color: #fff;
  font-size: 0.875rem;
}
.sp-announcement__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
  position: relative;
}
.sp-announcement__text { margin: 0; text-align: center; }
.sp-announcement__label { color: var(--sp-announcement-label); font-weight: 700; margin-right: 6px; }
.sp-announcement__link { color: #fff; text-decoration: underline; margin-left: 6px; font-weight: 500; }
.sp-announcement__link:hover { color: #fff; opacity: 0.85; }
.sp-announcement__close {
  position: absolute;
  right: var(--sp-gutter);
  display: inline-flex;
  padding: 6px;
  background: none;
  border: 0;
  color: #fff;
  cursor: pointer;
  border-radius: var(--sp-radius);
}
.sp-announcement__close:hover { background: rgba(255, 255, 255, 0.12); }
@media (max-width: 700px) {
  .sp-announcement__inner { justify-content: flex-start; padding-right: 48px; }
  .sp-announcement__text { text-align: left; }
}

/* ---------- 7. Header ---------- */
.sp-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--sp-surface) 94%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--sp-border);
}
.sp-header__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: var(--sp-header-height);
}
.sp-header__logo a { display: inline-flex; align-items: center; }
.sp-header__logo img { display: block; width: auto; max-width: 200px; }

.sp-nav { flex: 1; }
.sp-nav__list {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-nav__item { position: relative; }
.sp-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: none;
  border: 0;
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
}
.sp-nav__link:hover { color: var(--sp-text); background: var(--sp-page-bg); text-decoration: none; }

.sp-chevron { transition: transform 0.15s ease; }
[aria-expanded="true"] > .sp-chevron { transform: rotate(180deg); }

.sp-header__account { display: flex; align-items: center; gap: 12px; }

/* Dropdowns (Products and user menu) */
.sp-dropdown { position: relative; }
.sp-dropdown__menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 110;
  min-width: 240px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
.sp-dropdown__menu--end { left: auto; right: 0; }
.sp-dropdown.is-open > .sp-dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.sp-dropdown__item {
  display: block;
  padding: 8px 12px;
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-size: 0.9375rem;
  white-space: nowrap;
}
.sp-dropdown__item:hover { background: var(--sp-page-bg); color: var(--sp-text); text-decoration: none; }
/* Products menu: two labeled groups */
.sp-products { min-width: 280px; padding: 12px 8px; }
.sp-products__group + .sp-products__group { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--sp-border); }
.sp-products__heading { margin: 0 12px 6px; font-size: 0.6875rem; }
.sp-products__list { margin: 0; padding: 0; list-style: none; }
.sp-mobile-nav .sp-mobile-nav__sublist { padding: 4px 0 12px 16px; }
.sp-mobile-nav__sublist .sp-products__heading { margin: 8px 0 4px; }
.sp-mobile-nav__sublist .sp-mobile-nav__sublink { padding-left: 0; }
.sp-dropdown__separator { height: 1px; margin: 6px 4px; background: var(--sp-border); }

.sp-user-menu__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 8px 4px 4px;
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 500;
}
.sp-user-menu__toggle:hover { background: var(--sp-page-bg); }
.sp-user-menu__avatar { width: 32px; height: 32px; border-radius: 50%; }

/* Mobile menu */
.sp-menu-toggle {
  display: none;
  padding: 8px;
  background: none;
  border: 0;
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  cursor: pointer;
}
.sp-menu-toggle__close { display: none; }
.sp-menu-toggle[aria-expanded="true"] .sp-menu-toggle__open { display: none; }
.sp-menu-toggle[aria-expanded="true"] .sp-menu-toggle__close { display: block; }

.sp-mobile-nav { border-top: 1px solid var(--sp-border); background: var(--sp-surface); }
.sp-mobile-nav__list,
.sp-mobile-nav__sublist { margin: 0; padding: 0; list-style: none; }
.sp-mobile-nav__list { padding: 8px var(--sp-gutter) 16px; }
.sp-mobile-nav__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 0;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--sp-border);
  color: var(--sp-text);
  font-size: 1rem;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.sp-mobile-nav__link:hover { text-decoration: none; color: var(--sp-text); }
.sp-mobile-nav__sublink { display: block; padding: 10px 16px; color: var(--sp-text); }

@media (max-width: 900px) {
  .sp-nav,
  .sp-user-menu__name { display: none; }
  .sp-menu-toggle { display: inline-flex; }
}
@media (min-width: 901px) {
  .sp-mobile-nav { display: none !important; }
}
.sp-header__account .sp-button { white-space: nowrap; }
@media (max-width: 900px) {
  .sp-header__account { margin-left: auto; }
}
@media (max-width: 480px) {
  .sp-header__inner { gap: 8px; }
  .sp-header__logo { min-width: 0; flex: 0 1 auto; }
  .sp-header__logo a { max-width: 100%; }
  .sp-header__logo img { max-width: min(104px, 100%); height: auto !important; max-height: 24px; }
  .sp-header__account { gap: 6px; margin-left: auto; }
  .sp-header__account .sp-button { padding: 7px 10px; font-size: 0.8125rem; }
  .sp-menu-toggle { padding: 6px; }
}
@media (max-width: 380px) {
  .sp-header__account .sp-button { padding: 6px 8px; font-size: 0.75rem; }
}

/* Product color stripe under the header */
.sp-stripe {
  height: 4px;
  background: linear-gradient(90deg,
    #4BA384 0 14.28%,
    #14615D 14.28% 28.56%,
    #683568 28.56% 42.84%,
    #B71E74 42.84% 57.12%,
    #CF304C 57.12% 71.4%,
    #216092 71.4% 85.68%,
    #EBA900 85.68% 100%);
}

/* ---------- 8. Footer ---------- */
.sp-footer {
  margin-top: 80px;
  padding-top: 56px;
  background: var(--sp-page-bg);
  border-top: 1px solid var(--sp-border);
  font-size: 0.875rem;
}
.sp-footer__grid {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(0, 1fr));
  gap: 32px;
  padding-bottom: 48px;
}
.sp-footer__logo img { display: block; height: 28px; width: auto; }
.sp-footer__tagline { margin: 16px 0 0; max-width: 300px; color: var(--sp-text-muted); line-height: 1.6; }
.sp-footer__heading { margin-bottom: 16px; }
.sp-footer__heading a { color: inherit; }
.sp-footer__heading a:hover { text-decoration: none; opacity: 0.8; }
.sp-footer__badges,
.sp-footer__social { display: flex; flex-wrap: wrap; align-items: center; margin: 24px 0 0; padding: 0; list-style: none; }
.sp-footer__badges { gap: 16px; }
.sp-footer__badges a { display: block; border-radius: 6px; }
.sp-footer__badges a:hover { opacity: 0.85; }
/* Same size as on scalepad.com */
.sp-footer__badges img { display: block; width: auto; height: 112px; }
.sp-footer__social { gap: 8px; }
.sp-footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 1px solid var(--sp-border); border-radius: 50%;
  color: var(--sp-text-muted);
}
.sp-footer__social a:hover { color: var(--sp-text); border-color: var(--sp-text-muted); }
.sp-footer__links { margin: 0; padding: 0; list-style: none; }
.sp-footer__links li + li { margin-top: 10px; }
.sp-footer__links a { color: var(--sp-text-muted); }
.sp-footer__links a:hover { color: var(--sp-text); text-decoration: none; }
.sp-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 20px;
  padding-bottom: 32px;
  border-top: 1px solid var(--sp-border);
  color: var(--sp-text-muted);
  font-size: 0.8125rem;
}
.sp-footer__copyright { margin: 0; }
.sp-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; margin: 0; padding: 0; list-style: none; }
.sp-footer__legal a { color: var(--sp-text-muted); }
.sp-footer__legal a:hover { color: var(--sp-text); }
.sp-footer__legal:not(:has(li)) { display: none; }
@media (max-width: 600px) { .sp-footer__bottom { flex-direction: column; } }

@media (max-width: 1100px) {
  .sp-footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sp-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .sp-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sp-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .sp-footer__grid { grid-template-columns: 1fr; }
}

/* Back to top */
.sp-back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 50%;
  box-shadow: var(--sp-shadow);
  color: var(--sp-text);
  cursor: pointer;
}
.sp-back-to-top:hover { border-color: var(--sp-text); }

/* ---------- 9. Article content features kept from the current theme ---------- */
/* Accordion (class names unchanged so existing articles keep working) */
.accordion {
  display: block;
  width: 100%;
  margin-bottom: 10px;
  padding: 16px 48px 16px 18px;
  background-color: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.accordion p { display: inline; }
.accordion:hover { background-color: var(--sp-page-bg); }
.accordion.active { border-color: var(--sp-text); border-bottom-left-radius: 0; border-bottom-right-radius: 0; margin-bottom: 0; }
.accordion:after {
  content: '\002B';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--sp-text-muted);
  font-weight: 700;
  font-size: 1.125rem;
}
.accordion.active:after { content: "\2212"; }

.panel {
  padding: 0 18px;
  background-color: var(--sp-surface);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease-out;
}
.accordion.active + .panel {
  margin-bottom: 10px;
  border: 1px solid var(--sp-text);
  border-top: 0;
  border-radius: 0 0 var(--sp-radius) var(--sp-radius);
}

/* 1. Kill inline borders from the new Zendesk editor on article tables */
.content figure.wysiwyg-table table,
.content figure.wysiwyg-table table td,
.content figure.wysiwyg-table table th {
  border: 0 !important;
  border-style: none !important;
  border-color: transparent !important;
}

/* ==========================================================================
   10. Content pages: category, section, article
   ========================================================================== */
.sp-page { padding-top: 24px; padding-bottom: 32px; }

/* Breadcrumbs and compact search row */
.sp-subnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}
.sp-breadcrumbs .breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.875rem;
  color: var(--sp-text-muted);
}
.sp-breadcrumbs .breadcrumbs li { display: inline-flex; align-items: center; gap: 6px; }
.sp-breadcrumbs .breadcrumbs li + li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-top: 1.5px solid currentColor;
  transform: rotate(45deg);
  opacity: 0.5;
  margin-right: 4px;
}
.sp-breadcrumbs .breadcrumbs a { color: var(--sp-text-muted); }
.sp-breadcrumbs .breadcrumbs a:hover { color: var(--sp-text); }
.sp-breadcrumbs:not(.sp-breadcrumbs--article) .breadcrumbs li:last-child a { color: var(--sp-text); font-weight: 500; }

.sp-search { position: relative; }
.sp-search--compact { width: 320px; max-width: 100%; }
.sp-page .sp-search form,
.sp-page-banner .sp-search form { position: relative; display: block; min-width: 0; margin: 0; }
.sp-page .sp-search input[type="search"],
.sp-page-banner .sp-search input[type="search"] {
  width: 100%;
  padding: 10px 14px 10px 40px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  background: var(--sp-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%235B6B7B' stroke-width='1.6'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%235B6B7B' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 14px center / 16px;
  color: var(--sp-text);
  font: inherit;
  font-size: 0.9375rem;
  -webkit-appearance: none;
  appearance: none;
}
.sp-page .sp-search input[type="search"]:focus,
.sp-page-banner .sp-search input[type="search"]:focus { outline: none; border-color: var(--sp-link); box-shadow: var(--sp-focus); }
.sp-search input[type="submit"] { display: none; }

/* Three-column layout: sidebar, content, "On this page" */
.sp-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 48px;
  align-items: start;
}
/* Article pages: all navigation in one rail on the left, content on the right */
.sp-layout--article {
  grid-template-columns: 300px minmax(0, 1fr);
  grid-template-areas: "rail main";
  gap: 56px;
}
.sp-layout--article > .sp-article { grid-area: main; }
.sp-layout--article > .sp-article-rail { grid-area: rail; }
.sp-article-rail {
  position: sticky;
  top: calc(var(--sp-header-height) + 24px);
  max-height: calc(100vh - var(--sp-header-height) - 48px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}
.sp-rail-block:not([hidden]) + .sp-rail-block { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--sp-border); }
.sp-rail-block__heading { margin-bottom: 10px; }
.sp-article-rail .sp-sidenav { position: static; max-height: none; overflow: visible; padding-right: 0; }
.sp-sidenav__heading { display: block; }
.sp-layout__main { min-width: 0; outline: none; }

@media (max-width: 1000px) {
  .sp-layout--article { grid-template-columns: minmax(0, 1fr); grid-template-areas: "rail" "main"; gap: 24px; }
  .sp-article-rail { position: static; max-height: none; overflow: visible; padding: 0; }
  .sp-article-rail [data-toc-side] { display: none !important; }
  .sp-sidenav__heading { display: none; }
  .sp-rail-block:not([hidden]) + .sp-rail-block { margin-top: 0; padding-top: 0; border-top: 0; }
}
@media (max-width: 900px) {
  .sp-layout,
  .sp-layout--article { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .sp-subnav { flex-direction: column; align-items: stretch; }
  .sp-search--compact { width: 100%; }
}

/* Page header */
.sp-page-header { margin-bottom: 32px; }
.sp-page-header h1 { margin-bottom: 8px; }
.sp-page-header__description { margin: 0; color: var(--sp-text-muted); font-size: 1.0625rem; max-width: 720px; }

/* ---------- Left navigation sidebar ---------- */
.sp-sidenav {
  position: sticky;
  top: calc(var(--sp-header-height) + 24px);
  max-height: calc(100vh - var(--sp-header-height) - 48px);
  overflow-y: auto;
  padding-right: 4px;
  font-size: 0.9375rem;
  scrollbar-width: thin;
}
.sp-sidenav__mobile-toggle { display: none; }
.sp-sidenav__loading { color: var(--sp-text-muted); font-size: 0.875rem; }
.sp-sidenav ul { margin: 0; padding: 0; list-style: none; }
.sp-sidenav__children { margin-left: 12px !important; padding-left: 10px !important; border-left: 1px solid var(--sp-border); }
.sp-sidenav__row { display: flex; align-items: flex-start; gap: 2px; }
.sp-sidenav__toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 30px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: var(--sp-radius);
  color: var(--sp-text-muted);
  cursor: pointer;
}
.sp-sidenav__toggle:hover { color: var(--sp-text); background: var(--sp-surface); }
.sp-sidenav__toggle svg { transition: transform 0.15s ease; transform: rotate(-90deg); }
.sp-sidenav__toggle[aria-expanded="true"] svg { transform: none; }
.sp-sidenav__spacer { flex: 0 0 24px; }
.sp-sidenav__link {
  flex: 1;
  display: block;
  padding: 5px 8px;
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  line-height: 1.4;
}
.sp-sidenav__link:hover { background: var(--sp-surface); color: var(--sp-text); text-decoration: none; }
.sp-sidenav__item--category > .sp-sidenav__row .sp-sidenav__link { font-weight: 600; }
.sp-sidenav__item--category + .sp-sidenav__item--category { margin-top: 2px; }
.sp-sidenav__item--article .sp-sidenav__link { color: var(--sp-text-muted); font-size: 0.875rem; }
.sp-sidenav__link[aria-current="page"],
.sp-sidenav__item--article .sp-sidenav__link[aria-current="page"] {
  background: var(--sp-surface);
  color: var(--sp-text);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--sp-accent);
}

@media (max-width: 1000px) {
  .sp-sidenav,
  .sp-article-rail .sp-sidenav {
    position: static;
    max-height: none;
    overflow: visible;
    padding: 0;
    background: var(--sp-surface);
    border: 1px solid var(--sp-border);
    border-radius: var(--sp-radius-lg);
  }
  .sp-sidenav__mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 14px 16px;
    background: none;
    border: 0;
    font-weight: 600;
    cursor: pointer;
  }
  .sp-sidenav__tree { padding: 0 12px 12px; }
  .sp-sidenav:not(.is-open) .sp-sidenav__tree { display: none; }
}

/* ---------- Section cards (category page) ---------- */
.sp-section-cards { display: grid; gap: 24px; }
.sp-section-card {
  padding: 24px 28px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
}
.sp-section-card__title { margin: 0 0 16px; font-size: 1.25rem; }
.sp-section-card__title a { display: inline-flex; align-items: center; gap: 8px; color: var(--sp-text); }
.sp-section-card__title a:hover { color: var(--sp-link); text-decoration: none; }
.sp-arrow { flex: 0 0 auto; color: var(--sp-accent); transition: transform 0.15s ease; }
a:hover > .sp-arrow { transform: translateX(3px); }

.sp-subsection-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.sp-subsection-tiles:last-child { margin-bottom: 0; }
.sp-subsection-tiles--page { margin-bottom: 32px; }
.sp-subsection-tile {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 100%;
  padding: 12px 14px;
  background: var(--sp-page-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sp-subsection-tiles--page .sp-subsection-tile { background: var(--sp-surface); }
.sp-subsection-tile:hover { border-color: var(--sp-text); background: var(--sp-surface); color: var(--sp-text); text-decoration: none; }
.sp-subsection-tile__icon { flex: 0 0 auto; color: var(--sp-link); }
.sp-subsection-tile__name { flex: 1; }
.sp-subsection-tile__chevron { flex: 0 0 auto; color: var(--sp-text-muted); }

.sp-article-list { margin: 0; padding: 0; list-style: none; }
.sp-article-list__item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--sp-border);
}
.sp-article-list__item:first-child { border-top: 0; padding-top: 0; }
.sp-article-list__item a { color: var(--sp-link); }
.sp-article-list__item.is-promoted a { font-weight: 600; }

.sp-see-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-weight: 600;
  font-size: 0.9375rem;
}
.sp-empty { color: var(--sp-text-muted); }

.sp-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.sp-badge--muted { background: var(--sp-page-bg); color: var(--sp-text-muted); border: 1px solid var(--sp-border); }
.sp-badge--accent { background: var(--sp-accent); color: var(--sp-accent-text); }

/* Zendesk pagination helper */
.pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 24px 0 0; padding: 0; list-style: none; }
.pagination a,
.pagination span { display: inline-block; padding: 6px 12px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: var(--sp-surface); }
.pagination-current span,
.pagination .pagination-current a { background: var(--sp-text); color: #fff; border-color: var(--sp-text); }

/* ---------- Article ---------- */
.sp-article__header { margin-bottom: 28px; }
.sp-article__title { margin-bottom: 10px; }
.sp-article__meta { margin: 0; color: var(--sp-text-muted); font-size: 0.875rem; }

.sp-article__body { font-size: 1rem; line-height: 1.75; overflow-wrap: break-word; }
.sp-article__body > :first-child { margin-top: 0; }
.sp-article__body h2 { margin: 2.25rem 0 0.75rem; padding-bottom: 0.5rem; border-bottom: 1px solid var(--sp-border); font-size: 1.5rem; }
.sp-article__body h3 { margin: 1.75rem 0 0.5rem; font-size: 1.1875rem; }
.sp-article__body h4 { margin: 1.5rem 0 0.5rem; }
.sp-article__body ul,
.sp-article__body ol { padding-left: 1.5rem; margin: 0 0 1rem; }
.sp-article__body li + li { margin-top: 0.35rem; }
.sp-article__body img { border-radius: var(--sp-radius); border: 1px solid var(--sp-border); }
.sp-article__body code { padding: 2px 6px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: 4px; font-size: 0.875em; }
.sp-article__body pre { padding: 16px; overflow-x: auto; background: var(--sp-dark); color: #fff; border-radius: var(--sp-radius); }
.sp-article__body pre code { padding: 0; background: none; border: 0; color: inherit; }
.sp-article__body blockquote { margin: 1.5rem 0; padding: 4px 0 4px 16px; border-left: 3px solid var(--sp-border); color: var(--sp-text-muted); }
.sp-article__body table { width: 100%; border-collapse: collapse; margin: 1.5rem 0; font-size: 0.9375rem; }
.sp-article__body th,
.sp-article__body td { padding: 10px 12px; border-bottom: 1px solid var(--sp-border); text-align: left; vertical-align: top; }
.sp-article__body th { background: var(--sp-surface); font-weight: 600; }
.sp-article__body h2[id],
.sp-article__body h3[id] { scroll-margin-top: calc(var(--sp-header-height) + 24px); }

/* Note and Warning callouts (classes used in existing articles) */
.sp-article__body .note,
.sp-article__body .warning {
  position: relative;
  margin: 1.75rem 0;
  padding: 16px 20px;
  border-radius: var(--sp-radius);
  border-left: 4px solid;
}
.sp-article__body .note { background: #EEF5FC; border-left-color: #216092; }
.sp-article__body .warning { background: #FDF0F2; border-left-color: #CF304C; }
.sp-article__body .note::before,
.sp-article__body .warning::before {
  display: block;
  margin-bottom: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sp-article__body .note::before { content: "Note"; color: #216092; }
.sp-article__body .warning::before { content: "Warning"; color: #CF304C; }
.sp-article__body .note > :last-child,
.sp-article__body .warning > :last-child { margin-bottom: 0; }

/* Attachments */
.sp-attachments { margin-top: 32px; padding: 20px 24px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); }
.sp-attachments ul { margin: 0; padding: 0; list-style: none; }
.sp-attachments li + li { margin-top: 6px; }
.sp-attachments__size { color: var(--sp-text-muted); font-size: 0.8125rem; }

/* "On this page" */
.sp-toc__list { margin: 0; padding: 0; list-style: none; font-size: 0.875rem; border-left: 1px solid var(--sp-border); }
.sp-toc__list a {
  display: block;
  margin-left: -1px;
  padding: 5px 0 5px 14px;
  border-left: 2px solid transparent;
  color: var(--sp-text-muted);
  line-height: 1.4;
}
.sp-toc__list a:hover { color: var(--sp-text); text-decoration: none; }
.sp-toc__list a.is-active { border-left-color: var(--sp-accent); color: var(--sp-text); font-weight: 600; }
.sp-toc__list .sp-toc__sub a { padding-left: 28px; }

.sp-toc--inline {
  margin-bottom: 28px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
}
.sp-toc--inline summary { padding: 14px 18px; font-weight: 600; cursor: pointer; }
.sp-toc--inline nav { padding: 0 18px 14px; }
@media (min-width: 1001px) {
  .sp-toc--inline { display: none !important; }
}

/* Support and MSP Power-Ups blocks */
.sp-help-blocks {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--sp-border);
}
.sp-help-card {
  display: flex;
  gap: 16px;
  padding: 24px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
}
.sp-help-card__icon {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--sp-page-bg);
  color: var(--sp-link);
}
.sp-help-card--powerups {
  gap: 12px;
  padding: 14px 20px;
  background: color-mix(in srgb, var(--sp-page-bg) 92%, var(--sp-dark));
  border-color: var(--sp-border);
  border-radius: var(--sp-radius);
}
.sp-help-card--powerups .sp-help-card__icon { width: 30px; height: 30px; background: var(--sp-surface); color: var(--sp-text-muted); }
.sp-help-card--powerups .sp-help-card__icon svg { width: 16px; height: 16px; }
.sp-help-card--powerups .sp-help-card__body { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.sp-help-card--powerups .sp-help-card__heading { font-size: 0.9375rem; }
.sp-help-card--powerups .sp-help-card__text { flex: 1 1 260px; margin: 0; font-size: 0.875rem; line-height: 1.5; }
.sp-help-card--powerups .sp-badge { font-size: 0.6875rem; background: var(--sp-dark); color: #fff; }
.sp-help-card--powerups .sp-button--dark { padding: 5px 12px; font-size: 0.8125rem; background: var(--sp-surface); color: var(--sp-text); border-color: var(--sp-border); }
.sp-help-card--powerups .sp-button--dark:hover { background: var(--sp-page-bg); }
.sp-help-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.sp-help-card__heading { margin: 0; font-size: 1.0625rem; }
.sp-help-card__text { margin: 0 0 4px; color: var(--sp-text-muted); font-size: 0.9375rem; line-height: 1.55; }

/* Was this article helpful? */
.sp-feedback {
  margin-top: 32px;
  padding: 28px 24px;
  text-align: center;
  border-top: 1px solid var(--sp-border);
  border-bottom: 1px solid var(--sp-border);
}
.sp-feedback__heading { margin: 0 0 16px; font-size: 1.0625rem; }
.sp-feedback__buttons { display: flex; justify-content: center; gap: 12px; }
.sp-feedback__button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px 8px 12px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: 999px;
  color: var(--sp-text);
  font-weight: 600;
}
button.sp-feedback__button { font: inherit; font-weight: 600; cursor: pointer; }
.sp-feedback__button:hover { border-color: var(--sp-text); color: var(--sp-text); text-decoration: none; }
.sp-feedback__button.is-selected { border-color: var(--sp-accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--sp-accent) 35%, transparent); }
.sp-feedback__thanks { margin: 14px 0 0; color: var(--sp-text-muted); font-size: 0.875rem; }

/* Recently viewed articles (Zendesk helper) */
.sp-recent { margin-top: 32px; }
.sp-recent h2,
.sp-recent h3 { margin: 0 0 12px; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.18em; text-transform: uppercase; color: var(--sp-accent); }
.sp-recent ul { margin: 0; padding: 0; list-style: none; }
.sp-recent li { padding: 6px 0; }

/* ==========================================================================
   11. Home page
   ========================================================================== */
.sp-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 96px;
  background:
    radial-gradient(ellipse 60% 80% at 15% 0%, color-mix(in srgb, var(--sp-dark-accent) 55%, transparent), transparent 70%),
    radial-gradient(ellipse 50% 70% at 90% 100%, color-mix(in srgb, #683568 35%, transparent), transparent 70%),
    var(--sp-dark);
  color: #fff;
  text-align: center;
}
.sp-hero__inner { max-width: 820px; }
.sp-hero__heading { margin: 0 0 12px; color: #fff; font-size: 3rem; font-weight: 800; letter-spacing: -0.025em; }
.sp-hero__text { margin: 0 auto 8px; max-width: 600px; color: rgba(255, 255, 255, 0.82); font-size: 1.125rem; }
.sp-search--hero { margin: 32px auto 0; max-width: 720px; }
.sp-hero .sp-search input[type="search"] {
  width: 100%;
  padding: 20px 24px 20px 56px;
  border: 0;
  border-radius: var(--sp-radius-lg);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%23132435' stroke-width='1.6'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%23132435' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 22px center / 20px;
  color: var(--sp-text);
  font: inherit;
  font-size: 1.125rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
  -webkit-appearance: none;
  appearance: none;
}
.sp-hero .sp-search input[type="search"]:focus { outline: none; box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25), 0 0 0 4px color-mix(in srgb, var(--sp-accent) 60%, transparent); }
.sp-hero .sp-search form { position: relative; margin: 0; }
@media (max-width: 600px) {
  .sp-hero { padding: 56px 0 64px; }
  .sp-hero__heading { font-size: 2.125rem; }
}

.sp-home { padding-top: 56px; }
.sp-home__block + .sp-home__block { margin-top: 72px; }
.sp-home__heading { text-align: center; margin-bottom: 24px; }

/* Category tiles: fewest rows possible, at most 4 per row, last row centered.
   script.js sets --sp-tile-cols from the number of categories. */
.sp-category-tiles {
  --sp-tile-cols: 3;
  --sp-tile-gap: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--sp-tile-gap);
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-category-tiles__item {
  flex: 0 0 calc((100% - (var(--sp-tile-cols) - 1) * var(--sp-tile-gap)) / var(--sp-tile-cols));
  min-width: 0;
}
.sp-category-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  padding: 28px 24px 32px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  color: var(--sp-text);
  text-align: center;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.sp-category-tile:hover {
  border-color: var(--sp-text);
  box-shadow: var(--sp-shadow);
  transform: translateY(-2px);
  color: var(--sp-text);
  text-decoration: none;
}
.sp-category-tile__media { display: flex; align-items: center; justify-content: center; height: 88px; margin-bottom: 18px; }
.sp-category-tile__media img { max-height: 88px; max-width: 140px; width: auto; height: auto; }
.sp-category-tile__media:empty,
.sp-category-tile__media.is-empty { display: none; }
.sp-category-tile__name { font-family: var(--sp-font-heading); font-size: 1.125rem; font-weight: 700; line-height: 1.3; }
.sp-category-tile__description { margin-top: 8px; color: var(--sp-text-muted); font-size: 0.9375rem; line-height: 1.5; }
.sp-category-tile__arrow { margin-top: 14px; }
.sp-category-tile:hover .sp-category-tile__arrow { transform: translateX(3px); }

@media (max-width: 900px) {
  .sp-category-tiles { --sp-tile-cols: 2 !important; }
}
@media (max-width: 520px) {
  .sp-category-tiles { --sp-tile-cols: 1 !important; }
}

/* Featured articles: compact two-column list, up to 6 */
.sp-featured {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 32px;
  max-width: 900px;
  margin: 0 auto;
  padding: 8px 24px;
  list-style: none;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
}
.sp-featured__item:nth-child(n+7) { display: none; }
.sp-featured__item a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--sp-border);
  color: var(--sp-text);
  font-size: 0.9375rem;
}
.sp-featured__item a::before {
  content: "";
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--sp-accent);
  transform: translateY(-2px);
}
.sp-featured__item a:hover { color: var(--sp-link); text-decoration: none; }
@media (min-width: 641px) {
  .sp-featured__item:nth-last-child(-n+2):nth-child(odd) a,
  .sp-featured__item:nth-last-child(-n+2):nth-child(odd) ~ .sp-featured__item a,
  .sp-featured__item:nth-child(5) a,
  .sp-featured__item:nth-child(6) a { border-bottom: 0; }
}
@media (max-width: 640px) {
  .sp-featured { grid-template-columns: minmax(0, 1fr); }
  .sp-featured__item:last-child a,
  .sp-featured__item:nth-child(6) a { border-bottom: 0; }
}

/* Other ScalePad products' help centers: slim logo row */
.sp-home__block--products { text-align: center; }
.sp-home__products-heading { margin: 0 0 18px; color: var(--sp-text-muted); font-size: 1rem; font-weight: 500; }
.sp-product-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-product-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  height: 64px;
  padding: 0 24px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-weight: 600;
  transition: border-color 0.15s ease;
}
.sp-product-link:hover { border-color: var(--sp-text); text-decoration: none; color: var(--sp-text); }
.sp-product-link img { max-height: 24px; max-width: 140px; width: auto; }
.sp-product-link__name { display: none; }
.sp-product-link.is-text img { display: none; }
.sp-product-link.is-text .sp-product-link__name { display: inline; }

/* ---------- Front door: four doors under the hero ---------- */
.sp-doors__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-door {
  display: flex;
  flex-direction: column;
  padding: 24px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow);
}
.sp-door__team { margin-bottom: 8px; }
.sp-door__title { margin: 0 0 8px; font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
.sp-door__text { margin: 0 0 16px; color: var(--sp-text-muted); font-size: 0.9375rem; line-height: 1.5; }
.sp-door__links { margin: 0 0 20px; padding: 0; list-style: none; }
.sp-door__links li { padding: 7px 0; border-top: 1px solid var(--sp-border); font-size: 0.9375rem; line-height: 1.4; }
.sp-door__links li:last-child { border-bottom: 1px solid var(--sp-border); }
.sp-door__links a { color: var(--sp-text); font-weight: 500; }
.sp-door__links a:hover { color: var(--sp-link); }
.sp-door__button { margin-top: auto; width: 100%; padding-left: 16px; padding-right: 16px; text-align: center; }
.sp-doors + .sp-home__block { margin-top: 72px; }
/* Columns follow how many help cards are switched on (1 to 4) */
.sp-doors__list:has(> li:nth-child(4)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sp-doors__list:not(:has(> li:nth-child(3))) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sp-doors__list:not(:has(> li:nth-child(2))) { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
.sp-doors:not(:has(.sp-door)) { display: none; }
.sp-doors:not(:has(.sp-door)) + .sp-useful { margin-top: 0; }
.sp-door__links:not(:has(li)) { display: none; }
.sp-door__text:last-child, .sp-door__title:last-child { margin-bottom: 0; }
@media (max-width: 1100px) {
  .sp-doors__list:has(> li:nth-child(4)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .sp-doors__list, .sp-doors__list:has(> li:nth-child(4)), .sp-doors__list:not(:has(> li:nth-child(3))) { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .sp-doors__list { grid-template-columns: 1fr; }
}

/* ---------- Useful links row ---------- */
.sp-useful { text-align: center; }
.sp-useful__heading { margin: 0 0 18px; font-size: 1.125rem; font-weight: 700; }
.sp-useful__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sp-useful__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-weight: 600;
}
.sp-useful__link:hover { border-color: var(--sp-text); color: var(--sp-text); text-decoration: none; }
.sp-useful__link:hover .sp-arrow { transform: translateX(3px); }

/* ==========================================================================
   12. Home page refresh: light, airy layout inspired by Kaseya's help center,
       in ScalePad colors (navy text, amber accent, product stripe colors)
   ========================================================================== */
.sp-hero {
  padding: 96px 0 104px;
  background:
    repeating-radial-gradient(circle at 50% 120%, transparent 0 118px, color-mix(in srgb, var(--sp-text) 5%, transparent) 118px 119px),
    radial-gradient(ellipse 38% 70% at 8% 60%, color-mix(in srgb, var(--sp-dark-accent) 30%, transparent), transparent 70%),
    radial-gradient(ellipse 34% 60% at 92% 70%, color-mix(in srgb, #683568 22%, transparent), transparent 70%),
    radial-gradient(ellipse 30% 45% at 70% 0%, color-mix(in srgb, var(--sp-accent) 18%, transparent), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, color-mix(in srgb, var(--sp-page-bg) 70%, #fff) 100%);
  color: var(--sp-text);
  border-bottom: 1px solid var(--sp-border);
}
.sp-hero__eyebrow { margin-bottom: 14px; }
.sp-hero__heading { color: var(--sp-text); font-size: 3.25rem; letter-spacing: -0.03em; }
.sp-hero__text { color: var(--sp-text-muted); }
.sp-hero .sp-search input[type="search"] {
  border: 1px solid var(--sp-border);
  box-shadow: 0 8px 30px rgba(19, 36, 53, 0.10);
}
.sp-hero .sp-search input[type="search"]:focus {
  border-color: var(--sp-accent);
  box-shadow: 0 8px 30px rgba(19, 36, 53, 0.10), 0 0 0 4px color-mix(in srgb, var(--sp-accent) 35%, transparent);
}
@media (max-width: 600px) { .sp-hero__heading { font-size: 2.25rem; } }

/* White page behind the home content, soft tinted cards on it */
.sp-home-bg { background: #FFFFFF; padding-bottom: 80px; margin-bottom: -80px; }
.sp-home { padding-top: 64px; }
.sp-home__block + .sp-home__block { margin-top: 88px; }
.sp-home__heading--eyebrow { margin-bottom: 10px; }
.sp-home__title { margin: 0 0 32px; text-align: center; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
@media (max-width: 600px) { .sp-home__title { font-size: 1.75rem; } }

.sp-door {
  background: color-mix(in srgb, var(--sp-page-bg) 80%, var(--sp-dark-accent) 4%);
  border-color: transparent;
  box-shadow: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.sp-door:hover { border-color: var(--sp-border); background: var(--sp-page-bg); }
.sp-door__links li, .sp-door__links li:last-child { border-color: color-mix(in srgb, var(--sp-border) 80%, transparent); }

/* Category tiles: flat tinted cards, left aligned, small image, "Explore" link */
.sp-category-tile {
  align-items: flex-start;
  padding: 24px;
  background: color-mix(in srgb, var(--sp-page-bg) 80%, var(--sp-dark-accent) 4%);
  border-color: transparent;
  text-align: left;
}
.sp-category-tile:hover { border-color: var(--sp-border); box-shadow: none; transform: none; background: var(--sp-page-bg); }
.sp-category-tile__media { justify-content: flex-start; height: 48px; margin-bottom: 16px; }
.sp-category-tile__media img { max-height: 48px; max-width: 64px; }
.sp-category-tile__name { font-size: 1.125rem; }
.sp-category-tile__description { flex: 1 1 auto; }
.sp-category-tile__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-weight: 600; font-size: 0.9375rem; color: var(--sp-text); }
.sp-category-tile__arrow { margin-top: 0; }
.sp-category-tile:hover .sp-category-tile__more { color: var(--sp-link); }

/* Featured articles: clean two-column list with arrows, no box */
.sp-featured { background: transparent; border: 0; border-radius: 0; padding: 0; max-width: 960px; gap: 0 40px; }
.sp-featured__item a { padding: 16px 0; font-weight: 500; font-size: 1rem; }
.sp-featured__item a::before { display: none; }
.sp-featured__item a::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' stroke='%23EBA900' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px;
  align-self: center;
}

/* Useful links and product logos: tinted pills to match the cards */
.sp-useful__link, .sp-product-link {
  background: color-mix(in srgb, var(--sp-page-bg) 80%, var(--sp-dark-accent) 4%);
  border-color: transparent;
}
.sp-useful__link:hover, .sp-product-link:hover { border-color: var(--sp-border); }

/* Breadcrumbs: read as a trail of links (home icon, link color, clear chevrons,
   current page in bold without link styling) */
.sp-breadcrumbs .breadcrumbs { gap: 4px; font-size: 0.9375rem; }
.sp-breadcrumbs .breadcrumbs li { gap: 4px; }
.sp-breadcrumbs .breadcrumbs li + li::before {
  width: 16px;
  height: 16px;
  border: 0;
  transform: none;
  opacity: 1;
  margin: 0 2px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6 3.5L10.5 8 6 12.5' stroke='%235B6B7B' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px;
}
.sp-breadcrumbs .breadcrumbs a { color: var(--sp-link); text-decoration: none; }
.sp-breadcrumbs .breadcrumbs a:hover { color: var(--sp-link-hover); text-decoration: underline; text-underline-offset: 3px; }
.sp-breadcrumbs .breadcrumbs li:first-child a { display: inline-flex; align-items: center; gap: 6px; }
.sp-breadcrumbs .breadcrumbs li:first-child a::before {
  content: "";
  width: 16px;
  height: 16px;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 7.5L8 3l5.5 4.5M4 6.5V13h3V9.5h2V13h3V6.5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2.5 7.5L8 3l5.5 4.5M4 6.5V13h3V9.5h2V13h3V6.5' stroke='black' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px;
}
/* On category and section pages the last crumb is the current page. On articles it's the
   article's section, so it stays a normal link there. */
.sp-breadcrumbs:not(.sp-breadcrumbs--article) .breadcrumbs li:last-child a,
.sp-breadcrumbs:not(.sp-breadcrumbs--article) .breadcrumbs li:last-child a:hover { color: var(--sp-text); font-weight: 600; text-decoration: none; }

/* ==========================================================================
   13. Search results
   ========================================================================== */
.sp-search-page .sp-subnav { margin-bottom: 20px; }
.sp-search-page__bar { max-width: 760px; margin: 0 0 36px; }
.sp-search-page .sp-search-page__bar input[type="search"] {
  width: 100%;
  padding: 16px 20px 16px 50px;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='7' cy='7' r='5' fill='none' stroke='%23132435' stroke-width='1.6'/%3E%3Cpath d='M11 11l3.5 3.5' stroke='%23132435' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 18px center / 18px;
  color: var(--sp-text);
  font: inherit;
  font-size: 1.0625rem;
  box-shadow: 0 6px 24px rgba(19, 36, 53, 0.08);
  -webkit-appearance: none;
  appearance: none;
}
.sp-search-page .sp-search-page__bar input[type="search"]:focus { outline: none; border-color: var(--sp-accent); box-shadow: 0 6px 24px rgba(19, 36, 53, 0.08), 0 0 0 4px color-mix(in srgb, var(--sp-accent) 35%, transparent); }
.sp-search-page .sp-search-page__bar form { position: relative; margin: 0; }

.sp-search-filters { align-self: start; }
.sp-filter + .sp-filter { margin-top: 28px; }
.sp-filter__heading { margin-bottom: 10px; }
.sp-filter__list { margin: 0; padding: 0; list-style: none; }
.sp-filter__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  border-radius: var(--sp-radius);
  color: var(--sp-text);
  font-size: 0.9375rem;
  border-left: 3px solid transparent;
}
.sp-filter__item:hover { background: var(--sp-surface); color: var(--sp-text); text-decoration: none; }
.sp-filter__item.is-current { background: var(--sp-surface); border-left-color: var(--sp-accent); font-weight: 600; }
.sp-filter__count { color: var(--sp-text-muted); font-weight: 400; font-variant-numeric: tabular-nums; }

.sp-search-page__title { margin: 0 0 20px; font-size: 1.5rem; font-weight: 700; line-height: 1.3; }
.sp-results { margin: 0; padding: 0; list-style: none; }
.sp-result {
  padding: 20px 24px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  transition: border-color 0.15s ease;
}
.sp-result + .sp-result { margin-top: 12px; }
.sp-result:hover { border-color: var(--sp-text); }
.sp-result__path { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 6px; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--sp-text-muted); }
.sp-result__path li + li::before { content: "\203A"; margin-right: 4px; }
.sp-result__path a { color: var(--sp-text-muted); }
.sp-result__title { margin: 0; font-size: 1.125rem; font-weight: 700; line-height: 1.35; }
.sp-result__title a { color: var(--sp-text); }
.sp-result__title a:hover { color: var(--sp-link); }
.sp-result__text { margin: 8px 0 0; color: var(--sp-text-muted); font-size: 0.9375rem; line-height: 1.55; }
.sp-result__text em { font-style: normal; font-weight: 600; color: var(--sp-text); background: color-mix(in srgb, var(--sp-accent) 22%, transparent); border-radius: 3px; padding: 0 2px; }

.sp-search-page .pagination { margin-top: 28px; }
.sp-search-page .pagination ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.sp-search-page .pagination a { display: inline-block; min-width: 40px; padding: 8px 12px; text-align: center; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: var(--sp-surface); color: var(--sp-text); }
.sp-search-page .pagination .pagination-current a, .sp-search-page .pagination [aria-current] { background: var(--sp-text); border-color: var(--sp-text); color: #fff; }

.sp-no-results { padding: 32px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); }
.sp-no-results p { margin: 0 0 12px; color: var(--sp-text-muted); }

.sp-search-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 28px 32px;
  border-radius: var(--sp-radius-lg);
  background: color-mix(in srgb, var(--sp-page-bg) 60%, var(--sp-dark-accent) 8%);
}
.sp-search-help__heading { margin: 0 0 4px; font-size: 1.25rem; font-weight: 700; }
.sp-search-help__text { margin: 0; color: var(--sp-text-muted); }
.sp-search-help__actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 1000px) {
  .sp-search-filters { display: flex; flex-wrap: wrap; gap: 20px; }
  .sp-filter + .sp-filter { margin-top: 0; }
  .sp-filter { flex: 1 1 220px; }
}

/* ---------- Outage banner (status.scalepad.com) ---------- */
.sp-status-banner {
  background: color-mix(in srgb, var(--sp-accent) 18%, #fff);
  border-bottom: 1px solid color-mix(in srgb, var(--sp-accent) 55%, #fff);
  color: var(--sp-text);
  font-size: 0.875rem;
}
.sp-status-banner--maintenance {
  background: color-mix(in srgb, var(--sp-link) 10%, #fff);
  border-bottom-color: color-mix(in srgb, var(--sp-link) 35%, #fff);
}
.sp-status-banner__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding-top: 8px;
  padding-bottom: 8px;
  padding-right: 48px;
  position: relative;
}
.sp-status-banner__text { margin: 0; text-align: center; }
.sp-status-banner__text strong { font-weight: 700; }
.sp-status-banner__text strong::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: #C77700;
  vertical-align: 1px;
}
.sp-status-banner--maintenance .sp-status-banner__text strong::before { background: var(--sp-link); }
.sp-status-banner__link { margin-left: 4px; color: var(--sp-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.sp-status-banner__close {
  position: absolute;
  right: var(--sp-gutter);
  display: inline-flex;
  padding: 6px;
  background: none;
  border: 0;
  color: var(--sp-text);
  cursor: pointer;
  border-radius: var(--sp-radius);
}
.sp-status-banner__close:hover { background: rgba(19, 36, 53, 0.08); }
@media (max-width: 700px) {
  .sp-status-banner__inner { justify-content: flex-start; }
  .sp-status-banner__text { text-align: left; }
}

/* ==========================================================================
   14. Submit a request
   ========================================================================== */
.sp-request-page__header { max-width: 760px; margin-bottom: 28px; }
.sp-request-page__header h1 { margin: 0 0 8px; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; }
.sp-request-page__intro { margin: 0; color: var(--sp-text-muted); font-size: 1.0625rem; line-height: 1.55; }
.sp-request-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.sp-request-card {
  padding: 32px;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  box-shadow: var(--sp-shadow);
  outline: none;
}
.sp-request-card label { font-weight: 600; }
.sp-request-help { display: grid; gap: 16px; position: sticky; top: 24px; }
.sp-request-help__card {
  padding: 24px;
  border-radius: var(--sp-radius-lg);
  background: color-mix(in srgb, var(--sp-page-bg) 60%, var(--sp-dark-accent) 8%);
}
.sp-request-help__heading { margin: 0 0 12px; font-size: 1.0625rem; font-weight: 700; }
.sp-request-help__tips { margin: 0; padding-left: 20px; color: var(--sp-text); font-size: 0.9375rem; line-height: 1.55; }
.sp-request-help__tips li + li { margin-top: 8px; }
.sp-request-help__links { margin: 0; padding: 0; list-style: none; }
.sp-request-help__links li { display: flex; flex-direction: column; padding: 10px 0; border-top: 1px solid color-mix(in srgb, var(--sp-border) 80%, transparent); }
.sp-request-help__links li:first-child { border-top: 0; padding-top: 0; }
.sp-request-help__links a { color: var(--sp-text); font-weight: 600; }
.sp-request-help__links a:hover { color: var(--sp-link); }
.sp-request-help__links span { color: var(--sp-text-muted); font-size: 0.875rem; }
/* Useful links row sits right under the doors now */
.sp-doors + .sp-useful { margin-top: 40px; }
.sp-useful + .sp-home__block { margin-top: 88px; }
@media (max-width: 1000px) {
  .sp-request-layout { grid-template-columns: minmax(0, 1fr); }
  .sp-request-help { position: static; }
}
@media (max-width: 600px) {
  .sp-request-card { padding: 20px; }
  .sp-request-page__header h1 { font-size: 1.75rem; }
}

/* Category tiles without images: colored top edge, cycling through the product stripe colors */
.sp-category-tile { position: relative; overflow: hidden; padding-top: 28px; }
.sp-category-tile::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--sp-tile-color, var(--sp-accent)); }
.sp-category-tiles__item:nth-child(7n+1) .sp-category-tile { --sp-tile-color: #4BA384; }
.sp-category-tiles__item:nth-child(7n+2) .sp-category-tile { --sp-tile-color: #14615D; }
.sp-category-tiles__item:nth-child(7n+3) .sp-category-tile { --sp-tile-color: #683568; }
.sp-category-tiles__item:nth-child(7n+4) .sp-category-tile { --sp-tile-color: #B71E74; }
.sp-category-tiles__item:nth-child(7n+5) .sp-category-tile { --sp-tile-color: #CF304C; }
.sp-category-tiles__item:nth-child(7n+6) .sp-category-tile { --sp-tile-color: #216092; }
.sp-category-tiles__item:nth-child(7n+7) .sp-category-tile { --sp-tile-color: #EBA900; }

/* ==========================================================================
   15. My requests, request detail and error pages
   ========================================================================== */
.sp-requests-page__header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.sp-requests-page__header h1 { margin: 0 0 6px; font-size: 2.25rem; font-weight: 800; letter-spacing: -0.025em; }
.sp-requests-page__intro { margin: 0; color: var(--sp-text-muted); font-size: 1.0625rem; }
.sp-requests-card { padding: 24px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); box-shadow: var(--sp-shadow); }

.sp-request-detail__header { margin-bottom: 24px; }
.sp-request-detail__header h1 { margin: 0 0 10px; font-size: 2rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.sp-request-detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; color: var(--sp-text-muted); font-size: 0.9375rem; }
.sp-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; background: var(--sp-border); color: var(--sp-text); }
.sp-status--new, .sp-status--open { background: color-mix(in srgb, #CF304C 14%, #fff); color: #9B1D33; }
.sp-status--pending, .sp-status--hold { background: color-mix(in srgb, #216092 14%, #fff); color: #163F61; }
.sp-status--solved, .sp-status--closed { background: color-mix(in srgb, #14615D 14%, #fff); color: #0E4744; }

.sp-request-detail .request-container { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.sp-request-detail .request-main { min-width: 0; }
.sp-request-detail .comment-list { margin: 0 0 24px; padding: 0; list-style: none; }
.sp-request-detail .comment { padding: 20px 24px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); }
.sp-request-detail .comment + .comment { margin-top: 12px; }
.sp-request-detail .comment-author { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sp-request-detail .comment-avatar { position: relative; flex: 0 0 auto; }
.sp-request-detail .user-avatar { width: 36px; height: 36px; border-radius: 50%; display: block; }
.sp-request-detail .icon-agent { position: absolute; right: -2px; bottom: -2px; background: var(--sp-surface); border-radius: 50%; color: var(--sp-accent); }
.sp-request-detail .comment-meta { display: flex; flex-direction: column; font-size: 0.9375rem; }
.sp-request-detail .comment-meta a { color: var(--sp-text); font-weight: 600; }
.sp-request-detail .meta-data { color: var(--sp-text-muted); font-size: 0.8125rem; }
.sp-request-detail .comment-body { line-height: 1.6; overflow-wrap: anywhere; }
.sp-request-detail .comment-body img { max-width: 100%; height: auto; }
.sp-request-detail .attachments { margin: 14px 0 0; padding: 0; list-style: none; }
.sp-request-detail .attachment-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 12px; margin-top: 6px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); font-size: 0.9375rem; }
.sp-request-detail .attachment-meta { display: flex; gap: 10px; margin-left: auto; }
.sp-request-detail .request-follow-up { margin: 16px 0; color: var(--sp-text-muted); }

.sp-request-detail .comment-form { display: flex; gap: 12px; padding: 24px; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); box-shadow: var(--sp-shadow); }
.sp-request-detail .comment-form > .comment-avatar { display: none; }
.sp-request-detail .comment-container { flex: 1 1 auto; min-width: 0; }
.sp-reply__heading { margin: 0 0 12px; font-size: 1.125rem; font-weight: 700; }
.sp-request-detail .comment-fields, .sp-request-detail .request-submit-comment, .sp-request-detail .comment-form-controls { display: block; }
.sp-request-detail .comment-container textarea { width: 100%; min-height: 160px; padding: 12px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); font: inherit; }
.sp-request-detail .comment-attachments { margin-top: 12px; }
.sp-reply__hint { margin: 10px 0 0; color: var(--sp-text-muted); font-size: 0.875rem; }
.sp-request-detail .comment-form-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.sp-request-detail .mark-as-solved { display: inline-flex; align-items: center; padding: 12px 20px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); background: transparent; color: var(--sp-text); font: inherit; font-weight: 600; cursor: pointer; }
.sp-request-detail .mark-as-solved:hover { border-color: var(--sp-text); }
.sp-request-detail .request-submit-comment input[type=submit] { padding: 12px 24px; border: 0; border-radius: var(--sp-radius); background: var(--sp-accent); color: var(--sp-accent-text); font: inherit; font-weight: 600; cursor: pointer; }

.sp-request-detail .request-sidebar { padding: 24px; border-radius: var(--sp-radius-lg); background: color-mix(in srgb, var(--sp-page-bg) 60%, var(--sp-dark-accent) 8%); position: sticky; top: 24px; }
.sp-request-detail .request-details { margin: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.sp-request-detail .request-details dt { margin-top: 12px; color: var(--sp-text-muted); font-size: 0.8125rem; }
.sp-request-detail .request-details dt:first-child { margin-top: 0; }
.sp-request-detail .request-details dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.sp-request-detail .request-details + .request-details { margin-top: 16px; padding-top: 16px; border-top: 1px solid color-mix(in srgb, var(--sp-border) 80%, transparent); }
.sp-request-detail .request-details select { max-width: 100%; padding: 6px 8px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius); font: inherit; }
.sp-request-detail .request-collaborators { margin: 0; padding: 0; list-style: none; }

.sp-error-page { padding-top: 64px; padding-bottom: 96px; }
.sp-error { max-width: 640px; margin: 0 auto; text-align: center; }
.sp-error h1 { margin: 0 0 12px; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
.sp-error__text { margin: 0 0 24px; color: var(--sp-text-muted); font-size: 1.125rem; line-height: 1.55; }
.sp-error__search { margin: 0 auto 24px; max-width: 520px; }
.sp-error-page .sp-error__search input[type="search"] { width: 100%; padding: 14px 18px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); font: inherit; background: #fff; }
.sp-error__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.sp-error__status { margin: 32px 0 0; color: var(--sp-text-muted); font-size: 0.9375rem; }

@media (max-width: 1000px) {
  .sp-request-detail .request-container { grid-template-columns: minmax(0, 1fr); }
  .sp-request-detail .request-sidebar { position: static; order: -1; }
}
@media (max-width: 600px) {
  .sp-request-detail .comment, .sp-request-detail .comment-form, .sp-requests-card { padding: 16px; }
  .sp-error h1 { font-size: 1.875rem; }
}

/* ==========================================================================
   Lightbox for article images (behavior from the live help.scalepad.com theme,
   styled to match this theme). Article images keep their own border and radius.
   ========================================================================== */
.content img.lb-zoomable { cursor: zoom-in; }
.content img.lb-zoomable:focus-visible { outline: none; box-shadow: var(--sp-focus); }
.lb-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(19, 36, 53, 0.85); /* #132435 at 85% */
  cursor: zoom-out;
}
.lb-overlay[hidden] { display: none; }
.lb-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--sp-radius);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
  background: #fff;
}
.lb-close {
  position: absolute;
  top: 16px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-family: var(--sp-font-text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}
.lb-close:hover { background: rgba(255, 255, 255, 0.24); }
.lb-close:focus-visible { outline: 3px solid #EBA900; outline-offset: 3px; box-shadow: none; }

/* ==========================================================================
   Submit a request page: attachments callout and Description example text
   ========================================================================== */
.sp-attach-callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0 12px;
  padding: 12px 14px;
  background: #FDF1CC; /* #EBA900 as a light tint */
  border: 1px solid #F2CF66;
  border-left: 4px solid #EBA900;
  border-radius: var(--sp-radius);
  color: #132435;
}
.sp-attach-callout__icon { flex: 0 0 auto; display: inline-flex; color: #132435; margin-top: 1px; }
.sp-attach-callout__text { margin: 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.5; color: #132435; }
.sp-description-hint { margin: 0 0 6px; color: var(--sp-text-muted); font-size: 0.875rem; }

/* ==========================================================================
   Profile, Following, Contributions and approval pages.
   Zendesk's standard content for these pages, restyled to match the theme.
   ========================================================================== */
.sp-cph { padding-bottom: 48px; }
.sp-cph .container {
  max-width: var(--sp-container);
  margin: 0 auto;
  padding: 0 var(--sp-gutter);
}
.sp-cph h1 { font-size: 2rem; margin: 0 0 8px; }
.sp-cph a { color: var(--sp-link); }
.sp-cph .visibility-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
.sp-cph .user-avatar { border-radius: 50%; }
.sp-cph .meta-data,
.sp-cph .meta-group { color: var(--sp-text-muted); font-size: 0.875rem; }
.sp-cph .meta-group { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; padding: 0; list-style: none; }
.sp-cph .breadcrumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 4px; padding: 0; list-style: none; font-size: 0.8125rem; color: var(--sp-text-muted); }
.sp-cph .breadcrumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.sp-cph .breadcrumbs a { color: var(--sp-text-muted); }

/* Tabs (Contributions and Following, profile sections). The collapse button is only
   needed by Copenhagen's own script, so the tabs always show as a row. */
.sp-cph .collapsible-nav-toggle { display: none; }
.sp-cph .collapsible-nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--sp-border);
}
.sp-cph .collapsible-nav-list a {
  display: block;
  padding: 10px 14px;
  color: var(--sp-text-muted);
  font-weight: 500;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
}
.sp-cph .collapsible-nav-list a:hover { color: var(--sp-text); text-decoration: none; }
.sp-cph .collapsible-nav-list .current a,
.sp-cph .collapsible-nav-list [aria-current="page"] { color: var(--sp-text); border-bottom-color: var(--sp-accent); font-weight: 600; }

.sp-cph .my-activities-nav { padding-top: 24px; }
.sp-cph .my-activities-header { margin: 32px 0 20px; }
.sp-cph .my-activities-sub-nav { margin-top: 16px; }
.sp-cph .my-activities-sub-nav .collapsible-nav-list { border-bottom: 0; gap: 8px; }
.sp-cph .my-activities-sub-nav .collapsible-nav-list a {
  padding: 6px 14px; border: 1px solid var(--sp-border); border-radius: 999px; margin: 0; background: var(--sp-surface); font-size: 0.875rem;
}
.sp-cph .my-activities-sub-nav .collapsible-nav-list .current a { border-color: var(--sp-text); background: var(--sp-text); color: #fff; }

/* Filter menus (Following filter, profile sort): shown as a row of links,
   since they don't need Copenhagen's dropdown script that way */
.sp-cph .dropdown { display: block; }
.sp-cph .dropdown-toggle { display: none; }
.sp-cph .dropdown-menu { display: flex; flex-wrap: wrap; gap: 8px; position: static; }
.sp-cph .dropdown-menu a {
  display: inline-block; padding: 6px 14px; border: 1px solid var(--sp-border); border-radius: 999px;
  background: var(--sp-surface); color: var(--sp-text); font-size: 0.875rem;
}
.sp-cph .dropdown-menu a:hover { border-color: var(--sp-text); text-decoration: none; }
.sp-cph .dropdown-menu a[aria-checked="true"],
.sp-cph .dropdown-menu a[aria-selected="true"] { border-color: var(--sp-text); background: var(--sp-text); color: #fff; }
.sp-cph .my-activities-following-header { margin-bottom: 20px; }

/* Tables (Following and Contributions) */
.sp-cph .requests {
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  overflow-x: auto;
}
.sp-cph .table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.sp-cph .table th {
  padding: 12px 16px; text-align: left; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--sp-text-muted); border-bottom: 1px solid var(--sp-border); background: var(--sp-page-bg);
}
.sp-cph .table td { padding: 14px 16px; border-bottom: 1px solid var(--sp-border); vertical-align: middle; }
.sp-cph .table tr:last-child td { border-bottom: 0; }
.sp-cph .table .user-avatar { width: 24px; height: 24px; vertical-align: middle; margin-right: 8px; }
.sp-cph .striped-list-title { font-weight: 600; }
.sp-cph .no-activities,
.sp-cph .no-activity { margin: 0; padding: 32px 24px; color: var(--sp-text-muted); text-align: center; }
.sp-cph .pagination { margin-top: 20px; }

/* Follow buttons and other Zendesk action buttons on these pages */
.sp-cph [data-selected],
.sp-cph .subscriptions-subscribe button,
.sp-cph .community-follow button,
.sp-cph .user-profile-actions button,
.sp-cph .split-button button {
  padding: 6px 14px; border: 1px solid var(--sp-border); border-radius: var(--sp-radius);
  background: var(--sp-surface); color: var(--sp-text); font: inherit; font-size: 0.875rem; font-weight: 600; cursor: pointer;
}

/* Profile */
.sp-cph--profile .profile-header { padding: 40px 0 24px; }
.sp-cph--profile .profile-header > .container {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start;
  padding-top: 28px; padding-bottom: 28px;
  background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg);
  max-width: calc(var(--sp-container) - 2 * var(--sp-gutter));
}
.sp-cph--profile .profile-info { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 20px; }
.sp-cph--profile .profile-avatar .user-avatar { width: 72px; height: 72px; }
.sp-cph--profile .profile-avatar { position: relative; }
.sp-cph--profile .icon-agent { position: absolute; right: -2px; bottom: -2px; }
.sp-cph--profile .basic-info { flex: 1; min-width: 200px; }
.sp-cph--profile .name { font-size: 1.75rem; margin: 0; }
.sp-cph--profile .name a { color: var(--sp-text); }
.sp-cph--profile .options { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sp-cph--profile .description { flex-basis: 100%; margin: 4px 0 0; color: var(--sp-text-muted); }
.sp-cph--profile .profile-stats { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 16px 0 0; padding: 0; list-style: none; flex-basis: 100%; }
.sp-cph--profile .profile-stats-counters { flex-direction: column; gap: 10px; margin: 0; padding-left: 24px; border-left: 1px solid var(--sp-border); }
.sp-cph--profile .stat { display: flex; flex-direction: column; gap: 2px; }
.sp-cph--profile .profile-stats-counters .stat { flex-direction: row; justify-content: space-between; gap: 16px; }
.sp-cph--profile .stat-label { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--sp-text-muted); }
.sp-cph--profile .stat-value { font-weight: 600; }
.sp-cph--profile .community-badge-titles,
.sp-cph--profile .community-badge-achievements { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 0; padding: 0; list-style: none; }
.sp-cph--profile .community-badge-title { padding: 2px 10px; border-radius: 999px; background: var(--sp-page-bg); border: 1px solid var(--sp-border); font-size: 0.75rem; font-weight: 600; }
.sp-cph--profile .community-badge-achievement img { width: 28px; height: 28px; }
.sp-cph--profile .profile-private-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--sp-page-bg); border: 1px solid var(--sp-border); font-size: 0.8125rem; font-weight: 600; }
.sp-cph--profile .profile-nav { margin-bottom: 24px; }
.sp-cph--profile .profile-section { margin-bottom: 32px; }
.sp-cph--profile .profile-section-header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.sp-cph--profile .profile-section-title { margin: 0; font-size: 1.25rem; }
.sp-cph--profile .profile-section-description { margin: 4px 0 0; color: var(--sp-text-muted); font-size: 0.9375rem; flex-basis: 100%; }
.sp-cph--profile .profile-contribution-list,
.sp-cph--profile .profile-activity-list,
.sp-cph--profile .profile-badges-items { margin: 0; padding: 0; list-style: none; background: var(--sp-surface); border: 1px solid var(--sp-border); border-radius: var(--sp-radius-lg); }
.sp-cph--profile .profile-contribution,
.sp-cph--profile .profile-activity,
.sp-cph--profile .profile-badges-item { padding: 16px 20px; border-bottom: 1px solid var(--sp-border); }
.sp-cph--profile .profile-contribution:last-child,
.sp-cph--profile .profile-activity:last-child,
.sp-cph--profile .profile-badges-item:last-child { border-bottom: 0; }
.sp-cph--profile .profile-contribution-title { margin: 0 0 4px; font-size: 1rem; }
.sp-cph--profile .profile-contribution-body { margin: 6px 0 0; color: var(--sp-text-muted); font-size: 0.9375rem; }
.sp-cph--profile .profile-activity-header { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.sp-cph--profile .profile-activity-header .user-avatar { width: 28px; height: 28px; }
.sp-cph--profile .profile-activity-icon,
.sp-cph--profile .profile-contribution-icon { color: var(--sp-text-muted); }
.sp-cph--profile .profile-badges-item { display: flex; align-items: center; gap: 16px; }
.sp-cph--profile .profile-badges-item-image img { width: 40px; height: 40px; }
.sp-cph--profile .status-label { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; background: var(--sp-page-bg); border: 1px solid var(--sp-border); color: var(--sp-text-muted); }
@media (max-width: 760px) {
  .sp-cph--profile .profile-header > .container { grid-template-columns: minmax(0, 1fr); }
  .sp-cph--profile .profile-stats-counters { padding-left: 0; border-left: 0; padding-top: 16px; border-top: 1px solid var(--sp-border); }
}

/* Approval pages: the module draws the content; this gives it the theme's page width */
.sp-cph--approvals .container { padding-top: 32px; }

/* Pages for Zendesk features the help center doesn't use (community, Service Catalog) */
.sp-unavailable {
  max-width: 640px;
  margin: 48px auto 24px;
  padding: 40px 32px;
  text-align: center;
  background: var(--sp-surface);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius-lg);
  outline: none;
}
.sp-unavailable__heading { margin: 0 0 8px; font-size: 1.75rem; }
.sp-unavailable__text { margin: 0 0 20px; color: var(--sp-text-muted); }
.sp-unavailable__search { margin: 0 auto 20px; max-width: 420px; text-align: left; }

/* Products menu: the help center you're on */
.sp-dropdown__item.is-current,
.sp-mobile-nav__sublink.is-current { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; cursor: default; }
.sp-dropdown__item.is-current:hover { background: transparent; }
.sp-here {
  display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--sp-page-bg);
  border: 1px solid var(--sp-border); color: var(--sp-text-muted); font-size: 0.6875rem; font-weight: 700;
  letter-spacing: 0.04em; white-space: nowrap;
}
/* Formatted text in the support and promo blocks */
.sp-help-card__text strong { color: inherit; }
.sp-help-card--powerups .sp-help-card__text a { color: var(--sp-link); }

/* ==========================================================================
   13. Category, section and article pages: match the home page
       (light banner, white page, tinted cards, dark links with amber arrows)
   ========================================================================== */
.sp-page-banner {
  padding: 24px 0 32px;
  background:
    radial-gradient(ellipse 40% 120% at 6% 50%, color-mix(in srgb, var(--sp-dark-accent) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 34% 110% at 94% 60%, color-mix(in srgb, #683568 14%, transparent), transparent 70%),
    radial-gradient(ellipse 30% 90% at 70% 0%, color-mix(in srgb, var(--sp-accent) 14%, transparent), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, color-mix(in srgb, var(--sp-page-bg) 70%, #fff) 100%);
  border-bottom: 1px solid var(--sp-border);
}
.sp-page-banner .sp-subnav { margin-bottom: 0; }
.sp-page-banner .sp-page-header { margin: 32px 0 0; }
.sp-page-banner .sp-page-header:focus { outline: none; }
.sp-page-banner .sp-page-header h1 { margin-bottom: 8px; font-size: 2.5rem; font-weight: 800; letter-spacing: -0.025em; line-height: 1.15; }
@media (max-width: 600px) { .sp-page-banner .sp-page-header h1 { font-size: 2rem; } }
.sp-page-banner .sp-search input[type="search"] {
  background-color: #FFFFFF;
  border: 1px solid var(--sp-border);
  box-shadow: 0 6px 20px rgba(19, 36, 53, 0.08);
}
.sp-page-banner .sp-search input[type="search"]:focus {
  border-color: var(--sp-accent);
  box-shadow: 0 6px 20px rgba(19, 36, 53, 0.08), 0 0 0 4px color-mix(in srgb, var(--sp-accent) 35%, transparent);
}

/* White page under the banner, like the home page */
.sp-page-body { background: #FFFFFF; padding-bottom: 80px; margin-bottom: -80px; }
.sp-page-body .sp-page { padding-top: 40px; }

/* Left navigation on white: tinted hover and current item */
.sp-page-body .sp-sidenav__link:hover { background: color-mix(in srgb, var(--sp-page-bg) 80%, var(--sp-dark-accent) 4%); }
.sp-page-body .sp-sidenav__link[aria-current="page"] { background: color-mix(in srgb, var(--sp-page-bg) 80%, var(--sp-dark-accent) 4%); }

/* Section boxes and article lists: tinted cards, no border */
.sp-page-body .sp-section-card {
  background: color-mix(in srgb, var(--sp-page-bg) 80%, var(--sp-dark-accent) 4%);
  border-color: transparent;
}
.sp-page-body .sp-subsection-tile { background: #FFFFFF; border-color: transparent; }
.sp-page-body .sp-subsection-tiles--page .sp-subsection-tile { background: color-mix(in srgb, var(--sp-page-bg) 80%, var(--sp-dark-accent) 4%); }
.sp-page-body .sp-subsection-tile:hover { border-color: var(--sp-border); background: #FFFFFF; }
.sp-page-body .sp-article-list__item { padding: 12px 0; align-items: center; }
.sp-page-body .sp-article-list__item:first-child { padding-top: 0; }
.sp-page-body .sp-article-list__item a {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--sp-text);
  font-weight: 500;
}
.sp-page-body .sp-article-list__item a::after {
  content: "";
  flex: 0 0 auto;
  margin-left: auto;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8h10M9 4l4 4-4 4' stroke='%23EBA900' stroke-width='1.6' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / 16px;
  transition: transform 0.15s ease;
}
.sp-page-body .sp-article-list__item a:hover { color: var(--sp-link); text-decoration: none; }
.sp-page-body .sp-article-list__item a:hover::after { transform: translateX(3px); }
.sp-page-body .sp-see-all { color: var(--sp-text); }
.sp-page-body .sp-see-all:hover { color: var(--sp-link); text-decoration: none; }

/* Article body on white: tinted table headers and inline code */
.sp-page-body .sp-article__body th { background: color-mix(in srgb, var(--sp-page-bg) 80%, var(--sp-dark-accent) 4%); }
.sp-page-body .sp-article__body code { background: color-mix(in srgb, var(--sp-page-bg) 80%, var(--sp-dark-accent) 4%); }
.sp-page-body .sp-article__body pre code { background: none; }

/* Category page: nested sections listed like articles, with an article count */
.sp-sublist + .sp-article-list { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--sp-border); }
.sp-sublist__name { flex: 1 1 auto; }
.sp-page-body .sp-sublist__item a::after { margin-left: 0; }
.sp-sublist__count { flex: 0 0 auto; color: var(--sp-text-muted); font-size: 0.875rem; font-weight: 400; }
.sp-sublist__item a:hover .sp-sublist__count { color: var(--sp-text-muted); }

/* ==========================================================================
   14. Quality of life (script section 1f)
   ========================================================================== */
/* Copy link to a heading: shows on hover or keyboard focus */
.sp-heading-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; margin-left: 6px; padding: 0;
  vertical-align: middle; border: 0; border-radius: var(--sp-radius);
  background: transparent; color: var(--sp-text-muted); cursor: pointer;
  opacity: 0; transition: opacity 0.15s ease, color 0.15s ease;
}
.sp-article__body h2:hover .sp-heading-link,
.sp-article__body h3:hover .sp-heading-link,
.sp-heading-link:focus-visible { opacity: 1; }
.sp-heading-link:hover { color: var(--sp-link); background: color-mix(in srgb, var(--sp-page-bg) 80%, var(--sp-dark-accent) 4%); }
.sp-heading-link:focus-visible { outline: none; box-shadow: var(--sp-focus); }
.sp-heading-link.is-done { opacity: 1; color: #2E7D5B; }
.sp-heading-link.is-done::after { content: "Link copied"; margin-left: 6px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.sp-heading-link.is-done { width: auto; padding: 0 6px; }
@media (hover: none) { .sp-heading-link { opacity: 1; } }

/* Copy button on code blocks */
.sp-code { position: relative; margin: 1.5rem 0; }
.sp-code pre { margin: 0; padding-right: 72px; }
.sp-code__copy {
  position: absolute; top: 8px; right: 8px;
  padding: 4px 10px; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: var(--sp-radius);
  background: rgba(255, 255, 255, 0.08); color: #fff; font: inherit; font-size: 0.75rem; font-weight: 600; cursor: pointer;
}
.sp-code__copy:hover { background: rgba(255, 255, 255, 0.18); }
.sp-code__copy:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--sp-accent); }
.sp-code__copy.is-done { border-color: var(--sp-accent); color: var(--sp-accent); }

/* Wide tables scroll inside their own box */
.sp-table-scroll { margin: 1.5rem 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sp-table-scroll table { margin: 0; }
.sp-table-scroll.is-scrollable { border: 1px solid var(--sp-border); border-radius: var(--sp-radius); }
.sp-table-scroll.is-scrollable table { min-width: max-content; }
.sp-table-scroll.is-scrollable th, .sp-table-scroll.is-scrollable td { white-space: normal; min-width: 140px; }
.sp-table-scroll:focus-visible { outline: none; box-shadow: var(--sp-focus); }

/* Links that leave the help center */
.sp-article__body a.sp-external::after {
  content: "";
  display: inline-block; width: 0.75em; height: 0.75em; margin-left: 0.2em; vertical-align: 0.05em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M5 2H2v8h8V7M7 1.5h3.5V5M10.5 1.5L5.5 6.5' stroke='black' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M5 2H2v8h8V7M7 1.5h3.5V5M10.5 1.5L5.5 6.5' stroke='black' stroke-width='1.4' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center / contain;
}

/* Printing and saving as PDF: just the article */
@media print {
  .sp-skip-link, .sp-announcement, .sp-status-banner-slot, .sp-header, .sp-stripe, .sp-page-banner,
  .sp-article-rail, .sp-toc--inline, .sp-help-blocks, .sp-feedback, .sp-recent, .sp-footer,
  .sp-back-to-top, .sp-heading-link, .sp-code__copy, .lb-overlay { display: none !important; }
  html, body, .sp-page-body { background: #fff !important; }
  .sp-page-body { margin: 0; padding: 0; }
  .sp-page-body .sp-page { padding: 0; }
  .sp-container { max-width: none; padding: 0; }
  .sp-layout, .sp-layout--article { display: block; }
  .sp-article__body { font-size: 11pt; }
  .sp-article__body a.sp-external::after { display: none; }
  .sp-article__body a[href^="http"]:not(:has(img))::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; word-break: break-all; }
  .sp-article__body pre { white-space: pre-wrap; background: #f4f4f4 !important; color: #000 !important; border: 1px solid #ccc; }
  .sp-table-scroll { overflow: visible; border: 0; }
  .sp-table-scroll.is-scrollable table { min-width: 0; }
  .sp-article__body img { max-width: 100% !important; page-break-inside: avoid; }
  .sp-article__body h2, .sp-article__body h3 { page-break-after: avoid; }
  details { display: block; }
  details > * { display: block !important; }
}
@media (max-width: 600px) { .sp-code pre { padding-top: 44px; padding-right: 16px; } }

/* Article pages on desktop: "On this page" stays put, the help center navigation scrolls on its own */
@media (min-width: 1001px) and (min-height: 560px) {
  .sp-article-rail { display: flex; flex-direction: column; overflow: hidden; padding-right: 0; }
  .sp-article-rail > [data-toc-side] { flex: 0 0 auto; max-height: 40%; overflow-y: auto; scrollbar-width: thin; }
  .sp-article-rail > .sp-sidenav { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .sp-article-rail > .sp-sidenav > .sp-sidenav__heading { flex: 0 0 auto; }
  .sp-article-rail .sp-sidenav__tree { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding-right: 4px; scrollbar-width: thin; overscroll-behavior: contain; }
}

/* Useful links row hides when all its links are empty */
.sp-useful:not(:has(li)) { display: none; }

/* Product help centers: stripe and category tile edges use the accent color only */
.sp-stripe.sp-stripe--accent { background: var(--sp-accent); }
body:has(.sp-palette--accent) .sp-category-tiles__item .sp-category-tile { --sp-tile-color: var(--sp-accent); }
body:has(.sp-palette--accent) .sp-hero {
  background:
    repeating-radial-gradient(circle at 50% 120%, transparent 0 118px, color-mix(in srgb, var(--sp-text) 5%, transparent) 118px 119px),
    radial-gradient(ellipse 38% 70% at 8% 60%, color-mix(in srgb, var(--sp-accent) 30%, transparent), transparent 70%),
    radial-gradient(ellipse 34% 60% at 92% 70%, color-mix(in srgb, var(--sp-accent) 22%, transparent), transparent 70%),
    radial-gradient(ellipse 30% 45% at 70% 0%, color-mix(in srgb, var(--sp-accent) 14%, transparent), transparent 70%),
    linear-gradient(180deg, #FFFFFF 0%, color-mix(in srgb, var(--sp-page-bg) 70%, #fff) 100%);
}
