/* ==========================================================================
   AMBA IP  (/products/design/design-ip/amba/)

   A Design IP child, built like Memory Compilers: .pf-cap for the
   capabilities, then the parts table, filter bar and empty state in the
   shared .pf-parts / .pf-ptable / .pf-filter / .pf-empty. Page-local:
     .amba-filter__selects    one select (family), a third of the row from
                              640 rather than the shared bar's column
     .amba-nowrap             keeps a part number or family name whole
     .amba-table              the description column takes the spare width
     .amba-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  cores         white          §7  FAQ            white
     §4  applications  neutral-2-100  §8  related        neutral-2-100
   ========================================================================== */

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

/* --------------------------------------------------------------------------
   §2 Capabilities: five blocks, two across from 640 at every wider width,
   the fifth taking its row rather than sitting alone at half width
   -------------------------------------------------------------------------- */
@media (min-width:640px){
  .pf-cap__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .pf-cap__grid > .pf-cap-block:last-child:nth-child(odd){grid-column:1 / -1}
}

/* --------------------------------------------------------------------------
   §3 The one family select: full width on phones, one of three from 640
   -------------------------------------------------------------------------- */
.amba-filter__selects{grid-template-columns:minmax(0,1fr)}
@media (min-width:480px){
  .amba-filter__selects{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
}
@media (min-width:640px){
  .amba-filter__selects{grid-template-columns:repeat(3,minmax(0,1fr))}
}
.amba-nowrap{white-space:nowrap}
.amba-table td:nth-child(4){min-width:18em}

/* --------------------------------------------------------------------------
   §5 Proof: four figures (two across from 640, four from 1024), then four
   resources two across from 640
   -------------------------------------------------------------------------- */
@media (min-width:1024px){
  .pf-facts{grid-template-columns:repeat(4,minmax(0,1fr))}
}
@media (min-width:640px){
  .amba-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)}

/* AMBA IP round, 2026-09-28.
   AMBA-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))}
}
