/* Reference articles. Load after site-base.css; fonts and brand controls stay there.
   Every rule is page-scoped. Navigation and contents stay in normal document flow. */

body.reference-page {
  --ref-gutter: clamp(24px, 4.5vw, 68px);
  --ref-line: rgba(26, 28, 32, 0.14);
  --ref-muted: #414750;
  --ref-link: #275e95;
  margin: 0;
  background: #FCFBF8;
  color: #1A1C20;
  font-size: 18px;
  font-weight: 300;
  line-height: 1.7;
  font-synthesis: none;
  overflow-wrap: anywhere;
}

body.reference-page :where(main, article, section, aside, header, footer, div, dl, dd) {
  min-width: 0;
}

body.reference-page :where(h1, h2, h3, p, dl, dd, figure, blockquote) {
  margin: 0;
}

body.reference-page :where(strong, b) {
  font-weight: 700;
}

body.reference-page em {
  font-weight: 300;
  font-style: italic;
}

body.reference-page :where(h1, h2, h3) {
  color: #1A1C20;
  font-weight: 700;
  font-style: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  text-wrap: balance;
}

body.reference-page h1 {
  max-width: 20ch;
  font-size: clamp(36px, 6.3vw, 84px);
  line-height: 1.08;
  letter-spacing: -0.04em;
}

body.reference-page h2 {
  max-width: 28ch;
  margin-bottom: 20px;
  font-size: clamp(28px, 1.2rem + 1.75vw, 40px);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

body.reference-page h3 {
  margin-bottom: 12px;
  font-size: clamp(21px, 1.1rem + 0.5vw, 25px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

/* Brand blue is reserved for large emphasis; small labels use dark blue. */
body.reference-page :where(h1, h2) em {
  color: #4c91d6;
}

/* The baseline's deeper blue preserves large-text contrast on warm panels. */
body.reference-page :where(.ref-related, .ref-feature-box, .ref-callout,
  .ref-note, .ref-source-doc) h2 em {
  color: #3a76b3;
}

body.reference-page :where(a, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--ref-link);
  outline-offset: 4px;
}

body.reference-page #inhalt:focus-visible {
  outline-offset: -4px;
}

body.reference-page :where(main, section, details)[id] {
  scroll-margin-top: 28px;
}

body.reference-page .ref-shell {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--ref-gutter);
}

/* Only the keyboard skip control is visually clipped, never article content. */
body.reference-page .ref-skip {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.reference-page .ref-skip:focus {
  z-index: 500;
  top: 12px;
  left: var(--ref-gutter);
  width: auto;
  max-width: calc(100% - 2 * var(--ref-gutter));
  height: auto;
  margin: 0;
  padding: 12px 20px;
  overflow: visible;
  clip-path: none;
  white-space: normal;
  border: 1px solid var(--ref-link);
  border-radius: 999px;
  background: #FCFBF8;
  color: #1A1C20;
  font-size: 16px;
  font-weight: 700;
}

/* Relative positioning only anchors the inherited two-pixel brand line.
   There is no fixed/sticky header, compensating top padding, or article overlay. */
body.reference-page .ref-nav {
  position: relative;
  inset: auto;
  z-index: auto;
  height: auto;
  min-height: 64px;
  flex-wrap: wrap;
  gap: 8px 28px;
  padding: 10px var(--ref-gutter);
  box-shadow: none;
}

body.reference-page .ref-nav .nav-logo {
  display: inline-flex;
  flex: 0 1 auto;
  align-items: center;
  min-width: 0;
  min-height: 44px;
  max-width: 100%;
}

body.reference-page .ref-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px clamp(16px, 2.5vw, 32px);
  max-width: 100%;
}

body.reference-page .ref-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: #3D4148;
  font-size: 14px;
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-underline-offset: 0.2em;
}

body.reference-page .ref-back:hover {
  color: #1A1C20;
  text-decoration: underline;
}

