/* faq.css — based on privacy.css, scoped for FAQ page */

/* Compatibility: allow replacing id="cards" with class="cards" without layout regressions. */
#cards, .cards {
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Basic container for faq card and injected content */
#faq-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem;
  box-sizing: border-box;
  background: transparent;
}

/* .bordered-faq-card archived to css/unused-archive.css */

/* Injected content container (markdown output or static details) */
#faq-content {
  max-width: 900px;
  margin: 0.75rem auto;
  padding: 0.5rem 0;
  color: var(--brand-black);
  font-size: 0.8rem;
  line-height: 1.5;
}

/* H1 title style used on privacy/terms — mirrored for FAQ */
.faq-title {
  display: table !important;
  width: auto !important;
  margin: 0.5rem auto 0.5rem auto !important;
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--brand-blue) !important;
  text-align: center !important;
  padding-bottom: 0.125rem !important;
  border-bottom: 2px solid var(--brand-red) !important;
  white-space: normal !important;
}

.faq-card h1.faq-title {
  display: table !important;
  width: auto !important;
  margin: 0.5rem auto 0.5rem auto !important;
  border-bottom: 2px solid var(--brand-red) !important;
}

/* Small italic summary under the title (if used) */
/* .faq-summary, .faq-page-summary archived to css/unused-archive.css */


/* Toolbar: center buttons and keep spacing */
/* faq toolbar and toolbar button normalization archived to css/unused-archive.css */


/* Ensure injected content flows vertically inside the faq card */
.faq-card > .ninehundred,
.faq-card.ninehundred,
.faq-card .ninehundred {
  display: block !important;
  width: 100% !important;
  box-sizing: border-box !important;
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: left !important;
}

.faq-card .faq-toolbar {
  width: 100% !important;
  justify-content: center !important;
  margin: 0 auto 0.5rem auto !important;
}

/* Footer/date */
/* #faq-footer and faq-date archived to css/unused-archive.css */


/* Paragraphs and list items emitted from markdown or used in page */
.faq-body, #faq-content p, #faq-content li, #faq-content dd {
  color: var(--brand-black) !important;
  text-align: justify !important;
  font-size: 0.8rem !important;
}

/* Clause headings inside the markdown or summary elements */
.faq-clause-heading {
  color: var(--brand-blue) !important;
  text-align: left !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  margin-top: 1rem !important;
  margin-bottom: 0.25rem !important;
}

/* Fallback: if injected H4s or summary elements don't have the clause class, style them */
#faq-content h4,
#faq-content summary.h4 {
  color: var(--brand-blue) !important;
  font-weight: 700 !important;
  text-align: left !important;
  padding-left: 10px !important;
  cursor: pointer !important;
}

/* Ensure summary elements (including those using `faq-clause-heading`) show a pointer cursor */
#faq-content summary,
#faq-content summary.faq-clause-heading {
  cursor: pointer !important;
  padding-left: 10px !important;
  color: var(--brand-blue) !important;
  font-weight: 700 !important;
  text-align: left !important;
}

/* Ensure muted/general-text inherits faq body style inside FAQ card */
#faq-content .general-text-muted {
  color: var(--brand-black) !important;
  text-align: justify !important;
  font-size: 0.8rem !important;
}

#faq-content h1.faq-title {
  display: table !important;
  margin: 0.5rem auto !important;
  width: auto !important;
  border-bottom: 2px solid var(--brand-red) !important;
}

@media print {
  #faq-card { box-shadow: none; border: none; max-width: 100% !important; padding: 0; }
  #faq-content { font-size: 12pt; line-height: 1.4; }
  #faq-date { text-align: right; }
}
