/* Moon Art Grounds — shared accordion (FAQ / 관람 안내).
   One component for education.html (컬러 메이크 FAQ) and visit.html (관람 안내, FAQ):
   a red "모두 펼치기 / 모두 접기" text control with a chevron, then <details class="cm-faq__item">
   rows separated by hairlines with a red "+" that becomes "−" when open.
   Behaviour: js/accordion.js. Moved here verbatim from the Color Make page's inline styles. */

/* Expand / Collapse All — same text-link CTA as faq.html */
.cm-faq-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
  padding: 14px 0;
  background: none;
  border: 0;
  cursor: pointer;
  font-family: var(--font-kr);
  font-size: 0.9rem;
  font-weight: 500 !important;
  color: #C0392B;
  transition: opacity 180ms var(--ease-standard);
}
.cm-faq-toggle:hover { opacity: 0.66; }
.cm-faq-toggle span { font-weight: 500 !important; }
.cm-faq-toggle:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.55); border-radius: 4px; }
.cm-faq-toggle__chev { flex: none; transition: transform 220ms var(--ease-standard); }
.cm-faq-toggle[aria-expanded="true"] .cm-faq-toggle__chev { transform: rotate(180deg); }
.cm-faq { margin-top: 0.5rem; border-top: 1px solid rgba(28,26,23,0.12); }
.cm-faq__item { border-bottom: 1px solid rgba(28,26,23,0.12); }
.cm-faq__item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.9rem 0;
  font-size: 1rem;
  font-weight: 500 !important;
  line-height: 1.5;
}
.cm-faq__item summary::-webkit-details-marker { display: none; }
/* Text wrapped in spans (e.g. the Visit page's bilingual titles) takes the row's own line-height,
   so every row is the same height as a plain-text row */
.cm-faq__item summary > *, .cm-faq__item summary [lang] { line-height: inherit; }
.cm-faq__item summary::after {
  content: '+';
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 300;
  line-height: 1;
  color: #C0392B;
}
.cm-faq__item[open] summary::after { content: '−'; }
.cm-faq__item summary:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.55); border-radius: 4px; }
#main .cm-faq__item p { margin: 0 0 1rem; font-size: 1rem; line-height: 1.75; word-break: keep-all; }
