/* ================================================================
   МАЗМҰН ЭЛЕМЕНТТЕРІ — бірыңғай көрініс (2026-10-19)
   ----------------------------------------------------------------
   Редактордан келетін мазмұн (the_content) қай шаблонда шықса да бірдей көрінеді:
     жаңалық (single.php → .art-content), әдепкі бет (page.php → .container_content),
     «Шаблон страницы» (.shbl-body), ТДМ-17 кіріспесі, БББ, курс, жоба беттері, блок редакторы.
   Бұрын бір элемент үш контейнерде үш түрлі еді (мәтін 15.5/16/18px, H2 24/26/32px,
   сілтеме мәтіннен ажыратылмайтын, кестенің тақырып жолы жоқ, видео 1200×281 сығылған).

   Элементтер (ретімен): 1 мәтін · 2 тақырыптар · 3 тізімдер · 4 кесте · 5 сурет, галерея ·
   6 инфографика · 7 карточкалар · 8 аккордеон · 9 қадамдар · 10 ескерту · 11 дәйексөз ·
   12 батырма · 13 мәтіндік сілтеме · 14 файл · 15 бейне · 16 диаграмма · 17 жаңалық форматы.

   Редакторда: блок «Стильдер» панелі (inc/content-elements.php → register_block_style) және
   «WKAU элементтері» үлгілері. Кесте/инфографика JS-і: assets/js/content-elements.js.
   Тізім маркерлері — new-style.css соңында (2026-10-16), мұнда тек өлшемі мен түсі.
   Файл карточкалары мен аккордеондар бұрыннан біркелкі — new-style.css (өзгермеген).
   Сақтық көшірме: _backups/2026-10-19-content-elements/
   ================================================================ */

:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) {
    --ce-text: #1f2937;
    --ce-muted: #64748b;
    --ce-navy: #0a1628;
    --ce-blue: #0052a5;
    --ce-blue-dark: #003d7a;
    --ce-blue-soft: #eef5ff;
    --ce-line: #e2e8f0;
    --ce-soft: #f8fafc;
    --ce-gold: #e0a526;
    --ce-gold-soft: #fff8e6;
    --ce-red: #c53030;
    --ce-red-soft: #fff2f2;
    --ce-green: #15803d;
    --ce-green-soft: #effaf3;
    --ce-radius: 12px;
}

/* ---------- 1. Қарапайым мәтін ----------
   16px / 1.75, бір түс. Жаңалық мәтіні екі жақтан (2026-10-08, new-style.css), беттер — төменде (2026-10-19). */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--ce-text);
    margin: 0 0 1em;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(strong, b) { font-weight: 700; }
/* Беттер де жаңалық сияқты екі жағынан тураланады, соңғы жолы — солға (иесінің шешімі 2026-10-19).
   Телефонда (<768px) — солға: браузер қазақ сөздерін тасымалдамайды, тар бағанда сөз арасы тым алшақтайды.
   Тек редактор мәтіні: контейнердің тікелей абзацы/тізімі, бағанның немесе топтың ішіндегісі.
   Тимейді: редактор ортаға/оңға қойғаны (класы, style, align — өзінде не ата-тегінде), кесте, жазу,
   карточкалар, ескертулер (өздерінде left !important), шаблонның дизайн блоктары (класы бар div ішінде). */
