/*
 * PostAutoPilot Help — Help Scout Docs theme, September 2026
 * Brand reference: https://www.postautopilot.com/
 * Install: Settings > Docs Sites > PostAutoPilot > Custom Code >
 * External CSS > Choose File, then Save. Keep a copy of any existing CSS.
 * Remove the Custom Stylesheet URL to roll back.
 * Optional: set Site Description to "How can we help you take flight?"
 * This file changes presentation only; it does not change article content.
 * Outfit loads from Google Fonts; system fonts provide an offline fallback.
 */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
  --pap-navy: #03162f;
  --pap-coral: #ff415a;
  --pap-coral-hover: #e8314b;
  --pap-link: #b92340;
  --pap-muted: #596779;
  --pap-line: #e3e8ef;
  --pap-surface: #f6f8fb;
  --pap-pink: #fff1f3;
  --pap-font: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --pap-shadow: 0 12px 36px rgba(3, 22, 47, .06);
}
body {
  background: #fff;
  color: var(--pap-navy);
  font-family: var(--pap-font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
input, button, select, textarea { font-family: var(--pap-font); }
h1, h2, h3, h4, h5, h6 { color: var(--pap-navy); font-family: var(--pap-font); }
a { color: var(--pap-link); }
a:hover { color: var(--pap-navy); }
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible {
  outline: 3px solid #2166c1;
  outline-offset: 4px;
}

/* Header: preserve Help Scout's mobile collapse behavior and existing logo. */
#mainNav { margin-bottom: 0; }
#mainNav .navbar-inner {
  background: #fff;
  background-image: none;
  border: 0;
  border-bottom: 1px solid var(--pap-line);
  box-shadow: none;
}
#mainNav .container-fluid { max-width: 1160px; margin-inline: auto; }
#mainNav .brand { color: var(--pap-navy); padding: 16px 20px 16px 0; text-shadow: none; }
#mainNav .brand img { width: auto; height: 54px; max-width: 220px; object-fit: contain; }
#mainNav .nav li a {
  color: var(--pap-navy);
  font-size: 16px;
  font-weight: 500;
  text-shadow: none;
  border-radius: 999px;
}
#mainNav .nav li a:hover, #mainNav .nav li a:focus,
#mainNav .nav .active a, #mainNav .nav .active a:hover,
#mainNav .nav .active a:focus {
  background: var(--pap-pink);
  color: var(--pap-link);
  box-shadow: none;
}
#mainNav .btn-navbar {
  background: var(--pap-surface);
  border: 1px solid var(--pap-line);
  border-radius: 10px;
  padding: 12px;
  box-shadow: none;
}
#mainNav .btn-navbar .icon-bar { background: var(--pap-navy); box-shadow: none; }

/* Hero search: soft brand color, generous whitespace, pill-shaped control. */
#docsSearch {
  height: auto;
  padding: 76px 24px 72px;
  margin-bottom: 0;
  border-bottom: 1px solid var(--pap-line);
  background: radial-gradient(ellipse at 15% 10%, #fff0f3, transparent 58%),
              radial-gradient(ellipse at 90% 100%, #eaf3ff, transparent 60%), #fafbfd;
  text-align: center;
  overflow: visible;
}
#docsSearch h1 {
  max-width: 830px;
  margin: 0 auto 30px;
  color: var(--pap-navy);
  font-size: clamp(30px, 4vw, 50px);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -.035em;
  text-shadow: none;
}
#docsSearch #searchBar { width: 100%; max-width: 700px; margin: 0 auto; padding: 0; }
#searchBar { position: relative; }
#docsSearch #searchBar .search-query {
  box-sizing: border-box;
  width: 100%;
  height: 68px;
  padding: 18px 132px 18px 25px;
  background: #fff;
  color: var(--pap-navy);
  border: 1px solid #cdd5e0;
  border-radius: 999px;
  font-size: 17px;
  box-shadow: var(--pap-shadow);
}
#searchBar .search-query::placeholder { color: var(--pap-muted); opacity: 1; }
#searchBar .search-query:focus { border-color: #2166c1; }
#docsSearch #searchBar button {
  box-sizing: border-box;
  position: absolute;
  inset: 7px 7px auto auto;
  width: 112px;
  height: 54px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  background: var(--pap-coral);
  /* Navy on coral improves text contrast over the marketing site's white. */
  color: var(--pap-navy);
  font-size: 17px;
  font-weight: 600;
  text-shadow: none;
  box-shadow: none;
}
#docsSearch #searchBar button:hover { background: var(--pap-coral-hover); }
#serp-dd {
  box-sizing: border-box;
  max-width: 100%;
  border: 1px solid var(--pap-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(3, 22, 47, .15);
  text-align: left;
  z-index: 100;
}
#serp-dd .result a { color: var(--pap-navy); }
#serp-dd .result a:hover, #serp-dd .result > li.active { background: var(--pap-pink); color: var(--pap-link); }

