/*
Theme Name: dds_buzzarpit.com
Author: Мухина Елизавета
Description: Тема для информационного сайта о системном администрировании и разработке. Тёмная палитра, технический стиль, моноширинные акценты.
Version: 1.1
Text Domain: dds_bzp
*/

/* === Reset & base ============================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background-color: #0E1116;
    color: #E4E6EB;
    font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Только body имеет фон по правилам — у параграфов фона нет */
p { margin: 0 0 1em; }

a {
    color: #0BC5A9;
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: #5FE6CC; }

/* Псевдо-ASCII стрелка перед текстом ссылки в основном контенте */
.entry-content a:not(.btn):not(.tag-chip):not(.page-num)::before {
    content: "";
    display: inline-block;
    width: 0;
    overflow: hidden;
    transition: width .18s ease, margin .18s ease;
    color: #0BC5A9;
    font-family: "JetBrains Mono", "Fira Code", "Menlo", monospace;
    vertical-align: baseline;
}
.entry-content a:not(.btn):not(.tag-chip):not(.page-num):hover::before {
    content: "> ";
    width: 1.1em;
    margin-right: .15em;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4, h5, h6 {
    color: #F0F4FA;
    font-weight: 700;
    line-height: 1.25;
    margin: 1.4em 0 .6em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.75rem, 4vw, 2.4rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

hr {
    border: 0;
    border-top: 1px solid #2A2F3A;
    margin: 2rem auto;
    max-width: 92%;
}

ul, ol { padding-left: 1.4em; }
li { margin: .25em 0; }

blockquote {
    margin: 1.4em 0;
    padding: 1em 1.2em;
    border-left: 3px solid #0BC5A9;
    background: #1A1D24;
    color: #E4E6EB;
    font-style: italic;
}

code, kbd, pre, samp {
    font-family: "JetBrains Mono", "Fira Code", "Menlo", "Consolas", monospace;
    font-size: 0.94em;
}
code {
    padding: 0.1em 0.4em;
    background: rgba(11, 197, 169, 0.08);
    border-radius: 3px;
    color: #5FE6CC;
}
pre {
    background: #1A1D24;
    border: 1px solid #2A2F3A;
    border-radius: 4px;
    padding: 1em 1.2em;
    overflow-x: auto;
    line-height: 1.5;
}
pre code {
    background: transparent;
    padding: 0;
    color: #E4E6EB;
}

/* === Layout ================================================== */
.site-shell {
    width: 92%;
    max-width: 1240px;
    margin: 0 auto;
}

.site-main {
    flex: 1 0 auto;
    padding: 2rem 0 3rem;
}

/* === Header ================================================== */
.site-header {
    background: #0E1116;
    border-bottom: 1px solid #2A2F3A;
    padding: 1.1rem 0;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
}
.brand-logo {
    width: 44px;
    height: 44px;
    display: block;
    flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; }
.brand-name {
    font-weight: 700;
    color: #F0F4FA;
    font-size: 1.05rem;
    line-height: 1.2;
}
.brand-tag {
    color: #8A8F99;
    font-size: 0.82rem;
    line-height: 1.3;
    margin-top: 2px;
}

.primary-menu {
    display: flex;
    align-items: center;
}
.primary-menu ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    gap: 1.4rem;
}
.primary-menu a {
    color: #E4E6EB;
    font-size: 0.96rem;
    padding: 0.4em 0;
    position: relative;
    transition: color .15s ease;
}
.primary-menu a:hover { color: #0BC5A9; }
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: #0BC5A9;
}

/* Mobile menu toggle */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px dashed #0BC5A9;
    color: #0BC5A9;
    font-family: "JetBrains Mono", monospace;
    padding: .45em .9em;
    cursor: pointer;
    border-radius: 3px;
}
.menu-toggle:focus { outline: 2px solid #0BC5A9; outline-offset: 2px; }

/* Console-style mobile drawer */
.console-drawer[hidden] { display: none !important; }
.console-drawer {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(14, 17, 22, 0.96);
    z-index: 1000;
    padding: 4rem 1.5rem 2rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
}
.console-drawer .console-prompt {
    color: #0BC5A9;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #2A2F3A;
    padding-bottom: .5rem;
}
.console-drawer .console-prompt::before { content: "guest@buzzarpit:~$ "; color: #8A8F99; }
.console-drawer ul {
    list-style: none;
    margin: 0; padding: 0;
}
.console-drawer li { margin: .65em 0; }
.console-drawer a {
    color: #E4E6EB;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.05rem;
    display: block;
    padding: .4em 0;
}
.console-drawer a:hover { color: #0BC5A9; }
.console-drawer a::before {
    content: "> ";
    color: #0BC5A9;
}
.console-close {
    position: absolute;
    top: 1rem; right: 1.2rem;
    background: transparent;
    border: 1px dashed #E76F51;
    color: #E76F51;
    font-family: "JetBrains Mono", monospace;
    padding: .35em .8em;
    cursor: pointer;
    border-radius: 3px;
}

/* === Buttons ================================================= */
/* «Клеммная колодка»: верх скруглён 6px, низ срезан 6px */
.btn {
    display: inline-block;
    padding: 0.7em 1.4em;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    text-align: center;
    cursor: pointer;
    border: 1px solid #0E1116;
    background: #0BC5A9;
    color: #0E1116;
    border-radius: 6px 6px 0 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 6px 100%);
    transition: box-shadow .18s ease, transform .08s ease;
    text-decoration: none;
}
.btn:hover {
    color: #0E1116;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.45),
        0 0 12px rgba(11, 197, 169, 0.55),
        0 -2px 0 rgba(11, 197, 169, 0.6);
}
.btn:active span,
.btn:active {
    /* Имитация механического погружения */
}
.btn:active { transform: translate(1px, 1px); }

.btn-secondary {
    background: transparent;
    border: 1px dashed #0BC5A9;
    color: #0BC5A9;
    border-radius: 3px 3px 0 0;
    clip-path: polygon(0 0, 100% 0, calc(100% - 3px) 100%, 3px 100%);
}
.btn-secondary:hover {
    color: #5FE6CC;
    box-shadow: 0 0 8px rgba(11, 197, 169, 0.35);
}

.btn-warning {
    background: #E76F51;
    color: #0E1116;
    border-color: #0E1116;
}

/* === Front page sections ===================================== */
.front-block {
    background: #1A1D24;
    border: 1px solid #2A2F3A;
    border-radius: 4px;
    padding: 2rem 1.8rem;
    margin: 1.6rem 0;
    position: relative;
}
.front-block::before {
    content: attr(data-marker);
    position: absolute;
    top: -10px; left: 16px;
    background: #0E1116;
    color: #0BC5A9;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    padding: 0 .5em;
    letter-spacing: 1px;
}
.front-block h2 { margin-top: 0; }
.front-block .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1.2rem;
}
.tile {
    background: #0E1116;
    border: 1px solid #2A2F3A;
    border-radius: 3px;
    padding: 1.1rem 1.1rem 1.2rem;
}
.tile-icon {
    display: inline-block;
    width: 32px; height: 32px;
    border: 1px solid #0BC5A9;
    color: #0BC5A9;
    border-radius: 3px;
    text-align: center;
    line-height: 30px;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.1rem;
    margin-bottom: .6rem;
}
.tile h3 { font-size: 1.05rem; margin: .25em 0 .4em; }
.tile p { color: #8A8F99; font-size: .92rem; margin: 0; }

.steps-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-top: 1.4rem;
}
.step {
    border-left: 2px solid #0BC5A9;
    padding: .4rem 0 .4rem .9rem;
}
.step-num {
    display: block;
    color: #8A8F99;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 1px;
}
.step h4 { margin: 0 0 .2em; font-size: 1rem; }
.step p { margin: 0; color: #8A8F99; font-size: .9rem; }

/* === Cards (post lists) ======================================= */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.4rem;
    margin: 1.4rem 0;
}

.card {
    display: flex;
    flex-direction: column;
    background: #1A1D24;
    border: 1px solid #2A2F3A;
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

/* Горизонтальная карточка (на десктопе): миниатюра слева */
@media (min-width: 700px) {
    .card-horiz {
        flex-direction: row;
    }
    .card-horiz .card-thumb-wrap {
        flex: 0 0 280px;
        position: relative;
        overflow: hidden;
    }
    .card-horiz .card-thumb-wrap a {
        display: block;
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
    }
    .card-horiz .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }
}

.card-thumb-wrap {
    overflow: hidden;
}
.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform .25s ease;
}
.card:hover .card-thumb-wrap img {
    transform: scale(1.03);
}

.card-body {
    flex: 1;
    padding: 1.2rem 1.3rem 1.4rem;
    display: flex;
    flex-direction: column;
    gap: .55rem;
}
.card-meta {
    color: #8A8F99;
    font-size: 0.82rem;
    font-family: "JetBrains Mono", monospace;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.card-meta span::before {
    content: "// ";
    color: #2A2F3A;
}
.card-title {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
}
.card-title a {
    color: #F0F4FA;
}
.card-title a:hover { color: #0BC5A9; }

.card-excerpt {
    color: #C0C4CC;
    font-size: 0.96rem;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-foot {
    margin-top: auto;
    padding-top: .8rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Theme rules: тонкая римская черта между карточками, не до краёв */
.cards-grid > .card + .card {
    /* визуально отделено через gap */
}
.entry-list-divider {
    border: 0;
    border-top: 1px solid #2A2F3A;
    margin: 2rem 6%;
}

/* === Tags as «loop connectors» ================================ */
.tag-chip,
.cat-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.45em;
    padding: 0.25em 0.7em 0.25em 0.55em;
    background: #0E1116;
    border: 1px solid #2A2F3A;
    color: #0BC5A9;
    font-size: 0.8rem;
    font-family: "JetBrains Mono", monospace;
    border-radius: 2px;
    margin: 0 .25em .25em 0;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
}
.tag-chip::before,
.cat-chip::before {
    content: "";
    width: 4px; height: 4px;
    border-radius: 50%;
    background: #0BC5A9;
    box-shadow: 0 6px 0 0 #0BC5A9;
    margin-right: .15em;
}
.tag-chip:hover,
.cat-chip:hover {
    border-color: #0BC5A9;
    color: #5FE6CC;
}

/* === Sidebar / two-column layout ============================== */
.with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    gap: 6%;
    align-items: start;
}
.no-sidebar {
    width: 85%;
    margin: 0 auto;
}

.widget-area .widget {
    background: #1A1D24;
    border: 1px solid #2A2F3A;
    border-radius: 4px;
    padding: 1.1rem 1.2rem 1.3rem;
    margin-bottom: 1.3rem;
}
.widget-area .widget-title {
    margin: 0 0 .8rem;
    color: #F0F4FA;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-bottom: 1px solid #2A2F3A;
    padding-bottom: .5rem;
}
.widget-area ul { list-style: none; padding: 0; margin: 0; }
.widget-area li { padding: .35em 0; border-bottom: 1px dashed #2A2F3A; }
.widget-area li:last-child { border-bottom: 0; }

/* === Breadcrumbs ============================================== */
.breadcrumbs {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: #8A8F99;
    margin-bottom: 1.5rem;
    padding: 0.5rem 0;
}
.breadcrumbs a { color: #8A8F99; }
.breadcrumbs a:hover { color: #0BC5A9; }
.breadcrumbs .sep {
    color: #2A2F3A;
    margin: 0 .35em;
}
.breadcrumbs .current { color: #E4E6EB; }

/* === Pagination — «ступени» =================================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin: 2.4rem 0 1rem;
    padding: 0;
    list-style: none;
}
.pagination .page-num {
    display: inline-block;
    padding: 0.4em 0.9em;
    color: #E4E6EB;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.95rem;
    border: 0;
    background: transparent;
    text-decoration: none;
}
.pagination .page-num::before { content: "[ "; color: #8A8F99; }
.pagination .page-num::after { content: " ]"; color: #8A8F99; }
.pagination .page-num:hover { color: #0BC5A9; }
.pagination .page-num:hover::before,
.pagination .page-num:hover::after { color: #0BC5A9; }
.pagination .page-num.current {
    color: #0BC5A9;
    background: #0E1116;
    border: 1px solid #2A2F3A;
}
.pagination .page-num.current::before,
.pagination .page-num.current::after {
    color: #0BC5A9;
}
.pagination .dots { color: #8A8F99; padding: 0.4em 0.3em; font-family: "JetBrains Mono", monospace; }

/* === Forms (LED indicator) ==================================== */
.field-wrap { position: relative; margin-bottom: 1rem; }
.field-wrap label {
    display: block;
    margin-bottom: .35em;
    color: #8A8F99;
    font-size: 0.86rem;
    font-family: "JetBrains Mono", monospace;
}

input[type=text], input[type=email], input[type=url], input[type=password],
input[type=search], textarea, select {
    width: 100%;
    background: #0E1116;
    border: 1px solid #2A2F3A;
    color: #E4E6EB;
    padding: 0.65em 2em 0.65em 0.85em;
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 3px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
input[type=text]:focus, input[type=email]:focus, input[type=url]:focus, input[type=password]:focus,
input[type=search]:focus, textarea:focus, select:focus {
    outline: none;
    border-color: #0BC5A9;
    box-shadow: 0 0 0 2px rgba(11, 197, 169, 0.15);
}
textarea { min-height: 130px; resize: vertical; }

/* LED-индикатор справа сверху поля */
.field-wrap::after {
    content: "";
    position: absolute;
    top: calc(0.86rem + 0.6em);
    right: 0.7em;
    width: 7px; height: 7px;
    border-radius: 50%;
    background: rgba(11, 197, 169, 0.25);
    box-shadow: 0 0 4px rgba(11, 197, 169, 0.2);
    transition: background .15s ease, box-shadow .15s ease;
}
.field-wrap.is-focused::after {
    background: #0BC5A9;
    box-shadow: 0 0 8px rgba(11, 197, 169, 0.85);
}
/* Если есть label — индикатор смещаем вниз с учётом label */
.field-wrap > label + input + .nothing,
.field-wrap.no-label::after {
    top: 0.95em;
}

/* === Search form ============================================== */
.search-form {
    display: flex;
    gap: 0;
    max-width: 480px;
}
.search-form .field-wrap {
    flex: 1;
    margin-bottom: 0;
}
.search-form input[type=search] {
    border-right: 0;
    border-radius: 3px 0 0 3px;
    padding-right: 2em;
}
.search-form .search-submit {
    background: #0BC5A9;
    color: #0E1116;
    border: 1px solid #0E1116;
    padding: 0 1em;
    font-family: "JetBrains Mono", monospace;
    font-size: 1.1rem;
    cursor: pointer;
    border-radius: 0 3px 3px 0;
}
.search-form .search-submit:hover { background: #5FE6CC; }
.search-form .search-submit::before { content: "_"; }
.search-form .search-submit span { display: none; }

/* === Comments ================================================= */
.comments-area { margin-top: 3rem; }
.comments-title {
    font-size: 1.3rem;
    border-bottom: 1px solid #2A2F3A;
    padding-bottom: .5rem;
}
.comment-list { list-style: none; padding: 0; margin: 0; }
.comment-list .comment-list { padding-left: 1.5rem; border-left: 1px dashed #2A2F3A; margin-top: 1rem; }
.comment-body {
    background: #1A1D24;
    border: 1px solid #2A2F3A;
    border-radius: 3px;
    padding: 1rem 1.2rem;
    margin: 0.8rem 0;
}
.comment-meta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: #8A8F99;
    margin-bottom: .5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}
.comment-author { color: #0BC5A9; font-weight: 600; }
.comment-reply-link {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: #0BC5A9;
}

.comment-form { margin-top: 1.5rem; }
.comment-form .form-submit { margin-top: .8rem; }

/* === Author block (Елизавета Мухина) ========================== */
.author-block {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    background: #1A1D24;
    border: 1px solid #2A2F3A;
    border-radius: 4px;
    padding: 1.1rem 1.2rem;
    margin: 2rem 0;
}
.author-avatar-frame {
    position: relative;
    width: 64px; height: 64px;
    flex-shrink: 0;
}
/* Рамка-чертёж: оборвана сверху и снизу */
.author-avatar-frame::before,
.author-avatar-frame::after {
    content: "";
    position: absolute;
    border: 1px solid #0BC5A9;
    border-radius: 50%;
    pointer-events: none;
}
.author-avatar-frame::before {
    inset: -4px;
    clip-path: polygon(0 20%, 35% 20%, 35% 0, 65% 0, 65% 20%, 100% 20%, 100% 80%, 65% 80%, 65% 100%, 35% 100%, 35% 80%, 0 80%);
    /* Это создаст дугу с разрывами сверху и снизу */
    border-color: transparent;
    background:
        conic-gradient(from 20deg, #0BC5A9 0 35%, transparent 35% 65%, #0BC5A9 65% 100%);
    -webkit-mask: radial-gradient(circle, transparent 0 28px, #000 29px 32px, transparent 33px);
            mask: radial-gradient(circle, transparent 0 28px, #000 29px 32px, transparent 33px);
}
.author-avatar-frame img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    background: #2A2F3A;
}
.author-info { color: #C0C4CC; font-size: .94rem; }
.author-name { color: #F0F4FA; font-weight: 700; display: block; font-size: 1.05rem; }
.author-info p { margin: .2em 0 0; }

/* === Cookie banner ============================================ */
.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    bottom: 16px;
    left: 16px;
    right: 16px;
    background: #1A1D24;
    border: 1px solid #2A2F3A;
    border-radius: 4px;
    padding: 1rem 1.2rem;
    z-index: 900;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    max-width: 1240px;
    margin: 0 auto;
}
.cookie-banner p {
    margin: 0;
    flex: 1 1 320px;
    color: #C0C4CC;
    font-size: 0.92rem;
}
.cookie-banner .cookie-mark {
    color: #0BC5A9;
    font-family: "JetBrains Mono", monospace;
}
.cookie-banner .btn { flex: 0 0 auto; }

/* === Footer =================================================== */
.site-footer {
    background: #0E1116;
    border-top: 1px solid #2A2F3A;
    padding: 2.4rem 0 1.4rem;
    color: #8A8F99;
    font-size: 0.92rem;
    margin-top: 2rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 1.8rem;
}
.footer-grid .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin: 0;
}
.footer-grid .widget-title {
    border-bottom: 1px dashed #2A2F3A;
    padding-bottom: .5rem;
    color: #F0F4FA;
}
.footer-grid a { color: #C0C4CC; }
.footer-grid a:hover { color: #0BC5A9; }
.footer-grid ul li { border-bottom: 0; padding: .25em 0; }

.system-stats {
    border-top: 1px solid #2A2F3A;
    padding: 0.9rem 0 0.4rem;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: #8A8F99;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}
.system-stats .stat-key { color: #0BC5A9; }

.copyright {
    text-align: center;
    color: #8A8F99;
    padding-top: 0.6rem;
    font-size: 0.85rem;
    font-family: "JetBrains Mono", monospace;
}

/* === Tables =================================================== */
table {
    border-collapse: collapse;
    width: 100%;
    margin: 1.2rem 0;
    border: 1px solid #2A2F3A;
}
th, td {
    border: 1px solid #2A2F3A;
    padding: 0.55em 0.75em;
    text-align: left;
}
th {
    background: #1A1D24;
    color: #F0F4FA;
    font-weight: 600;
}

/* === 404 ====================================================== */
.error404-art {
    font-family: "JetBrains Mono", monospace;
    color: #0BC5A9;
    font-size: clamp(2.2rem, 6vw, 3.4rem);
    margin: 1rem 0;
    letter-spacing: 0.05em;
}

/* === Misc ===================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
            clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.alignleft { float: left; margin: 0 1.2em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

.entry-content > *:first-child { margin-top: 0; }

/* === Responsive =============================================== */
@media (max-width: 960px) {
    .with-sidebar {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .front-block .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .steps-row { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
    .card-horiz {
        flex-direction: column;
    }
    .card-horiz .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-horiz .card-thumb-wrap a {
        position: static;
    }
    .card-horiz .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
}

@media (max-width: 600px) {
    .primary-menu { display: none; }
    .menu-toggle { display: inline-block; }
    .front-block { padding: 1.4rem 1rem; }
    .front-block .grid-3 { grid-template-columns: 1fr; }
    .steps-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .no-sidebar { width: 100%; }
    .site-shell { width: 94%; }
    .cookie-banner {
        left: 8px; right: 8px; bottom: 8px;
        padding: 0.9rem 1rem;
    }
    .system-stats { font-size: 0.74rem; }
}
