/* =========================================================
   도란톡 (DoranTok) - 가벼운 Q&A 스타일시트
   ========================================================= */

/* 전체 래퍼 */
.dorantok-wrap {
    max-width: 100%;
    margin: 0 auto;
}

/* ── 헤더 영역 ── */
.dorantok-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 0 8px;
}
.dorantok-header .dorantok-icon {
    font-size: 1.5rem;
    color: #f9a825;
}
.dorantok-header .dorantok-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #4e342e;
}
.dorantok-header .dorantok-subtitle {
    font-size: 0.8rem;
    color: #a1887f;
    margin-left: 4px;
}

/* ── 카테고리 칩 바 ── */
.dorantok-chipbar {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 10px 0;
    border-bottom: 1px solid #f0ebe4;
}
.dorantok-chip {
    padding: 6px 14px;
    border-radius: 20px;
    border: 1px solid #e0d6cc;
    background: #fafafa;
    color: #6d4c41;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.dorantok-chip:hover {
    background: #fff8e1;
    border-color: #ffe082;
}
.dorantok-chip.active {
    background: #fff8e1;
    border-color: #ffc107;
    color: #4e342e;
    font-weight: 700;
}

/* ── 검색 바 ── */
.dorantok-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 0;
}
.dorantok-search input {
    flex: 1;
    padding: 8px 14px;
    border: 1px solid #e0d6cc;
    border-radius: 20px;
    font-size: 0.88rem;
    outline: none;
    transition: border-color 0.2s;
}
.dorantok-search input:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255,193,7,0.15);
}
.dorantok-search button {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #6d4c41;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.dorantok-search button:hover {
    background: linear-gradient(135deg, #ffecb3, #ffe082);
    box-shadow: 0 2px 8px rgba(255,193,7,0.3);
}

/* ── 질문 작성 영역 ── */
.dorantok-write {
    background: #fffdf5;
    border: 1px solid #f0ebe4;
    border-radius: 12px;
    padding: 14px 16px;
    margin: 10px 0;
}
.dorantok-write:focus-within {
    border-color: #ffc107;
}
.dorantok-write-cats {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
}
.dorantok-write-cat {
    padding: 4px 12px;
    border-radius: 14px;
    border: 1px solid #e0d6cc;
    background: white;
    color: #8d6e63;
    font-size: 0.78rem;
    cursor: pointer;
    transition: all 0.2s;
}
.dorantok-write-cat.active {
    background: #ffc107;
    border-color: #ffc107;
    color: white;
    font-weight: 600;
}
.dorantok-write-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 2px;
}
.dorantok-write textarea {
    flex: 1 1 100%;
    min-width: 0;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    background: transparent;
    font-size: 0.9rem;
    line-height: 1.7;
    resize: none;
    overflow: hidden;
    outline: none;
    color: #3e2723;
    min-height: auto;
    font-family: inherit;
    padding: 8px 12px;
    transition: all 0.2s;
}
.dorantok-write textarea:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 2px rgba(255,193,7,0.12);
}
.dorantok-write textarea::placeholder {
    color: #bcaaa4;
}
.dorantok-write-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 8px;
}
.dorantok-write-count {
    font-size: 0.78rem;
    color: #a1887f;
}
.dorantok-write-count.over {
    color: #e53935;
    font-weight: 600;
}
.dorantok-write-btn {
    padding: 8px 18px;
    border: none;
    border-radius: 8px;
    background: #ffc107;
    color: #fff;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 1px;
}
.dorantok-write-btn:hover {
    background: #ffb300;
}
.dorantok-write-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* ── 질문 목록 ── */
.dorantok-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dorantok-item {
    padding: 4px 0;
    border-bottom: 1px solid #f0ebe4;
    animation: fadeInUp 0.3s ease;
}
.dorantok-item:last-child {
    border-bottom: none;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.dorantok-item-top {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 2px 6px;
    border-radius: 8px;
    transition: background-color 0.15s;
}
.dorantok-item-top:hover {
    background-color: rgba(255, 193, 7, 0.06);
}
.dorantok-q-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 6px;
    background: #fff8e1;
    color: #f9a825;
    font-weight: 700;
    font-size: 0.78rem;
    margin-top: 2px;
}
.dorantok-item-cat {
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 10px;
    background: #f5f0eb;
    color: #8d6e63;
    font-size: 0.73rem;
    font-weight: 600;
    white-space: nowrap;
    margin-top: 2px;
}
.dorantok-item-title {
    flex: 1;
    min-width: 0;
    font-size: 0.92rem;
    font-weight: 400;
    color: #3e2723;
    line-height: 1.5;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    word-break: break-word;
    transition: font-weight 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
}
.dorantok-item-title:hover {
    color: #f57f17;
}

