/* =============================================================
   Help Scout Docs — Neue Haas Grotesk (Adobe Fonts)
   Typography · Layout · Image Fixes · Component Polish
   v2 — desktop + mobile improvements
   ============================================================= */

/* ── Font + brand variables ─────────────────────────────────── */
:root {
  --hs-font-display: "neue-haas-grotesk-display", sans-serif;
  --hs-font-text:    "neue-haas-grotesk-text",    sans-serif;

  /* Brand palette (drawn from existing search-bar colours) */
  --hr-accent:        #A38A7C;
  --hr-accent-hover:  #8C7268;
  --hr-accent-light:  #D1BDB2;
  --hr-accent-xlight: #F4EFEC;
  --hr-text:          #1A1A1A;
  --hr-text-muted:    #636363;
  --hr-border:        #E6DDD9;
  --hr-bg:            #FDFCFB;
}

/* ── Smooth scrolling ───────────────────────────────────────── */
html { scroll-behavior: smooth; }

/* ── Warm background ────────────────────────────────────────── */
body { background-color: var(--hr-bg); }


/* =============================================================
   GLOBAL TYPOGRAPHY
   ============================================================= */

html, body, .article, .article-content, main,
p, li, a, blockquote, table, td, th {
  font-family: var(--hs-font-text) !important;
  font-weight: 400;
  font-style: normal;
  color: var(--hr-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

em, i {
  font-family: var(--hs-font-text) !important;
  font-weight: 400;
  font-style: italic;
}

strong, b {
  font-family: var(--hs-font-text) !important;
  font-weight: 700;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--hs-font-display) !important;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--hr-text);
}

h1 em, h1 i, h2 em, h2 i, h3 em, h3 i {
  font-family: var(--hs-font-display) !important;
  font-weight: 700;
  font-style: italic;
}

code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace !important;
}


/* =============================================================
   NAVBAR
   ============================================================= */
.navbar {
  background: #fff !important;
  border-bottom: 1px solid var(--hr-border);
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  min-height: 52px;
}

.navbar .brand,
.navbar .navbar-brand {
  font-family: var(--hs-font-display) !important;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--hr-text) !important;
  line-height: 52px;
  padding: 0 20px;
}

.navbar .nav a {
  display: block;
  padding: 0 14px;
  line-height: 52px;
  font-size: 14px;
  font-family: var(--hs-font-text) !important;
  font-weight: 500;
  color: var(--hr-text-muted) !important;
  background: transparent;
  box-shadow: none;
  transition: color 0.18s;
  text-decoration: none;
}

.navbar .nav a:hover {
  color: var(--hr-accent) !important;
  text-decoration: none;
}

/* Contact button in nav — pill style */
.navbar .nav li:last-child a {
  margin: 10px 0;
  padding: 0 16px;
  line-height: 32px;
  border: 1.5px solid var(--hr-border);
  border-radius: 20px;
  font-size: 13px;
  color: var(--hr-text) !important;
  transition: border-color 0.18s, color 0.18s;
}

.navbar .nav li:last-child a:hover {
  border-color: var(--hr-accent);
  color: var(--hr-accent) !important;
}


/* =============================================================
   LAYOUT / CONTAINER
   ============================================================= */
body #contentArea.container-fluid {
  max-width: 1280px;
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
  padding-top: 44px;
  padding-bottom: 60px;
}

body #contentArea.container-fluid > .row-fluid {
  width: 100%;
}

/* Desktop: wider content, narrower sidebar */
@media (min-width: 1024px) {
  body #main-content.span9 {
    float: right;
    width: 78% !important;
    padding-left: 48px;
    padding-right: 0;
  }

  body #sidebar.span3 {
    float: left;
    width: 22% !important;
    position: sticky;
    top: 20px;
  }
}

/* Tablet */
@media (max-width: 1023px) and (min-width: 768px) {
  body #contentArea.container-fluid {
    max-width: none;
    padding-left: 32px;
    padding-right: 32px;
    padding-top: 28px;
  }
}

/* Mobile */
@media (max-width: 767px) {
  body #contentArea.container-fluid {
    padding-left: 0px !important;
    padding-right: 0px !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  body #main-content.span9,
  body #sidebar.span3 {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    display: block !important;
    box-sizing: border-box;
  }

  body #main-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}


