/* MNetWork Remote CMS - Editorial Design System */

/* ===== @FONT-FACE: Inter ===== */
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Medium.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Inter';
    src: url('../fonts/Inter-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== @FONT-FACE: JetBrains Mono ===== */
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'JetBrains Mono';
    src: url('../fonts/JetBrainsMono-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== @FONT-FACE: Lora ===== */
@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Regular.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Lora';
    src: url('../fonts/Lora-Bold.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* ===== RESET ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* ===== DEFAULT CSS VARIABLES (Light Mode) ===== */
:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #f9f9f9;
    --bg-card: #ffffff;
    --text-primary: #0a0a0a;
    --text-secondary: #333333;
    --text-muted: #666666;
    --accent: #0a0a0a;
    --accent-hover: #333333;
    --border-color: #e0e0e0;
    --font-heading: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', 'Courier New', monospace;
    --font-serif: 'Lora', Georgia, 'Times New Roman', serif;
    --radius: 0;
    --box-margin: 0;
    --box-border: 1px solid var(--border-color);
    --title-size: 22px;
    --header-height: 64px;
    --sidebar-width: 320px;
    --header-pad: 0;
    --max-width: 1200px;
    --header-bg: var(--bg-primary);
    --header-text: var(--text-primary);
    --footer-bg: var(--bg-primary);
    --footer-text: var(--text-muted);
}

/* ===== DARK MODE ===== */
body.dark-mode {
    --bg-primary: #0a0a0a;
    --bg-secondary: #141414;
    --bg-tertiary: #1a1a1a;
    --bg-card: #111111;
    --text-primary: #f0f0f0;
    --text-secondary: #cccccc;
    --text-muted: #888888;
    --accent: #f0f0f0;
    --accent-hover: #ffffff;
    --border-color: #2a2a2a;
    --header-bg: #0a0a0a;
    --header-text: #f0f0f0;
    --footer-bg: #0a0a0a;
    --footer-text: #888888;
}

/* ===== BODY ===== */
body {
    font-family: var(--font-body);
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 15px;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

/* ===== STICKY HEADER ===== */
.header {
    position: sticky;
    top: 0;
    z-index: 1000;
    height: var(--header-height);
    background: var(--header-bg);
    border-bottom: 1px solid var(--border-color);
}

.header-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--header-text);
    text-decoration: none;
    cursor: pointer;
}

.logo span {
    font-weight: 300;
    opacity: 0.6;
}

.site-tagline {
    font-size: 12px;
    color: var(--header-text);
    opacity: 0.7;
    margin-left: 10px;
}

/* ===== NAVIGATION ===== */
.nav {
    display: flex;
    gap: 0;
    align-items: center;
}

.nav a {
    display: block;
    padding: 0 1.25rem;
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: var(--header-height);
    transition: color 0.2s, background 0.2s;
    border-left: 1px solid transparent;
}

.nav a:hover,
.nav a.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    padding: 0.4rem 0.65rem;
    font-size: 1.25rem;
    cursor: pointer;
    color: var(--header-text);
}

/* ===== MAIN LAYOUT ===== */
.main-wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    min-height: calc(100vh - var(--header-height) - 200px);
    width: 100%;
}

.content-area {
    flex: 1;
    border-right: 1px solid var(--border-color);
    padding: 40px 2.5rem 40px 0;
    min-width: 0;
}

.sidebar {
    width: var(--sidebar-width);
    flex-shrink: 0;
    padding: 40px 0 40px 2.5rem;
}

/* Left sidebar */
.main-wrapper.sidebar-left {
    flex-direction: row-reverse;
}
.main-wrapper.sidebar-left .content-area {
    border-right: none;
    border-left: 1px solid var(--border-color);
    padding: 40px 0 40px 2.5rem;
}
.main-wrapper.sidebar-left .sidebar {
    padding: 40px 2.5rem 40px 0;
}

/* No sidebar */
.main-wrapper.no-sidebar .content-area {
    border-right: none;
    padding-right: 0;
}
.main-wrapper.no-sidebar .sidebar {
    display: none;
}

/* ===== POSTS SECTION ===== */
.posts-section {
    padding: 0 0 60px 0;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 0;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.section-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.view-all {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.view-all:hover {
    color: var(--text-primary);
}

/* ===== POST CARD ===== */
.post-card {
    display: block;
    padding: 3rem 0;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    text-decoration: none;
    color: inherit;
}

.post-card:hover {
    background: var(--bg-secondary);
}

.post-card:last-child {
    border-bottom: none;
}

body[data-card-style="shadow"] .post-card {
    border: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.08);
    padding: 2.5rem;
}
body[data-card-style="shadow"] .post-card:hover {
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.12);
}

body[data-card-style="flat"] .post-card {
    background: transparent;
    border-radius: 0;
    padding: 2.5rem 0;
}

/* Featured post */
.post-card.featured {
    padding: 3.5rem 0;
}
.post-card.featured .post-title {
    font-size: 2rem;
}

.post-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
.post-meta .dot {
    width: 3px;
    height: 3px;
    background: var(--text-muted);
    border-radius: 50%;
}
.post-meta .category-tag {
    color: var(--text-primary);
    font-weight: 600;
}

.post-title {
    font-family: var(--font-heading);
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--text-primary);
}
.post-title a {
    color: var(--text-primary);
}
.post-title a:hover {
    color: var(--accent-hover);
}

.post-excerpt {
    font-size: 0.9375rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    max-width: 65ch;
}

/* ===== FEATURED IMAGE (post card thumbnail) ===== */
.post-card-thumb {
    display: block;
    width: 100%;
    height: auto;
    margin: 0 0 1.25rem;
    border-radius: var(--radius);
    overflow: hidden;
    border: var(--box-border);
}
.post-card-thumb img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
    aspect-ratio: 16 / 9;
}

