body {
  font-family: var(--aayda-typography-font-primary);
  font-weight: var(--aayda-typography-weight-regular);
  font-size: var(--aayda-typography-size-14);
  line-height: var(--aayda-typography-line-height-14);
  letter-spacing: var(--aayda-typography-letter-spacing-14);
  color: var(--aayda-colors-text);
  background-color: var(--aayda-colors-surface);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.aayda-link {
  color: var(--aayda-colors-text-link);
}

img {
  max-width: 100%;
  height: auto;
}

/*
 * SEO #15: the <picture> ResponsiveImageTagHelper wraps an upload in, to offer its AVIF and WebP copies. It
 * generates no box, so the image is laid out exactly as it was drawn before it had one; which file the image
 * shows is still the picture's choice.
 */
.aayda-picture {
  display: contents;
}

/* With the wrapper's box gone, its <source> children would otherwise become items of the parent's flex
 * or grid layout and take a gap each (browsers give <source> no display: none of their own). */
.aayda-picture > source {
  display: none;
}

button {
  font-family: inherit;
  color: inherit;
}

input,
select,
textarea {
  font-family: inherit;
  color: inherit;
  background-color: var(--aayda-colors-surface);
  border: var(--aayda-border-width-control) solid var(--aayda-colors-border);
  border-radius: var(--aayda-radius-input);
}

.aayda-container {
  width: 100%;
  max-width: var(--aayda-container-desktop);
  margin-inline: auto;
}

.aayda-container-content {
  width: 100%;
  max-width: var(--aayda-container-content);
  margin-inline: auto;
}

.aayda-container-form {
  width: 100%;
  max-width: var(--aayda-container-form);
  margin-inline: auto;
}

@media (max-width: 390px) {
  .aayda-container {
    max-width: var(--aayda-container-mobile);
  }

  .aayda-container-content {
    max-width: var(--aayda-container-mobile-content);
  }
}

/* A homepage section badge with no published wording in the page's language (_HomeSectionBadge).
   The empty pill keeps its 28px slot, so the heading stays where the design puts it, but nothing
   of it is painted: no fill, no border, no placeholder. */
.aayda-section-badge--reserved {
  visibility: hidden;
}

/* ===========================================================================
 * Bug-fix 2, correction 26 — "Ş"/"ş" drawn with a comma below (Romanian "Ș") instead of a cedilla.
 *
 * Cause, read from the font files themselves: every Vela Sans weight maps U+015E/U+015F to its cedilla
 * glyphs, but its GSUB "locl" feature for the Azerbaijani language system (latn/AZE — also TRK, TAT,
 * KAZ and CRT) swaps them for the comma-below glyphs of U+0218/U+0219, a rule that belongs to Romanian
 * only. The pages are lang="az", so every browser applied it; Figma, which does not, draws the cedilla.
 * The source text is right (U+015E/U+015F) and nothing falls back to another font.
 *
 * The same lookup otherwise only swaps Ţ/ţ (not used in Azerbaijani) and "i" for glyph 237, whose
 * outline and advance are identical to "i" in every weight checked, so turning "locl" off for the
 * site's text changes nothing else. Form controls do not inherit font settings by default, hence the second rule.
 * Any element that sets its own font-feature-settings must repeat "locl" 0 (see 404.css).
 * =========================================================================== */

html {
  font-feature-settings: "locl" 0;
}

button,
input,
select,
textarea {
  font-feature-settings: inherit;
}
