/* Scaffold cards (S1-T5): the card grid of the industries, sectors, security
   and differentiators sections, printed by template-parts/scaffold/cards.php.

   Ported from the approved S0 mock CSS, docs/scaffold/mocks/mock-shared.css.txt
   lines 456-469 (cards) and the .mk-sector-grid rules of the responsive block
   (568-607), under the rename rule of docs/scaffold/SPEC.md section 2.0
   (.mk -> .ifs, mk-<n> -> ifs-<n>, --mk-<n> -> --if-<n>, container mk -> ifs).
   Ownership: SPEC.md section 4.4. Surface tokens (--if-s-*) and the bands
   come from base.css.

   Every selector starts with .ifs. No !important: the bundle forces no h3
   property, and the card <p>'s font-family is already forced by base.css. */

/* ---------- cards ---------- */
.ifs .ifs-sector-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem;margin-top:2.5rem}
.ifs .ifs-sector-grid.is-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ifs .ifs-card{display:block;min-width:0;background:var(--if-s-card);color:var(--if-s-fg);border:1px solid var(--if-s-card-rule);border-radius:1rem;padding:1.5rem;transition:border-color .15s,box-shadow .2s}
.ifs .ifs-card:hover{border-color:var(--if-s-card-hover);box-shadow:var(--if-s-shadow)}
.ifs .ifs-card.is-static:hover{border-color:var(--if-s-card-rule);box-shadow:none}
.ifs .ifs-ico{width:34px;height:34px;border-radius:9px;background:var(--if-s-ico-bg);color:var(--if-s-ico-fg);display:grid;place-items:center}
.ifs .ifs-ico svg{width:17px;height:17px}
.ifs .ifs-card h3{font-size:1.02rem;margin-top:1rem;letter-spacing:-.01em;line-height:1.3;color:var(--if-s-fg)}
.ifs .ifs-card p{font-size:.875rem;line-height:1.45;color:var(--if-s-text);margin-top:.45rem}
.ifs a.ifs-card h3::after{content:" \2192";color:var(--if-s-arrow);opacity:0;transition:opacity .15s}
.ifs a.ifs-card:hover h3::after,.ifs a.ifs-card:focus-visible h3::after{opacity:1}
.ifs a.ifs-card:focus-visible{outline-offset:2px;border-radius:1rem}

/* ---------- responsive (container width, mock 568-607) ---------- */
@container ifs (max-width:900px){
  .ifs .ifs-sector-grid,.ifs .ifs-sector-grid.is-4{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@container ifs (max-width:560px){
  .ifs .ifs-sector-grid,.ifs .ifs-sector-grid.is-4{grid-template-columns:minmax(0,1fr)}
}
