/* ========================================
   FAQ Page Specific Styles
   ======================================== */

.m2r-faq {
  font-family: Calibri, Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 11pt;
  line-height: 1.15;
}

/* FAQ specific headings */
.m2r-faq h1 {
  margin: 0 0 8pt 0;
  font-size: 20pt;
  font-weight: 700;
  color: var(--m2r-blue);
}

.faq-subtitle {
  font-size: 12pt;
  line-height: 1.15;
  color: var(--m2r-blue);
  margin: 0 0 14pt 0;
}

/* Search Bar */
.searchbar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

input[type="search"] {
  flex: 1;
  padding: 10pt 12pt;
  border: 1px solid #d0d7de;
  border-radius: 10px;
  font-size: 11pt;
  min-width: 200px;
}

input[type="search"]:focus {
  outline: 2px solid var(--m2r-blue);
  outline-offset: 2px;
}

.results-count {
  font-size: 10pt;
  color: #555;
  margin-left: auto;
}

/* FAQ Items */
.faq {
  display: grid;
  gap: 10pt;
  margin-top: 8pt;
}

.faq details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
}

.faq details[open] {
  border-color: var(--m2r-blue);
}

.faq summary {
  list-style: none;
  padding: 12pt 14pt;
  background: var(--m2r-blue);
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease;
  display: block;
}

.faq summary:hover {
  background: var(--m2r-navy);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::marker {
  display: none;
}

.faq summary:focus-visible {
  outline: 2px solid var(--m2r-green);
  outline-offset: 2px;
}

/* Answer Content */
.faq .answer {
  background: #fff;
  color: #000;
  padding: 12pt 14pt;
}

.faq .answer p {
  margin: 0 0 8pt 0;
  color: #000;
}

.faq .answer ul,
.faq .answer ol {
  margin: 0 0 8pt 0;
  padding-left: 18pt;
}

.faq .answer ul {
  list-style-type: disc;
}

.faq .answer ul ul {
  list-style-type: circle;
}

.faq .answer ul ul ul {
  list-style-type: square;
}

.faq .answer li {
  margin: 0 0 4pt 0;
  color: #000;
}

.faq .answer li::marker {
  font-size: 0.95em;
}

.faq .answer strong {
  color: var(--m2r-blue);
  font-weight: 700;
}

/* Highlight search matches */
mark {
  background: #fff59d;
  padding: 2px 0;
}

/* Control Buttons */
.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.controls button {
  padding: 8pt 10pt;
  border: 2px solid var(--m2r-blue);
  background: var(--m2r-green);
  color: #fff;
  border-radius: 10px;
  cursor: pointer;
  font-size: 10pt;
  font-weight: 600;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.05s;
}

.controls button:hover {
  background: #A7C53F;
}

.controls button:focus-visible {
  outline: 2px solid var(--m2r-blue);
  outline-offset: 2px;
}

.controls button:active {
  transform: translateY(1px);
}

/* Responsive */
@media (max-width: 768px) {
  .m2r-faq h1 {
    font-size: 18pt;
  }
  
  .faq-subtitle {
    font-size: 11pt;
  }
  
  .searchbar {
    flex-direction: column;
    align-items: stretch;
  }
  
  input[type="search"] {
    width: 100%;
  }
  
  .controls {
    justify-content: center;
  }
  
  .results-count {
    margin-left: 0;
    text-align: center;
  }
}