@media (min-width: 768px) {
    :is(.container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) > p:not([class*="has-text-align-"], [style*="text-align"], [align]):not(:is([class*="has-text-align-"], [style*="text-align"], [align], center, .is-style-wkau-cards, .is-style-wkau-steps, table, figcaption) *),
    :is(.container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) > :is(ul, ol) li:not([class*="has-text-align-"], [style*="text-align"], [align]):not(:is([class*="has-text-align-"], [style*="text-align"], [align], center, .is-style-wkau-cards, .is-style-wkau-steps, table, figcaption) *),
    :is(.container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(.wp-block-column, .wp-block-group, .wp-block-group__inner-container, .wp-block-media-text__content) > p:not([class*="has-text-align-"], [style*="text-align"], [align]):not(:is([class*="has-text-align-"], [style*="text-align"], [align], center, .is-style-wkau-cards, .is-style-wkau-steps, table, figcaption) *),
    :is(.container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(.wp-block-column, .wp-block-group, .wp-block-group__inner-container, .wp-block-media-text__content) > :is(ul, ol) li:not([class*="has-text-align-"], [style*="text-align"], [align]):not(:is([class*="has-text-align-"], [style*="text-align"], [align], center, .is-style-wkau-cards, .is-style-wkau-steps, table, figcaption) *) {
        text-align: justify;
        text-align-last: left;
        hyphens: auto;
    }
}
/* Телефонда — солға: ескі шаблон контейнерлері (.institute__text, .tdm-intro__body) justify-ды өздері береді,
   абзац оны мұра етпесін (2026-10-28, «Құпиялылық саясаты» беті) */
@media (max-width: 767.98px) {
    :is(.container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) > p:not([class*="has-text-align-"], [style*="text-align"], [align]):not(:is([class*="has-text-align-"], [style*="text-align"], [align], center, .is-style-wkau-cards, .is-style-wkau-steps, table, figcaption) *),
    :is(.container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) > :is(ul, ol) li:not([class*="has-text-align-"], [style*="text-align"], [align]):not(:is([class*="has-text-align-"], [style*="text-align"], [align], center, .is-style-wkau-cards, .is-style-wkau-steps, table, figcaption) *),
    :is(.container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(.wp-block-column, .wp-block-group, .wp-block-group__inner-container, .wp-block-media-text__content) > p:not([class*="has-text-align-"], [style*="text-align"], [align]):not(:is([class*="has-text-align-"], [style*="text-align"], [align], center, .is-style-wkau-cards, .is-style-wkau-steps, table, figcaption) *),
    :is(.container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(.wp-block-column, .wp-block-group, .wp-block-group__inner-container, .wp-block-media-text__content) > :is(ul, ol) li:not([class*="has-text-align-"], [style*="text-align"], [align]):not(:is([class*="has-text-align-"], [style*="text-align"], [align], center, .is-style-wkau-cards, .is-style-wkau-steps, table, figcaption) *) {
        text-align: left;
    }
}
/* Абзац пен тізім жолының белгілері (ескерту «i»/«!», нөмірленген тізім саны) `text-align-last: left`-ті
   мұра етпесін — әйтпесе бір жолдық белгі шеңбердің ортасынан солға ығысады (2026-10-21) */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(p, li)::before,
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(p, li)::after {
    text-align-last: auto;
}
/* Word-тан көшірілген қаріп/өлшем (font-family 9 бетте, font-size 260 жазбада) — сайттың қарпіне қайтады; түс сақталады */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(p, li, td, th, span, font, div, strong, b, em, a)[style*="font-family"] { font-family: inherit !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(span, font, strong, b, em, a)[style*="font-size"],
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) font[size] { font-size: inherit !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(p, li)[style*="font-size"] { font-size: 16px !important; }

/* ---------- 2. Тақырыптар ----------
   H2 24px, H3 20px, H4 17px — бәрі қою көк-қара. Класы бар (дизайн) тақырыптарға тимейді.
   Мәтін ішіндегі H1 (165 жазба) inc/content-elements.php-де H2-ге айналады. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(h1, h2, h3, h4, h5, h6):is(:not([class]), .wp-block-heading, [class^="has-text-align"]) {
    font-family: inherit;
    font-weight: 700;
    color: var(--ce-navy);
    letter-spacing: 0;
    text-transform: none;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(h1, h2):is(:not([class]), .wp-block-heading, [class^="has-text-align"]) {
    font-size: 24px !important;
    line-height: 1.3 !important;
    margin: 1.6em 0 .6em !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) h3:is(:not([class]), .wp-block-heading, [class^="has-text-align"]) {
    font-size: 20px !important;
    line-height: 1.35 !important;
    margin: 1.4em 0 .5em !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(h4, h5, h6):is(:not([class]), .wp-block-heading, [class^="has-text-align"]) {
    font-size: 17px !important;
    line-height: 1.4 !important;
    margin: 1.3em 0 .45em !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) > :is(h1, h2, h3, h4, h5, h6):first-child { margin-top: 0 !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(h1, h2, h3, h4, h5, h6) :is(span, strong, b, font) { font-size: inherit !important; font-weight: inherit; }
@media (max-width: 767px) {
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(h1, h2):is(:not([class]), .wp-block-heading, [class^="has-text-align"]) { font-size: 21px !important; }
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) h3:is(:not([class]), .wp-block-heading, [class^="has-text-align"]) { font-size: 18px !important; }
}

/* ---------- 3. Маркерленген және нөмірленген тізімдер ----------
   Маркерлер — new-style.css соңындағы «Мәтін ішіндегі тізімдер» блогы. Мұнда тек мәтін өлшемі мәтінмен бірдей. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(ul, ol):is(:not([class]), .wp-block-list) {
    margin: 0 0 1.1em;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(ul, ol):is(:not([class]), .wp-block-list) > li {
    font-size: 16px;
    line-height: 1.7;
    color: var(--ce-text);
    margin: 0 0 .45em;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) li > p { margin-bottom: .3em; }

/* ---------- 4. Кесте ----------
   Сыртқы қабық (figure.wp-block-table немесе JS қосатын .wkau-table-scroll) — жиегі мен дөңгелек бұрышы,
   тар экранда көлденең айналады. Тақырып жолы: <thead>/<th> немесе JS танитын бірінші жол (.wkau-thead):
   «№» деп басталса не барлық ұяшығы қалың болса. Жолдар кезектесіп боялады. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) {
    margin: 1.5em 0 !important;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border: 1px solid var(--ce-line) !important;
    border-radius: var(--ce-radius);
    background: #fff;
    box-shadow: 0 1px 3px rgba(10, 22, 40, .04);
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) > table {
    width: 100% !important;
    max-width: none;
    margin: 0 !important;
    border: 0 !important;
    border-collapse: collapse !important;
    background: transparent !important;
    font-size: 15px;
    line-height: 1.55;
    color: var(--ce-text);
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) > table :is(td, th) {
    padding: 10px 14px !important;
    border: 0 !important;
    border-bottom: 1px solid var(--ce-line) !important;
    border-right: 1px solid var(--ce-line) !important;
    vertical-align: top;
    background-color: transparent;
    font-size: inherit;
    line-height: inherit;
    color: inherit;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) > table tr > :last-child { border-right: 0 !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) > table > :last-child > tr:last-child > * { border-bottom: 0 !important; }
/* кезектесетін жолдар (WP «Stripes» стилі де осыған келеді) */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) > table > tbody > tr:not(.wkau-thead):nth-child(even) > td { background-color: var(--ce-soft) !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) figure.wp-block-table.is-style-stripes > table > tbody > tr:nth-child(odd) > td { background-color: transparent !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) figure.wp-block-table.is-style-stripes { border-bottom: 1px solid var(--ce-line) !important; }
@media (hover: hover) {
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content) :is(figure.wp-block-table, .wkau-table-scroll) > table > tbody > tr:not(.wkau-thead):hover > td { background-color: #f1f6fd !important; }
}
/* тақырып жолы (WP-нің thead астындағы 3px қара сызығы алынады) */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) > table > :is(thead, tfoot) { border: 0 !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) > table :is(thead :is(th, td), tbody th, tr.wkau-thead > *) {
    background-color: var(--ce-blue-soft) !important;
    color: var(--ce-navy) !important;
    font-weight: 700;
    text-align: left;
    vertical-align: bottom;
    border-bottom: 2px solid #c9dbf2 !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) > table tbody th[scope="row"],
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) > table tbody tr:not(.wkau-thead) > th:first-child:not(:only-child) {
    vertical-align: top;
    border-bottom: 1px solid var(--ce-line) !important;
}
/* ұяшық ішіндегі абзац, тізім, сурет */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) :is(td, th) p {
    font-size: inherit !important;
    line-height: inherit !important;
    margin: 0 0 .4em !important;
    text-align: inherit;
    text-indent: 0 !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) :is(td, th) > :last-child { margin-bottom: 0 !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) :is(td, th) li { font-size: inherit; line-height: inherit; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(figure.wp-block-table, .wkau-table-scroll) :is(td, th) img { border-radius: 6px; }
/* кесте астындағы жазу */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) figure.wp-block-table > figcaption {
    margin: 0 !important;
    padding: 8px 14px;
    border-top: 1px solid var(--ce-line);
    font-size: 13.5px;
    color: var(--ce-muted);
    text-align: left;
}
@media (max-width: 767px) {
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content) :is(figure.wp-block-table, .wkau-table-scroll) > table { font-size: 14px; }
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content) :is(figure.wp-block-table, .wkau-table-scroll) > table :is(td, th) { padding: 8px 10px !important; }
    /* 4+ бағанды кесте сығылып, сөз ортасынан бөлінбесін — көлденең айналады */
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content) :is(figure.wp-block-table, .wkau-table-scroll) > table:has(tr > :nth-child(4)) { min-width: 640px; }
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content) :is(figure.wp-block-table, .wkau-table-scroll):has(> table tr > :nth-child(4)) {
        box-shadow: inset -14px 0 12px -12px rgba(10, 22, 40, .2);
    }
}

