/*
Theme Name: OpenClaw Pulse
Theme URI: https://openclawpulse.com
Description: A Verge-inspired dark theme for OpenClaw Pulse built on Kadence.
Author: OpenClaw
Version: 1.2.0
Template: kadence
Text Domain: openclawpulse
*/

@import url('https://fonts.googleapis.com/css2?family=Source+Serif+4:ital,opsz,wght@0,8..60,300..900;1,8..60,300..900&display=swap');

/* ============================================
   CSS CUSTOM PROPERTIES
   ============================================ */
:root {
    --ocp-bg: #0d0d1a;
    --ocp-bg-secondary: #1e1e32;
    --ocp-border: #2a2a45;
    --ocp-text: #c8c8d0;
    --ocp-text-bright: #ffffff;
    --ocp-text-muted: #8888a0;
    --ocp-accent: #e94560;
    --ocp-font-headline: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
    --ocp-font-body: "Source Serif 4", Georgia, serif;
    --ocp-font-ui: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, sans-serif;
    --ocp-content-width: 780px;
    --ocp-site-width: 1200px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background: var(--ocp-bg) !important;
    color: var(--ocp-text);
    font-family: var(--ocp-font-ui);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--ocp-text-bright);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--ocp-accent);
}

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

/* ============================================
   HIDE KADENCE DEFAULTS
   ============================================ */
.site-header-wrap,
.site-footer-wrap,
#wrapper .site-header,
#wrapper .site-footer,
.kadence-breadcrumbs,
.entry-hero-container-inner,
.comments-area,
.post-navigation,
.kadence-related-posts,
.site-header-row,
.site-top-header-wrap,
.site-main-header-wrap,
.site-bottom-header-wrap,
#colophon,
.footer-navigation,
.site-footer-primary-section-1,
.site-footer-top-wrap,
.site-footer-middle-wrap,
.site-footer-bottom-wrap {
    display: none !important;
}

/* ============================================
   HEADER
   ============================================ */
.ocp-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--ocp-bg);
    border-bottom: 2px solid var(--ocp-accent);
}

.ocp-header-inner {
    max-width: var(--ocp-site-width);
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.ocp-logo {
    font-family: var(--ocp-font-headline);
    font-size: 22px;
    font-weight: 800;
    color: var(--ocp-text-bright);
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.ocp-logo a {
    color: var(--ocp-text-bright);
}

.ocp-logo a:hover {
    color: var(--ocp-accent);
}

.ocp-nav {
    display: flex;
    align-items: center;
    gap: 0;
}

.ocp-nav a {
    font-family: var(--ocp-font-ui);
    font-size: 14px;
    font-weight: 600;
    color: var(--ocp-text);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 16px;
    height: 60px;
    display: flex;
    align-items: center;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.ocp-nav a:hover,
.ocp-nav a.current {
    color: var(--ocp-text-bright);
    border-bottom-color: var(--ocp-accent);
}

/* Mobile menu toggle */
.ocp-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
}

.ocp-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ocp-text-bright);
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.ocp-menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.ocp-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.ocp-menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.ocp-mobile-menu {
    display: none;
    position: fixed;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--ocp-bg);
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
}

.ocp-mobile-menu.active {
    display: block;
}

.ocp-mobile-menu a {
    display: block;
    font-family: var(--ocp-font-headline);
    font-size: 28px;
    font-weight: 800;
    color: var(--ocp-text-bright);
    padding: 16px 0;
    border-bottom: 1px solid var(--ocp-border);
}

.ocp-mobile-menu a:hover {
    color: var(--ocp-accent);
}

/* ============================================
   HOMEPAGE — HERO
   ============================================ */
.ocp-homepage {
    max-width: var(--ocp-site-width);
    margin: 0 auto;
    padding: 0 24px;
}

.ocp-hero-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 32px;
    padding: 40px 0 32px;
    border-bottom: 1px solid var(--ocp-border);
}

.ocp-hero-main {
    position: relative;
    overflow: hidden;
}

.ocp-hero-main a {
    display: block;
    position: relative;
}

.ocp-hero-image {
    width: 100%;
    height: 480px;
    object-fit: cover;
    display: block;
    filter: brightness(0.6);
}

.ocp-hero-image-placeholder {
    width: 100%;
    height: 480px;
    background: var(--ocp-bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ocp-text-muted);
    font-size: 48px;
}

