/* ==========================================================================
   Vectrieve public site: tokens, grid and shell
   --------------------------------------------------------------------------
   Loaded only by templates/vt_public.html, and every rule is scoped to
   body.vt-site, so the signed in app (vt_base.html) is untouched. It sits on
   top of os.css and vectrieve.css: the OS tokens are re-pointed at the site
   palette below, so OS fields, buttons and flashes pick it up without any
   OS component being restyled.

   The direction is a survey sheet of your company (see
   docs/redesign/DESIGN.md and the redesign plan):
     - ground: cool drafting-film grey, not cream; slate ink, not black
     - one accent, Vectrieve blue, with one job: "this matched" / "you are
       here" (hits, the current page, focus, the one primary button a view)
     - Helvetica for words, Fragment Mono only for real data (paths, prices,
       counts, ids, code)
     - light first; dark is a choice the visitor makes (vt-site.js)
   ========================================================================== */

/* ---------- Faces -------------------------------------------------------- */

@font-face {
  font-family: 'VtHelvetica';
  src: url('../fonts/Helvetica.woff2') format('woff2'), url('../fonts/Helvetica.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'VtHelvetica';
  src: url('../fonts/Helvetica-Bold.woff2') format('woff2'), url('../fonts/Helvetica-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
/* Fragment Mono, Wei Huang, SIL OFL 1.1 (static/fonts/FragmentMono-OFL.txt) */
@font-face {
  font-family: 'VtMono';
  src: url('../fonts/FragmentMono-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ------------------------------------------------------- */

body.vt-site {
  /* Light, the default */
  --s-ground: #ECEFEE;        /* survey film */
  --s-surface: #F8F9F9;       /* floating tools only */
  --s-ink: #1C2B31;           /* slate linework, 12.6:1 on ground */
  --s-muted: #43535A;         /* 6.9:1 on ground, 7.6:1 on surface */
  --s-rule: rgba(28, 43, 49, 0.14);
  --s-control: rgba(28, 43, 49, 0.56);   /* field edges, 3.3:1 (WCAG 1.4.11) */
  --s-fill: rgba(28, 43, 49, 0.05);
  --s-accent: #2148B8;        /* 6.8:1 on ground */
  --s-on-accent: #FFFFFF;     /* 7.8:1 on the accent */
  --s-accent-wash: rgba(33, 72, 184, 0.10);

  /* Type: Helvetica at two weights, Fragment Mono for data */
  --s-font: 'VtHelvetica', 'HelveticaCustom', Helvetica, 'Helvetica Neue', Arial, sans-serif;
  --s-mono: 'VtMono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --s-text-meta: 0.875rem;    /* 14 */
  --s-text-body: 1.0625rem;   /* 17 */
  --s-text-h2: 1.75rem;       /* 28, 1.65x body */
  --s-text-h1: 2.5rem;        /* 40, 1.43x */
  --s-text-display: 4rem;     /* 64, 1.6x */

  /* Grid: 12 columns, 24px margins on a phone, 40px from 768px */
  --s-margin: 1.5rem;
  --s-gutter: 1.5rem;
  --s-max: 90rem;
  --s-head-h: 3.5rem;
  --s-radius: 10px;

  /* The OS tokens, re-pointed at the site palette */
  --os-bg: var(--s-ground);
  --os-surface: var(--s-surface);
  --os-surface-2: var(--s-ground);
  --os-rail: var(--s-ground);
  --os-fill: var(--s-fill);
  --os-fill-strong: rgba(28, 43, 49, 0.09);
  --os-line: var(--s-rule);
  --os-line-strong: var(--s-control);
  --os-ink: var(--s-ink);
  --os-ink-muted: var(--s-muted);
  --os-ink-dim: var(--s-muted);
  --os-focus: var(--s-accent);
  --os-font: var(--s-font);
  --os-font-mono: var(--s-mono);
  --os-radius-md: var(--s-radius);
  --os-radius-lg: var(--s-radius);
  --vt-accent: var(--s-accent);
  --vt-accent-wash: var(--s-accent-wash);
  --vt-accent-line: rgba(33, 72, 184, 0.34);
  --vt-code-bg: var(--s-surface);

  font-size: var(--s-text-body);
  line-height: 1.55;
}
:root[data-theme='dark'] body.vt-site {
  --s-ground: #0E1417;
  --s-surface: #151D21;
  --s-ink: #E3E9EA;           /* 15.1:1 */
  --s-muted: #A9B6BA;         /* 8.9:1 */
  --s-rule: rgba(227, 233, 234, 0.14);
  --s-control: rgba(227, 233, 234, 0.46);  /* 3.9:1 */
  --s-fill: rgba(227, 233, 234, 0.05);
  --s-accent: #8FB0F5;        /* 8.6:1 */
  --s-on-accent: #0E1417;
  --s-accent-wash: rgba(143, 176, 245, 0.14);
  --os-fill-strong: rgba(227, 233, 234, 0.09);
  --vt-accent-line: rgba(143, 176, 245, 0.42);
}
@media (min-width: 768px) {
  body.vt-site { --s-margin: 2.5rem; }
}
html:has(body.vt-site) { background: var(--s-ground, #ECEFEE); }
:root[data-theme='dark']:has(body.vt-site) { background: #0E1417; color-scheme: dark; }
:root[data-theme='light']:has(body.vt-site) { color-scheme: light; }

body.vt-site {
  background: var(--s-ground);
  color: var(--s-ink);
  font-family: var(--s-font);
}

/* Focus: the accent ring, always visible on keyboard focus */
body.vt-site :focus-visible {
  outline: 2px solid var(--s-accent);
  outline-offset: 2px;
}

/* Mono is for real data only: give it a class, never a costume */
body.vt-site code,
body.vt-site pre,
body.vt-site .vt-s-data { font-family: var(--s-mono); font-size: 0.9em; font-variant-numeric: tabular-nums; }

body.vt-site a { text-underline-offset: 0.18em; text-decoration-thickness: 1px; }

/* ---------- Buttons: one primary a view, in the accent ------------------- */

body.vt-site .os-btn {
  font-size: var(--s-text-meta);
  min-height: 2.5rem;
  padding-inline: 1rem;
  border-radius: var(--s-radius);
}
body.vt-site .os-btn-sm { min-height: 2.125rem; padding-inline: 0.75rem; }
body.vt-site .os-btn-primary {
  background: var(--s-accent);
  border-color: var(--s-accent);
  color: var(--s-on-accent);
}
body.vt-site .os-btn-primary:hover { background: var(--s-accent); opacity: 0.9; }
body.vt-site .os-input,
body.vt-site .os-select,
body.vt-site .os-textarea { font-size: 1rem; min-height: 2.75rem; }   /* 16px: no iOS zoom */
body.vt-site .os-label { font-size: var(--s-text-meta); font-weight: 700; }

/* ---------- Grid --------------------------------------------------------- */

.vt-s-wrap {
  width: 100%;
  max-width: var(--s-max);
  margin-inline: auto;
  padding-inline: var(--s-margin);
}
.vt-s-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--s-gutter);
}
.vt-s-grid > * { grid-column: 1 / -1; min-width: 0; }

/* ---------- Header ------------------------------------------------------- */

body.vt-site .vt-public { min-height: 100vh; display: flex; flex-direction: column; }
body.vt-site .vt-public-head {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--s-ground);
  border-bottom: 1px solid var(--s-rule);
}
body.vt-site .vt-public-head-inner {
  max-width: var(--s-max);
  padding-inline: var(--s-margin);
  min-height: var(--s-head-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
body.vt-site .vt-wordmark { font-size: 1.0625rem; font-weight: 700; letter-spacing: 0; color: var(--s-ink); }
body.vt-site .vt-public-nav { gap: 0.25rem; flex-wrap: nowrap; }
body.vt-site .vt-public-nav a { white-space: nowrap; }
body.vt-site .vt-public-nav a:not(.os-btn) {
  font-size: 0.9375rem;
  color: var(--s-muted);
  padding: 0.5rem 0.625rem;
  border-radius: 6px;
}
body.vt-site .vt-public-nav a:not(.os-btn):hover { color: var(--s-ink); }
/* "You are here": the accent's job in the header */
body.vt-site .vt-public-nav a[aria-current='page'] {
  color: var(--s-ink);
  box-shadow: inset 0 -2px 0 var(--s-accent);
  border-radius: 0;
}
body.vt-site .vt-public-nav .os-btn { margin-left: 0.5rem; }
@media (max-width: 599px) {
  body.vt-site .vt-public-nav .vt-hide-phone { display: none; }
  body.vt-site .vt-public-nav a:not(.os-btn) { padding-inline: 0.375rem; font-size: 0.875rem; }
  body.vt-site .vt-public-nav .os-btn { margin-left: 0.25rem; }
}

/* ---------- Main and footer --------------------------------------------- */

body.vt-site .vt-public-main {
  flex: 1;
  max-width: var(--s-max);
  padding-inline: var(--s-margin);
  padding-block: 3rem 4.5rem;
}
body.vt-site .vt-public-main.vt-s-flush { max-width: none; padding: 0; }

body.vt-site .vt-public-foot { border-top: 1px solid var(--s-rule); }
body.vt-site .vt-public-foot-inner {
  max-width: var(--s-max);
  padding-inline: var(--s-margin);
  padding-block: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: var(--s-text-meta);
  color: var(--s-muted);
}
body.vt-site .vt-public-foot nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.25rem 1.25rem; }
body.vt-site .vt-public-foot a { color: var(--s-muted); text-decoration: none; }
body.vt-site .vt-public-foot a:hover { color: var(--s-ink); text-decoration: underline; }

.vt-s-theme {
  font: inherit;
  color: var(--s-muted);
  background: none;
  border: 1px solid var(--s-rule);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  cursor: pointer;
}
.vt-s-theme:hover { color: var(--s-ink); border-color: var(--s-control); }

/* ---------- Shared type -------------------------------------------------- */

body.vt-site h1 { font-size: var(--s-text-h1); line-height: 1.1; font-weight: 700; letter-spacing: -0.015em; }
body.vt-site h2 { font-weight: 700; }
body.vt-site .vt-lede { font-size: var(--s-text-body); color: var(--s-muted); max-width: 58ch; }
body.vt-site .os-page-head h1 { font-size: var(--s-text-h1); font-weight: 700; }
body.vt-site .os-page-head .os-page-sub { font-size: var(--s-text-body); }
body.vt-site .os-section-label { font-size: 1.0625rem; }
body.vt-site .vt-flash { border-radius: var(--s-radius); font-size: var(--s-text-meta); }

/* ==========================================================================
   Pages
   ========================================================================== */

/* ---------- Home: the live map is the whole first screen ---------------- */

/* The section slides up under the sticky header, so the map fills the
   screen edge to edge; the header turns to glass while it sits over it. */
.vt-home-map {
  position: relative;
  margin-top: calc(-1 * var(--s-head-h));
  height: 100svh;
  min-height: 38rem;
  border-bottom: 1px solid var(--s-rule);
}
.vt-home-canvas, .vt-home-canvas.vt-map { position: absolute; inset: 0; --map-tools-left: var(--s-margin); --map-tools-bottom: 1.25rem; }
.vt-home-copy {
  position: absolute;
  z-index: 2;
  top: calc(var(--s-head-h) + 3.5rem);
  left: var(--s-margin);
  width: min(33rem, calc(100% - 2 * var(--s-margin)));
}
body.vt-site .vt-home-copy h1 {
  font-size: clamp(2.75rem, 8vw, var(--s-text-display));
  line-height: 1;
  letter-spacing: -0.025em;
  margin: 0 0 1.25rem;
}
.vt-home-copy > p { font-size: 1.1875rem; line-height: 1.45; color: var(--s-muted); max-width: 30rem; margin: 0 0 1.75rem; }
.vt-home-ask {
  background: var(--s-surface);
  border: 1px solid var(--s-rule);
  border-radius: var(--s-radius);
  padding: 1rem;
}
.vt-home-ask-label { display: block; font-size: var(--s-text-meta); font-weight: 700; margin-bottom: 0.5rem; }
.vt-home-ask-row { display: flex; gap: 0.5rem; }
.vt-home-ask-row .os-input { flex: 1; min-width: 0; background: var(--s-ground); }
.vt-home-ask-row .os-btn { min-height: 2.75rem; padding-inline: 1.25rem; }
.vt-home-ask-status { min-height: 1.25rem; margin: 0.5rem 0 0; font-size: var(--s-text-meta); color: var(--s-muted); }
.vt-home-ask-status:empty { min-height: 0; margin: 0; }
.vt-home-ask-status.is-error { color: var(--os-danger, #b3261e); }
.vt-home-presets {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.125rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--s-rule);
  font-size: var(--s-text-meta);
}
.vt-home-presets span { color: var(--s-muted); margin-bottom: 0.125rem; }
.vt-home-presets button {
  font: inherit;
  color: var(--s-ink);
  background: none;
  border: 0;
  padding: 0.25rem 0;
  text-align: left;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: var(--s-control);
  text-underline-offset: 0.2em;
}
.vt-home-presets button:hover { text-decoration-color: currentColor; }
.vt-home-noscript { margin-top: 1rem; font-size: var(--s-text-meta); }
.vt-home-panel {
  position: absolute;
  z-index: 2;
  top: calc(var(--s-head-h) + 1.5rem);
  right: var(--s-margin);
  bottom: 4rem;
  width: min(24rem, 34vw);
}
.vt-home-legend {
  position: absolute;
  z-index: 2;
  right: var(--s-margin);
  bottom: 1.25rem;
  margin: 0;
  font-size: 0.8125rem;
  color: var(--s-muted);
  text-align: right;
}
.vt-home-legend[hidden] { display: none; }
@media (max-width: 959px) {
  .vt-home-map { height: auto; min-height: 0; }
  .vt-home-canvas, .vt-home-canvas.vt-map { position: relative; height: 100svh; min-height: 40rem; --map-tools-left: auto; --map-tools-bottom: 1rem; }
  .vt-home-canvas .vt-map-tools { left: auto; right: var(--s-margin); }
  .vt-home-copy { top: calc(var(--s-head-h) + 1.25rem); }
  body.vt-site .vt-home-copy h1 { margin-bottom: 0.75rem; }
  .vt-home-copy > p { font-size: var(--s-text-body); margin-bottom: 1rem; }
  .vt-home-ask { padding: 0.75rem; }
  .vt-home-presets {
    margin-top: 0.5rem; padding-top: 0.5rem;
    flex-direction: row; align-items: baseline; gap: 1rem;
    overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  }
  .vt-home-presets button { white-space: nowrap; }
  .vt-home-panel { position: static; width: auto; margin: 1rem var(--s-margin) 1.5rem; max-height: 70svh; }
  .vt-home-map { display: flex; flex-direction: column; }
  .vt-home-canvas { order: 0; }
  .vt-home-legend { order: 1; position: static; margin: 0.75rem var(--s-margin) 0; text-align: left; font-size: 0.75rem; }
  .vt-home-panel { order: 2; }
}

/* Lower sections: a dense list, the map as access, a code column, a close */
.vt-home-reads, .vt-home-access, .vt-home-connect { padding-block: 5rem 1rem; }
body.vt-site .vt-home-reads h2,
body.vt-site .vt-home-access h2,
body.vt-site .vt-home-connect h2 { font-size: var(--s-text-h2); line-height: 1.2; margin: 0 0 0.75rem; }
.vt-home-lede { color: var(--s-muted); margin: 0 0 2rem; max-width: 46ch; }
.vt-home-defs { margin: 0; border-top: 1px solid var(--s-ink); }
.vt-home-defs > div { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem 1.5rem; padding-block: 1rem; border-bottom: 1px solid var(--s-rule); }
.vt-home-defs dt { font-weight: 700; }
.vt-home-defs dd { margin: 0; color: var(--s-muted); max-width: 64ch; }
@media (min-width: 768px) {
  .vt-home-defs > div { grid-template-columns: 14rem minmax(0, 1fr); }
}
@media (min-width: 1024px) {
  .vt-home-reads h2, .vt-home-lede { grid-column: 1 / span 6; }
  .vt-home-defs { grid-column: 1 / span 10; }
}

.vt-home-access .vt-s-grid { row-gap: 2rem; align-items: start; }
.vt-home-access-copy p { color: var(--s-muted); max-width: 46ch; }
.vt-home-access-pick { border: 0; margin: 1.5rem 0 0; padding: 0; }
.vt-home-access-pick legend { font-size: var(--s-text-meta); font-weight: 700; margin-bottom: 0.5rem; padding: 0; }
.vt-home-access-pick > div { border-top: 1px solid var(--s-rule); }
.vt-home-access-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding-block: 0.625rem;
  border-bottom: 1px solid var(--s-rule);
  cursor: pointer;
}
.vt-home-access-item input { width: 1.125rem; height: 1.125rem; accent-color: var(--s-accent); margin: 0; }
.vt-home-access-item .vt-s-data { color: var(--s-muted); font-size: 0.8125rem; }
.vt-home-access-wait { color: var(--s-muted); font-size: var(--s-text-meta); padding-top: 0.625rem; margin: 0; }
.vt-home-access-note { font-size: var(--s-text-meta); margin-top: 1rem; }
.vt-home-access-map { position: relative; height: 24rem; border: 1px solid var(--s-rule); border-radius: var(--s-radius); }
@media (min-width: 1024px) {
  .vt-home-access-copy { grid-column: 1 / span 4; }
  .vt-home-access-map { grid-column: 6 / span 7; height: 30rem; }
}

@media (min-width: 1024px) {
  .vt-home-connect-body { grid-column: 3 / span 7; }
}
.vt-home-connect-body > p { color: var(--s-muted); max-width: 58ch; }
.vt-home-code { position: relative; margin: 1.25rem 0 1rem; }
.vt-home-code pre {
  margin: 0;
  padding: 1rem 5.5rem 1rem 1rem;
  background: var(--s-surface);
  border: 1px solid var(--s-rule);
  border-radius: var(--s-radius);
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-x: auto;
  white-space: pre;
}
.vt-home-code .os-btn { position: absolute; top: 0.625rem; right: 0.625rem; }
.vt-home-connect-more { font-size: var(--s-text-meta); }
@media (max-width: 599px) {
  .vt-home-code pre { padding-right: 1rem; }
  .vt-home-code .os-btn { position: static; margin-top: 0.5rem; }
}

.vt-s-home-close {
  margin-top: 5rem;
  padding-block: 3rem 4rem;
  border-top: 1px solid var(--s-rule);
}
.vt-s-home-close p { font-size: var(--s-text-h2); font-weight: 700; line-height: 1.2; max-width: 22ch; margin-bottom: 1.5rem; }
.vt-s-home-close .os-row { gap: 1rem; align-items: center; }

/* The header over the map: the one glass surface on the site, only while it
   sits over the map, with a solid fallback. */
body.vt-site .vt-public-head.is-over-map {
  background: color-mix(in srgb, var(--s-ground) 72%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(18px); /* ai-tell-ok: S6 declared house glass */
  backdrop-filter: saturate(160%) blur(18px); /* ai-tell-ok: S6 declared house glass, header over the map only */
  border-bottom-color: transparent;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { /* ai-tell-ok: S6 solid fallback */
  body.vt-site .vt-public-head.is-over-map { background: var(--s-ground); }
}
@media (prefers-reduced-transparency: reduce) {
  body.vt-site .vt-public-head.is-over-map { background: var(--s-ground); -webkit-backdrop-filter: none; backdrop-filter: none; } /* ai-tell-ok: S6 solid fallback */
}

/* The still frame of the demo map beside sign in and create account */
.vt-s-still { display: flex; flex-direction: column; gap: 0.75rem; flex: 1; margin: 0; min-height: 0; }
.vt-s-still-map { flex: 1; min-height: 0; border: 1px solid var(--s-rule); border-radius: var(--s-radius); }
.vt-s-still figcaption { font-size: var(--s-text-meta); color: var(--s-muted); max-width: 60ch; }

/* ---------- Pricing ------------------------------------------------------ */

.vt-s-pricing-head { margin-bottom: 2.5rem; }
.vt-s-pricing-head h1 { margin-bottom: 1rem; }
@media (min-width: 1024px) {
  .vt-s-pricing-head > div { grid-column: 1 / span 7; }
  .vt-s-pricing-body { grid-column: 1 / span 10; }
}
.vt-s-seats {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  padding-block: 1rem;
  margin-bottom: 1.5rem;
  border-block: 1px solid var(--s-rule);
}
.vt-s-seats label { font-weight: 700; }
.vt-s-seats input {
  width: 6.5rem;
  font-family: var(--s-mono);
  font-variant-numeric: tabular-nums;
}
.vt-s-seats p { color: var(--s-muted); font-size: var(--s-text-meta); flex-basis: 100%; }
@media (min-width: 760px) { .vt-s-seats p { flex-basis: auto; } }

body.vt-site .vt-plans { font-size: 0.9375rem; }
body.vt-site .vt-plans th,
body.vt-site .vt-plans td { border-bottom: 1px solid var(--s-rule); padding: 0.75rem 1rem 0.75rem 0; vertical-align: top; text-align: left; }
body.vt-site .vt-plans tbody td { font-variant-numeric: tabular-nums; }
body.vt-site .vt-plans tbody th { color: var(--s-muted); width: 15rem; font-weight: 400; }
body.vt-site .vt-plans thead th { font-weight: 400; padding-bottom: 1.25rem; }
body.vt-site .vt-plan-name { font-size: 1.0625rem; font-weight: 700; }
body.vt-site .vt-plan-price {
  font-family: var(--s-mono);
  font-size: var(--s-text-h2);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-top: 0.5rem;
}
body.vt-site .vt-plan-unit { font-family: var(--s-font); font-size: var(--s-text-meta); letter-spacing: 0; display: block; }
body.vt-site .vt-plan-for { font-size: var(--s-text-meta); color: var(--s-muted); max-width: 20ch; }
body.vt-site .vt-plans .vt-no,
body.vt-site .vt-plan-card .vt-no { color: var(--s-muted); }
.vt-s-total-row th, .vt-s-total-row td { background: var(--s-fill); }
.vt-s-total-row th { padding-left: 0.75rem !important; }
.vt-s-total { font-family: var(--s-mono); font-size: 1.0625rem; color: var(--s-ink); font-variant-numeric: tabular-nums; }
.vt-s-total.is-na { font-family: var(--s-font); font-size: 0.9375rem; color: var(--s-muted); }
.vt-s-total-note { display: block; font-size: 0.8125rem; color: var(--s-muted); margin-top: 0.15rem; }
body.vt-site .vt-plans tfoot td { border-bottom: 0; padding-top: 1.25rem; }
body.vt-site .vt-plan-card { border-top: 1px solid var(--s-ink); padding-top: 1rem; }
body.vt-site .vt-plan-card dl > div { font-size: 0.9375rem; border-bottom-color: var(--s-rule); }
body.vt-site .vt-plan-card .vt-s-total-line { background: var(--s-fill); padding-inline: 0.5rem; }
body.vt-site .vt-plans-phone { gap: 2.5rem; }
.vt-s-addons { margin-top: 3.5rem; }
.vt-s-addons h2 { font-size: var(--s-text-h2); margin-bottom: 0.5rem; }
.vt-s-addons > p { color: var(--s-muted); margin-bottom: 1rem; max-width: 58ch; }
body.vt-site .vt-addons td, body.vt-site .vt-addons th { font-size: 0.9375rem; border-bottom-color: var(--s-rule); }
body.vt-site .vt-addons td:last-child { font-variant-numeric: tabular-nums; }

/* ---------- Docs: a sticky ruled index beside a 68ch column -------------- */

.vt-s-docs { row-gap: 2rem; }
.vt-s-docs-index { font-size: 0.9375rem; }
.vt-s-docs-index h2 { font-size: var(--s-text-meta); font-weight: 700; color: var(--s-muted); margin-bottom: 0.5rem; }
.vt-s-docs-index ol { border-top: 1px solid var(--s-rule); }
.vt-s-docs-index li { border-bottom: 1px solid var(--s-rule); }
.vt-s-docs-index a {
  display: block;
  padding: 0.55rem 0;
  color: var(--s-ink);
  text-decoration: none;
}
.vt-s-docs-index a:hover { text-decoration: underline; }
.vt-s-docs-index a[aria-current='true'] { color: var(--s-accent); box-shadow: inset 2px 0 0 var(--s-accent); padding-left: 0.75rem; }
@media (min-width: 960px) {
  .vt-s-docs-index {
    grid-column: 1 / span 3;
    position: sticky;
    top: calc(var(--s-head-h) + 2rem);
    align-self: start;
    max-height: calc(100vh - var(--s-head-h) - 4rem);
    overflow: auto;
  }
  .vt-s-docs-body { grid-column: 4 / span 8; }
}
@media (min-width: 1280px) {
  .vt-s-docs-body { grid-column: 5 / span 7; }
}
.vt-s-docs-body { max-width: 68ch; }
.vt-s-docs-body h1 { margin-bottom: 1rem; }
.vt-s-docs-body > p:first-of-type { font-size: 1.1875rem; color: var(--s-muted); }
.vt-s-docs-body section { padding-top: 2.5rem; scroll-margin-top: calc(var(--s-head-h) + 1rem); }
.vt-s-docs-body h2 { font-size: var(--s-text-h2); line-height: 1.2; margin: 0 0 1rem; }
.vt-s-docs-body h3 { font-size: var(--s-text-body); font-weight: 700; margin: 1.75rem 0 0.5rem; }
.vt-s-docs-body p, .vt-s-docs-body li, .vt-s-docs-body dd { font-size: var(--s-text-body); line-height: 1.6; }
.vt-s-docs-body p { margin: 0 0 1rem; }
.vt-s-docs-body ul { margin: 0 0 1rem; padding-left: 1.25rem; list-style: disc; }
.vt-s-docs-body li { margin-bottom: 0.5rem; }
.vt-s-docs-body dl { margin: 0; border-top: 1px solid var(--s-rule); }
.vt-s-docs-body dt { font-weight: 700; padding-top: 0.75rem; }
.vt-s-docs-body dd { margin: 0.25rem 0 0; padding-bottom: 0.75rem; border-bottom: 1px solid var(--s-rule); color: var(--s-muted); }
.vt-s-docs-body code { font-size: 0.875em; background: var(--s-fill); padding: 0.05em 0.3em; border-radius: 4px; }
.vt-s-docs-body pre {
  font-size: 0.875rem;
  line-height: 1.6;
  background: var(--s-surface);
  border: 1px solid var(--s-rule);
  border-radius: var(--s-radius);
  padding: 1rem;
  overflow-x: auto;
  margin: 0 0 1rem;
}
.vt-s-docs-body table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.vt-s-docs-body th, .vt-s-docs-body td { text-align: left; vertical-align: top; padding: 0.6rem 1rem 0.6rem 0; border-bottom: 1px solid var(--s-rule); }
.vt-s-docs-body thead th { font-size: var(--s-text-meta); color: var(--s-muted); font-weight: 700; }
.vt-s-docs-body .vt-routes dt { font-family: var(--s-mono); font-weight: 400; font-size: 0.9375rem; }
.vt-s-docs-body .vt-method { font-family: var(--s-mono); font-size: 0.8125rem; color: var(--s-muted); margin-right: 0.5rem; }

/* ---------- Sign in and create account ----------------------------------- */

.vt-s-sign { row-gap: 2.5rem; align-items: start; }
.vt-s-sign-form { max-width: 28rem; }
.vt-s-sign-form h1 { margin-bottom: 0.5rem; }
.vt-s-sign-form .vt-lede { margin-bottom: 1.75rem; }
.vt-s-sign-aside { display: none; }
@media (min-width: 960px) {
  .vt-s-sign-form { grid-column: 1 / span 5; max-width: none; }
  .vt-s-sign-aside {
    display: flex;
    grid-column: 6 / span 7;
    position: sticky;
    top: calc(var(--s-head-h) + 1.5rem);
    min-height: 34rem;
    height: calc(100vh - var(--s-head-h) - 6rem);
    max-height: 46rem;
  }
}
@media (min-width: 1200px) {
  .vt-s-sign-form { grid-column: 1 / span 4; }
  .vt-s-sign-aside { grid-column: 6 / span 7; }
}
.vt-s-sign-form .vt-or { font-size: var(--s-text-meta); color: var(--s-muted); }
.vt-s-sign-form .vt-or::before, .vt-s-sign-form .vt-or::after { border-top-color: var(--s-rule); }
.vt-s-sign-form .os-field { margin-bottom: 1.125rem; }
.vt-s-sign-form .vt-auth-alt { font-size: 0.9375rem; color: var(--s-muted); margin-top: 1.5rem; }
.vt-s-sign-form .vt-auth-alt a { color: var(--s-accent); }
.vt-s-sign-form .vt-link-btn { font-size: var(--s-text-meta); }
.vt-s-sign-form .vt-checklist { font-size: var(--s-text-meta); }

/* The modal over the sign in page: the one other floating surface */
body.vt-site .os-modal-panel { background: var(--s-surface); border: 1px solid var(--s-rule); border-radius: var(--s-radius); }

/* ---------- Motion ------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body.vt-site * { scroll-behavior: auto !important; }
}
.vt-s-fill { flex: 1; }

/* ---------- Audit fixes -------------------------------------------------- */

/* OS tables set small letter-spaced capitals on headers; on the site that
   reads as an eyebrow label, so headers stay in sentence case. */
body.vt-site .os-table th { text-transform: none; letter-spacing: 0; font-size: var(--s-text-meta); }
/* A mono field (invite code) holds data; its hint text is words. */
body.vt-site .os-input.os-mono::placeholder { font-family: var(--s-font); }