/* =============================================================
   ARTICLE TITLE
   ============================================================= */
h1.title {
  margin-top: 0;
  margin-bottom: 6px;
  font-size: 34px;
  line-height: 1.2em;
  font-weight: 700;
  letter-spacing: -0.025em;
}

@media (max-width: 1023px) {
  h1.title { font-size: 28px; }
}

@media (max-width: 767px) {
  h1.title { font-size: 24px; line-height: 1.3em; }
}

/* Print link */
.print-article,
a[href*="print"] {
  display: inline-block;
  margin-bottom: 28px;
  font-family: var(--hs-font-text) !important;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hr-text-muted) !important;
  text-decoration: none;
  opacity: 0.6;
  transition: opacity 0.18s;
}

.print-article:hover,
a[href*="print"]:hover {
  opacity: 1;
  color: var(--hr-accent) !important;
}


/* =============================================================
   ARTICLE BODY — #fullArticle
   ============================================================= */

/* Body text */
#fullArticle p {
  font-size: 17px !important;
  line-height: 1.72em !important;
  margin-bottom: 1.2em;
  color: var(--hr-text);
}

/* h2 — step section headers */
#fullArticle h2 {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-top: 0.5rem;
  margin-bottom: .75rem;
  padding-bottom: 0.6rem;
  color: var(--hr-text);
}

/* h3 — sub-section headers (e.g. "Steps for Getting Started") */
#fullArticle h3 {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-top: 0.5rem;
  margin-bottom: 0.75rem;
  color: var(--hr-text);
}

/* TOC list — the ol/ul immediately after an h3 */
#fullArticle h3 + ol,
#fullArticle h3 + ul {
  background: var(--hr-accent-xlight);
  border-radius: 8px 8px 8px 8px;
  padding: 18px 20px 18px 40px;
  margin-left: 0 !important;
  margin-left: 0 !important;
  margin-bottom: 2.25rem;
}

#fullArticle h3 + ol li,
#fullArticle h3 + ul li {
  font-size: 17px !important;
  line-height: 1.65 !important;
  font-weight: 500 !important;
  margin-bottom: 4px;
}

#fullArticle h3 + ol a,
#fullArticle h3 + ul a {
  color: var(--hr-accent) !important;
  border-bottom: none;
  transition: color 0.15s;
}

#fullArticle h3 + ol a:hover,
#fullArticle h3 + ul a:hover {
  color: var(--hr-accent-hover) !important;
  text-decoration: underline;
}

/* Standard ordered / unordered lists */
#fullArticle ul,
#fullArticle ol {
  font-size: 17px !important;
  line-height: 1.68 !important;
  font-family: var(--hs-font-text) !important;
  font-weight: 400;
  padding-left: 0rem;
  margin-bottom: 1.25em;
}

#fullArticle li {
  font-size: 17px !important;
  line-height: 1.68 !important;
  margin-bottom: 0.45em;
}

/* Horizontal rule between steps */
#fullArticle hr {
  border: none;
  border-top: 1px solid var(--hr-border);
  margin: 2.5rem 0;
}

/* In-article links */
#fullArticle a {
  color: var(--hr-accent) !important;
  text-decoration: none;
  transition: color 0.15s;
}

#fullArticle a:hover {
  color: var(--hr-accent-hover) !important;
  text-decoration: underline;
}

/* "Back to top" anchor links (⬆ Back to top) */
#fullArticle p:has(a[href^="#"]) {
  margin-top: 1.5rem;
}

#fullArticle p a[href^="#"] {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px !important;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--hr-text-muted) !important;
  opacity: 0.65;
  transition: opacity 0.18s, color 0.18s;
  border-bottom: none;
  text-decoration: none;
}

#fullArticle p a[href^="#"]:hover {
  opacity: 1;
  color: var(--hr-accent) !important;
  text-decoration: none;
}

/* Caption text */
#fullArticle .image-caption,
#fullArticle figcaption {
  display: block;
  margin-top: -10px;
  margin-bottom: 1.25em;
  color: var(--hr-text-muted);
  font-size: 13px;
  font-style: italic;
  text-align: center;
}

/* Overflow safety */
#fullArticle { overflow-x: hidden; }


/* =============================================================
   IMAGES
   ============================================================= */
