/* Blog detail — layout aligned with NST article page; Chire Tajhiz brand colors */

.ct-article-page {
    --ct-article-fg: #173850;
    --ct-article-muted: #5c6b76;
    --ct-article-border: rgba(23, 56, 80, 0.12);
    --ct-article-bg: #f2f4f7;
    --ct-article-card: #ffffff;
    --ct-article-accent: #c06e35;
    --ct-article-accent-hover: #a85d2c;
    --ct-article-primary: #005a9c;
    --ct-article-radius: 0.75rem;
    --ct-article-radius-xl: 1.25rem;
    --ct-article-offset: 8px;
    background: var(--ct-article-bg);
    color: var(--ct-article-fg);
}

.ct-breadcrumb-bar {
    background: rgba(228, 234, 242, 0.55);
    border-bottom: 1px solid var(--ct-article-border);
    padding: 0.75rem 0;
}

.ct-breadcrumb-bar .container {
    overflow: hidden;
}

.ct-breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-wrap: nowrap;
    font-size: 0.75rem;
    color: var(--ct-article-muted);
    margin: 0;
    padding: 0;
    list-style: none;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(23, 56, 80, 0.25) transparent;
}

.ct-breadcrumb::-webkit-scrollbar {
    height: 3px;
}

.ct-breadcrumb::-webkit-scrollbar-thumb {
    background: rgba(23, 56, 80, 0.25);
    border-radius: 999px;
}

.ct-breadcrumb a,
.ct-breadcrumb .bi,
.ct-breadcrumb .active {
    flex-shrink: 0;
    white-space: nowrap;
}

.ct-breadcrumb a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.ct-breadcrumb a:hover {
    color: var(--ct-article-fg);
}

.ct-breadcrumb .bi {
    font-size: 0.65rem;
    opacity: 0.7;
}

.ct-breadcrumb .active {
    color: var(--ct-article-fg);
    font-weight: 500;
}

.ct-article-detail {
    padding: 2.5rem 0 3rem;
}

.ct-article-detail__badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    background: var(--ct-article-primary);
    color: #fff;
    text-decoration: none;
    transition: background 0.2s ease;
}

.ct-article-detail__badge:hover {
    background: #004a80;
    color: #fff;
}

.ct-article-detail__title {
    font-size: clamp(1.5rem, 3vw, 2.125rem);
    font-weight: 800;
    line-height: 1.4;
    margin: 0 0 1rem;
    color: var(--ct-article-fg);
}

.ct-article-detail__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 1.5rem;
    font-size: 0.8125rem;
    color: var(--ct-article-muted);
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--ct-article-border);
}

.ct-article-detail__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
}

.ct-article-detail__meta .bi {
    color: var(--ct-article-accent);
    font-size: 0.95rem;
}

/* Collapsible table of contents */
.ct-article-toc {
    margin: 0 0 1.5rem;
    border: 1px solid var(--ct-article-border);
    border-radius: var(--ct-article-radius-xl);
    background: var(--ct-article-card);
    box-shadow: 0 8px 24px rgba(23, 56, 80, 0.04);
    overflow: hidden;
}

.ct-article-toc__toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    width: 100%;
    margin: 0;
    padding: 0.9rem 1.15rem;
    border: 0;
    background: transparent;
    color: var(--ct-article-fg);
    font-size: 0.9375rem;
    font-weight: 700;
    text-align: right;
    cursor: pointer;
}

.ct-article-toc__toggle-label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.ct-article-toc__toggle-label .bi {
    color: var(--ct-article-accent);
    font-size: 1.05rem;
}

.ct-article-toc__chevron {
    color: var(--ct-article-muted);
    font-size: 0.85rem;
    transition: transform 0.25s ease;
}

.ct-article-toc__toggle.is-open .ct-article-toc__chevron,
.ct-article-toc__toggle[aria-expanded="true"] .ct-article-toc__chevron {
    transform: rotate(180deg);
}

.ct-article-toc__list {
    margin: 0;
    padding: 0.15rem 1.15rem 1rem;
    list-style: none;
    border-top: 1px solid var(--ct-article-border);
}

.ct-article-toc__item {
    margin: 0;
}

.ct-article-toc__item + .ct-article-toc__item {
    border-top: 1px dashed rgba(23, 56, 80, 0.08);
}

