/*
Theme Name: OverTone
Theme URI: https://example.com/overtone
Author: Antigravity
Author URI: https://example.com
Description: A modern WordPress magazine/news theme.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: overtone
Tags: blog, news, dark-theme
*/
:root {
    --font-primary: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-mono: "JetBrains Mono", monospace;
    --color-bg: #000000;
    --color-surface: #111111;
    --color-surface-light: #222222;
    --color-text: #ffffff;
    --color-text-muted: #a0a0a0;
    --color-border: #333333;
    --color-border-subtle: #1a1a1a;
    --color-neon-purple: #5e17eb;
    --color-neon-purple-bright: #7c3aed;
    --color-text-highlights: #00e5ff;
    --color-neon-cyan: #00e5ff;
    --color-neon-green: #00ff00;
    --color-neon-pink: #ff00ff;
    --color-neon-yellow: #eaff00;
    --color-neon-orange: #ff4500;
    --color-link: var(--color-text);
    --link-underline: 2px;
    --link-underline-hover: 4px;
    --max-width: 1170px;
    --reading-width: 720px;
    --space-xxs: 0.2rem;
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 2rem;
    --space-lg: 3rem;
    --space-xl: 6rem;
}
[data-theme="light"] {
    --color-bg: #ffffff;
    --color-surface: #f4f4f4;
    --color-surface-light: #e0e0e0;
    --color-text: #000000;
    --color-text-muted: #666666;
    --color-border: #dddddd;
    --color-border-subtle: #eeeeee;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    padding: 0;
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img,
video,
embed,
iframe {
    max-width: 100%;
    height: auto;
    display: block;
}
a {
    color: var(--color-link);
    text-decoration: none;
}
.reset-list-style,
.reset-list-style ul,
.reset-list-style ol {
    list-style: none;
    margin: 0;
    padding: 0;
}
.reset-list-style li {
    margin: 0;
}
.post-thumbnail {
    border-radius: 8px;
    display: flex;
    overflow: hidden;
    position: relative;
}
.post-thumbnail img {
    aspect-ratio: 16/12;
    object-fit: cover;
    width: 100%;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-primary);
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.03em;
}
.article-prime-item {
    border-bottom: 8px solid var(--color-border);
    margin-bottom: var(--space-md);
    padding-bottom: var(--space-md);
}
.article-prime-item .post-thumbnail {
    display: block;
    position: relative;
}
@media (min-width: 768px) {
    .article-prime-item .post-thumbnail:before {
        content: "";
        background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 50%);
        position: absolute;
        inset: 0;
        pointer-events: none;
    }
    [data-theme="light"] .article-prime-item .post-thumbnail:before {
        background: linear-gradient(0deg, rgba(255, 255, 255, .75), transparent 50%);
    }
    .article-prime-item .post-details {
        position: relative;
        z-index: 1;
        margin-top: calc(-1 * var(--space-lg));
        padding-left: var(--space-lg);
        padding-right: var(--space-lg);
    }
}
.article-list-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}
.article-list-item:not(:last-child) {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--space-md);
    margin-bottom: var(--space-md);
}
@media (max-width: 1023px) {
    .article-list-item:last-child {
        border-bottom: 1px solid var(--color-border);
        padding-bottom: var(--space-md);
        margin-bottom: var(--space-md);
    }
}
.article-list-item .post-thumbnail {
    width: calc(100% * 1 / 3);
    margin: 0;
}
.article-list-item .post-details {
    flex: 1;
    min-width: 1px;
}
.article-title {
    font-family: var(--font-primary);
    line-height: 1.1;
    margin-bottom: var(--space-sm);
}
.article-title-large {
    font-size: clamp(1.75rem, 0.5579rem + 3.3171vw, 3.875rem);
    font-weight: 900;
    letter-spacing: -0.04em;
}
.article-title-big {
    font-size: clamp(1.5rem, 1.1494rem + 0.9756vw, 2.125rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}
.article-title-medium {
    font-size: clamp(1.25rem, 0.9695rem + 0.7805vw, 1.75rem);
    font-weight: 700;
    letter-spacing: -0.01em;
}
.article-title-small {
    font-size: clamp(1.125rem, 0.9146rem + 0.5854vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}
.article-title-xsmall {
    font-size: 1.125rem;
    font-weight: 600;
}
.list-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-text-muted);
}
.list-meta a {
    color: var(--color-text-highlights);
}
.post-excerpt {
    color: var(--color-text-muted);
    margin-bottom: var(--space-sm);
    margin-top: var(--space-sm);
}
.post-excerpt-big {
    font-size: 1.25rem;
}
/* ---------------------------------------------------------
   Layout Containers
--------------------------------------------------------- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-sm);
    padding-right: var(--space-sm);
}
.main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: var(--space-md);
    margin-top: var(--space-md);
    align-items: start;
}
/* ---------------------------------------------------------
   Header
--------------------------------------------------------- */
.site-header {
    background-color: var(--color-bg);
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}
.site-topbar .container,
.site-header .container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    height: 100%;
}
.site-topbar {
    padding-top: var(--space-md);
    position: relative;
    z-index: 1001;
}
.site-topbar .topbar-actions {
    display: flex;
    gap: 0.5rem;
}
.language-switcher {
    position: relative;
}
.btn-language-switcher {
    gap: 0.25rem;
}
.language-switcher-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    padding: 0.5rem;
    min-width: 140px;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.language-switcher:hover .language-switcher-dropdown,
