:root {
  --bp-navy: #262f61;
  --bp-navy-dark: #111836;
  --bp-orange: #ff6900;
  --bp-green: #00b67a;
  --bp-ink: #0f172a;
  --bp-body: #475569;
  --bp-muted: #64748b;
  --bp-line: #e2e8f0;
  --bp-tint: #f6faff;
}

body {
  background: #fff;
  color: var(--bp-body);
  font-family: Roboto, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

/* Help Scout caps these at 1080px; the stylesheet this one replaces unlocked them. */
#contentArea,
.container-fluid {
  max-width: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 0 !important;
}
footer {
  max-width: none;
  width: auto;
  margin: 0;
}

h1, h2, h3, h4, h5 { color: var(--bp-ink); font-weight: 500; }
a { color: var(--bp-navy); }
a:hover { color: var(--bp-orange); }

/* The three page frames line up with the chrome above them: 1440 and a 48px
   gutter, the same figures .bp-inner uses. */
#docsSearch > *,
.category-heading,
.category-container,
#contentArea > .row-fluid,
#contentArea > .container,
.contentWrapper > .articleList,
.support-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 48px;
  padding-right: 48px;
  box-sizing: border-box;
}

/* ---------- the search band ---------- */

#docsSearch {
  padding: 56px 0 !important;
  background: var(--bp-tint) !important;
  border-bottom: 1px solid var(--bp-line);
  text-align: center;
}
/* Their own h1 rule carries a four-value margin, which beats the shared
   margin-left/right:auto above and leaves the heading hard against the gutter. */
#docsSearch h1 {
  margin: 0 auto 24px !important;
  color: #020617;
  font-size: 40px;
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.5px;
}

/* Help Scout positions the submit button absolutely, so the field makes room
   for it rather than the form laying both out. */
form#searchBar {
  position: relative;
  display: block;
  max-width: 640px;
  margin: 0 auto;
  padding: 0 !important;
}
form#searchBar .search-query {
  width: 100%;
  height: 56px;
  margin: 0;
  padding: 0 136px 0 24px;
  border: 1px solid #cbd5e1;
  border-radius: 9999px;
  background: #fff;
  color: var(--bp-ink);
  font-size: 16px;
  box-shadow: none;
}
form#searchBar .search-query:focus {
  border-color: var(--bp-navy);
  box-shadow: 0 0 0 3px rgba(38, 47, 97, 0.15);
  outline: 0;
}
form#searchBar button {
  position: absolute !important;
  top: 5px !important;
  right: 5px !important;
  left: auto !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 24px;
  border: 0;
  border-radius: 9999px;
  background: var(--bp-navy);
  color: #fff;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  text-shadow: none;
}
form#searchBar button:hover { background: #1c2450; }
form#searchBar button i { margin: 0; line-height: 1; }

/* ---------- the landing's categories ---------- */

/* Full bleed: capping the section left white gutters beside its tint. */
.category-list {
  max-width: none;
  padding: 56px 0 64px;
  background: var(--bp-tint);
}

/* The grid was the replaced stylesheet's too — the container is a bare div,
   and Help Scout's own rules outrank a bare class here. */
#contentArea .category-container {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  justify-items: stretch;
}
.category-heading {
  margin: 0 auto 28px !important;
  color: #020617;
  font-size: 30px;
  font-weight: 500;
  text-align: left;
}
#contentArea > hr.sep { display: none; }

#contentArea a.category {
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  box-sizing: border-box;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  padding: 28px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  transition: border-color .15s, box-shadow .15s;
}
#contentArea a.category:hover {
  border-color: #cbd5e1;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}
#contentArea a.category .category-img { margin: 0 0 16px; max-height: 44px; width: auto; }
#contentArea a.category h3 {
  margin: 0;
  color: var(--bp-ink);
  font-size: 20px;
  line-height: 1.35;
  font-weight: 500;
}
#contentArea a.category .article-count {
  margin: 10px 0 0;
  color: var(--bp-muted);
  font-size: 14px;
}

/* ---------- popular articles, article lists ---------- */

/* Their own rule centres this section in an 800px column, so it floats away
   from the 1440 everything above it sits in. */
#contentArea > .most-pop-articles {
  max-width: 1440px;
  margin: 0 auto;
  padding: 56px 48px 64px;
}
.most-pop-articles h2 {
  margin: 0 0 24px;
  color: #020617;
  font-size: 30px;
  text-align: left;
}
.most-pop-articles .popArticles { column-gap: 56px; }
.most-pop-articles .popArticles li {
  break-inside: avoid;
  border-bottom: 1px solid var(--bp-line);
  list-style: none;
}
.most-pop-articles .popArticles li a {
  display: inline-block;
  padding: 14px 0;
  color: var(--bp-ink);
  font-size: 16px;
}
.most-pop-articles .popArticles li a:hover { color: var(--bp-navy); }

