/* =========================================================
   FAQ FINAL FIX
   - remove Ask a Librarian button
   - each FAQ expands independently
   - the FAQ beside it stays collapsed at normal height
   ========================================================= */

#faq .section-head{
  align-items:flex-start !important;
}

/* Critical: prevent CSS Grid from stretching both cards in a row */
#faq .faq-grid{
  align-items:start !important;
  grid-auto-rows:auto !important;
}

/* Each details element keeps only its own content height */
#faq .faq-item,
#faq details{
  align-self:start !important;
  height:auto !important;
  min-height:0 !important;
}

/* Closed FAQ remains compact even when the neighbouring item is open */
#faq details:not([open]){
  height:auto !important;
}

#faq details:not([open]) .faq-answer{
  display:none !important;
}

/* Only the clicked/open FAQ shows its answer */
#faq details[open] .faq-answer{
  display:block !important;
}

/* Keep a clean compact header */
#faq .faq-item > summary,
#faq details > summary{
  min-height:58px !important;
  box-sizing:border-box !important;
}

/* Remove any fixed/stretch height inherited from older FAQ styles */
#faq .faq-item,
#faq .faq-item[open]{
  max-height:none !important;
}

/* In two-column desktop layout, each card remains top-aligned */
@media(min-width:721px){
  #faq .faq-grid{
    display:grid !important;
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
    gap:12px 18px !important;
  }
}

/* Mobile remains one column */
@media(max-width:720px){
  #faq .faq-grid{
    grid-template-columns:1fr !important;
  }
}
