/* Veva Support theme: base. Page grounds, reset, type helpers and the shared bits every component uses.
   Every rule sits under .vs (the layouts' root), so nothing leaks into the Veva editor's own UI. */

html { -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
body { margin: 0; background: var(--white); }
body:has(.vs-page--stage) { background: var(--grey-black); }
/* The Sign-in shell on its dark ground (Appearance Dark, or Auto in a dark browser): the same ground where a browser
   shows the body, past the page's edges when it is scrolled beyond them */
body:has(.vs-signin[data-scheme="dark"]) { background: var(--grey-black); }
@media (prefers-color-scheme: dark) { body:has(.vs-signin[data-scheme="auto"]) { background: var(--grey-black); } }

.vs { font-family: var(--font-grotesk); font-size: 16px; line-height: 26px; color: var(--grey-black); -webkit-font-smoothing: antialiased; font-kerning: normal; text-rendering: optimizeLegibility; }
.vs *, .vs *::before, .vs *::after { box-sizing: border-box; }
.vs img, .vs svg, .vs video { max-width: 100%; }
.vs img { height: auto; }
.vs :focus-visible { outline: 2px solid var(--indigo-base); outline-offset: 2px; }
.vs code, .vs kbd, .vs pre, .vs samp { font-family: var(--font-mono); font-variant-ligatures: none; }

/* Page */
.vs-page { min-height: 100vh; display: flex; flex-direction: column; background: var(--white); }
.vs-page--stage { background: var(--white); }
.vs-main { flex: 1; outline: none; }
.vs-page--bare { background: var(--white); }
.vs-skip { position: absolute; left: var(--space-4); top: -100px; z-index: 1000; padding: 10px var(--space-4); border-radius: var(--radius-pill); background: var(--grey-black); color: var(--white); font-weight: 600; text-decoration: none; }
.vs-skip:focus { top: var(--space-4); }

/* Dark grounds: anything inside them takes light ink and the amber focus ring */
.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer { color: var(--white); }
.vs-dark { background: var(--grey-black); }
:is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage, .vs-footer) :focus-visible { outline-color: var(--outline); }

/* Utilities */
.vs-sr, .vs .visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.vs-rule { height: 4px; background: linear-gradient(90deg, var(--secondary-blue) 0 33.33%, var(--purple-base) 33.33% 66.66%, var(--pink-base) 66.66%); }
/* One page width per template (the theme's Page width setting, --vs-page-width on .vs-page): the header, footer,
   sections and docs all use .vs-wrap, so their edges line up on every page. */
.vs-wrap { width: 100%; max-width: calc(var(--vs-page-width, var(--wrapper-max)) + 2 * var(--space-8)); margin: 0 auto; padding: 0 var(--space-8); }
.vs-wrap--wide { max-width: calc(var(--wrapper-max) + 2 * var(--space-8)); }
.vs-dots { background-image: radial-gradient(var(--grey-200) 1px, transparent 1.2px); background-size: 24px 24px; }
:is(.vs-dark, .vs-section--stage, .vs-panel--stage).vs-dots, :is(.vs-dark, .vs-section--stage, .vs-panel--stage) .vs-dots { background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.2px); }
.vs-icon { display: inline-block; flex: none; vertical-align: -0.125em; }
@media (max-width: 768px) { .vs-wrap { padding: 0 var(--space-4); } }

/* Type helpers (class picker: Heading, Paragraph) */
.vs .vs-eyebrow { font: 500 12px/16px var(--font-mono); letter-spacing: 1px; text-transform: uppercase; color: var(--pink-base); margin: 0; }
.vs :is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage) .vs-eyebrow { color: var(--pink-300); }
.vs .vs-display { font-weight: 800; font-size: 88px; line-height: 88px; letter-spacing: -3.6px; margin: 0; }
.vs .vs-display--xl { font-size: 104px; line-height: 96px; letter-spacing: -4.6px; }
.vs .vs-h1 { font-weight: 800; font-size: 48px; line-height: 52px; letter-spacing: -1.8px; margin: 0; }
.vs .vs-h2 { font-weight: 800; font-size: 60px; line-height: 62px; letter-spacing: -2.4px; margin: 0; }
.vs .vs-h3 { font-weight: 800; font-size: 26px; line-height: 32px; letter-spacing: -0.6px; margin: 0; }
.vs .vs-h4 { font-weight: 700; font-size: 21px; line-height: 26px; letter-spacing: -0.4px; margin: 0; }
.vs .vs-lead { font-size: 20px; line-height: 32px; margin: 0; }
.vs .vs-sub { font-size: 18px; line-height: 30px; color: var(--grey-600); margin: 0; }
.vs .vs-small { font-size: 14px; line-height: 22px; }
.vs .vs-muted { color: var(--grey-600); }
.vs :is(.vs-dark, .vs-section--stage, .vs-panel--stage, .vs-card--stage) :is(.vs-sub, .vs-muted, .vs-lead) { color: var(--grey-200); }
/* A display headline may run wider than a section head's reading width; its lead stays readable. */
.vs .vs-head:has(.vs-display) { max-width: 1120px; }
.vs .vs-head:has(.vs-display) .vs-sub { max-width: 640px; }
@media (max-width: 768px) {
  .vs .vs-display, .vs .vs-display--xl { font-size: 52px; line-height: 54px; letter-spacing: -2px; }
  .vs .vs-h2 { font-size: 40px; line-height: 44px; letter-spacing: -1.4px; }
  .vs .vs-h1 { font-size: 36px; line-height: 40px; letter-spacing: -1.2px; }
}

/* Icon cube (Shared/IconCube.razor) */
.vs-cube { position: relative; display: inline-block; width: var(--s, 56px); height: calc(var(--s, 56px) * 64 / 56); flex: none; }
.vs-cube svg { display: block; width: 100%; height: 100%; }
.vs-cube__gl { position: absolute; left: 50%; top: 28%; display: grid; place-items: center; width: calc(var(--s, 56px) * .34); height: calc(var(--s, 56px) * .34); font-size: calc(var(--s, 56px) * .3); color: var(--white); transform: translate(-50%, -50%) matrix(0.866, 0.5, -0.866, 0.5, 0, 0); }
.vs-cube__gl svg, .vs-cube__gl i { width: 100%; height: 100%; }
.vs-cube--ink-dark .vs-cube__gl { color: var(--grey-black); }

@media (prefers-reduced-motion: reduce) {
  .vs *, .vs *::before, .vs *::after { transition-duration: 0s !important; animation-duration: 0s !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