.language-switcher:focus-within .language-switcher-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.language-switcher-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    color: var(--color-text);
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
    font-size: 0.9rem;
    border-radius: 4px;
}
.language-switcher-item:hover,
.language-switcher-item:focus {
    background-color: var(--color-border-subtle);
}
.language-switcher-item.active {
    font-weight: bold;
    color: var(--color-neon-cyan);
}
.theme-toggle {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    position: relative;
    width: 50px;
    height: 26px;
    border-radius: 20px;
    background-color: var(--color-surface-light);
    border: 1px solid var(--color-border);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--color-neon-cyan);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.2);
}

.toggle-track {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 6px;
}

.toggle-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    transition: transform 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    z-index: 3;
}

[data-theme="dark"] .toggle-thumb {
    transform: translateX(24px);
    background-color: var(--color-bg);
    box-shadow: inset -3px -1px 0 0 var(--color-neon-cyan);
}

.toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
    transition: all 0.3s ease;
    z-index: 1;
}

.toggle-icon.sun {
    color: var(--color-neon-yellow);
    opacity: 1;
    transform: scale(1);
}

.toggle-icon.moon {
    color: var(--color-neon-cyan);
    transform: scale(0.8);
}

[data-theme="dark"] .toggle-icon.sun {
    transform: scale(0.8);
}

[data-theme="dark"] .toggle-icon.moon {
    opacity: 1;
    transform: scale(1);
    color: var(--color-neon-cyan);
}

/* Animations for icons */
.theme-toggle:active .toggle-thumb {
    width: 26px;
}

