/*
Theme Name: portail-comptepersonnelformation.com
Theme URI: https://portail-comptepersonnelformation.com/
Author: Алексей Воронцов
Author URI: https://portail-comptepersonnelformation.com/
Description: TechBlueprint — минималистичная технологичная тема для контентного медиа о хай-тек технологиях в архитектуре и ремонте.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: pcpf
*/

/* ============== CSS RESET & BASE ============== */

*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Roboto", "Segoe UI", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: #1E293B;
    background: #F7F9FC;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a { color: #0F172A; text-decoration: none; transition: color .2s ease; }
a:hover { color: #00B8D4; }

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", -apple-system, system-ui, sans-serif;
    font-weight: 700;
    line-height: 1.25;
    color: #0F172A;
    margin: 1.4em 0 0.6em;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(1.9rem, 1.4rem + 2vw, 2.6rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }
h3 { font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1em; }

code, pre, kbd, samp {
    font-family: "JetBrains Mono", "Fira Code", "SF Mono", Consolas, Menlo, monospace;
    font-size: 0.92em;
}
code {
    background: #0F172A;
    color: #00E5FF;
    padding: 0.15em 0.4em;
    border-radius: 4px;
}
pre {
    background: #0F172A;
    color: #E2E8F0;
    padding: 1.2em 1.4em;
    border-radius: 10px;
    overflow-x: auto;
    border-left: 3px solid #00E5FF;
}
pre code { background: none; color: inherit; padding: 0; }

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.4em;
    border-left: 4px solid #FFB300;
    background: #FFFFFF;
    color: #1E293B;
    font-style: italic;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
}
th, td {
    padding: 0.75em 1em;
    border: 1px solid #CBD5E1;
    text-align: left;
}
th {
    background: #EFF3F8;
    font-weight: 600;
    color: #0F172A;
}

hr {
    border: none;
    height: 1px;
    background: #E2E8F0;
    margin: 2em 0;
}

ul, ol { padding-left: 1.4em; margin: 0 0 1em; }
li { margin: 0.3em 0; }

