/* ==========================================================================
   XSim  (/products/manufacturing/photonics/xsim-photonics/)

   The product page under Photonics, and the last product page linked from
   anywhere in the build to be built. The slug keeps v4's "xsim-photonics";
   the page itself names the product XSim, as its structure doc's H1 does and
   as Tech-X does everywhere (open items K77 and PH1).

   Nine sections, the shape of the three FTCO tool pages. NO NEW COMPONENTS -
   everything is product-family.css. What is left here is a band run, three
   column counts and the section anchors.

   Band rhythm is the homepage's: 48 / 64 / 80. Bands alternate white and
   --ps-color-neutral-2-100; --ps-color-neutral-2-000 is reserved for the
   conversion band. No two adjacent bands share a tint.

     §1  banner        white          §6  proof          neutral-2-100
     §2  what it does  neutral-2-100  §7  evaluate       neutral-2-000
     §3  capabilities  white          §8  FAQ            white
     §4  works with    neutral-2-100  §9  related        neutral-2-100
     §5  applications  white
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section anchors - 96px clears the sticky header
   -------------------------------------------------------------------------- */
#what-it-does,#capabilities,#works-with,
#applications,#resources{scroll-margin-top:96px}

@media (min-width:1024px){
  /* -----------------------------------------------------------------------
     Column counts this page overrides

     pf-cap is three across in the shared sheet; this page has FOUR groups,
     so 2x2 rather than three and an orphan. pf-support is three across and
     Works with has two cards. pf-related is five across and this page links
     four families. pf-res is three across with six cards, which is two clean
     rows and needs nothing.
     ----------------------------------------------------------------------- */
  .pf-cap__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pf-support__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pf-related__list{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* --------------------------------------------------------------------------
   §8 FAQ — sits on white, below the conversion band
   -------------------------------------------------------------------------- */
.faq{background:var(--sv-white)}

/* --------------------------------------------------------------------------
   Band run for this page
   -------------------------------------------------------------------------- */
.pf-def,.pf-support,.pf-res,.pf-related{
  background:var(--ps-color-neutral-2-100);
  border-block:1px solid var(--ps-color-neutral-2-300);
}
/* stated explicitly rather than left transparent: an inherited body colour
   looks right today and breaks silently the moment anything above it moves */
.pf-cap,.pf-applist{background:var(--sv-white)}
/* the conversion band takes the tint the site reserves for it site-wide */
.section-headings__wrapper--cta{background:var(--ps-color-neutral-2-000)}

/* --------------------------------------------------------------------------
   XSim Photonics round (2026-09-25)
   -------------------------------------------------------------------------- */
/* XSP-33 to -38: every resource card is held, so the Proof section is its H2 and lead; the empty list takes no space */
.pf-res__grid:not(:has(li)){display:none}
.pf-res__head:has(+ .pf-res__grid:not(:has(li))){margin-bottom:0}
/* XSP-22: the family link now closes the Produces card */
.pf-support-card__body + .pf-support-card__link{margin-top:auto}
/* phones: the longer button labels wrap instead of overflowing */
@media (max-width:639.98px){
  .page-banner__ctas .ps-btn--large,.section-headings__ctas .ps-btn{max-width:100%}
  .page-banner__ctas .ps-btn--large .ps-btn__text,.section-headings__ctas .ps-btn .ps-btn__text{white-space:normal;min-width:0}
}
