.qa-section { margin-top: 8px; }
.qa-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.qa-title { font-size: 1.3rem; font-weight: 700; margin: 0; }
.qa-count { color: #717680; font-weight: 400; font-size: .9rem; }
.qa-write-btn {
    padding: 10px 20px; background: #286CF0; color: #fff; border-radius: 8px; font-size: .9rem;
    font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .15s;
}
.qa-write-btn:hover { background: #1f5fd6; }

.qa-flash { padding: 10px 14px; border-radius: 8px; margin: 0 0 14px; font-size: .88rem; }
.qa-flash-notice { background: #F0F7FF; color: #286CF0; }
.qa-flash-error { background: #FDEEEE; color: #D92D20; }

.qa-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid #E9EAEB; }
.qa-empty { padding: 32px 4px; color: #717680; font-size: .92rem; text-align: center; }
.qa-item { padding: 16px 4px; border-bottom: 1px solid #E9EAEB; }
.qa-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .85rem; color: #414651; }
.qa-status { padding: 2px 8px; border-radius: 999px; font-size: .75rem; background: #F5F5F5; }
.qa-status-answered { background: #E6F4EA; color: #1E7E34; }
.qa-status-pending { background: #FFF6E5; color: #B54708; }
.qa-date { margin-left: auto; color: #A4A7AE; }

.qa-subject { font-weight: 600; margin-bottom: 4px; }
.qa-question { white-space: pre-line; color: #252B37; font-size: .92rem; }
.qa-prewrap { white-space: pre-wrap; }
.qa-answer { margin-top: 10px; padding: 12px 14px; background: #F7F9FC; border-radius: 8px; }
.qa-answer-label { display: block; font-size: .78rem; color: #286CF0; margin-bottom: 4px; }

.qa-locked { display: flex; align-items: center; gap: 12px; color: #717680; font-size: .9rem; }
.qa-locked-text { margin: 0; }
.qa-unlock-btn {
    padding: 7px 16px; border: 1px solid #E9EAEB; border-radius: 8px; background: #fff;
    color: #414651; font-family: inherit; font-size: .85rem; font-weight: 600; cursor: pointer; transition: background .15s;
}
.qa-unlock-btn:hover { background: #F5F5F6; }

/* 비밀글 확인 모달 */
.qa-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; }
.qa-modal[hidden] { display: none; }
.qa-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.45); }
.qa-modal-box {
    position: relative; background: #fff; border-radius: 14px; padding: 26px 24px; width: 100%; max-width: 360px;
    box-shadow: 0 12px 40px rgba(0,0,0,.2); animation: qamodal .18s ease;
}
@keyframes qamodal { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.qa-modal-x { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 1.4rem; line-height: 1; color: #A4A7AE; cursor: pointer; }
.qa-modal-box h3 { font-size: 1.1rem; font-weight: 700; margin: 0 0 6px; }
.qa-modal-desc { font-size: .85rem; color: #717680; margin: 0 0 16px; }
.qa-modal-form input[type="password"] {
    width: 100%; padding: 11px 13px; border: 1px solid #E9EAEB; border-radius: 8px; font-family: inherit;
    font-size: .95rem; box-sizing: border-box; outline: none;
}
.qa-modal-form input[type="password"]:focus { border-color: #286CF0; box-shadow: 0 0 0 3px rgba(40,108,240,.12); }
.qa-modal-error { color: #D92D20; font-size: .85rem; margin: 8px 0 0; }
.qa-modal-actions { display: flex; gap: 8px; margin-top: 16px; }
.qa-modal-submit { flex: 1; padding: 11px; background: #286CF0; color: #fff; border: none; border-radius: 8px; font-weight: 600; cursor: pointer; }
.qa-modal-submit:hover { background: #1f5fd6; }
.qa-modal-cancel { padding: 11px 18px; background: #fff; color: #414651; border: 1px solid #E9EAEB; border-radius: 8px; font-weight: 600; cursor: pointer; }
.qa-modal-cancel:hover { background: #F5F5F6; }