.ocp-hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 40px 32px;
    background: linear-gradient(transparent, rgba(13, 13, 26, 0.95));
}

.ocp-hero-category {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ocp-accent);
    margin-bottom: 12px;
}

.ocp-hero-title {
    font-family: var(--ocp-font-headline);
    font-size: 36px;
    font-weight: 800;
    color: var(--ocp-text-bright);
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.ocp-hero-excerpt {
    font-size: 16px;
    color: var(--ocp-text);
    line-height: 1.5;
    margin: 0;
    max-width: 600px;
}

/* ============================================
   HOMEPAGE — TOP STORIES SIDEBAR
   ============================================ */
.ocp-top-stories h3 {
    font-family: var(--ocp-font-headline);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ocp-text-muted);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ocp-accent);
}

.ocp-top-story {
    display: grid;
    grid-template-columns: 32px 1fr 72px;
    gap: 12px;
    align-items: start;
    padding: 16px 0;
    border-bottom: 1px solid var(--ocp-border);
}

.ocp-top-story:last-child {
    border-bottom: none;
}

.ocp-story-number {
    font-family: var(--ocp-font-headline);
    font-size: 28px;
    font-weight: 800;
    color: var(--ocp-accent);
    line-height: 1;
}

.ocp-story-content {
    min-width: 0;
}

.ocp-story-title {
    font-family: var(--ocp-font-headline);
    font-size: 15px;
    font-weight: 700;
    color: var(--ocp-text-bright);
    line-height: 1.3;
    margin: 0 0 6px;
    letter-spacing: -0.01em;
}

.ocp-story-title a {
    color: var(--ocp-text-bright);
}

.ocp-story-title a:hover {
    color: var(--ocp-accent);
}

.ocp-story-meta {
    font-size: 12px;
    color: var(--ocp-text-muted);
}

.ocp-story-meta .author {
    color: var(--ocp-accent);
    font-weight: 600;
}

.ocp-story-thumb {
    width: 72px;
    height: 72px;
    object-fit: cover;
    background: var(--ocp-bg-secondary);
}

/* ============================================
   HOMEPAGE — ARTICLE FEED
   ============================================ */
.ocp-feed {
    padding: 32px 0 64px;
}

.ocp-feed-header {
    font-family: var(--ocp-font-headline);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ocp-text-muted);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ocp-accent);
}

.ocp-feed-item {
    padding: 24px 0;
    border-bottom: 1px solid var(--ocp-border);
}

.ocp-feed-item:last-child {
    border-bottom: none;
}

.ocp-feed-category {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ocp-accent);
    margin-bottom: 6px;
}

.ocp-feed-title {
    font-family: var(--ocp-font-headline);
    font-size: 22px;
    font-weight: 800;
    color: var(--ocp-text-bright);
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin: 0 0 8px;
}

.ocp-feed-title a {
    color: var(--ocp-text-bright);
}

.ocp-feed-title a:hover {
    color: var(--ocp-accent);
}

.ocp-feed-excerpt {
    font-size: 15px;
    color: var(--ocp-text-muted);
    line-height: 1.5;
    margin: 0 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ocp-feed-meta {
    font-size: 13px;
    color: var(--ocp-text-muted);
}

.ocp-feed-meta .author {
    color: var(--ocp-accent);
    font-weight: 600;
}

/* ============================================
   SINGLE POST — HEADER
   ============================================ */
.ocp-single-header {
    background: var(--ocp-bg);
    padding: 48px 24px 40px;
}

.ocp-single-header-inner {
    max-width: var(--ocp-content-width);
    margin: 0 auto;
}

.ocp-single-category {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ocp-accent);
    margin-bottom: 16px;
}

.ocp-single-category a {
    color: var(--ocp-accent);
}