.post-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.read-time {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 500;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-primary);
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 2px;
    transition: opacity 0.2s;
}

.read-more:hover {
    opacity: 0.7;
}

.read-more svg {
    width: 16px;
    height: 16px;
}

/* ===== POSTS LAYOUT VARIANTS ===== */
.posts-layout-grid .posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.posts-layout-grid .post-card {
    border: var(--box-border);
    border-bottom: none;
    padding: 2rem;
}
.posts-layout-grid .post-card:last-child {
    border-bottom: var(--box-border);
}
.posts-layout-grid .post-card:hover {
    background: var(--bg-secondary);
}
.posts-layout-grid .post-card.featured {
    grid-column: 1 / -1;
}

.posts-layout-magazine .posts-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.posts-layout-magazine .post-card {
    border: var(--box-border);
    border-bottom: none;
    padding: 2rem;
}
.posts-layout-magazine .post-card.featured {
    grid-column: 1 / -1;
    padding: 3rem;
}

.posts-layout-list .posts-list {
    display: block;
}
.posts-layout-list .post-card {
    background: transparent;
    border-radius: 0;
    padding: 2.5rem 0;
}
.posts-layout-list .post-card:hover {
    background: transparent;
}
.posts-layout-list .post-card + .post-card {
    border-top: 1px solid var(--border-color);
}

.posts-layout-timeline .posts-list {
    position: relative;
    padding-left: 22px;
}
.posts-layout-timeline .posts-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
.posts-layout-timeline .post-card {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 2.5rem 0 2.5rem 22px;
}
.posts-layout-timeline .post-card::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 38px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
}
.posts-layout-timeline .post-card:hover {
    background: transparent;
}
.posts-layout-timeline .post-card + .post-card {
    border-top: 1px solid var(--border-color);
}

/* ===== SINGLE POST / PAGE ===== */
.single-post-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.post-header {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.entry-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

/* ===== FEATURED IMAGE (single post) ===== */
.post-featured-image {
    width: 100%;
    height: auto;
    margin: 0 0 2rem;
    border-radius: var(--radius);
    overflow: hidden;
}
.post-featured-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    object-fit: cover;
}

.entry-content {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-secondary);
}
.entry-content h2,
.entry-content h3 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}
.entry-content p {
    margin-bottom: 1.5rem;
}
.entry-content ul,
.entry-content ol {
    margin: 1.5rem 0 1.5rem 2rem;
}
.entry-content blockquote {
    border-left: 4px solid var(--border-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: var(--bg-secondary);
    color: var(--text-muted);
    font-style: italic;
}
.entry-content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--bg-secondary);
    padding: 0.15em 0.4em;
    border: 1px solid var(--border-color);
}
.entry-content pre {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
    overflow-x: auto;
    margin: 2rem 0;
}
.entry-content pre code {
    background: none;
    border: none;
    padding: 0;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
    padding: 0;
    transition: color 0.2s;
}
.back-link:hover {
    color: var(--text-primary);
}

/* Post tags */
.post-tags {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* ===== SIDEBAR ===== */
.sidebar-block {
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
}
.sidebar-block:first-child {
    padding-top: 0;
}
.sidebar-block:last-child {
    border-bottom: none;
}

.sidebar-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

/* Popular Posts */
.popular-list {
    list-style: none;
}

.popular-item {
    display: flex;
    gap: 12px;
    padding: 0.875rem 0;
    border-bottom: 1px solid var(--border-color);
    align-items: flex-start;
}
.popular-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.popular-item:first-child {
    padding-top: 0;
}

.popular-num {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--border-color);
    line-height: 1;
    min-width: 32px;
}

.popular-content {
    flex: 1;
}

.popular-title {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    display: block;
    text-decoration: none;
    transition: color 0.2s, padding 0.2s;
}
.popular-title:hover {
    color: var(--text-primary);
    padding-left: 0.5rem;
}

.popular-date {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* Tags Cloud */
.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

.tag {
    display: inline-block;
    padding: 0.5rem 0.875rem;
    border: 1px solid var(--border-color);
    margin-right: -1px;
    margin-bottom: -1px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    background: none;
    font-family: inherit;
}
.tag:hover,
.tag.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
    position: relative;
    z-index: 1;
}

/* Widget Content */
.widget-content {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Campaign link slots (sidebar + footer): compact 11px link text */
.campaign-link-slot .widget-content,
.footer-link-slot .widget-content {
    font-size: 11px;
    line-height: 1.6;
}
.footer-link-slot + .footer-link-slot {
    margin-top: 0.5rem;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    color: var(--footer-text);
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem;
}

.footer .logo,
.footer .footer-desc,
.footer .footer-links a,
.footer .copyright {
    color: var(--footer-text);
}
.footer .footer-title {
    color: var(--footer-text);
    opacity: 0.75;
}
.footer .footer-links a:hover {
    opacity: 1;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 3rem;
}

.footer-brand .logo {
    margin-bottom: 1rem;
    display: inline-block;
}

.footer-desc {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 320px;
}

.footer-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.footer-links {
    list-style: none;
}
.footer-links li {
    margin-bottom: 0.75rem;
}
.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.footer-links a:hover {
    color: var(--text-primary);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    text-align: center;
}

.copyright {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.03em;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
    .main-wrapper {
        flex-direction: column;
    }
    .content-area {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding: 2rem 0;
    }
    .main-wrapper.sidebar-left .content-area {
        border-left: none;
        padding: 2rem 0;
    }
    .sidebar {
        width: 100%;
        padding: 2rem 0;
    }
    .main-wrapper.sidebar-left .sidebar {
        padding: 2rem 0;
    }
    .post-title {
        font-size: 1.5rem;
    }
    .post-card.featured .post-title {
        font-size: 1.75rem;
    }
    .entry-title {
        font-size: 1.875rem;
    }
    .posts-layout-grid .posts-list,
    .posts-layout-magazine .posts-list {
        grid-template-columns: 1fr;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 600px) {
    .header-inner {
        padding: 0 1rem;
    }
    .menu-toggle {
        display: block;
    }
    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--bg-primary);
        flex-direction: column;
        padding: 1rem;
        border-bottom: 1px solid var(--border-color);
    }
    .nav.open {
        display: flex;
    }
    .main-wrapper {
        padding: 0 1rem;
    }
    .content-area {
        padding: 1.5rem 0;
    }
    .post-card {
        padding: 2rem 0;
    }
    body[data-card-style="flat"] .post-card {
        padding: 2rem 0;
    }
    body[data-card-style="shadow"] .post-card {
        padding: 1.5rem;
    }
    .sidebar-block {
        padding: 1.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
    }
}

