/* ==========================================================================
   faq.css  -  FAQ (CONTENT)
   Used by: <section id="faq"> in index.html. Each question is a <details> element: click to open the answer.
   Compact on purpose: smaller heading, tighter questions, and each question is a small outlined row
   (the open one gets a blue outline) instead of one very tall list.
   ========================================================================== */

/* A smaller heading and less space above and below than the big sections. */
#faq .wrap { gap: 32px; padding-block: clamp(48px, 6vw, 80px); }
#faq h2 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }

/* The list of questions: small gaps between the rows. */
.faq { display: flex; flex-direction: column; gap: 10px; max-width: 760px; }
/* One question and answer: a white row with a thin outline. */
.faq details { background: #fff; border: 1px solid var(--border-light); border-radius: 10px; transition: border-color .2s ease, box-shadow .2s ease; }
.faq details:hover { border-color: var(--border-dark); }
/* The open row has a blue outline. */
.faq details[open] { border-color: var(--brand-blue); box-shadow: 0 8px 20px -14px rgba(10, 91, 255, .5); }
/* The question line (clickable). */
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 16px; min-height: 52px; padding: 12px 18px; font-weight: 400; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.3; letter-spacing: -.01em; }
/* Hide the default triangle in Safari / Chrome. */
.faq summary::-webkit-details-marker { display: none; }
/* The question number (taken from the data-n attribute in the HTML). */
.faq summary::before { content: attr(data-n); flex: 0 0 24px; font: 11.5px var(--font-mono); color: var(--text-small); }
/* A "+" sign on the right. */
.faq summary::after { content: "+"; margin-left: auto; font: 18px var(--font-mono); color: var(--text-small); }
/* When open, the number and the sign turn blue. */
.faq details[open] summary::before, .faq details[open] summary::after { color: var(--brand-blue); }
/* When open, the "+" becomes "-". */
.faq details[open] summary::after { content: "\2212"; }
/* The answer text. */
.faq details p { padding: 0 48px 18px 58px; max-width: 700px; font-size: 15px; line-height: 1.55; color: var(--text-body); }
/* Phones: less space around the answer. */
@media (max-width: 560px) { .faq summary { padding: 12px 14px; gap: 12px; } .faq details p { padding: 0 14px 16px 50px; } }
