/* Shared FAQ component (.ifp-faq-*).
   Moved out of smartclass.css on 2026-10-03 so every page that carries FAQs — not only the
   product pages — can load it without the 88 KB product stylesheet. One definition: the
   category sidebar, search box, accordion and tap-target rules all live here, and new/js/faq-search.js
   drives it. Markup: snl_render_page_faq() in inc/faq-render.php, or hand-written on the product pages. */
.ifp-faq-section {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  padding: var(--space-section) var(--site-pad-x);
}
.ifp-faq-inner { max-width: var(--site-max-w); margin: 0 auto; }
.ifp-faq-badge {
  display: inline-flex; align-items: center;
  padding: 7px 18px;
  background: rgba(var(--accent-rgb), 0.08);
  border: 1px solid rgba(var(--accent-rgb), 0.22);
  border-radius: 999px;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 12px; font-weight: 700;
  color: var(--primary); letter-spacing: 2px; text-transform: uppercase;
  margin-bottom: 16px;
}
.ifp-faq-intro,
.ifp-faq-conclusion {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: clamp(15px, 1.4vw, 17px); line-height: 1.75; color: var(--fg-body);
  max-width: 820px; margin: 0 auto 40px; text-align: center;
}
.ifp-faq-conclusion { margin: 48px auto 0; }
.ifp-faq-conclusion + .ifp-faq-conclusion { margin-top: 18px; }
.ifp-faq-intro a, .ifp-faq-conclusion a { color: var(--primary); font-weight: 600; text-decoration: none; }
.ifp-faq-intro a:hover, .ifp-faq-conclusion a:hover { text-decoration: underline; }
.ifp-faq-search {
  display: flex; align-items: center; gap: 12px;
  max-width: 560px; margin: 0 auto 48px;
  background: var(--surface-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 22px;
  box-shadow: 0 8px 24px rgba(15,23,42,0.05);
}
.ifp-faq-search [data-lucide] { width: 18px; height: 18px; stroke: #94A3B8; flex-shrink: 0; }
.ifp-faq-search input {
  border: none; outline: none; flex: 1;
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 14px; color: var(--clr-text); background: transparent;
}
.ifp-faq-search input::placeholder { color: var(--fg-faint); }
.ifp-faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}
/* Sticky sidebar — top offset clears the floating header (site-header */
.ifp-faq-sidebar {
  display: flex; flex-direction: column; gap: 4px;
  position: sticky; top: 72px;
  max-height: calc(100vh - 88px);
  overflow-y: auto;
  background: var(--surface-card);
  border: 1px solid #E8EEF4;
  border-radius: 16px;
  padding: 14px;
}
.ifp-faq-sidebar-title {
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 13px; font-weight: 700; color: var(--fg-primary);
  text-transform: uppercase; letter-spacing: 1px;
  padding: 4px 10px 10px; margin: 0;
}
.ifp-faq-cat {
  display: flex; align-items: center; gap: 12px;
  padding: 8px 10px;
  border: none; background: none; border-radius: 12px;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 13.5px; font-weight: 600; color: var(--fg-body);
  text-align: left; cursor: pointer;
  transition: all 0.2s ease;
}
.ifp-faq-cat:hover { background: var(--surface); color: var(--primary); }
.ifp-faq-cat-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
.ifp-faq-cat-icon [data-lucide] { width: 17px; height: 17px; stroke: #94A3B8; transition: stroke 0.2s ease; }
.ifp-faq-cat-label { flex: 1; }
.ifp-faq-cat.active { background: rgba(var(--accent-rgb), 0.08); color: var(--primary); }
.ifp-faq-cat.active .ifp-faq-cat-icon { background: var(--primary); }
.ifp-faq-cat.active .ifp-faq-cat-icon [data-lucide] { stroke: #fff; }
.ifp-faq-count {
  font-size: 11px; font-weight: 700;
  background: rgba(15,23,42,0.06);
  padding: 2px 9px; border-radius: 999px;
  color: var(--fg-faint);
}
.ifp-faq-cat.active .ifp-faq-count { background: rgba(var(--accent-rgb), 0.12); color: var(--primary); }
.ifp-faq-help {
  display: flex; align-items: flex-start; gap: 12px;
  margin-top: 10px; padding: 14px;
  background: rgba(var(--accent-rgb), 0.06);
  border-radius: 14px; text-decoration: none;
}
.ifp-faq-help-icon {
  flex-shrink: 0; width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.12);
  display: flex; align-items: center; justify-content: center;
}
.ifp-faq-help-icon [data-lucide] { width: 17px; height: 17px; stroke: var(--primary); }
.ifp-faq-help-text { display: flex; flex-direction: column; gap: 4px; }
.ifp-faq-help-title {
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 12.5px; line-height: 1.4; color: var(--fg-muted);
}
.ifp-faq-help-link {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 13px; font-weight: 700; color: var(--primary);
}
.ifp-faq-help-link [data-lucide] { width: 14px; height: 14px; stroke: var(--primary); transition: transform 0.2s ease; }
.ifp-faq-help:hover .ifp-faq-help-link [data-lucide] { transform: translateX(3px); }
.ifp-faq-list { display: flex; flex-direction: column; gap: 12px; }
/* FAQ item — card treatment reusing the shared card shadow recipe */
.ifp-faq-item {
  background: var(--surface-card);
  border: 1px solid #E8EEF4;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05), 0 8px 28px rgba(0,0,0,0.06);
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.ifp-faq-item.active {
  background: rgba(var(--accent-rgb), 0.05);
  border-color: rgba(var(--accent-rgb), 0.25);
  box-shadow: 0 8px 24px rgba(var(--accent-rgb), 0.10);
}
.ifp-faq-item.ifp-faq-hidden { display: none; }
.ifp-faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px;
  background: none; border: none; cursor: pointer; text-align: left;
  font-family: var(--h-font, 'Inter', sans-serif);
  font-size: 15px; font-weight: 700; color: var(--fg-primary); line-height: 1.5;
}
.ifp-faq-item.active .ifp-faq-q { color: var(--primary); }
.ifp-faq-icon {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(var(--accent-rgb), 0.08);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.3s ease;
}
.ifp-faq-item.active .ifp-faq-icon { background: var(--primary); }
.ifp-faq-icon svg { width: 14px; height: 14px; stroke: var(--primary); }
.ifp-faq-item.active .ifp-faq-icon svg { stroke: #fff; }
.ifp-faq-icon-v { transform-origin: center; transition: transform 0.25s ease; }
.ifp-faq-item.active .ifp-faq-icon-v { transform: scaleY(0); }
.ifp-faq-a {
  display: none;
  padding: 0 22px 22px;
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 14px; line-height: 1.75; color: var(--fg-body);
}
.ifp-faq-item.active .ifp-faq-a { display: block; }
.ifp-faq-empty {
  display: none;
  text-align: center; padding: 40px 20px;
  font-family: var(--p-font, 'Inter', sans-serif);
  font-size: 14px; color: var(--fg-faint);
}
@media (max-width: 1100px) {
.ifp-faq-layout { grid-template-columns: 1fr; gap: 24px; }
.ifp-faq-sidebar { position: static; max-height: none; overflow-y: visible; }
}
@media (max-width: 599px) {
.ifp-faq-search { margin-bottom: 32px; padding: 12px 18px; }
.ifp-faq-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    overflow-x: visible;
    gap: 8px;
  }
.ifp-faq-sidebar-title, .ifp-faq-help { display: none; }
.ifp-faq-cat {
    flex: 0 1 auto;
    flex-shrink: 0;
    white-space: nowrap;
    padding: 6px 10px 6px 6px;
    gap: 7px;
    font-size: 12px;
  }
.ifp-faq-cat-icon { width: 24px; height: 24px; }
.ifp-faq-cat-icon [data-lucide] { width: 12px; height: 12px; }
.ifp-faq-count { font-size: 10px; padding: 1px 7px; }
.ifp-faq-q { padding: 16px 18px; font-size: 14px; }
.ifp-faq-a { padding: 0 18px 18px; }
.ifp-faq-list, .ifp-faq-group { gap: 10px; }
}

/* Tap targets — 44 px controls on touch screens */
@media (max-width: 767px), (pointer: coarse) {
  .ifp-faq-cat { min-height: 44px; }
  .ifp-faq-search { padding-block: 0; }
  .ifp-faq-search input { min-height: 44px; }
}
