/* WCL Blog Light Polish v3 — typography refinement + 3× tone down of WCL Post Enhancer zebra
   2026-05-19. Не трогаем основной шаблон / шрифты / макет / фон.
   Override mu-plugin wcl-post-enhancer.php (5-cycle h3 zebra → 3-cycle muted).
*/

/* === Body typography === */
body.single-post .wcl-content {
    font-size: 17px;
    line-height: 1.72;
}

body.single-post .wcl-content > p {
    margin: 0 0 20px;
    font-size: 17px;
    line-height: 1.72;
    color: #0f172a;
}

body.single-post .wcl-content > p:first-of-type {
    font-size: 19px;
    line-height: 1.62;
    color: #0a1628;
    font-weight: 500;
}

body.single-post .wcl-content > h2 {
    margin: 56px 0 16px;
    line-height: 1.2;
}

body.single-post .wcl-content > h3 {
    margin: 38px 0 12px;
    line-height: 1.3;
}

body.single-post .wcl-content > ul,
body.single-post .wcl-content > ol {
    margin: 0 0 22px;
    padding-left: 22px;
}

body.single-post .wcl-content > ul > li,
body.single-post .wcl-content > ol > li {
    margin-bottom: 8px;
    line-height: 1.7;
}

body.single-post .wcl-content > p > strong {
    color: #0a1628;
    font-weight: 700;
}

/* === KILL ZEBRA — overwrite mu-plugin wcl-post-enhancer.php 5n+1..5n+5 colours ===
   Нейтрализуем ВСЕ 5 циклов: убираем backgrounds и яркие borders.
   Каждый 1-й, 2-й, 4-й, 5-й — прозрачный (без фона).
   Каждый 3-й (5n+3) — оставляем как subtle accent, в 3× менее ярко. */

body.single-post .wcl-content > h3:nth-of-type(5n+1),
body.single-post .wcl-content > h3:nth-of-type(5n+1) + p,
body.single-post .wcl-content > h3:nth-of-type(5n+1) + p + p,
body.single-post .wcl-content > h3:nth-of-type(5n+1) + ul,
body.single-post .wcl-content > h3:nth-of-type(5n+1) + ol,

body.single-post .wcl-content > h3:nth-of-type(5n+2),
body.single-post .wcl-content > h3:nth-of-type(5n+2) + p,
body.single-post .wcl-content > h3:nth-of-type(5n+2) + p + p,
body.single-post .wcl-content > h3:nth-of-type(5n+2) + ul,
body.single-post .wcl-content > h3:nth-of-type(5n+2) + ol,

body.single-post .wcl-content > h3:nth-of-type(5n+4),
body.single-post .wcl-content > h3:nth-of-type(5n+4) + p,
body.single-post .wcl-content > h3:nth-of-type(5n+4) + p + p,
body.single-post .wcl-content > h3:nth-of-type(5n+4) + ul,
body.single-post .wcl-content > h3:nth-of-type(5n+4) + ol,

body.single-post .wcl-content > h3:nth-of-type(5n+5),
body.single-post .wcl-content > h3:nth-of-type(5n+5) + p,
body.single-post .wcl-content > h3:nth-of-type(5n+5) + p + p,
body.single-post .wcl-content > h3:nth-of-type(5n+5) + ul,
body.single-post .wcl-content > h3:nth-of-type(5n+5) + ol {
    background: transparent !important;
    background-color: transparent !important;
    border-left: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

/* 5n+3 = каждый 3-й H3 (через 5) — единственный кто СОХРАНЯЕТ цвет, но в 3× более бледный */
body.single-post .wcl-content > h3:nth-of-type(5n+3),
body.single-post .wcl-content > h3:nth-of-type(5n+3) + p,
body.single-post .wcl-content > h3:nth-of-type(5n+3) + p + p,
body.single-post .wcl-content > h3:nth-of-type(5n+3) + ul,
body.single-post .wcl-content > h3:nth-of-type(5n+3) + ol {
    background: #F7FAFB !important;            /* 3× менее насыщенный чем #ecfdf5 */
    background-color: #F7FAFB !important;
    border-left: 2px solid #cbd5e1 !important; /* приглушённый серый вместо ярких brand colors */
}

/* === H2 underline (mu-plugin рисует 4-цикл цветов) — все одинаковые серые === */
body.single-post .wcl-content > h2:nth-of-type(4n+1)::after,
body.single-post .wcl-content > h2:nth-of-type(4n+2)::after,
body.single-post .wcl-content > h2:nth-of-type(4n+3)::after,
body.single-post .wcl-content > h2:nth-of-type(4n+4)::after,
body.single-post .wcl-content > h2[data-num]::after {
    background: #cbd5e1 !important;
}

/* === Cards (div with --wcl-bg-card) — выключить 5n+ цикл === */
body.single-post .wcl-content > div[style*="--wcl-bg-card"]:nth-of-type(5n+1),
body.single-post .wcl-content > div[style*="--wcl-bg-card"]:nth-of-type(5n+2),
body.single-post .wcl-content > div[style*="--wcl-bg-card"]:nth-of-type(5n+3),
body.single-post .wcl-content > div[style*="--wcl-bg-card"]:nth-of-type(5n+4),
body.single-post .wcl-content > div[style*="--wcl-bg-card"]:nth-of-type(5n+5) {
    background: #F7FAFB !important;
    border-left-color: #cbd5e1 !important;
}

/* === Blockquote subtle === */
body.single-post .wcl-content blockquote {
    border-left: 3px solid #f97316;
    background: transparent !important;
    padding: 4px 0 4px 22px !important;
    margin: 24px 0 !important;
    font-style: italic;
    color: #475569;
    font-size: 18px;
    line-height: 1.65;
}

/* === Inline code / metric pill === */
body.single-post .wcl-content code:not([class*="block"]) {
    background: #f1f5f9;
    color: #c2410c;
    padding: 1px 7px;
    border-radius: 3px;
    font-size: 0.92em;
    font-family: 'JetBrains Mono', monospace;
}

/* === FAQ accordion — приглушить === */
body.single-post .wcl-content .wcl-faq summary,
body.single-post .wcl-content details summary {
    font-weight: 600;
    padding: 12px 16px !important;
    background: #f8fafc !important;
    border-left: 2px solid #cbd5e1 !important;
}
