
/* Paragraph Styling — Metalab 2.0: Sans/Desktop/Regular/Base/Tight */
.boostlook p {
  padding-top: initial !important;
  padding-bottom: initial !important;
  color: var(--text-main-text-body-secondary, #585A64);
  font-size: var(--typography-font-size-sm, 1rem);
  line-height: 120%;
  letter-spacing: -0.16px;
}

/* Components margins */
.boostlook .paragraph + .paragraph {
  margin-top: var(--padding-padding-md, 1rem);
}

.boostlook:not(:has(.doc)) .section > p + p,
.boostlook:not(:has(.doc)) .chapter > p + p,
.boostlook div.blockquote blockquote p + p,
.boostlook#libraryReadMe > p:not(:first-child) + p,
  /* Outcome 2.2 Weird Template fix */
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content > p + p,
.boostlook:not(:has(.doc))#antora-template-wrapper > #content > p + p,
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content > p + p {
  margin-top: var(--padding-padding-3xs, 0.25rem);
}
.boostlook #content .admonitionblock + .tabs,
.boostlook .paragraph + .tabs {
  margin-top: var(--spacing-size-2md, 1.3rem);
}

.boostlook #content .paragraph + .admonitionblock,
.boostlook #content .tabs + .paragraph,
.boostlook #content .colist + .paragraph,
.boostlook #content .admonitionblock + .admonitionblock,
.boostlook #content .olist + .admonitionblock,
.boostlook #content .olist + .paragraph,
.boostlook:not(:has(.doc)) div.orderedlist + p,
.boostlook:not(:has(.doc)) p + div.orderedlist,
.boostlook:not(:has(.doc)) .itemizedlist + p,
.boostlook:not(:has(.doc)) div.itemizedlist:has(+ a[id^="bind"]) + a + *,
.boostlook:not(:has(.doc)) div.table:has(+ .table-break) + .table-break + *,
.boostlook #content .paragraph + .olist,
.boostlook #content .paragraph + .listingblock,
.boostlook #content .paragraph + .literalblock,
.boostlook #content .paragraph + .ulist,
.boostlook #content .paragraph + .dlist,
.boostlook #content .paragraph + .imageblock,
.boostlook #content .paragraph + .exampleblock,
.boostlook #content .paragraph + .quoteblock,
.boostlook #content .ulist + .admonitionblock,
.boostlook #content .ulist + .paragraph,
.boostlook #content .colist + .admonitionblock,
.boostlook #content .admonitionblock + .paragraph,
.boostlook #content .paragraph + table.tableblock,
.boostlook.boostlook:not(:has(.doc)) p + table.table,
.boostlook.boostlook:not(:has(.doc)) p + .informaltable,
.boostlook #content table.tableblock + .paragraph,
.boostlook #content table.tableblock + .admonitionblock,
.boostlook:not(:has(.doc)) .informaltable + p,
.boostlook #content .imageblock + .paragraph,
.boostlook:not(:has(.doc)) .inlinemediaobject + p,
.boostlook:not(:has(.doc)) p:has(> .inlinemediaobject:only-child) + p,
.boostlook:not(:has(.doc)) p + pre,
.boostlook:not(:has(.doc)) p + .listingblock,
.boostlook:not(:has(.doc)) .section p + ul,
.boostlook:not(:has(.doc)) .section p + dl,
.boostlook#libraryReadMe > p + pre,
.boostlook#libraryReadMe > p + ul,
.boostlook#libraryReadMe > p + table,
.boostlook#libraryReadMe > table + p,
.boostlook#libraryReadMe > ul + p,
.boostlook#libraryReadMe .literalblock + .paragraph,
  /* Outcome 2.2 Weird Template fix */
.boostlook:not(:has(.doc))#boost-legacy-docs-wrapper > #content > ul:not([class]) + p,
.boostlook:not(:has(.doc))#antora-template-wrapper > #content > ul:not([class]) + p,
div.source-docs-antora.boostlook:not(:has(.doc)):not(:has(>.boostlook)) > #content > ul:not([class]) + p {
  margin-top: var(--padding-padding-xs, 0.75rem) !important;
}

.boostlook #content .dlist + .paragraph,
.boostlook #content .dlist + .listingblock,
.boostlook:not(:has(.doc)) div.blockquote + p,
.boostlook:not(:has(.doc)) .variablelist + p {
  margin-top: var(--padding-padding-2xs, 0.5rem);
}

.boostlook h2 + .tabs,
.boostlook .doc h2 + .tabs,
.boostlook h3 + .tabs,
.boostlook .doc h3 + .tabs,
.boostlook h4 + .tabs,
.boostlook .doc h4 + .tabs,
.boostlook h5 + .tabs,
.boostlook .doc h5 + .tabs,
.boostlook h5 + .tabs,
.boostlook .doc h6 + .tabs {
  margin-top: var(--padding-padding-sm, 0.75rem);
}

.boostlook #content .sectionbody .olist:first-child,
.boostlook:not(:has(.doc)) .section div.orderedlist:first-child {
  margin-top: var(--padding-padding-3xs, 0.25rem);
}

.boostlook .olist .imageblock .content,
.boostlook .ulist .imageblock .content {
  margin-bottom: var(--padding-padding-xs, 0.75rem);
}

/* Special paragraph cases */
.boostlook table p,
.boostlook ul p {
  margin: 0;
}

/* Link Styling */
.boostlook a,
.boostlook .doc a {
  color: var(--text-main-text-link-blue, #026a9f);
  text-decoration: none;
  transition: color 0.3s ease;
}

/* Content body links: underline per Figma (paragraphs and lists only) */
.boostlook #content .doc .paragraph a:not(.anchor),
.boostlook #content .doc .ulist a:not(.anchor),
.boostlook #content .doc .olist a:not(.anchor),
.boostlook #content .doc .dlist a:not(.anchor) {
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Link Hover States */
.boostlook a:hover,
.boostlook .doc a:hover {
  color: var(--text-states-text-warning, #FF9442);
  cursor: pointer;
}

/* Emphasis within code */
.boostlook code em,
.boostlook code i,
.boostlook pre em,
.boostlook pre i {
  font-family: "Monaspace Xenon", monospace;
  font-size: inherit;
  font-style: italic;
}

.boostlook em {
  font-family: inherit;
  font-size: inherit;
  font-style: italic;
}

/* Text Emphasis */
.boostlook b,
.boostlook strong {
  font-variation-settings: "wght" 600, "wdth" 87.5;
  text-shadow: none;
}

/* Comments within code (inline and blocks) */
.boostlook code span.c,
.boostlook code span.ch,
.boostlook code span.cm,
.boostlook code span.cp,
.boostlook code span.cpf,
.boostlook code span.c1,
.boostlook code span.cs,
.boostlook code span.comment {
  font-family: "Monaspace Xenon", monospace;
  font-style: italic;
}