.ct-article-toc__item a {
    display: block;
    padding: 0.65rem 0;
    color: var(--ct-article-fg);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.7;
    text-decoration: none;
    transition: color 0.2s ease, padding-right 0.2s ease;
}

.ct-article-toc__item a:hover,
.ct-article-toc__item a:focus-visible {
    color: var(--ct-article-primary);
    padding-right: 0.35rem;
}

.ct-article-toc__item--h3 a {
    padding-right: 1rem;
    font-size: 0.8125rem;
    color: var(--ct-article-muted);
}

.ct-article-detail__body {
    font-size: 0.975rem;
    line-height: 1.9;
    color: var(--ct-article-fg);
    overflow-wrap: anywhere;
}

.ct-article-detail__body > :first-child {
    margin-top: 0;
}

.ct-article-detail__body > :last-child {
    margin-bottom: 0;
}

.ct-article-detail__body p {
    margin-bottom: 1.25rem;
}

.ct-article-detail__body a {
    color: var(--ct-article-primary);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
    text-decoration-color: rgba(0, 90, 156, 0.35);
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.ct-article-detail__body a:hover,
.ct-article-detail__body a:focus-visible {
    color: var(--ct-article-accent);
    text-decoration-color: var(--ct-article-accent);
}

.ct-article-detail__body a:focus-visible {
    outline: 2px solid rgba(192, 110, 53, 0.35);
    outline-offset: 2px;
    border-radius: 2px;
}

.ct-article-detail__body strong,
.ct-article-detail__body b {
    font-weight: 700;
    color: var(--ct-article-fg);
}

.ct-article-detail__body em,
.ct-article-detail__body i {
    font-style: italic;
}

.ct-article-detail__body small {
    font-size: 0.8125rem;
    color: var(--ct-article-muted);
    line-height: 1.7;
}

.ct-article-detail__body mark {
    background: rgba(192, 110, 53, 0.16);
    color: inherit;
    padding: 0.05em 0.2em;
    border-radius: 0.2em;
}

.ct-article-detail__body h1,
.ct-article-detail__body h2,
.ct-article-detail__body h3,
.ct-article-detail__body h4,
.ct-article-detail__body h5,
.ct-article-detail__body h6 {
    font-weight: 700;
    line-height: 1.45;
    color: var(--ct-article-fg);
    scroll-margin-top: calc(var(--ct-article-offset) + 1rem);
}

.ct-article-detail__body h1 {
    font-size: 1.375rem;
    margin: 2.25rem 0 0.85rem;
}

.ct-article-detail__body h2 {
    font-size: 1.25rem;
    margin: 2rem 0 0.75rem;
}

.ct-article-detail__body h3 {
    font-size: 1.0625rem;
    margin: 1.5rem 0 0.5rem;
}

.ct-article-detail__body h4,
.ct-article-detail__body h5,
.ct-article-detail__body h6 {
    font-size: 1rem;
    margin: 1.35rem 0 0.45rem;
}

.ct-article-detail__body ul,
.ct-article-detail__body ol {
    margin: 0 0 1.25rem;
    padding-right: 1.35rem;
    padding-left: 0;
}

.ct-article-detail__body ul {
    list-style: none;
}

.ct-article-detail__body ul > li {
    position: relative;
    padding-right: 0.85rem;
}

.ct-article-detail__body ul > li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 0.85em;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 50%;
    background: var(--ct-article-accent);
}

.ct-article-detail__body ol {
    list-style: persian;
    padding-right: 1.6rem;
}

.ct-article-detail__body ol > li::marker {
    color: var(--ct-article-accent);
    font-weight: 700;
}

.ct-article-detail__body li {
    margin-bottom: 0.45rem;
}

.ct-article-detail__body li > ul,
.ct-article-detail__body li > ol {
    margin-top: 0.45rem;
    margin-bottom: 0.45rem;
}

.ct-article-detail__body li > p {
    margin-bottom: 0.5rem;
}

.ct-article-detail__body blockquote {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    border-right: 3px solid var(--ct-article-accent);
    background: #eef1f4;
    border-radius: 0 var(--ct-article-radius) var(--ct-article-radius) 0;
    color: var(--ct-article-muted);
    font-size: 0.95rem;
}

.ct-article-detail__body blockquote p:last-child {
    margin-bottom: 0;
}

.ct-article-detail__body hr {
    margin: 2rem 0;
    border: 0;
    border-top: 1px solid var(--ct-article-border);
    opacity: 1;
}