.ocp-single-title {
    font-family: var(--ocp-font-headline);
    font-size: 42px;
    font-weight: 800;
    color: var(--ocp-text-bright);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.ocp-single-byline {
    font-size: 14px;
    color: var(--ocp-text-muted);
}

.ocp-single-byline .author {
    color: var(--ocp-accent);
    font-weight: 600;
}

/* ============================================
   SINGLE POST — CONTENT
   ============================================ */
.ocp-single-content-wrap {
    background: #f5f5f0;
    padding: 48px 24px 64px;
}

.ocp-single-content {
    max-width: var(--ocp-content-width);
    margin: 0 auto;
}

.ocp-single-content p {
    font-family: var(--ocp-font-body);
    font-size: 20px;
    line-height: 1.8;
    color: #1a1a1a;
    margin: 0 0 28px;
}

.ocp-single-content h2,
.ocp-single-content h3,
.ocp-single-content h4 {
    font-family: var(--ocp-font-headline);
    color: #1a1a1a;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 48px 0 16px;
    padding-top: 32px;
    border-top: 1px solid #ddd;
}

.ocp-single-content h2 {
    font-size: 30px;
    line-height: 1.2;
}

.ocp-single-content h3 {
    font-size: 24px;
    line-height: 1.25;
}

.ocp-single-content h4 {
    font-size: 20px;
}

.ocp-single-content h2:first-child,
.ocp-single-content h3:first-child,
.ocp-single-content h4:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.ocp-single-content ul,
.ocp-single-content ol {
    font-family: var(--ocp-font-body);
    font-size: 20px;
    line-height: 1.8;
    color: #1a1a1a;
    margin: 0 0 28px 0;
    padding: 0;
    list-style-position: outside;
    list-style-type: disc;
}

.ocp-single-content ol {
    list-style-type: decimal;
}

.ocp-single-content li {
    margin: 0 0 12px 1.2em;
    padding: 0;
}

.ocp-single-content blockquote {
    margin: 32px 0;
    padding: 16px 24px;
    border-left: 3px solid var(--ocp-accent);
    background: #ebebdf;
    font-family: var(--ocp-font-body);
    font-size: 20px;
    font-style: italic;
    color: #333;
}

.ocp-single-content a {
    color: var(--ocp-accent);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.ocp-single-content a:hover {
    color: #d63050;
}

.ocp-single-content img {
    display: none;
}

.ocp-single-content pre {
    background: #1a1a1a;
    color: #e0e0e0;
    padding: 24px;
    overflow-x: auto;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 28px;
}

.ocp-single-content code {
    background: #e0e0d8;
    padding: 2px 6px;
    font-size: 0.9em;
    border-radius: 2px;
}

.ocp-single-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
}

/* ============================================
   SINGLE POST — KEEP READING
   ============================================ */
.ocp-keep-reading {
    max-width: var(--ocp-content-width);
    margin: 0 auto;
    padding: 48px 0;
}

.ocp-keep-reading h3 {
    font-family: var(--ocp-font-headline);
    font-size: 14px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--ocp-text-muted);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--ocp-accent);
}

.ocp-keep-reading-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--ocp-border);
}

.ocp-keep-reading-item:last-child {
    border-bottom: none;
}

.ocp-keep-reading-title {
    font-family: var(--ocp-font-headline);
    font-size: 18px;
    font-weight: 700;
    color: var(--ocp-text-bright);
    margin: 0 0 4px;
}

.ocp-keep-reading-title a {
    color: var(--ocp-text-bright);
}

.ocp-keep-reading-title a:hover {
    color: var(--ocp-accent);
}

.ocp-keep-reading-meta {
    font-size: 12px;
    color: var(--ocp-text-muted);
}

.ocp-keep-reading-meta .author {
    color: var(--ocp-accent);
    font-weight: 600;
}

/* ============================================
   ARCHIVE PAGES
   ============================================ */
.ocp-archive {
    max-width: var(--ocp-site-width);
    margin: 0 auto;
    padding: 0 24px;
}

.ocp-archive-header {
    padding: 40px 0 24px;
    border-bottom: 2px solid var(--ocp-accent);
    margin-bottom: 32px;
}

.ocp-archive-title {
    font-family: var(--ocp-font-headline);
    font-size: 36px;
    font-weight: 800;
    color: var(--ocp-text-bright);
    letter-spacing: -0.02em;
    margin: 0;
}

.ocp-archive-description {
    font-size: 16px;
    color: var(--ocp-text-muted);
    margin-top: 8px;
}

/* Archive hero card */
.ocp-archive-hero {
    display: block;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
    text-decoration: none !important;
}

.ocp-archive-hero img {
    width: 100%;
    height: 420px;
    object-fit: cover;
    display: block;
}

