/* Penanto Enterprises – FAQ page and FAQ sections.
   Loaded only on pages that show FAQs, after styles.css. Uses the S03 tokens
   from .s03 and the existing .r-acc click-to-open style; styles.css is unchanged. */

/* Search box (shown by faq-search.js; hidden without JavaScript) */
.faq-search { margin-top: 28px; max-width: 560px; }
.faq-search label { display: block; margin-bottom: 6px; font-family: var(--font-head); font-weight: 600; color: var(--navy); }
.faq-search-field { position: relative; }
.faq-search-field svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; transform: translateY(-50%); color: var(--mid-grey); pointer-events: none; }
.faq-search input { width: 100%; min-height: 52px; padding: 12px 14px 12px 46px; border: 1px solid var(--mid-grey); border-radius: var(--radius); background: var(--white); color: var(--charcoal); font: inherit; }
.faq-search input:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; border-color: var(--navy); }
.faq-status { min-height: 1.6em; margin: 8px 0 0; font-size: var(--fs-small); color: var(--mid-grey); }
.faq-updated { margin: 18px 0 0; font-size: var(--fs-small); color: var(--mid-grey); }

/* Categories and industry subheadings */
.faq-group + .faq-group { margin-top: clamp(2.5rem, 6vw, 3.75rem); }
.faq-group > h2 { margin-bottom: 0; }
.faq-sub { margin-top: 30px; }
.faq-sub > h3 { margin: 0; font-size: var(--fs-h4); }
.faq-sub + .faq-sub { margin-top: 36px; }
.faq-group .r-acc { margin-top: 18px; gap: 12px; }
.faq-sub .r-acc { margin-top: 14px; }

/* Question and answer */
.faq-item summary { align-items: flex-start; }
.faq-item .r-chevron { margin-top: 2px; }
.faq-q { flex: 1; font-family: var(--font-head); font-size: var(--fs-h5); font-weight: 600; line-height: 1.4; color: var(--navy); }
.faq-a { padding: 0 20px 22px; max-width: 72ch; }
.faq-a p:last-child { margin-bottom: 0; }

/* No results */
.faq-empty { margin: 24px 0 0; padding: 20px 24px; background: var(--white); border-left: 4px solid var(--gold); border-radius: var(--radius); font-family: var(--font-head); font-weight: 600; color: var(--navy); }

/* Link from a page's FAQ section to the full FAQ page */
.faq-more { margin: 22px 0 0; font-weight: 600; }

@media (max-width: 640px) {
  .faq-a { padding: 0 16px 20px; }
}
@media print {
  .faq-search, .faq-status { display: none !important; }
}

/* FAQ sections on original-look pages (home, How It Works, Why Penanto):
   same click-to-open items, in the original-look colours, fonts and card shape
   from styles.css (:root variables), so the section matches the rest of the page. */
.faq-classic { display: grid; gap: 12px; max-width: 860px; margin: 0 auto; }
.faq-classic details { background: var(--white); border: 1px solid var(--line); border-radius: 16px; }
.faq-classic details[open] { border-color: var(--muted-fg); }
.faq-classic summary { display: flex; align-items: flex-start; gap: 16px; padding: 18px 24px; cursor: pointer; list-style: none; }
.faq-classic summary::-webkit-details-marker { display: none; }
.faq-classic .faq-q { flex: 1; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 700; line-height: 1.3; color: var(--primary); }
.faq-classic .r-chevron { display: block; width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--primary); transition: transform .2s ease; }
.faq-classic .r-chevron svg { display: block; width: 100%; height: 100%; }
.faq-classic details[open] .r-chevron { transform: rotate(180deg); }
.faq-classic .faq-a { padding: 0 24px 20px; max-width: none; }
.faq-classic .faq-a p { max-width: 72ch; }
@media (prefers-reduced-motion: reduce) { .faq-classic .r-chevron { transition: none; } }
@media (max-width: 600px) {
  .faq-classic summary { padding: 16px 18px; }
  .faq-classic .faq-a { padding: 0 18px 18px; }
}
