/* Section of documentation text, the "prose" rules of the Unisson documentation model (.prose h2, h3, p, ul, inline
   code, the # anchor) and its links and focus ring. The host is the target of the # link, so it carries the scroll
   margin. The heading's top margin collapses through the host, as between the model's sections. The breakpoint is the
   model's own, on the viewport: the section sits in the documentation column, narrower than the page. */
:host {
  --mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  display: block;
  color: var(--pack-ink);
  font: 16px / 1.6 var(--sans);
  font-feature-settings: normal;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
  scroll-margin-block-start: 90px;
}
:host([hidden]) {
  display: none;
}
*,
*::before,
*::after {
  box-sizing: border-box;
}
h2,
h3,
p {
  margin: 0;
}
/* Links stay inline in the text: base.css makes a link an inline flex box of touch height, the model does not. */
a {
  display: inline;
  min-block-size: 0;
  color: var(--pack-link);
  text-underline-offset: auto;
}
:focus-visible {
  outline: 2px solid var(--pack-focus);
  outline-offset: 3px;
  border-radius: 6px;
}
[part="prose"] {
  margin-block-start: 8px;
}
[part="heading"] {
  margin-block-start: 56px;
  font: 800 clamp(26px, 3vw, 32px) / 1.15 var(--sans);
  letter-spacing: -0.03em;
}
[part="anchor"] {
  margin-inline-start: 8px;
  color: var(--pack-mut);
  text-decoration: none;
  opacity: 0;
  font-weight: 600;
}
[part="heading"]:hover [part="anchor"],
[part="anchor"]:focus-visible {
  opacity: 1;
}
[part="subheading"] {
  margin-block-start: 30px;
  font: 700 20px / 1.3 var(--sans);
  letter-spacing: -0.02em;
}
[part="paragraph"],
[part="lead"] {
  margin-block-start: 14px;
  max-inline-size: 70ch;
}
[part="lead"] {
  color: var(--pack-mut);
}
[part="list"] {
  margin-block: 14px 0;
  margin-inline: 0;
  padding-inline-start: 22px;
  max-inline-size: 68ch;
}
[part="list"] li {
  margin-block-start: 6px;
}
[part="list"] li::marker {
  color: var(--pack-c1);
}
[part="code"] {
  font: 600 0.88em var(--mono);
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--pack-panel2);
  border: 1px solid var(--pack-line);
  color: var(--pack-ink);
  overflow-wrap: anywhere;
}
@media (max-width: 700px) {
  :host {
    scroll-margin-block-start: 150px;
  }
  [part="heading"] {
    margin-block-start: 44px;
  }
}
@media (forced-colors: active) {
  [part="anchor"] {
    opacity: 1;
  }
}