.ocp-archive-hero-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px;
    background: linear-gradient(transparent, rgba(13,13,26,0.95));
}

.ocp-archive-hero-text h2 {
    font-family: var(--ocp-font-headline);
    font-size: 32px;
    font-weight: 800;
    color: var(--ocp-text-bright);
    letter-spacing: -0.02em;
    margin: 8px 0 12px;
    line-height: 1.15;
}

.ocp-archive-hero-text p {
    font-size: 16px;
    color: var(--ocp-text);
    margin: 0 0 8px;
    line-height: 1.5;
}

.ocp-archive-hero:hover h2 {
    color: var(--ocp-accent);
}

/* Card grid */
.ocp-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 48px;
}

.ocp-card {
    display: block;
    text-decoration: none !important;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.ocp-card:hover {
    border-color: var(--ocp-accent);
}

.ocp-card-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
}

.ocp-card-placeholder {
    background: var(--ocp-bg-secondary);
}

.ocp-card-body {
    padding: 16px 0;
}

.ocp-card-body h3 {
    font-family: var(--ocp-font-headline);
    font-size: 18px;
    font-weight: 800;
    color: var(--ocp-text-bright);
    letter-spacing: -0.02em;
    margin: 6px 0 10px;
    line-height: 1.25;
}

.ocp-card:hover h3 {
    color: var(--ocp-accent);
}

@media (max-width: 900px) {
    .ocp-archive-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ocp-archive-hero img {
        height: 260px;
    }
    .ocp-archive-hero-text h2 {
        font-size: 24px;
    }
    .ocp-archive-grid {
        grid-template-columns: 1fr;
    }
    .ocp-card-image {
        height: 180px;
    }
}

/* ============================================
   STATIC PAGES
   ============================================ */
.ocp-page {
    max-width: var(--ocp-content-width);
    margin: 0 auto;
    padding: 48px 24px 64px;
}

.ocp-page-title {
    font-family: var(--ocp-font-headline);
    font-size: 42px;
    font-weight: 800;
    color: var(--ocp-text-bright);
    letter-spacing: -0.02em;
    margin: 0 0 32px;
    line-height: 1.1;
}

.ocp-page-content {
    font-family: var(--ocp-font-body);
    font-size: 20px;
    line-height: 1.8;
    color: var(--ocp-text);
}

.ocp-page-content h2,
.ocp-page-content h3 {
    font-family: var(--ocp-font-headline);
    color: var(--ocp-text-bright);
    font-weight: 800;
    margin-top: 40px;
}

.ocp-page-content a {
    color: var(--ocp-accent);
}

/* ============================================
   404 PAGE
   ============================================ */
.ocp-404 {
    max-width: var(--ocp-site-width);
    margin: 0 auto;
    padding: 120px 24px;
    text-align: center;
}

.ocp-404 h1 {
    font-family: var(--ocp-font-headline);
    font-size: 120px;
    font-weight: 800;
    color: var(--ocp-accent);
    margin: 0;
    line-height: 1;
}

.ocp-404 p {
    font-size: 20px;
    color: var(--ocp-text-muted);
    margin: 16px 0 32px;
}

.ocp-404 a {
    display: inline-block;
    color: var(--ocp-text-bright);
    border: 2px solid var(--ocp-accent);
    padding: 12px 32px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 14px;
    transition: background 0.2s ease;
}

.ocp-404 a:hover {
    background: var(--ocp-accent);
}

/* ============================================
   FOOTER
   ============================================ */
.ocp-footer {
    border-top: 2px solid var(--ocp-accent);
    background: var(--ocp-bg);
    padding: 32px 24px;
}

.ocp-footer-inner {
    max-width: var(--ocp-site-width);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ocp-footer-copy {
    font-size: 13px;
    color: var(--ocp-text-muted);
}

.ocp-footer-links {
    display: flex;
    gap: 24px;
}

.ocp-footer-links a {
    font-size: 13px;
    color: var(--ocp-text-muted);
    font-weight: 600;
}

.ocp-footer-links a:hover {
    color: var(--ocp-accent);
}

/* ============================================
   PAGINATION
   ============================================ */
.ocp-pagination {
    padding: 32px 0;
    display: flex;
    gap: 12px;
    justify-content: center;
}

.ocp-pagination a,
.ocp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    font-size: 14px;
    font-weight: 600;
    border: 1px solid var(--ocp-border);
    color: var(--ocp-text);
    transition: all 0.2s ease;
}

