/* Veva Support theme: running text. Ported from the design system's class contract (components/bundle.css): the
   article column (vs-prose) styles what Heading, Paragraph (Markdown), List and Block quote render inside it, then the
   Paragraph's own markup and Veva's footnotes. */

/* ---------- Prose ---------- */
.vs-prose { max-width: 720px; font-size: 16px; line-height: 28px; }
.vs-prose > * { margin: 0; }
.vs-prose > * + * { margin-top: var(--space-4); }
.vs-prose h1 { font-weight: 800; font-size: 48px; line-height: 52px; letter-spacing: -1.8px; }
.vs-prose h2 { margin-top: var(--space-7); font-weight: 800; font-size: 32px; line-height: 38px; letter-spacing: -1px; }
.vs-prose h3 { margin-top: var(--space-6); font-weight: 700; font-size: 21px; line-height: 26px; letter-spacing: -0.4px; }
.vs-prose h2 + *, .vs-prose h3 + * { margin-top: var(--space-3); }
/* A code figure resets its own margins in code.css, which loads later, so the rhythm is restated for it. */
.vs-prose > * + .vs-code { margin-top: var(--space-4); }
.vs-prose > :is(h2, h3) + .vs-code { margin-top: var(--space-3); }
.vs-prose .vs-lead { font-size: 20px; line-height: 32px; color: var(--grey-600); }
/* Text lists only (Markdown, and the List component without a class): lists that components draw (tabs, paging,
   breadcrumbs, menus), and the unclassed lists inside them, keep their own layout and get no markers. */
.vs-prose :is(ul, ol):is(:not([class]), [class=""]):not(:is(.pagination, .navbar-nav, .veva-page-outline, .veva-tabs, .dd-menu, .form-steps-navigator) *) { padding-left: 24px; }
.vs-prose :is(ul, ol):is(:not([class]), [class=""]):not(:is(.pagination, .navbar-nav, .veva-page-outline, .veva-tabs, .dd-menu, .form-steps-navigator) *) > li + li { margin-top: 6px; }
.vs-prose ul:is(:not([class]), [class=""]):not(:is(.pagination, .navbar-nav, .veva-page-outline, .veva-tabs, .dd-menu, .form-steps-navigator) *) > li::marker { content: "\25C6  "; font-size: 10px; color: var(--pink-base); }
.vs-prose ol:is(:not([class]), [class=""]):not(:is(.pagination, .navbar-nav, .veva-page-outline, .veva-tabs, .dd-menu, .form-steps-navigator) *) > li::marker { font: 600 14px/1 var(--font-mono); color: var(--pink-base); }
.vs-prose blockquote { position: relative; margin-left: 0; margin-right: 0; margin-bottom: 0; padding: 0 0 0 44px; border: 0; font-size: 20px; line-height: 32px; color: var(--grey-black); }
.vs-prose * + blockquote { margin-top: var(--space-4); }
.vs-prose blockquote::before { content: "\201C"; position: absolute; left: 0; top: -6px; font-weight: 800; font-size: 64px; line-height: 1; color: var(--pink-base); }
.vs-prose blockquote > :first-child { margin-top: 0; }
.vs-prose blockquote > :last-child { margin-bottom: 0; }
.vs-prose blockquote footer { margin-top: var(--space-2); font-size: 14px; line-height: 22px; color: var(--grey-600); }
.vs-prose :not(pre) > code, .vs-code-inline { padding: 1px 6px; border-radius: var(--radius-sm); background: var(--grey-100); color: var(--grey-black); font-size: .875em; }
.vs-prose a code { color: var(--purple-base); background: var(--purple-50); }
.vs-prose hr { height: 1px; border: 0; background: var(--grey-200); margin: var(--space-7) 0; }
.vs-prose strong { font-weight: 700; }
.vs-prose .vs-fn { font: 600 11px/1 var(--font-mono); color: var(--pink-base); vertical-align: super; text-decoration: none; padding: 0 1px; }
.vs-prose table { width: 100%; }
@media (max-width: 768px) {
  .vs-prose h1 { font-size: 36px; line-height: 40px; letter-spacing: -1.2px; }
  .vs-prose h2 { font-size: 26px; line-height: 32px; letter-spacing: -0.6px; }
}

/* ---------- Paragraph (div.veva-paragraph) ----------
   Markdown wraps its text in p, lists, quotes and code inside the component; they follow the same rhythm as the
   article's own blocks. Zero specificity, so the prose rules above (h2 spacing) and every component's own win. */
:where(.vs .veva-paragraph) > :first-child { margin-top: 0; }
:where(.vs .veva-paragraph) > :last-child { margin-bottom: 0; }
:where(.vs-prose .veva-paragraph) > * { margin-top: 0; margin-bottom: 0; }
:where(.vs-prose .veva-paragraph) > * + * { margin-top: var(--space-4); }

/* Markdown tables in an article (a Data Table brings its own frame) */
.vs-prose table:not(.table-container table) { border-collapse: collapse; font-size: 15px; line-height: 22px; }
.vs-prose table:not(.table-container table) th { padding: 12px var(--space-4); text-align: left; background: var(--grey-50); border-bottom: 1px solid var(--grey-200); font: 500 12px/16px var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--grey-600); }
.vs-prose table:not(.table-container table) td { padding: 12px var(--space-4); border-bottom: 1px solid var(--grey-200); vertical-align: top; }

/* ---------- Footnotes ----------
   veva-footnote is a custom element in shadow DOM: the mark and the note are themed with its custom properties and
   ::part(); the list (veva-footnotes) is light DOM, in small text at the end. */
.vs veva-footnote { --veva-footnote-mark-color: var(--pink-base); --veva-footnote-note-background: var(--grey-black); --veva-footnote-note-color: var(--white); --veva-footnote-note-link-color: var(--pink-300); }
.vs veva-footnote::part(mark) { padding: 0 1px; font: 600 11px/1 var(--font-mono); vertical-align: super; }
.vs veva-footnote::part(note) { padding: var(--space-2) var(--space-3); border-radius: var(--radius-md); box-shadow: var(--shadow-overlay); font-family: var(--font-grotesk); font-size: 14px; line-height: 22px; }
.vs :is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) veva-footnote { --veva-footnote-mark-color: var(--pink-300); --veva-footnote-note-background: var(--white); --veva-footnote-note-color: var(--grey-black); --veva-footnote-note-link-color: var(--purple-base); }
.vs veva-footnotes { display: block; margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--grey-200); font-size: 14px; line-height: 22px; color: var(--grey-600); }
.vs .veva-footnotes__heading { margin: 0 0 var(--space-3); font: 500 12px/16px var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--grey-600); }
.vs .veva-footnotes__list { margin: 0; padding-left: 24px; font-size: 14px; line-height: 22px; }
.vs .veva-footnotes__item + .veva-footnotes__item { margin-top: 6px; }
.vs .veva-footnotes__item::marker { font: 600 12px/1 var(--font-mono); color: var(--pink-base); }
.vs .veva-footnotes__back { color: var(--purple-base); font-weight: 600; text-decoration: none; }
.vs .veva-footnotes__back:hover { color: var(--purple-800); }
.vs .veva-footnotes__text a { color: var(--purple-base); text-decoration: underline; text-underline-offset: 3px; }
.vs .veva-footnotes__text > p { display: inline; margin: 0; }
