#comments, #forum-posts { scroll-margin-top: 100px; }
/* Shared navigation for forum posts and article, forum and course comments. */
.comment-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin: 28px 0 12px;
    padding: 20px 0 8px;
    border-top: 1px solid #e9f1ed;
    color: #668376;
    font-size: 13px;
    line-height: 1.5;
}
.comment-pagination__summary { display: flex; flex-direction: column; gap: 4px; }
.comment-pagination__range { color: #587568; }
.comment-pagination__range strong { color: #264638; font-weight: 600; font-variant-numeric: tabular-nums; }
.comment-pagination__position { color: #8ba398; font-size: 12px; }
.comment-pagination__controls, .comment-pagination__pages { display: flex; align-items: center; gap: 6px; }
.comment-pagination__pages { margin: 0; padding: 0; list-style: none; }
.comment-pagination__pages > li { margin: 0; padding: 0; list-style: none; }
.comment-pagination__step, .comment-pagination__number, .comment-pagination__ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #557567;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
}
.comment-pagination__step { gap: 4px; border-color: #e5f0eb; background: #fff; }
.comment-pagination__step svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.comment-pagination a { transition: background-color .15s ease, border-color .15s ease, color .15s ease; }
.comment-pagination a:hover { color: #1f8e5c; border-color: #cae2d7; background: #f4fbf8; text-decoration: none; }
.comment-pagination a:focus-visible { outline: 2px solid #1f8e5c; outline-offset: 3px; }
.comment-pagination .is-current { color: #fff; background: #1f8e5c; border-color: #1f8e5c; box-shadow: 0 3px 8px rgb(12 107 70 / 16%); font-weight: 600; }
.comment-pagination .is-disabled { color: #b1c3bb; border-color: #edf3f0; background: #fafcfb; cursor: default; }
.comment-pagination__ellipsis { min-width: 22px; padding: 0 2px; color: #a3b7ae; }
@media (max-width: 767px) {
    .comment-pagination { flex-direction: column; align-items: stretch; gap: 14px; margin-top: 22px; padding-top: 18px; }
    .comment-pagination__summary { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
    .comment-pagination__controls { justify-content: center; gap: 4px; }
    .comment-pagination__pages { gap: 4px; }
    .comment-pagination__nearby { display: none; }
    .comment-pagination__step, .comment-pagination__number { min-width: 40px; height: 44px; border-radius: 10px; }
    .comment-pagination__step { padding: 0 8px; }
    .comment-pagination__ellipsis { min-width: 14px; }
}
@media (max-width: 380px) {
    .comment-pagination__step > span { display: none; }
    .comment-pagination__step { min-width: 36px; padding: 0 6px; }
    .comment-pagination__number { min-width: 34px; padding: 0 6px; }
    .comment-pagination__total { display: none; }
}
@media (prefers-reduced-motion: reduce) { .comment-pagination a { transition: none; } }

.comment-pagination--forum { margin-right: 24px; }
@media (max-width: 767px) { .comment-pagination--forum { margin-right: 12px; } }