.article-content img,
#fullArticle img,
figure img {
  border: none !important;
  box-shadow: none !important;
  border-radius: 8px;
}

#fullArticle img,
#fullArticle figure img {
  width: auto !important;
  max-width: 100% !important;
  height: auto !important;
  display: inline-block !important;
}

#fullArticle figure,
#fullArticle p img {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

#fullArticle figure,
#fullArticle .hs-image-wrapper,
#fullArticle .image {
  max-width: 100% !important;
  overflow: visible !important;
}

@media (max-width: 768px) {
  #fullArticle .alignleft,
  #fullArticle .alignright,
  #fullArticle img[style*="float"],
  #fullArticle figure[style*="float"] {
    float: none !important;
    margin: 1rem 0 !important;
  }
}


/* =============================================================
   RESPONSIVE VIDEO
   ============================================================= */
#fullArticle .responsive-video,
#fullArticle iframe {
  max-width: 100% !important;
  width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  margin-bottom: 2rem;
  display: block;
}

#fullArticle .hr-video { width: 100%; max-width: 100%; }
#fullArticle .hr-video > video {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 10px;
}


/* =============================================================
   SIDEBAR
   ============================================================= */
#sidebar {
  padding-right: 0;
}

/* Category section headers */
#sidebar h4,
#sidebar .sidebar-header,
#sidebar .section-header {
  font-family: var(--hs-font-display) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hr-text-muted);
  margin-top: 28px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hr-border);
}

#sidebar h4:first-child,
#sidebar .sidebar-header:first-child {
  margin-top: 0;
}

/* Sidebar nav list */
#sidebar .nav-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
}

#sidebar .nav-list a {
  display: block;
  font-family: var(--hs-font-text) !important;
  font-size: 14px;
  font-weight: 500;
  color: var(--hr-text-muted) !important;
  padding: 6px 0;
  text-decoration: none;
  border-bottom: none;
  transition: color 0.15s, padding-left 0.15s;
  line-height: 1.4;
}

#sidebar .nav-list a:hover {
  color: var(--hr-accent) !important;
  padding-left: 5px;
  text-decoration: none;
}

#sidebar .nav-list li.active > a,
#sidebar .nav-list a.active {
  color: var(--hr-accent) !important;
  font-weight: 700;
}

/* Mobile sidebar — compact */
@media (max-width: 767px) {
  #sidebar {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--hr-border);
  }
}


/* =============================================================
   RELATED ARTICLES
   ============================================================= */
.related-articles {
  margin-top: 2.5rem;
}

.related-articles h3,
.related-articles h4,
.related-articles .section-header {
  font-family: var(--hs-font-display) !important;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hr-text-muted);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hr-border);
}

.related-articles ul {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.related-articles li {
  font-size: 14px !important;
  line-height: 1.5 !important;
  padding: 9px 0;
  border-bottom: 1px solid var(--hr-border);
}

.related-articles li:last-child {
  border-bottom: none;
}

.related-articles a {
  color: var(--hr-text) !important;
  font-weight: 500;
  text-decoration: none;
  border-bottom: none !important;
  transition: color 0.15s;
}

.related-articles a:hover {
  color: var(--hr-accent) !important;
}


/* =============================================================
   ARTICLE FEEDBACK ("Did this answer your question?")
   ============================================================= */
.article-feedback,
.feedback-container,
#articleFeedback,
.article-votes {
  margin-top: 3rem;
  padding: 24px 28px;
  background: var(--hr-accent-xlight);
  border: 1px solid var(--hr-border);
  border-radius: 10px;
}

.article-feedback p,
.feedback-container p,
#articleFeedback p {
  font-size: 17px !important;
  font-weight: 600;
  line-height: 1.5 !important;
  margin-bottom: 14px;
}

.article-feedback .btn,
.feedback-container .btn,
.article-votes .btn,
#articleFeedback .btn {
  font-family: var(--hs-font-text) !important;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 8px 22px;
  border-radius: 6px;
  border: 1.5px solid var(--hr-accent);
  background: transparent;
  color: var(--hr-accent);
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  margin-right: 8px;
  display: inline-block;
  text-decoration: none;
}

.article-feedback .btn:hover,
.feedback-container .btn:hover,
.article-votes .btn:hover,
#articleFeedback .btn:hover {
  background: var(--hr-accent);
  color: #fff;
}