/* Homepage collections and categories. */
#contentArea { max-width: 1160px; margin-inline: auto; padding-top: 44px; }
.category-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.category-list::before, .category-list::after { display: none; }
.category-list .category {
  box-sizing: border-box;
  float: none;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: auto;
  min-width: 0;
  min-height: 210px;
  margin: 0;
  padding: 30px;
  border: 1px solid var(--pap-line);
  border-top: 4px solid var(--pap-coral);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--pap-shadow);
  text-align: left;
  text-decoration: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.category-list .category:nth-child(3n + 2) { border-top-color: #2a85ff; }
.category-list .category:nth-child(3n + 3) { border-top-color: #1fdab0; }
.category-list .category:hover {
  background: #fff;
  border-color: var(--pap-coral);
  box-shadow: 0 16px 38px rgba(3, 22, 47, .10);
}
.category-list .category h3 { color: var(--pap-navy); font-size: 24px; font-weight: 600; line-height: 1.25; margin: 0 0 12px; }
.category-list .category p { color: var(--pap-muted); font-size: 16px; line-height: 1.55; }
.category-list .category p:empty { display: none; }
.category-list .category .article-count,
.category-list .category:hover .article-count {
  color: var(--pap-link);
  font-size: 14px;
  font-weight: 500;
  margin: auto 0 0;
  padding-top: 20px;
}
.collection, .most-pop-articles {
  background: #fff;
  border: 1px solid var(--pap-line);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--pap-shadow);
}
.collection a, .most-pop-articles .popArticles a,
.most-pop-articles .popArticles a:hover span { color: var(--pap-link); }

/* Category listings and article surfaces. */
#main-content .contentWrapper {
  background: #fff;
  border: 1px solid var(--pap-line);
  border-radius: 22px;
  padding: 36px;
  box-shadow: var(--pap-shadow);
}
#categoryHead h1, #fullArticle h1 {
  color: var(--pap-navy);
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.18;
  letter-spacing: -.025em;
  font-weight: 600;
  overflow-wrap: anywhere;
}
#categoryHead .sort { position: static; margin: 16px 0; }
#sortBy { max-width: 100%; border: 1px solid #cdd5e0; border-radius: 8px; color: var(--pap-navy); background: #fff; }
.articleList li { border-bottom: 1px solid var(--pap-line); }
.articleList li:last-child { border-bottom: 0; }
.contentWrapper .articleList li a { display: block; padding-top: 15px; padding-bottom: 15px; color: var(--pap-navy); font-size: 17px; line-height: 1.5; }
.contentWrapper .articleList li a:hover { color: var(--pap-link); }
#fullArticle, #fullArticle p, #fullArticle ul, #fullArticle ol,
#fullArticle li, #fullArticle div, #fullArticle blockquote,
#fullArticle dd, #fullArticle table { color: #354356; line-height: 1.75; }
#fullArticle { font-size: 17px; overflow-wrap: anywhere; }
#fullArticle h2 { font-size: 27px; line-height: 1.25; margin-top: 32px; }
#fullArticle h3 { font-size: 22px; line-height: 1.3; }
.contentWrapper a, #fullArticle a, #fullArticle strong a, #fullArticle a strong { color: var(--pap-link); }
#fullArticle a { text-decoration: underline; text-underline-offset: 3px; }
#fullArticle img, #fullArticle video { max-width: 100%; height: auto; border-radius: 12px; }
#fullArticle iframe { max-width: 100%; }
#fullArticle pre { overflow-x: auto; border: 1px solid var(--pap-line); border-radius: 12px; padding: 18px; background: var(--pap-surface); }
#fullArticle code { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
#fullArticle blockquote { border-left: 4px solid var(--pap-coral); padding: 16px 20px; background: var(--pap-pink); border-radius: 0 12px 12px 0; }
#fullArticle table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; }
#fullArticle th, #fullArticle td { padding: 12px; border: 1px solid var(--pap-line); }
#fullArticle th { background: var(--pap-surface); color: var(--pap-navy); }
.articleFoot { border-top: 1px solid var(--pap-line); padding-top: 20px; color: var(--pap-muted); }