/* Keep the baseline pill treatment, but permit long German labels to wrap. */
body.reference-page .pill {
  flex-shrink: 1;
  min-width: 0;
  max-width: 100%;
  height: auto;
  min-height: 60px;
  color: #1A1C20;
  text-decoration: none;
  white-space: normal;
}

body.reference-page .pill .ic {
  flex: 0 0 60px;
  align-self: stretch;
  height: auto;
  line-height: 1;
}

body.reference-page .pill .lbl {
  min-width: 0;
  padding-block: 14px;
  line-height: 1.4;
  white-space: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
}

body.reference-page .pill.sm {
  min-height: 38px;
}

body.reference-page .pill.sm .ic {
  flex-basis: 36px;
}

body.reference-page .pill.sm .lbl {
  padding-block: 9px;
  line-height: 1.3;
}

/* Opening spread */
body.reference-page .ref-hero {
  padding-top: clamp(52px, 8vw, 112px);
  padding-bottom: clamp(40px, 5vw, 72px);
}

body.reference-page :where(.ref-eyebrow, .ref-kicker) {
  color: var(--ref-link);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.65;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

body.reference-page .ref-hero .ref-eyebrow {
  margin-bottom: clamp(20px, 2.5vw, 32px);
}

body.reference-page .ref-lead {
  max-width: 58ch;
  margin-top: clamp(24px, 3.2vw, 40px);
  color: #3D4148;
  font-size: clamp(20px, 1.05rem + 0.65vw, 25px);
  line-height: 1.6;
  hyphens: auto;
}

body.reference-page .ref-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px clamp(24px, 3vw, 40px);
  margin-top: clamp(32px, 4.5vw, 56px);
  padding-top: 24px;
  border-top: 1px solid var(--ref-line);
}

