/* AliveIt Help Center — custom styles for Help Scout Docs
   Upload in: Docs > [site] > Custom Code > Custom Stylesheet URL (upload file) */

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

:root {
  --ai-orange: #FF6A13;       /* brand accent: match to logo hex */
  --ai-orange-soft: #FFF3EB;  /* callout background */
  --ai-text: #1F2430;
  --ai-muted: #6B7280;
  --ai-border: #ECEEF2;
  --ai-bg: #F7F8FA;
}

/* Base */
body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ai-text);
  background: var(--ai-bg);
}

a { color: var(--ai-orange); }
a:hover, a:focus { color: #E25500; }

/* Header */
#mainNav {
  background: #fff;
  border-bottom: 1px solid var(--ai-border);
}
#mainNav .nav li a,
.navbar .nav > li > a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ai-text);
}
#mainNav .nav li a:hover,
.navbar .nav > li > a:hover,
.navbar .nav > li.active > a {
  color: var(--ai-orange);
}

/* Sidebar */
#sidebar h3 {
  font-size: 12px;
  letter-spacing: .08em;
  color: var(--ai-muted);
}
#sidebar .nav-list a {
  font-size: 15px;
  color: var(--ai-text);
}
#sidebar .nav-list .active a,
#sidebar .nav-list a:hover {
  color: var(--ai-orange);
}
#searchBar .search-query,
#sidebar form .search-query {
  border-radius: 10px;
  border-color: var(--ai-border);
}

/* Article container */
#contentArea .contentWrapper {
  border: 1px solid var(--ai-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(17, 24, 39, .04);
  padding: 40px 48px;
}

/* Article typography */
#fullArticle {
  font-size: 16px;
  line-height: 1.7;
  color: var(--ai-text);
}
#fullArticle .title,
#fullArticle h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 32px;
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 16px;
}
#fullArticle h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 22px;
  font-weight: 700;
  margin: 40px 0 12px;
}
#fullArticle h3 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 8px;
}
#fullArticle p,
#fullArticle li {
  font-size: 16px;
  line-height: 1.7;
}
#fullArticle ol,
#fullArticle ul {
  padding-left: 22px;
}
#fullArticle li { margin-bottom: 8px; }
#fullArticle strong { font-weight: 600; }

/* Numbered list: orange numbers */
#fullArticle ol li::marker {
  color: var(--ai-orange);
  font-weight: 700;
}

/* Screenshots */
#fullArticle img {
  border: 1px solid var(--ai-border);
  border-radius: 12px;
  box-shadow: 0 6px 24px rgba(17, 24, 39, .06);
  margin: 12px 0 20px;
  /* Limit tall (phone) screenshots; wide ones are limited by the column width */
  max-width: 100% !important;
  max-height: 520px !important;
  width: auto !important;
  height: auto !important;
}

/* Callouts: all colors use brand style */
#fullArticle .callout,
#fullArticle .callout-green,
#fullArticle .callout-blue,
#fullArticle .callout-yellow {
  background: var(--ai-orange-soft);
  border: none;
  border-left: 4px solid var(--ai-orange);
  border-radius: 10px;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--ai-text);
}
#fullArticle .callout-red {
  border-radius: 10px;
  border-left-width: 4px;
}
#fullArticle [class^="callout"] p:last-child { margin-bottom: 0; }
#fullArticle [class^="callout"],
#fullArticle [class^="callout"] p,
#fullArticle [class^="callout"] li {
  font-size: 16px;
  line-height: 1.7;
}

/* Inline code */
#fullArticle code {
  background: #F2F3F5;
  color: var(--ai-text);
  border: none;
  border-radius: 6px;
  padding: 2px 6px;
}

/* Hide "View in Help Scout" button for logged-in editors? Leave visible by default */

/* Feedback & related */
.articleFoot,
.articleRatings {
  border-radius: 12px;
}
.related h3 {
  font-size: 16px;
  font-weight: 700;
}
.related ul li a { color: var(--ai-text); }
.related ul li a:hover { color: var(--ai-orange); }

