/*
 * Recon Help Center (help.recon.bot), loaded by Help Scout Docs as the site's
 * custom stylesheet. Tokens follow DESIGN.md: warm paper page, white cards,
 * cobalt for actions only, ink text, Instrument Sans.
 *
 * Help Scout's markup is fixed (Bootstrap 2 era: #mainNav, #docsSearch,
 * .category-list, #fullArticle, #sidebar), so every rule targets those hooks.
 * Preview changes with help-docs/preview-css.sh before deploying.
 */
@import url("https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap");

:root {
  --paper: #fbfaf6;
  --card: #ffffff;
  --pale: #eef1fb;
  --ink: #182125;
  --slate: #536169;
  --line: #dce0e5;
  --cobalt: #2449ec;
  --cobalt-dim: #1c37b8;
  --searchlight: #e0e7ff;
  --radius: 12px;
  --rail: 1140px;
  --font: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html, body { background: var(--paper); }
body {
  font-family: var(--font);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, input, button, select { font-family: var(--font); }
a { color: var(--cobalt); }
a:hover, a:focus { color: var(--cobalt-dim); }
:focus-visible { outline: 2px solid var(--cobalt); outline-offset: 2px; }

.container-fluid { max-width: var(--rail); padding-left: 24px; padding-right: 24px; }

/* --- Header ------------------------------------------------------------ */

#mainNav.navbar .navbar-inner {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  padding: 0;
  min-height: 0;
}
#mainNav .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.navbar .brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  margin: 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.navbar .brand img { width: 36px; height: 36px; max-height: none; border-radius: 9px; }
.navbar .brand::after { content: "Recon Help Center"; }
.navbar .brand:hover { color: var(--ink); text-decoration: none; }
.navbar .brand { float: none; margin-right: auto; }
.navbar .btn-navbar { display: none; }
.navbar .nav-collapse, .navbar .nav-collapse.collapse { height: auto; overflow: visible; float: none; }
.navbar .nav { margin: 0; padding: 0; float: none; display: flex; align-items: center; position: static; top: auto; }
#mainNav nav, .navbar .nav > li { margin: 0; padding: 0; float: none; }
.navbar .nav-collapse { display: flex; align-items: center; }
#contactMobile { display: none; }
.navbar .nav > li > a,
.navbar .nav > li > a:focus {
  padding: 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  line-height: 1.2;
  text-shadow: none;
  background: var(--card);
  display: block;
}
.navbar .nav > li > a:hover { border-color: var(--cobalt); color: var(--cobalt); }

/* --- Search hero (home) ------------------------------------------------ */

#docsSearch {
  background: var(--pale);
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 64px 24px 72px;
  margin-bottom: 0;
}
#docsSearch h1 {
  font-size: 44px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.035em;
  color: var(--ink);
  max-width: 760px;
  margin: 0 auto 12px;
  text-shadow: none;
}
.rh-sub { max-width: 560px; margin: 0 auto 28px; text-align: center; color: var(--slate); font-size: 18px; line-height: 1.5; }
#searchBar { max-width: 640px; margin: 0 auto; padding: 0; position: relative; display: flex; align-items: center; }
#searchBar .search-query {
  width: 100%;
  height: 56px;
  box-sizing: border-box;
  margin: 0;
  padding: 0 128px 0 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 17px;
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(24, 33, 37, 0.06);
}
#searchBar .search-query:focus { border-color: var(--cobalt); box-shadow: 0 0 0 3px var(--searchlight); }
#searchBar button {
  position: static;
  flex: none;
  margin: 0 0 0 -112px;
  height: 44px;
  padding: 0 22px;
  border: 0;
  border-radius: 9px;
  background: var(--cobalt);
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  text-shadow: none;
  box-shadow: none;
}
#searchBar button:hover { background: var(--cobalt-dim); }
#searchBar button .icon-search { display: none; }
#serp-dd {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 12px 32px rgba(24, 33, 37, 0.12);
  overflow: hidden;
  top: 62px;
}
#serp-dd .result > li a { color: var(--ink); padding: 12px 16px; }
#serp-dd .result > li a:hover, #serp-dd .result > li.active { background: var(--pale); }

