[data-nv-surface="site"] {
  --bg:var(--nv-bg); --surface:var(--nv-surface); --surface2:var(--nv-surface-raised);
  --ink:var(--nv-text); --muted:var(--nv-text-muted); --line:var(--nv-border);
  --green:var(--nv-accent); --navemi-theme-preview:site;
}
[data-nv-surface="site"] :is(.system-art,.step-card) {border-radius:var(--nv-radius-lg);}
[data-nv-surface="site"] .site-footer {background:var(--nv-surface-inverse); color:var(--nv-text-inverse);}
[data-nv-surface="site"] .site-header .brand:has(.nv-logo) > svg {display:none;}
[data-nv-surface="site"] .nv-logo {font-size:2rem;}
[data-nv-surface="site"] .footer-head .nv-logo {font-size:clamp(2rem,4vw,3.5rem);}
[data-nv-surface="site"] .nv-logo:has(> img[src$="/release-brand.png"]) {padding:0; background:transparent;}
[data-nv-surface="site"] .nv-logo img[src$="/release-brand.png"] {
  inline-size:clamp(7rem,12vw,10rem); min-inline-size:0; block-size:auto;
  filter:url("/assets/navemi-preview/logo-alpha.svg#logo-alpha");
}
[data-nv-surface="site"] .footer-head .nv-logo img[src$="/release-brand.png"] {
  inline-size:clamp(8rem,16vw,13rem);
}
html[data-nv-surface="site"] :is(.button,.site-header nav .client-login,.language-switch a) {
  border-radius:var(--nv-radius-md);
}
[data-nv-surface="site"] .hero h1 {letter-spacing:var(--nv-letter-spacing-heading);}
[data-nv-surface="site"] .art-caption > span:only-child {margin-inline-start:auto;}
[data-nv-surface="site"] .art-route i::after {content:none;}
[data-nv-surface="site"] .cap-list article {grid-template-columns:70px minmax(0,1fr);}
@media (max-width:650px) {
  [data-nv-surface="site"] .cap-list article {grid-template-columns:48px minmax(0,1fr);}
}
[data-nv-surface="site"] .connection-note {
  margin:var(--nv-space-4) 0 0;
  color:var(--nv-text);
  font-size:0.875rem;
  line-height:1.75;
}
[data-nv-surface="site"] .instagram-permissions {
  max-inline-size:75ch;
  margin-block-start:var(--nv-space-8);
  padding-block-start:var(--nv-space-5);
  border-block-start:1px solid var(--nv-border);
  color:var(--nv-text);
  line-height:1.75;
}
[data-nv-surface="site"] .instagram-permissions h3 {margin:0; font-size:1.125rem;}
[data-nv-surface="site"] .instagram-permissions dl {
  display:grid;
  gap:var(--nv-space-4);
  margin:var(--nv-space-4) 0 0;
}
[data-nv-surface="site"] .instagram-permissions dt {font-weight:var(--nv-font-weight-semibold);}
[data-nv-surface="site"] .instagram-permissions dd {margin:0; color:var(--nv-text-muted);}
[data-nv-surface="site"] .instagram-permissions code {
  display:inline-block;
  max-inline-size:100%;
  overflow-wrap:anywhere;
  font-size:0.75rem;
}
[data-nv-surface="site"] .button.primary {
  background:var(--nv-primary); color:var(--nv-on-primary);
  border-color:transparent; min-block-size:var(--nv-touch-target);
}
[data-nv-surface="site"] .button.primary:hover {background:var(--nv-primary-hover); color:var(--nv-on-primary);}
[data-nv-surface="site"] .button.primary:active {background:var(--nv-primary-pressed);}
[data-nv-surface="site"] .button.subtle {color:var(--nv-text); border-color:var(--nv-border-strong-color);}

/* Override legacy font shorthands on presentation copy, leaving code and identifiers scoped. */
html[data-nv-surface="site"] :is(body,.lead,.brand,.eyebrow,.hero-label,
  .system-art-head,.art-caption,.hero-index,.section-kicker span:last-child,.step-index,
  .topline span:last-child,.preview-banner) {
  font-family:var(--nv-font-body);
}
html[data-nv-surface="site"][lang="fa"] :is(.hero h1,.eyebrow,.hero-label,.system-art-head,
  .art-caption,.hero-index,.section-kicker span:last-child,.step-index,.topline span:last-child,
  .preview-banner):lang(fa) {
  direction:rtl;
  letter-spacing:normal;
}
html[data-nv-surface="site"] :is(code,kbd,samp,.cap-num,.hero-index > span:first-child,
  .step-index > span:first-child,.topline span[dir="ltr"]) {
  font-family:var(--nv-font-mono);
  direction:ltr;
  unicode-bidi:isolate;
}

/* UI copy at small sizes retains Manrope's native advance widths and kerning. */
html[data-nv-surface="site"] :is(.eyebrow,.hero-label,.system-art-head,.art-caption,
  .section-kicker span:last-child,.step-index,.language-switch a) {
  letter-spacing:normal;
}
html[data-nv-surface="site"] {
  /* Legacy --green decorates many elements. Reserve lime for the logo's mark. */
  --green:var(--nv-text-link);
}
html[data-nv-surface="site"] :is(.line,.hero-index-line,.art-route i) {background:var(--nv-border);}
html[data-nv-surface="site"] .site-footer {
  background:var(--nv-color-brand-carbon);
  color:var(--nv-color-brand-warm);
  border-color:var(--nv-border);
}
html[data-nv-surface="site"] .step-index > span:first-child {
  font-family:var(--nv-font-body);
  direction:inherit;
}

/* The locale codes use the same Latin face and weight in every document language. */
html[data-nv-surface="site"] .language-switch a {
  font-family:var(--nv-font-latin);
  font-weight:var(--nv-font-weight-bold);
}

/* The current language is a filled control, not an ordinary orange link. */
html[data-nv-surface="site"] .language-switch a[aria-current="page"] {
  background:var(--nv-primary);
  color:var(--nv-on-primary);
}