[data-theme="dark"] .theme-toggle:active .toggle-thumb {
    width: 26px;
    transform: translateX(18px);
}
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding-bottom: var(--space-sm);
    position: relative;
}
@media (min-width: 768px) {
    .header-actions {
        border-bottom: 1px solid var(--color-border);
    }
}
@media (max-width: 767px) {
    .header-actions {
        display: grid;
        grid-template-columns: 1fr 40px 40px;
        width: 100%;
    }
}
.site-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    text-align: center;
    margin-bottom: 22px;
}
.site-logo .site-title {
    font-size: 2rem;
    font-weight: 700;
    position: absolute;
    left: 0;
    right: 0;
    bottom: -32px;
}
[lang="en-US"] .site-logo .site-title {
    font-size: 1.35rem;
}
/* SVG Logo Styling */
.site-logo svg {
    height: 24px;
    width: auto;
    fill: var(--color-text);
}
.main-navigation {
    display: none;
}
@media (min-width: 768px) {
    .main-navigation {
        display: flex;
        align-items: center;
    }
}
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.main-navigation > ul {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: var(--space-sm);
}
.main-navigation a {
    color: var(--color-text);
    display: flex;
    align-items: center;
    font-size: 1.25rem;
    height: 100%;
    transition: color 0.2s, background-color 0.2s;
    justify-content: space-between;
}
[lang="en-US"] .main-navigation a {
    font-size: 1.1rem;
    font-weight: 600;
}
.main-navigation a:hover,
.main-navigation a:focus {
    color: var(--color-neon-cyan);
    outline: none;
    /* Custom focus styling instead */
}
/* Dropdown Icon Styling */
.main-navigation .dropdown-icon {
    display: inline-flex;
    align-items: center;
    margin-left: 0.25rem;
}
.main-navigation .dropdown-icon svg {
    transition: transform 0.2s ease;
}
/* Rotate icon on hover or focus */
.main-navigation ul li:hover > a .dropdown-icon svg,
.main-navigation ul li:focus-within > a .dropdown-icon svg,
.main-navigation ul li.focus > a .dropdown-icon svg {
    transform: rotate(-180deg);
}
/* Accessibility Focus States */
.main-navigation a:focus-visible {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    box-shadow: 0 0 0 2px var(--color-neon-cyan);
}
/* Base Submenu Dropdown Styling */
.main-navigation ul li {
    position: relative;
    /* This makes regular dropdowns relative to the parent item */
}
.main-navigation ul .sub-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background-color: var(--color-surface);
    border: 1px solid var(--color-border);
    border-top: 2px solid var(--color-neon-purple-bright);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
    flex-direction: column;
    gap: 0;
    /* Animation & Visibility */
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 999;
}
/* Show submenu on hover, focus, or when a child has focus */
.main-navigation ul li:hover > .sub-menu,
.main-navigation ul li:focus-within > .sub-menu,
.main-navigation ul li.focus > .sub-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
/* Nested Submenus (Tier 3+) */
.main-navigation ul .sub-menu .sub-menu {
    top: 0;
    left: 100%;
    margin-left: -1px;
    /* Overlap borders */
}
/* ---------------------------------------------------------
   Mega Menu Structure
   Add class 'mega-menu' to a top-level WP Nav item
--------------------------------------------------------- */
.main-navigation ul li.mega-menu {
    position: static;
    /* Make the dropdown relative to the header, not the item */
}
.main-navigation ul li.mega-menu > .sub-menu {
    left: 0;
    right: 0;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: 320px repeat(auto-fit, minmax(0, 1fr));
    padding: var(--space-md);
}
/* Dynamic AJAX Mega Menu Layout */
.mega-menu-wrapper {
    display: flex;
    flex-direction: row !important;
    /* Override standard submenu column */
    padding: 0 !important;
}
.mega-menu-tabs-column {
    flex: 0 0 35%;
    border-right: 1px solid var(--color-border);
    background: var(--color-surface-light);
}
.mega-menu-post-column {
    flex: 1;
    position: relative;
    min-height: 300px;
}
/* Tabs List */
.mega-menu-tabs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.mega-menu-tabs-list li {
    position: static !important;
}
.mega-menu-tab {
    width: 100%;
    text-align: left;
    background: transparent;
    border: none;
    color: var(--color-text);
    font-size: 1.1rem;
    font-weight: 600;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border-left: 3px solid transparent;
}
.mega-menu-tab:hover {
    color: var(--color-neon-cyan);
    background: rgba(0, 255, 255, 0.05);
}
.mega-menu-tab.active {
    color: var(--color-neon-purple-bright);
    background: rgba(212, 0, 255, 0.1);
    border-left-color: var(--color-neon-purple-bright);
}
/* Post Container */
.mega-menu-post-container {
    display: grid;
    gap: 2px;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    align-items: self-start;
    transition: opacity 0.3s ease;
}
.mega-menu-post-container.is-loading {
    opacity: 0.3;
}
.mega-menu-latest-article {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.mega-menu-latest-article .post-thumbnail {
    border-radius: 0;
}
.mega-menu-latest-article .post-details {
    padding-left: var(--space-xs);
    padding-right: var(--space-xs);
}
.mega-menu-post-thumbnail img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border: 1px solid var(--color-border);
}
/* Loader */
.mega-menu-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
    z-index: 10;
}
.mega-menu-post-column.is-loading .mega-menu-loading-overlay {
    opacity: 1;
    visibility: visible;
}
.loader {
    width: 48px;
    height: 48px;
    border: 5px solid var(--color-border);
    border-bottom-color: var(--color-neon-cyan);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}
