/**
Theme Name: Astra Child
Author: Brainstorm Force
Author URI: http://wpastra.com/about/
Description: Astra is the fastest, fully customizable & beautiful theme suitable for blogs, personal portfolios and business websites. It is very lightweight (less than 50KB on frontend) and offers unparalleled speed. Built with SEO in mind, Astra comes with schema.org code integrated so search engines will love your site. Astra offers plenty of sidebar options and widget areas giving you a full control for customizations. Furthermore, we have included special features and templates so feel free to use your favorite page builder plugin to create pages flexibly. Some of the other features: # WooCommerce Ready # Responsive # Compatible with major plugins # Translation Ready # Extendible with premium addons # Regularly updated # Designed, Developed, Maintained & Supported by Brainstorm Force. Looking for a perfect base theme? Look no further. Astra is fast, fully customizable and beautiful!
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: astra-child
Template: astra
*/

/*
 * Убираем тени с таблиц на страницах постов блога.
 * Применяется к Gutenberg-блоку wp-block-table (figure) и кего содержимому.
 */
.single-post .entry-content .wp-block-table,
.single-post .entry-content .wp-block-table table,
.single-post .entry-content .wp-block-table.is-style-regular,
.single-post .entry-content .wp-block-table.is-style-stripes,
.single-post .entry-content .wp-block-table.has-background,
.single-post .entry-content figure.wp-block-table {
    box-shadow: none !important;
    border-radius: 0 !important;
}

/* Аккуратные сплошные границы для читаемости таблиц. */
.single-post .entry-content .wp-block-table table {
    border-collapse: collapse;
}
.single-post .entry-content .wp-block-table th,
.single-post .entry-content .wp-block-table td {
    border: 1px solid #d4d4d8;
    padding: 0.5em 0.75em;
}

/*
 * Кодовые блоки (промпты, цитаты) — отображаем как аккуратные
 * «заметки» без тени, с моноширинным шрифтом и аккуратными отступами.
 */
.single-post .entry-content .wp-block-code,
.single-post .entry-content .wp-block-code > pre {
    box-shadow: none !important;
    border: 1px solid #e4e4e7;
    border-radius: 6px;
    background: #f6f6f7;
    padding: 1em 1.2em;
    overflow-x: auto;
    position: relative; /* якорь для кнопки копирования */
}
.single-post .entry-content .wp-block-code code {
    background: transparent;
    border: 0;
    padding: 0;
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 0.92em;
    line-height: 1.55;
    color: #1f2937;
    white-space: pre-wrap;
    word-break: break-word;
    font-feature-settings: "liga" 1, "calt" 1;
    font-variant-ligatures: contextual;
}

/*
 * Кнопка «Копировать» в правом верхнем углу кодового блока.
 * Создаётся автоматически скриптом child-code-copy.js.
 * Стили работают с классами .pzl-code-copy и .pzl-code-copy--copied.
 */
.pzl-code-copy {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    display: inline-flex;
    align-items: center;
    gap: 0.35em;
    padding: 0.35em 0.7em;
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 0.78em;
    font-weight: 500;
    line-height: 1;
    color: #1f2937;
    background: #ffffff;
    border: 1px solid #d4d4d8;
    border-radius: 4px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.single-post .entry-content .wp-block-code:hover .pzl-code-copy,
.pzl-code-copy:focus-visible {
    opacity: 1;
}
/* На тач-устройствах (нет hover) — кнопка всегда видна. */
@media (hover: none) {
    .pzl-code-copy {
        opacity: 1;
    }
}
.pzl-code-copy:hover {
    background: #f4f4f5;
    border-color: #a1a1aa;
}
.pzl-code-copy:focus-visible {
    outline: 2px solid #c47a2b;
    outline-offset: 2px;
}
.pzl-code-copy svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.pzl-code-copy--copied {
    background: #e7f6ec;
    border-color: #2f9e44;
    color: #1f7a37;
}
.pzl-code-copy--copied:hover {
    background: #d8efdd;
    border-color: #2b8a3e;
}

/*
 * Цитаты <blockquote> и клавиатурный ввод <kbd> — тоже на JetBrains Mono.
 */
.single-post .entry-content blockquote {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95em;
    line-height: 1.6;
    color: #1f2937;
    border-left: 4px solid #c47a2b;
    background: #faf7f2;
    padding: 0.9em 1.2em;
    border-radius: 0 4px 4px 0;
    box-shadow: none;
    font-style: normal;
}
.single-post .entry-content blockquote p {
    margin: 0 0 0.5em;
}
.single-post .entry-content blockquote p:last-child {
    margin-bottom: 0;
}
.single-post .entry-content kbd,
.single-post .entry-content code {
    font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}