/* --- Category cards (home) --------------------------------------------- */

#contentArea { padding-top: 48px; }
.category-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 56px;
  padding: 0;
}
.category-list .category {
  display: flex;
  flex-direction: column;
  float: none;
  width: auto;
  min-height: 0;
  margin: 0;
  padding: 24px;
  box-sizing: border-box;
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.category-list .category:hover {
  border-color: var(--cobalt);
  box-shadow: 0 6px 20px rgba(36, 73, 236, 0.08);
  text-decoration: none;
}
.category-list .category h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--ink);
}
.category-list .category p { margin: 0; color: var(--slate); font-size: 15px; line-height: 1.5; }
.category-list .category p:empty { display: none; }
.category-list .category .article-count {
  margin-top: auto;
  padding-top: 16px;
  color: var(--cobalt);
  font-weight: 600;
  font-size: 14px;
}
.category-list .category .article-count::after { content: " \2192"; }

/* --- Added by help-docs/site-head.html -------------------------------- */

.rh-start { margin: 0 0 40px; }
.rh-start h2, .rh-cats-title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.rh-start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.rh-start-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  transition: background 0.15s;
}
.rh-start-card strong { font-size: 16px; font-weight: 600; color: #fff; }
.rh-start-card span { font-size: 14px; line-height: 1.45; color: #bcc7cd; }
.rh-start-card:hover, .rh-start-card:focus { background: var(--cobalt); text-decoration: none; }
.rh-start-card:hover span { color: #e0e7ff; }

#fullArticle .rh-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 40px 0 0;
  padding: 20px 24px;
  border-radius: var(--radius);
  background: var(--pale);
  border: 1px solid var(--searchlight);
}
#fullArticle .rh-cta div { display: flex; flex-direction: column; gap: 2px; }
#fullArticle .rh-cta strong { font-size: 17px; }
#fullArticle .rh-cta span { font-size: 15px; line-height: 1.5; color: var(--slate); }
#fullArticle a.rh-cta-btn {
  flex: none;
  padding: 11px 18px;
  border-radius: 9px;
  background: var(--cobalt);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
}
#fullArticle a.rh-cta-btn:hover { background: var(--cobalt-dim); color: #fff; }

/* --- Category and search pages ----------------------------------------- */

#categoryHead h1, #main-content h1 {
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--ink);
}
#categoryHead .descrip { color: var(--slate); font-size: 17px; }
/* site-head.html sets a reading order; a popularity sort would undo it. */
#categoryHead .sort { display: none; }
#categoryHead .sort select {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-size: 14px;
}
.articleList { margin: 24px 0 0; }
.articleList li {
  margin: 0;
  border-bottom: 1px solid var(--line);
  list-style: none;
}
.articleList li:first-child { border-top: 1px solid var(--line); }
.articleList li a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 4px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 500;
}
.articleList li a:hover { color: var(--cobalt); text-decoration: none; }
.articleList li a i { color: var(--slate); }
.contentWrapper {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 40px 48px;
  box-shadow: none;
}

/* --- Article ----------------------------------------------------------- */