.ct-article-detail__body figure {
    margin: 1.5rem 0;
}

.ct-article-detail__body figcaption {
    margin-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--ct-article-muted);
    text-align: center;
}

.ct-article-detail__body img {
    display: block;
    max-width: 100%;
    height: auto;
    max-height: 560px;
    object-fit: contain;
    margin-inline: auto;
    border-radius: var(--ct-article-radius);
}

.ct-article-detail__body iframe,
.ct-article-detail__body video {
    display: block;
    max-width: 100%;
    width: 100%;
    border: 0;
    border-radius: var(--ct-article-radius);
    margin: 1.5rem 0;
    background: #eef1f4;
}

.ct-article-detail__body code,
.ct-article-detail__body kbd,
.ct-article-detail__body samp {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.875em;
    background: #eef1f4;
    color: var(--ct-article-fg);
    padding: 0.1em 0.35em;
    border-radius: 0.3em;
}

.ct-article-detail__body pre {
    margin: 1.5rem 0;
    padding: 1rem 1.15rem;
    overflow-x: auto;
    border-radius: var(--ct-article-radius);
    background: #eef1f4;
    border: 1px solid var(--ct-article-border);
    -webkit-overflow-scrolling: touch;
}

.ct-article-detail__body pre code {
    padding: 0;
    background: transparent;
}

/* Bootstrap .table-responsive wrapper */
.ct-article-detail__body .table-responsive,
.ct-article-detail__body [class*="table-responsive-"],
.ct-article-detail__body figure:has(table) {
    margin: 1.75rem 0;
}

.ct-article-detail__body .table-responsive,
.ct-article-detail__body [class*="table-responsive-"] {
    border-radius: var(--ct-article-radius-xl);
    border: 1px solid var(--ct-article-border);
    background: var(--ct-article-card);
    box-shadow: 0 8px 24px rgba(23, 56, 80, 0.05);
    -webkit-overflow-scrolling: touch;
}

/*
  جدول باید از عرض محتوا بزرگ‌تر از موبایل شود تا overflow-x بوت‌استرپ فعال شود.
  width:100% اینلاین (از ادیتور) باعث له شدن ستون‌ها می‌شد.
*/
.ct-article-detail__body .table-responsive > table.table,
.ct-article-detail__body [class*="table-responsive-"] > table.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--ct-article-fg);
    --bs-table-border-color: var(--ct-article-border);
    width: max-content !important;
    min-width: 100%;
    max-width: none;
    margin-bottom: 0;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.875rem;
    line-height: 1.7;
    color: var(--ct-article-fg);
    vertical-align: middle;
}

.ct-article-detail__body table.table > :not(caption) > * > * {
    border-bottom-width: 0;
    box-shadow: none;
    background-color: transparent;
}

.ct-article-detail__body table thead {
    text-align: center;
}

