/* ==========================================================================
   Standard Cell  (/products/design/design-ip/foundation-ip/standard-cell/)

   A Foundation IP child, built like Memory Compilers: .pf-cap for the
   capabilities, then the selector, filter bar and empty state in the shared
   .pf-parts / .pf-ptable / .pf-filter / .pf-empty. Every other section is
   product-family.css too. Page-local pieces:
     .stdc-legend             the Vt legend under the selector's lead, kept
                              visible as the structure doc asks
     .stdc-filter__selects    three selects: the third takes its row between
                              480 and 639, three across from 640 at every
                              wider width (the shared bar goes to five)
     .stdc-nowrap             keeps a library, Vt or gate-length list whole
     .stdc-res__grid          four resources two across from 640

   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          §5  proof          white
     §2  capabilities  neutral-2-100  §6  evaluate       neutral-2-000
     §3  selector      white          §7  FAQ            white
     §4  applications  neutral-2-100  §8  related        neutral-2-100
   ========================================================================== */

/* --------------------------------------------------------------------------
   Section anchors - 96px clears the sticky header
   -------------------------------------------------------------------------- */
#capabilities,#selector,#applications,#resources{scroll-margin-top:96px}

/* --------------------------------------------------------------------------
   §2 Capabilities: four blocks, two across from 640 (2 x 2) at every wider
   width, not three and an orphan
   -------------------------------------------------------------------------- */
@media (min-width:640px){
  .pf-cap__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* --------------------------------------------------------------------------
   §3 The Vt legend, under the lead; the filter bar's three selects
   -------------------------------------------------------------------------- */
.stdc-legend{
  margin:12px 0 0;max-width:72ch;
  font:400 13px/20px var(--ps-font);letter-spacing:normal;
  color:var(--ps-color-secondary-5-500);
}
@media (min-width:480px) and (max-width:639.98px){
  .stdc-filter__selects > .pf-filter__field:last-child{grid-column:1 / -1}
}
@media (min-width:1024px){
  .stdc-filter__selects{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.stdc-nowrap{white-space:nowrap}

/* --------------------------------------------------------------------------
   §5 Proof: five figures (two across from 640 with the fifth taking its row,
   five from 1024), then four resources two across from 640
   -------------------------------------------------------------------------- */
@media (min-width:640px) and (max-width:1023.98px){
  .pf-facts > .pf-fact:last-child:nth-child(odd){grid-column:1 / -1}
}
@media (min-width:1024px){
  .pf-facts{grid-template-columns:repeat(5,minmax(0,1fr))}
}
@media (min-width:640px){
  .stdc-res__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* --------------------------------------------------------------------------
   §8 Related: four tiles, two across from 640 and four from 1024
   -------------------------------------------------------------------------- */
@media (min-width:640px) and (max-width:1023.98px){
  .pf-related__list{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1024px){
  .pf-related__list{grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* phones: the large button can be wider than a 320px column; let it wrap,
   as the sibling pages do */
@media (max-width:639.98px){
  .page-banner__ctas .ps-btn--large{max-width:100%}
  .page-banner__ctas .ps-btn--large .ps-btn__text{white-space:normal;min-width:0}
}
/* the closing band's button sits beside a text link; let it wrap at every
   width, as on the sibling pages */
.section-headings__ctas .ps-btn--large{max-width:100%}
.section-headings__ctas .ps-btn--large .ps-btn__text{white-space:normal;min-width:0}

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

/* --------------------------------------------------------------------------
   Band run for this page
   -------------------------------------------------------------------------- */
.pf-cap,.pf-applist,.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 */
.pf-parts,.pf-res{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)}

/* Standard Cell round, 2026-09-28.
   STDCELL-01 adds a fifth capabilities group: from 640 the odd last group
   takes its row. */
@media (min-width:640px){
  .pf-cap__grid > .pf-cap-block:last-child:nth-child(odd){grid-column:1 / -1}
}
/* STDCELL-03 moves the Design IP hub from the heading's up-link to a fifth
   Related tile: between 640 and 1023 the odd last tile takes its row, and
   from 1024 the five run in one row. */
@media (min-width:640px) and (max-width:1023.98px){
  .pf-related__list > li:last-child:nth-child(odd){grid-column:1 / -1}
}
@media (min-width:1024px){
  .pf-related__list:has(> li:nth-child(5)){grid-template-columns:repeat(5,minmax(0,1fr))}
}
