/* Dark storefront — warm layered palette, easy on the eyes */

html.ab-blog-theme--dark {
    color-scheme: dark;

    --ab-dark-bg: var(--color-neutral-000, #121316);
    --ab-dark-bg-soft: #16181d;
    --ab-dark-surface: var(--color-neutral-100, #1c1e24);
    --ab-dark-surface-raised: #242730;
    --ab-dark-surface-soft: var(--color-neutral-200, #181a20);
    --ab-dark-border: rgba(234, 218, 192, 0.11);
    --ab-dark-border-strong: rgba(234, 218, 192, 0.2);
    --ab-dark-text: var(--color-neutral-700, #e6dfd3);
    --ab-dark-text-muted: var(--color-neutral-500, #b8aea4);
    --ab-dark-heading: var(--color-section-title, #f2ebe3);
    --ab-dark-link: var(--color-secondary-500, #d4bc8a);
    --ab-dark-link-hover: var(--color-neutral-600, #e8d4a8);
    --ab-dark-accent: var(--color-icon-secondary, #c9a86c);
    --ab-dark-accent-soft: rgba(201, 168, 108, 0.14);
    --ab-dark-shadow: 0 10px 32px rgba(0, 0, 0, 0.28);
    --ab-dark-shadow-soft: 0 2px 12px rgba(0, 0, 0, 0.18);
    --ab-dark-table-wrap-bg: #1a1c22;
    --ab-dark-table-header-bg: #2b303a;
    --ab-dark-table-row-bg: #1e2129;
    --ab-dark-table-row-alt-bg: #252932;
    --ab-dark-table-row-hover-bg: rgba(201, 168, 108, 0.1);
    --ab-dark-table-cell-border: rgba(234, 218, 192, 0.18);
    --ab-dark-table-header-border: rgba(201, 168, 108, 0.55);
}

/* — Page shell — */
html.ab-blog-theme--dark.html-blog-page,
html.ab-blog-theme--dark.html-blogpost-page {
    background-color: var(--ab-dark-bg);
    background-image: radial-gradient(ellipse 120% 80% at 50% -20%, rgba(201, 168, 108, 0.06), transparent 55%);
}

html.ab-blog-theme--dark.html-blog-page .section--blogs,
html.ab-blog-theme--dark.html-blogpost-page .ab-blog-post,
html.ab-blog-theme--dark.html-blogpost-page .ab-pack,
html.ab-blog-theme--dark.html-blog-page .ab-pack,
html.ab-blog-theme--dark .blogDetail {
    color: var(--ab-dark-text);
}

html.ab-blog-theme--dark.html-blog-page .section--blogs {
    background: linear-gradient(180deg, var(--ab-dark-bg-soft) 0%, var(--ab-dark-bg) 100%);
}

html.ab-blog-theme--dark.html-blog-page .section--blogs__title,
html.ab-blog-theme--dark.html-blog-page .blog__title,
html.ab-blog-theme--dark.html-blog-page .blog__archive_title,
html.ab-blog-theme--dark .blogDetail__title {
    color: var(--ab-dark-heading) !important;
}

html.ab-blog-theme--dark.html-blog-page .blog,
html.ab-blog-theme--dark.html-blog-page .blogs__tools {
    background: var(--ab-dark-surface) !important;
    border-color: var(--ab-dark-border) !important;
    color: var(--ab-dark-text) !important;
    box-shadow: var(--ab-dark-shadow-soft);
}

html.ab-blog-theme--dark.html-blog-page .blog__date,
html.ab-blog-theme--dark.html-blog-page .blog__body,
html.ab-blog-theme--dark.html-blog-page .blog__archive_item,
html.ab-blog-theme--dark.html-blog-page .blog__archive_month,
html.ab-blog-theme--dark .blogDetail__date {
    color: var(--ab-dark-text-muted) !important;
}

html.ab-blog-theme--dark .blogDetail__body {
    color: var(--ab-dark-text) !important;
    background: transparent !important;
}

html.ab-blog-theme--dark.html-blog-page .blog__comments,
html.ab-blog-theme--dark.html-blog-page .blog__more,
html.ab-blog-theme--dark.html-blog-page .blog__tags a {
    color: var(--ab-dark-link) !important;
}

html.ab-blog-theme--dark.html-blog-page .section--blogs__header,
html.ab-blog-theme--dark.html-blog-page .blogs__list {
    border-color: var(--ab-dark-border) !important;
}

/* — Magazine / pack list — */
html.ab-blog-theme--dark .ab-pack--magazine-pro,
html.ab-blog-theme--dark .ab-pack--editorial,
html.ab-blog-theme--dark .ab-pack--classic {
    color: var(--ab-dark-text);
}

html.ab-blog-theme--dark .ab-pack-list__header h1,
html.ab-blog-theme--dark .ab-mag-page__header h1 {
    color: var(--ab-dark-heading) !important;
}

html.ab-blog-theme--dark .ab-pack-list__card,
html.ab-blog-theme--dark .ab-pack-home__card,
html.ab-blog-theme--dark .ab-mag-card,
html.ab-blog-theme--dark .ab-mag-sidebar__box,
html.ab-blog-theme--dark .ab-mag-author,
html.ab-blog-theme--dark .ab-mag-section {
    background: var(--ab-dark-surface) !important;
    border-color: var(--ab-dark-border) !important;
    box-shadow: var(--ab-dark-shadow-soft);
    color: var(--ab-dark-text) !important;
}

html.ab-blog-theme--dark .ab-pack-list__date,
html.ab-blog-theme--dark .ab-pack-list__excerpt,
html.ab-blog-theme--dark .ab-mag-card__date,
html.ab-blog-theme--dark .ab-mag-card__excerpt,
html.ab-blog-theme--dark .ab-mag-card__meta {
    color: var(--ab-dark-text-muted) !important;
}

html.ab-blog-theme--dark .ab-pack-list__title a,
html.ab-blog-theme--dark .ab-mag-card__title a,
html.ab-blog-theme--dark .ab-mag-sidebar__list a {
    color: var(--ab-dark-heading) !important;
}

html.ab-blog-theme--dark .ab-mag-page__back {
    color: var(--ab-dark-link) !important;
}

/* — Article content — */
html.ab-blog-theme--dark .ab-article .ab-content,
html.ab-blog-theme--dark .ab-article.ab-article--enhanced .ab-content.ab-content--card,
html.ab-blog-theme--dark .blogDetail__body {
    --ab-body-color: var(--ab-dark-text);
    --ab-body-size: 1rem;
    color: var(--ab-dark-text) !important;
    background: transparent !important;
}

html.ab-blog-theme--dark .ab-article .ab-content :is(.ab-paragraph, p, li, td, th, span, div, label, figcaption, .ab-list),
html.ab-blog-theme--dark .blogDetail__body :is(p, li, td, span) {
    color: inherit;
}

/* Bold: same color as surrounding text, heavier weight only */
html.ab-blog-theme--dark .html-blogpost-page .ab-article .ab-content :is(strong, b),
html.ab-blog-theme--dark .ab-article .ab-content :is(strong, b),
html.ab-blog-theme--dark .blogDetail__body :is(strong, b),
html.ab-blog-theme--dark .details__body .ab-content :is(strong, b) {
    color: inherit !important;
    font-weight: 700;
}

html.ab-blog-theme--dark .ab-article .ab-content :is(h2, .ab-heading--h2, h1:not(.ab-article__title)),
html.ab-blog-theme--dark .ab-article .ab-content :is(h3, .ab-heading--h3),
html.ab-blog-theme--dark .ab-article .ab-content :is(h4, .ab-heading--h4),
html.ab-blog-theme--dark .ab-article .ab-content :is(h5, h6),
html.ab-blog-theme--dark .blogDetail__body :is(h1, h2, h3, h4, h5, h6) {
    color: var(--ab-dark-heading) !important;
    background: transparent !important;
    border-color: var(--ab-dark-border) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content :is(h2, .ab-heading--h2),
html.ab-blog-theme--dark .blogDetail__body :is(h2, .ab-heading--h2) {
    border-bottom-color: var(--ab-dark-border-strong) !important;
    padding-bottom: 0.55rem;
}

html.ab-blog-theme--dark .ab-article__title,
html.ab-blog-theme--dark .ab-article-sidebar__box h3,
html.ab-blog-theme--dark .ab-related-posts--enhanced h3,
html.ab-blog-theme--dark .ab-author-box--enhanced strong,
html.ab-blog-theme--dark .ab-comments__title,
html.ab-blog-theme--dark .ab-comments__form-title {
    color: var(--ab-dark-heading) !important;
}

html.ab-blog-theme--dark .ab-article__header {
    border-color: var(--ab-dark-border) !important;
}

html.ab-blog-theme--dark .ab-article__meta,
html.ab-blog-theme--dark .ab-author-box--enhanced p,
html.ab-blog-theme--dark .ab-related-card p,
html.ab-blog-theme--dark .ab-toc__item--level-3 > .ab-toc__link,
html.ab-blog-theme--dark .ab-toc__item--level-4 > .ab-toc__link,
html.ab-blog-theme--dark .ab-comment__date,
html.ab-blog-theme--dark .ab-comment__text {
    color: var(--ab-dark-text-muted) !important;
}

html.ab-blog-theme--dark .ab-content--card,
html.ab-blog-theme--dark .ab-toc,
html.ab-blog-theme--dark .ab-toc--enhanced,
html.ab-blog-theme--dark .ab-article-sidebar__box,
html.ab-blog-theme--dark .ab-author-box--enhanced,
html.ab-blog-theme--dark .ab-related-card,
html.ab-blog-theme--dark .ab-comments__form-wrap,
html.ab-blog-theme--dark .ab-comment {
    background: var(--ab-dark-surface) !important;
    border-color: var(--ab-dark-border) !important;
    box-shadow: var(--ab-dark-shadow-soft);
}

html.ab-blog-theme--dark .ab-toc__title,
html.ab-blog-theme--dark .ab-blog-post .ab-toc.ab-toc--hierarchical .ab-toc__item--level-2 > .ab-toc__link {
    color: var(--ab-dark-heading) !important;
}

html.ab-blog-theme--dark .ab-toc__link,
html.ab-blog-theme--dark .ab-breadcrumb__item a,
html.ab-blog-theme--dark .ab-article-sidebar__list a {
    color: var(--ab-dark-text-muted) !important;
}

html.ab-blog-theme--dark .ab-toc__link:hover,
html.ab-blog-theme--dark .ab-breadcrumb__item a:hover,
html.ab-blog-theme--dark .ab-article-sidebar__list a:hover,
html.ab-blog-theme--dark .ab-related-card h4 a:hover,
html.ab-blog-theme--dark .ab-comment__author:hover {
    color: var(--ab-dark-link) !important;
}

html.ab-blog-theme--dark .ab-breadcrumb__item.is-current span {
    color: var(--ab-dark-text) !important;
}

html.ab-blog-theme--dark .ab-tag {
    background: var(--ab-dark-accent-soft) !important;
    border: 1px solid var(--ab-dark-border);
    color: var(--ab-dark-text) !important;
}

html.ab-blog-theme--dark .ab-related-posts--enhanced,
html.ab-blog-theme--dark .ab-comments {
    border-color: var(--ab-dark-border) !important;
}

html.ab-blog-theme--dark .ab-related-card h4 a,
html.ab-blog-theme--dark .ab-comment__author {
    color: var(--ab-dark-heading) !important;
}

/* — Text alignment — */
html.ab-blog-theme--dark .html-blogpost-page .ab-article .ab-content .ab-fmt-align--left,
html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-align--left,
html.ab-blog-theme--dark .blogDetail__body .ab-fmt-align--left,
html.ab-blog-theme--dark .html-blogpost-page .ab-article .ab-content .ab-fmt-align--center,
html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-align--center,
html.ab-blog-theme--dark .blogDetail__body .ab-fmt-align--center,
html.ab-blog-theme--dark .html-blogpost-page .ab-article .ab-content .ab-fmt-align--right,
html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-align--right,
html.ab-blog-theme--dark .blogDetail__body .ab-fmt-align--right {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    unicode-bidi: plaintext;
    color: inherit !important;
}

html.ab-blog-theme--dark .html-blogpost-page .ab-article .ab-content .ab-fmt-align--left,
html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-align--left,
html.ab-blog-theme--dark .blogDetail__body .ab-fmt-align--left {
    text-align: left !important;
}

html.ab-blog-theme--dark .html-blogpost-page .ab-article .ab-content .ab-fmt-align--center,
html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-align--center,
html.ab-blog-theme--dark .blogDetail__body .ab-fmt-align--center {
    text-align: center !important;
}

html.ab-blog-theme--dark .html-blogpost-page .ab-article .ab-content .ab-fmt-align--right,
html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-align--right,
html.ab-blog-theme--dark .blogDetail__body .ab-fmt-align--right {
    text-align: right !important;
}

/* — Tables — */
html.ab-blog-theme--dark .ab-article .ab-content .ab-table-wrap,
html.ab-blog-theme--dark .blogDetail__body .ab-table-wrap {
    background: var(--ab-dark-table-wrap-bg) !important;
    border: 1px solid var(--ab-dark-border-strong) !important;
    border-radius: 12px;
    box-shadow: var(--ab-dark-shadow-soft);
    overflow: hidden;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-table,
html.ab-blog-theme--dark .blogDetail__body .ab-table,
html.ab-blog-theme--dark .blogDetail__body table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    color: var(--ab-dark-text);
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-table :is(th, td),
html.ab-blog-theme--dark .blogDetail__body .ab-table :is(th, td),
html.ab-blog-theme--dark .blogDetail__body table :is(th, td) {
    padding: .75rem 1rem;
    text-align: start;
    vertical-align: top;
    border-bottom: 1px solid var(--ab-dark-table-cell-border) !important;
    border-inline-end: 1px solid var(--ab-dark-table-cell-border) !important;
    color: var(--ab-dark-text) !important;
    background: var(--ab-dark-table-row-bg) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-table :is(th, td):last-child,
html.ab-blog-theme--dark .blogDetail__body .ab-table :is(th, td):last-child,
html.ab-blog-theme--dark .blogDetail__body table :is(th, td):last-child {
    border-inline-end: 0 !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-table thead th,
html.ab-blog-theme--dark .blogDetail__body .ab-table thead th,
html.ab-blog-theme--dark .blogDetail__body table thead th {
    background: var(--ab-dark-table-header-bg) !important;
    color: var(--ab-dark-heading) !important;
    font-weight: 700;
    border-bottom: 2px solid var(--ab-dark-table-header-border) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-table tbody tr:nth-child(even) td,
html.ab-blog-theme--dark .blogDetail__body .ab-table tbody tr:nth-child(even) td,
html.ab-blog-theme--dark .blogDetail__body table tbody tr:nth-child(even) td {
    background: var(--ab-dark-table-row-alt-bg) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-table tbody tr:hover td,
html.ab-blog-theme--dark .blogDetail__body .ab-table tbody tr:hover td,
html.ab-blog-theme--dark .blogDetail__body table tbody tr:hover td {
    background: var(--ab-dark-table-row-hover-bg) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-table tbody tr:last-child td,
html.ab-blog-theme--dark .blogDetail__body .ab-table tbody tr:last-child td,
html.ab-blog-theme--dark .blogDetail__body table tbody tr:last-child td {
    border-bottom: 0 !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-table :is(th, td) strong,
html.ab-blog-theme--dark .blogDetail__body .ab-table :is(th, td) strong,
html.ab-blog-theme--dark .blogDetail__body table :is(th, td) strong {
    color: var(--ab-dark-heading) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-table :is(th, td) a,
html.ab-blog-theme--dark .blogDetail__body .ab-table :is(th, td) a,
html.ab-blog-theme--dark .blogDetail__body table :is(th, td) a {
    color: var(--ab-dark-link) !important;
    text-decoration: underline;
    text-underline-offset: .12em;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-table :is(th, td) a:hover,
html.ab-blog-theme--dark .blogDetail__body .ab-table :is(th, td) a:hover,
html.ab-blog-theme--dark .blogDetail__body table :is(th, td) a:hover {
    color: var(--ab-dark-link-hover) !important;
}

/* — Blocks — */
html.ab-blog-theme--dark .ab-article .ab-content :is(blockquote, .ab-quote, .ab-pullquote),
html.ab-blog-theme--dark .blogDetail__body blockquote {
    background: var(--ab-dark-surface) !important;
    border-color: var(--ab-dark-accent) !important;
    border-inline-start: 3px solid var(--ab-dark-accent) !important;
    color: var(--ab-dark-text) !important;
    box-shadow: var(--ab-dark-shadow-soft);
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-pullquote__cite {
    color: var(--ab-dark-text-muted) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-code {
    background: var(--ab-dark-surface-raised) !important;
    border-color: var(--ab-dark-border) !important;
    color: #e8dcc8 !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-image,
html.ab-blog-theme--dark .ab-article .ab-content .ab-image figcaption,
html.ab-blog-theme--dark .ab-article .ab-content .ab-gallery__item,
html.ab-blog-theme--dark .ab-article .ab-content .ab-gallery__item figcaption {
    background: transparent !important;
    border-color: var(--ab-dark-border) !important;
    color: var(--ab-dark-text-muted) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-delimiter::before {
    background: var(--ab-dark-border) !important;
    color: var(--ab-dark-text-muted) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-alert--info {
    background: rgba(56, 92, 140, 0.22) !important;
    border: 1px solid rgba(120, 168, 220, 0.25);
    color: #c8dcf4 !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-alert--warning {
    background: rgba(140, 108, 48, 0.2) !important;
    border: 1px solid rgba(201, 168, 108, 0.28);
    color: #f0ddb8 !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-alert--success {
    background: rgba(48, 120, 88, 0.2) !important;
    border: 1px solid rgba(120, 200, 160, 0.25);
    color: #b8e8d4 !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-alert--danger {
    background: rgba(140, 56, 64, 0.22) !important;
    border: 1px solid rgba(220, 120, 128, 0.25);
    color: #f0caca !important;
}

/* — FAQ — */
html.ab-blog-theme--dark .ab-article .ab-content .ab-faq,
html.ab-blog-theme--dark .blogDetail__body .ab-faq {
    gap: 0.75rem;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-faq__item,
html.ab-blog-theme--dark .blogDetail__body .ab-faq__item {
    background: var(--ab-dark-surface) !important;
    border: 1px solid var(--ab-dark-border) !important;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-faq__item:hover,
html.ab-blog-theme--dark .blogDetail__body .ab-faq__item:hover {
    border-color: var(--ab-dark-border-strong) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-faq__item summary,
html.ab-blog-theme--dark .blogDetail__body .ab-faq__item summary {
    color: var(--ab-dark-heading) !important;
    background: transparent !important;
    font-weight: 700;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-faq__item[open],
html.ab-blog-theme--dark .blogDetail__body .ab-faq__item[open] {
    background: var(--ab-dark-surface-raised) !important;
    border-color: rgba(201, 168, 108, 0.32) !important;
    box-shadow: var(--ab-dark-shadow-soft);
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-faq__item[open] summary,
html.ab-blog-theme--dark .blogDetail__body .ab-faq__item[open] summary {
    border-bottom: 1px solid var(--ab-dark-border) !important;
    background: transparent !important;
    color: var(--ab-dark-heading) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-faq__answer,
html.ab-blog-theme--dark .blogDetail__body .ab-faq__answer {
    color: var(--ab-dark-text) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content :is(.ab-product-block, .ab-category-block),
html.ab-blog-theme--dark .ab-article .ab-content :is(.ab-product-card, .ab-category-card) {
    background: var(--ab-dark-surface) !important;
    border-color: var(--ab-dark-border) !important;
    box-shadow: var(--ab-dark-shadow-soft);
}

html.ab-blog-theme--dark .ab-article .ab-content :is(.ab-product-card__name, .ab-product-card__title, .ab-category-card__title, .ab-product-card__name a, .ab-product-card__title a, .ab-category-card__title a) {
    color: var(--ab-dark-heading) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-file__link {
    background: var(--ab-dark-surface-raised) !important;
    border-color: var(--ab-dark-border) !important;
    color: var(--ab-dark-link) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content mark,
html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-highlight,
html.ab-blog-theme--dark .blogDetail__body mark {
    background: rgba(201, 168, 108, 0.28) !important;
    color: var(--ab-dark-heading) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-color--gray {
    color: #c4b8aa !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-color--red {
    color: #f87171 !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-color--blue {
    color: #93c5fd !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-color--green {
    color: #6ee7b7 !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-color--orange {
    color: #fdba74 !important;
}

html.ab-blog-theme--dark .ab-article .ab-content .ab-fmt-color--purple {
    color: #c4b5fd !important;
}

html.ab-blog-theme--dark .ab-article .ab-content a,
html.ab-blog-theme--dark .blogDetail__body a {
    color: var(--ab-dark-link) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content a:hover,
html.ab-blog-theme--dark .blogDetail__body a:hover {
    color: var(--ab-dark-link-hover) !important;
}

html.ab-blog-theme--dark .ab-article .ab-content a.ab-editor-link--internal,
html.ab-blog-theme--dark .ab-article .ab-content a[data-ab-link-type]:not([data-ab-link-type="url"]) {
    color: #dcc9a8 !important;
}

html.ab-blog-theme--dark .ab-article .ab-content a.ab-editor-link--external {
    color: var(--ab-dark-link) !important;
}

html.ab-blog-theme--dark .ab-article__featured {
    background: var(--ab-dark-surface) !important;
    border: 1px solid var(--ab-dark-border);
    border-radius: 12px;
}

html.ab-blog-theme--dark .ab-content .ab-cta__btn--primary {
    background: linear-gradient(180deg, #e8d4a8 0%, var(--ab-dark-accent) 100%) !important;
    color: #1a1510 !important;
    border: none;
}

html.ab-blog-theme--dark .ab-content .ab-cta__btn--secondary {
    background: transparent !important;
    color: var(--ab-dark-heading) !important;
    border-color: var(--ab-dark-border-strong) !important;
}

/* — Comments & rating — */
html.ab-blog-theme--dark .ab-comments__textarea,
html.ab-blog-theme--dark .ab-comments__label {
    background: var(--ab-dark-surface-raised) !important;
    border-color: var(--ab-dark-border) !important;
    color: var(--ab-dark-text) !important;
}

html.ab-blog-theme--dark .ab-comments__textarea:focus {
    border-color: var(--ab-dark-accent) !important;
    box-shadow: 0 0 0 3px var(--ab-dark-accent-soft);
}

html.ab-blog-theme--dark .ab-comments__submit {
    background: linear-gradient(180deg, #e8d4a8 0%, var(--ab-dark-accent) 100%) !important;
    color: #1a1510 !important;
}

html.ab-blog-theme--dark .ab-rating__star {
    color: #5c564e !important;
}

html.ab-blog-theme--dark .ab-rating__star.is-filled,
html.ab-blog-theme--dark .ab-rating__star:hover,
html.ab-blog-theme--dark .ab-rating__star:focus {
    color: var(--ab-dark-accent) !important;
}

html.ab-blog-theme--dark .ab-rating__value,
html.ab-blog-theme--dark .ab-rating__count {
    color: var(--ab-dark-text-muted) !important;
}

html.ab-blog-theme--dark.html-blogpost-page {
    --ab-reading-progress-track: rgba(201, 168, 108, 0.14);
    --ab-reading-progress-fill: var(--ab-dark-accent, #c9a86c);
}

@media (max-width: 991px) {
    html.ab-blog-theme--dark .ab-mobile-toc__fab {
        background: var(--ab-dark-surface-elevated, #1e2230) !important;
        border-color: var(--ab-dark-border) !important;
        color: var(--ab-dark-heading) !important;
        box-shadow: 0 8px 28px rgba(0, 0, 0, .35);
    }

    html.ab-blog-theme--dark .ab-mobile-toc__panel {
        background: var(--ab-dark-surface-elevated, #1e2230) !important;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, .4);
    }

    html.ab-blog-theme--dark .ab-mobile-toc__header {
        border-bottom-color: var(--ab-dark-border) !important;
    }

    html.ab-blog-theme--dark .ab-mobile-toc__title {
        color: var(--ab-dark-heading) !important;
    }

    html.ab-blog-theme--dark .ab-mobile-toc__close {
        background: rgba(255, 255, 255, .08) !important;
        color: var(--ab-dark-text-muted) !important;
    }

    html.ab-blog-theme--dark .ab-mobile-toc__link {
        color: var(--ab-dark-text-muted) !important;
        border-bottom-color: var(--ab-dark-border) !important;
    }

    html.ab-blog-theme--dark .ab-mobile-toc__link:hover,
    html.ab-blog-theme--dark .ab-mobile-toc__link:focus {
        color: var(--ab-dark-link) !important;
    }
}