.ct-article-detail__body table thead th {
    background: linear-gradient(180deg, #0a6bb3 0%, var(--ct-article-primary) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.8125rem;
    letter-spacing: 0.01em;
    padding: 0.85rem 1.1rem;
    border: 0;
    white-space: nowrap;
    vertical-align: middle;
    min-width: 11rem;
}

.ct-article-detail__body table thead th:not(:last-child) {
    border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.ct-article-detail__body table tbody td,
.ct-article-detail__body table tbody th,
.ct-article-detail__body table tfoot td,
.ct-article-detail__body table tfoot th {
    padding: 0.8rem 1.1rem;
    border: 0;
    border-top: 1px solid var(--ct-article-border);
    vertical-align: top;
    text-align: right;
    min-width: 11rem;
    max-width: 18rem;
    white-space: normal;
}

.ct-article-detail__body table tbody tr:first-child td,
.ct-article-detail__body table tbody tr:first-child th {
    border-top: 0;
}

.ct-article-detail__body table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.ct-article-detail__body table tbody tr:hover {
    background: rgba(192, 110, 53, 0.07);
}

.ct-article-detail__body table tbody td:not(:last-child),
.ct-article-detail__body table tbody th:not(:last-child),
.ct-article-detail__body table tfoot td:not(:last-child),
.ct-article-detail__body table tfoot th:not(:last-child) {
    border-left: 1px solid var(--ct-article-border);
}

.ct-article-detail__body table tfoot {
    background: #eef1f4;
    font-weight: 700;
}

.ct-article-detail__body table caption {
    caption-side: bottom;
    padding: 0.75rem 0.25rem 0;
    font-size: 0.75rem;
    color: var(--ct-article-muted);
    text-align: right;
}

/* Tables without thead: first row as header look */
.ct-article-detail__body table:not(:has(thead)) > tbody > tr:first-child td,
.ct-article-detail__body table:not(:has(thead)) > tbody > tr:first-child th,
.ct-article-detail__body table:not(:has(thead)) > tr:first-child td,
.ct-article-detail__body table:not(:has(thead)) > tr:first-child th {
    background: linear-gradient(180deg, #0a6bb3 0%, var(--ct-article-primary) 100%);
    color: #fff;
    font-weight: 700;
    font-size: 0.8125rem;
    border-top: 0;
    border-left-color: rgba(255, 255, 255, 0.18);
    white-space: nowrap;
}

@media (max-width: 575.98px) {
    .ct-article-detail__body .table-responsive > table.table,
    .ct-article-detail__body [class*="table-responsive-"] > table.table {
        font-size: 0.8125rem;
    }

    .ct-article-detail__body table thead th,
    .ct-article-detail__body table tbody td,
    .ct-article-detail__body table tbody th,
    .ct-article-detail__body table tfoot td,
    .ct-article-detail__body table tfoot th {
        padding: 0.65rem 0.85rem;
        min-width: 9.5rem;
    }

    .ct-article-detail__body table tbody td,
    .ct-article-detail__body table tbody th {
        max-width: 15rem;
    }
}

.ct-article-detail__cover {
    border-radius: var(--ct-article-radius-xl);
    overflow: hidden;
    background: var(--ct-article-card);
    border: 1px solid var(--ct-article-border);
    box-shadow: 0 10px 30px rgba(23, 56, 80, 0.08);
    margin-bottom: 1.5rem;
}

.ct-article-detail__cover img {
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 460px;
    display: block;
    object-fit: contain;
    margin-inline: auto;
}

.ct-article-aside {
    background: var(--ct-article-card);
    border: 1px solid var(--ct-article-border);
    border-radius: var(--ct-article-radius-xl);
    padding: 1.25rem;
    position: sticky;
    top: calc(var(--ct-article-offset) + 1rem);
}

.ct-article-aside__title {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 0 1rem;
    color: var(--ct-article-fg);
}

.ct-article-aside__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--ct-article-border);
    transition: opacity 0.2s ease;
}

.ct-article-aside__item:hover {
    opacity: 0.85;
}

.ct-article-aside__item:last-child,
.ct-article-aside__item:has(+ .ct-article-aside__all) {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.ct-article-aside__item img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: var(--ct-article-radius);
    flex-shrink: 0;
    border: 1px solid var(--ct-article-border);
    background: #f8fafb;
}

.ct-article-aside__item-title {
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
    margin: 0;
    color: var(--ct-article-fg);
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    overflow: hidden;
}

.ct-article-aside__item-date {
    font-size: 0.6875rem;
    color: var(--ct-article-muted);
    margin-top: 0.25rem;
}

.ct-article-aside__all {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 1rem;
    padding: 0.625rem 1.25rem;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--ct-article-radius-xl);
    border: 2px solid var(--ct-article-border);
    background: transparent;
    color: var(--ct-article-fg);
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.ct-article-aside__all:hover {
    background: #eef1f4;
    border-color: var(--ct-article-accent);
    color: var(--ct-article-accent);
}

/* Article FAQ */
.ct-article-faq {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ct-article-border);
}

.ct-article-faq__head {
    margin-bottom: 1.15rem;
}

.ct-article-faq__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ct-article-fg);
}

.ct-article-faq__hint {
    margin: 0.35rem 0 0;
    font-size: 0.8125rem;
    color: var(--ct-article-muted);
}

