/* qa.css — مجتمع أسئلة العبور */
.qa-box{margin:2.2rem 0;border:1px solid #e2e8f0;border-radius:16px;background:#fff;overflow:hidden}
.qa-head{padding:1.1rem 1.4rem;background:#f8fafc;border-bottom:1px solid #e2e8f0;display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}
.qa-head b{font-size:1.15rem;color:#0f172a}
.qa-head small{color:#64748b;display:block;margin-top:.2rem}
.qa-btn{display:inline-block;background:#0f172a;color:#fff;border:0;border-radius:10px;padding:.6rem 1.1rem;font-family:inherit;font-size:.95rem;cursor:pointer;text-decoration:none}
.qa-btn:hover{background:#1e293b}
.qa-btn.ghost{background:#fff;color:#0f172a;border:1px solid #cbd5e1}
.qa-list{padding:0 1.4rem}
.qa-q{padding:1.1rem 0;border-bottom:1px solid #f1f5f9}
.qa-q:last-child{border-bottom:0}
.qa-q-title{font-weight:700;color:#0f172a;cursor:pointer;display:flex;gap:.6rem;align-items:baseline}
.qa-q-title:hover{color:#1d4ed8}
.qa-meta{color:#64748b;font-size:.82rem;margin-top:.3rem}
.qa-vote{display:inline-flex;align-items:center;gap:.35rem;border:1px solid #e2e8f0;border-radius:8px;padding:.1rem .5rem;background:#fff;cursor:pointer;font-family:inherit;font-size:.85rem;color:#334155}
.qa-vote:hover{border-color:#0f172a}
.qa-vote.on{background:#0f172a;color:#fff}
.qa-answers{margin:.8rem 2.2rem .4rem 0;padding-inline-start:1rem;border-inline-start:3px solid #e2e8f0}
.qa-a{padding:.6rem 0;font-size:.95rem;line-height:1.9}
.qa-a small{color:#64748b}
.qa-empty{padding:1.6rem 1.4rem;color:#64748b;text-align:center}
.qa-form{padding:1.2rem 1.4rem;background:#f8fafc;border-top:1px solid #e2e8f0;display:none}
.qa-form.open{display:block}
.qa-form input,.qa-form textarea,.qa-auth input{width:100%;box-sizing:border-box;font-family:inherit;font-size:.95rem;padding:.7rem .9rem;border:1px solid #cbd5e1;border-radius:10px;margin-bottom:.7rem;background:#fff;color:#0f172a}
.qa-form textarea{min-height:90px;resize:vertical}
.qa-msg{font-size:.88rem;margin:.4rem 0;color:#b91c1c}
.qa-msg.ok{color:#15803d}
.qa-auth{position:fixed;inset:0;background:rgba(15,23,42,.55);display:none;align-items:center;justify-content:center;z-index:999;padding:1rem}
.qa-auth.open{display:flex}
.qa-auth-card{background:#fff;border-radius:16px;padding:1.6rem;width:min(420px,100%);max-height:90vh;overflow:auto}
.qa-auth-card h3{margin:0 0 1rem;color:#0f172a}
.qa-tabs{display:flex;gap:.5rem;margin-bottom:1rem}
.qa-tabs button{flex:1;padding:.55rem;border-radius:10px;border:1px solid #cbd5e1;background:#fff;font-family:inherit;cursor:pointer}
.qa-tabs button.on{background:#0f172a;color:#fff;border-color:#0f172a}
.qa-close{float:left;background:none;border:0;font-size:1.3rem;cursor:pointer;color:#64748b}
.qa-user-chip{font-size:.85rem;color:#334155;background:#e2e8f0;border-radius:8px;padding:.25rem .7rem;cursor:pointer}
.qa-topic-row{padding:.9rem 1.4rem;border-bottom:1px solid #f1f5f9;display:flex;justify-content:space-between;align-items:center}
.qa-topic-row a{font-weight:700;color:#0f172a;text-decoration:none}
.qa-topic-row a:hover{color:#1d4ed8}
