/* =============================================================
   Help Scout Docs — Neue Haas Grotesk (Adobe Fonts)
   Typography + Image Fixes
   ============================================================= */

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

/* === Typography === */

/* Caption text styling */
#fullArticle .image-caption, #fullArticle figcaption {
    display: block;
    margin-top: -15px;
    color: #585858;
    font-size: 16px;
    font-style: none;
}



/* Article Title */
h1.title {
    margin-top: 0;
    font-size: 30px;
    line-height: 1.2em;
    font-weight: bold;
}

/* Navigation link text */
.navbar .nav a {
    display: block;
    padding: 0 15px;
    line-height: 32px;
    font-size: 16px;
    background: 0 0;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    box-shadow: none;
}

/* Article body text */
#fullArticle p {
  font-size: 16px !important;
  line-height: 1.6 !important;
  margin-bottom: 1em;
}

/* Sidebar category link text */
#sidebar .nav-list a {
  font-size: 16px;
  font-weight: 500;
}

/* Global body text */
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;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Bold */
strong, b {
  font-family: var(--hs-font-text) !important;
  font-weight: 700;
  font-style: normal;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hs-font-display) !important;
  font-weight: 700;
  font-style: normal;
  letter-spacing: 0em;
}

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 blocks */
code, pre, kbd, samp {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
               "Liberation Mono", "Courier New", monospace !important;
}

/* === Images === */

/* Remove outlines/borders */
.article-content img,
#fullArticle img,
figure img {
  border: none !important;
  box-shadow: none !important;
}

/* Natural size but shrink large ones to fit */
#fullArticle img,
#fullArticle figure img {
  width: auto !important;        /* don’t upscale small images */
  max-width: 100% !important;    /* shrink down large images */
  height: auto !important;
  display: inline-block !important;
}

/* Center images in paragraphs/figures */
#fullArticle figure,
#fullArticle p img {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

/* Prevent wrappers from overflowing */
#fullArticle figure,
#fullArticle .hs-image-wrapper,
#fullArticle .image {
  max-width: 100% !important;
  overflow: visible !important;
}

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

/* Safety: prevent horizontal scroll */
#fullArticle { overflow-x: hidden; }

/* === Search Bar Styling === */
#searchBar .search-query {
  background: #fff;
  border-color: transparent;
  box-shadow: none;
  color: #777;
}

#searchBar button {
  background: #A38A7C;
  border-color: transparent;
  color: #fff;
}

#searchBar button:hover {
  background: #D1BDB2;
  border-color: transparent;
  color: #fff;
}

/* === Responsive Videos === */
#fullArticle .responsive-video,
#fullArticle iframe {
  max-width: 100% !important;
  width: 100% !important;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* Make any self-hosted <video> fill the article column */
#fullArticle .hr-video { width: 100%; max-width: 100%; }
#fullArticle .hr-video > video {
  width: 100% !important;
  height: auto !important;
  display: block;
}

/* Match list text size and spacing to body text */
#fullArticle ul,
#fullArticle ol,
#fullArticle li {
  font-size: 16px !important;   /* same as body */
  line-height: 1.7 !important;  /* same as body */
  font-family: var(--hs-font-text) !important;
  font-weight: 400;
  margin-bottom: 0.5em;         /* keep nice spacing between items */
}

/* Optional: adjust list padding if they look too indented */
#fullArticle ul,
#fullArticle ol {
  padding-left: 1.5rem;
}


/* ===========================================
   Responsive layout tweaks for Docs
   =========================================== */

/* Base: keep container centered but reduce side padding */
body #contentArea.container-fluid {
  max-width: 1920px;              /* nice readable width on desktop */
  margin: 0 auto;
  padding-left: 80px;
  padding-right: 80px;
}

/* Make sure main content and sidebar obey the container width */
body #contentArea.container-fluid > .row-fluid {
  width: 100%;
}

/* Desktop: keep 2-column but give content more space than sidebar */
@media (min-width: 1024px) {
  body #main-content.span9 {
    float: right;
    width: 80% !important;        /* content column */
    padding-left: 24px;           /* soften the 28px */
    padding-right: 0;
  }

  body #sidebar.span3 {
    float: left;
    width: 20% !important;        /* sidebar column */
  }
}

/* Tablet: still 2-column, but tighter padding */
@media (max-width: 1023px) and (min-width: 768px) {
  body #contentArea.container-fluid {
    max-width: none;
    padding-left: 24px;
    padding-right: 24px;
  }
}

/* Mobile: stack sidebar under content, minimal padding */
@media (max-width: 767px) {
  body #contentArea.container-fluid {
    max-width: none;
    padding-left: 16px;
    padding-right: 16px;
  }

  body #main-content,
  body #sidebar {
    float: none !important;
    width: 100% !important;
  }

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