/* ── 펼침 화살표 아이콘 ── */
.dorantok-expand-icon {
    font-size: 0.7rem;
    color: #bcaaa4;
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

/* ── 펼침 본문 영역 ── */
.dorantok-content-body {
    padding: 10px 14px 6px;
    margin: 0 6px;
    background: #fef9f0;
    border-left: 3px solid #ffc107;
    border-radius: 0 6px 6px 0;
    animation: fadeInUp 0.25s ease;
}
.dorantok-content-text {
    font-size: 0.9rem;
    line-height: 1.70;
    color: #5d4037;
    word-break: break-word;
}
.dorantok-content-text p {
    margin: 0.35em 0;
}
.dorantok-content-text p:first-child {
    margin-top: 0;
}
.dorantok-content-text p:last-child {
    margin-bottom: 0;
}

/* ── 빈 줄 높이 축소 (CKEditor ck-empty-line 동일) ── */
.dorantok-empty-line {
    margin: 0.1em 0 !important;
    line-height: 0.4 !important;
}

/* ── 펼침 상태 배경 ── */
.dorantok-item-expanded {
    background: rgba(255, 248, 225, 0.35);
    border-radius: 8px;
}
.dorantok-item-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: -4px;
    font-size: 0.75rem;
    color: #a1887f;
}
.dorantok-item-meta .dot {
    color: #d7ccc8;
}
.dorantok-item-meta .reply-cnt {
    color: #90a4ae;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.dorantok-item-meta .reply-cnt i {
    font-size: 0.75rem;
    line-height: 1;
}
.dorantok-item-edit,
.dorantok-item-delete {
    border: none;
    background: none;
    color: #bcaaa4;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dorantok-item-edit i,
.dorantok-item-delete i {
    font-size: 0.75rem;
    line-height: 1;
}
.dorantok-item-edit:hover {
    color: #1565c0;
    background: rgba(21, 101, 192, 0.08);
}
.dorantok-item-delete:hover {
    color: #e53935;
    background: rgba(229, 57, 53, 0.08);
}

/* ── 빈 상태 ── */
.dorantok-empty {
    text-align: center;
    padding: 48px 20px;
    color: #bcaaa4;
}
.dorantok-empty i {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 12px;
    color: #d7ccc8;
}
.dorantok-empty-text {
    font-size: 0.95rem;
}

/* ── 페이지네이션 ── */
.dorantok-pagination {
    display: flex;
    justify-content: center;
    gap: 0;
    padding: 20px 0;
}
.dorantok-pagination button {
    min-width: 36px;
    height: 36px;
    border: 1px solid #dee2e6;
    border-right: none;
    background: white;
    color: #495057;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dorantok-pagination button:first-child {
    border-radius: 4px 0 0 4px;
}
.dorantok-pagination button:last-child {
    border-radius: 0 4px 4px 0;
    border-right: 1px solid #dee2e6;
}
.dorantok-pagination button:hover:not(:disabled):not(.active) {
    background: #e9ecef;
}
.dorantok-pagination button.active {
    background: #f9a825;
    border-color: #f9a825;
    color: white;
    font-weight: 700;
    z-index: 1;
    position: relative;
}
.dorantok-pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    color: #adb5bd;
}

/* ── 로딩 스피너 ── */
.dorantok-loading {
    text-align: center;
    padding: 32px;
    color: #bcaaa4;
}
.dorantok-loading i {
    animation: spin 1s linear infinite;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* ── 알림 아이콘 ── */
.dorantok-notify-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    width: 22px;
    height: 22px;
    margin-right: 5px;
    background: rgba(255, 193, 7, 0.15);
    border: none;
    border-radius: 50%;
    color: #e65100;
    filter: drop-shadow(0 0 4px rgba(230, 81, 0, 0.5));
    animation: bellRing 4s ease-in-out infinite;
    flex-shrink: 0;
    vertical-align: middle;
}
@keyframes bellRing {
    0%   { transform: rotate(0deg) scale(1); }
    2%   { transform: rotate(12deg) scale(1.1); }
    4%   { transform: rotate(-12deg) scale(1.1); }
    6%   { transform: rotate(8deg) scale(1.05); }
    8%   { transform: rotate(-8deg) scale(1.05); }
    10%  { transform: rotate(0deg) scale(1); }
    30%  { transform: rotate(0deg) scale(1); }
    32%  { transform: rotate(10deg) scale(1.08); }
    34%  { transform: rotate(-10deg) scale(1.08); }
    36%  { transform: rotate(6deg) scale(1.05); }
    38%  { transform: rotate(-6deg) scale(1.05); }
    40%  { transform: rotate(0deg) scale(1); }
    100% { transform: rotate(0deg) scale(1); }
}

