/*
Theme Name: GIB Ink
Theme URI: https://toomey2u.github.io/game-design-blog-/
Author: Luke Toomey
Description: Custom theme for Gaming Industry Analysis — ported from the site's design preview. Dark purple palette, animated cards, SVG artwork.
Version: 1.0.0
License: GPL-2.0-or-later
Text Domain: gib-ink
*/

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

        :root {
            --bg-primary: #0a0a0f;
            --bg-secondary: #14141d;
            --bg-tertiary: #1d1d2b;
            --text-primary: #e8e6f0;
            --text-secondary: #9d97b5;
            --accent: #8b5cf6;
            --accent-hover: #a78bfa;
            --accent-glow: rgba(139, 92, 246, 0.35);
            --border: #2a2a3d;
            --card-bg: #14141d;
            --shadow: rgba(0, 0, 0, 0.5);
            --commerce-color: #8b5cf6;
            --governing-color: #6366f1;
            --culture-color: #a855f7;
            --technology-color: #7c3aed;
            --conclusion-color: #c084fc;
        }

        body.theme-light {
            --bg-primary: #ddd5c3;
            --bg-secondary: #d3c9b4;
            --bg-tertiary: #c7bca5;
            --text-primary: #2e2a35;
            --text-secondary: #5f596b;
            --accent: #6d28d9;
            --accent-hover: #5b21b6;
            --accent-glow: rgba(109, 40, 217, 0.16);
            --border: #bdb19c;
            --card-bg: #e9e3d5;
            --shadow: rgba(70, 55, 30, 0.22);
            background: linear-gradient(165deg, #e0d7c4 0%, #d6cdb9 55%, #cdc4b0 100%);
            background-attachment: fixed;
        }

        body.theme-light .category-badge-commerce { color: #5b21b6; }
        body.theme-light .category-badge-governing { color: #3730a3; }
        body.theme-light .category-badge-culture { color: #7e22ce; }
        body.theme-light .category-badge-technology { color: #4c1d95; }
        body.theme-light .category-badge-conclusion { color: #86198f; }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
            background-color: var(--bg-primary);
            color: var(--text-primary);
            line-height: 1.6;
            transition: background-color 0.3s ease, color 0.3s ease;
        }

        .container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
        }

        /* Header */
        .site-header {
            background-color: var(--bg-secondary);
            border-bottom: 1px solid var(--border);
            padding: 0.75rem 0;
            position: sticky;
            top: 0;
            z-index: 100;
            backdrop-filter: blur(10px);
        }

        .header-content {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 1.5rem;
        }

        .site-brand {
            display: flex;
            align-items: center;
            gap: 0.75rem;
            text-decoration: none;
        }

        .site-logo {
            width: 52px;
            height: 52px;
            border-radius: 50%;
            object-fit: cover;
            border: 2px solid var(--accent);
            box-shadow: 0 0 15px var(--accent-glow);
            transition: box-shadow 0.3s ease;
        }

        .site-brand:hover .site-logo {
            box-shadow: 0 0 25px var(--accent-glow);
        }

        .site-title {
            font-size: 1.3rem;
            font-weight: 700;
            color: var(--text-primary);
            line-height: 1.1;
        }

        .site-title small {
            display: block;
            font-size: 0.7rem;
            font-weight: 400;
            color: var(--text-secondary);
        }

        .site-nav {
            display: flex;
            gap: 1.5rem;
            list-style: none;
        }

        .site-nav a {
            color: var(--text-secondary);
            text-decoration: none;
            transition: color 0.2s ease;
            font-size: 0.9rem;
        }

        .site-nav a:hover {
            color: var(--accent);
        }

        .header-actions {
            display: flex;
            gap: 1rem;
            align-items: center;
        }

        .search-box {
            position: relative;
        }

        .search-input {
            padding: 0.5rem 1rem;
            border: 1px solid var(--border);
            border-radius: 20px;
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
            width: 200px;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .search-input:focus {
            outline: none;
            border-color: var(--accent);
            box-shadow: 0 0 10px var(--accent-glow);
        }

        .search-results {
            position: absolute;
            top: 110%;
            left: 0;
            right: 0;
            background-color: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 8px;
            max-height: 300px;
            overflow-y: auto;
            display: none;
            z-index: 100;
            box-shadow: 0 8px 24px var(--shadow);
        }

        .search-results.active {
            display: block;
        }

        .search-result-item {
            padding: 0.75rem 1rem;
            border-bottom: 1px solid var(--border);
            cursor: pointer;
            transition: background-color 0.2s ease;
            font-size: 0.9rem;
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-item:hover {
            background-color: var(--bg-tertiary);
        }

        .theme-toggle {
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 8px;
            padding: 0.5rem 0.6rem;
            cursor: pointer;
            font-size: 1rem;
            transition: all 0.3s ease;
            color: var(--text-primary);
        }

        .theme-toggle:hover {
            border-color: var(--accent);
            box-shadow: 0 0 12px var(--accent-glow);
        }

        .theme-icon-sun,
        .theme-icon-moon {
            display: none;
        }

        body.theme-light .theme-icon-sun,
        body.theme-dark .theme-icon-moon {
            display: inline;
        }

        .reading-progress {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 3px;
            background-color: var(--bg-secondary);
            z-index: 1000;
        }

        .reading-progress-bar {
            height: 100%;
            background: linear-gradient(90deg, var(--accent), var(--accent-hover));
            width: 0%;
            transition: width 0.1s ease;
        }

        /* Hero */
        .hero {
            background: radial-gradient(ellipse at top, rgba(139, 92, 246, 0.25), transparent 60%),
                        linear-gradient(135deg, #1a1030 0%, #0a0a0f 100%);
            color: white;
            padding: 5rem 2rem 4rem;
            text-align: center;
            position: relative;
            overflow: hidden;
        }

        body.theme-light .hero {
            background: radial-gradient(ellipse at top, rgba(109, 40, 217, 0.18), transparent 60%),
                        linear-gradient(135deg, #cfc5ae 0%, #ddd5c3 100%);
            color: var(--text-primary);
        }

        .hero-logo {
            width: 140px;
            height: 140px;
            border-radius: 50%;
            object-fit: cover;
            border: 3px solid var(--accent);
            box-shadow: 0 0 40px var(--accent-glow);
            margin-bottom: 1.5rem;
            animation: logo-float 4s ease-in-out infinite;
        }

        @keyframes logo-float {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(-8px); }
        }

        .hero-title {
            font-size: 2.8rem;
            margin-bottom: 0.75rem;
            font-weight: 800;
            background: linear-gradient(90deg, #e8e6f0, var(--accent-hover), #e8e6f0);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        body.theme-light .hero-title {
            background: linear-gradient(90deg, #4c1d95, var(--accent), #4c1d95);
            -webkit-background-clip: text;
            background-clip: text;
            -webkit-text-fill-color: transparent;
        }

        .hero-description {
            font-size: 1.15rem;
            color: var(--text-secondary);
            max-width: 600px;
            margin: 0 auto 0.5rem;
        }

        .hero-author {
            font-size: 0.9rem;
            color: var(--accent-hover);
            margin-top: 1rem;
        }

        /* Fact Widget */
        .fact-widget {
            background: linear-gradient(135deg, #2d1f5e, #1a1030);
            border: 1px solid var(--accent);
            color: white;
            border-radius: 16px;
            padding: 1.5rem 2rem;
            text-align: center;
            box-shadow: 0 8px 30px var(--accent-glow);
            margin: 3rem auto;
            max-width: 640px;
            position: relative;
            overflow: hidden;
        }

        .fact-widget::before {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: radial-gradient(circle, rgba(139,92,246,0.15) 0%, transparent 55%);
            animation: fact-pulse 8s ease-in-out infinite;
        }

        @keyframes fact-pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.2); }
        }

        .fact-widget h3 {
            margin-bottom: 0.75rem;
            position: relative;
        }

        .fact-text {
            font-size: 1.05rem;
            margin-bottom: 1rem;
            transition: opacity 0.3s ease, transform 0.3s ease;
            position: relative;
            min-height: 3.2em;
        }

        .fact-btn {
            background-color: var(--accent);
            color: white;
            border: none;
            padding: 0.55rem 1.6rem;
            border-radius: 20px;
            cursor: pointer;
            font-weight: 600;
            transition: all 0.2s ease;
            position: relative;
        }

        .fact-btn:hover {
            transform: scale(1.06);
            background-color: var(--accent-hover);
            box-shadow: 0 0 20px var(--accent-glow);
        }

        /* Category Navigation */
        .category-nav {
            display: flex;
            gap: 0.5rem;
            margin-bottom: 2rem;
            flex-wrap: wrap;
            justify-content: center;
        }

        .category-btn {
            padding: 0.45rem 1.1rem;
            border: 1px solid var(--border);
            border-radius: 20px;
            background-color: var(--bg-tertiary);
            color: var(--text-primary);
            cursor: pointer;
            font-size: 0.85rem;
            transition: all 0.25s ease;
            white-space: nowrap;
        }

        .category-btn:hover {
            transform: translateY(-2px);
            border-color: var(--accent);
            color: var(--accent-hover);
            box-shadow: 0 4px 14px var(--accent-glow);
        }

        .category-btn.active {
            background-color: var(--accent);
            color: white;
            border-color: var(--accent);
            box-shadow: 0 0 18px var(--accent-glow);
        }

        /* Post Grid */
        .post-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
            gap: 2rem;
            margin-bottom: 3rem;
        }

        .fade-in-up {
            opacity: 0;
            transform: translateY(30px);
            transition: opacity 0.6s ease, transform 0.6s ease;
        }

        .fade-in-up.visible {
            opacity: 1;
            transform: translateY(0);
        }

        .post-card {
            background-color: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 14px;
            overflow: hidden;
            transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
            position: relative;
            cursor: pointer;
        }

        .post-card:hover {
            transform: translateY(-8px);
            box-shadow: 0 16px 32px var(--shadow), 0 0 24px var(--accent-glow);
            border-color: var(--accent);
        }

        .post-card-image {
            width: 100%;
            height: 190px;
            position: relative;
            overflow: hidden;
        }

        .post-card-image svg {
            width: 100%;
            height: 100%;
            display: block;
            transition: transform 0.4s ease;
        }

        .post-card:hover .post-card-image svg {
            transform: scale(1.06);
        }

        .post-card-image::after {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(180deg, transparent 55%, rgba(10,10,15,0.55) 100%);
            pointer-events: none;
        }

        .post-card-content {
            padding: 1.4rem;
        }

        .post-card-category {
            display: inline-block;
            padding: 0.25rem 0.75rem;
            border-radius: 12px;
            font-size: 0.72rem;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 0.6rem;
        }

        .category-badge-commerce { background-color: rgba(139,92,246,0.2); color: #a78bfa; }
        .category-badge-governing { background-color: rgba(99,102,241,0.2); color: #a5b4fc; }
        .category-badge-culture { background-color: rgba(168,85,247,0.2); color: #d8b4fe; }
        .category-badge-technology { background-color: rgba(124,58,237,0.2); color: #c4b5fd; }
        .category-badge-conclusion { background-color: rgba(192,132,252,0.2); color: #f0abfc; }

        .post-card-title {
            font-size: 1.2rem;
            margin-bottom: 0.5rem;
            line-height: 1.35;
        }

        .post-card-title a {
            color: var(--text-primary);
            text-decoration: none;
            transition: color 0.2s ease;
        }

        .post-card:hover .post-card-title a {
            color: var(--accent-hover);
        }

        .post-card-excerpt {
            color: var(--text-secondary);
            font-size: 0.88rem;
            margin-bottom: 1rem;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
        }

        .post-card-meta {
            display: flex;
            justify-content: space-between;
            align-items: center;
            font-size: 0.8rem;
            color: var(--text-secondary);
        }

        /* Hover preview tooltip */
        .hover-preview {
            position: fixed;
            z-index: 900;
            width: 340px;
            background-color: var(--bg-tertiary);
            border: 1px solid var(--accent);
            border-radius: 14px;
            padding: 1.4rem;
            box-shadow: 0 18px 45px rgba(0,0,0,0.55), 0 0 30px var(--accent-glow);
            pointer-events: none;
            opacity: 0;
            transform: translateY(10px) scale(0.97);
            transition: opacity 0.2s ease, transform 0.2s ease;
        }

        .hover-preview.visible {
            opacity: 1;
            transform: translateY(0) scale(1);
        }

        .hover-preview h4 {
            font-size: 1.05rem;
            margin-bottom: 0.5rem;
            color: var(--text-primary);
            line-height: 1.3;
        }

        .hover-preview .hp-meta {
            font-size: 0.75rem;
            color: var(--accent-hover);
            margin-bottom: 0.6rem;
        }

        .hover-preview .hp-body {
            font-size: 0.85rem;
            color: var(--text-secondary);
            margin-bottom: 0.75rem;
        }

        .hover-preview .hp-cta {
            font-size: 0.8rem;
            color: var(--accent-hover);
            font-weight: 600;
        }

        /* Article view */
        .article-view {
            display: none;
            animation: articleIn 0.35s ease;
        }

        .article-view.active {
            display: block;
        }

        @keyframes articleIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .article-layout {
            display: grid;
            grid-template-columns: 1fr 290px;
            gap: 3rem;
            padding: 2rem 0 4rem;
        }

        .article-back {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            color: var(--accent-hover);
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            padding: 0.5rem 1rem;
            border-radius: 20px;
            cursor: pointer;
            font-size: 0.85rem;
            margin-bottom: 1.5rem;
            transition: all 0.2s ease;
        }

        .article-back:hover {
            border-color: var(--accent);
            box-shadow: 0 0 15px var(--accent-glow);
        }

        .article-banner {
            width: 100%;
            height: 260px;
            border-radius: 14px;
            overflow: hidden;
            margin-bottom: 1.5rem;
            border: 1px solid var(--border);
        }

        .article-banner svg {
            width: 100%;
            height: 100%;
            display: block;
        }

        .article-header {
            margin-bottom: 2rem;
            padding-bottom: 1.25rem;
            border-bottom: 1px solid var(--border);
        }

        .article-title {
            font-size: 2.2rem;
            font-weight: 800;
            line-height: 1.2;
            margin-bottom: 0.75rem;
        }

        .article-meta {
            display: flex;
            gap: 1rem;
            align-items: center;
            color: var(--text-secondary);
            font-size: 0.85rem;
            flex-wrap: wrap;
        }

        .article-body h2 {
            font-size: 1.5rem;
            margin: 2rem 0 0.75rem;
            color: var(--accent-hover);
        }

        .article-body h3 {
            font-size: 1.15rem;
            margin: 1.5rem 0 0.5rem;
        }

        .article-body p {
            margin-bottom: 1rem;
            color: var(--text-primary);
        }

        .article-body ul {
            margin: 0 0 1rem 1.5rem;
        }

        .article-body li {
            margin-bottom: 0.4rem;
            color: var(--text-primary);
        }

        .article-body blockquote {
            border-left: 3px solid var(--accent);
            padding: 0.75rem 1rem;
            margin: 1rem 0;
            background-color: var(--bg-tertiary);
            border-radius: 0 8px 8px 0;
            color: var(--text-secondary);
            font-style: italic;
        }

        .sources-section {
            margin-top: 2.5rem;
            padding-top: 1.5rem;
            border-top: 1px solid var(--border);
        }

        .sources-toggle {
            display: flex;
            align-items: center;
            justify-content: space-between;
            width: 100%;
            background: var(--bg-tertiary);
            border: 1px solid var(--border);
            border-radius: 10px;
            padding: 0.9rem 1.2rem;
            cursor: pointer;
            color: var(--text-primary);
            font-size: 1rem;
            font-weight: 600;
            transition: all 0.2s ease;
        }

        .sources-toggle:hover {
            border-color: var(--accent);
            box-shadow: 0 0 15px var(--accent-glow);
        }

        .sources-list {
            display: none;
            margin-top: 1rem;
        }

        .sources-list.open {
            display: block;
            animation: articleIn 0.25s ease;
        }

        .source-item {
            padding: 0.85rem 1rem;
            border: 1px solid var(--border);
            border-radius: 8px;
            margin-bottom: 0.6rem;
            background-color: var(--bg-secondary);
        }

        .source-item a {
            color: var(--accent-hover);
            text-decoration: none;
            font-weight: 600;
            word-break: break-word;
        }

        .source-item a:hover {
            text-decoration: underline;
        }

        .source-item.source-flash {
            animation: sourceFlash 1.6s ease;
        }

        @keyframes sourceFlash {
            0%, 60% { border-color: var(--accent); box-shadow: 0 0 22px var(--accent-glow); background-color: var(--bg-tertiary); }
            100% { border-color: var(--border); box-shadow: none; }
        }

        .citation {
            color: var(--accent-hover);
            text-decoration: none;
            border-bottom: 1px dotted var(--accent-hover);
            cursor: pointer;
            font-size: 0.92em;
            white-space: nowrap;
            transition: color 0.2s ease;
        }

        .citation:hover {
            color: var(--accent);
            border-bottom-style: solid;
        }

        .source-item .source-type {
            display: block;
            font-size: 0.75rem;
            color: var(--text-secondary);
            margin-top: 0.25rem;
        }

        .article-sidebar {
            position: sticky;
            top: 90px;
            align-self: start;
        }

        .sidebar-section {
            background-color: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            padding: 1.25rem;
            margin-bottom: 1.5rem;
        }

        .sidebar-section h3 {
            font-size: 0.95rem;
            margin-bottom: 0.75rem;
            color: var(--accent-hover);
        }

        .sidebar-fact {
            font-size: 0.88rem;
            color: var(--text-secondary);
            font-style: italic;
        }

        .sidebar-diagram svg {
            width: 100%;
            height: auto;
            display: block;
        }

        .diagram-fig {
            margin: 2rem 0;
            padding: 1.25rem;
            background-color: var(--card-bg);
            border: 1px solid var(--border);
            border-radius: 12px;
            box-shadow: 0 4px 15px var(--shadow);
        }

        .diagram-fig svg {
            width: 100%;
            height: auto;
            display: block;
        }

        .diagram-fig figcaption {
            margin-top: 0.9rem;
            font-size: 0.85rem;
            color: var(--text-secondary);
            text-align: center;
            font-style: italic;
        }

        .diagram-fig text {
            font-family: inherit;
        }

        .related-posts {
            list-style: none;
        }

        .related-posts li {
            padding: 0.45rem 0;
            border-bottom: 1px solid var(--border);
        }

        .related-posts li:last-child {
            border-bottom: none;
        }

        .related-posts a {
            color: var(--text-primary);
            text-decoration: none;
            font-size: 0.85rem;
            transition: color 0.2s ease;
        }

        .related-posts a:hover {
            color: var(--accent-hover);
        }

        /* Footer */
        .site-footer {
            background-color: var(--bg-secondary);
            border-top: 1px solid var(--border);
            padding: 2.5rem 0;
            margin-top: 3rem;
        }

        .footer-content {
            display: flex;
            align-items: center;
            justify-content: space-between;
            flex-wrap: wrap;
            gap: 1rem;
        }

        .footer-brand {
            display: flex;
            align-items: center;
            gap: 0.75rem;
        }

        .footer-logo {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            border: 2px solid var(--accent);
            object-fit: cover;
        }

        .footer-text {
            color: var(--text-secondary);
            font-size: 0.85rem;
        }

        .footer-text strong {
            color: var(--text-primary);
        }

        .scroll-top {
            position: fixed;
            bottom: 1.5rem;
            right: 1.5rem;
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background-color: var(--accent);
            color: white;
            border: none;
            cursor: pointer;
            font-size: 1.1rem;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.3s ease, transform 0.2s ease;
            box-shadow: 0 4px 16px var(--accent-glow);
            z-index: 500;
        }

        .scroll-top.visible {
            opacity: 1;
            pointer-events: auto;
        }

        .scroll-top:hover {
            transform: translateY(-3px);
            background-color: var(--accent-hover);
        }

        @media (max-width: 900px) {
            .article-layout {
                grid-template-columns: 1fr;
            }
            .article-sidebar {
                position: static;
            }
        }

        @media (max-width: 768px) {
            .header-content {
                flex-wrap: wrap;
            }
            .site-nav {
                order: 3;
                width: 100%;
                justify-content: center;
            }
            .search-input {
                width: 140px;
            }
            .hero-title {
                font-size: 2rem;
            }
            .hero-logo {
                width: 110px;
                height: 110px;
            }
            .post-grid {
                grid-template-columns: 1fr;
            }
            .hover-preview {
                display: none;
            }
            .article-title {
                font-size: 1.6rem;
            }
            .article-banner {
                height: 180px;
            }
        }

        @media (prefers-reduced-motion: reduce) {
            *, *::before, *::after {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }
    

/* ============ WORDPRESS-SPECIFIC ADDITIONS ============ */

/* Admin bar offset */
body.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .site-header { top: 46px; } }

/* Duplicate meta line hidden — single.php renders its own header */
.article-body .gib-meta { display: none; }

/* WordPress alignment/utility classes */
.alignleft { float: left; margin: 0 1em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1em; }
.aligncenter { display: block; margin: 0 auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }

/* Comments */
.comments-area { margin-top: 3rem; }
.comments-title { font-size: 1.4rem; margin-bottom: 1rem; color: var(--text-primary); }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-body {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 10px;
    padding: 1rem 1.2rem;
    margin-bottom: 1rem;
}
.comment-meta { font-size: 0.85em; color: var(--text-secondary); margin-bottom: 0.4rem; }
.comment-meta a { color: var(--accent-hover); }
.comment-content p { margin: 0.3rem 0; color: var(--text-primary); }
.reply a, .comment-reply-link {
    font-size: 0.8em; color: var(--accent); text-decoration: none;
}
.comment-respond label { display: block; font-size: 0.85em; color: var(--text-secondary); margin: 0.6rem 0 0.2rem; }
.comment-form input[type='text'],
.comment-form input[type='email'],
.comment-form input[type='url'],
.comment-form textarea {
    width: 100%; background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-primary); padding: 0.6em 0.8em; font: inherit;
}
.comment-form input[type='submit'] {
    background: var(--accent); color: #fff; border: none; border-radius: 8px;
    padding: 0.6em 1.6em; font-weight: 600; cursor: pointer; margin-top: 0.8rem;
}
.comment-form input[type='submit']:hover { background: var(--accent-hover); }
.comment-awaiting-moderation { color: #f5b942; font-style: italic; font-size: 0.85em; }

/* Pagination */
.pagination .nav-links { display: flex; gap: 0.5rem; justify-content: center; margin: 2rem 0; }
.pagination .page-numbers {
    display: inline-block; padding: 0.5em 0.9em; border-radius: 8px;
    background: var(--card-bg); border: 1px solid var(--border);
    color: var(--text-primary); text-decoration: none;
}
.pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.pagination .page-numbers:hover:not(.current) { border-color: var(--accent); color: var(--accent-hover); }

/* Search results heading + archive heading */
.archive-title, .search-title { margin: 1.5rem 0 0.5rem; color: var(--text-primary); }
.archive-title span, .search-title span { color: var(--accent); }

/* Video embeds get the card treatment */
.wp-block-embed.is-type-video .wp-block-embed__wrapper,
.wp-block-video { border-radius: 12px; overflow: hidden; box-shadow: 0 6px 24px var(--shadow); }

/* Site logo in header */
.custom-logo-link img { height: 44px; width: auto; filter: drop-shadow(0 0 10px var(--accent-glow)); }

/* Sidebar widgets get card styling */
.sidebar-widget {
    background: var(--card-bg); border: 1px solid var(--border);
    border-radius: 12px; padding: 1.2rem; margin-bottom: 1.2rem;
}
.sidebar-widget h3 { font-size: 0.9em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--accent); margin-bottom: 0.7rem; }
.sidebar-widget, .sidebar-widget p, .sidebar-widget li { color: var(--text-secondary); font-size: 0.92rem; }
.sidebar-widget a { color: var(--accent-hover); }

/* Page template + misc */
.entry-content { color: var(--text-primary); }
.entry-content a { color: var(--accent-hover); }
.post-password-form input[type='password'] {
    background: var(--bg-tertiary); border: 1px solid var(--border);
    border-radius: 8px; color: var(--text-primary); padding: 0.5em 0.8em;
}

/* Card link wrapper (WP wraps cards in <a>) */
.post-card-link { display: block; color: inherit; text-decoration: none; height: 100%; }
.footer-note { color: var(--text-secondary); font-size: 0.9em; }

/* Keep the imported article body flowing with theme typography */
.article-body p { margin-bottom: 1.1em; }
.article-body h2 { margin-top: 2rem; }
.article-body ul { margin: 0.8rem 0 1.2rem; padding-left: 1.4rem; }
.article-body li { margin-bottom: 0.35em; }
