/* Veva Support theme: code. Ported from the design system's class contract (components/bundle.css): the code block
   (figure.vs-code with its bar), the command line (vs-cmd), and pre/code as Markdown and the Code Sample render it,
   with the .keyword and .string spans on grey-black. */

/* ---------- Code block ---------- */
.vs-code { margin: 0; border-radius: var(--radius-lg); background: var(--grey-black); color: var(--white); overflow: hidden; }
.vs-code__bar { display: flex; align-items: center; gap: var(--space-3); height: 48px; padding: 0 8px 0 var(--space-5); border-bottom: 1px solid var(--grey-900); }
.vs-code__file { display: inline-flex; align-items: center; gap: var(--space-2); font: 400 13px/1 var(--font-mono); color: var(--grey-200); }
.vs-code__tabs { display: flex; gap: 2px; margin-left: var(--space-3); }
.vs-code__tabs button { height: 30px; padding: 0 12px; border: 0; border-radius: var(--radius-pill); background: none; color: var(--grey-200); font: 500 13px/1 var(--font-mono); cursor: pointer; }
.vs-code__tabs button[aria-selected="true"] { background: var(--grey-900); color: var(--white); }
.vs-code__copy { margin-left: auto; display: inline-flex; align-items: center; gap: var(--space-2); height: 32px; padding: 0 12px; border: 1px solid var(--grey-600); border-radius: var(--radius-pill); background: none; color: var(--grey-200); font: 500 13px/1 var(--font-grotesk); cursor: pointer; transition: border-color .15s ease-out, color .15s ease-out; }
.vs-code__copy:hover { border-color: var(--grey-200); color: var(--white); }
.vs-code__copy.is-done { border-color: var(--secondary-green); color: var(--white); }
.vs-code pre { margin: 0; padding: var(--space-5); overflow: auto; font-size: 14px; line-height: 22px; tab-size: 4; }
.vs-code pre .ln { display: inline-block; width: 2.2em; margin-right: var(--space-4); text-align: right; color: var(--grey-400); user-select: none; }
.vs-code .hl { display: block; margin: 0 calc(var(--space-5) * -1); padding: 0 var(--space-5); background: rgba(203, 0, 132, .18); box-shadow: inset 3px 0 0 var(--pink-base); }
.vs-code .keyword, .vs-code .k { color: var(--pink-300); }
.vs-code .string, .vs-code .s { color: var(--secondary-blue); }
.vs-code .type, .vs-code .t { color: var(--purple-100); }
.vs-code .number, .vs-code .attr, .vs-code .n { color: var(--outline); }
.vs-code .comment, .vs-code .c { color: var(--secondary-green); font-style: italic; }
.vs-code .punct, .vs-code .p { color: var(--grey-200); }

/* ---------- pre/code without a frame: Markdown fences and the Code Sample's pre > code ----------
   Always on grey-black, mono 14/22 with ligatures off, scrolling inside the block; never wrapped. */
.vs pre { overflow: auto; padding: var(--space-5); border-radius: var(--radius-lg); background: var(--grey-black); color: var(--white); font-size: 14px; line-height: 22px; tab-size: 4; white-space: pre; }
.vs pre > code { display: block; padding: 0; border-radius: 0; background: none; color: inherit; font-size: inherit; white-space: inherit; }
.vs .vs-code pre { border-radius: 0; background: none; }

/* Syntax colours, all at least 4.5:1 on grey-black */
.vs :is(.vs-code, pre) :is(.keyword, .k) { color: var(--pink-300); }
.vs :is(.vs-code, pre) :is(.string, .s) { color: var(--secondary-blue); }
.vs :is(.vs-code, pre) :is(.type, .t) { color: var(--purple-100); }
.vs :is(.vs-code, pre) :is(.number, .attr, .n) { color: var(--outline); }
.vs :is(.vs-code, pre) :is(.comment, .c) { color: var(--secondary-green); font-style: italic; }
.vs :is(.vs-code, pre) :is(.punct, .p) { color: var(--grey-200); }

/* The highlighter's own names in markup and CSS samples (a razor fence is coloured as html), on the same colours */
.vs :is(.vs-code, pre) :is(.htmlElementName, .xmlName, .cssSelector, .preprocessorKeyword) { color: var(--pink-300); }
.vs :is(.vs-code, pre) :is(.htmlAttributeValue, .xmlAttributeValue, .cssPropertyValue, .stringCSharpVerbatim) { color: var(--secondary-blue); }
.vs :is(.vs-code, pre) :is(.htmlAttributeName, .xmlAttribute, .cssPropertyName) { color: var(--outline); }
.vs :is(.vs-code, pre) :is(.htmlComment, .xmlComment, .xmlDocComment, .xmlDocTag) { color: var(--secondary-green); font-style: italic; }
.vs :is(.vs-code, pre) :is(.htmlTagDelimiter, .htmlOperator, .xmlDelimiter, .xmlAttributeQuotes) { color: var(--grey-200); }

/* ---------- Command line ---------- */
.vs-cmd { display: inline-flex; align-items: center; gap: var(--space-3); height: 48px; max-width: 100%; padding: 0 6px 0 var(--space-4); border: 1px solid var(--grey-400); border-radius: var(--radius-pill); background: var(--white); color: var(--grey-black); font: 400 14px/1 var(--font-mono); white-space: nowrap; }
.vs-cmd__prompt { color: var(--pink-base); user-select: none; }
.vs-cmd b { font-weight: 600; }
.vs-cmd .vs-iconbtn { width: 36px; height: 36px; margin-left: var(--space-2); }
:is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) .vs-cmd, .vs-cmd--dark { background: var(--grey-black); border-color: var(--grey-600); color: var(--grey-200); }
:is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) .vs-cmd b, .vs-cmd--dark b { color: var(--white); }
:is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) .vs-cmd__prompt, .vs-cmd--dark .vs-cmd__prompt { color: var(--pink-300); }
