/*
Theme Name: dwdclientportals.com
Author: Илья Корнеев
Version: 1.1
Text Domain: dwdcp
*/

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

html {
    scroll-behavior: smooth;
}

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

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

a {
    color: #00E5C0;
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
    color: #FF6B4A;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Space Grotesk", "Inter", sans-serif;
    color: #FFFFFF;
    line-height: 1.25;
    margin: 0 0 0.8em;
    font-weight: 600;
    letter-spacing: -0.01em;
}

h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1.1em;
}

code, pre, kbd {
    font-family: "JetBrains Mono", "Consolas", monospace;
    background: #1E2A3A;
    color: #00E5C0;
    border-radius: 4px;
    padding: 0.1em 0.35em;
    font-size: 0.92em;
}

pre {
    padding: 1em;
    overflow-x: auto;
    border-left: 2px solid #00E5C0;
}

blockquote {
    margin: 1.2em 0;
    padding: 0.8em 1.2em;
    border-left: 3px solid #00E5C0;
    background: #121A2B;
    color: #B0C4DE;
    font-style: italic;
}

hr {
    border: 0;
    border-top: 1px dashed #2A3A52;
    margin: 2em 0;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2em 0;
    border: 1px solid #2A3A52;
}

table th, table td {
    border: 1px solid #2A3A52;
    padding: 0.6em 0.9em;
    text-align: left;
}

table th {
    background: #1E2A3A;
    color: #00E5C0;
    font-weight: 600;
}

table tr:nth-child(even) td {
    background: rgba(30, 42, 58, 0.4);
}

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

li {
    margin-bottom: 0.35em;
}

/* ========== Layout ========== */
.site-shell {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    width: 100%;
}

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 24px;
}

.main-area {
    padding: 40px 0 60px;
    flex: 1 0 auto;
}

/* ========== Dot-grid background overlay ========== */
.grid-points {
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(0, 229, 192, 0.18) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.55;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0));
}

/* ========== Header ========== */
.top-strip {
    background: #060A14;
    color: #B0C4DE;
    font-size: 0.82rem;
    padding: 6px 0;
    border-bottom: 1px solid #1E2A3A;
    font-family: "JetBrains Mono", "Consolas", monospace;
    letter-spacing: 0.02em;
}

.top-strip-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.top-strip .signal-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #00E5C0;
    margin-right: 6px;
    box-shadow: 0 0 8px #00E5C0;
    animation: pulseDot 2s infinite;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.3); }
}

.site-top {
    position: relative;
    background: linear-gradient(180deg, #0A0F1F 0%, #121A2B 100%);
    border-bottom: 1px solid #1E2A3A;
    overflow: hidden;
}

.site-top-inner {
    display: flex;
    align-items: center;
    gap: 28px;
    padding: 22px 0;
    position: relative;
    z-index: 2;
}

.brand-block {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}

.brand-logo,
.brand-svg {
    width: 52px;
    height: 52px;
    flex-shrink: 0;
    border-radius: 8px;
    background: #1E2A3A;
    padding: 6px;
}

.brand-svg {
    color: #00E5C0;
}

.brand-text {
    min-width: 0;
}

.brand-name {
    display: block;
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.08rem;
    font-weight: 600;
    color: #FFFFFF;
    line-height: 1.25;
    word-break: break-word;
}

.brand-name a {
    color: inherit;
}

.brand-tagline {
    display: block;
    font-size: 0.8rem;
    color: #B0C4DE;
    margin-top: 4px;
    line-height: 1.4;
}

.nav-wrap {
    display: flex;
    align-items: center;
    gap: 14px;
}

.burger {
    display: none;
    background: transparent;
    border: 1px solid #2A3A52;
    color: #00E5C0;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.9rem;
}

.burger:hover {
    border-color: #00E5C0;
}

.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 4px;
}

.primary-nav a {
    display: block;
    padding: 9px 14px;
    color: #B0C4DE;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid transparent;
    transition: all 0.2s ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    color: #00E5C0;
    border-color: #1E2A3A;
    background: #121A2B;
}