/* ===== THEME PRESETS ===== */
body[data-theme-preset="minimal"] .header {
    position: static;
}
body[data-theme-preset="minimal"] .post-card {
    background: transparent;
}

body[data-theme-preset="classic"] {
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
    --font-body: 'Lora', Georgia, 'Times New Roman', serif;
}
body[data-theme-preset="classic"] .nav a {
    text-transform: none;
    letter-spacing: 0.5px;
}

body[data-theme-preset="brutal"] {
    --radius: 0px;
}
body[data-theme-preset="brutal"] .post-card {
    border: 2px solid var(--border-color);
}
body[data-theme-preset="brutal"] .nav a {
    letter-spacing: 0;
}

/* ===== HEADER STYLES ===== */
body[data-header-style="centered"] .header-inner {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
}
body[data-header-style="centered"] .site-tagline {
    margin-left: 0;
}
body[data-header-style="centered"] .nav {
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
}
body[data-header-style="centered"] .header {
    height: auto;
    min-height: var(--header-height);
}
body[data-header-style="centered"] .nav a {
    line-height: 1.4;
    padding: 0.4rem 1rem;
    border-left: none;
    border-bottom: 1px solid transparent;
}
body[data-header-style="centered"] .nav a:hover,
body[data-header-style="centered"] .nav a.active {
    border-left: none;
    border-bottom: 1px solid var(--border-color);
}

/* ===== BLOG VARIANTS ===== */
body[data-blog-variant="editorial"] {
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
}
body[data-blog-variant="editorial"] .post-title {
    letter-spacing: -0.04em;
    font-weight: 700;
}
body[data-blog-variant="editorial"] .post-excerpt {
    font-size: 1rem;
}
body[data-blog-variant="editorial"] .posts-section {
    padding-bottom: 80px;
}

body[data-blog-variant="minimal"] .section-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 1.5rem;
}
body[data-blog-variant="minimal"] .post-excerpt {
    display: none;
}
body[data-blog-variant="minimal"] .read-more svg {
    display: none;
}

body[data-blog-variant="timeline"] .posts-layout-stack .posts-list {
    position: relative;
    padding-left: 22px;
}
body[data-blog-variant="timeline"] .posts-layout-stack .posts-list::before {
    content: '';
    position: absolute;
    left: 6px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}
body[data-blog-variant="timeline"] .posts-layout-stack .post-card {
    position: relative;
    background: transparent;
    border-radius: 0;
    padding: 2.5rem 0 2.5rem 22px;
}
body[data-blog-variant="timeline"] .posts-layout-stack .post-card::before {
    content: '';
    position: absolute;
    left: -2px;
    top: 38px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg-primary);
    border: 2px solid var(--accent);
}

/* =====================================================================
   TEMPLATE VARIANTS — full re-themes (self-contained, local fonts only)
   default = "Minima" · wzor2 = "stdout" · wzor3 = "TechPulse"
   wzor4 = "TECH.OPS" · wzor5 = "SIGNAL/NOISE" · wzor6 = "ESENCJA"
   wzor7 = "Wróbel"
   ===================================================================== */

/* ---------- default · "Minima" — editorial, serif, light ---------- */
body[data-theme-template="default"] {
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --bg-primary: #f9f7f4;
    --bg-secondary: #ffffff;
    --bg-card: #ffffff;
    --text-primary: #1a1a1a;
    --text-secondary: #4a4a4a;
    --text-muted: #888888;
    --accent: #c8a96e;
    --accent-hover: #b08f4f;
    --border-color: #e8e4df;
    --radius: 8px;
    --header-bg: rgba(249, 247, 244, 0.9);
    --header-text: #1a1a1a;
    --footer-bg: #1a1a1a;
    --footer-text: rgba(255, 255, 255, 0.55);
}
body[data-theme-template="default"] .header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 64px;
}
body[data-theme-template="default"] .logo {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    letter-spacing: -0.02em;
}
body[data-theme-template="default"] .logo span {
    color: var(--accent);
    opacity: 1;
    font-weight: 700;
}
body[data-theme-template="default"] .site-tagline {
    font-family: var(--font-body);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.7rem;
    color: var(--accent);
}
body[data-theme-template="default"] .nav a {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 64px;
}
body[data-theme-template="default"] .nav a:hover,
body[data-theme-template="default"] .nav a.active {
    color: var(--text-primary);
    background: transparent;
    border-left: none;
}
body[data-theme-template="default"] .main-wrapper {
    max-width: 1100px;
}
/* hero */
/* posts */
body[data-theme-template="default"] .posts-section {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}
body[data-theme-template="default"] .section-header {
    border-bottom: none;
    padding-bottom: 0.5rem;
}
body[data-theme-template="default"] .section-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-primary);
}
body[data-theme-template="default"] .post-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    align-items: center;
    padding: 3rem 0;
}
body[data-theme-template="default"] .post-meta {
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.75rem;
}
body[data-theme-template="default"] .post-meta .category-tag {
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(200, 169, 110, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
}
body[data-theme-template="default"] .post-title {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
body[data-theme-template="default"] .post-title a:hover {
    color: var(--accent);
}
body[data-theme-template="default"] .post-excerpt {
    font-size: 0.9rem;
    line-height: 1.75;
}
body[data-theme-template="default"] .read-more {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-primary);
    border-bottom: none;
    gap: 0.4rem;
}
body[data-theme-template="default"] .read-more:hover {
    opacity: 1;
    color: var(--accent);
}
/* sidebar */
body[data-theme-template="default"] .sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 1.6rem;
    margin-bottom: 2.5rem;
}
body[data-theme-template="default"] .sidebar-title {
    font-family: var(--font-body);
    font-size: 0.7rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}