/* Buttons */
.btn-primary,
#contactModal .btn-primary {
  background: var(--ai-orange);
  border-color: var(--ai-orange);
  border-radius: 10px;
}

/* ===== Homepage ===== */

/* Hero: replace default headline */
#docsSearch {
  background: linear-gradient(180deg, #FFF6F0 0%, var(--ai-bg) 100%);
  border-bottom: none;
  padding: 40px 0 28px;
  margin-bottom: 0;
}
#docsSearch ~ .container,
#docsSearch + .container,
#docsSearch ~ section,
#docsSearch ~ #contentArea {
  padding-top: 8px;
  margin-top: 0;
}
.collection-category,
section.collection-category {
  margin-top: 0;
}
#docsSearch h1 {
  font-size: 0;            /* hides "Common questions and support documentation" */
  margin-bottom: 28px;
}
#docsSearch h1::after {
  content: "Hi! How can we help?";
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--ai-text);
}

/* Search */
#searchBar .search-query {
  height: 56px;
  font-size: 17px;
  border: 1px solid var(--ai-border);
  border-radius: 14px 0 0 14px;
  box-shadow: 0 4px 20px rgba(17, 24, 39, .05);
  padding-left: 20px;
}
#searchBar button {
  height: 56px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  font-size: 17px;
  background: var(--ai-orange);
  border: none;
  border-radius: 0 14px 14px 0;
  text-shadow: none;
  padding: 0 28px;
}
#searchBar button:hover { background: #E25500; }
#searchBar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
#searchBar button i,
#searchBar button [class^="icon-"],
#searchBar button svg {
  margin: 0;
  line-height: 1;
  vertical-align: middle;
}

/* Links inside articles: always visible */
#fullArticle a,
#fullArticle a strong,
#fullArticle a b {
  color: var(--ai-orange);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
#fullArticle a:hover,
#fullArticle a:hover strong,
#fullArticle a:hover b {
  color: #E25500;
  text-decoration-thickness: 2px;
}

/* Collection and category cards */
.collection-category,
.category-list .category,
.most-pop-articles {
  background: #fff;
  border: 1px solid var(--ai-border);
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(17, 24, 39, .04);
  transition: box-shadow .2s, transform .2s;
}
.category-list .category:hover {
  box-shadow: 0 8px 28px rgba(255, 106, 19, .12);
  transform: translateY(-2px);
}
.collection-category h2,
.category-list h3,
.most-pop-articles h2 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 700;
  color: var(--ai-text);
}
.category-list .category p,
.collection-category .description {
  color: var(--ai-muted);
}
.popArticles a,
.most-pop-articles a {
  color: var(--ai-text);
  font-weight: 500;
}
.popArticles a:hover,
.most-pop-articles a:hover { color: var(--ai-orange); }
.popArticles a i,
.most-pop-articles a i { color: var(--ai-orange); }

/* Collection icons (matched by collection URL slug) */
a[href*="/collection/"][href$="-sellers"]::before,
a[href*="/collection/"][href$="-customers"]::before,
a[href*="/collection/"][href$="-academy"]::before {
  content: "";
  display: block;
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background-color: var(--ai-orange-soft);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 28px 28px;
}
#mainNav a[href*="/collection/"]::before,
#sidebar a[href*="/collection/"]::before,
.breadcrumb a[href*="/collection/"]::before,
ul ~ a[href*="/collection/"]::before,
ul ~ * a[href*="/collection/"]::before,
a.browse::before,
.browse a::before {
  display: none !important;
}
a[href*="/collection/"][href$="-sellers"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 21l18 0'/%3E%3Cpath d='M3 7v1a3 3 0 0 0 6 0v-1m0 1a3 3 0 0 0 6 0v-1m0 1a3 3 0 0 0 6 0v-1h-18l2 -4h14l2 4'/%3E%3Cpath d='M5 21l0 -10.15'/%3E%3Cpath d='M19 21l0 -10.15'/%3E%3Cpath d='M9 21v-4a2 2 0 0 1 2 -2h2a2 2 0 0 1 2 2v4'/%3E%3C/svg%3E");
}
a[href*="/collection/"][href$="-customers"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 5a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v14a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-14z'/%3E%3Cpath d='M11 4h2'/%3E%3Cpath d='M12 17v.01'/%3E%3C/svg%3E");
}
a[href*="/collection/"][href$="-academy"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FF6A13' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 9l-10 -4l-10 4l10 4l10 -4v6'/%3E%3Cpath d='M6 10.6v5.4a6 3 0 0 0 12 0v-5.4'/%3E%3C/svg%3E");
}