/* ========== Buttons ========== */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 500;
    border: 1px solid #2A3A52;
    background: #1E2A3A;
    color: #FFFFFF;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn:hover {
    color: #00E5C0;
    border-color: #00E5C0;
    background: #121A2B;
}

.btn-cta {
    position: relative;
    padding: 12px 24px;
    color: #00E5C0;
    background: transparent;
    border: 1px solid #00E5C0;
    outline: 1px solid rgba(0, 229, 192, 0.25);
    outline-offset: 3px;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.btn-cta:hover {
    background: #00E5C0;
    color: #0A0F1F;
    box-shadow: 0 0 24px rgba(0, 229, 192, 0.5);
    outline-color: rgba(0, 229, 192, 0.4);
}

/* ========== Hero / sections ========== */
.hero {
    position: relative;
    padding: 70px 0 60px;
    background: linear-gradient(135deg, #0A0F1F 0%, #1E2A3A 100%);
    overflow: hidden;
    border-bottom: 1px solid #1E2A3A;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 820px;
}

.hero-kicker {
    display: inline-block;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: #00E5C0;
    background: rgba(0, 229, 192, 0.08);
    border: 1px solid rgba(0, 229, 192, 0.3);
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 18px;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 2.6rem;
    margin-bottom: 18px;
    line-height: 1.15;
}

.hero-desc {
    color: #B0C4DE;
    font-size: 1.1rem;
    margin-bottom: 26px;
    max-width: 680px;
}

.hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.section-band {
    padding: 56px 0;
    position: relative;
}

.section-band.alt {
    background: #121A2B;
    border-top: 1px solid #1E2A3A;
    border-bottom: 1px solid #1E2A3A;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.section-label {
    font-family: "JetBrains Mono", monospace;
    color: #00E5C0;
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 10px;
    display: block;
}

.section-lead {
    color: #B0C4DE;
    max-width: 720px;
    margin-bottom: 36px;
    font-size: 1.05rem;
}

/* ========== Puzzle blocks on front page ========== */
.puzzle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.puzzle-item {
    position: relative;
    background: #1E2A3A;
    border: 1px solid #2A3A52;
    border-radius: 10px;
    padding: 28px;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
}

.puzzle-item::before {
    content: "";
    position: absolute;
    top: 0; left: 0;
    width: 40px; height: 2px;
    background: #00E5C0;
    transition: width 0.3s ease;
}

.puzzle-item:hover {
    border-color: #00E5C0;
    transform: translateY(-3px);
    box-shadow: 0 10px 30px -10px rgba(0, 229, 192, 0.25);
}

.puzzle-item:hover::before {
    width: 100%;
}

.puzzle-icon {
    width: 46px;
    height: 46px;
    color: #00E5C0;
    margin-bottom: 16px;
}

.puzzle-item h3 {
    font-size: 1.25rem;
    margin-bottom: 10px;
}

.puzzle-desc {
    color: #B0C4DE;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 14px;
}

.puzzle-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, margin-top 0.3s ease;
}

.puzzle-item:hover .puzzle-tags {
    max-height: 100px;
    margin-top: 6px;
}

.puzzle-tag {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: #00E5C0;
    background: rgba(0, 229, 192, 0.1);
    border: 1px solid rgba(0, 229, 192, 0.3);
    padding: 3px 9px;
    border-radius: 12px;
}

/* ========== Feature steps ========== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.step-item {
    position: relative;
    padding: 24px 20px;
    background: #121A2B;
    border: 1px solid #1E2A3A;
    border-radius: 8px;
}

.step-num {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.75rem;
    color: #FF6B4A;
    letter-spacing: 0.1em;
    margin-bottom: 10px;
    display: block;
}

.step-item h4 {
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.step-item p {
    color: #B0C4DE;
    font-size: 0.92rem;
    margin: 0;
}

/* ========== Compatibility matrix ========== */
.matrix {
    background: #121A2B;
    border: 1px solid #1E2A3A;
    border-radius: 10px;
    overflow: hidden;
}

.matrix table {
    margin: 0;
    border: 0;
}

.matrix table th,
.matrix table td {
    text-align: center;
    border-color: #1E2A3A;
    padding: 12px;
}

.matrix table th:first-child,
.matrix table td:first-child {
    text-align: left;
    font-weight: 500;
}

.dot-mark {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2A3A52;
}

.dot-mark.yes {
    background: #00E5C0;
    box-shadow: 0 0 8px rgba(0, 229, 192, 0.6);
}

.dot-mark.partial {
    background: #FF6B4A;
    box-shadow: 0 0 8px rgba(255, 107, 74, 0.6);
}

/* ========== Main content + sidebar ========== */
.content-grid {
    display: grid;
    gap: 34px;
    grid-template-columns: 67% 27%;
    justify-content: space-between;
    align-items: start;
}

.content-grid.no-side {
    grid-template-columns: 85%;
    justify-content: center;
}

.content-grid.full-wide {
    display: block;
    max-width: 85%;
    margin: 0 auto;
}

.main-col {
    min-width: 0;
}

.side-col {
    min-width: 0;
}

/* ========== Post / page article ========== */
.article {
    background: #121A2B;
    border: 1px solid #1E2A3A;
    border-radius: 10px;
    padding: 32px;
    margin-bottom: 30px;
}

.article-title {
    font-size: 2rem;
    margin-bottom: 14px;
}

.article-meta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: #B0C4DE;
    margin-bottom: 22px;
    padding-bottom: 14px;
    border-bottom: 1px solid #1E2A3A;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.article-meta a {
    color: #B0C4DE;
}