.ct-article-faq .ct-faq__list.accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-border-radius: 14px;
    --bs-accordion-inner-border-radius: 14px;
    --bs-accordion-btn-padding-x: 16px;
    --bs-accordion-btn-padding-y: 12px;
    --bs-accordion-body-padding-x: 16px;
    --bs-accordion-body-padding-y: 12px;
    --bs-accordion-active-color: var(--ct-article-primary);
    --bs-accordion-active-bg: #fff;
    --bs-accordion-btn-focus-box-shadow: none;
    --bs-accordion-btn-icon-width: 13px;
    --bs-accordion-btn-icon-transform: rotate(0deg);
    --bs-accordion-btn-icon-active-transform: rotate(-180deg);
    --bs-accordion-btn-icon-transition: transform 0.35s ease;
    --ct-faq-chevron-width: 13px;
    --ct-faq-chevron-height: 7px;
    --ct-faq-chevron-icon: url("../images/icon-help-filter.svg");
    --bs-accordion-btn-icon: var(--ct-faq-chevron-icon);
    --bs-accordion-btn-active-icon: var(--ct-faq-chevron-icon);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ct-article-faq .ct-faq__item.accordion-item {
    border: 0;
    border-radius: 14px;
    box-shadow: 0 4px 16px rgba(24, 57, 81, 0.04);
    overflow: hidden;
    background: #fff;
}

.ct-article-faq .ct-faq__item .accordion-header {
    margin: 0;
}

.ct-article-faq .ct-faq__item .accordion-button {
    position: relative;
    gap: 12px;
    padding: 12px 16px 15px;
    background: #fff;
    border: 0;
    border-radius: 14px;
    box-shadow: none;
    color: var(--ct-article-primary);
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.7;
    text-align: inherit;
}

.ct-article-faq .ct-faq__item .accordion-button:not(.collapsed) {
    background: #fff;
    box-shadow: none;
    color: var(--ct-article-primary);
    border-radius: 14px 14px 0 0;
}

.ct-article-faq .ct-faq__item .accordion-button::after {
    content: "";
    position: static;
    inset: auto;
    flex-shrink: 0;
    width: var(--ct-faq-chevron-width);
    height: var(--ct-faq-chevron-height);
    margin-top: 0;
    margin-right: auto;
    margin-left: 0;
    background-color: transparent;
    background-image: url("../images/icon-help-filter.svg") !important;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    border: 0;
    box-shadow: none;
    filter: none !important;
    transform: rotate(0deg) !important;
    transition: var(--bs-accordion-btn-icon-transition);
}

.ct-article-faq .ct-faq__item .accordion-button:not(.collapsed)::after {
    background-image: url("../images/icon-help-filter.svg") !important;
    transform: rotate(-180deg) !important;
}

.ct-article-faq .ct-faq__item .accordion-collapse {
    background: #eeeeee;
}

.ct-article-faq .ct-faq__item .accordion-body.ct-faq__answer {
    padding: 12px 16px 14px;
    background: #eeeeee;
    color: #6e7b85;
    font-size: 0.8125rem;
    line-height: 2;
}

.ct-article-comments {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--ct-article-border);
}

/* Comments */
.ct-comments__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ct-comments__title {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--ct-article-fg);
}

.ct-comments__meta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.ct-comments__count {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #eef1f4;
    color: var(--ct-article-muted);
    font-size: 0.75rem;
    font-weight: 600;
}