@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}
/* Optional column titles in Mega Menu */
.main-navigation ul li.mega-menu > .sub-menu > li > a {
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-neon-purple-bright);
    margin-bottom: 0.5rem;
    padding: 0;
}
.main-navigation ul li.mega-menu > .sub-menu > li > a:hover {
    background-color: transparent;
    text-decoration: underline;
    text-decoration-thickness: 2px;
}
/* Reset 3rd level items back from grid list */
.main-navigation ul li.mega-menu .sub-menu .sub-menu {
    position: static;
    display: flex;
    box-shadow: none;
    border: none;
    background: transparent;
    opacity: 1;
    visibility: visible;
    transform: none;
    padding: 0;
}
.main-navigation ul li.mega-menu .sub-menu .sub-menu a {
    padding: 0.25rem 0;
    color: var(--color-text);
}
.main-navigation ul li.mega-menu .sub-menu .sub-menu a:hover {
    background-color: transparent;
    color: var(--color-neon-cyan);
}
.btn-primary {
    background: var(--color-neon-cyan);
    border: none;
    color: #111111;
    cursor: pointer;
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
}
.btn-primary:hover,
.btn-primary:focus {
    background: var(--color-neon-green);
    color: #111111;
}
.btn-small {
    border-radius: var(--space-xxs);
    padding: 3px 6px;
    font-size: 12px;
}
.btn-icon {
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.btn-icon-small {
    border-radius: 100%;
    height: 28px;
    width: 28px;
}
.btn-icon-primary {
    background-color: rgba(255, 69, 0, 0.2);
    color: var(--color-neon-orange);
    border: 1px solid var(--color-neon-orange);
}
.btn-icon-primary:hover,
.btn-icon-primary:focus {
    background-color: rgba(255, 69, 0, 0.4);
}
.btn-icon-transparent {
    background: none;
    border: none;
    color: var(--color-text);
}
.btn-icon-transparent:hover,
.btn-icon-transparent:focus {
    background: none;
    border: none;
}
.site-main {
    margin-top: var(--space-lg);
}
/* ---------------------------------------------------------
   News River (Main Feed)
--------------------------------------------------------- */
.river-item {
    display: flex;
    padding: var(--space-md) 0;
    border-bottom: 1px solid var(--color-border);
    gap: var(--space-md);
}
.river-item:first-child {
    padding-top: 0;
}
.river-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}
.river-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 0.5rem;
}
.river-item:hover .river-title a {
    background-image: linear-gradient(transparent calc(100% - 2px), currentColor calc(100% - 2px));
    background-repeat: no-repeat;
    background-size: 100% 100%;
}
.river-title a {
    color: var(--color-text);
    background-image: linear-gradient(transparent calc(100% - 2px), currentColor calc(100% - 2px));
    background-repeat: no-repeat;
    background-size: 0% 100%;
    transition: background-size .2s ease-in-out;
}
.river-thumbnail {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
}
@media (min-width: 768px) {
    .river-thumbnail {
        width: 200px;
        height: 133px;
    }
    .river-title {
        font-size: 2rem;
        letter-spacing: -0.03em;
    }
}
.river-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.river-item:hover .river-thumbnail img {
    transform: scale(1.05);
}
/* ---------------------------------------------------------
   Sidebar (Solid Neon Boxes)
--------------------------------------------------------- */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}
.sidebar .aside-box {
    border-radius: var(--space-sm);
}
.aside-box {
    padding: var(--space-lg) var(--space-md);
    margin-bottom: var(--space-lg);
    position: relative;
    overflow: hidden;
}
.verge-box-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-sm);
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}
.verge-box-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
    margin: 0;
    letter-spacing: -0.05em;
}
.box-purple {
    --color-link: #fff;
    --color-text: #fff;
    --color-text-muted: #eee;
    --color-border: #9763f0;
    --color-text-highlights: #00ff00;
}
.box-purple {
    background-color: var(--color-neon-purple-bright);
    color: var(--color-text);
}
.box-green {
    --color-border: #0be50a;
}
.box-green {
    background-color: var(--color-neon-green);
}
.box-pink {
    --color-link: #fff;
    --color-text: #fff;
}
.box-pink {
    background-color: var(--color-neon-pink);
    color: var(--color-text);
}
.box-yellow {
    background-color: var(--color-neon-yellow);
}
.box-orange {
    --color-link: #fff;
    --color-text: #fff;
}
.box-orange {
    background-color: var(--color-neon-orange);
    color: var(--color-text);
}
.section-accent-green {
    --color-bg: #00ff00;
    --color-text-highlights: #00ff00;
}
.section-accent-green .aside-box {
    background-color: var(--color-bg);
}
.section-accent-invert .aside-box {
    padding: 0;
}