.article-meta a:hover {
    color: #00E5C0;
}

.article-thumb {
    margin: 0 -32px 24px;
    border-bottom: 1px solid #1E2A3A;
}

.article-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.article-body img {
    border-radius: 6px;
    margin: 1em 0;
}

.article-body h2,
.article-body h3 {
    margin-top: 1.6em;
}

.article-tags {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #1E2A3A;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.article-tags .tag-label {
    font-family: "JetBrains Mono", monospace;
    color: #B0C4DE;
    font-size: 0.82rem;
    margin-right: 6px;
}

.article-tags a {
    display: inline-block;
    padding: 4px 11px;
    background: rgba(0, 229, 192, 0.08);
    border: 1px solid rgba(0, 229, 192, 0.3);
    border-radius: 12px;
    font-size: 0.85rem;
    color: #00E5C0;
}

.article-tags a:hover {
    background: #00E5C0;
    color: #0A0F1F;
}

/* ========== Post cards ========== */
.posts-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 36px;
}

.card {
    display: flex;
    flex-direction: column;
    background: #1E2A3A;
    border: 1px solid #2A3A52;
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.25s ease;
}

.card:hover {
    border-color: #00E5C0;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px -8px rgba(0, 229, 192, 0.2);
}

.card-horizontal {
    flex-direction: row;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: #0A0F1F;
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb-wrap img {
    transform: scale(1.05);
}

.card-body {
    flex: 1;
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
    line-height: 1.3;
}

.card-title a {
    color: #FFFFFF;
}

.card-title a:hover {
    color: #00E5C0;
}

.card-meta {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
    color: #B0C4DE;
    margin-bottom: 10px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.card-meta a {
    color: #B0C4DE;
}

.card-meta a:hover {
    color: #00E5C0;
}

.card-excerpt {
    color: #B0C4DE;
    font-size: 0.95rem;
    flex: 1;
    margin-bottom: 14px;
}

.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-more {
    align-self: flex-start;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.85rem;
    color: #00E5C0;
    letter-spacing: 0.02em;
}

.card-more::after {
    content: " →";
    transition: margin-left 0.2s ease;
}

.card-more:hover::after {
    margin-left: 4px;
}

/* Integration maturity bar */
.maturity-bar {
    display: flex;
    gap: 3px;
    margin: 10px 0 14px;
    width: 140px;
}

.maturity-level {
    height: 4px;
    flex: 1;
    background: #2A3A52;
    border-radius: 2px;
}

.maturity-level.on {
    background: #00E5C0;
    box-shadow: 0 0 6px rgba(0, 229, 192, 0.5);
}

.maturity-label {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.72rem;
    color: #B0C4DE;
    margin-top: -10px;
    margin-bottom: 12px;
    letter-spacing: 0.03em;
}

/* ========== Sidebar ========== */
.sidebar {
    position: sticky;
    top: 20px;
}

.widget {
    background: #121A2B;
    border: 1px solid #1E2A3A;
    border-radius: 10px;
    padding: 22px;
    margin-bottom: 20px;
}

.widget-title {
    font-size: 1rem;
    color: #00E5C0;
    font-family: "JetBrains Mono", monospace;
    letter-spacing: 0.03em;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #1E2A3A;
}

.widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget ul li {
    padding: 7px 0;
    border-bottom: 1px dashed #1E2A3A;
}

.widget ul li:last-child {
    border-bottom: 0;
}

.widget ul li a {
    color: #B0C4DE;
}

.widget ul li a:hover {
    color: #00E5C0;
}

.widget select {
    width: 100%;
    padding: 8px 10px;
    background: #0A0F1F;
    border: 1px solid #2A3A52;
    color: #FFFFFF;
    border-radius: 6px;
}

/* ========== Search form ========== */
.search-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}

.search-form .search-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    background: #0A0F1F;
    border: 1px solid #2A3A52;
    color: #FFFFFF;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.search-form .search-input:focus {
    outline: none;
    border-color: #00E5C0;
}