.ct-comments__jump {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.3rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--ct-article-accent);
    background: var(--ct-article-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.ct-comments__jump:hover {
    background: var(--ct-article-accent-hover);
    border-color: var(--ct-article-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.ct-comments__form-card {
    background: var(--ct-article-card);
    border: 1px solid var(--ct-article-border);
    border-radius: var(--ct-article-radius-xl);
    padding: 1.25rem 1.35rem 1.35rem;
    margin-top: 1.5rem;
    box-shadow: 0 8px 24px rgba(23, 56, 80, 0.05);
    scroll-margin-top: calc(var(--ct-article-offset) + 1rem);
}

.ct-comments__form-title {
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    color: var(--ct-article-fg);
}

.ct-comments__form-hint {
    margin: 0.35rem 0 1.15rem;
    font-size: 0.8125rem;
    color: var(--ct-article-muted);
}

.ct-comments__field {
    margin-bottom: 0.9rem;
}

.ct-comments__label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ct-article-fg);
}

.ct-comments__input {
    border: 1px solid #d5dde6 !important;
    border-radius: 0.75rem !important;
    background: #f8fafb !important;
    color: var(--ct-article-fg) !important;
    font-size: 0.9rem !important;
    padding: 0.7rem 0.9rem !important;
    box-shadow: none !important;
}

.ct-comments__input:focus {
    border-color: var(--ct-article-accent) !important;
    background: #fff !important;
}

.ct-comments__textarea {
    min-height: 7rem;
    resize: vertical;
}

.ct-comments__footer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.ct-comments__captcha {
    flex: 1 1 260px;
    min-width: 0;
}

.ct-comments__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 8.5rem;
    padding: 0.7rem 1.5rem;
    border: 2px solid var(--ct-article-accent);
    border-radius: 0.85rem;
    background: var(--ct-article-accent);
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.ct-comments__submit--inline {
    box-sizing: border-box;
    height: 46px;
    margin-top: 1.7rem;
    padding-block: 0;
    flex: 0 0 auto;
    white-space: nowrap;
}

.ct-comments__submit:hover {
    background: var(--ct-article-accent-hover);
    border-color: var(--ct-article-accent-hover);
    color: #fff;
    transform: translateY(-1px);
}

.ct-comments__submit--block {
    width: 100%;
}

.ct-comments__offcanvas {
    height: auto !important;
    max-height: 90vh;
    border-radius: 1.25rem 1.25rem 0 0;
}

.ct-comments__list {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
}

.ct-comment-card {
    background: var(--ct-article-card);
    border: 1px solid var(--ct-article-border);
    border-radius: var(--ct-article-radius-xl);
    padding: 1rem 1.15rem;
}

.ct-comment-card--reply {
    margin-top: 0.85rem;
    margin-right: 1.25rem;
    background: #f7f9fb;
    border-color: #e4e9ed;
}

.ct-comment-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.ct-comment-card__author {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.ct-comment-card__avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: #173850;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    flex-shrink: 0;
}

.ct-comment-card__avatar--sm {
    width: 2rem;
    height: 2rem;
    font-size: 0.8rem;
    background: var(--ct-article-accent);
}

.ct-comment-card__name {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--ct-article-fg);
}

.ct-comment-card__date {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: var(--ct-article-muted);
}

.ct-comment-card__reply {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--ct-article-border);
    border-radius: 999px;
    background: transparent;
    color: var(--ct-article-muted);
    font-size: 0.75rem;
    font-weight: 600;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.ct-comment-card__reply:hover {
    color: var(--ct-article-accent);
    border-color: var(--ct-article-accent);
    background: rgba(192, 110, 53, 0.06);
}

.ct-comment-card__body {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.8;
    color: #3d4a54;
}

.ct-comments__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 2rem 1rem;
    border: 1px dashed #d5dde6;
    border-radius: var(--ct-article-radius-xl);
    background: #f8fafb;
    text-align: center;
    color: var(--ct-article-muted);
}

.ct-comments__empty .bi {
    font-size: 1.75rem;
    color: var(--ct-article-accent);
}

.ct-comments__empty p {
    margin: 0;
    font-size: 0.875rem;
}

.ct-comments .site-captcha {
    margin-bottom: 0;
}

.ct-comments .site-captcha__label {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--ct-article-fg);
}

.ct-comments .site-captcha__row {
    --captcha-control-h: 46px;
}

.ct-comments .site-captcha__input {
    border: 1px solid #d5dde6 !important;
    border-radius: 0.75rem !important;
    background: #f8fafb !important;
    color: var(--ct-article-fg) !important;
    font-size: 0.9rem !important;
    height: var(--captcha-control-h) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    padding-inline: 0.9rem !important;
    line-height: calc(var(--captcha-control-h) - 2px);
}

.ct-comments .site-captcha__input:focus {
    border-color: var(--ct-article-accent) !important;
    background: #fff !important;
}

.ct-comments .site-captcha__img,
.ct-comments .site-captcha__refresh {
    height: var(--captcha-control-h);
}

.ct-comments .site-captcha__refresh {
    width: var(--captcha-control-h);
}

@media (max-width: 991.98px) {
    .ct-article-detail {
        padding: 1.5rem 0 2.5rem;
    }

    .ct-article-aside {
        position: static;
        margin-top: 0.5rem;
    }

    .ct-article-detail__cover {
        margin-bottom: 1.5rem;
    }

    .ct-article-detail__cover img {
        max-height: 400px;
    }

    .ct-comment-card--reply {
        margin-right: 0.5rem;
    }
}

@media (max-width: 575.98px) {
    .ct-article-detail__cover img {
        max-height: 320px;
    }

    .ct-comments__submit--inline {
        width: 100%;
        margin-top: 0.5rem;
    }
}
