/* Wrap CMS content in .knowledge-article-body. Use standard HTML inside it. */
.knowledge-article-body {
  color: #697363;
  font-size: 16px;
  line-height: 2.05;
  letter-spacing: .01em;
  overflow-wrap: anywhere;
}

.knowledge-article-body :where(h2, h3, h4, h5, h6) {
  margin: 22px 0 11px;
  color: #2e3630;
  font-family: var(--serif, serif);
  font-weight: 500;
  line-height: 1.7;
  letter-spacing: .015em;
}

.knowledge-article-body h2,
.cms-article-faq > h2,
#view-editor:has(#articleFaqPanel:not([hidden])) #visualEditor h2 {
  margin: 34px 0 15px;
  padding: 9px 15px;
  border-inline-start: 4px solid #b6a172;
  border-radius: 4px;
  background: #656565;
  color: #ffffff;
  font-size: 22px;
  font-weight: bold;
  line-height: 33px;
}
.knowledge-article-body h3 {
  color: #795a32;
  font-size: 20px;
  font-weight: bold;
  line-height: 33px;
}
.knowledge-article-body :where(h4, h5, h6) { font-size: 18px; }
.knowledge-article-body :where(h2, h3, h4, h5, h6, div, section)[id] { scroll-margin-top: 20px; }

.knowledge-article-body > :first-child,
.knowledge-article-body > section:first-child > :first-child { margin-top: 0; }

.knowledge-article-body p { margin: 0 0 11px; color: inherit; }
.knowledge-article-body :where(strong, b) { color: #2e3630; font-weight: bold; }
.knowledge-article-body h2 :where(strong, b),
.knowledge-article-body h3 :where(strong, b) { color: inherit; }
.knowledge-article-body :where(ul, ol) { padding-inline-start: 1.65em; margin: 12px 0; }
.knowledge-article-body ul { list-style: disc outside; }
.knowledge-article-body ul ul { list-style-type: circle; }
.knowledge-article-body ol:not([type]) { list-style: decimal outside; }
.knowledge-article-body li { padding-inline-start: .2em; }
.knowledge-article-body li + li { margin-top: 4px; }
.knowledge-article-body li::marker { color: #795a32; font-weight: bold; }
.knowledge-article-body li > :where(ul, ol) { margin: 4px 0; }
.knowledge-article-body li > h3:first-child { margin-top: 0; }
.knowledge-article-body ol > li:has(> h3:first-child) + li { margin-top: 17px; }

.knowledge-article-summary {
  margin: 0 0 24px;
  padding: 15px 18px;
  border: 1px solid #e3d9c4;
  border-radius: 8px;
  background: #f1ebde;
  color: #485145;
}
.knowledge-article-summary > :last-child { margin-bottom: 0; }

.knowledge-article-body a {
  color: #826337;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.knowledge-article-body a:hover { color: #534125; }

.knowledge-article-body :where(figure, blockquote, table, hr) { margin: 18px 0; }
.knowledge-article-body img { display: block; width: 100%; height: auto; border-radius: 12px; }
.knowledge-article-body figcaption { margin-top: 7px; color: #70776b; font-size: 14px; line-height: 1.7; }
.knowledge-article-body blockquote { padding: 12px 16px; border-left: 3px solid #b6a172; background: #f0eee6; }
.knowledge-article-body blockquote > :last-child { margin-bottom: 0; }
.knowledge-article-body .knowledge-inline-related {
  margin: 20px 0 24px;
  padding: 10px 14px;
  border-inline-start: 3px solid #b6a172;
  background: #eeece4;
  line-height: 1.8;
}
.knowledge-inline-related a { font-weight: bold; }
.knowledge-inline-related > :last-child { margin-bottom: 0; }
.knowledge-article-body hr { border: 0; border-top: 1px solid #dfdfd4; }

.knowledge-table-scroll { margin: 18px 0; overflow-x: auto; }
.knowledge-article-body table {
  width: 100%;
  table-layout: auto;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.75;
}
.knowledge-table-scroll > table { margin: 0; }
.knowledge-article-body :where(th, td) { padding: 9px 12px; border: 1px solid #dfdfd4; text-align: left; vertical-align: top; }
.knowledge-article-body th { background: #f0eee6; color: #2e3630; }

.knowledge-article-body details { border-bottom: 1px solid #dfdfd4; }
.knowledge-article-body details > summary {
  position: relative;
  list-style: none;
  padding: 12px 4px;
  padding-inline-end: 42px;
  color: #2e3630;
  font-weight: bold;
  line-height: 1.75;
}
.knowledge-article-body details > summary::-webkit-details-marker { display: none; }
.knowledge-article-body details > summary::after {
  content: "+" / "";
  position: absolute;
  inset-block-start: 50%;
  inset-inline-end: 4px;
  transform: translateY(-50%);
  width: 26px;
  border-radius: 50%;
  background: #eeece4;
  color: #795a32;
  font: bold 18px/26px var(--sans, sans-serif);
  text-align: center;
}
.knowledge-article-body details[open] > summary::after { content: "−" / ""; }
.knowledge-article-body details > summary:hover { color: #795a32; }
.knowledge-article-body details > summary:focus-visible { outline-offset: -2px; }
.knowledge-article-body details > p { margin: 0 4px 11px; font-size: 15px; }

@media (max-width: 760px) {
  .knowledge-article-body { line-height: 1.95; }
  .knowledge-article-body h2 { margin: 28px 0 12px; padding: 8px 11px; font-size: 20px; line-height: 30px; }
  .knowledge-article-body h3 { font-size: 16px; line-height: 30px; }
  .knowledge-article-body :where(h2, h3, h4, h5, h6, div, section)[id] { scroll-margin-top: 12px; }
  .knowledge-article-summary { padding: 13px; }
  .knowledge-article-body :where(th, td) { padding: 7px 8px; }
  .knowledge-article-body > :first-child,
  .knowledge-article-body > section:first-child > :first-child { margin-top: 0; }
}

/* Heading descendants inherit the shared heading color, overriding home.css gold spans. */
.knowledge-article-body h2 :where(span, em, strong, b, a),
#view-editor:has(#articleFaqPanel:not([hidden])) #visualEditor h2 :where(span, em, strong, b, a) {
  color: inherit;
}