.search-form .search-submit {
    padding: 10px 18px;
    background: #00E5C0;
    color: #0A0F1F;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
    font-size: 0.9rem;
}

.search-form .search-submit:hover {
    background: #FF6B4A;
    color: #FFFFFF;
}

/* ========== Pagination ========== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
    margin: 40px 0 10px;
}

.pagination .page-numbers {
    display: inline-block;
    min-width: 40px;
    text-align: center;
    padding: 9px 14px;
    background: #1E2A3A;
    border: 1px solid #2A3A52;
    border-radius: 6px;
    color: #B0C4DE;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.92rem;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
    background: #00E5C0;
    color: #0A0F1F;
    border-color: #00E5C0;
}

.pagination .page-numbers.dots {
    background: transparent;
    border-color: transparent;
}

/* ========== Breadcrumbs ========== */
.breadcrumbs {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.82rem;
    color: #B0C4DE;
    padding: 14px 0;
    margin-bottom: 18px;
    border-bottom: 1px solid #1E2A3A;
}

.breadcrumbs a {
    color: #B0C4DE;
}

.breadcrumbs a:hover {
    color: #00E5C0;
}

.breadcrumbs .sep {
    color: #00E5C0;
    margin: 0 6px;
}

/* ========== Footer ========== */
.site-bottom {
    flex-shrink: 0;
    background: #060A14;
    color: #B0C4DE;
    border-top: 1px solid #1E2A3A;
    margin-top: 40px;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    padding: 50px 0 36px;
}

.footer-col .widget {
    background: transparent;
    border: 0;
    padding: 0;
    margin-bottom: 0;
}

.footer-col .widget-title {
    border-color: #1E2A3A;
}

.footer-col .widget ul li {
    border-bottom-color: #1E2A3A;
}

.site-legal {
    border-top: 1px solid #1E2A3A;
    padding: 18px 0;
    text-align: center;
    font-size: 0.85rem;
    color: #B0C4DE;
    font-family: "JetBrains Mono", monospace;
}

/* ========== Cookie banner ========== */
.cookie-bar {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 100;
    background: #121A2B;
    border: 1px solid #00E5C0;
    border-radius: 10px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5), 0 0 20px rgba(0, 229, 192, 0.15);
    max-width: 900px;
    margin: 0 auto;
}

.cookie-bar[hidden] {
    display: none;
}

.cookie-text {
    flex: 1;
    min-width: 220px;
    color: #B0C4DE;
    font-size: 0.9rem;
    margin: 0;
}

.cookie-accept {
    flex-shrink: 0;
}

/* ========== 404 ========== */
.error-block {
    text-align: center;
    padding: 60px 20px;
    background: #121A2B;
    border: 1px solid #1E2A3A;
    border-radius: 10px;
}

