/* Текст из редактора (статьи, документация): все стандартные блоки WordPress выглядят как в design/Site Blog Post.dc.html
   (статья «Typography test» — эталон). Обёртка — .entry. */
.entry { display: flex; flex-direction: column; gap: 22px; max-width: 680px; font-size: 18px; line-height: 1.65; color: var(--ink-2); }
.entry > * { margin: 0; }
.entry a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.entry a:hover { color: var(--ink); }
.entry strong, .entry b { font-weight: 600; color: var(--ink); }
.entry em, .entry i { font-style: italic; }
.entry s, .entry del { color: var(--muted); }
.entry mark { padding: 0 4px; border-radius: 4px; background: oklch(0.52 0.21 285 / .14); color: inherit; }
.entry code { padding: 1px 7px; border: 1px solid var(--line); border-radius: 6px; background: var(--hover); font-family: inherit; font-size: .92em; color: var(--ink); }
.entry kbd { padding: 1px 7px; border: 1px solid var(--line-2); border-radius: 6px; background: #fff; box-shadow: 0 1px 0 var(--line-2); font-family: inherit; font-size: .85em; color: var(--ink); }
.entry sup { position: relative; top: -.5em; font-size: .7em; line-height: 0; vertical-align: baseline; color: var(--accent); }
/* заголовки */
.entry h2 { margin-top: 18px; font-size: clamp(24px, 2.8vw, 30px); line-height: 1.15; letter-spacing: -.025em; font-weight: 600; color: var(--ink); scroll-margin-top: 100px; }
.entry h3 { margin-top: 10px; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.2; letter-spacing: -.02em; font-weight: 600; color: var(--ink); }
.entry h4 { margin: 6px 0 -6px; font-size: 18px; line-height: 1.4; font-weight: 600; color: var(--ink); }
.entry h5 { margin: 4px 0 -8px; font-size: 15px; line-height: 1.4; font-weight: 600; color: var(--ink-3); }
.entry h6 { margin: 4px 0 -8px; font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--muted); }
/* списки: маркер — фиолетовое тире, нумерация — фиолетовые цифры одной ширины */
.entry ul, .entry ol { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.entry li { position: relative; }
.entry ul > li { padding-left: 28px; }                       /* маркер — сбоку, текст со ссылками и жирным течёт как обычно */
.entry ul > li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.entry ol { counter-reset: rw-ol; }
.entry ol > li { padding-left: 34px; counter-increment: rw-ol; }
.entry ol > li::before { content: counter(rw-ol) "."; position: absolute; left: 0; min-width: 22px; color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; }
.entry li > ul, .entry li > ol { margin-top: 10px; }
/* цитата и выносная цитата */
.entry .wp-block-quote, .entry blockquote:not(.wp-block-pullquote blockquote) { display: flex; flex-direction: column; gap: 8px; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); }
.entry .wp-block-quote p { margin: 0; font-size: 19px; line-height: 1.5; color: var(--ink); }
.entry .wp-block-quote cite { font-style: normal; font-size: 14.5px; color: var(--muted); }
.entry .wp-block-pullquote { margin: 0; padding: 22px 26px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); text-align: left; }
.entry .wp-block-pullquote blockquote { margin: 0; padding: 0; border: 0; }
.entry .wp-block-pullquote p { margin: 0; font-size: 20px; line-height: 1.45; letter-spacing: -.01em; font-weight: 500; color: var(--ink); }
.entry .wp-block-pullquote cite { display: block; margin-top: 8px; font-size: 14.5px; font-style: normal; color: var(--muted); }
/* плашка «In Recapwiser:» (стиль абзаца Callout) */
.entry .is-style-callout { position: relative; min-height: 64px; padding: 18px 20px 18px 62px; border-radius: 14px; background: oklch(0.52 0.21 285 / .08); font-size: 16px; line-height: 1.55; }
.entry .is-style-callout::before { content: ""; position: absolute; left: 20px; top: 18px; width: 28px; height: 28px; border-radius: 8px; background: url("../img/logo.svg") center / cover; }
/* врезки (стили группы Tip / Important / Plan / Note): метка-«таблетка» слева, текст справа */
.entry .wp-block-group[class*="is-style-"] { display: flex; gap: 14px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); font-size: 15.5px; line-height: 1.55; }
.entry .wp-block-group[class*="is-style-"]::before { content: "Note"; flex: none; height: 24px; padding: 0 10px; display: grid; place-items: center; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600; line-height: 1; }
.entry .wp-block-group[class*="is-style-"] > .wp-block-group__inner-container, .entry .wp-block-group[class*="is-style-"] > div { min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.entry .wp-block-group[class*="is-style-"] p { margin: 0; }
.entry .wp-block-group.is-style-tip { border-color: oklch(0.55 0.15 150 / .25); background: oklch(0.55 0.15 150 / .1); }
.entry .wp-block-group.is-style-tip::before { content: "Tip"; background: oklch(0.42 0.13 150); }
.entry .wp-block-group.is-style-important { border-color: oklch(0.7 0.15 70 / .35); background: oklch(0.7 0.15 70 / .14); }
.entry .wp-block-group.is-style-important::before { content: "Important"; background: oklch(0.5 0.12 70); }
.entry .wp-block-group.is-style-plan { border-color: oklch(0.52 0.21 285 / .25); background: oklch(0.52 0.21 285 / .08); }
.entry .wp-block-group.is-style-plan::before { content: "Plan"; background: var(--accent); }
/* мелкий текст (стиль абзаца Small) */
.entry .is-style-small, .entry small { display: block; font-size: 14px; line-height: 1.6; color: var(--muted); }
/* код и преформатированный текст — тем же шрифтом (моноширинного на сайте нет) */
.entry pre, .entry .wp-block-code, .entry .wp-block-preformatted { overflow-x: auto; padding: 18px 20px; border-radius: 14px; background: var(--ink); color: oklch(0.9 0.008 80); font-family: inherit; font-size: 14.5px; line-height: 1.6; white-space: pre-wrap; }
.entry pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; }
/* таблица: на телефоне строки — карточки (подписи — data-label из шапки, inc/blocks.php) */
.entry .wp-block-table { margin: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.entry table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.entry .wp-block-table thead, .entry .wp-block-table tfoot { border: 0; }            /* без рамок ядра WordPress */
.entry th, .entry .wp-block-table th { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: var(--paper); text-align: left; font-weight: 600; color: var(--ink); }
.entry td, .entry .wp-block-table td { padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line-3); vertical-align: top; }
.entry tbody tr:last-child td, .entry .wp-block-table tbody tr:last-child td { border-bottom: 0; }
.entry .wp-block-table figcaption { padding: 10px 16px; font-size: 14px; color: var(--muted); }
/* картинки: во всю ширину текста, скругление, подпись ниже */
.entry figure { margin: 0; }
.entry .wp-block-image { display: flex; flex-direction: column; gap: 10px; }
.entry .wp-block-image img { display: block; width: 100%; height: auto; border-radius: 14px; }
.entry figcaption, .entry .wp-element-caption { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); text-align: left; }
.entry .wp-block-gallery { display: flex; flex-wrap: wrap; gap: 10px; }
.entry .wp-block-embed iframe { width: 100%; border-radius: 14px; }
.entry .wp-block-video video { width: 100%; border-radius: 14px; }
/* разделитель */
.entry hr, .entry .wp-block-separator { margin: 8px 0; border: 0; border-top: 1px solid var(--line); opacity: 1; }
/* кнопки и колонки ядра */
.entry .wp-block-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.entry .wp-block-button__link { display: inline-flex; padding: 12px 22px; border-radius: 999px; background: var(--ink); color: #fff; text-decoration: none; font-weight: 500; font-size: 16px; }
.entry .wp-block-button__link:hover { background: var(--accent); color: #fff; }
.entry .wp-block-button.is-style-outline .wp-block-button__link { border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.entry .wp-block-columns { display: flex; gap: 24px; flex-wrap: wrap; }
.entry .wp-block-column { flex: 1 1 240px; min-width: 0; }
.entry .wp-block-details summary { cursor: pointer; font-weight: 600; color: var(--ink); }
@media (max-width: 720px) {
  .entry { font-size: 17px; }
  .entry .wp-block-table { overflow: visible; border: 0; }
  .entry table, .entry tbody, .entry tr, .entry td { display: block; }
  .entry thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .entry tbody tr { margin-bottom: 10px; padding: 6px 16px; border: 1px solid var(--line); border-radius: 14px; }
  .entry td, .entry .wp-block-table td { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line-3); }
  .entry tbody tr td:last-child, .entry .wp-block-table tbody tr td:last-child { border-bottom: 0; }
  .entry td::before { content: attr(data-label); flex: none; font-size: 14px; color: var(--muted); }
}