/* Inverted inner card for lists inside boxes */
.box-inner-card {
    --color-link: #fff;
    --color-text: #fff;
    --color-text-muted: #eee;
    --color-border: #333;
    background: #000;
    color: var(--color-text);
    padding: var(--space-sm);
    border-radius: var(--space-sm);
    margin-top: 0.5rem;
}
.comment-counter {
    max-width: 64px;
    min-width: 64px;
    height: 48px;
    align-self: flex-start;
    border-radius: 3px;
    background-color: var(--color-neon-green);
    padding: 12px 15px 8px;
    text-align: center;
    font-weight: 800;
    color: #000;
    box-shadow: rgba(34, 96, 191, 0.14) 0 0 28px;
    position: relative;
}
.comment-counter:before {
    content: "";
    position: absolute;
    left: 0;
    bottom: -15px;
    border-style: solid;
    border-color: transparent transparent transparent var(--color-neon-green);
    border-width: 24px;
}
/* ---------------------------------------------------------
   Single Article
--------------------------------------------------------- */
.article-header {
    max-width: var(--reading-width);
    margin: var(--space-lg) auto var(--space-md);
}
.article-category {
    margin-bottom: var(--space-sm);
}
.article-excerpt {
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.4;
}
.article-meta-line {
    display: flex;
    align-items: center;
    padding: var(--space-sm) 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    margin-bottom: var(--space-lg);
    font-size: 0.9rem;
    font-weight: 600;
}
.article-author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    margin-right: 1rem;
}
.article-meta-info {
    flex-grow: 1;
}
.article-meta-info a {
    color: var(--color-text);
}
.article-meta-info a:hover {
    color: var(--color-neon-purple-bright);
    text-decoration: underline;
}
.article-date {
    color: var(--color-text-muted);
    display: flex;
    gap: 0.5rem;
}
.article-body {
    max-width: var(--reading-width);
    margin: 0 auto;
    font-size: 1.125rem;
    line-height: 1.7;
}
.article-body p {
    margin-bottom: 1.5rem;
}
.article-body h2 {
    font-size: 2rem;
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}
.article-body figure {
    margin: 2rem 0;
    width: 100vw;
    max-width: var(--max-width);
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
.article-body figure img {
    width: 100%;
}
.article-body figcaption {
    max-width: var(--reading-width);
    margin: 0.5rem auto 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}
.article-body blockquote {
    margin: 3rem 0;
    padding-left: 0;
    border-left: none;
    position: relative;
}
.article-body blockquote::before {
    content: "“";
    position: absolute;
    left: -40px;
    top: -20px;
    font-size: 6rem;
    color: var(--color-neon-purple-bright);
    line-height: 1;
}
.article-body blockquote p {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.03em;
}
/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
.site-footer {
    background-color: var(--color-surface);
    padding: var(--space-xl) 0 var(--space-md);
    margin-top: var(--space-xl);
}
.footer-widgets {
    display: flex;
    justify-content: space-between;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}
.social-list {
    display: flex;
    align-items: center;
    column-gap: var(--space-xs);
}
.social-list a {
    background: var(--color-surface);
    border: 1px solid var(--color-text-highlights);
    border-radius: 50%;
    color: var(--color-text-highlights);
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: var(--space-xxs);
    width: 50px;
}
.footer-logo {
    width: 150px;
    fill: var(--color-text);
}
.footer-social {
    display: flex;
    gap: 1rem;
}
.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    transition: all 0.2s;
}
.footer-social a:hover {
    border-color: var(--color-text);
    background: var(--color-text);
    color: var(--color-bg);
}
/* ---------------------------------------------------------
   Responsive Core
--------------------------------------------------------- */
@media (max-width: 991px) {
    .main-grid {
        grid-template-columns: 1fr;
    }
    .sidebar {
        margin-top: var(--space-lg);
    }
}
/* Responsive Utils */
.hide-mobile {
    display: none;
}
@media (min-width: 768px) {
    .hide-mobile {
        display: block;
    }
}
/* ---------------------------------------------------------
   Search Dropdown Overlay
--------------------------------------------------------- */
.search-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 50vh;
    background-color: var(--color-bg);
    border-bottom: 2px solid var(--color-neon-purple-bright);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}
