.comment-section { margin: 4rem 0 2rem; }
.comment-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.comment-section-heading h2 { margin: 0; color: #172e4c; font-size: 1.35rem; font-weight: 900; }
.comment-controls { display: flex; gap: .4rem; direction: rtl; }
.comment-controls button { display: grid; width: 2.5rem; height: 2.5rem; place-items: center; border: 0; border-radius: .75rem; background: #e5e7eb; color: #475569; cursor: pointer; transition: background-color .2s, color .2s; }
.comment-controls button svg { width: 1rem; height: 1rem; }
.comment-controls button:hover:not(:disabled) { background: #155dfc; color: #fff; }
.comment-controls button:disabled { opacity: .4; cursor: default; }
.comment-stack-cards { display: grid; gap: .75rem; outline-offset: 4px; }
.comment-stack.is-enhanced .comment-stack-cards { grid-template-columns: minmax(0, 1fr); gap: 0; padding-bottom: 24px; }
.comment-stack-card { box-sizing: border-box; height: 13rem; min-width: 0; padding: 1.5rem; border: 1px solid #dbeafe; border-radius: 1.5rem; background: #fff; box-shadow: 0 8px 22px rgb(30 64 110 / .12); }
.comment-stack.is-enhanced .comment-stack-card { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: transform .3s ease, opacity .3s ease; }
.comment-stack.is-enhanced .comment-stack-card[data-stack-position="0"] { z-index: 3; visibility: visible; opacity: 1; transform: translateY(0) scale(1); }
.comment-stack.is-enhanced .comment-stack-card[data-stack-position="1"] { z-index: 2; visibility: visible; opacity: 1; transform: translateY(12px) scale(.96); }
.comment-stack.is-enhanced .comment-stack-card[data-stack-position="2"] { z-index: 1; visibility: visible; opacity: 1; transform: translateY(23px) scale(.92); }
.comment-author { display: flex; align-items: center; gap: .8rem; }
.comment-author div { min-width: 0; }
.comment-author h3 { overflow: hidden; margin: 0; color: #172e4c; font-size: 1rem; font-weight: 850; text-overflow: ellipsis; white-space: nowrap; }
.comment-author div > span { color: #94a3b8; font-size: .75rem; }
.comment-avatar { position: relative; display: grid; flex: none; width: 48px; height: 48px; place-items: center; overflow: hidden; border-radius: 50%; background: #e8f2ff; color: #2563eb; font-weight: 800; box-shadow: 0 0 0 2px #93c5fd, 0 0 0 4px #fff; }
.comment-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.comment-avatar img[hidden] { display: none; }
.comment-text { display: -webkit-box; overflow: hidden; margin: 1rem 0 0; color: #475569; font-size: .9rem; line-height: 2; overflow-wrap: anywhere; text-align: justify; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.comment-position, .comment-empty { margin: .75rem 0 0; color: #94a3b8; font-size: .8rem; text-align: center; }
@media (max-width: 600px) { .comment-stack-card { padding: 1.2rem; } .comment-section-heading h2 { font-size: 1.1rem; } }
@media (min-width: 768px) { .comment-controls button { width: 3rem; height: 3rem; } .comment-controls button svg { width: 1.25rem; height: 1.25rem; } }
@media (prefers-reduced-motion: reduce) { .comment-stack.is-enhanced .comment-stack-card { transition: none; } }