.error-code {
    font-family: "JetBrains Mono", monospace;
    font-size: 6rem;
    color: #00E5C0;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.05em;
    text-shadow: 0 0 30px rgba(0, 229, 192, 0.4);
}

.error-msg {
    font-size: 1.2rem;
    color: #B0C4DE;
    margin: 14px 0 26px;
}

.error-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.error-search {
    max-width: 460px;
    margin: 24px auto 0;
}

/* ========== Comments ========== */
.comments-area {
    margin-top: 30px;
    background: #121A2B;
    border: 1px solid #1E2A3A;
    border-radius: 10px;
    padding: 28px;
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 20px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}

.comment-list li {
    border: 1px solid #1E2A3A;
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 12px;
    background: #0A0F1F;
}

.comment-list li.children-wrap {
    list-style: none;
    padding-left: 24px;
    border: 0;
    background: transparent;
    margin: 0;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.88rem;
}

.comment-author {
    color: #00E5C0;
    font-weight: 600;
}

.comment-date {
    color: #B0C4DE;
    font-family: "JetBrains Mono", monospace;
    font-size: 0.78rem;
}

.comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.comment-body-text {
    color: #FFFFFF;
    margin-bottom: 8px;
}

.comment-reply {
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
}

.comment-form-fields {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 12px;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 10px 12px;
    background: #0A0F1F;
    border: 1px solid #2A3A52;
    color: #FFFFFF;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}

.comment-form textarea {
    min-height: 120px;
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: #00E5C0;
}

.comment-form label {
    display: block;
    color: #B0C4DE;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.comment-form .form-submit {
    margin-top: 12px;
}

.comment-form .submit {
    padding: 11px 22px;
    background: #00E5C0;
    color: #0A0F1F;
    border: 0;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 600;
}

.comment-form .submit:hover {
    background: #FF6B4A;
    color: #FFFFFF;
}

/* ========== Alignments / WP default ========== */
.alignleft   { float: left; margin: 0 1.2em 1em 0; }
.alignright  { float: right; margin: 0 0 1em 1.2em; }
.aligncenter { display: block; margin: 1em auto; }
.alignnone   { margin: 1em 0; }

.wp-caption {
    max-width: 100%;
    background: #0A0F1F;
    border: 1px solid #1E2A3A;
    padding: 8px;
    border-radius: 6px;
}

.wp-caption-text {
    color: #B0C4DE;
    font-size: 0.85rem;
    margin: 6px 0 0;
    text-align: center;
}

.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
}

/* ========== Responsive ========== */
@media (max-width: 960px) {
    .hero h1 { font-size: 2.1rem; }
    .puzzle-grid { grid-template-columns: 1fr 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .content-grid,
    .content-grid.no-side,
    .content-grid.full-wide {
        display: block;
        max-width: 100%;
    }
    .sidebar { position: static; margin-top: 30px; }
    .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
    body { font-size: 15px; }
    h1 { font-size: 1.7rem; }
    .hero { padding: 50px 0 40px; }
    .hero h1 { font-size: 1.7rem; }
    .hero-desc { font-size: 1rem; }
    .section-band { padding: 40px 0; }
    .section-title { font-size: 1.45rem; }
    .puzzle-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr; }
    .footer-cols { grid-template-columns: 1fr; gap: 24px; padding: 36px 0 20px; }
    .article { padding: 22px; }
    .article-thumb { margin: 0 -22px 18px; }
    .article-title { font-size: 1.5rem; }
    .site-top-inner { padding: 16px 0; flex-wrap: wrap; gap: 14px; }
    .burger { display: inline-block; }
    .primary-nav {
        display: none;
        flex-basis: 100%;
        width: 100%;
    }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; gap: 2px; }
    .primary-nav a { padding: 10px 12px; }
    .top-strip-inner { flex-direction: column; gap: 4px; align-items: flex-start; }
    .comment-form-fields { grid-template-columns: 1fr; }

    /* Horizontal card → vertical on mobile (rule A10) */
    .card-horizontal { flex-direction: column; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .cookie-bar {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    .matrix { overflow-x: auto; }
    .matrix table { min-width: 560px; }
}