/* Sidebar search deliberately retains the icon-only native button. */
#sidebar h3 { color: var(--pap-navy); font-weight: 600; font-size: 18px; }
#sidebar .nav-list a { color: var(--pap-muted); padding: 12px 14px; border-radius: 10px; text-shadow: none; }
#sidebar .nav-list .active a, #sidebar .nav-list a:hover,
#sidebar .nav-list .active a:hover { background: var(--pap-pink); color: var(--pap-link); text-shadow: none; }
#sidebar #searchBar .search-query { box-sizing: border-box; width: 100%; height: 48px; padding: 12px 48px 12px 14px; border: 1px solid #cdd5e0; border-radius: 12px; background: #fff; color: var(--pap-navy); box-shadow: none; }
#sidebar #searchBar button { top: 2px; right: 2px; width: 44px; height: 44px; border: 0; border-radius: 10px; background: var(--pap-surface); color: var(--pap-navy); text-shadow: none; box-shadow: none; }
#contentArea footer { margin-top: 56px; padding: 28px 0; border-top: 1px solid var(--pap-line); color: var(--pap-muted); font-size: 14px; }
#contentArea footer a { color: var(--pap-navy); }

@media (max-width: 900px) {
  .category-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #main-content .contentWrapper { padding: 26px; }
}
@media (max-width: 767px) {
  #mainNav .brand { padding-left: 12px; }
  #mainNav .brand img { height: 44px; }
  #docsSearch { padding: 44px 18px; }
  #docsSearch h1 { font-size: 32px; margin-bottom: 24px; }
  #docsSearch #searchBar .search-query { height: 60px; padding-left: 18px; padding-right: 70px; font-size: 16px; }
  #docsSearch #searchBar button { width: 48px; height: 48px; top: 6px; right: 6px; padding: 0; }
  #contentArea { padding: 28px 18px 0; }
  .category-list { grid-template-columns: 1fr; gap: 16px; }
  .category-list .category { min-height: 170px; padding: 24px; }
  #main-content .contentWrapper { padding: 24px 20px; border-radius: 16px; }
  #sidebar { margin-top: 28px; }
  #fullArticle { font-size: 16px; }
  #contentArea footer { margin-top: 32px; }
}
@media (prefers-reduced-motion: reduce) { .category-list .category { transition: none; } }
@media print {
  #mainNav, #docsSearch, #sidebar { display: none; }
  #contentArea, #main-content { width: 100%; margin: 0; padding: 0; }
  #main-content .contentWrapper { border: 0; box-shadow: none; padding: 0; }
}
