/* ===================================================================
   FAQ — page-specific styles for faq.html
   Requires global.css to be loaded first (variables, nav, breakpoints,
   .accent, .reveal, footer components).
   =================================================================== */
.faq-section{
  background: var(--navy);
  color: var(--frost);
  padding: 150px 0;
}
.faq-title{
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.3;
  color: var(--frost);
  margin: 0 0 90px;
  max-width: none;
  white-space: nowrap;
}
.faq-category{
  display: grid;
  grid-template-columns: minmax(160px, 22%) 1fr;
  gap: 48px;
  padding: 56px 0;
  border-top: 1px solid rgba(247,249,251,0.14);
}
.faq-category:first-of-type{ border-top: none; padding-top: 0; }
.faq-cat-label{
  font-family: 'Playfair Display', serif; font-weight: 700; font-size: 19px;
  color: var(--frost);
  align-self: center;
  margin: 0;
}
.faq-items{
  border-left: 1px solid rgba(247,249,251,0.22);
  padding-left: 48px;
  display: flex; flex-direction: column;
  gap: 40px;
}
.faq-item{ border: none; padding: 0; }
/* summary is a flex row of exactly two items: the .faq-q text wrapper and
   the ::after marker. Without wrapping the question text in one element,
   each run of raw text around <span class="accent"> becomes its own
   anonymous flex item, and justify-content: space-between spreads them
   apart across the row — that was the gap-around-"Karnot" bug. */
.faq-item summary{
  cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: 20px;
}
.faq-item summary::-webkit-details-marker{ display: none; }
.faq-q{
  font-family: 'Playfair Display', serif; font-size: 18px; font-weight: 400;
  color: var(--frost);
}
.faq-item summary::after{
  content: '+'; font-family: 'Inter', sans-serif; font-weight: 400; font-size: 20px;
  color: var(--gold); flex-shrink: 0;
}
.faq-item[open] summary::after{ content: '\2212'; }
.faq-item .faq-answer{
  margin-top: 16px;
  font-family: 'Playfair Display', serif;
  font-size: 15.5px; line-height: 1.7;
  color: var(--frost); opacity: 0.78;
  text-align: justify;
  max-width: 640px;
}
.faq-item .faq-answer p{ margin: 0; }

/* ============ RESPONSIVE — tablet ============ */
@media (max-width: 1024px){
  .faq-category{ grid-template-columns: 1fr; gap: 20px; }
  .faq-items{
    border-left: none; padding-left: 0;
    border-top: 1px solid rgba(247,249,251,0.14); padding-top: 28px;
  }

  /* At 44 characters this headline is long enough to outrun its own
     3.2vw scaling once the clamp floor engages below ~875px — wrap it
     here rather than let it overflow the viewport. */
  .faq-title{ white-space: normal; max-width: 22ch; }
}

/* ============ RESPONSIVE — mobile ============ */
@media (max-width: 640px){
  .faq-section{ padding: 90px 0; }
  .faq-title{ margin-bottom: 56px; }
  .faq-category{ padding: 40px 0; }
  .faq-items{ gap: 28px; }
  .faq-item .faq-answer{ text-align: left; }
}