body[data-theme-template="default"] .tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.7rem;
    border-radius: 20px;
    margin: 0 0.5rem 0.5rem 0;
}
body[data-theme-template="default"] .tag:hover {
    background: var(--accent);
    color: #ffffff;
    border-color: var(--accent);
}
/* footer */
body[data-theme-template="default"] .footer {
    background: var(--footer-bg);
    color: var(--footer-text);
}
body[data-theme-template="default"] .footer .footer-title,
body[data-theme-template="default"] .footer .copyright,
body[data-theme-template="default"] .footer-links a,
body[data-theme-template="default"] .footer .widget-content {
    color: var(--footer-text);
}
body[data-theme-template="default"] .footer-bottom {
    border-top-color: rgba(255, 255, 255, 0.12);
}
body[data-theme-template="default"] .entry-title {
    font-family: var(--font-heading);
}

/* ---------- wzor2 · "stdout" — terminal / mono / dark ---------- */
body[data-theme-template="wzor2"] {
    --font-heading: 'JetBrains Mono', 'Consolas', monospace;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --bg-primary: #0a0c10;
    --bg-secondary: #10141a;
    --bg-card: #10141a;
    --text-primary: #e6e9ef;
    --text-secondary: #c3cad6;
    --text-muted: #8b93a1;
    --accent: #89ddff;
    --accent-hover: #82aaff;
    --border-color: #212832;
    --radius: 6px;
    --header-bg: rgba(10, 12, 16, 0.85);
    --header-text: #e6e9ef;
    --footer-bg: #10141a;
    --footer-text: #8b93a1;
}
body[data-theme-template="wzor2"]::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(#191f28 1px, transparent 1px),
        linear-gradient(90deg, #191f28 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    pointer-events: none;
    z-index: 0;
}
body[data-theme-template="wzor2"] .header {
    height: 48px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
body[data-theme-template="wzor2"] .header-inner {
    gap: 16px;
}
body[data-theme-template="wzor2"] .logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 14px;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
body[data-theme-template="wzor2"] .logo span { color: #a6e3a1; opacity: 1; }
body[data-theme-template="wzor2"] .logo::before {
    content: "▍";
    color: #a6e3a1;
    margin-right: 8px;
}
body[data-theme-template="wzor2"] .site-tagline {
    font-family: var(--font-mono);
    font-size: 12px;
    color: #565f70;
    display: none;
}
body[data-theme-template="wzor2"] .nav a {
    font-family: var(--font-mono);
    font-size: 12.5px;
    text-transform: none;
    letter-spacing: 0;
    color: #565f70;
    line-height: 48px;
    padding: 0 16px;
    border-left: 1px solid var(--border-color);
}
body[data-theme-template="wzor2"] .nav a:hover,
body[data-theme-template="wzor2"] .nav a.active {
    color: var(--text-primary);
    background: var(--bg-secondary);
    border-left: 1px solid var(--border-color);
}
body[data-theme-template="wzor2"] .nav a.active::after {
    content: "";
    display: block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f5a97f;
    margin: -34px auto 0;
}
body[data-theme-template="wzor2"] .main-wrapper {
    max-width: 1320px;
    position: relative;
    z-index: 1;
}
body[data-theme-template="wzor2"] .section-title {
    font-family: var(--font-mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}
body[data-theme-template="wzor2"] .section-title::before {
    content: "// ";
    color: #565f70;
}
body[data-theme-template="wzor2"] .post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 18px;
    margin-bottom: 16px;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
body[data-theme-template="wzor2"] .post-card:hover {
    border-color: #565f70;
    transform: translateY(-2px);
    background: var(--bg-card);
}
body[data-theme-template="wzor2"] .post-card:last-child { margin-bottom: 0; }
body[data-theme-template="wzor2"] .post-meta {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: none;
    letter-spacing: 0;
    color: #565f70;
}
body[data-theme-template="wzor2"] .post-meta .category-tag {
    color: #f5a97f;
    font-weight: 400;
}
body[data-theme-template="wzor2"] .post-title {
    font-family: var(--font-body);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.35;
}
body[data-theme-template="wzor2"] .post-excerpt {
    font-size: 13.5px;
    line-height: 1.55;
}
body[data-theme-template="wzor2"] .post-footer {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: #565f70;
    border-top: 1px solid #191f28;
    padding-top: 10px;
}
body[data-theme-template="wzor2"] .read-time {
    font-family: var(--font-mono);
    text-transform: none;
    letter-spacing: 0;
}
body[data-theme-template="wzor2"] .read-more {
    font-family: var(--font-mono);
    font-size: 11.5px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
    border-bottom: none;
}
body[data-theme-template="wzor2"] .tag {
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 3px 8px;
    border-radius: 4px;
    margin-right: 6px;
    margin-bottom: 6px;
    color: #8b93a1;
}
body[data-theme-template="wzor2"] .tag:hover {
    background: #1a2029;
    color: var(--accent);
    border-color: var(--accent);
}
body[data-theme-template="wzor2"] .sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 14px;
    margin-bottom: 16px;
}
body[data-theme-template="wzor2"] .sidebar-title {
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #565f70;
}
body[data-theme-template="wzor2"] .popular-num {
    font-family: var(--font-mono);
    color: #565f70;
}
body[data-theme-template="wzor2"] .footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
}
body[data-theme-template="wzor2"] .footer .footer-title,
body[data-theme-template="wzor2"] .footer .copyright,
body[data-theme-template="wzor2"] .footer-links a,
body[data-theme-template="wzor2"] .footer .widget-content {
    font-family: var(--font-mono);
    color: var(--footer-text);
}

/* ---------- wzor3 · "TechPulse" — dark neon / gradient ---------- */
body[data-theme-template="wzor3"] {
    --font-heading: 'JetBrains Mono', 'Consolas', monospace;
    --font-body: 'Inter', system-ui, sans-serif;
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-card: #16161f;
    --text-primary: #e8e8f0;
    --text-secondary: #c2c2d0;
    --text-muted: #8888a0;
    --accent: #00f0ff;
    --accent-hover: #7b61ff;
    --border-color: #1e1e2e;
    --radius: 14px;
    --header-bg: rgba(10, 10, 15, 0.8);
    --header-text: #e8e8f0;
    --footer-bg: #12121a;
    --footer-text: #8888a0;
}
body[data-theme-template="wzor3"] .header {
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    height: 64px;
}
body[data-theme-template="wzor3"] .logo {
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    background: linear-gradient(135deg, #00f0ff, #7b61ff);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}
body[data-theme-template="wzor3"] .logo span { -webkit-text-fill-color: var(--text-muted); font-weight: 400; }
body[data-theme-template="wzor3"] .site-tagline { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
body[data-theme-template="wzor3"] .nav a {
    font-family: var(--font-body);
    font-size: 0.875rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    line-height: 1.4;
}
body[data-theme-template="wzor3"] .nav a:hover,
body[data-theme-template="wzor3"] .nav a.active {
    color: var(--text-primary);
    background: rgba(0, 240, 255, 0.12);
    border-left: none;
}
body[data-theme-template="wzor3"] .nav a.active {
    position: relative;
}
body[data-theme-template="wzor3"] .nav a.active::after {
    content: '';
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--accent);
}
body[data-theme-template="wzor3"] .main-wrapper { max-width: 1400px; }
body[data-theme-template="wzor3"] .section-title {
    font-family: var(--font-body);
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-primary);
}
body[data-theme-template="wzor3"] .section-title::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 18px;
    background: linear-gradient(180deg, #00f0ff, #7b61ff);
    border-radius: 2px;
    margin-right: 0.5rem;
    vertical-align: -3px;
}
body[data-theme-template="wzor3"] .post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}
body[data-theme-template="wzor3"] .post-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
    background: var(--bg-card);
}
body[data-theme-template="wzor3"] .post-card:last-child { margin-bottom: 0; }
body[data-theme-template="wzor3"] .post-meta {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
}
body[data-theme-template="wzor3"] .post-meta .category-tag { color: var(--accent); }
body[data-theme-template="wzor3"] .post-title {
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.3px;
}
body[data-theme-template="wzor3"] .post-title a:hover { color: var(--accent); }
body[data-theme-template="wzor3"] .post-excerpt {
    font-size: 0.82rem;
    line-height: 1.6;
}
body[data-theme-template="wzor3"] .post-footer {
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}
body[data-theme-template="wzor3"] .read-time { text-transform: none; letter-spacing: 0; }
body[data-theme-template="wzor3"] .read-more {
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
    border-bottom: none;
}
body[data-theme-template="wzor3"] .sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
body[data-theme-template="wzor3"] .sidebar-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
body[data-theme-template="wzor3"] .tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-primary);
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}
body[data-theme-template="wzor3"] .tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(0, 240, 255, 0.12);
}
body[data-theme-template="wzor3"] .footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
}
body[data-theme-template="wzor3"] .footer .footer-title,
body[data-theme-template="wzor3"] .footer .copyright,
body[data-theme-template="wzor3"] .footer-links a,
body[data-theme-template="wzor3"] .footer .widget-content { color: var(--footer-text); }
body[data-theme-template="wzor3"] .footer-links a:hover { color: var(--accent); }