.ocp-pagination a:hover {
    border-color: var(--ocp-accent);
    color: var(--ocp-accent);
}

.ocp-pagination .current {
    background: var(--ocp-accent);
    border-color: var(--ocp-accent);
    color: var(--ocp-text-bright);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
    .ocp-hero-grid {
        grid-template-columns: 1fr;
    }

    .ocp-hero-image,
    .ocp-hero-image-placeholder {
        height: 320px;
    }

    .ocp-hero-title {
        font-size: 28px;
    }

    .ocp-single-title {
        font-size: 32px;
    }

    .ocp-nav {
        display: none;
    }

    .ocp-menu-toggle {
        display: flex;
    }
}

@media (max-width: 600px) {
    .ocp-hero-image,
    .ocp-hero-image-placeholder {
        height: 240px;
    }

    .ocp-hero-title {
        font-size: 24px;
    }

    .ocp-hero-overlay {
        padding: 24px 16px;
    }

    .ocp-single-title {
        font-size: 28px;
    }

    .ocp-single-content p,
    .ocp-single-content ul,
    .ocp-single-content ol {
        font-size: 18px;
    }

    .ocp-feed-title {
        font-size: 19px;
    }

    .ocp-footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
}

/* ============================================
   UTILITY — OVERRIDE KADENCE REMNANTS
   ============================================ */
.site {
    background: var(--ocp-bg) !important;
}

.content-area,
.site-main,
.site-content,
#inner-wrap,
#wrapper {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
}

.entry-content-wrap,
.entry-summary {
    padding: 0 !important;
    margin: 0 !important;
}

.wp-block-post-featured-image,
.post-thumbnail,
.kadence-thumbnail-position,
.entry-thumbnail {
    display: none !important;
}

/* Hide any Kadence page title sections */
.entry-hero,
.page-hero-section,
.entry-header {
    display: none !important;
}

/* Remove Kadence content wrappers styling */
.site-container {
    max-width: none !important;
    padding: 0 !important;
}

/* === TICKER BAR === */
.ocp-ticker-bar {
    background: #1e1e32;
    border-bottom: 1px solid rgba(233,69,96,0.3);
    overflow: hidden;
    white-space: nowrap;
    padding: 8px 0;
    font-size: 13px;
    color: #a0a0b8;
}
.ocp-ticker-track {
    display: inline-block;
    animation: ocp-ticker-scroll 25s linear infinite;
}
.ocp-ticker-text {
    display: inline-block;
}
@keyframes ocp-ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* === THE PULSE: Community Spotlight === */
.ocp-pulse-section {
    background: #12122a;
    padding: 48px 24px;
    border-top: 1px solid #1e1e32;
    border-bottom: 1px solid #1e1e32;
}
.ocp-pulse-title {
    color: #e94560;
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 32px;
    text-align: center;
}
.ocp-pulse-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}
.ocp-pulse-embed {
    background: #1a1a2e;
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(233,69,96,0.1);
    overflow: hidden;
}
.ocp-pulse-embed iframe {
    border-radius: 8px !important;
}

.ocp-pulse-subtitle {
    color: #8888a0;
    font-size: 15px;
    text-align: center;
    margin-top: -24px;
    margin-bottom: 32px;
}