/* ---------- 5. Сурет және галерея ----------
   Бір бұрыш радиусы (8px), сурет астындағы жазу бірдей. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.wp-block-image, .wp-block-gallery, p, figure) img:not([class*="emoji"]):not([width="1"]) {
    border-radius: 8px;
    max-width: 100%;
    height: auto;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-gallery img { height: 100%; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-image { margin: 1.5em 0; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.wp-block-image, figure:not(.wp-block-gallery):not(.wp-block-table):not(.wp-block-embed)) > figcaption,
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-gallery > figcaption,
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-caption-text {
    margin: 8px 0 0;
    font-size: 13.5px;
    line-height: 1.5;
    font-style: normal;
    color: var(--ce-muted);
    text-align: center;
}

/* ---------- 6. Инфографика (Сурет блогы → Стиль «Инфографика») ----------
   Толық ені, кесілмейді, ақшыл фонда; басқанда үлкейеді (JS). Жазуы — дереккөз. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-image.is-style-wkau-infographic {
    margin: 1.75em 0;
    padding: 16px;
    background: var(--ce-soft);
    border: 1px solid var(--ce-line);
    border-radius: 16px;
    text-align: center;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-image.is-style-wkau-infographic img {
    display: block;
    width: 100%;
    max-width: min(100%, 900px) !important; /* тік (портрет) инфографика 1200px енде экраннан әлдеқайда биік болатын */
    height: auto !important;
    object-fit: contain;
    margin: 0 auto;
    border-radius: 8px;
    background: #fff;
    cursor: zoom-in;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-image.is-style-wkau-infographic figcaption {
    margin: 12px 2px 0 !important;
    text-align: left !important;
    font-size: 13px !important;
}

/* ---------- 7. Карточкалар (Бағандар блогы → Стиль «Карточкалар») ----------
   Әр баған — ақ карточка; бірінші сурет карточканың үстіңгі жағын толық алады. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-columns.is-style-wkau-cards {
    gap: 20px !important;
    margin: 1.75em 0;
    align-items: stretch !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-columns.is-style-wkau-cards > .wp-block-column {
    display: flex;
    flex-direction: column;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--ce-line);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(10, 22, 40, .05);
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
@media (hover: hover) {
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-columns.is-style-wkau-cards > .wp-block-column:hover {
        box-shadow: 0 8px 24px rgba(0, 82, 165, .12);
        transform: translateY(-2px);
    }
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-columns.is-style-wkau-cards > .wp-block-column > .wp-block-image:first-child {
    margin: -22px -22px 18px !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-columns.is-style-wkau-cards > .wp-block-column > .wp-block-image:first-child img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 0;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-columns.is-style-wkau-cards > .wp-block-column :is(h2, h3, h4) {
    font-size: 18px !important;
    line-height: 1.35 !important;
    margin: 0 0 .5em !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-columns.is-style-wkau-cards > .wp-block-column p {
    font-size: 15px;
    line-height: 1.65;
    text-align: left;
}
/* карточканың соңғы батырмасы — төменгі шетке */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-columns.is-style-wkau-cards > .wp-block-column > .wp-block-buttons:last-child { margin: auto 0 0 !important; padding-top: 8px; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-columns.is-style-wkau-cards > .wp-block-column > :last-child { margin-bottom: 0; }

/* ---------- 8. Аккордеон ----------
   «WP Accordion» блоктары (wpab) бұрыннан біркелкі (new-style.css). Мұнда — WordPress-тің «Details»
   блогы (<details>) соларға ұқсас: ақ жолақ, қалың тақырып, оң жақта «+». */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) details:is(.wp-block-details, :not([class])) {
    margin: 0 0 10px;
    background: #fff;
    border: 1px solid var(--ce-line);
    border-radius: 10px;
    overflow: hidden;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) details:is(.wp-block-details, :not([class])) > summary {
    position: relative;
    display: block;
    padding: 16px 56px 16px 20px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.45;
    color: #1a2c3d;
    cursor: pointer;
    list-style: none;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) details:is(.wp-block-details, :not([class])) > summary::-webkit-details-marker { display: none; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) details:is(.wp-block-details, :not([class])) > summary::after {
    content: "+";
    position: absolute;
    right: 16px;
    top: 50%;
    width: 28px;
    height: 28px;
    margin-top: -14px;
    border-radius: 50%;
    background: var(--ce-blue-soft);
    border: 1px solid #c9dbf2;
    color: var(--ce-blue);
    font: 600 18px/26px system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    text-align: center;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) details[open]:is(.wp-block-details, :not([class])) > summary::after { content: "−"; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) details[open]:is(.wp-block-details, :not([class])) > summary { border-bottom: 1px solid var(--ce-line); }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) details:is(.wp-block-details, :not([class])) > :not(summary) { margin-left: 20px; margin-right: 20px; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) details:is(.wp-block-details, :not([class])) > summary + * { margin-top: 16px; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) details:is(.wp-block-details, :not([class])) > :last-child:not(summary) { margin-bottom: 18px; }