/* ---------- wzor4 · "TECH.OPS" — dark tech / mono labels ---------- */
body[data-theme-template="wzor4"] {
    --font-heading: 'JetBrains Mono', 'Consolas', monospace;
    --font-body: 'Inter', system-ui, sans-serif;
    --bg-primary: #090d16;
    --bg-secondary: #0f172a;
    --bg-card: #0f172a;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;
    --accent: #22d3ee;
    --accent-hover: #818cf8;
    --border-color: #1e293b;
    --radius: 12px;
    --header-bg: rgba(9, 13, 22, 0.85);
    --header-text: #f1f5f9;
    --footer-bg: #020617;
    --footer-text: #94a3b8;
}
body[data-theme-template="wzor4"] .header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 64px;
}
body[data-theme-template="wzor4"] .logo {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
body[data-theme-template="wzor4"] .logo span { color: var(--accent); opacity: 1; }
body[data-theme-template="wzor4"] .logo::before {
    content: "</>";
    display: inline-block;
    margin-right: 0.5rem;
    padding: 0.25rem 0.4rem;
    font-size: 0.75rem;
    color: var(--accent);
    border: 1px solid rgba(34, 211, 238, 0.3);
    background: rgba(34, 211, 238, 0.1);
    border-radius: 0.5rem;
}
body[data-theme-template="wzor4"] .site-tagline { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
body[data-theme-template="wzor4"] .nav a {
    font-family: var(--font-mono);
    font-size: 12px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-muted);
    line-height: 64px;
    padding: 0 12px;
}
body[data-theme-template="wzor4"] .nav a:hover,
body[data-theme-template="wzor4"] .nav a.active {
    color: var(--accent);
    background: rgba(34, 211, 238, 0.06);
    border-left: none;
}
body[data-theme-template="wzor4"] .nav a::before { content: "// "; color: var(--accent); }
body[data-theme-template="wzor4"] .main-wrapper { max-width: 1280px; }
body[data-theme-template="wzor4"] .section-header { border-bottom-color: var(--border-color); }
body[data-theme-template="wzor4"] .section-title {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}
body[data-theme-template="wzor4"] .section-title::before { content: "// "; color: var(--accent); }
body[data-theme-template="wzor4"] .post-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
body[data-theme-template="wzor4"] .post-card:hover {
    border-color: rgba(34, 211, 238, 0.4);
    transform: translateY(-2px);
    background: var(--bg-card);
}
body[data-theme-template="wzor4"] .post-card:last-child { margin-bottom: 0; }
body[data-theme-template="wzor4"] .post-meta {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
}
body[data-theme-template="wzor4"] .post-meta .category-tag { color: var(--accent); }
body[data-theme-template="wzor4"] .post-title { font-size: 1rem; font-weight: 600; line-height: 1.4; }
body[data-theme-template="wzor4"] .post-title a:hover { color: var(--accent); }
body[data-theme-template="wzor4"] .post-excerpt { font-size: 0.82rem; line-height: 1.6; }
body[data-theme-template="wzor4"] .post-footer {
    font-size: 0.72rem;
    color: var(--text-muted);
    border-top: 1px solid var(--border-color);
    padding-top: 0.75rem;
}
body[data-theme-template="wzor4"] .read-time { font-family: var(--font-mono); text-transform: none; letter-spacing: 0; }
body[data-theme-template="wzor4"] .read-more {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    text-transform: none;
    letter-spacing: 0;
    color: var(--accent);
    border-bottom: none;
}
body[data-theme-template="wzor4"] .sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
body[data-theme-template="wzor4"] .sidebar-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-secondary);
}
body[data-theme-template="wzor4"] .sidebar-title::before { content: "// "; color: var(--accent); }
body[data-theme-template="wzor4"] .tag {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    background: var(--bg-primary);
    margin-right: 0.4rem;
    margin-bottom: 0.4rem;
}
body[data-theme-template="wzor4"] .tag:hover { border-color: var(--accent); color: var(--accent); background: rgba(34, 211, 238, 0.12); }
body[data-theme-template="wzor4"] .footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
}
body[data-theme-template="wzor4"] .footer .footer-title,
body[data-theme-template="wzor4"] .footer .copyright,
body[data-theme-template="wzor4"] .footer-links a,
body[data-theme-template="wzor4"] .footer .widget-content { color: var(--footer-text); }
body[data-theme-template="wzor4"] .footer-links a:hover { color: var(--accent); }