.contentWrapper h2, .articleList h2 { color: #020617; font-size: 30px; }
.articleList li, ul.article-list li { border-bottom: 1px solid var(--bp-line); }
.articleList li a, ul.article-list li a {
  display: block;
  padding: 16px 0;
  color: var(--bp-ink);
  font-size: 17px;
  font-weight: 500;
}
.articleList li a:hover, ul.article-list li a:hover { color: var(--bp-navy); }

/* ---------- the article ---------- */

#contentArea > .row-fluid { padding-top: 48px; padding-bottom: 64px; }

#main-content .contentWrapper { max-width: none; }
#fullArticle {
  max-width: 820px;
  color: var(--bp-body);
  font-size: 17px;
  line-height: 1.75;
}
#fullArticle h1 {
  margin: 0 0 20px;
  color: #020617;
  font-size: 36px;
  line-height: 1.2;
  letter-spacing: -0.25px;
}
#fullArticle h2 { margin: 40px 0 12px; color: var(--bp-navy); font-size: 24px; line-height: 1.35; }
#fullArticle h3, #fullArticle h4 { margin: 32px 0 8px; color: var(--bp-ink); font-size: 19px; }
#fullArticle p { margin: 0 0 20px; }
#fullArticle a { text-decoration: underline; text-underline-offset: 2px; text-decoration-color: #cbd5e1; }
#fullArticle a:hover { text-decoration-color: currentColor; }
#fullArticle strong, #fullArticle b { color: var(--bp-ink); font-weight: 500; }
#fullArticle ul, #fullArticle ol { margin: 0 0 20px; padding-left: 24px; }
#fullArticle li { margin-bottom: 8px; }
#fullArticle li::marker { color: var(--bp-orange); }
#fullArticle img { max-width: 100%; height: auto; border-radius: 6px; }
#fullArticle hr { margin: 32px 0; border: 0; border-top: 1px solid var(--bp-line); }
#fullArticle blockquote {
  margin: 0 0 20px;
  padding: 4px 0 4px 20px;
  border-left: 3px solid var(--bp-line);
  background: none;
  font-size: inherit;
}
#fullArticle table {
  width: 100%;
  margin: 24px 0;
  border: 1px solid var(--bp-line);
  border-radius: 6px;
  border-collapse: collapse;
  font-size: 15px;
}
#fullArticle th, #fullArticle td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--bp-line);
  text-align: left;
  vertical-align: top;
}
#fullArticle th { background: #f5f7fa; color: var(--bp-ink); font-weight: 500; }
#fullArticle tr:last-child td { border-bottom: 0; }

.articleRatings {
  max-width: 820px;
  margin-top: 40px;
  padding: 24px 28px;
  border: 1px solid var(--bp-line);
  border-radius: 8px;
  background: #f6faff;
}
.articleFoot { max-width: 820px; color: var(--bp-muted); font-size: 14px; }

/* ---------- the article sidebar ---------- */

#sidebar h3 {
  margin: 28px 0 8px;
  color: var(--bp-muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
}
#sidebar form#searchBar { max-width: none; }
#sidebar form#searchBar .search-query { height: 44px; padding: 0 48px 0 18px; font-size: 15px; }
#sidebar form#searchBar button {
  top: 4px !important;
  right: 4px !important;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}
#sidebar form#searchBar button span { display: none; }
#sidebar .nav-list { margin: 0; padding: 0; list-style: none; }
#sidebar .nav-list li { margin: 0; }
#sidebar .nav-list li a {
  display: block;
  padding: 9px 12px;
  border-radius: 6px;
  color: var(--bp-body);
  font-size: 15px;
  line-height: 1.45;
  text-shadow: none;
}
#sidebar .nav-list li a:hover { background: #f5f7fa; color: var(--bp-ink); }
#sidebar .nav-list li.active > a {
  background: #f5f7fa;
  box-shadow: inset 2px 0 0 var(--bp-navy);
  color: var(--bp-ink);
  font-weight: 500;
}

/* ---------- breadcrumbs, misc ---------- */

.breadcrumbs, #breadcrumbs { margin-bottom: 20px; color: var(--bp-muted); font-size: 14px; }
.breadcrumbs a, #breadcrumbs a { color: var(--bp-muted); }
.breadcrumbs a:hover, #breadcrumbs a:hover { color: var(--bp-ink); text-decoration: underline; }

/* Help Scout draws its own footer block on article pages; ours replaces the
   whole <footer>, so anything left inside it must not add a second frame. */
.support-footer { background: none; padding: 0; }

@media (max-width: 1279px) {
  #docsSearch > *,
  .category-heading,
  .category-container,
  #contentArea > .row-fluid,
  #contentArea > .container,
  .contentWrapper > .articleList,
  .support-container { padding-left: 32px; padding-right: 32px; }
  #contentArea > .most-pop-articles { padding-left: 32px; padding-right: 32px; }
  #contentArea .category-container { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 767px) {
  #docsSearch > *,
  .category-heading,
  .category-container,
  #contentArea > .row-fluid,
  #contentArea > .container,
  .contentWrapper > .articleList,
  .support-container { padding-left: 16px; padding-right: 16px; }
  #contentArea > .most-pop-articles { padding: 40px 16px 48px; }
  .most-pop-articles .popArticles { columns: 1; }
  #contentArea .category-container { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  #docsSearch { padding: 36px 0 !important; }
  #docsSearch h1 { font-size: 28px; }
  form#searchBar .search-query { height: 48px; padding: 0 56px 0 18px; }
  form#searchBar button {
    top: 4px !important;
    right: 4px !important;
    width: 40px;
    height: 40px;
    padding: 0;
    border-radius: 50%;
  }
  form#searchBar button span { display: none; }
  #fullArticle h1 { font-size: 28px; }
  #fullArticle { font-size: 16px; }
}