/*
Theme Name: dds_spectacularsaudi.com
Author: Илья Воронцов
Description: Редакционное медиа о мобильных процессорах и NPU в смартфонах с упором на практические сценарии использования, сравнения платформ и понятные объяснения технологий.
Version: 1.1
Text Domain: dds_spectacularsaudi
*/

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #EAECEE;
    background: #0E1217;
    overflow-x: hidden;
}

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

a { color: #00E5C8; text-decoration: none; transition: color .2s ease; }
a:hover { color: #FF7C43; }

h1, h2, h3, h4, h5, h6 {
    color: #EAECEE;
    font-weight: 700;
    line-height: 1.25;
    margin: 1.4em 0 .6em;
    letter-spacing: -0.01em;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

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

blockquote {
    margin: 1.5em 0;
    padding: 1em 1.2em;
    background: #0B0F14;
    border-left: 3px solid #00E5C8;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: .92rem;
    color: #BFC7CC;
    border-radius: 0 6px 6px 0;
    position: relative;
}
blockquote::before {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #00E5C8 0%, rgba(0,229,200,0.2) 100%);
}

code, kbd, samp, pre {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: .9em;
}
code {
    background: #0B0F14;
    color: #00E5C8;
    padding: .12em .4em;
    border-radius: 3px;
    border: 1px solid rgba(0,229,200,0.15);
}
pre {
    background: #0B0F14;
    color: #DDE3E7;
    padding: 1em 1.2em;
    border-radius: 6px;
    overflow-x: auto;
    border: 1px solid #1E262E;
    margin: 1em 0;
}
pre code { background: none; border: none; padding: 0; color: inherit; }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    background: #141A21;
    border: 1px solid #232C36;
}
th, td {
    border: 1px solid #232C36;
    padding: .7em .9em;
    text-align: left;
}
th {
    background: #1A2129;
    color: #EAECEE;
    font-weight: 600;
}
td { color: #C8CFD3; }

hr {
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #232C36, transparent);
    margin: 2em 0;
}

/* === LAYOUT CONTAINER === */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* === HEADER === */
.site-header {
    background: #0B0F14;
    border-bottom: 1px solid #1A2129;
    padding: 1.1em 0;
}
.header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5em;
    flex-wrap: wrap;
}
.brand {
    display: flex;
    align-items: center;
    gap: .9em;
    min-width: 0;
}
.brand-logo {
    width: 44px;
    height: 44px;
    display: block;
    flex-shrink: 0;
}
.brand-text { min-width: 0; }
.brand-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #EAECEE;
    margin: 0;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 280px;
}
.brand-name a { color: inherit; }
.brand-name a:hover { color: #00E5C8; }
.brand-desc {
    font-size: .78rem;
    color: #8B949B;
    margin: .15em 0 0;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* SoC Power Index — header gadget */
.soc-power {
    display: flex;
    align-items: center;
    gap: .6em;
    padding: .5em .9em;
    background: #141A21;
    border: 1px solid #1F2730;
    border-radius: 8px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .82rem;
}
.soc-power-label {
    color: #8B949B;
    text-transform: uppercase;
    font-size: .68rem;
    letter-spacing: .08em;
}
.soc-power-value {
    color: #00E5C8;
    font-weight: 700;
    font-size: .95rem;
}
.soc-power-bar {
    width: 60px;
    height: 6px;
    background: #0B0F14;
    border-radius: 3px;
    overflow: hidden;
    position: relative;
}
.soc-power-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #00E5C8, #FF7C43);
    transition: width 1.4s ease;
}

/* === NAVIGATION === */
.main-nav { margin-left: auto; }
.main-nav ul {
    display: flex;
    gap: 1.4em;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}
.main-nav a {
    color: #C8CFD3;
    font-weight: 500;
    font-size: .95rem;
    padding: .35em 0;
    position: relative;
    transition: color .2s ease;
}
.main-nav a::after {
    content: '';
    position: absolute;
    left: 0; bottom: -2px;
    width: 0; height: 2px;
    background: #00E5C8;
    transition: width .25s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #00E5C8;
}
.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    width: 100%;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #1F2730;
    color: #EAECEE;
    width: 42px;
    height: 42px;
    border-radius: 6px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
}
.nav-toggle[hidden] { display: none !important; }
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
    display: block;
    width: 20px;
    height: 2px;
    background: #EAECEE;
    position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
    content: '';
    position: absolute;
    left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* === MAIN CONTENT === */
.site-main {
    padding: 2em 0 3em;
    min-height: 50vh;
}

.layout {
    display: grid;
    gap: 2em;
    align-items: start;
}
.layout--with-sidebar {
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
}
.layout--full {
    display: block;
}
.layout--full .content-wrap {
    width: 85%;
    margin-inline: auto;
}

/* === BREADCRUMBS === */
.breadcrumbs {
    font-size: .85rem;
    color: #8B949B;
    margin-bottom: 1.4em;
    padding: .6em .9em;
    background: #141A21;
    border: 1px solid #1A2129;
    border-radius: 6px;
    overflow-x: auto;
    white-space: nowrap;
}
.breadcrumbs a { color: #00E5C8; }
.breadcrumbs a:hover { color: #FF7C43; }
.breadcrumbs .sep {
    color: #4D5862;
    margin: 0 .35em;
}
.breadcrumbs span:last-child { color: #C8CFD3; }

/* === CARDS (post cards) === */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.4em;
}

.card {
    display: flex;
    flex-direction: column;
    background: #141A21;
    border: 1px solid #1F2730;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
    min-width: 0;
}
.card:hover {
    transform: translateY(-3px);
    border-color: #00E5C8;
    box-shadow: 0 8px 24px rgba(0,229,200,0.08);
}

.card-thumb {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #0B0F14;
}

.card-body {
    flex: 1;
    padding: 1.1em 1.2em 1.3em;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.card-meta {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .72rem;
    color: #8B949B;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: .55em;
    display: flex;
    flex-wrap: wrap;
    gap: .5em .8em;
}
.card-meta a { color: #00E5C8; }
.card-cats { color: #FF7C43; }

.card-title {
    font-size: 1.15rem;
    margin: 0 0 .55em;
    line-height: 1.3;
}
.card-title a { color: #EAECEE; }
.card-title a:hover { color: #00E5C8; }

.card-excerpt {
    color: #BFC7CC;
    font-size: .92rem;
    flex: 1;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-excerpt a { color: #00E5C8; }

.card-more {
    margin-top: .9em;
    align-self: flex-start;
}

/* Horizontal cards (blog list) */
.card--row {
    flex-direction: row;
    align-items: stretch;
}
.card--row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
}
.card--row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card--row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card--row .card-body { flex: 1; min-width: 0; }

/* === BUTTONS === */
.btn {
    display: inline-block;
    padding: .55em 1.1em;
    border-radius: 8px;
    border: 1px solid #00E5C8;
    background: rgba(0,229,200,0.06);
    color: #00E5C8;
    font-weight: 600;
    font-size: .9rem;
    font-family: inherit;
    cursor: pointer;
    transition: all .2s ease;
    line-height: 1.3;
    text-align: center;
}
.btn:hover {
    background: #00E5C8;
    color: #0B0F14;
}
.btn--deep {
    border-color: #00E5C8;
    box-shadow: 0 0 0 0 rgba(0,229,200,0.45);
    animation: btnPulse 2.4s infinite ease-in-out;
}
.btn--deep:hover {
    box-shadow: 0 0 18px 2px rgba(0,229,200,0.55);
    animation: none;
}
@keyframes btnPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0,229,200,0.25); }
    50% { box-shadow: 0 0 14px 2px rgba(0,229,200,0.45); }
}

.btn--ghost {
    border-color: #2A333D;
    background: transparent;
    color: #C8CFD3;
}
.btn--ghost:hover {
    border-color: #FF7C43;
    background: rgba(255,124,67,0.06);
    color: #FF7C43;
}

/* === FRONT PAGE BLOCKS === */
.front-block {
    background: #141A21;
    border: 1px solid #1F2730;
    border-radius: 12px;
    padding: 2em 2em;
    margin-bottom: 2em;
    position: relative;
    overflow: hidden;
}
.front-block::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00E5C8, transparent);
    opacity: .4;
}
.front-block h2 {
    margin-top: 0;
    color: #EAECEE;
}
.front-block-eyebrow {
    display: inline-block;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .72rem;
    color: #00E5C8;
    text-transform: uppercase;
    letter-spacing: .12em;
    margin-bottom: .8em;
    padding: .25em .6em;
    background: rgba(0,229,200,0.08);
    border: 1px solid rgba(0,229,200,0.25);
    border-radius: 4px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2em;
    margin-top: 1.4em;
}
.feature-card {
    background: #0E1217;
    border: 1px solid #1F2730;
    border-radius: 8px;
    padding: 1.2em;
    min-width: 0;
}
.feature-card-icon {
    width: 36px;
    height: 36px;
    color: #00E5C8;
    margin-bottom: .7em;
}
.feature-card-icon svg { width: 100%; height: 100%; display: block; }
.feature-card h3 {
    margin: 0 0 .5em;
    font-size: 1.05rem;
}
.feature-card p {
    margin: 0;
    font-size: .9rem;
    color: #BFC7CC;
}

.spec-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1em;
    margin-top: 1.2em;
}
.spec-item {
    background: #0E1217;
    border: 1px solid #1F2730;
    border-radius: 8px;
    padding: 1em 1.2em;
    min-width: 0;
}
.spec-item-label {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .68rem;
    color: #8B949B;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .25em;
}
.spec-item-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: #00E5C8;
    font-family: 'JetBrains Mono', Consolas, monospace;
}
.spec-item-value--alt { color: #FF7C43; }
.spec-item-sub {
    font-size: .78rem;
    color: #8B949B;
    margin-top: .25em;
}

/* AI Capability Map (in single posts) */
.capability-map {
    background: #0B0F14;
    border: 1px solid #1F2730;
    border-radius: 10px;
    padding: 1em 1.2em;
    margin: 1.5em 0;
}
.capability-map-title {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .75rem;
    color: #8B949B;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 .8em;
}
.capability-map-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
    gap: .6em;
}
.capability-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .35em;
    padding: .8em .4em;
    background: #141A21;
    border: 1px solid #1F2730;
    border-radius: 6px;
    color: #C8CFD3;
    font-size: .78rem;
    text-align: center;
    cursor: pointer;
    transition: all .2s ease;
}
.capability-item:hover {
    border-color: #00E5C8;
    color: #00E5C8;
    transform: translateY(-2px);
}
.capability-item svg {
    width: 24px;
    height: 24px;
}

/* SoC Compare radial (sidebar / below post) */
.soc-compare {
    background: #141A21;
    border: 1px solid #1F2730;
    border-radius: 10px;
    padding: 1.2em;
    margin: 1.5em 0;
}
.soc-compare-title {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .75rem;
    color: #8B949B;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin: 0 0 1em;
}
.soc-compare-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1em;
}
.soc-compare-cell {
    text-align: center;
    min-width: 0;
}
.soc-compare-cell h4 {
    margin: 0 0 .5em;
    font-size: .9rem;
    color: #EAECEE;
}
.radial-wrap {
    position: relative;
    width: 100%;
    max-width: 110px;
    margin: 0 auto .5em;
    aspect-ratio: 1;
}
.radial-wrap svg { width: 100%; height: 100%; display: block; }
.radial-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 700;
    color: #00E5C8;
    font-size: 1.1rem;
}
.soc-compare-cell:nth-child(2) .radial-value { color: #FF7C43; }
.soc-compare-metric {
    font-size: .78rem;
    color: #8B949B;
    font-family: 'JetBrains Mono', Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* === SIDEBAR === */
.sidebar {
    min-width: 0;
}
.widget {
    background: #141A21;
    border: 1px solid #1F2730;
    border-radius: 10px;
    padding: 1.2em 1.3em;
    margin-bottom: 1.4em;
    color: #C8CFD3;
}
.widget-title {
    font-size: .95rem;
    margin: 0 0 .9em;
    padding-bottom: .6em;
    border-bottom: 1px solid #232C36;
    color: #EAECEE;
    text-transform: uppercase;
    letter-spacing: .06em;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-weight: 700;
}
.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.widget li {
    padding: .5em 0;
    border-bottom: 1px dashed #1F2730;
}
.widget li:last-child { border-bottom: none; }
.widget a { color: #C8CFD3; }
.widget a:hover { color: #00E5C8; }

.widget.widget_recent_entries li {
    font-size: .92rem;
}
.widget.widget_recent_entries .post-date {
    display: block;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .7rem;
    color: #8B949B;
    margin-top: .15em;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* === FOOTER === */
.site-footer {
    background: #0B0F14;
    border-top: 1px solid #1A2129;
    padding: 2.5em 0 1.5em;
    color: #BFC7CC;
    margin-top: 3em;
}
.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2em;
    margin-bottom: 2em;
}
.footer-col { min-width: 0; }
.footer-col .widget {
    background: transparent;
    border: 1px solid #1A2129;
    color: #BFC7CC;
}
.footer-col .widget-title {
    color: #EAECEE;
}
.footer-col .widget a { color: #BFC7CC; }
.footer-col .widget a:hover { color: #00E5C8; }
.footer-col .widget li { border-bottom: 1px dashed #1A2129; }

/* Schematic chip block in footer */
.chip-schematic {
    background: #0E1217;
    border: 1px solid #1A2129;
    border-radius: 10px;
    padding: 1.5em;
    margin-bottom: 2em;
    text-align: center;
}
.chip-schematic h3 {
    margin: 0 0 1em;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .85rem;
    color: #8B949B;
    text-transform: uppercase;
    letter-spacing: .1em;
    font-weight: 700;
}
.chip-svg-wrap {
    position: relative;
    max-width: 380px;
    margin: 0 auto;
}
.chip-svg-wrap svg { width: 100%; height: auto; display: block; }
.chip-region {
    cursor: pointer;
    transition: opacity .2s ease;
}
.chip-region:hover { opacity: .85; }
.chip-tooltip {
    position: absolute;
    background: #00E5C8;
    color: #0B0F14;
    padding: .4em .7em;
    border-radius: 4px;
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .75rem;
    font-weight: 600;
    pointer-events: none;
    transform: translate(-50%, -120%);
    white-space: nowrap;
    z-index: 5;
}
.chip-tooltip[hidden] { display: none !important; }

.site-info {
    text-align: center;
    font-size: .85rem;
    color: #8B949B;
    padding-top: 1.2em;
    border-top: 1px solid #1A2129;
}

/* === PAGINATION === */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: .4em;
    justify-content: center;
    margin: 2.5em 0 1em;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 .7em;
    border: 1px solid #1F2730;
    border-radius: 6px;
    color: #C8CFD3;
    font-size: .9rem;
    font-family: 'JetBrains Mono', Consolas, monospace;
    background: #141A21;
    transition: all .2s ease;
}
.pagination a:hover {
    border-color: #00E5C8;
    color: #00E5C8;
}
.pagination .current {
    background: #00E5C8;
    color: #0B0F14;
    border-color: #00E5C8;
    font-weight: 700;
}

/* === SEARCH FORM === */
.search-form {
    display: flex;
    gap: .5em;
    max-width: 480px;
    margin: 1em 0;
}
.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: .6em .9em;
    background: #0B0F14;
    border: 1px solid #1F2730;
    border-radius: 6px;
    color: #EAECEE;
    font-family: inherit;
    font-size: .95rem;
}
.search-form input[type="search"]:focus {
    outline: none;
    border-color: #00E5C8;
}
.search-form button {
    padding: .6em 1.1em;
    background: #00E5C8;
    color: #0B0F14;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: background .2s ease;
}
.search-form button:hover { background: #FF7C43; color: #fff; }

/* === SINGLE POST === */
.post-header {
    margin-bottom: 1.5em;
}
.post-title {
    font-size: 2rem;
    margin: .3em 0 .5em;
    line-height: 1.2;
}
.lead {
    font-size: .98rem;
    color: #BFC7CC;
    margin: .3em 0 1em;
    max-width: 720px;
}
.post-meta {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .78rem;
    color: #8B949B;
    text-transform: uppercase;
    letter-spacing: .06em;
    display: flex;
    flex-wrap: wrap;
    gap: .4em 1em;
}
.post-meta a { color: #00E5C8; }
.post-thumbnail {
    margin: 1em 0 1.5em;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #1F2730;
}
.post-thumbnail img { width: 100%; display: block; }
.post-content {
    color: #DDE3E7;
}
.post-content img {
    border-radius: 8px;
    margin: 1em 0;
}
.post-content a { border-bottom: 1px dashed rgba(0,229,200,0.4); }
.post-content a:hover { border-bottom-color: #FF7C43; }

.post-tags {
    margin-top: 2em;
    padding-top: 1.2em;
    border-top: 1px solid #1F2730;
    font-size: .85rem;
    color: #8B949B;
    display: flex;
    flex-wrap: wrap;
    gap: .5em;
    align-items: center;
}
.post-tags a {
    background: #141A21;
    border: 1px solid #1F2730;
    padding: .2em .7em;
    border-radius: 14px;
    font-size: .8rem;
}

/* === COMMENTS === */
.comments-area {
    margin-top: 2.5em;
    padding-top: 1.5em;
    border-top: 1px solid #1F2730;
}
.comments-title {
    font-size: 1.3rem;
    margin: 0 0 1em;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2em;
}
.comment-list .comment,
.comment-list .pingback {
    background: #141A21;
    border: 1px solid #1F2730;
    border-radius: 8px;
    padding: 1em 1.2em;
    margin-bottom: 1em;
}
.comment-list .children { margin-top: 1em; padding-left: 1.2em; list-style: none; }
.comment-author { font-weight: 700; color: #EAECEE; }
.comment-author a { color: #00E5C8; }
.comment-meta {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: .72rem;
    color: #8B949B;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin: .3em 0 .8em;
}
.comment-content p { margin: 0 0 .5em; }
.comment-reply-link {
    display: inline-block;
    margin-top: .5em;
    font-size: .85rem;
    color: #00E5C8;
}

.comment-respond {
    background: #141A21;
    border: 1px solid #1F2730;
    border-radius: 8px;
    padding: 1.2em 1.4em;
    margin-top: 1.5em;
}
.comment-respond label {
    display: block;
    font-size: .85rem;
    color: #C8CFD3;
    margin-bottom: .3em;
}
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
    width: 100%;
    padding: .55em .8em;
    background: #0B0F14;
    border: 1px solid #1F2730;
    border-radius: 6px;
    color: #EAECEE;
    font-family: inherit;
    font-size: .95rem;
    margin-bottom: .8em;
}
.comment-respond textarea { min-height: 120px; resize: vertical; }
.comment-respond input:focus,
.comment-respond textarea:focus { outline: none; border-color: #00E5C8; }
.comment-respond .submit {
    background: #00E5C8;
    color: #0B0F14;
    border: none;
    padding: .65em 1.4em;
    border-radius: 6px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background .2s ease;
}
.comment-respond .submit:hover { background: #FF7C43; color: #fff; }

/* === COOKIE BANNER === */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1em;
    right: 1em;
    bottom: 1em;
    z-index: 999;
    background: #0B0F14;
    border: 1px solid #00E5C8;
    border-radius: 10px;
    padding: 1em 1.2em;
    color: #EAECEE;
    display: flex;
    align-items: center;
    gap: 1em;
    flex-wrap: wrap;
    box-shadow: 0 8px 28px rgba(0,0,0,0.6), 0 0 12px rgba(0,229,200,0.15);
    max-width: 720px;
    margin: 0 auto;
}
.cookie-banner-text {
    flex: 1;
    min-width: 200px;
    font-size: .88rem;
    color: #C8CFD3;
}
.cookie-banner-text strong { color: #EAECEE; }
.cookie-banner .btn { white-space: nowrap; }

/* === 404 === */
.error-404 {
    text-align: center;
    padding: 3em 0;
}
.error-404 .code-404 {
    font-family: 'JetBrains Mono', Consolas, monospace;
    font-size: 5rem;
    font-weight: 700;
    color: #00E5C8;
    margin: 0;
    line-height: 1;
    letter-spacing: -0.04em;
}
.error-404 h1 {
    margin: .3em 0 .5em;
}
.error-404 p {
    color: #BFC7CC;
    max-width: 480px;
    margin: 0 auto 1.5em;
}

/* === CATEGORY BADGES on cards === */
.cat-badge {
    display: inline-block;
    padding: .15em .55em;
    background: rgba(255,124,67,0.1);
    border: 1px solid rgba(255,124,67,0.3);
    color: #FF7C43;
    border-radius: 3px;
    font-size: .68rem;
    font-family: 'JetBrains Mono', Consolas, monospace;
    text-transform: uppercase;
    letter-spacing: .05em;
}

/* === RESPONSIVE === */
@media (max-width: 960px) {
    .layout--with-sidebar {
        grid-template-columns: 1fr;
    }
    .footer-cols {
        grid-template-columns: 1fr 1fr;
    }
    .brand-name { max-width: 220px; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    h1 { font-size: 1.7rem; }
    h2 { font-size: 1.35rem; }

    .nav-toggle {
        display: inline-flex;
    }
    .main-nav {
        position: fixed;
        top: 0; right: 0;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        background: #0B0F14;
        border-left: 1px solid #1A2129;
        padding: 4em 1.5em 2em;
        transform: translateX(100%);
        transition: transform .25s ease;
        z-index: 998;
        overflow-y: auto;
    }
    .main-nav[data-open="true"] {
        transform: translateX(0);
    }
    .main-nav ul {
        flex-direction: column;
        gap: .3em;
    }
    .main-nav li {
        border-bottom: 1px solid #1A2129;
    }
    .main-nav a {
        display: block;
        padding: .8em 0;
    }

    .soc-power {
        font-size: .75rem;
        padding: .4em .7em;
    }
    .soc-power-bar { width: 40px; }

    .layout--full .content-wrap {
        width: 100%;
    }

    .front-block {
        padding: 1.4em 1.2em;
    }

    .footer-cols {
        grid-template-columns: 1fr;
        gap: 1.2em;
    }

    /* Horizontal cards collapse on mobile */
    .card--row {
        flex-direction: column;
    }
    .card--row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card--row .card-thumb-wrap a {
        position: static;
    }
    .card--row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .post-title { font-size: 1.5rem; }

    .cookie-banner {
        left: .6em;
        right: .6em;
        bottom: .6em;
        padding: .9em 1em;
    }

    /* SoC compare on mobile — horizontal scroll preserved by grid */
    .soc-compare-row { gap: .6em; }
}

/* Mobile drawer backdrop */
.nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 997;
    opacity: 0;
    transition: opacity .2s ease;
    pointer-events: none;
}
.nav-backdrop[hidden] { display: none !important; }
.nav-backdrop[data-open="true"] {
    opacity: 1;
    pointer-events: auto;
}

/* Recent comments / category widget cleanup */
.widget select {
    width: 100%;
    padding: .5em;
    background: #0B0F14;
    border: 1px solid #1F2730;
    color: #EAECEE;
    border-radius: 6px;
}