#fullArticle { font-size: 17px; line-height: 1.7; color: var(--ink); max-width: 720px; }
#fullArticle h1.title {
  font-size: 36px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 20px;
}
#fullArticle h2 {
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 44px 0 12px;
  padding-top: 0;
  border: 0;
}
#fullArticle h3 { font-size: 19px; font-weight: 600; margin: 28px 0 8px; }
#fullArticle p, #fullArticle li, #fullArticle td, #fullArticle ul, #fullArticle ol { color: #2b373c; font-size: 17px; line-height: 1.7; }
#fullArticle td, #fullArticle th { font-size: 15px; line-height: 1.5; }
#fullArticle strong { color: var(--ink); font-weight: 600; }
#fullArticle a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
#fullArticle ol, #fullArticle ul { margin: 0 0 20px 24px; }
#fullArticle li { margin-bottom: 8px; padding-left: 4px; }
#fullArticle img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px 0 28px;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(24, 33, 37, 0.06);
}
#fullArticle code {
  font-size: 0.88em;
  padding: 2px 6px;
  border-radius: 5px;
  border: 0;
  background: var(--pale);
  color: var(--ink);
}
#fullArticle pre { background: var(--pale); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }
#fullArticle pre code { padding: 0; background: none; }
#fullArticle table { width: 100%; border-collapse: collapse; margin: 20px 0 28px; font-size: 15px; }
#fullArticle th, #fullArticle td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
#fullArticle th { background: var(--pale); font-weight: 600; }
#fullArticle blockquote { border-left: 3px solid var(--cobalt); background: var(--pale); padding: 12px 16px; border-radius: 0 8px 8px 0; color: var(--ink); }
.printArticle { color: var(--slate); }

/* Rating and footer of an article */
.articleRatings {
  margin-top: 40px;
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font-weight: 600;
}
.articleFoot { border-top: 1px solid var(--line); margin-top: 32px; padding-top: 20px; color: var(--slate); }
.articleFoot .icon-contact { display: none; }
.articleFoot p.help, .articleFoot .lu { font-size: 15px; color: var(--slate); }

/* --- Sidebar ----------------------------------------------------------- */

#sidebar #searchBar.sm .search-query { height: 44px; padding: 0 48px 0 14px; font-size: 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); box-shadow: none; }
#sidebar form#searchBar.sm button { margin-left: -42px; height: 36px; width: 36px; padding: 0; }
#sidebar form#searchBar.sm button .icon-search { display: inline-block; color: #fff; }
#sidebar h3 {
  margin: 28px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate);
  text-transform: none;
  letter-spacing: 0;
}
#sidebar .nav-list { margin: 0; }
#sidebar .nav-list li a {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  margin: 0 0 2px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  text-shadow: none;
}
#sidebar .nav-list li a:hover { background: var(--pale); color: var(--ink); }
#sidebar .nav-list li.active a,
#sidebar .nav-list li.active a:hover { background: var(--searchlight); color: var(--cobalt-dim); font-weight: 600; }
#sidebar .nav-list .icon-arrow { display: none; }

/* --- Footer ------------------------------------------------------------ */

footer, footer.center { padding: 32px 0 48px; color: var(--slate); font-size: 14px; }
footer p, footer p span, footer a { color: var(--slate); }
footer a { text-decoration: underline; text-underline-offset: 2px; }

/* --- Small screens ----------------------------------------------------- */

@media (max-width: 1000px) {
  .category-list, .rh-start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .contentWrapper { padding: 28px 24px; }
}
@media (max-width: 600px) {
  #mainNav .container-fluid { height: 60px; padding-left: 16px; padding-right: 16px; }
  #contentArea.container-fluid { padding-left: 16px; padding-right: 16px; }
  #searchBar .search-query { padding-right: 64px; }
  #searchBar button { margin-left: -54px; width: 48px; padding: 0; }
  #searchBar button span { display: none; }
  #searchBar button .icon-search { display: inline-block; color: #fff; font-size: 18px; }
  .navbar .brand { font-size: 17px; }
  .navbar .btn-navbar { display: none; }
  .nav-collapse, .nav-collapse.collapse { height: auto; overflow: visible; display: block; }
  #contact { display: none; }
  #contactMobile { display: block; }
  #docsSearch { padding: 40px 20px 48px; }
  #docsSearch h1 { font-size: 32px; }
  .category-list, .rh-start-grid { grid-template-columns: 1fr; gap: 12px; }
  .rh-sub { font-size: 16px; }
  #fullArticle .rh-cta { flex-direction: column; align-items: flex-start; }
  .category-list .category { padding: 20px; }
  #fullArticle, #fullArticle p, #fullArticle li { font-size: 16px; }
  #fullArticle h1.title { font-size: 28px; }
  .contentWrapper { padding: 24px 18px; border-radius: 10px; }
}
