/* Scaffold tabs (S1-T6): the tablist, panels and feature list of the modules,
   features and ai sections, printed by template-parts/scaffold/tabs.php.

   Ported from the approved S0 mock CSS, docs/scaffold/mocks/mock-shared.css.txt
   lines 264-286 (tabs, panels, feature list) and the .mk-tabs / .mk-panel
   rules of the responsive block (568-607: lines 577 and 597), 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-*), the bands, the .ifs-shot frame and the ifs-fade
   keyframes come from base.css; the screen presets are screens.css.

   Three rules are not in the mock CSS:
   - .ifs-panel.is-noscreen: a panel with no screen is one column, list full
     width (SPEC.md section 2.4).
   - .ifs-shot-img: an uploaded screen_image fills the base.css frame instead
     of overflowing it.
   - .ifs-ai .ifs-head-block h2: the mock's AI heading carries an inline
     style="max-width:30rem" (all three mocks, #mk-*-ai), which the part does
     not print (SPEC.md section 2.0 markup has no style attribute). It is
     ported here, scoped to that section, as faq.css does for its 24rem.

   Every selector starts with .ifs. No !important: base.css already forces
   the font-family of .ifs p, and the bundle forces no button, span or li
   property these rules set. */

/* ---------- tabs (role=tablist), panels, feature list ---------- */
.ifs .ifs-tabs{display:flex;flex-wrap:nowrap;gap:.15rem;margin-top:2.5rem;border-bottom:1px solid var(--if-s-rule);
  overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:thin;scrollbar-color:var(--if-s-rule-strong) transparent;-webkit-overflow-scrolling:touch}
.ifs .ifs-tab{position:relative;flex:none;white-space:nowrap;padding:.75rem .95rem;border-radius:.5rem .5rem 0 0;
  font-family:var(--if-head);font-size:.95rem;font-weight:600;letter-spacing:-.01em;line-height:1.4;color:var(--if-s-tab);background:transparent;transition:color .15s}
.ifs .ifs-tab:hover,.ifs .ifs-tab[aria-selected="true"]{color:var(--if-s-tab-on)}
.ifs .ifs-tab[aria-selected="true"]::after{content:"";position:absolute;left:.95rem;right:.95rem;bottom:0;height:2px;border-radius:2px;background:var(--if-s-bar)}
.ifs .ifs-tab:focus-visible{outline-offset:-2px}
.ifs .ifs-panels{margin-top:2.25rem}
.ifs .ifs-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:3rem;align-items:start;animation:ifs-fade .25s ease}
.ifs .ifs-panel[hidden]{display:none}
.ifs .ifs-panel-left,.ifs .ifs-panel-right{min-width:0}
.ifs .ifs-tab-lead{margin-top:.85rem;max-width:26rem;color:var(--if-s-text);font-size:.95rem;line-height:1.5}
.ifs .ifs-feat{display:flex;flex-direction:column;gap:.15rem;margin-top:1rem}
.ifs .ifs-feat-item{width:100%;display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.6rem;text-align:left;padding:.7rem .8rem;border-radius:.5rem;background:transparent;transition:background-color .15s}
.ifs .ifs-feat-item::before{content:"\2192";font-family:var(--if-mono);color:var(--if-s-arrow);opacity:0;line-height:1.4;transition:opacity .15s}
.ifs .ifs-feat-item .ifs-t{font-family:var(--if-head);font-size:.95rem;font-weight:600;letter-spacing:-.01em;line-height:1.4;color:var(--if-s-text);transition:color .15s}
.ifs .ifs-feat-item .ifs-d{grid-column:2;font-size:.85rem;line-height:1.45;color:var(--if-s-muted);margin-top:.2rem}
.ifs .ifs-feat-item:hover,.ifs .ifs-feat-item[aria-pressed="true"]{background:var(--if-s-feat-on)}
.ifs .ifs-feat-item:hover .ifs-t,.ifs .ifs-feat-item[aria-pressed="true"] .ifs-t{color:var(--if-s-fg)}
.ifs .ifs-feat-item[aria-pressed="true"]::before{opacity:1}
.ifs .ifs-feat-item:focus-visible{outline-offset:0}

/* ---------- not in the mock CSS (see the header) ---------- */
.ifs .ifs-panel.is-noscreen{grid-template-columns:minmax(0,1fr)}
.ifs .ifs-shot-img{display:block;width:100%;height:auto;border-radius:.75rem}
.ifs .ifs-ai .ifs-head-block h2{max-width:30rem}

/* ---------- responsive (container width, mock 568-607) ---------- */
@container ifs (max-width:820px){
  .ifs .ifs-panel{grid-template-columns:minmax(0,1fr);gap:1.5rem}
}
@container ifs (max-width:560px){
  .ifs .ifs-tabs{flex-wrap:wrap;overflow:visible}
}