/* ---------- wzor5 · "SIGNAL/NOISE" — engineering journal / light ---------- */
body[data-theme-template="wzor5"] {
    --font-heading: 'Archivo', 'Inter', system-ui, sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', 'Consolas', monospace;
    --bg-primary: #F6F5F0;
    --bg-secondary: #FBFAF5;
    --bg-card: #FBFAF5;
    --text-primary: #16150F;
    --text-secondary: #3a392f;
    --text-muted: #6F6D5E;
    --accent: #E8430D;
    --accent-hover: #B93707;
    --border-color: #D9D6CA;
    --radius: 0px;
    --header-bg: rgba(246, 245, 240, 0.85);
    --header-text: #16150F;
    --footer-bg: #F6F5F0;
    --footer-text: #6F6D5E;
}
body[data-theme-template="wzor5"] .header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 60px;
}
body[data-theme-template="wzor5"] .logo {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: -0.02em;
}
body[data-theme-template="wzor5"] .logo::before {
    content: attr(data-mark);
    display: inline-grid;
    place-items: center;
    width: 32px;
    height: 32px;
    margin-right: 12px;
    border: 1.5px solid var(--text-primary);
    font-size: 12px;
    vertical-align: middle;
}
body[data-theme-template="wzor5"] .logo span { color: var(--accent); opacity: 1; }
body[data-theme-template="wzor5"] .site-tagline { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
body[data-theme-template="wzor5"] .nav a {
    font-family: var(--font-mono);
    font-size: 11.5px;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--text-muted);
    line-height: 60px;
    padding: 0 14px;
}
body[data-theme-template="wzor5"] .nav a:hover,
body[data-theme-template="wzor5"] .nav a.active {
    color: var(--text-primary);
    background: transparent;
    border-left: none;
}
body[data-theme-template="wzor5"] .main-wrapper { max-width: 1280px; }
body[data-theme-template="wzor5"] .section-header {
    border-bottom: 2px solid var(--text-primary);
    padding-bottom: 14px;
}
body[data-theme-template="wzor5"] .section-title {
    font-family: var(--font-body);
    font-size: 1.05rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-primary);
}
body[data-theme-template="wzor5"] .post-card {
    display: grid;
    grid-template-columns: 3.2rem 1fr auto;
    gap: 20px;
    align-items: start;
    padding: 22px 10px;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    position: relative;
    transition: background 0.22s;
}
body[data-theme-template="wzor5"] .post-card:hover { background: #EDEBE1; }
body[data-theme-template="wzor5"] .post-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top;
    transition: transform 0.22s;
}
body[data-theme-template="wzor5"] .post-card:hover::before { transform: scaleY(1); }
body[data-theme-template="wzor5"] .post-meta {
    grid-column: 2;
    font-family: var(--font-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 8px;
}
body[data-theme-template="wzor5"] .post-meta .category-tag { color: var(--accent); font-weight: 700; }
body[data-theme-template="wzor5"] .post-title {
    grid-column: 2;
    font-family: var(--font-body);
    font-size: clamp(1.15rem, 2vw, 1.42rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.22;
}
body[data-theme-template="wzor5"] .post-excerpt {
    grid-column: 2;
    font-size: 0.95rem;
    margin-top: 7px;
}
body[data-theme-template="wzor5"] .post-footer {
    grid-column: 3;
    grid-row: 1 / span 3;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-muted);
    padding-top: 6px;
}
body[data-theme-template="wzor5"] .read-time { text-transform: none; letter-spacing: 0; }
body[data-theme-template="wzor5"] .read-more { display: none; }
body[data-theme-template="wzor5"] .post-card.featured .post-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
body[data-theme-template="wzor5"] .sidebar-block {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 1.5rem 0;
    margin: 0;
}
body[data-theme-template="wzor5"] .sidebar-title {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-muted);
}
body[data-theme-template="wzor5"] .tag {
    font-family: var(--font-mono);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 8px 0 8px 12px;
    border: none;
    border-left: 2px solid transparent;
    display: block;
    margin: 0;
}
body[data-theme-template="wzor5"] .tag:hover {
    background: transparent;
    color: var(--text-primary);
    border-left-color: var(--accent);
}
body[data-theme-template="wzor5"] .popular-num { font-family: var(--font-mono); color: var(--text-muted); }
body[data-theme-template="wzor5"] .footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--text-primary);
}
body[data-theme-template="wzor5"] .footer .footer-title,
body[data-theme-template="wzor5"] .footer .copyright,
body[data-theme-template="wzor5"] .footer-links a,
body[data-theme-template="wzor5"] .footer .widget-content { color: var(--footer-text); }
body[data-theme-template="wzor5"] .footer .footer-title { font-family: var(--font-mono); }