.search-overlay.active {
    transform: translateY(0);
}
.search-overlay-inner {
    width: 100%;
    position: relative;
    padding: var(--space-xl) var(--space-md);
}
.search-close {
    position: absolute;
    top: 0;
    right: var(--space-md);
    color: var(--color-text);
    z-index: 2001;
}
.search-close:hover {
    color: var(--color-neon-pink);
}
.search-form {
    width: 100%;
}
.search-field {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 4px solid var(--color-text);
    color: var(--color-text);
    font-size: 3rem;
    font-weight: 700;
    padding: var(--space-sm) 0;
    outline: none;
    transition: border-color 0.2s ease;
}
.search-field:focus {
    border-color: var(--color-neon-cyan);
}
.search-field::placeholder {
    color: var(--color-text-muted);
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}
/* ---------------------------------------------------------
   Offcanvas Mobile/Side Navigation
--------------------------------------------------------- */
.offcanvas-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1900;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(4px);
}
.offcanvas-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.mobile-nav-overlay {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 400px;
    max-width: 100vw;
    background-color: var(--color-bg);
    border-left: 1px solid var(--color-border);
    z-index: 1999;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}
.mobile-nav-overlay.active {
    transform: translateX(0);
}
.offcanvas-header {
    display: flex;
    justify-content: flex-end;
    padding: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}