/* ---------- 9. Қадамдық блок (Тізім блогы → Стиль «Қадамдар», нөмірлі де, нөмірсіз де) ----------
   Үлкен нөмір дөңгелегі, қадамдарды байланыстыратын сызық. Тармақтың басындағы қалың сөз — қадам атауы.
   Жалпы тізім маркерлерін (new-style.css) басып озу үшін класс үш рет жазылған. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(ol, ul).is-style-wkau-steps.is-style-wkau-steps.is-style-wkau-steps {
    counter-reset: wkau-step !important;
    list-style: none !important;
    margin: 1.75em 0 !important;
    padding: 0 !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(ol, ul).is-style-wkau-steps.is-style-wkau-steps.is-style-wkau-steps > li {
    counter-increment: wkau-step !important;
    position: relative !important;
    display: block !important;
    min-height: 40px;
    margin: 0 !important;
    padding: 6px 0 22px 58px !important;
    list-style: none !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(ol, ul).is-style-wkau-steps.is-style-wkau-steps.is-style-wkau-steps > li:last-child { padding-bottom: 0 !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(ol, ul).is-style-wkau-steps.is-style-wkau-steps.is-style-wkau-steps > li::before {
    content: counter(wkau-step) !important;
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 40px !important;
    min-width: 40px !important;
    height: 40px !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #0052a5 0%, #0069a6 100%) !important;
    box-shadow: 0 0 0 4px #fff, 0 2px 8px rgba(0, 82, 165, .25) !important;
    color: #fff !important;
    font: 700 16px/40px system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
    text-align: center !important;
    transform: none !important;
    z-index: 1;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(ol, ul).is-style-wkau-steps.is-style-wkau-steps.is-style-wkau-steps > li:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 19px;
    top: 44px;
    bottom: 0;
    width: 2px;
    background: #c9dbf2;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(ol, ul).is-style-wkau-steps.is-style-wkau-steps.is-style-wkau-steps > li > strong:first-child {
    display: block;
    margin-bottom: 2px;
    font-size: 17px;
    color: var(--ce-navy);
}

/* ---------- 10. Ескерту блогы (Топ немесе Абзац → Стиль «Ақпарат» / «Маңызды» / «Назар аударыңыз») ---------- */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.is-style-wkau-note, .is-style-wkau-warning, .is-style-wkau-danger) {
    position: relative;
    margin: 1.5em 0 !important;
    padding: 16px 20px 16px 56px !important;
    border: 1px solid;
    border-left-width: 4px;
    border-radius: 0 var(--ce-radius) var(--ce-radius) 0;
    text-align: left !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.is-style-wkau-note, .is-style-wkau-warning, .is-style-wkau-danger)::before {
    content: "i";
    position: absolute;
    left: 18px;
    top: 17px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    color: #fff;
    font: italic 700 15px/24px Georgia, "Times New Roman", serif;
    text-align: center;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-note { background: var(--ce-blue-soft); border-color: #c9dbf2; border-left-color: var(--ce-blue); }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-note::before { background: var(--ce-blue); }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-warning { background: var(--ce-gold-soft); border-color: #f3dca6; border-left-color: var(--ce-gold); }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-warning::before { content: "!"; font-style: normal; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: linear-gradient(135deg, #f5c46b 0%, #e0a526 100%); color: #0a1628; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-danger { background: var(--ce-red-soft); border-color: #f5c6c6; border-left-color: var(--ce-red); }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-danger::before { content: "!"; font-style: normal; font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--ce-red); }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.is-style-wkau-note, .is-style-wkau-warning, .is-style-wkau-danger) :is(p, li) { font-size: 15.5px; text-align: left !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.is-style-wkau-note, .is-style-wkau-warning, .is-style-wkau-danger) :is(h2, h3, h4) { font-size: 17px !important; margin: 0 0 .35em !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.is-style-wkau-note, .is-style-wkau-warning, .is-style-wkau-danger) > :last-child,
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.is-style-wkau-note, .is-style-wkau-warning, .is-style-wkau-danger) > .wp-block-group__inner-container > :last-child { margin-bottom: 0 !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) p:is(.is-style-wkau-note, .is-style-wkau-warning, .is-style-wkau-danger) { font-size: 15.5px; }

/* ---------- 11. Дәйексөз ----------
   Ақшыл фон, сол жақта алтын сызық, курсивсіз. Авторы (<cite>) — кіші сұр жазу. Бұрынғы үлкен «”» белгісі жоқ. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) blockquote {
    position: relative;
    margin: 1.5em 0 !important;
    padding: 18px 24px !important;
    background: var(--ce-soft) !important;
    border: 0 !important;
    border-left: 4px solid var(--ce-gold) !important;
    border-radius: 0 var(--ce-radius) var(--ce-radius) 0 !important;
    box-shadow: none !important;
    font-size: 17px;
    font-style: normal !important;
    line-height: 1.7;
    color: #1e293b;
    quotes: none;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) blockquote::before,
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) blockquote::after { content: none !important; display: none !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) blockquote p {
    font-size: inherit !important;
    line-height: inherit;
    color: inherit;
    font-style: normal !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) blockquote > :last-child { margin-bottom: 0 !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) blockquote :is(cite, footer) {
    display: block;
    margin-top: 10px;
    font-size: 13.5px;
    font-style: normal;
    font-weight: 600;
    color: var(--ce-muted);
    text-align: left;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) blockquote :is(cite, footer)::before { content: "— "; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) blockquote.is-style-large { font-size: 20px; padding: 22px 28px !important; }

/* ---------- 12. Батырма ----------
   Түсі мен әсерлері — new-style.css «кнопки» блогы (көк градиент, «Обводка», алтын «Акцент»).
   Мұнда пішіні бірдей: редактор қолмен қойған бұрыш (2px т.б.) мен өлшем ескерілмейді. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-buttons { gap: 12px; margin: 1.5em 0; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-button__link {
    border-radius: 999px !important;
    padding: 12px 28px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-decoration: none !important;
}

/* ---------- 13. Мәтіндік сілтеме ----------
   Көк, жұқа асты сызылған — мәтіннен бірден ажыратылады (бұрын жаңалық пен ескі беттерде мәтін түсімен бірдей еді).
   Құжатқа сілтеме болса — жанында түрі (PDF / DOC / XLS / ZIP). */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption, cite, h2, h3, h4, h5, h6) a:not([class]):not(:has(img)),
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption, cite, h2, h3, h4, h5, h6) a:not([class]):not(:has(img)) :is(span, strong, b, font, u) {
    color: var(--ce-blue) !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption, cite, h2, h3, h4, h5, h6) a:not([class]):not(:has(img)) {
    text-decoration: underline !important;
    text-decoration-thickness: 1px !important;
    text-decoration-color: rgba(0, 82, 165, .35) !important;
    text-underline-offset: 3px;
    overflow-wrap: anywhere;
    transition: color .15s, text-decoration-color .15s;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption, cite, h2, h3, h4, h5, h6) a:not([class]):not(:has(img)):hover,
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption, cite, h2, h3, h4, h5, h6) a:not([class]):not(:has(img)):hover :is(span, strong, b, font, u) {
    color: var(--ce-blue-dark) !important;
    text-decoration-color: currentColor !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption, cite, h2, h3, h4, h5, h6) a:not([class]):not(:has(img)):focus-visible {
    outline: 2px solid var(--ce-blue);
    outline-offset: 2px;
    border-radius: 2px;
}
/* құжат түрі белгісі */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption) a:not([class]):not(:has(img)):is([href*=".pdf" i], [href*=".doc" i], [href*=".xls" i], [href*=".ppt" i], [href*=".zip" i], [href*=".rar" i])::after {
    display: inline-block;
    margin-left: 6px;
    padding: 2px 5px;
    border-radius: 4px;
    font: 700 10px/1.3 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    letter-spacing: .03em;
    vertical-align: 2px;
    text-decoration: none;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption) a:not([class]):not(:has(img))[href*=".pdf" i]::after { content: "PDF"; background: #fdecec; color: #b42318; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption) a:not([class]):not(:has(img))[href*=".doc" i]::after { content: "DOC"; background: #e8f0fd; color: #1d4ed8; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption) a:not([class]):not(:has(img))[href*=".xls" i]::after { content: "XLS"; background: #e7f6ec; color: #15803d; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption) a:not([class]):not(:has(img))[href*=".ppt" i]::after { content: "PPT"; background: #fff1e6; color: #c2410c; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(p, li, td, th, dd, dt, blockquote, figcaption) a:not([class]):not(:has(img)):is([href*=".zip" i], [href*=".rar" i])::after { content: "ZIP"; background: #eef2f6; color: #475569; }

/* ---------- 14. Файл жүктеу блогы ----------
   «Файл» блогы карточкасы бұрыннан бірыңғай (new-style.css, «wp-block-file … глобально»). Өзгермейді. */

/* ---------- 15. Бейне ----------
   YouTube / Vimeo / Rutube / VK — әрқашан 16:9, контейнер еніне (ең көбі 900px), ортада.
   Бұрын ескі embed блоктары 1200×281 болып сығылатын. Карта, форма т.б. iframe-дерге тимейді. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) .wp-block-embed:is(.is-type-video, .is-provider-youtube, .is-provider-vimeo, .wp-block-embed-youtube, .wp-block-embed-vimeo) {
    max-width: 900px;
    margin: 1.75em auto !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) .wp-block-embed:is(.is-type-video, .is-provider-youtube, .is-provider-vimeo, .wp-block-embed-youtube, .wp-block-embed-vimeo) .wp-block-embed__wrapper::before { display: none !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(iframe[src*="youtube.com"], iframe[src*="youtube-nocookie.com"], iframe[src*="youtu.be"], iframe[src*="vimeo.com"], iframe[src*="rutube.ru"], iframe[src*="vk.com/video"], iframe[src*="vkvideo.ru"], video) {
    position: static !important;
    display: block;
    width: 100% !important;
    max-width: 900px;
    height: auto !important;
    aspect-ratio: 16 / 9;
    margin: 1.75em auto;
    border: 0;
    border-radius: var(--ce-radius);
    background: #0a1628;
    box-shadow: 0 6px 20px rgba(10, 22, 40, .12);
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) .wp-block-embed__wrapper > iframe { margin: 0 auto !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) .wp-block-video video { margin: 0 auto; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .editor-styles-wrapper) :is(.wp-block-embed, .wp-block-video) figcaption {
    margin: 10px 0 0;
    font-size: 13.5px;
    color: var(--ce-muted);
    text-align: center;
}

/* ---------- 16. Диаграмма немесе график (Сурет немесе Топ блогы → Стиль «Диаграмма») ----------
   Ақ жиекті карточка; асты — дереккөз, жұқа сызықпен бөлінген. Сурет болса — басқанда үлкейеді (JS). */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-chart {
    margin: 1.75em 0 !important;
    padding: 20px 20px 14px !important;
    background: #fff;
    border: 1px solid var(--ce-line);
    border-radius: 14px;
    box-shadow: 0 2px 10px rgba(10, 22, 40, .05);
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-chart :is(h2, h3, h4):first-child { font-size: 17px !important; margin: 0 0 14px !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-chart img {
    display: block;
    width: 100%;
    height: auto !important;
    border-radius: 4px !important;
    cursor: zoom-in;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-chart iframe { display: block; width: 100% !important; border: 0; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-chart :is(figcaption, .wp-element-caption),
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-chart > :last-child:is(p):not(:first-child),
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .is-style-wkau-chart > .wp-block-group__inner-container > :last-child:is(p):not(:first-child) {
    margin: 14px 0 0 !important;
    padding-top: 10px;
    border-top: 1px solid var(--ce-line);
    font-size: 13px !important;
    color: var(--ce-muted);
    text-align: left !important;
}

/* ---------- 17. Жаңалық форматы (single.php) ----------
   Кіріспе абзацы (бірінші абзац) — сәл үлкен әрі қою: оқырман негізгі ойды бірден көреді.
   Қолмен қойылған &nbsp; шегіністері (198 жазба мен бет, әрқайсысында ұзындығы әртүрлі)
   inc/content-elements.php-де алынады — абзацтар бір сызықтан басталады. */
.art-content > p:first-child {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--ce-navy);
}
@media (max-width: 767px) {
    .art-content > p:first-child { font-size: 16.5px; }
}

/* ---------- 15б. Ендірілген элементтер контейнерден шықпайды (2026-10-20) ----------
   Редактор қойған қатаң ен (мыс. Яндекс Форма <iframe width="650">) телефонда экраннан шығып, қиылатын. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(iframe, video, embed, object):not([width="0"]):not([hidden]) {
    max-width: 100% !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) video { height: auto; }

/* ---------- 15в. Instagram ендірмелері — бірдей ықшам карточка (2026-10-22) ----------
   15б ережесі Instagram-ның өз max-width:540px шегін алып тастап, бос бағанның жанындағы видео 1200×1706 px болып созылатын.
   Енді әр ендірме 326px (Instagram-ның ең аз ені) × 464px: жоғарғы жолақ + 4:5 видео/сурет, астындағы лайк/пікір бөлігі қиылады.
   Пост (жалпақ сурет) қысқарақ болса — карточканың астында ақ орын қалады. Бағандар ортаға, бір қатарға тізіледі.
   2026-10-23: сайттың кез келген жерінде (inc/instagram.php — сілтеме, «Instagram видеолары» блогы, [insta_post]). */
:is(iframe, blockquote).instagram-media.instagram-media {
    width: 326px !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 464px !important;
    min-height: 0 !important;
    margin: 0 auto 24px !important;
    padding: 0 !important;
    background: #fff !important;
    border: 1px solid var(--ce-line) !important;
    border-radius: 12px !important;
    box-shadow: 0 1px 2px rgba(10, 22, 40, .04) !important;
    overflow: hidden;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-columns:has(.instagram-media) {
    flex-wrap: wrap !important;
    justify-content: center;
    gap: 0 24px !important;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-columns > .wp-block-column:has(.instagram-media) {
    flex: 0 1 326px !important;
    min-width: 0;
}
/* Тор: карточкалар бір қатарда ортада; телефонда бір бағанға (326px) түседі */
.wkau-ig-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 28px 24px;
    margin: 28px 0 32px;
    clear: both;
}
/* 4 видео — 3+1 емес, 2+2 */
.wkau-ig-grid:has(> :nth-child(4):last-child) { max-width: calc(326px * 2 + 24px); margin-left: auto; margin-right: auto; }
/* WKAU-IG-CARD */
/* Жеңіл карточка (inc/instagram.php): мұқаба 4:5 + Instagram белгісі + ойнату + «Instagram-да көру»; басқанда Instagram ашылады */
.wkau-ig-grid > figure.wkau-ig {
    float: none !important;
    display: flex;
    flex-direction: column;
    flex: 0 1 326px;
    width: 326px;
    max-width: 100% !important;
    height: auto;
    margin: 0 !important;
    border-radius: 0;
}
.wkau-ig__link {
    position: relative;
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: 12px;
    background: #0a1628;
    color: #fff !important;
    text-decoration: none !important;
    box-shadow: 0 1px 2px rgba(10, 22, 40, .06), 0 4px 14px rgba(10, 22, 40, .08);
    transition: box-shadow .2s, transform .2s;
}
.wkau-ig__link::after { content: none !important; }
.wkau-ig__link:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(10, 22, 40, .18); }
.wkau-ig__link:focus-visible { outline: 3px solid #e0a526; outline-offset: 3px; }
.wkau-ig__cover { position: absolute; inset: 0; display: block; }
.wkau-ig__cover img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    border-radius: 0 !important;
    object-fit: cover;
    transition: transform .4s;
}
.wkau-ig__link:hover .wkau-ig__cover img { transform: scale(1.03); }
/* Жоғарғы және төменгі күңгірттену — белгілер оқылсын */
.wkau-ig__cover::before,
.wkau-ig__cover::after { content: ""; position: absolute; left: 0; right: 0; z-index: 1; pointer-events: none; }
.wkau-ig__cover::before { top: 0; height: 30%; background: linear-gradient(rgba(0, 0, 0, .45), transparent); }
.wkau-ig__cover::after { bottom: 0; height: 34%; background: linear-gradient(transparent, rgba(0, 0, 0, .6)); }
/* Мұқаба алынбаса — Instagram түстерімен фон */
.wkau-ig__cover--none { display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #feda75 0%, #fa7e1e 25%, #d62976 50%, #962fbf 75%, #4f5bd5 100%); }
.wkau-ig__cover--none > svg { width: 64px; height: 64px; fill: rgba(255, 255, 255, .9); }
.wkau-ig__badge {
    position: absolute; top: 12px; left: 12px; z-index: 2;
    display: inline-flex; align-items: center; gap: 6px;
    font: 600 13px/1 system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff;
}
.wkau-ig__badge svg { width: 18px; height: 18px; fill: #fff; }
/* Видео (reels) — тек шағын белгі: үлкен ▶ сайтта ойнайтындай әсер беретін, ал басқанда Instagram ашылады (2026-10-23) */
.wkau-ig__kind {
    display: inline-flex; align-items: center; gap: 3px;
    margin-left: 4px; padding: 3px 8px 3px 5px; border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-size: 12px;
}
.wkau-ig__badge .wkau-ig__kind svg { width: 13px; height: 13px; }
.wkau-ig__cta {
    position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2;
    display: flex; align-items: center; justify-content: center; gap: 6px;
    padding: 9px 12px; border-radius: 999px;
    background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, .35);
    font: 600 13.5px/1.2 system-ui, -apple-system, "Segoe UI", sans-serif; color: #fff;
}
.wkau-ig__cta svg { width: 15px; height: 15px; fill: #fff; flex: none; }
.wkau-ig__link:hover .wkau-ig__cta { background: rgba(255, 255, 255, .26); }
/* /WKAU-IG-CARD */
.wkau-ig__cap {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    margin: 12px 2px 0;
    font-size: 14px !important;
    font-style: normal;
    line-height: 1.55;
    color: #4a5568;
    text-align: left !important;
    text-align-last: auto !important;
}
.wkau-ig__cap.is-open { display: block; -webkit-line-clamp: unset; }
.wkau-ig__more {
    align-self: flex-start;
    margin: 2px 0 0;
    padding: 2px;
    border: 0;
    background: none;
    color: #0052A5;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.wkau-ig__more:hover { text-decoration: underline; }

/* Редактордағы «Instagram видеолары» блогы (assets/js/instagram-block.js) */
.wkau-igb { padding: 16px; border: 1px dashed #c7d2e0; border-radius: 12px; background: #f8fafc; }
.wkau-igb__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: #0A1628; }
.wkau-igb__head span { color: #64748b; font-size: 13px; }
.wkau-igb__head svg, .wkau-igb__thumb svg { fill: #d62976; flex: none; }
.wkau-igb__row { display: grid; grid-template-columns: 84px 1fr auto; gap: 12px; align-items: start; padding: 12px; margin-bottom: 10px; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }
.wkau-igb__thumb { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 104px; border-radius: 8px; background: #f1f5f9; color: #94a3b8; font-size: 12px; text-align: center; }
.wkau-igb__thumb.is-ok { background: linear-gradient(135deg, #feda75, #d62976 55%, #4f5bd5); color: #fff; }
.wkau-igb__thumb.is-ok svg { fill: #fff; }
.wkau-igb__thumb { position: relative; overflow: hidden; }
.wkau-igb__thumb.has-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wkau-igb__thumb.has-cover span { position: relative; padding: 1px 6px; border-radius: 6px; background: rgba(0, 0, 0, .55); margin-top: auto; margin-bottom: 6px; }
.wkau-igb__thumb .components-spinner { position: absolute; margin: 0; }
.wkau-igb__cover-tools { display: flex; flex-direction: column; align-items: flex-start; margin-top: 4px; font-size: 12px; }
.wkau-igb__cover-tools .components-button { height: auto; padding: 2px 0; font-size: 12px; }
.wkau-igb__fields { display: grid; gap: 8px; }
.wkau-igb__tools { display: flex; flex-direction: column; }

/* ---------- 18. Адамдар: «Құрам» (Галерея блогы) және «Адам» (Сурет блогы) ----------
   Әр адам — карточка: фото бірдей 4:5, астында аты-жөні (<strong>), лауазымы, телефоны (tel: сілтеме).
   WP галереясы жазуды фото үстіне қара градиентпен салатын — оқылмайтын; бағандағы жалғыз сурет 1:1 үлкен еді.
   «Құрам» — бірнеше адам торы; «Адам» — бағанда мәтіннің жанындағы жалғыз адам (клуб жетекшісі т.б.).
   Қолданылған беттер (2026-10-19): 6931/6942/6946, 6690/6692/6694, 6948/6951/6953, 7051/7063/7068. */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-gallery.is-style-wkau-team {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px !important;
    margin: 1.25em 0 2em;
    align-items: stretch;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.wp-block-gallery.is-style-wkau-team > figure.wp-block-image, .wp-block-image.is-style-wkau-person) {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    width: auto !important;
    background: #fff;
    border: 1px solid var(--ce-line);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(10, 22, 40, .04);
    transition: box-shadow .2s, transform .2s;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-gallery.is-style-wkau-team > figure.wp-block-image { max-width: none !important; margin: 0 !important; }
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) .wp-block-image.is-style-wkau-person {
    max-width: 300px !important;
    margin: 0 auto 1.5em !important;
}
/* Бос баған (суреті әлі қойылмаған, мыс. «Nomad») — орын алмайды, мәтін толық енде */
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-columns > .wp-block-column:empty { display: none; }
/* «Адам» суреті бар баған — карточка енінде, мәтін бағаны қалған орынды алады */
@media (min-width: 782px) {
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-columns > .wp-block-column:has(> .wp-block-image.is-style-wkau-person) {
        flex: 0 0 300px !important;
    }
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-columns:has(> .wp-block-column > .wp-block-image.is-style-wkau-person) { gap: 40px !important; }
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) :is(.wp-block-gallery.is-style-wkau-team > figure.wp-block-image, .wp-block-image.is-style-wkau-person):hover {
    box-shadow: 0 8px 24px rgba(10, 22, 40, .1);
    transform: translateY(-2px);
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.wp-block-gallery.is-style-wkau-team > figure.wp-block-image, .wp-block-image.is-style-wkau-person) img {
    flex: none !important;
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: 50% 15%;
    border-radius: 0 !important;
    background: var(--ce-soft);
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.wp-block-gallery.is-style-wkau-team > figure.wp-block-image, .wp-block-image.is-style-wkau-person) figcaption {
    display: block !important;
    position: static !important;
    flex: 1 0 auto;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 14px 14px 16px !important;
    background: none !important;
    color: var(--ce-muted) !important;
    font-size: 13.5px !important;
    line-height: 1.5 !important;
    text-align: center !important;
    text-shadow: none !important;
    border-top: 3px solid var(--ce-gold);
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.wp-block-gallery.is-style-wkau-team > figure.wp-block-image, .wp-block-image.is-style-wkau-person) figcaption strong {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ce-navy);
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.wp-block-gallery.is-style-wkau-team > figure.wp-block-image, .wp-block-image.is-style-wkau-person) figcaption a[href^="tel:"] {
    display: inline-block;
    margin-top: 4px;
    color: var(--ce-blue) !important;
    font-weight: 600;
    text-decoration: none !important;
    white-space: nowrap;
}
:is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner, .editor-styles-wrapper) :is(.wp-block-gallery.is-style-wkau-team > figure.wp-block-image, .wp-block-image.is-style-wkau-person) figcaption a[href^="tel:"]:hover { text-decoration: underline !important; }
@media (max-width: 575px) {
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-gallery.is-style-wkau-team {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px !important;
    }
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-gallery.is-style-wkau-team > figure.wp-block-image figcaption {
        padding: 10px 8px 12px !important;
        font-size: 12.5px !important;
    }
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-gallery.is-style-wkau-team > figure.wp-block-image figcaption strong { font-size: 13.5px; }
    :is(.art-content, .container_content, .shbl-body, .entry-content, .tdm-intro__body, .edp-content, .info-content, .sc-content__inner) .wp-block-image.is-style-wkau-person { max-width: 260px !important; }
}

/* ---------- 19. Блок редакторы: WordPress-тің әдепкі түрі (840px, ортада) ----------
   Жоғарыдағы `margin: X 0 !important` ережелері (тақырыптар, галерея, кесте, бейне т.б.) редактордың
   `margin: auto` ортаға қоюын басып кететін — блоктар канвастың сол шетіне жабысатын (2026-10-19).
   Тек ортаға қою қайтарылады; ені — WordPress-тікі (иесінің шешімі 2026-10-20, 1200px-тен бас тартылды). */
.editor-styles-wrapper .is-root-container.is-root-container > .wp-block:not([data-align="full"]),
.editor-styles-wrapper .is-root-container.is-root-container :is(.wp-block-group, .wp-block-group__inner-container):not(.is-layout-flex, .is-layout-grid) > .wp-block:not([data-align="full"]) {
    margin-left: auto !important;
    margin-right: auto !important;
}
/* Ені де — WordPress-тікі 840px: жоғарыдағы кейбір ережелер (мыс. кестеге `max-width: 100%`) оны басып,
   блокты канвастың толық еніне созып жіберетін (2026-10-20, кесте сол шетке жабысқан). «Кең»/«толық ен» блоктар бұдан тыс. */
.editor-styles-wrapper .is-root-container.is-root-container > .wp-block:not([data-align="wide"], [data-align="full"], [data-align="left"], [data-align="right"]) {
    max-width: 840px;
    box-sizing: border-box; /* шегініс пен жиек 840px ішінде (кесте, инфографика, ескертулер шығып кетпесін) */
}
/* «Құрам» редакторда: ені 840px болғандықтан карточкалар кішірек — сайттағыдай бір қатарда 5 адам */
.editor-styles-wrapper .wp-block-gallery.is-style-wkau-team.is-style-wkau-team {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 12px !important;
}
.editor-styles-wrapper .wp-block-gallery.is-style-wkau-team.is-style-wkau-team > figure.wp-block-image figcaption {
    padding: 10px 8px 12px !important;
    font-size: 12px !important;
}
.editor-styles-wrapper .wp-block-gallery.is-style-wkau-team.is-style-wkau-team > figure.wp-block-image figcaption strong { font-size: 13px; }