body.reference-page .ref-meta dt {
  margin-bottom: 8px;
  color: var(--ref-muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.6;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.reference-page .ref-meta dd {
  font-size: 18px;
  line-height: 1.55;
  hyphens: auto;
}

body.reference-page .ref-status {
  max-width: 78ch;
  margin-top: 24px;
  padding-left: 14px;
  border-left: 2px solid #4c91d6;
  color: var(--ref-muted);
  font-size: 14px;
  line-height: 1.65;
}

/* Contents is an aside, not a second site navigation. Intentionally nonsticky. */
body.reference-page .ref-layout {
  display: grid;
  grid-template-columns: 200px minmax(0, 740px);
  align-items: start;
  gap: clamp(36px, 5.5vw, 80px);
  padding-bottom: clamp(72px, 9vw, 120px);
}

body.reference-page .ref-toc {
  position: static;
  padding-top: 20px;
  border-top: 2px solid #4c91d6;
}

body.reference-page .ref-toc .ref-eyebrow {
  margin-bottom: 14px;
}

body.reference-page .ref-toc ol {
  margin: 0;
  padding-left: 1.5em;
  list-style: decimal-leading-zero outside;
  color: var(--ref-muted);
  font-size: 14px;
}

body.reference-page .ref-toc li {
  padding-left: 4px;
}

body.reference-page .ref-toc li + li {
  margin-top: 4px;
}

body.reference-page .ref-toc li a {
  display: block;
  min-height: 44px;
  padding-block: 10px;
  color: #3D4148;
  font-size: 16px;
  line-height: 1.5;
  hyphens: auto;
  text-underline-offset: 0.2em;
}

body.reference-page .ref-toc li a:hover {
  color: #1A1C20;
  text-decoration: underline;
}

body.reference-page .ref-toc-back {
  display: inline-block;
  margin-top: 20px;
  padding-block: 10px;
  color: var(--ref-link);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

/* Reading column and restored rhythm after the baseline's margin reset. */
body.reference-page .ref-prose {
  width: 100%;
  max-width: 740px;
  font-size: clamp(18px, 1rem + 0.35vw, 21px);
  line-height: 1.72;
  hyphens: auto;
}

body.reference-page .ref-prose :where(p, ul, ol, dl) {
  max-width: 68ch;
}

body.reference-page .ref-prose p + p {
  margin-top: 1.15em;
}

body.reference-page .ref-prose :where(ul, ol) {
  margin-block: 1.15em;
  padding-left: 1.3em;
}

body.reference-page .ref-prose li + li {
  margin-top: 0.45em;
}

body.reference-page .ref-section {
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--ref-line);
}

body.reference-page .ref-section:first-child {
  padding-top: 0;
  border-top: 0;
}

body.reference-page .ref-section:last-child {
  padding-bottom: 0;
}

body.reference-page .ref-kicker {
  margin-bottom: 14px;
}

body.reference-page .ref-prose a:not(.pill),
body.reference-page .ref-text-link {
  color: var(--ref-link);
  text-decoration: underline;
  text-decoration-thickness: 0.06em;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
}

body.reference-page .ref-prose a:not(.pill):hover,
body.reference-page .ref-text-link:hover,
body.reference-page .ref-toc-back:hover {
  color: #1A1C20;
}

body.reference-page .ref-source {
  color: var(--ref-muted);
  font-size: 14px;
  font-style: normal;
  line-height: 1.65;
}

body.reference-page .ref-prose .ref-source {
  margin-top: 20px;
}

body.reference-page :where(.ref-facts, .ref-callout, .ref-functions, .ref-quote,
  .ref-note, .ref-feature-box, .ref-source-note, .ref-partners, .ref-source-doc) {
  margin-block: clamp(28px, 3.5vw, 40px);
}

/* Evidence: numerical facts, editorial callout, and visible qualifications. */
body.reference-page .ref-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-block: 28px;
  border-block: 1px solid var(--ref-line);
}

body.reference-page .ref-facts dt {
  font-size: clamp(28px, 3.2vw, 40px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-variant-numeric: lining-nums tabular-nums;
}

body.reference-page .ref-facts dd {
  margin-top: 10px;
  color: var(--ref-muted);
  font-size: 16px;
  line-height: 1.6;
}

body.reference-page .ref-callout {
  padding: clamp(24px, 3.5vw, 40px);
  border: 1px solid var(--ref-line);
  border-radius: 3px;
  background: #F4F2EE;
}

body.reference-page .ref-callout .ref-eyebrow {
  margin-bottom: 20px;
}

body.reference-page .ref-callout .ref-stat {
  margin: 0 0 20px;
  color: #3a76b3;
  font-size: clamp(56px, 7vw, 88px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-variant-numeric: lining-nums tabular-nums;
}

body.reference-page .ref-stat span {
  display: inline-block;
  max-width: 100%;
  color: #1A1C20;
  font-size: clamp(18px, 1.1rem + 0.4vw, 23px);
  font-weight: 300;
  line-height: 1.45;
  letter-spacing: normal;
}

body.reference-page .ref-note {
  padding: 18px clamp(18px, 2.5vw, 28px);
  border-left: 2px solid #4c91d6;
  background: #F4F2EE;
  color: var(--ref-muted);
  font-size: 16px;
  line-height: 1.7;
}

body.reference-page .ref-callout .ref-note {
  margin: 24px 0 0;
  padding: 18px 0 0;
  border: 0;
  border-top: 1px solid var(--ref-line);
  background: transparent;
  font-size: 15px;
}

/* Two complementary functions or partner profiles; no decorative assets. */
body.reference-page :where(.ref-functions, .ref-partners) {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 3vw, 40px);
}

body.reference-page .ref-function {
  padding-top: 24px;
  border-top: 2px solid #4c91d6;
}

body.reference-page .ref-partners > section {
  padding-top: 24px;
  border-top: 1px solid var(--ref-line);
}

body.reference-page :where(.ref-function, .ref-partners) p:not(.ref-kicker) {
  color: #3D4148;
  font-size: 18px;
  line-height: 1.7;
}

/* Attribution remains visible independently of the quotation. */
body.reference-page .ref-quote {
  padding: clamp(24px, 3.5vw, 40px);
  border-left: 3px solid #4c91d6;
  background: #F4F2EE;
}

body.reference-page .ref-quote-status {
  margin-bottom: 24px;
  color: var(--ref-muted);
  font-size: 12px;
  font-weight: 700;
  font-style: normal;
  line-height: 1.7;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.reference-page .ref-quote blockquote {
  font-size: clamp(24px, 2.5vw, 32px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

body.reference-page .ref-quote figcaption {
  margin-top: 24px;
  color: #3D4148;
  font-size: 15px;
  font-style: normal;
  line-height: 1.65;
}

body.reference-page .ref-quote figcaption > strong,
body.reference-page .ref-quote figcaption > span {
  display: block;
}

body.reference-page .ref-quote figcaption .ref-source {
  margin-top: 12px;
}

/* Detailed feature evidence, distinct from the article's narrative sections. */
body.reference-page .ref-feature-box {
  padding: clamp(22px, 3.5vw, 40px);
  border: 1px solid var(--ref-line);
  border-radius: 3px;
  background: #F4F2EE;
}

body.reference-page .ref-feature-box h2 {
  max-width: none;
}

body.reference-page .ref-feature-list {
  margin-top: 28px;
}

body.reference-page .ref-feature-list > div + div {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--ref-line);
}

body.reference-page .ref-feature-list dt {
  margin-bottom: 8px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.4;
}

body.reference-page .ref-feature-list dd {
  color: #3D4148;
  font-size: 18px;
  line-height: 1.7;
}

/* Native disclosure keeps browser keyboard behavior and open/closed markers. */
body.reference-page .ref-source-note {
  padding-inline: clamp(18px, 2.5vw, 28px);
  border: 1px solid rgba(26, 28, 32, 0.22);
  border-radius: 3px;
  color: #3D4148;
  font-size: 16px;
  line-height: 1.7;
}

body.reference-page .ref-source-note > summary {
  display: list-item;
  margin-left: 1.15em;
  padding-block: 20px;
  color: #1A1C20;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.55;
  list-style-position: outside;
  cursor: pointer;
}

body.reference-page .ref-source-note > summary::marker {
  color: var(--ref-link);
}

body.reference-page .ref-source-note[open] {
  padding-bottom: 24px;
}

body.reference-page .ref-source-note[open] > summary {
  margin-bottom: 20px;
  border-bottom: 1px solid var(--ref-line);
}

body.reference-page .ref-source-note > :not(summary) + :not(summary) {
  margin-top: 18px;
}

body.reference-page .ref-source-claims > div {
  padding-block: 16px;
  border-top: 1px solid var(--ref-line);
}

body.reference-page .ref-source-claims dt {
  margin-bottom: 6px;
  color: #1A1C20;
  font-weight: 700;
  line-height: 1.5;
}

body.reference-page .ref-source-claims dd {
  color: #3D4148;
  line-height: 1.7;
}

body.reference-page .ref-source-doc {
  padding: clamp(22px, 3vw, 32px);
  border-block: 1px solid var(--ref-line);
  background: #F4F2EE;
}

body.reference-page .ref-source-doc > p {
  color: #3D4148;
  font-size: 17px;
  line-height: 1.7;
}

body.reference-page .ref-doc-link {
  margin-top: 24px;
}

body.reference-page .ref-doc-link .lbl {
  text-align: left;
}

body.reference-page .ref-prose > :last-child,
body.reference-page .ref-section > :last-child,
body.reference-page .ref-source-note > :last-child {
  margin-bottom: 0;
}

/* Related reading and a light, in-brand invitation. */
body.reference-page .ref-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
  margin-top: 28px;
}

body.reference-page .ref-actions .pill {
  flex: 0 1 auto;
}

body.reference-page .ref-related {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--ref-line);
  background: #F4F2EE;
}

body.reference-page .ref-related .ref-eyebrow {
  margin-bottom: 20px;
}

body.reference-page .ref-related .ref-shell > p:not(.ref-eyebrow),
body.reference-page .ref-cta p {
  max-width: 60ch;
  color: #3D4148;
  font-size: clamp(18px, 1rem + 0.35vw, 21px);
  line-height: 1.7;
}

body.reference-page .ref-cta {
  padding-block: clamp(56px, 7vw, 96px);
  border-top: 1px solid var(--ref-line);
  background: #FCFBF8;
}

body.reference-page .ref-cta .ref-shell {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px 48px;
}

body.reference-page .ref-cta .ref-shell > div {
  flex: 1 1 480px;
  max-width: 740px;
}

body.reference-page .ref-cta .pill {
  flex: 0 1 auto;
}

body.reference-page .ref-footer {
  gap: 20px 32px;
  padding: clamp(28px, 3.5vw, 48px) var(--ref-gutter);
  background: #F4F2EE;
  border-top: 1px solid var(--ref-line);
}

body.reference-page .ref-footer .footer-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
}

body.reference-page .ref-footer .footer-logo img {
  opacity: 1;
}

body.reference-page .ref-footer .footer-links {
  align-items: center;
  gap: 8px 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.reference-page .ref-footer .footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 8px;
  color: #3D4148;
  font-size: 14px;
  line-height: 1.5;
  text-underline-offset: 0.2em;
}

body.reference-page .ref-footer .footer-links a:hover {
  color: #1A1C20;
  text-decoration: underline;
}

body.reference-page .ref-footer .footer-copy {
  margin: 0;
  color: var(--ref-muted);
  font-size: 13px;
  line-height: 1.6;
}

/* Stack early enough to keep the text column comfortable at tablet widths. */
@media screen and (max-width: 960px) {
  body.reference-page .ref-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px;
  }

  body.reference-page .ref-toc {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--ref-line);
  }

  body.reference-page .ref-prose {
    max-width: min(100%, 740px);
  }
}