.offcanvas-close {
    color: var(--color-text);
}
.offcanvas-close:hover {
    color: var(--color-neon-pink);
}
.offcanvas-content {
    padding: var(--space-lg) var(--space-md);
    flex-grow: 1;
}
.offcanvas-nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
    margin-bottom: var(--space-xl);
}
.offcanvas-nav-list li {
    margin-bottom: var(--space-sm);
}
.offcanvas-nav-list a {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: -0.02em;
    display: inline-block;
}
.offcanvas-nav-list a:hover {
    color: var(--color-neon-cyan);
    text-decoration: underline;
    text-decoration-thickness: 3px;
}
/* Submenus in offcanvas */
.offcanvas-nav-list .sub-menu {
    list-style: none;
    padding-left: var(--space-md);
    margin-top: var(--space-sm);
    display: none;
    /* Can be toggled if needed, or left open */
}
/* Offcanvas Widget Area */
.offcanvas-widget-area {
    border-top: 2px solid var(--color-border);
    padding-top: var(--space-lg);
}
.offcanvas-widget {
    margin-bottom: var(--space-md);
}
.offcanvas-widget .widget-title {
    font-size: 1.2rem;
    color: var(--color-neon-green);
    margin-bottom: var(--space-sm);
    letter-spacing: 0.05em;
}
.offcanvas-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.offcanvas-widget li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}
.offcanvas-widget a {
    color: var(--color-text-muted);
}
.offcanvas-widget a:hover {
    color: var(--color-text);
    text-decoration: underline;
}
/* ---------------------------------------------------------
   Comments Area
--------------------------------------------------------- */
.comments-area {
    padding-top: var(--space-lg);
}
.comment-list {
    margin-bottom: var(--space-xl);
}
.comment-list .comment {
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-md);
    border-bottom: 1px solid var(--color-border);
}
.comment-list .children {
    list-style: none;
    padding-left: var(--space-md);
    margin-top: var(--space-md);
    border-left: 2px solid var(--color-border-subtle);
}
.comment-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.comment-author .avatar {
    border-radius: 50%;
}
.comment-meta {
    margin-bottom: 0.5rem;
}
.comment-meta .fn {
    font-weight: 700;
    color: var(--color-neon-cyan);
    font-size: 1.1rem;
    font-style: normal;
}
.comment-meta .comment-metadata a {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    letter-spacing: 0.05em;
}
.comment-content {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0.5rem;
}
.comment-content p {
    margin-bottom: 0.5rem;
}
.reply a {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--color-neon-pink);
    letter-spacing: 0.05em;
}
.reply a:hover {
    text-decoration: underline;
}
/* Comment Form */
.comment-respond {
    background-color: var(--color-surface);
    padding: var(--space-md);
    border-radius: 4px;
    border: 1px solid var(--color-border);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    background-color: transparent;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    padding: 1rem;
    font-family: var(--font-primary);
    font-size: 1rem;
    transition: border-color 0.2s;
    margin-bottom: 1rem;
}
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--color-neon-cyan);
}
.comment-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}
.btn-submit-comment {
    background-color: var(--color-neon-purple-bright);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    padding: 0.75rem 2rem;
    cursor: pointer;
    transition: opacity 0.2s;
}
.btn-submit-comment:hover {
    opacity: 0.9;
}
/* ---------------------------------------------------------
   Utility Classes (absorbing inline styles from templates)
--------------------------------------------------------- */
/* Visibility: JS-toggled elements start hidden */
.is-hidden {
    display: none;
}
/* ---------------------------------------------------------
   Archive / Search Page Header
--------------------------------------------------------- */
.archive-header-block {
    margin: var(--space-lg) 0;
    border-bottom: 4px solid var(--color-border);
    padding-bottom: var(--space-md);
}
.archive-header-block h1 {
    font-size: 4rem;
    letter-spacing: -0.05em;
    line-height: 1;
}
.archive-description {
    color: var(--color-text-muted);
    font-size: 1.5rem;
    margin-top: 1rem;
    max-width: 800px;
}
/* Nothing Found state */
.nothing-found {
    margin: var(--space-xl) 0;
    text-align: center;
}
.nothing-found h1 {
    font-size: 4rem;
}
.nothing-found p {
    font-size: 1.5rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}
