/* chrome (sds-page pages, docs/SDS-THEME.md): maintained by hand, loaded last.
   1 The site header and footer as on the www.syncfusion.com homepage: Inter Variable, the two-colour (navy and orange)
     Syncfusion logo in the header and footer, and the #F6F8FA footer ground. Markup, menus, sizes and layout stay the
     site's own. Only the redesigned pages load this file (and only they carry body.sds-theme).
   2 ProductHeader: the product row (.sds-prow) slides over the site header once the hero leaves the screen.
   3 Page-level fixes: no horizontal scroll, copy-button icons.
   4 Rendering performance for long pages. */

/* ---------- 1 site header and footer: as on the homepage ----------
   The homepage's own header/footer rules (its inline chrome block), scoped to these pages. */
@font-face {
  font-family: "Inter Variable"; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
}
body.sds-theme :is(#menu-wrapper, #menu-wrapper *, .header-sub-menu, #footer-warpper, #footer-warpper *, #footer-bottom, #footer-bottom *) {
  font-family: "Inter Variable", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif !important;
}
/* the header's icon fonts keep their faces */
body.sds-theme #menu-wrapper [class*="syncfusionlayout"], body.sds-theme #menu-wrapper [class*="syncfusionlayout"]::before, body.sds-theme #menu-wrapper [class*="syncfusionlayout"]::after { font-family: syncfusionlayout !important; }
body.sds-theme #menu-wrapper [class*="sf-icon-"], body.sds-theme #menu-wrapper [class*="sf-icon-"]::before, body.sds-theme #menu-wrapper [class*="sf-icon-"]::after { font-family: SyncfusionMenuIcons !important; }
body.sds-theme #footer-warpper .contact-mail { overflow-wrap: anywhere; }
body.sds-theme #footer-warpper .whatsapp-img { max-width: 100%; height: auto; }
/* the homepage's logo (same drawing as ../logo/syncfusion-black.svg, which the product row also uses) */
body.sds-theme #menu-wrapper .syncfusion-logo a.sync-logo-img { background: url("../logo/syncfusion-black.svg") left center / contain no-repeat !important; }
body.sds-theme .footer-syncfusion-logo img.sync-logo-img { content: url("../logo/syncfusion-black.svg"); object-fit: contain; object-position: left center; }
body.sds-theme :is(#footer-warpper, #footer-bottom) { background-color: #F6F8FA !important; }
body.sds-theme #footer-bottom .mobile-footer > ul { padding-left: 0; padding-right: 0; }
/* the mobile menu's "Get a Free Trial" button: white text on the blue button, as on the other pages (the site layout
   colours every menu link dark; the old platform page CSS gave .btn__text its white) */
body.sds-theme #menu-wrapper .btn--primary .btn__text { color: #fff; }
/* the header lays out with floats: the page content never flows beside a float of the header */
.sdsx { clear: both; }

/* ---------- 2 ProductHeader ----------
   The bar sits in a 0-height sticky wrapper at the top of the page content. Hidden, it takes no space, is not drawn and
   is not interactive (it never covers the site header); once the hero leaves the screen it slides down over the
   (sticky) site header at the header's height. */
.sdsx .sds-prow { position: sticky; top: 0; z-index: 1040; height: 0; }
.sdsx .sds-prow::before, .sdsx .sds-prow > [data-prodrow] {
  position: absolute; top: 0; height: var(--sds-hh, 68px);
  visibility: hidden; opacity: 0; transform: translateY(-12px); pointer-events: none;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s linear 320ms;
}
.sdsx .sds-prow::before {
  content: ""; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid #D6DBE2; box-shadow: 0 10px 24px -18px rgb(8 20 50 / 35%);
}
.sdsx .sds-prow > [data-prodrow] { left: 0; right: 0; margin: 0 auto; overflow: hidden; }
.sdsx .sds-prow.is-on::before, .sdsx .sds-prow.is-on > [data-prodrow] {
  visibility: visible; opacity: 1; transform: none;
  transition: transform 320ms cubic-bezier(0.4, 0, 0.2, 1), opacity 220ms cubic-bezier(0.4, 0, 0.2, 1), visibility 0s;
}
.sdsx .sds-prow.is-on > [data-prodrow] { pointer-events: auto; }
.sdsx .sds-prow.sds-instant::before, .sdsx .sds-prow.sds-instant > [data-prodrow] { transition: none; }
.sdsx .sds-prow .logo { display: inline-flex; align-items: center; font-size: 0; }
.sdsx .sds-prow .logo img { display: block; width: auto; height: 32px; }
/* narrower screens: logo, product name and the trial button; in-page links, Demos, Docs and "Talk to an expert" step back */
@media (max-width: 1100px) { .sdsx .sds-prow .hp-expert { display: none; } }
@media (max-width: 860px) {
  .sdsx .sds-prow .hp-links { display: none; }
  .sdsx .sds-prow .hp-trial { display: inline-flex; margin-left: auto; }
}
@media (max-width: 420px) { .sdsx .sds-prow .logo { display: none; } .sdsx .sds-prow .hp-name { margin-left: 0; padding-left: 0; border-left: 0; } }
@media (prefers-reduced-motion: reduce) { .sdsx .sds-prow::before, .sdsx .sds-prow > [data-prodrow] { transition: none; } }

/* ---------- 3 page-level fixes ---------- */
/* the hidden attribute always hides (some design-system display rules would otherwise show, e.g., an index's empty state) */
.sdsx [hidden] { display: none !important; }
/* search fields that sit inside a styled box (FeatureIndex .af-search): the box shows the focus ring, the input itself draws none
   (no :has() here: it made the browser re-check the page on every change) */
.sdsx .af-search input:is(:focus, :focus-visible), .sdsx [class*="search"] > input:is(:focus, :focus-visible) { outline: none !important; box-shadow: none !important; }
/* nothing in the page content scrolls the page sideways (wide code, tables and tab strips scroll inside their own
   regions); clip, unlike hidden, keeps position: sticky working */
.sdsx { overflow-x: clip; }
/* copy buttons: the copy icon, then the check once copied (also for buttons whose icons carry no i-copy / i-ok class) */
.sdsx .gh-copy > svg:nth-of-type(2) { display: none; }
.sdsx .gh-copy.copied > svg:nth-of-type(1) { display: none; }
.sdsx .gh-copy.copied > svg:nth-of-type(2) { display: block; color: #5EE0A6; }
/* customer story (CustomerProof), the awards having moved to the AwardsBand: one balanced two-column story.
   Left: kicker, headline, results; right: the quote, who said it and the links; a hairline between. Stacks below 900px. */
.sdsx #reviews .rv2:not(:has(.aw)) { grid-template-columns: minmax(0, 1fr); }
.sdsx #reviews .rv2:not(:has(.aw)) .cs {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 5vw, 80px); row-gap: 0;
  grid-template-areas: "k q" "t q" "m by" "m links"; align-items: start;
}
.sdsx #reviews .rv2:not(:has(.aw)) .cs > * { margin: 0; min-width: 0; }
.sdsx #reviews .rv2:not(:has(.aw)) .cs-k { grid-area: k; margin-bottom: 14px; }
.sdsx #reviews .rv2:not(:has(.aw)) .cs-t {
  grid-area: t; font-family: var(--font-heading); font-size: clamp(22px, 2.1vw, 28px); line-height: 1.2; letter-spacing: -0.02em; font-weight: 700;
}
.sdsx #reviews .rv2:not(:has(.aw)) .cs-m { grid-area: m; margin-top: 28px; display: flex; gap: clamp(28px, 4vw, 56px); }
.sdsx #reviews .rv2:not(:has(.aw)) .cs-q {
  grid-area: q; align-self: end; padding: 4px 0 4px clamp(20px, 2.4vw, 32px); border-left: 2px solid rgb(var(--cs-brand));
}
.sdsx #reviews .rv2:not(:has(.aw)) .cs-q p { font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; color: rgb(var(--cs-200)); }
.sdsx #reviews .rv2:not(:has(.aw)) .cs-by { grid-area: by; margin-top: 20px; padding-left: clamp(22px, 2.6vw, 34px); }
.sdsx #reviews .rv2:not(:has(.aw)) .cs-links { grid-area: links; margin-top: 16px; padding-left: clamp(22px, 2.6vw, 34px); display: flex; flex-wrap: wrap; gap: 8px 24px; }
@media (max-width: 900px) {
  .sdsx #reviews .rv2:not(:has(.aw)) .cs { grid-template-columns: minmax(0, 1fr); grid-template-areas: "k" "t" "m" "q" "by" "links"; }
  .sdsx #reviews .rv2:not(:has(.aw)) .cs-m { margin: 20px 0 24px; }
  .sdsx #reviews .rv2:not(:has(.aw)) .cs-q { align-self: auto; }
}

/* ---------- 4 rendering performance ----------
   Long pages (about 14,000px): sections far below the fold skip layout and paint until they come near the viewport.
   The hero and the first sections render normally (LCP, no layout shift). */
.sdsx main > section:nth-of-type(n+4), .sdsx > section.cta, .sdsx > section#resources, .sdsx > aside.aw-band {
  content-visibility: auto; contain-intrinsic-size: auto 900px;
}
