/* ─── FAQ page — dashboard palette ─── */
:root {
  --faq-bg:         #131313;
  --faq-surface:    #201f1f;
  --faq-surf-high:  #2a2a2a;
  --faq-border:     #414751;
  --faq-on-surface: #e5e2e1;
  --faq-muted:      #9aa1ad;
  --faq-blue:       rgb(62, 134, 183);
  --faq-blue-dim:   rgba(62, 134, 183, 0.15);
  --faq-green:      #4ae183;
  --faq-red:        #ffb4a9;
}

body.faq-page {
  background: var(--faq-bg);
  color: var(--faq-on-surface);
}

.faq-main {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px 20px 100px;
}

.faq-head {
  text-align: center;
  margin-bottom: 44px;
}
.faq-eyebrow {
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--faq-blue);
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 10px;
}
.faq-title {
  font-family: "Bebas Neue", sans-serif;
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: 0.02em;
  margin: 0 0 14px;
  color: #fff;
}
.faq-title .accent { color: var(--faq-blue); }
.faq-sub {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.92rem;
  color: var(--faq-muted);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.6;
}
.faq-sub a { color: var(--faq-blue); text-decoration: none; }
.faq-sub a:hover { text-decoration: underline; }

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--faq-surface);
  border: 1px solid var(--faq-border);
  border-radius: 8px;
  overflow: hidden;
}

.faq-q-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 18px 20px;
  text-align: left;
  color: var(--faq-on-surface);
}
.faq-q-btn:hover { background: var(--faq-surf-high); }
.faq-q-btn:focus-visible { outline: 2px solid var(--faq-blue); outline-offset: -2px; }

.faq-q-text {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
}

.faq-chevron {
  flex: none;
  color: var(--faq-muted);
  transition: transform 180ms ease;
}
.faq-item.open .faq-chevron { transform: rotate(180deg); color: var(--faq-blue); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 220ms ease;
}
.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding: 0 20px 20px;
  border-top: 1px solid var(--faq-border);
  padding-top: 16px;
}
.faq-answer-inner p {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--faq-muted);
  margin: 0 0 6px;
}
.faq-answer-inner strong { color: var(--faq-on-surface); }
.faq-answer-inner a { color: var(--faq-blue); text-decoration: none; }
.faq-answer-inner .faq-disclaimer {
  color: var(--faq-red);
  font-weight: 700;
  margin-top: 10px;
}
.faq-answer-inner a:hover { text-decoration: underline; }

/* ─── Voting ─── */
.faq-vote-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--faq-border);
}
.faq-vote-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  color: var(--faq-muted);
  font-weight: 600;
  margin-right: 4px;
}
.faq-vote-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--faq-border);
  background: var(--faq-surf-high);
  color: var(--faq-muted);
  cursor: pointer;
  transition: border-color 120ms ease, color 120ms ease, background 120ms ease;
}
.faq-vote-btn:hover:not(:disabled) { border-color: var(--faq-blue); color: var(--faq-blue); }
.faq-vote-btn:disabled { cursor: default; opacity: 0.5; }
.faq-vote-btn[data-vote="up"].selected   { border-color: var(--faq-green); color: var(--faq-green); opacity: 1; background: rgba(74,225,131,0.1); }
.faq-vote-btn[data-vote="down"].selected { border-color: var(--faq-red);   color: var(--faq-red);   opacity: 1; background: rgba(255,180,169,0.1); }

.faq-vote-thanks {
  display: none;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.76rem;
  color: var(--faq-blue);
  font-weight: 600;
}
.faq-vote-thanks.show { display: inline-block; }

@media (max-width: 560px) {
  .faq-main { padding: 40px 16px 80px; }
  .faq-q-text { font-size: 0.88rem; }
}

/* ── Global site footer (matches terms.css) ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 18px 40px;
  background: #000;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
}
.footer-brand {
  font-weight: 700;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.35);
}
.footer-sep { color: rgba(255,255,255,0.2); }
.footer-link {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-weight: 500;
  transition: color 160ms;
}
.footer-link:hover { color: #4d9fff; }
.footer-link[href="faq.html"] { color: rgb(255, 69, 0); }
.footer-link[href="faq.html"]:hover { color: rgb(255, 69, 0); opacity: 0.8; }

@media (max-width: 600px) {
  .site-footer { padding: 14px 16px; }
  .footer-inner { flex-wrap: wrap; gap: 8px 10px; }
}