/* ---------------------------------------------------------
   Pagination (shared across home, archive, search)
--------------------------------------------------------- */
.pagination-nav {
    margin: var(--space-md) 0;
}
/* ---------------------------------------------------------
   Hero / Homepage Component Refinements
--------------------------------------------------------- */
/* Hero image placeholder (no featured image) */
.hero-image-placeholder {
    width: 100%;
    height: 100%;
    background: var(--color-border);
}
.sidebar-intro {
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 0.95rem;
}
/* ---------------------------------------------------------
   Search Results Form (nothing found state)
--------------------------------------------------------- */
.search-retry-form {
    max-width: 600px;
    display: flex;
    gap: 0.5rem;
}
.search-retry-form .search-retry-input {
    flex: 1;
    padding: 1rem;
    border: 2px solid var(--color-text);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: 1.5rem;
    font-family: var(--font-primary);
}
.search-retry-form .search-retry-btn {
    padding: 1rem 2rem;
    background: var(--color-neon-purple-bright);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 1.25rem;
    cursor: pointer;
}
/* ---------------------------------------------------------
   Page Template
--------------------------------------------------------- */
.page-content-container {
    max-width: var(--reading-width);
    margin: var(--space-lg) auto;
}
.page-entry-header {
    text-align: center;
    margin-bottom: var(--space-md);
}
.page-featured-image {
    margin-bottom: var(--space-md);
    border-radius: var(--radius, 0);
    overflow: hidden;
}
/* ---------------------------------------------------------
   Index / Fallback Grid
--------------------------------------------------------- */
.index-content-wrap {
    margin-top: var(--space-md);
}
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--space-md);
}
.post-grid-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    background: var(--color-border);
}
/* Sun icon hidden by default (shown via JS when in light mode) */
.sun-icon {
    display: none;
}
/* Mobile menu toggle always visible */
.mobile-menu-toggle {
    display: block;
}
/* Skip link (screen-reader accessible, visually hidden) */
.skip-link {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
    word-wrap: normal !important;
}
.skip-link:focus {
    background-color: var(--color-bg);
    clip: auto !important;
    display: block;
    font-size: 1rem;
    height: auto;
    left: 5px;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}
/* ---------------------------------------------------------
   Single Post Template
--------------------------------------------------------- */
.single-featured-wrap {
    max-width: var(--max-width);
    margin-bottom: var(--space-lg);
}
.single-featured-figure {
    margin: 0;
}
.single-featured-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    max-height: 70vh;
}
.single-featured-caption {
    padding: 0.5rem 0;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: right;
}
.social-share {
    display: flex;
    gap: 0.5rem;
}
.single-grid {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: var(--space-lg);
}
@media (max-width: 991px) {
    .single-grid {
        grid-template-columns: 1fr;
    }
}
.single-tags-section {
    margin-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
}
.tags-links {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}
.tags-links a {
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    font-size: 0.8rem;
}
.sidebar-sticky {
    position: sticky;
    top: calc(var(--header-height) + var(--space-md));
}
.sidebar-section-title {
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}
/* ---------------------------------------------------------
   Comments Template
--------------------------------------------------------- */
.comments-area {
    max-width: var(--reading-width);
    margin: var(--space-xl) auto;
}
.comments-title {
    font-size: 2.5rem;
    margin-bottom: var(--space-lg);
    letter-spacing: -0.02em;
    border-bottom: 2px solid var(--color-border);
    padding-bottom: 0.5rem;
}
.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.comment-reply-title {
    font-size: 2rem;
}
.list-item-counter {
    background-color: var(--color-neon-green);
    color: var(--color-text);
    border-radius: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px
}
.verge-box-content .list-item-counter {
    color: #000;
}
.list-item-counter:hover,
.list-item-counter:focus {
    color: var(--color-accent)
}