/* 칩 버튼 내 🔔 뱃지 */
.dorantok-chip-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    background: none;
    border: none;
    color: #2e7d32;
    margin-left: 3px;
    filter: drop-shadow(0 0 5px rgba(46, 125, 50, 0.9)) drop-shadow(0 0 2px rgba(46, 125, 50, 0.7));
    animation: bellPulse 1.5s ease-in-out infinite;
}
@keyframes bellPulse {
    0%   { transform: scale(1); filter: drop-shadow(0 0 5px rgba(46,125,50,0.8)); }
    50%  { transform: scale(1.15); filter: drop-shadow(0 0 10px rgba(46,125,50,1)); }
    100% { transform: scale(1); filter: drop-shadow(0 0 5px rgba(46,125,50,0.8)); }
}

/* ── 답변 영역 ── */
.dorantok-reply-area {
    margin-left: 38px;
    padding: 2px 0 10px 0;
    animation: fadeInUp 0.3s ease;
}
.dorantok-question-body {
    padding: 10px 14px;
    margin-bottom: 10px;
    background: #fef9f0;
    border-left: 3px solid #ffc107;
    border-radius: 6px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: #5d4037;
    word-break: break-word;
}
/* 트리거 버튼: "✏️ 답변 작성" */
.dorantok-reply-trigger {
    display: block;
    width: 100%;
    padding: 10px 14px;
    border: 1.5px dashed #e0d6cc;
    border-radius: 10px;
    background: transparent;
    color: #a1887f;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    margin-bottom: 12px;
}
.dorantok-reply-trigger:hover {
    border-color: #ffc107;
    background: rgba(255, 193, 7, 0.05);
    color: #f9a825;
}
.dorantok-reply-trigger i {
    margin-right: 4px;
}
.dorantok-reply-form {
    display: flex;
    gap: 8px;
    margin-bottom: 12px;
    align-items: flex-end;
    animation: fadeInUp 0.25s ease;
}
.dorantok-reply-form textarea {
    flex: 1;
    padding: 10px 14px;
    border: 1.5px solid #e8e0d8;
    border-radius: 10px;
    background: #fff;
    font-size: 0.86rem;
    line-height: 1.5;
    resize: none;
    overflow: hidden;
    outline: none;
    min-height: 42px;
    font-family: inherit;
    transition: all 0.2s;
}
.dorantok-reply-form textarea:focus {
    border-color: #ffc107;
    box-shadow: 0 0 0 3px rgba(255,193,7,0.1);
}
.dorantok-reply-form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 4px;
}
.dorantok-reply-form .reply-count {
    font-size: 0.72rem;
    color: #a1887f;
}
.dorantok-reply-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: #ffc107;
    color: #fff;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.dorantok-reply-btn:hover {
    background: #ffb300;
}
.dorantok-reply-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.dorantok-reply-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dorantok-reply-item {
    padding: 11px 14px;
    margin-bottom: 6px;
    background: #fafaf8;
    border-radius: 8px;
    border-left: 3px solid #a5d6a7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.dorantok-reply-badge {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: #e8f5e9;
    color: #43a047;
    font-weight: 800;
    font-size: 0.7rem;
}
.dorantok-reply-body {
    flex: 1;
    min-width: 0;
}
.dorantok-reply-text {
    font-size: 0.9rem;
    line-height: 1.70;
    color: #3e2723;
    word-break: break-word;
}
.dorantok-reply-text p {
    margin: 0.3em 0;
}
.dorantok-reply-text p:first-child {
    margin-top: 0;
}
.dorantok-reply-text p:last-child {
    margin-bottom: 0;
}
.dorantok-reply-meta {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 4px;
    font-size: 0.75rem;
    color: #a1887f;
}
.dorantok-reply-delete {
    border: none;
    background: none;
    color: #bcaaa4;
    cursor: pointer;
    padding: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.dorantok-reply-delete i {
    font-size: 0.75rem;
    line-height: 1;
}
.dorantok-reply-delete:hover {
    color: #e53935;
    background: rgba(229, 57, 53, 0.08);
}
.dorantok-reply-empty {
    padding: 12px;
    text-align: center;
    color: #bcaaa4;
    font-size: 0.85rem;
}
.dorantok-reply-toggle {
    border: none;
    background: none;
    color: #90a4ae;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 2px 4px;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.dorantok-reply-toggle i {
    font-size: 0.75rem;
    line-height: 1;
}
.dorantok-reply-toggle:hover {
    color: #607d8b;
}

/* ── 대댓글 (Comment) 영역 ── */
.dorantok-comment-toggle {
    border: none;
    background: none;
    color: #43a047;
    cursor: pointer;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 1px 3px;
    transition: color 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.dorantok-comment-toggle i {
    font-size: 0.75rem;
    line-height: 1;
}
.dorantok-comment-toggle:hover {
    color: #2e7d32;
}
.dorantok-comment-area {
    margin-top: 8px;
    margin-left: 10px;
    padding: 6px 0;
    padding-left: 12px;
}
.dorantok-comment-area.has-comments {
    border-left: 2px solid #e8e0d8;
}
/* 트리거 버튼: "💬 댓글 달기" */
.dorantok-comment-trigger {
    border: none;
    background: none;
    color: #43a047;
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 4px;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.dorantok-comment-trigger:hover {
    color: #2e7d32;
    background: rgba(67, 160, 71, 0.06);
}
.dorantok-comment-trigger i {
    font-size: 1.15rem;
    line-height: 1;
}
.dorantok-comment-form {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    margin-top: 10px;
    align-items: flex-end;
    animation: fadeInUp 0.2s ease;
}
.dorantok-comment-form textarea {
    flex: 1;
    padding: 8px 12px;
    border: 1.5px solid #e0e0e0;
    border-radius: 8px;
    background: #fff;
    font-size: 0.82rem;
    line-height: 1.4;
    outline: none;
    font-family: inherit;
    resize: none;
    overflow: hidden;
    min-height: 36px;
    transition: all 0.2s;
}
.dorantok-comment-form textarea:focus {
    border-color: #78909c;
    box-shadow: 0 0 0 2px rgba(120,144,156,0.1);
}
.dorantok-comment-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: #78909c;
    color: white;
    font-weight: 600;
    font-size: 0.76rem;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.dorantok-comment-btn:hover {
    background: #546e7a;
}
.dorantok-comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.dorantok-comment-item {
    padding: 5px 0;
    display: flex;
    align-items: flex-start;
    gap: 6px;
}
.dorantok-comment-badge {
    font-size: 0.7rem;
    flex-shrink: 0;
    margin-top: 1px;
}
.dorantok-comment-body {
    flex: 1;
    min-width: 0;
}
.dorantok-comment-text {
    font-size: 0.83rem;
    color: #3e2723;
    word-break: break-word;
    line-height: 1.70;
}
.dorantok-comment-text p {
    margin: 0.30em 0;
}
.dorantok-comment-text p:first-child {
    margin-top: 0;
}
.dorantok-comment-text p:last-child {
    margin-bottom: 0;
}
.dorantok-comment-meta {
    font-size: 0.7rem;
    color: #a1887f;
    margin-left: 6px;
    white-space: nowrap;
}
.dorantok-comment-delete {
    border: none;
    background: none;
    color: #bcaaa4;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 2px;
    vertical-align: middle;
}
.dorantok-comment-delete i {
    font-size: 0.75rem;
    line-height: 1;
}
.dorantok-comment-delete:hover {
    color: #e53935;
    background: rgba(229, 57, 53, 0.08);
}

/* ── 모바일 반응형 (768px↓) ── */
@media (max-width: 768px) {

    /* ① 칩바: 가로 스크롤 (줄바꿈 방지) */
    .dorantok-chipbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        gap: 6px;
        padding: 10px 0;
        scrollbar-width: none;
    }
    .dorantok-chipbar::-webkit-scrollbar {
        display: none;
    }
    .dorantok-chip {
        padding: 6px 12px;
        font-size: 0.8rem;
        flex-shrink: 0;
    }

    /* ② 질문 작성 영역 */
    .dorantok-write {
        padding: 12px;
        margin: 8px 0;
        border-radius: 10px;
    }
    .dorantok-write-row {
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .dorantok-write textarea {
        flex: 1 1 100%;
    }

    /* ③ 목록 아이템: 패딩 확대 + 터치 영역 */
    .dorantok-item {
        padding: 10px 0;
    }
    .dorantok-item-top {
        gap: 6px;
        padding: 4px 4px;
    }

    /* ④ 제목: 2줄 표시 (한줄 말줄임 → 2줄 clamp) */
    .dorantok-item-title {
        font-size: 0.88rem;
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
        line-height: 1.5;
    }

    /* ⑤ 메타 정보 여백 */
    .dorantok-item-meta {
        padding: 2px 4px 0;
    }

    /* ⑥ 검색 버튼 강조 */
    .dorantok-search button {
        background: linear-gradient(135deg, #ffe082, #ffca28);
        color: #5d4037;
        font-weight: 700;
    }

    /* 답변/댓글 영역 - 펼침 개선 */

    /* ⑦ 답변 영역 들여쓰기 축소 (3단 중첩 시 콘텐츠 폭 확보) */
    .dorantok-reply-area {
        margin-left: 8px;
    }

    /* ⑧ 답변 작성 트리거: 더 눈에 띄게 */
    .dorantok-reply-trigger {
        padding: 10px 14px;
        font-size: 0.82rem;
        margin-bottom: 12px;
        background: rgba(255, 193, 7, 0.06);
        border-color: #ffe082;
        color: #8d6e63;
        font-weight: 600;
    }

    /* ⑨ 답변 폼 */
    .dorantok-reply-form textarea {
        padding: 8px 12px;
        font-size: 0.84rem;
        min-height: 38px;
    }

    /* ⑩ 답변 아이템: 간격 확대 + 구분 강화 */
    .dorantok-reply-item {
        padding: 12px;
        gap: 8px;
        margin-bottom: 8px;
    }
    .dorantok-reply-text {
        font-size: 0.86rem;
    }

    /* ⑪ 댓글 영역: 들여쓰기 최소화 (폭 확보) */
    .dorantok-comment-area {
        margin-left: 4px;
        padding-left: 8px;
    }
    .dorantok-comment-text {
        font-size: 0.8rem;
    }

    /* ⑫ 질문 본문: 하단 여백으로 답변 영역과 시각 분리 */
    .dorantok-question-body {
        padding: 10px 12px;
        font-size: 0.85rem;
        margin-bottom: 14px;
    }
    .dorantok-content-body {
        margin-bottom: 10px;
    }
}

/* ── 초소형 모바일 (400px↓) ── */
@media (max-width: 400px) {
    .dorantok-header .dorantok-title {
        font-size: 1.05rem;
    }
    .dorantok-header .dorantok-subtitle {
        display: none;
    }
    .dorantok-write {
        padding: 10px;
        margin: 6px 0;
    }
    .dorantok-write-btn {
        padding: 6px 14px;
        font-size: 0.78rem;
    }
    .dorantok-item-top {
        gap: 5px;
        padding: 2px 4px;
    }
    .dorantok-q-badge {
        width: 20px;
        height: 20px;
        font-size: 0.7rem;
    }
    .dorantok-item-cat {
        padding: 2px 7px;
        font-size: 0.68rem;
    }
    .dorantok-item-title {
        font-size: 0.84rem;
    }
    .dorantok-item-meta {
        font-size: 0.68rem;
    }
    .dorantok-reply-area {
        margin-left: 10px;
    }
    .dorantok-reply-trigger {
        padding: 8px 10px;
        font-size: 0.78rem;
    }
    .dorantok-reply-item {
        padding: 9px 10px;
        gap: 6px;
    }
    .dorantok-reply-badge {
        width: 20px;
        height: 20px;
        font-size: 0.65rem;
    }
    .dorantok-reply-text {
        font-size: 0.84rem;
    }
    .dorantok-reply-meta {
        font-size: 0.7rem;
    }
    .dorantok-reply-btn {
        padding: 7px 12px;
        font-size: 0.76rem;
    }
    .dorantok-comment-area {
        margin-left: 8px;
        padding-left: 8px;
    }
    .dorantok-comment-text {
        font-size: 0.78rem;
    }
    .dorantok-comment-meta {
        font-size: 0.66rem;
    }
    .dorantok-comment-btn {
        padding: 5px 10px;
        font-size: 0.72rem;
    }
}

