/* ── Base card ── */
.acard, .qcard {
  border: 1px solid var(--b);
  border-radius: 7px;
  margin: 10px 25px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow .15s;
  background: var(--w);
}
.acard:hover, .qcard:hover { box-shadow: 0 2px 10px rgba(0,0,0,.07) }

/* ── Card header (avatar + name + timestamp) ── */
.qct {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-hbg);
  padding: 10px 14px;
}
.qct > a { display: inline-flex; align-self: center; flex-shrink: 0 }

/* new-style card header (home feed acard) */
.qcard-head {
  background: var(--bs);
  padding: 9px 12px 8px;
  display: flex;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--b);
}
.qcard-head-info { flex: 1; min-width: 0 }
.qcard-head-top { display: flex; align-items: baseline; justify-content: space-between; gap: 4px }
.qcard-names { display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap; min-width: 0 }

/* ── Card body ── */
.qcard-body { padding: 10px 14px 0; background: var(--w) }
.card-content { padding: 8px 12px 0 }

/* ── Avatar ── */
.qava {
  width: 40px; height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fd); font-size: 1rem; color: #fff; font-style: italic;
  overflow: hidden;
}
.qava img { width: 100%; height: 100%; object-fit: cover; border-radius: 50% }

/* ── Meta row ── */
.qbody { flex: 1; min-width: 0 }
.qmeta { display: flex; align-items: center; gap: 5px; flex-wrap: wrap }
.qn { font-size: .84rem; font-weight: 700; color: var(--ink) }
.qh { font-size: .74rem; color: var(--i4) }
.qt { font-size: .72rem; color: var(--i4); margin-left: auto; white-space: nowrap; flex-shrink: 0 }
.qdot { display: none }

/* ── Source pill ── */
.from-pill { display: inline-block; margin-top: 4px; font-size: .67rem; font-weight: 600; padding: 2px 8px; border-radius: 99px; letter-spacing: .02em }
.from-pill-q { background: #fce8ee; color: var(--qtag) }
.from-pill-a { background: #ece8f5; color: var(--anon) }
.tag-source { display: inline-block; font-size: .65rem; font-weight: 600; padding: 1px 8px; border-radius: 99px; line-height: 1.6 }
.tag-source.from-questions { color: var(--qtag); background: var(--qtagbg) }
.tag-source.from-anonymous { color: var(--anon); background: var(--anonbg) }
.qtag-row { margin-top: 3px }

/* ── Question text ── */
.qq {
  font-family: var(--fd);
  font-size: .82rem;
  color: var(--i3);
  font-style: italic;
  line-height: 1.55;
}

/* ── Answer text ── */
.qa {
  font-size: .86rem;
  color: var(--ink);
  line-height: 1.75;
  margin-top: 6px;
  font-weight: 500;
}

/* ── Actions row ── */
.qactions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 6px 12px 8px;
  margin-top: 6px;
  border-top: 1px solid var(--b);
}
.qact { display: flex; align-items: center; gap: 4px; background: none; border: none; color: var(--i4); font-size: .75rem; cursor: pointer; padding: 4px 6px; transition: color .12s }
.qact:hover { color: var(--a) }
.qact.liked { color: var(--qtag) }
.qact svg { width: 17px; height: 17px }
.qshare { display: flex; align-items: center; background: none; border: none; color: var(--i4); cursor: pointer; padding: 4px 6px; transition: color .12s }
.qshare:hover { color: var(--a) }
.qshare svg { width: 17px; height: 17px }

/* ── Question box link (profile page) ── */
.qblink { display: flex; align-items: center; gap: 9px; padding: 11px 16px; border-bottom: 1px solid var(--b); cursor: pointer; transition: background .1s; text-decoration: none }
.qblink:hover { background: var(--bs) }
.qbicon { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.qbicon svg { width: 18px; height: 18px; color: var(--a) }
.qblbl { font-family: var(--fd); font-size: .8rem; font-style: italic; color: var(--i3) }
.qblbl span { color: var(--a) }
.qbsub { font-size: .65rem; color: var(--i4); margin-top: 1px }