@media screen and (min-width: 641px) and (max-width: 960px) {
  body.reference-page .ref-toc ol {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 40px;
  }

  body.reference-page .ref-toc li + li {
    margin-top: 0;
  }
}

@media screen and (max-width: 640px) {
  body.reference-page .ref-nav {
    align-items: flex-start;
    padding-block: 12px;
  }

  body.reference-page .ref-nav-links {
    flex-basis: 100%;
    justify-content: space-between;
    gap: 8px 12px;
  }

  body.reference-page .ref-nav .pill.sm {
    min-height: 44px;
  }

  body.reference-page .ref-meta {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  body.reference-page .ref-facts {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  body.reference-page .ref-facts > div + div {
    padding-top: 20px;
    border-top: 1px solid var(--ref-line);
  }

  body.reference-page :where(.ref-functions, .ref-partners) {
    grid-template-columns: minmax(0, 1fr);
  }

  body.reference-page .pill:not(.sm) .ic {
    flex-basis: 44px;
    width: 44px;
  }

  body.reference-page .pill.simple:not(.sm) .lbl {
    padding-right: 20px;
  }

  body.reference-page .ref-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.reference-page .ref-nav::after {
    animation: none;
    background-position: 0 0;
  }

  body.reference-page .ref-nav,
  body.reference-page .pill,
  body.reference-page .ref-footer .footer-links a {
    transition: none;
  }

  body.reference-page .pill:hover {
    transform: none;
  }
}

/* Print stays scoped; no global page size, generated assets, or script required. */
@media print {
  body.reference-page {
    padding: 0;
    overflow: visible;
    background: #fff;
    color: #1A1C20;
    font-size: 11pt;
    line-height: 1.55;
  }

  body.reference-page .ref-skip,
  body.reference-page .ref-nav,
  body.reference-page .ref-toc,
  body.reference-page .ref-related,
  body.reference-page .ref-cta,
  body.reference-page .ref-footer .footer-links {
    display: none;
  }

  body.reference-page .ref-shell {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  body.reference-page .ref-hero {
    padding-bottom: 24pt;
  }

  body.reference-page h1 {
    max-width: none;
    font-size: 30pt;
  }

  body.reference-page h2 {
    max-width: none;
    margin-bottom: 10pt;
    font-size: 20pt;
  }

  body.reference-page h3 {
    font-size: 14pt;
  }

  body.reference-page :where(h1, h2, h3, dt, summary) {
    break-after: avoid-page;
  }

  body.reference-page :where(p, li, dd) {
    orphans: 3;
    widows: 3;
  }

  body.reference-page h1 em,
  body.reference-page h2 em,
  body.reference-page .ref-eyebrow,
  body.reference-page .ref-kicker,
  body.reference-page .ref-stat {
    color: #1A1C20;
  }

  body.reference-page .ref-lead {
    margin-top: 16pt;
    font-size: 14pt;
  }

  body.reference-page .ref-meta {
    gap: 16pt;
    margin-top: 20pt;
    padding-top: 12pt;
    break-inside: avoid-page;
  }

  body.reference-page .ref-meta dd {
    font-size: 11pt;
  }

  body.reference-page .ref-layout {
    display: block;
  }

  body.reference-page .ref-prose {
    max-width: none;
    font-size: 11pt;
    line-height: 1.6;
  }

  body.reference-page .ref-prose :where(p, ul, ol, dl) {
    max-width: none;
  }

  body.reference-page .ref-section {
    padding-block: 20pt;
  }

  body.reference-page .ref-callout,
  body.reference-page .ref-quote,
  body.reference-page .ref-note,
  body.reference-page .ref-feature-box,
  body.reference-page .ref-source-note,
  body.reference-page .ref-source-doc {
    margin-block: 16pt;
    padding: 12pt;
    background: transparent;
    border-color: #9a9a9a;
  }

  body.reference-page .ref-callout .ref-stat {
    color: #1A1C20;
    font-size: 36pt;
  }

  body.reference-page .ref-quote blockquote {
    font-size: 16pt;
  }

  body.reference-page :where(.ref-functions, .ref-partners) {
    display: block;
  }

  body.reference-page .ref-function + .ref-function,
  body.reference-page .ref-partners > section + section {
    margin-top: 16pt;
  }

  body.reference-page :where(.ref-facts, .ref-quote figcaption,
    .ref-feature-list > div, .ref-source-claims > div) {
    break-inside: avoid-page;
  }

  /* Current engines can expose closed native details for a complete paper copy.
     The child rule is a fallback; legacy print engines may require opening it. */
  body.reference-page .ref-source-note::details-content {
    display: block;
    content-visibility: visible;
    height: auto;
  }

  body.reference-page .ref-source-note > :not(summary) {
    display: block;
  }

  body.reference-page .ref-source-note > summary {
    display: block;
    margin: 0 0 12pt;
    padding: 0 0 8pt;
    border-bottom: 1px solid var(--ref-line);
  }

  body.reference-page .ref-actions {
    display: block;
    margin-top: 12pt;
  }

  body.reference-page .pill,
  body.reference-page .pill:hover {
    display: inline;
    height: auto;
    min-height: 0;
    overflow: visible;
    border: 0;
    background: none;
    box-shadow: none;
    transform: none;
    text-decoration: underline;
  }

  body.reference-page .pill .ic {
    display: none;
  }

  body.reference-page .pill .lbl {
    display: inline;
    padding: 0;
    font-size: 11pt;
    line-height: inherit;
  }

  body.reference-page .ref-prose a:not(.pill) {
    color: #1A1C20;
  }

  body.reference-page .ref-prose a[href^="https://"]::after,
  body.reference-page .ref-prose a[href^="http://"]::after,
  body.reference-page .ref-doc-link::after {
    content: " (" attr(href) ")";
    font-size: 9pt;
    font-weight: 300;
    overflow-wrap: anywhere;
  }

  body.reference-page .ref-footer {
    display: block;
    margin-top: 24pt;
    padding: 12pt 0 0;
    background: transparent;
  }
}