/* ---------- wzor6 · "ESENCJA" — editorial magazine / light ---------- */
body[data-theme-template="wzor6"] {
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --bg-primary: #ffffff;
    --bg-secondary: #fafafa;
    --bg-card: #ffffff;
    --text-primary: #18181b;
    --text-secondary: #3f3f46;
    --text-muted: #a1a1aa;
    --accent: #18181b;
    --accent-hover: #3f3f46;
    --border-color: #e4e4e7;
    --radius: 4px;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-text: #18181b;
    --footer-bg: #fafafa;
    --footer-text: #71717a;
}
body[data-theme-template="wzor6"] .template-bar {
    background: #18181b;
    color: #d4d4d8;
    text-align: center;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    padding: 0.5rem 1rem;
    text-transform: uppercase;
}
body[data-theme-template="wzor6"] .header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 80px;
}
body[data-theme-template="wzor6"] .logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}
body[data-theme-template="wzor6"] .logo span { display: none; }
body[data-theme-template="wzor6"] .site-tagline {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: var(--text-muted);
}
body[data-theme-template="wzor6"] .nav a {
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--text-secondary);
    line-height: 80px;
}
body[data-theme-template="wzor6"] .nav a:hover,
body[data-theme-template="wzor6"] .nav a.active {
    color: var(--text-primary);
    background: transparent;
    border-left: none;
}
body[data-theme-template="wzor6"] .main-wrapper { max-width: 1280px; }
body[data-theme-template="wzor6"] .posts-section { padding-top: 0.5rem; }
body[data-theme-template="wzor6"] .section-header {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
}
body[data-theme-template="wzor6"] .section-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-primary);
}
body[data-theme-template="wzor6"] .post-card {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.75rem;
    margin-bottom: 1.5rem;
    transition: box-shadow 0.2s, transform 0.2s;
}
body[data-theme-template="wzor6"] .post-card:hover {
    background: var(--bg-card);
    box-shadow: 0 8px 30px -12px rgba(0, 0, 0, 0.12);
    transform: translateY(-2px);
}
body[data-theme-template="wzor6"] .post-card:last-child { margin-bottom: 0; }
body[data-theme-template="wzor6"] .post-meta {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}
body[data-theme-template="wzor6"] .post-meta .category-tag { color: var(--text-primary); }
body[data-theme-template="wzor6"] .post-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
}
body[data-theme-template="wzor6"] .post-title a:hover { color: var(--accent-hover); }
body[data-theme-template="wzor6"] .post-excerpt { font-size: 0.9rem; line-height: 1.7; }
body[data-theme-template="wzor6"] .read-more {
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: none;
    color: var(--text-primary);
}
body[data-theme-template="wzor6"] .read-more:hover { color: var(--accent-hover); }
body[data-theme-template="wzor6"] .sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
body[data-theme-template="wzor6"] .sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-primary);
}
body[data-theme-template="wzor6"] .tag {
    font-size: 0.8rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
}
body[data-theme-template="wzor6"] .tag:hover {
    background: var(--text-primary);
    color: #ffffff;
    border-color: var(--text-primary);
}
body[data-theme-template="wzor6"] .footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
}
body[data-theme-template="wzor6"] .footer .footer-title,
body[data-theme-template="wzor6"] .footer .copyright,
body[data-theme-template="wzor6"] .footer-links a,
body[data-theme-template="wzor6"] .footer .widget-content { color: var(--footer-text); }