/* Pulse quote cards */
.ocp-pulse-card {
    display: block;
    background: #1a1a2e;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid rgba(233,69,96,0.15);
    text-decoration: none;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.ocp-pulse-card:hover {
    border-color: #e94560;
    transform: translateY(-2px);
}
.ocp-pulse-author {
    color: #e94560;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}
.ocp-pulse-quote {
    color: #c8c8d0;
    font-size: 15px;
    line-height: 1.6;
    margin: 0 0 12px;
    font-style: italic;
}
.ocp-pulse-link {
    color: #8888a0;
    font-size: 13px;
    font-weight: 600;
}
.ocp-pulse-card:hover .ocp-pulse-link {
    color: #e94560;
}

/* Feed items with thumbnails */
    min-width: 0;
}
.ocp-feed-thumb {
    width: 120px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    flex-shrink: 0;
}
@media (max-width: 600px) {
    .ocp-feed-thumb {
        width: 90px;
        height: 60px;
    }
}

/* ============================================
   HOMEPAGE FEED GRID
   ============================================ */
.ocp-feed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

@media (max-width: 900px) {
    .ocp-feed-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .ocp-feed-grid {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   LIST ITEMS (category/archive pages)
   ============================================ */
.ocp-list-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--ocp-border);
    text-decoration: none !important;
    transition: opacity 0.15s;
}

.ocp-list-item:hover {
    opacity: 0.85;
}

.ocp-list-item:hover h3 {
    color: var(--ocp-accent) !important;
}

.ocp-list-item-text {
    flex: 1;
}

.ocp-list-item-text h3 {
    font-family: var(--ocp-font-headline);
    font-size: 22px;
    font-weight: 800;
    color: var(--ocp-text-bright);
    letter-spacing: -0.02em;
    margin: 6px 0 8px;
    line-height: 1.25;
    transition: color 0.15s;
}

.ocp-list-item-text p {
    font-size: 15px;
    color: var(--ocp-text-muted);
    margin: 0;
    line-height: 1.5;
}

.ocp-list-item-meta {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--ocp-text-muted);
    white-space: nowrap;
    padding-top: 30px;
}

/* ============================================
   MERVBOT ENHANCEMENTS v2 — 2026-02-18
   (homepage/archive/search only — articles untouched)
   ============================================ */

/* Logo: pulse signal icon */
.ocp-logo a { display:inline-flex; align-items:center; gap:10px; font-weight:800; letter-spacing:1.5px; }
.ocp-logo a::before { content:''; display:inline-block; width:52px; height:26px; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 58 28'%3E%3Cpolyline points='0,14 11,14 15.5,3 20,25 24.5,14 35.5,14 39,8 42.5,20 46,14 58,14' stroke='%23e94560' stroke-width='2.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat:no-repeat; background-size:contain; flex-shrink:0; }
.ocp-header { border-bottom:2px solid var(--ocp-accent) !important; }
.ocp-nav a { position:relative; }
.ocp-nav a::after { content:''; position:absolute; bottom:-4px; left:0; width:0; height:2px; background:var(--ocp-accent); transition:width 0.2s; }
.ocp-nav a:hover::after { width:100%; }
@media(max-width:600px){ .ocp-logo a::before{width:38px;height:19px;} .ocp-logo a{gap:7px;} }

/* Homepage + archive: white content zone */
.ocp-archive-page { min-height:100vh; }
.ocp-archive-hero-header { background:var(--ocp-bg); padding:48px 24px 40px; border-bottom:2px solid var(--ocp-accent); }
.ocp-archive-header-inner { max-width:var(--ocp-site-width); margin:0 auto; }
.ocp-feed-inner { max-width:var(--ocp-site-width); margin:0 auto; }
.ocp-homepage .ocp-single-content-wrap,
.ocp-archive-page .ocp-single-content-wrap { border-top:none !important; }
.ocp-hero-grid { border-bottom:none !important; margin-bottom:0 !important; }

