/*
 * Редакционные тексты внизу страниц (главная, /platforms, каталоги, категории).
 * Компактная типографика вместо «лендинговых» блоков: заголовки слева без декоративной черты,
 * текст 15px, карточки без теней и центровки, примечания тонкой линией.
 * Подключается после theme.css; селекторы с html body, чтобы перекрыть inline-стили страниц.
 */
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) {
    --pr-text: var(--ink-600, #4b5563);
    --pr-line: var(--ink-100, #eceef1);
    font-size: .94rem;
}

/* Заголовки */
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) h2 {
    text-align: left !important;
    font-size: 1.4rem !important;
    line-height: 1.25 !important;
    letter-spacing: -.02em;
    font-weight: 700 !important;
    color: var(--ink-900, #0f1115) !important;
    margin: 2.25rem 0 .6rem !important;
    padding: 0;
    border: 0;
    background: none;
}
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) h2::after,
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) h2::before {
    content: none !important;
    display: none !important;
}
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) h3 {
    text-align: left;
    font-size: 1rem;
    line-height: 1.35;
    letter-spacing: -.01em;
    font-weight: 650;
    color: var(--ink-900, #0f1115);
    margin: 1.4rem 0 .35rem;
}
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) h4 {
    font-size: .9rem;
    font-weight: 650;
    color: var(--ink-900, #0f1115);
    margin: 1rem 0 .3rem;
    text-align: left;
}

/* Текст и списки */
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) :is(p, li, dd) {
    font-size: .94rem;
    line-height: 1.62;
    color: var(--pr-text);
    text-align: left;
}
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) p { margin: 0 0 .8rem; }
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) li { margin: 0 0 .3rem; }
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) :is(p, li) strong { color: var(--ink-900, #0f1115); font-weight: 600; }
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) :is(p, li, td) a { color: var(--accent-700, #0e7f64); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 2px; }

/* Примечания и лиды: тонкая линия слева вместо серой плашки */
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial) :is(.section-note, .guide-lead, .aff-lead, .aff-note, .home-reviews-more) {
    background: none;
    border: 0;
    border-left: 2px solid var(--ink-200, #dfe2e7);
    border-radius: 0;
    padding: 0 0 0 .9rem;
    margin: .3rem 0 1.1rem;
    max-width: 820px;
    font-size: .9rem;
    line-height: 1.6;
    color: var(--ink-500, #6b7280);
    text-align: left;
    box-shadow: none;
}

/* Карточки: без теней и центровки, плотнее */
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide) :is(.trend-item, .update-item, .faq-item, .news-category, .aff-card, .aff-faq-item, .definition-box, .insight, .mistake, .phase, .tier, .score-category, .cost-category, .factor-analysis) {
    background: #fff;
    border: 1px solid var(--pr-line);
    border-radius: 12px;
    box-shadow: none;
    padding: 14px 16px;
    text-align: left;
    transform: none;
}
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide) :is(.trend-item, .update-item, .faq-item, .news-category, .aff-card, .aff-faq-item, .definition-box, .insight, .mistake, .phase, .tier, .score-category, .cost-category, .factor-analysis)::before {
    content: none;
}
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide) :is(.trend-item, .update-item, .faq-item, .news-category, .aff-card, .aff-faq-item, .definition-box, .insight, .mistake, .phase, .tier, .score-category, .cost-category, .factor-analysis) :is(h3, h4) {
    margin-top: 0;
    color: var(--ink-900, #0f1115);
    font-size: .95rem;
}
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide) :is(.trend-item, .update-item, .faq-item, .news-category, .aff-card, .aff-faq-item, .insight, .mistake, .phase, .tier) :is(p, li) {
    font-size: .88rem;
    line-height: 1.55;
}
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide) :is(.trend-item, .update-item, .faq-item, .news-category, .aff-card, .aff-faq-item, .insight, .mistake, .phase, .tier) :is(p, ul, ol):last-child { margin-bottom: 0; }
/* Цветные плашки (определения, «хорошо/плохо») — нейтральный фон, цвет только в тонкой полосе */
html body :is(.platforms-expert-content, .gp-guide, .pay-guide, .aff-guide) .definition-box { background: var(--ink-50, #f4f5f7); border: 0; }
html body .platforms-expert-content :is(.insight.good, .insight.warning, .mistake) { border-left: 3px solid var(--ink-200, #dfe2e7); }
html body .platforms-expert-content .insight.good { border-left-color: var(--accent-500, #12a582); }
html body .platforms-expert-content :is(.insight.warning, .mistake.warning, .mistake.medium) { border-left-color: #d9a400; }
html body .platforms-expert-content .mistake.critical { border-left-color: #d14343; }

/* Цифры в карточках — моно, без огромного кегля */
html body .casino-software-guide .trend-stat { font-family: var(--font-mono, ui-monospace, monospace); font-size: 1.5rem; line-height: 1.1; letter-spacing: -.02em; color: var(--ink-900, #0f1115); text-align: left; margin-bottom: .2rem; }
html body .casino-software-guide .trend-item h3 { font-size: .9rem; margin: .2rem 0 .35rem; }
html body .casino-software-guide .trends-list { gap: 10px; }

/* FAQ: две колонки, вопросы тёмным, а не синим */
html body :is(.casino-software-guide, .platforms-expert-content) .faq-grid { margin-top: 12px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; align-items: start; }
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide) :is(.faq-item, .aff-faq-item) :is(h3, h4, summary) { color: var(--ink-900, #0f1115); font-size: .95rem; line-height: 1.4; margin: 0 0 .35rem; }
@media (max-width: 760px) {
    html body :is(.casino-software-guide, .platforms-expert-content) .faq-grid { grid-template-columns: 1fr; }
}

/* Таблицы */
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial) table { font-size: .86rem; border-collapse: collapse; box-shadow: none; }
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial) :is(th, td) { padding: .55rem .75rem; line-height: 1.45; vertical-align: top; text-align: left; }
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial) thead th { background: var(--ink-50, #f4f5f7) !important; color: var(--ink-700, #374151) !important; font-weight: 600; font-size: .78rem; text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--ink-200, #dfe2e7); }
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial) thead th a { color: inherit !important; text-decoration: none; }
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial) .table-scroll { border: 1px solid var(--pr-line); border-radius: 12px; box-shadow: none; background: #fff; }

/* Главная: меньше воздуха между блоками, шаги — плотный список */
html body .casino-software-guide :is(.home-browse, .home-reviews, .home-steps, .market-intelligence, .regulatory-updates, .faq-section, .industry-news) { margin-bottom: 44px; padding-top: 0; }
html body .casino-software-guide .home-browse-grid, html body .casino-software-guide .home-reviews-grid { margin-top: 14px; }
html body .casino-software-guide .home-steps-list { max-width: none; margin: 14px 0 0; gap: 8px; }
html body .casino-software-guide .home-steps-list li { padding: 12px 16px 12px 52px; font-size: .9rem; line-height: 1.55; border-color: var(--pr-line); }
html body .casino-software-guide .home-steps-list li::before { left: 16px; top: 12px; width: 24px; height: 24px; font-size: .75rem; }
html body .casino-software-guide .home-reviews-more { margin-top: 12px; }

/* Мобильные */
@media (max-width: 640px) {
    html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) h2 { font-size: 1.22rem !important; margin-top: 1.8rem !important; }
    html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide, .cat-editorial, .cat-faq) :is(p, li) { font-size: .9rem; line-height: 1.58; }
}

/* H2 первым элементом внутри блока-карточки — без верхнего отступа */
html body :is(.casino-software-guide, .platforms-expert-content, .gp-guide, .pay-guide, .aff-guide) :is(div, section, article) > h2:first-child { margin-top: 0 !important; }

/* Цифры в блоках статистики каталогов — моно, тёмные */
html body :is(.gp-guide, .pay-guide) .guide-stats :is(strong, b, .num, span:first-child) { font-family: var(--font-mono, ui-monospace, monospace); color: var(--ink-900, #0f1115); letter-spacing: -.02em; }
html body :is(.gp-guide, .pay-guide) .guide-stats > * { box-shadow: none; border-color: var(--pr-line); }
