/* ============================================================================
   STRATYLIX — BASE
   Reset, element defaults, typography, focus, motion foundations.
   Loads after brand.css (needs the tokens). No components, no layout.
   ========================================================================== */

/* ---- reset --------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* offset in-page anchors so the sticky header never covers a heading */
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote, dl, dd, ol, ul {
  margin: 0;
}
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

body {
  min-height: 100vh;
  min-height: 100svh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  font-weight: 400;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  /* Long unbreakable compounds must wrap rather than widen the page. German
     surfaces this first ("Unternehmensanwendungen" pushed the 375px nav panel
     31px past the viewport), but it is a general defence for any language. */
  overflow-wrap: break-word;
}

/* ---- typeface -------------------------------------------------------------
   Self-hosted, not Google-hosted. Same files, but served same-origin: no
   third-party request, no referrer leak to a US ad network from a site whose
   own privacy policy promises otherwise, and one less DNS + TLS handshake on
   the critical path.

   Both are variable fonts, so a single file per subset covers every weight the
   site uses. Latin and latin-ext only — the site is en-US, and shipping
   Cyrillic/Greek would have tripled the payload for glyphs nothing renders.

   font-display: swap, so text paints immediately in the fallback and reflows
   when the face lands. The fallback stack is metric-adjacent, which keeps that
   reflow small.

   Manrope for display, Inter for text. Manrope's geometric, slightly squared
   forms pick up the logo wordmark's wide-tracked geometry; Inter is the more
   neutral, higher-legibility face and does the reading work.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  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: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/manrope-latin.woff2') format('woff2');
  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;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../fonts/manrope-latin-ext.woff2') format('woff2');
  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;
}

/* ---- typography ---------------------------------------------------------- */
/* The system stack remains as the fallback behind both faces, so a failed font
   request degrades to the previous design rather than to Times. */
:root {
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto,
               "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: 'Manrope', 'Inter', ui-sans-serif, system-ui, -apple-system,
                  "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
               "Liberation Mono", monospace;

  /* fluid type scale — five steps, no per-element clamp() sprawl */
  --fs-xs:   0.8125rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   clamp(1.0625rem, 0.30vw + 1rem, 1.1875rem);
  --fs-lg:   clamp(1.25rem,  0.60vw + 1.1rem, 1.5rem);
  --fs-xl:   clamp(1.5rem,   1.20vw + 1.2rem, 2rem);
  --fs-2xl:  clamp(1.875rem, 2.00vw + 1.3rem, 2.75rem);
  --fs-3xl:  clamp(2.25rem,  3.00vw + 1.4rem, 3.5rem);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 { font-size: var(--fs-3xl); }
h2 { font-size: var(--fs-2xl); }
h3 { font-size: var(--fs-lg); letter-spacing: -0.01em; }
h4 { font-size: var(--fs-md); letter-spacing: -0.01em; }
h5, h6 { font-size: var(--fs-base); }

p { text-wrap: pretty; }
p + p { margin-top: var(--sp-4); }

small { font-size: var(--fs-sm); }
strong, b { font-weight: 650; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.9em; }
code { color: var(--brand); }

/* ---- links --------------------------------------------------------------- */
/* --brand-ink, not --brand: identical on dark, darkened on light where the
   cyan only carries 3.6:1 as text. --brand-strong stays the hover on dark and
   is overridden below for light, where "stronger" means darker, not lighter. */
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--brand-ink-hover); }

/* ---- media --------------------------------------------------------------- */
img, picture, video, canvas, svg { display: block; max-width: 100%; }
img, video { height: auto; }
/* Images must declare width/height in markup; this keeps the box while loading. */
img[width][height] { height: auto; }
svg { fill: currentColor; }

/* ---- forms --------------------------------------------------------------- */
input, button, textarea, select { font: inherit; color: inherit; }
textarea { resize: vertical; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:where(input, textarea, select):disabled,
button:disabled { cursor: not-allowed; opacity: 0.6; }

/* ---- tables -------------------------------------------------------------- */
table { border-collapse: collapse; width: 100%; }
th { text-align: start; font-weight: 650; }

/* ---- selection ----------------------------------------------------------- */
::selection { background: color-mix(in srgb, var(--brand) 32%, transparent); color: var(--text); }

/* ---- focus --------------------------------------------------------------- */
/* Never remove focus outright — only swap the default for the brand ring. */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-xs);
}
:focus:not(:focus-visible) { outline: none; }

/* ---- scrollbar (progressive) --------------------------------------------- */
@supports (scrollbar-color: red blue) {
  html { scrollbar-color: var(--surface-3) transparent; scrollbar-width: thin; }
}

/* ---- reduced motion ------------------------------------------------------ */
/* brand.css already collapses the duration tokens; this catches anything that
   animates without using them. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---- print --------------------------------------------------------------- */
@media print {
  .sx-header, .sx-drawer, .sx-footer__social, .sx-skip { display: none !important; }
  body { background: #fff; color: #000; }
}

/* ---- RTL -------------------------------------------------------------------
   Almost nothing is needed because the layout uses logical properties
   (margin-inline, inset-inline, padding-block) throughout. What does need
   handling is anything with a physical direction baked in: arrow glyphs, the
   dropdown caret, and the two decorative rules that point somewhere.
   -------------------------------------------------------------------------- */
[dir="rtl"] .sx-btn [aria-hidden="true"],
[dir="rtl"] .sx-icard__more [aria-hidden="true"],
[dir="rtl"] .sx-section-foot [aria-hidden="true"] { display: inline-block; transform: scaleX(-1); }
[dir="rtl"] .sx-eyebrow::before,
[dir="rtl"] .sx-hero__eyebrow::before { transform: scaleX(-1); }
[dir="rtl"] .sx-crumbs { direction: rtl; }
/* Latin acronyms and identifiers inside RTL text stay left-to-right. */
[dir="rtl"] code, [dir="rtl"] .sx-taglist li { direction: ltr; unicode-bidi: isolate; }