/* Contact Us link at bottom of article */
.still-need-help,
.contact-us {
  margin-top: 1.5rem;
  font-size: 17px;
  color: var(--hr-text-muted);
}

.still-need-help a,
.contact-us a {
  color: var(--hr-accent) !important;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s;
}

.still-need-help a:hover,
.contact-us a:hover {
  color: var(--hr-accent-hover) !important;
  text-decoration: underline;
}

/* Last updated timestamp */
.last-published,
.updated-at,
time {
  display: block;
  margin-top: 1.25rem;
  font-size: 12px;
  color: var(--hr-text-muted);
  font-weight: 500;
  letter-spacing: 0.02em;
}


/* =============================================================
   SEARCH BAR
   ============================================================= */
#searchBar .search-query {
  background: #fff;
  border: 1px solid var(--hr-border);
  box-shadow: none;
  color: var(--hr-text);
  font-family: var(--hs-font-text) !important;
  font-size: 14px;
  border-radius: 6px 0 0 6px;
  padding: 8px 14px;
}

#searchBar .search-query:focus {
  border-color: var(--hr-accent-light);
  outline: none;
  box-shadow: 0 0 0 3px rgba(163,138,124,0.12);
}

#searchBar button {
  background: var(--hr-accent);
  border-color: transparent;
  color: #fff;
  border-radius: 0 6px 6px 0;
  transition: background 0.18s;
}

#searchBar button:hover {
  background: var(--hr-accent-hover);
  border-color: transparent;
  color: #fff;
}


/* =============================================================
   FOOTER
   ============================================================= */
.footer,
#footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--hr-border);
  font-size: 13px;
  color: var(--hr-text-muted);
  line-height: 1.6;
}

.footer a,
#footer a {
  color: var(--hr-text-muted) !important;
  text-decoration: none;
  transition: color 0.15s;
}

.footer a:hover,
#footer a:hover {
  color: var(--hr-accent) !important;
}


/* =============================================================
   MOBILE — consolidated overrides
   ============================================================= */
@media (max-width: 767px) {

  /* Title */
  h1.title {
    font-size: 22px;
    line-height: 1.3;
  }

  /* Step headers */
  #fullArticle h2 {
    font-size: 18px;
    margin-top: 2rem;
  }

  #fullArticle h3 {
    font-size: 17px;
  }

  /* Body + list text */
  #fullArticle p,
  #fullArticle li {
    font-size: 16px !important;
    line-height: 1.7 !important;
  }

  /* TOC callout */
  #fullArticle h3 + ol,
  #fullArticle h3 + ul {
    padding: 14px 14px 14px 32px;
    margin-bottom: 1.75rem;
  }

  #fullArticle h3 + ol li,
  #fullArticle h3 + ul li {
    font-size: 14px !important;
  }

  /* Video */
  #fullArticle iframe {
    border-radius: 6px;
    margin-bottom: 1.5rem;
  }

  /* Feedback block */
  .article-feedback,
  .feedback-container,
  #articleFeedback,
  .article-votes {
    padding: 18px 18px;
  }

  .article-feedback .btn,
  .feedback-container .btn,
  .article-votes .btn {
    padding: 8px 18px;
    font-size: 13px;
    margin-bottom: 8px;
  }

  /* Navbar tweaks on mobile */
  .navbar .nav a {
    line-height: 40px;
    font-size: 13px;
  }

  /* Container top padding */
  body #contentArea.container-fluid {
    padding-top: 16px;
  }
}

@media (max-width: 767px) {
  /* Outer wrappers Help Scout adds above #contentArea */
  body,
  #page,
  #body,
  .page-wrapper {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    overflow-x: hidden;
  }

  /* The container itself */
  body #contentArea.container-fluid {
    padding-left: 16px !important;
    padding-right: 16px !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box;
  }

  /* Bootstrap row-fluid adds negative margin */
  .row-fluid {
    margin-left: 0 !important;
    width: 100% !important;
  }

  body #main-content.span9,
  body #sidebar.span3 {
    float: none !important;
    width: 100% !important;
    margin-left: 0 !important;
    display: block !important;
    box-sizing: border-box;
  }

  body #main-content {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
}

