/* ============================================================
   faq.css — page-specific layout for faq.html
   Apple-style disclosure using native <details>/<summary>.
   Animation uses grid-rows trick — reliable, no JS measurement.
   js/main.js initFaq() handles one-open-at-a-time.
   ============================================================ */

#faq .lbl,
#faq .s-title { text-align: center; }

.faq-intro {
  margin: 0 auto 28px;
  text-align: center;
}

.faq-list {
  max-width: 720px;
  margin: 0 auto;
  border-top: 1px solid var(--border);
}

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item > summary { list-style: none; }
.faq-item > summary::-webkit-details-marker { display: none; }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  cursor: pointer;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.4;
  color: var(--text);
  transition: color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.faq-q:hover { color: var(--text); }
.faq-q:hover .faq-chev { color: var(--text2); }
.faq-q:focus-visible {
  outline: 2px solid var(--border-hi);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-chev {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  color: var(--text3);
  transition: transform .28s cubic-bezier(.16,1,.3,1),
              color .2s ease;
  transform-origin: 50% 50%;
}
.faq-item[open] > .faq-q .faq-chev {
  transform: rotate(180deg);
  color: var(--text2);
}

.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .32s cubic-bezier(.16,1,.3,1);
}
.faq-a-wrap > .faq-a {
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity .24s ease .04s,
              transform .28s cubic-bezier(.16,1,.3,1) .04s;
}
.faq-item[open] > .faq-a-wrap {
  grid-template-rows: 1fr;
}
.faq-item[open] > .faq-a-wrap > .faq-a {
  opacity: 1;
  transform: none;
}

.faq-a {
  font-size: 15px;
  font-weight: 300;
  line-height: 1.75;
  color: var(--text2);
  max-width: 640px;
}
.faq-a p { padding-bottom: 24px; }
.faq-a a {
  color: var(--text);
  border-bottom: 1px solid var(--border-md);
  transition: border-color .2s ease;
}
.faq-a a:hover { border-color: var(--border-hi); }

@media (max-width: 540px) {
  .faq-q { font-size: 16px; padding: 20px 0; gap: 18px; }
  .faq-a { font-size: 14.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .faq-a-wrap,
  .faq-a-wrap > .faq-a,
  .faq-chev { transition: none; }
}