/* ---------- wzor7 · "Wróbel" — minimal / light / serif ---------- */
body[data-theme-template="wzor7"] {
    --font-heading: 'Lora', Georgia, 'Times New Roman', serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --bg-primary: #fdfcfa;
    --bg-secondary: #f5f2ec;
    --bg-card: #fdfcfa;
    --text-primary: #181818;
    --text-secondary: #6b6b6b;
    --text-muted: #a5a5a5;
    --accent: #cfae7e;
    --accent-hover: #b89560;
    --border-color: #ececea;
    --radius: 12px;
    --header-bg: rgba(253, 252, 250, 0.92);
    --header-text: #181818;
    --footer-bg: #fdfcfa;
    --footer-text: #6b6b6b;
}
body[data-theme-template="wzor7"] .header {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    height: 84px;
}
body[data-theme-template="wzor7"] .logo {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 300;
    letter-spacing: 0;
}
body[data-theme-template="wzor7"] .logo span { display: none; }
body[data-theme-template="wzor7"] .site-tagline {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1rem;
    text-transform: none;
    color: var(--text-secondary);
}
body[data-theme-template="wzor7"] .nav a {
    font-size: 0.82rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-secondary);
    line-height: 84px;
}
body[data-theme-template="wzor7"] .nav a:hover,
body[data-theme-template="wzor7"] .nav a.active {
    color: var(--text-primary);
    background: transparent;
    border-left: none;
}
body[data-theme-template="wzor7"] .main-wrapper { max-width: 1120px; }
body[data-theme-template="wzor7"] .content-area {
    border-right: none;
    padding-right: 3rem;
}
body[data-theme-template="wzor7"] .section-header {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 2rem;
    justify-content: center;
}
body[data-theme-template="wzor7"] .section-title {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-style: italic;
    letter-spacing: 0.05em;
    text-transform: none;
    color: var(--text-muted);
}
body[data-theme-template="wzor7"] .post-card {
    border-bottom: 1px solid var(--border-color);
    border-radius: 0;
    padding: 3.5rem 0;
    margin-bottom: 0;
}
body[data-theme-template="wzor7"] .post-card:last-child { border-bottom: none; }
body[data-theme-template="wzor7"] .post-meta {
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text-muted);
}
body[data-theme-template="wzor7"] .post-meta .category-tag {
    color: var(--accent);
    font-weight: 500;
}
body[data-theme-template="wzor7"] .post-title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
}
body[data-theme-template="wzor7"] .post-title a:hover { color: var(--accent); }
body[data-theme-template="wzor7"] .post-excerpt {
    font-family: var(--font-body);
    font-weight: 300;
    font-size: 1rem;
    line-height: 1.7;
}
body[data-theme-template="wzor7"] .read-more {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: none;
    color: var(--text-primary);
}
body[data-theme-template="wzor7"] .read-more:hover { color: var(--accent); }
body[data-theme-template="wzor7"] .sidebar-block {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2.5rem;
}
body[data-theme-template="wzor7"] .sidebar-title {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    color: var(--text-primary);
}
body[data-theme-template="wzor7"] .tag {
    font-size: 0.8rem;
    padding: 0.5rem 1rem;
    border-radius: 999px;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}
body[data-theme-template="wzor7"] .tag:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: transparent;
}
body[data-theme-template="wzor7"] .popular-num {
    font-family: var(--font-heading);
    font-size: 1.9rem;
    color: #ddd9d3;
}
body[data-theme-template="wzor7"] .entry-title { font-family: var(--font-heading); font-weight: 400; }
body[data-theme-template="wzor7"] .footer {
    background: var(--footer-bg);
    border-top: 1px solid var(--border-color);
}
body[data-theme-template="wzor7"] .footer .footer-title,
body[data-theme-template="wzor7"] .footer .copyright,
body[data-theme-template="wzor7"] .footer-links a,
body[data-theme-template="wzor7"] .footer .widget-content { color: var(--footer-text); }
body[data-theme-template="wzor7"] .footer .footer-title { font-family: var(--font-heading); }

/* ---------- responsive tweaks for template variants ---------- */
@media (max-width: 900px) {
    body[data-theme-template="default"] .post-card,
    body[data-theme-template="wzor5"] .post-card {
        grid-template-columns: 1fr;
        display: block;
    }
    body[data-theme-template="wzor5"] .post-card .post-footer {
        grid-column: auto;
        grid-row: auto;
        display: none;
    }
}
@media (max-width: 600px) {
    body[data-theme-template="wzor2"] .nav a { padding: 0 0.6rem; }
    body[data-theme-template="wzor6"] .logo { font-size: 1.2rem; }
}


/* ===== UTILITIES ===== */
.text-muted {
    opacity: 0.7;
}

.hidden {
    display: none !important;
}

/* ===== CATEGORIES ===== */
/* Category/tag labels keep their stored case: categories First-uppercase, tags lowercase. */
.post-meta .category-tag {
    text-transform: none;
    letter-spacing: 0;
}
body[data-theme-template="default"] .post-meta .category-tag {
    text-transform: none;
}

.post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}
.post-categories .category-tag,
a.category-tag {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent);
    background: rgba(200, 169, 110, 0.12);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    text-decoration: none;
}