/* White body for non-article pages */
body:not(.single):not(.page-template-default) { background:#f5f5f0 !important; }
.ocp-homepage { background:#f5f5f0 !important; }
.ocp-hero-grid { background:#f5f5f0 !important; }
.ocp-top-stories { background:#fff !important; border-radius:8px !important; padding:24px !important; border:1px solid #e8e8e8 !important; }
.ocp-top-stories h3 { color:#999 !important; border-bottom-color:#e8e8e8 !important; }
.ocp-top-story { border-bottom:1px solid #f0f0f0 !important; }
.ocp-story-title a { color:#1a1a1a !important; }
.ocp-story-title a:hover { color:var(--ocp-accent) !important; }
.ocp-story-meta { color:#999 !important; }
.ocp-single-content-wrap .ocp-list-item-text h3 { color:#1a1a1a !important; }
.ocp-single-content-wrap .ocp-list-item-text h3:hover,
.ocp-single-content-wrap .ocp-list-item:hover h3 { color:var(--ocp-accent) !important; }
.ocp-single-content-wrap .ocp-list-item-text p,
.ocp-single-content-wrap .ocp-list-item-meta { color:#666 !important; }
.ocp-single-content-wrap .ocp-list-item { border-bottom-color:#e8e8e8 !important; }
.ocp-single-content-wrap .ocp-feed-header { color:#999 !important; }
.ocp-footer { border-top:2px solid var(--ocp-accent) !important; }

/* Hero image fills full height */
.ocp-hero-grid { align-items:stretch !important; }
.ocp-hero-main { position:relative !important; min-height:380px !important; overflow:hidden !important; display:flex !important; flex-direction:column !important; }
.ocp-hero-main > a { flex:1 !important; display:flex !important; flex-direction:column !important; position:relative !important; height:100% !important; }
.ocp-hero-image { position:absolute !important; inset:0 !important; width:100% !important; height:100% !important; object-fit:cover !important; }
.ocp-hero-overlay { position:absolute !important; bottom:0 !important; left:0 !important; right:0 !important; background:linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%) !important; padding:32px 24px 24px !important; }
.ocp-homepage .ocp-single-content-wrap { margin-top:0 !important; padding-top:32px !important; }

/* Search overlay */
.ocp-search-btn { background:none; border:none; cursor:pointer; padding:4px 6px; color:var(--ocp-text-muted); display:flex; align-items:center; transition:color 0.15s; margin-left:8px; }
.ocp-search-btn:hover { color:var(--ocp-text-bright); }
.ocp-search-overlay { display:none; position:fixed; inset:0; background:rgba(10,10,18,0.92); z-index:9999; padding:80px 24px 24px; backdrop-filter:blur(8px); }
.ocp-search-overlay.active { display:block; }
.ocp-search-box { max-width:680px; margin:0 auto; }
.ocp-search-input-wrap { position:relative; margin-bottom:24px; }
.ocp-search-input { width:100%; background:#1a1a2e; border:2px solid var(--ocp-accent); border-radius:8px; padding:16px 56px 16px 20px; font-size:20px; color:#fff; outline:none; }
.ocp-search-input::placeholder { color:#555; }
.ocp-search-close { position:absolute; right:16px; top:50%; transform:translateY(-50%); background:none; border:none; color:#666; cursor:pointer; font-size:22px; padding:4px; }
.ocp-search-close:hover { color:#fff; }
.ocp-search-results { max-height:calc(100vh - 200px); overflow-y:auto; }
.ocp-search-result { display:block; padding:16px 20px; border-radius:6px; text-decoration:none; transition:background 0.1s; border-bottom:1px solid #1a1a2e; }
.ocp-search-result:hover { background:#1a1a2e; }
.ocp-search-result-cat { font-size:10px; font-weight:800; letter-spacing:2px; text-transform:uppercase; color:var(--ocp-accent); margin-bottom:4px; }
.ocp-search-result-title { font-size:17px; font-weight:700; color:#fff; margin-bottom:4px; }
.ocp-search-result-excerpt { font-size:13px; color:#666; }
.ocp-search-empty { text-align:center; color:#555; padding:48px 0; }
.ocp-search-hint { text-align:center; color:#444; font-size:13px; padding:32px 0 0; }

/* =============================================
   Code Block: wrapper + header bar + copy btn
   ============================================= */
.ocp-code-wrap {
  margin: 24px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #2d2d4a;
}

.ocp-code-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #12122a;
  padding: 8px 16px;
  border-bottom: 1px solid #2d2d4a;
}

.ocp-code-lang {
  font-family: "JetBrains Mono", "Fira Code", "Courier New", monospace;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #7c7caa;
  text-transform: uppercase;
}

.ocp-copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #3d3d6a;
  color: #aaaacc;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
  font-family: inherit;
  line-height: 1;
}

.ocp-copy-btn:hover {
  background: #1e1e3d;
  border-color: #5d5daa;
  color: #ccccee;
}

.ocp-copy-btn--success {
  border-color: #22c55e;
  color: #22c55e;
  background: rgba(34, 197, 94, 0.08);
}

.ocp-code-wrap pre {
  margin: 0 !important;
  border-radius: 0 !important;
  border: none !important;
}

/* Fix: Force light text inside dark code blocks (Kadence override) */
pre code,
pre code *,
.ocp-code-wrap pre code,
.ocp-code-wrap pre code * {
  color: #e0e0e0 !important;
  background: transparent !important;
}

/* Remove extra trailing whitespace height in code blocks */
.ocp-code-wrap pre code {
  display: block;
  white-space: pre;
}