/* Footer */
footer, footer a { color: var(--ai-muted); }

/* Mobile */
@media (max-width: 768px) {
  /* Sidebar (search + categories) above the content on mobile */
  *:has(> #sidebar) {
    display: flex;
    flex-direction: column;
  }
  #sidebar {
    order: -1;
    width: 100%;
    margin-bottom: 16px;
  }
  #sidebar h3 { margin: 16px 0 8px; }
  #sidebar .nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
  }
  #sidebar .nav-list li {
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
  }
  #sidebar .nav-list li a {
    display: inline-block;
    margin: 0 !important;
    padding: 6px 14px !important;
    font-size: 14px;
    background: #fff;
    border: 1px solid var(--ai-border);
    border-radius: 999px;
    white-space: nowrap;
  }
  #sidebar .nav-list .active a {
    background: var(--ai-orange-soft);
    border-color: var(--ai-orange);
    color: var(--ai-orange);
  }
  #sidebar .nav-list a .icon-arrow,
  #sidebar .nav-list a i,
  #sidebar .nav-list a [class*="icon"] { display: none !important; }
  #sidebar .nav-list a::before,
  #sidebar .nav-list a::after { content: none !important; display: none !important; }
  #searchBar .search-query { height: 52px; font-size: 16px; }
  #searchBar button { height: 52px; padding: 0 18px; }
  #contentArea .contentWrapper { padding: 24px 20px; }
  #fullArticle .title, #fullArticle h1 { font-size: 26px; }
  #fullArticle h2 { font-size: 20px; }
}

/* ---------- Screenshot zoom (needs the script in Custom Code > <head>) ---------- */
#fullArticle img.ai-zoomable { cursor: zoom-in; transition: box-shadow .2s; }
#fullArticle img.ai-zoomable:hover { box-shadow: 0 8px 28px rgba(255, 106, 19, .18); }
.ai-lightbox {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  background: rgba(17, 20, 28, .82);
  opacity: 0; transition: opacity .2s;
  cursor: zoom-out;
}
.ai-lightbox.is-open { opacity: 1; }
.ai-lightbox img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .35);
  transform: scale(.96); transition: transform .2s;
}
.ai-lightbox.is-open img { transform: scale(1); }
.ai-lightbox-close {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px;
  border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .14);
  color: #fff; font-size: 26px; line-height: 44px;
  cursor: pointer;
}
.ai-lightbox-close:hover, .ai-lightbox-close:focus { background: var(--ai-orange); outline: none; }
body.ai-noscroll { overflow: hidden; }
@media (max-width: 768px) { .ai-lightbox { padding: 12px; } }

/* ---------- Homepage: articles grouped by category (built by the <head> script) ---------- */
.ai-cat-group { margin: 0 0 18px; }
.ai-cat-group:last-child { margin-bottom: 4px; }
.ai-cat-group + .ai-cat-group { padding-top: 16px; border-top: 1px solid var(--ai-border); }
.ai-cat-title {
  display: block;
  margin: 0 0 8px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ai-muted) !important;
  text-decoration: none !important;
}
.ai-cat-title:hover { color: var(--ai-orange) !important; }
.ai-cat-title::before { display: none !important; }
.collection-category ul.ai-cat-list { margin: 0; padding: 0; list-style: none; }
.collection-category ul.ai-cat-list li { margin: 0; }