::selection { background: #00E5FF; color: #0F172A; }

/* ============== LAYOUT CONTAINER ============== */

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.site-main { padding: 32px 0 64px; }

/* ============== HEADER ============== */

.site-header {
    background: #FFFFFF;
    border-bottom: 1px solid #E2E8F0;
    padding: 18px 0;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #0F172A;
    min-width: 0;
}
.brand:hover { color: #0F172A; }
.brand-logo, .brand-logo-svg {
    width: 44px; height: 44px;
    flex-shrink: 0;
    border-radius: 8px;
}
.brand-logo-svg {
    background: #0F172A;
    padding: 6px;
}
.brand-text { min-width: 0; }
.brand-title {
    font-family: "Inter", system-ui, sans-serif;
    font-weight: 800;
    font-size: 1.05rem;
    color: #0F172A;
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.01em;
    /* Keep long site name from overflowing */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.brand-desc {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.7rem;
    color: #5A6B7C;
    margin: 4px 0 0;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Primary nav */
.primary-nav { min-width: 0; }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.primary-nav a {
    display: inline-block;
    padding: 8px 14px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1E293B;
    border-radius: 8px;
    transition: all .2s ease;
    position: relative;
}
.primary-nav a:hover {
    background: #EFF3F8;
    color: #0F172A;
}
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    background: #0F172A;
    color: #FFFFFF;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #CBD5E1;
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    color: #0F172A;
    font-weight: 600;
}
.nav-toggle:hover { border-color: #00E5FF; }

/* ============== BREADCRUMBS ============== */

.breadcrumbs {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #5A6B7C;
    margin: 0 0 24px;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    letter-spacing: 0.02em;
}
.breadcrumbs a {
    color: #0F172A;
    border-bottom: 1px dashed transparent;
}
.breadcrumbs a:hover {
    color: #00B8D4;
    border-bottom-color: #00E5FF;
}
.breadcrumbs .sep {
    color: #00E5FF;
    margin: 0 6px;
    font-weight: 700;
}
.breadcrumbs span:not(.sep) { color: #1E293B; }

/* ============== LAYOUT WITH SIDEBAR ============== */

.content-with-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 6%;
    align-items: flex-start;
}
.content-with-sidebar .content-area {
    flex: 0 0 67%;
    min-width: 0;
}
.content-with-sidebar .sidebar {
    flex: 0 0 27%;
    min-width: 0;
    position: sticky;
    top: 24px;
}
.content-narrow {
    width: 85%;
    margin-inline: auto;
    min-width: 0;
}

@media (max-width: 960px) {
    .content-with-sidebar .content-area,
    .content-with-sidebar .sidebar {
        flex: 0 0 100%;
        position: static;
    }
    .content-narrow {
        width: 100%;
    }
}

/* ============== CARDS GRID ============== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.card-grid > * { min-width: 0; }

.card {
    display: flex;
    flex-direction: column;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    position: relative;
}
.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(15,23,42,0.08);
    border-color: #00E5FF;
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
    background: #EFF3F8;
}
.card-thumb-wrap a {
    display: block;
}
.card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}
.card:hover .card-thumb-wrap img { transform: scale(1.02); }

/* Cyan grid overlay on hover */
.card-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,229,255,0.45) 1px, transparent 1px);
    background-size: 12px 12px;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
.card:hover .card-thumb-wrap::after { opacity: 0.35; }

.card-body {
    flex: 1;
    padding: 18px 20px 20px;
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.card-cats {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 10px;
}
.card-cat {
    display: inline-block;
    padding: 3px 10px;
    background: #EFF3F8;
    color: #0F172A;
    border-radius: 40px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: "JetBrains Mono", monospace;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.card-cat:hover { background: #0F172A; color: #FFFFFF; }
.card-title {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 10px;
    line-height: 1.3;
}
.card-title a { color: #0F172A; }
.card-title a:hover { color: #00B8D4; }
.card-meta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.74rem;
    color: #5A6B7C;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}
.card-meta .meta-icon {
    width: 12px;
    height: 12px;
    vertical-align: -2px;
    margin-right: 4px;
    stroke: #00B8D4;
    fill: none;
    stroke-width: 2;
}
.card-excerpt {
    font-size: 0.95rem;
    color: #1E293B;
    margin: 0 0 16px;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-readmore {
    margin-top: auto;
    align-self: flex-start;
    font-weight: 600;
    color: #0F172A;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-bottom: 1px dashed transparent;
    padding-bottom: 2px;
    transition: border-color .2s ease, color .2s ease;
}
.card-readmore:hover {
    border-bottom-color: #00E5FF;
    color: #00B8D4;
}
.card-readmore::after {
    content: "→";
    transition: transform .2s ease;
}
.card-readmore:hover::after { transform: translateX(3px); }

/* ============== BUTTONS ============== */

.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #0F172A;
    color: #FFFFFF;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: background .3s ease, transform .15s ease;
    border: none;
    cursor: pointer;
}
.btn-primary:hover {
    background: linear-gradient(90deg, #0F172A 0%, #00B8D4 100%);
    color: #FFFFFF;
    transform: translateY(-1px);
}
.btn-primary:focus-visible {
    outline: 2px solid #00E5FF;
    outline-offset: 2px;
}

/* ============== SINGLE POST / PAGE ============== */

.entry {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 32px clamp(20px, 4vw, 44px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}
.entry-header { margin-bottom: 22px; padding-bottom: 18px; border-bottom: 1px solid #E2E8F0; }
.entry-title { margin: 0 0 12px; }
.entry-meta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: #5A6B7C;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
}
.entry-meta .meta-icon {
    width: 13px; height: 13px;
    vertical-align: -2px; margin-right: 5px;
    stroke: #00B8D4; fill: none; stroke-width: 2;
}
.entry-thumb { margin: 0 0 22px; border-radius: 10px; overflow: hidden; }
.entry-thumb img { width: 100%; display: block; }

.entry-content { font-size: 1.02rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: 8px; margin: 1em 0; }
.entry-content figure { margin: 1.4em 0; }
.entry-content figcaption {
    font-size: 0.85rem;
    color: #5A6B7C;
    text-align: center;
    margin-top: 0.5em;
    font-family: "JetBrains Mono", monospace;
}

/* ============== SIDEBAR / WIDGETS ============== */

.sidebar {
    font-size: 0.95rem;
}
.widget {
    background: #0F172A;
    color: #E2E8F0;
    padding: 22px 22px 24px;
    border-radius: 12px;
    margin-bottom: 22px;
    border-left: 3px solid #00E5FF;
}
.widget-title {
    font-family: "Inter", system-ui, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #00E5FF;
    margin: 0 0 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,229,255,0.2);
}
.widget-title::before {
    content: "⟡ ";
    color: #FFB300;
}

/* Default widget text color in sidebar (dark background) */
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li,
.sidebar .widget span { color: #E2E8F0; }
.sidebar .widget a { color: #FFFFFF; border-bottom: 1px solid transparent; }
.sidebar .widget a:hover { color: #00E5FF; border-bottom-color: #00E5FF; }
.sidebar .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sidebar .widget li {
    padding: 8px 0;
    border-bottom: 1px dashed rgba(226,232,240,0.15);
    font-size: 0.92rem;
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget .post-date {
    display: block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: #94A3B8;
    margin-top: 4px;
    letter-spacing: 0.04em;
}

/* ============== FOOTER ============== */

.site-footer {
    background: #0F172A;
    color: #CBD5E1;
    padding: 56px 0 24px;
    margin-top: 64px;
    position: relative;
}
/* Oscilloscope wavy line divider */
.site-footer::before {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 18px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18' preserveAspectRatio='none'><path d='M0 9 Q 12.5 0, 25 9 T 50 9 T 75 9 T 100 9' stroke='%2300E5FF' stroke-width='1' fill='none'/></svg>");
    background-size: 100px 18px;
    background-repeat: repeat-x;
    opacity: 0.5;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px;
    margin-bottom: 40px;
}
@media (max-width: 960px) {
    .footer-widgets { grid-template-columns: 1fr; gap: 24px; }
}

/* Footer widget styling — light text on dark background */
.footer-widgets .widget {
    background: transparent;
    border-left: none;
    padding: 0;
    margin: 0;
    color: #CBD5E1;
}
.footer-widgets .widget-title {
    color: #00E5FF;
    border-bottom: 1px solid rgba(0,229,255,0.2);
    padding-bottom: 10px;
    margin-bottom: 14px;
}
.footer-widgets .widget p,
.footer-widgets .widget li,
.footer-widgets .widget span { color: #CBD5E1; }
.footer-widgets .widget a { color: #FFFFFF; border-bottom: 1px solid transparent; }
.footer-widgets .widget a:hover { color: #00E5FF; border-bottom-color: #00E5FF; }
.footer-widgets .widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widgets .widget li {
    padding: 6px 0;
    font-size: 0.92rem;
    border-bottom: 1px dashed rgba(203,213,225,0.12);
}
.footer-widgets .widget li:last-child { border-bottom: none; }

.site-copyright {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid rgba(226,232,240,0.1);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #94A3B8;
    letter-spacing: 0.04em;
}

/* ============== FRONT PAGE ============== */

.hero-section {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    color: #FFFFFF;
    padding: 64px clamp(20px, 4vw, 48px);
    border-radius: 16px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
}
.hero-section::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(0,229,255,0.15) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.5;
    pointer-events: none;
}
.hero-eyebrow {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    color: #00E5FF;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 12px;
    position: relative;
}
.hero-eyebrow::before {
    content: "⟡ ";
    color: #FFB300;
}
.hero-title {
    font-size: clamp(1.8rem, 1.4rem + 2vw, 2.8rem);
    color: #FFFFFF;
    margin: 0 0 16px;
    line-height: 1.15;
    position: relative;
    max-width: 800px;
}
.hero-desc {
    font-size: 1.05rem;
    color: #CBD5E1;
    max-width: 720px;
    margin: 0 0 24px;
    position: relative;
}

.section-block {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 36px clamp(20px, 4vw, 44px);
    margin-bottom: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    position: relative;
}
.section-block.dark {
    background: #0F172A;
    color: #E2E8F0;
    border-color: #0F172A;
}
.section-block.dark .section-title { color: #FFFFFF; }
.section-block.dark .section-eyebrow { color: #00E5FF; }
.section-block.dark p { color: #CBD5E1; }
.section-block.dark .feature-card {
    background: rgba(255,255,255,0.04);
    border-color: rgba(0,229,255,0.2);
}
.section-block.dark .feature-card h3 { color: #FFFFFF; }
.section-block.dark .feature-card p { color: #CBD5E1; }

.section-eyebrow {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #00B8D4;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin: 0 0 8px;
}
.section-eyebrow::before { content: "⟡ "; color: #FFB300; }

.section-title {
    font-size: clamp(1.5rem, 1.2rem + 1.5vw, 2.1rem);
    margin: 0 0 16px;
    color: #0F172A;
}
.section-lead {
    font-size: 1.05rem;
    color: #1E293B;
    margin-bottom: 24px;
    max-width: 780px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin-top: 24px;
}
.feature-grid > * { min-width: 0; }
.feature-card {
    background: #F7F9FC;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    padding: 22px;
    transition: border-color .25s ease, transform .25s ease;
}
.feature-card:hover {
    border-color: #00E5FF;
    transform: translateY(-2px);
}
.feature-card .feature-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #FFB300;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
}
.feature-card h3 {
    font-size: 1.1rem;
    margin: 0 0 8px;
}
.feature-card p {
    font-size: 0.92rem;
    margin: 0;
    color: #5A6B7C;
}

.spec-block {
    background: #0F172A;
    color: #E2E8F0;
    border-radius: 10px;
    padding: 22px 26px;
    margin: 22px 0;
    border-left: 3px solid #00E5FF;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.92rem;
}
.spec-block .spec-title {
    color: #00E5FF;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-size: 0.78rem;
    margin: 0 0 12px;
    display: block;
}
.spec-block .spec-title::before { content: "⟡ "; color: #FFB300; }
.spec-block .spec-row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(226,232,240,0.12);
}
.spec-block .spec-row:last-child { border-bottom: none; }
.spec-block .spec-key { color: #94A3B8; }
.spec-block .spec-val { color: #FFFFFF; font-weight: 600; }

.posts-section { margin: 40px 0; }
.posts-section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 2px solid #0F172A;
}
.posts-section-title {
    margin: 0;
    font-size: clamp(1.4rem, 1.2rem + 1vw, 1.9rem);
}

/* ============== PAGINATION ============== */

.pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 40px 0 0;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 12px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: transparent;
    color: #1E293B;
    font-weight: 600;
    transition: all .2s ease;
}
.pagination a:hover {
    background: rgba(0,229,255,0.1);
    border-color: #00E5FF;
    color: #0F172A;
}
.pagination .current {
    background: #0F172A;
    border-color: #0F172A;
    color: #FFFFFF;
}
.pagination .dots {
    border: none;
}

/* ============== COMMENTS ============== */

.comments-area {
    margin-top: 36px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 28px clamp(18px, 3vw, 36px);
}
.comments-title {
    margin: 0 0 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #E2E8F0;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-list .comment,
.comment-list .pingback {
    padding: 14px 0;
    border-bottom: 1px dashed #E2E8F0;
}
.comment-list .children {
    list-style: none;
    padding-left: 24px;
    border-left: 2px solid #00E5FF;
    margin-top: 14px;
}
.comment-author { font-weight: 600; color: #0F172A; }
.comment-meta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #5A6B7C;
    margin: 4px 0 8px;
}
.comment-body p { margin: 0 0 0.5em; }
.comment-reply-link {
    font-size: 0.85rem;
    color: #00B8D4;
    font-weight: 600;
}

#respond { margin-top: 24px; }
#respond label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: #0F172A;
}
#respond input[type=text],
#respond input[type=email],
#respond input[type=url],
#respond textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #F7F9FC;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1E293B;
    margin-bottom: 14px;
    transition: border-color .2s ease;
}
#respond input:focus,
#respond textarea:focus {
    outline: none;
    border-color: #00E5FF;
    background: #FFFFFF;
}
#respond .form-submit input,
#respond #submit {
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    padding: 12px 22px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .3s ease;
}
#respond .form-submit input:hover,
#respond #submit:hover {
    background: linear-gradient(90deg, #0F172A 0%, #00B8D4 100%);
}

/* ============== SEARCH FORM ============== */

.search-form {
    display: flex;
    gap: 8px;
    max-width: 540px;
    margin: 24px 0;
}
.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 10px 14px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    background: #FFFFFF;
    font-family: inherit;
    font-size: 0.95rem;
}
.search-form .search-field:focus {
    outline: none;
    border-color: #00E5FF;
}
.search-form .search-submit {
    background: #0F172A;
    color: #FFFFFF;
    border: none;
    padding: 0 18px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}
.search-form .search-submit:hover {
    background: linear-gradient(90deg, #0F172A 0%, #00B8D4 100%);
}

/* ============== 404 ============== */

.error-404 {
    text-align: center;
    padding: 40px 20px;
    background: #FFFFFF;
    border-radius: 12px;
    border: 1px solid #E2E8F0;
}
.error-404 .error-code {
    font-family: "JetBrains Mono", monospace;
    font-size: clamp(4rem, 3rem + 6vw, 8rem);
    font-weight: 800;
    color: #00E5FF;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.05em;
}
.error-404 h1 { margin: 12px 0 16px; }
.error-404 .search-form { margin-inline: auto; }

/* ============== COOKIE BANNER ============== */

.cookie-banner[hidden] { display: none !important; }

.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 9999;
    background: #0F172A;
    color: #E2E8F0;
    border: 1px solid #00E5FF;
    border-radius: 12px;
    padding: 18px 22px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    justify-content: space-between;
    font-size: 0.92rem;
    max-width: 920px;
    margin-inline: auto;
}
.cookie-banner p { margin: 0; flex: 1 1 280px; min-width: 0; }
.cookie-banner a { color: #00E5FF; border-bottom: 1px dashed #00E5FF; }
.cookie-banner a:hover { color: #FFFFFF; border-bottom-color: #FFFFFF; }
.cookie-banner .cookie-accept {
    background: #00E5FF;
    color: #0F172A;
    border: none;
    padding: 10px 22px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 0.92rem;
    cursor: pointer;
    transition: background .2s ease;
}
.cookie-banner .cookie-accept:hover { background: #FFFFFF; }

/* ============== UTILITIES ============== */

.screen-reader-text {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}

.wp-caption { max-width: 100%; margin-bottom: 1em; }
.wp-caption-text {
    font-size: 0.85rem;
    color: #5A6B7C;
    font-family: "JetBrains Mono", monospace;
}
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }

/* ============== RESPONSIVE ============== */

@media (max-width: 960px) {
    .header-inner { gap: 16px; }
}

@media (max-width: 600px) {
    .nav-toggle { display: inline-block; }
    .primary-nav {
        flex-basis: 100%;
        order: 3;
    }
    .primary-nav[hidden] { display: none !important; }
    .primary-nav ul {
        flex-direction: column;
        gap: 2px;
        margin-top: 12px;
    }
    .primary-nav a {
        display: block;
        padding: 10px 14px;
    }

    .entry { padding: 22px 18px; }
    .section-block { padding: 24px 18px; }
    .hero-section { padding: 36px 22px; }

    .card-grid { grid-template-columns: 1fr; gap: 18px; }
    .footer-widgets { gap: 20px; }
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .cookie-banner .cookie-accept { width: 100%; }
}
