/* The site's shared frame on Veritheme (vendor/veritheme-base.min.css + vendor/veritheme.min.css,
   Default theme, dark mode by the system through theme.js): the font, the page basics, the floating
   header bar, the page column, the footer and the key caps. Used by the home page, /guide/ and
   /help/; their header and footer markup comes from site/partials/ (node site/build-chrome.mjs).
   The other pages still use site.css. */

/* Onest, variable weight (SIL OFL 1.1, /assets/fonts/OFL.txt), the theme's base font. */
@font-face {
  font-family: Onest; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/onest-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: Onest; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/onest-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: Onest; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(/assets/fonts/onest-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: var(--vt-spacing-28); }
html.dark { color-scheme: dark; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { min-height: 100vh; overflow-x: clip; }
img { display: block; max-width: 100%; height: auto; }

/* Skip link: off screen until focused. */
.site-skip { position: absolute; left: var(--vt-spacing-4); top: -100px; z-index: 10; }
.site-skip:focus { top: var(--vt-spacing-3); }

/* Header: the component as a floating bar, as wide as the page column, 16px from the top and
   sticking there; translucent, so what scrolls under it blurs (an opaque card fill where the
   browser has no backdrop-filter). */
.site-top { position: sticky; top: var(--vt-spacing-4); z-index: 5; margin-top: var(--vt-spacing-4); padding-inline: var(--vt-spacing-6); }
.site-top > .vt-header {
  max-width: calc(72rem - 2 * var(--vt-spacing-6)); margin-inline: auto;
  border: var(--vt-border-width-thin) solid hsl(var(--vt-border-default));
  border-radius: var(--vt-radius-2xl);
  background: hsl(var(--vt-surface-card) / 0.72);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  /* a soft, wide shadow: the shape of Veritheme's xl shadow, spread further and lighter */
  box-shadow: 0 20px 48px -12px rgb(0 0 0 / 0.08), 0 6px 16px -6px rgb(0 0 0 / 0.04);
}
.dark .site-top > .vt-header { box-shadow: 0 20px 48px -12px rgb(0 0 0 / 0.45), 0 6px 16px -6px rgb(0 0 0 / 0.25); }
/* The bar's insets and the button's corners: the button sits in the bar with the same gap on
   every side (the bar's height minus the button's, halved), the logo gets the same gap on the left,
   and the button's radius is the bar's minus that gap, so the two corners run parallel. Flat: the
   panel's key style stays on the hero and the closing banner. */
.site-top > .vt-header { --bar-gap: calc((var(--vt-spacing-16) - var(--vt-control-height-md)) / 2); padding-inline: calc(var(--bar-gap) - var(--vt-border-width-thin)); }
.site-top .vt-btn { --vt-btn-radius: calc(var(--vt-radius-2xl) - var(--bar-gap)); box-shadow: none; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-top > .vt-header { background: hsl(var(--vt-surface-card)); }
}
.site-brand-icon { width: 28px; height: 28px; border-radius: var(--vt-radius-sm); }
/* The name in the header: label-lg (16 px) in semibold, two steps under the component's heading-sm,
   in proportion to the menu links (14 px) and the button; the mark a step smaller with it. */
.site-top .vt-header-brand { font-size: var(--vt-type-label-lg-size); line-height: var(--vt-type-label-lg-line-height); font-weight: var(--vt-font-weight-semibold); }
.site-top .site-brand-icon { width: 24px; height: 24px; }
@media (max-width: 639.98px) {
  .site-top { padding-inline: var(--vt-spacing-4); }
  .site-top > .vt-header { gap: var(--vt-spacing-3); }
}
/* On a phone the name and the full button do not fit in the bar: the button keeps the Chrome
   mark, its words stay for screen readers (aria-label on the link). */
@media (max-width: 419.98px) {
  .site-top-cta-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Page column. */
.site-wrap { width: 100%; max-width: 72rem; margin-inline: auto; padding-inline: var(--vt-spacing-6); }
@media (max-width: 639.98px) { .site-wrap { padding-inline: var(--vt-spacing-4); } }


/* ---- Footer: the component across the page, its content in the page column ---- */
.site-foot { padding-inline: max(var(--vt-spacing-6), calc((100% - 72rem) / 2 + var(--vt-spacing-6))); }
.site-foot .vt-footer-brand { display: inline-flex; align-items: center; gap: var(--vt-spacing-2); }
.site-foot .vt-footer-copyright { max-width: 40rem; }
@media (max-width: 639.98px) { .site-foot { padding-inline: var(--vt-spacing-4); } }

/* Menu links on the right, beside the button (the logo stays on the left). */
.site-top .vt-header-nav { justify-content: flex-end; }
/* One rhythm across the right-hand group: from the last link's words to the button is the same
   28 px as between two links (their 12 px padding on each side + the nav's 4 px gap), so the
   header's own gap is 16 px instead of the component's 32 (the item's 12 px padding makes up the rest). */
.site-top > .vt-header { column-gap: var(--vt-spacing-4); }

/* Text pages (guide, help): links in running text, key caps and code. */
.site-text a:not([class]) { color: hsl(var(--vt-brand-fill)); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.site-text a:not([class]):hover { text-decoration-thickness: 2px; }
.site-text code { font-family: var(--vt-font-family-mono); font-size: 0.875em; padding: 0.1em 0.35em; border-radius: var(--vt-radius-xs); background: hsl(var(--vt-surface-subtle)); }
.site-text kbd, .site-kbd {
  display: inline-block; min-width: 1.75em; padding: 0 0.35em;
  font: 600 0.8125em/1.6 var(--vt-font-family-base); text-align: center;
  color: hsl(var(--vt-foreground-primary)); background: hsl(var(--vt-surface-card));
  border: 1px solid hsl(var(--vt-border-strong)); border-bottom-width: 2px; border-radius: var(--vt-radius-sm);
}
.site-text .combo { white-space: nowrap; }

/* Text pages (guide, help): the page title and the line under it, on the type scale. */
.site-page { padding-block: var(--vt-spacing-12) var(--vt-spacing-20); }
.site-page-title { font-size: clamp(var(--vt-font-size-3xl), 5vw, var(--vt-font-size-5xl)); line-height: 1.1; letter-spacing: -0.02em; font-weight: var(--vt-font-weight-bold); text-wrap: balance; }
.site-page-sub { margin-top: var(--vt-spacing-3); font-size: var(--vt-font-size-lg); color: hsl(var(--vt-foreground-secondary)); text-wrap: pretty; }
.site-text [data-vt-accordion-trigger] { text-align: left; }

/* Text pages, shared by /guide/ and /help/ so the two read as one system: the lead under the
   title, a row of start cards (vt-card + vt-icon-badge), the contents card, and the parts as one
   flush Veritheme accordion whose headings are numbered (<h2> holding the trigger button). */
.site-lead { margin-top: var(--vt-spacing-4); font-size: var(--vt-font-size-lg); line-height: var(--vt-line-height-normal); color: hsl(var(--vt-foreground-secondary)); max-width: 40rem; text-wrap: pretty; }
/* Plain lists on the text pages: the guide's first steps (numbered) and what to send support
   (help). No cards, no icons. */
.site-steps-list, .site-list { margin-top: var(--vt-spacing-6); padding-left: var(--vt-spacing-6); display: grid; gap: var(--vt-spacing-2); max-width: 44rem; line-height: var(--vt-line-height-normal); color: hsl(var(--vt-foreground-secondary)); }
.site-steps-list { list-style: decimal; }
.site-list { list-style: disc; }
.site-steps-list b { color: hsl(var(--vt-foreground-primary)); font-weight: var(--vt-font-weight-semibold); }
.site-steps-list li::marker, .site-list li::marker { color: hsl(var(--vt-foreground-muted)); }
.site-text-block { margin-top: var(--vt-spacing-6); max-width: 44rem; line-height: var(--vt-line-height-normal); }
.site-start-done { margin-top: var(--vt-spacing-6); color: hsl(var(--vt-foreground-secondary)); line-height: var(--vt-line-height-normal); }


/* The parts: one Veritheme accordion (the guide's eight sections, the help page's answers). The
   first reader called the guide "a bit big" (21.11) — 15 screens, about 20 minutes — so the parts
   start closed. Each part is an accordion item; its heading is an <h2> holding the trigger. */
.site-parts { margin-top: var(--vt-spacing-12); border-top: var(--vt-border-width-thin) solid hsl(var(--vt-border-default)); }
.site-part-head [data-vt-accordion-trigger] { gap: var(--vt-spacing-4); padding-block: var(--vt-spacing-5); font-size: var(--vt-font-size-xl); line-height: var(--vt-line-height-tight); letter-spacing: -0.01em; font-weight: var(--vt-font-weight-semibold); }
.site-part-head [data-vt-accordion-icon] { width: var(--vt-spacing-5); height: var(--vt-spacing-5); }
.site-part-name { display: flex; align-items: baseline; gap: var(--vt-spacing-4); }
.site-n { flex: none; font-size: var(--vt-font-size-xs); font-weight: var(--vt-font-weight-bold); letter-spacing: 0.05em; color: hsl(var(--vt-brand-fill)); font-variant-numeric: tabular-nums; }
.site-part [data-vt-accordion-content] { font-size: var(--vt-font-size-base); line-height: var(--vt-line-height-normal); color: hsl(var(--vt-foreground-primary)); }
.site-part [data-vt-accordion-content].open { padding-bottom: var(--vt-spacing-10); }
.site-part [data-vt-accordion-content] > p { max-width: 44rem; color: hsl(var(--vt-foreground-secondary)); font-size: var(--vt-font-size-lg); }
@media (max-width: 880px) {
}
@media (max-width: 600px) {
  .site-part-head [data-vt-accordion-trigger] { font-size: var(--vt-font-size-lg); padding-block: var(--vt-spacing-4); }
  .site-part [data-vt-accordion-content] > p, .site-lead { font-size: var(--vt-font-size-base); }
}

/* The language picker in the footer's bottom row: the note on the left, the picker on the right;
   on a phone under the note. The list opens upwards (data-theme-direction="up"). */
.site-lang { flex: none; }
.site-lang[hidden] { display: none; }
.site-lang .vt-select-item { white-space: nowrap; }
@media (max-width: 639.98px) {
  .site-foot .vt-footer-bottom { flex-direction: column; align-items: flex-start; }
  /* the picker is on the left there, so its list opens from the left edge, inside the screen */
  .site-lang .vt-select-trigger-sm + .vt-select-dropdown { inset-inline-start: 0; inset-inline-end: auto; }
}

/* Long legal text (privacy): headings, paragraphs, lists and term lists on the type scale. */
.site-prose { max-width: 46rem; margin-top: var(--vt-spacing-6); line-height: var(--vt-line-height-normal); color: hsl(var(--vt-foreground-secondary)); }
.site-prose > * + * { margin-top: var(--vt-spacing-4); }
.site-prose h2 { margin-top: var(--vt-spacing-10); font-size: var(--vt-font-size-xl); line-height: var(--vt-line-height-tight); font-weight: var(--vt-font-weight-semibold); color: hsl(var(--vt-foreground-primary)); letter-spacing: -0.01em; }
.site-prose ul { padding-left: var(--vt-spacing-6); list-style: disc; display: grid; gap: var(--vt-spacing-2); }
.site-prose li::marker { color: hsl(var(--vt-foreground-muted)); }
.site-prose strong, .site-prose dt { color: hsl(var(--vt-foreground-primary)); font-weight: var(--vt-font-weight-semibold); }
.site-prose dl { display: grid; gap: var(--vt-spacing-1); }
.site-prose dd + dt { margin-top: var(--vt-spacing-3); }
.site-prose .site-callout { margin-top: 0; }
.site-translated-note { margin-top: var(--vt-spacing-3); font-size: var(--vt-font-size-sm); color: hsl(var(--vt-foreground-muted)); }


/* Find-in-page has to reach a part that is closed. Veritheme hides accordion content with
   .vt-hidden, which is display:none, and display:none is invisible to Ctrl+F — on the guide that
   put 94 % of the text out of reach, including the window labels the page quotes on purpose
   (release review 1.0.1, R2, round two). hidden="until-found" hides the same content while
   leaving it searchable, and the browser opens it on a match. The attribute does the hiding, so
   the class must not; the html class is set by text-page.js only where the browser supports it,
   because elsewhere [hidden] is a plain display:none and the content must stay hidden. */
html.until-found [data-vt-accordion-content].vt-hidden[hidden] { display: block; }
