/* ==========================================================================
   FTCO tool pages — the shared sheet for all three

     /solutions/ftco/victory-analytics/
     /solutions/ftco/victory-doe/
     /solutions/ftco/victory-visual/  (built as victory-tcad-lab/, moved 2026-09-28)

   ONE SHEET RATHER THAN THREE, for the same reason product-family.css exists:
   a component used by more than one page does not live in a page's own sheet,
   and these three pages are structurally identical. They take the same nine
   sections in the same order, with the same band run and the same four column
   overrides. Writing that three times and keeping the copies in step is how
   band runs drift.

   THE SHAPE, which all three share:
     §1  banner        page-banner       white
     §2  what it does  pf-def            neutral-2-100
     §3  the middle    pf-cap or pf-mod  white
     §4  works with    pf-support        neutral-2-100
     §5  applications  pf-applist        white
     §6  resources     pf-res            neutral-2-100
     §7  evaluate      endcap            neutral-2-000
     §8  FAQ           faq               white
     §9  related       pf-related        neutral-2-100

   §3 IS THE ONLY SLOT THAT VARIES. Victory Analytics and Victory DoE take
   pf-cap, the non-accordion capability grid; Victory TCAD Lab takes pf-mod,
   the anchored component rows, because its structure doc asks for one
   addressable section per tool in the suite - DeckBuild, Victory Visual,
   Victory DoE and Silver. Both sit in the same white slot, so the band run
   below covers both without a per-page override.

   NO NEW COMPONENTS ANYWHERE IN THE THREE PAGES. pf-mod was extracted out of
   victory-device.css and .pf-cap-block__body a out of victory-rcx.css and
   victory-mesh.css, both in their own commits, immediately before these pages
   were built. What is left here is a band run, four column counts and two
   link rules.

   Band rhythm is the homepage's: 48 / 64 / 80.
   ========================================================================== */

/* --------------------------------------------------------------------------
   §4 Links inside the Works with cards

   "Every product named is a link" is the structure doc's instruction for this
   section on all three pages, and these links sit in .pf-support-card__body
   and .pf-support-card__note - prose inside a block that is not itself an
   <a>, so without this they inherit body colour with no underline and
   disappear. On a section whose entire content is product names, that would
   remove the section's only function.

   FIRST USE OF THESE TWO SELECTORS. The related .pf-support-card__list a is a
   different one, used by Plasma and Photonics for lists of links, and is at
   two of the three uses that would move it into product-family.css. These two
   start their own count here, across three pages that share this sheet - so
   they are already shared, which is the point of the sheet.
   -------------------------------------------------------------------------- */
.pf-support-card__body a,
.pf-support-card__note a{
  color:var(--ps-color-brand-600);
  text-decoration:underline;text-underline-offset:2px;
}
.pf-support-card__body a:hover,
.pf-support-card__note a:hover{color:var(--ps-color-brand-500)}

/* --------------------------------------------------------------------------
   §3 Links inside the module rows, for Victory TCAD Lab

   Same problem one component along. The Victory DoE row inside the suite is
   deliberately short and ends in a link out to its own page - the structure
   doc asks for exactly that - so the link has to be visible.
   -------------------------------------------------------------------------- */
.pf-module__what a,
.pf-module__when a{
  color:var(--ps-color-brand-600);
  text-decoration:underline;text-underline-offset:2px;
}
.pf-module__what a:hover,
.pf-module__when a:hover{color:var(--ps-color-brand-500)}

/* --------------------------------------------------------------------------
   Section anchors

   Every section on these pages carries an id so the parent FTCO page and the
   sibling tools can link into them, and Victory TCAD Lab's four suite rows
   carry their own on top of that (pf-module already sets scroll-margin-top in
   the shared sheet). 96px clears the sticky header.
   -------------------------------------------------------------------------- */
#what-it-does,#capabilities,#inside-the-suite,#works-with,
#applications,#resources{scroll-margin-top:96px}

@media (min-width:1024px){
  /* -----------------------------------------------------------------------
     Column counts these pages override

     pf-cap is three across in the shared sheet. Victory Analytics has SIX
     capability groups and Victory DoE has FIVE, so three across gives one a
     clean 3 x 2 and the other 3 + 2 - both fine, and both the shared default,
     so neither needs an override.

     What does need one is pf-support: three across for the three support
     cards the family pages carry, where every page here has exactly TWO -
     takes in, and hands off to. Two columns, so neither sits in a third of
     the band beside an empty third.

     pf-res is three across and these pages carry three or four items, so the
     default holds at this width and only the widest step needs saying.
     ----------------------------------------------------------------------- */
  .pf-support__grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media (min-width:1350px){
  /* four resource cards in one row once there is room, as the family pages do */
  .pf-res__grid{grid-template-columns:repeat(4,minmax(0,1fr))}
}

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

/* --------------------------------------------------------------------------
   Band run, shared by all three pages

   product-family.css leaves every shared section transparent, because the
   tint depends on where a section sits rather than on what it is. These three
   pages have the same run because they have the same shape, which is exactly
   the case where the run belongs in one file rather than three.
   -------------------------------------------------------------------------- */
.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-mod,.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)}

/* phones: "Talk to an FTCO expert" at the large button size is wider than a
   320px column; let it wrap, as the product pages do (Victory Analytics
   round, 2026-09-28; applies to all three FTCO tool pages) */
@media (max-width:639.98px){
  .page-banner__ctas .ps-btn--large,.section-headings__ctas .ps-btn--large{max-width:100%}
  .page-banner__ctas .ps-btn--large .ps-btn__text,.section-headings__ctas .ps-btn--large .ps-btn__text{white-space:normal;min-width:0}
}

/* Related with exactly four cards (Victory Analytics and Victory DoE since
   their 2026-09-28 rounds): two by two below 1350 instead of three and an
   orphan, and one row of four above it instead of four in a row of five */
@media (min-width:640px) and (max-width:1349.98px){
  .pf-related__list:has(> li:nth-child(4):last-child){grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (min-width:1350px){
  .pf-related__list:has(> li:nth-child(4):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
}

/* Victory Visual round (2026-09-28)
   VV-29: the Victory Visual card's three groups (subhead + text) */
.pf-module__group-name{margin:0 0 4px;font:500 14px/21px var(--ps-font);letter-spacing:normal;color:var(--ps-color-neutral-3-500)}
.pf-module__group .pf-module__what{margin-bottom:0}
.pf-module__group + .pf-module__group{margin-top:14px}
@media (min-width:1024px){
  #victory-visual .pf-module__body{grid-template-columns:repeat(3,minmax(0,1fr))}
  #victory-visual .pf-module__group + .pf-module__group{margin-top:0}
}
/* VV-07: the product brief card's link label */
#resources .pf-res-card__link{margin-top:auto;padding-top:12px;align-self:flex-start}
/* VV-13: seven Related cards, four then three from 1024 */
@media (min-width:1024px){
  .pf-related__list:has(> li:nth-child(7):last-child){grid-template-columns:repeat(4,minmax(0,1fr))}
}
