/*
Theme Name: Marko Waves
Theme URI: https://markokrivokapic.com/
Author: Marko Krivokapic
Author URI: https://markokrivokapic.com/
Description: Custom lightweight 2013-2014 minimalist WordPress theme for Marko Krivokapic, Elliott Waves Expert. Pure local typography, zero external dependencies, flat borders, and #752729 brand palette.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: marko-waves
Tags: blog, finance, minimalist, clean, responsive-layout, microformats
*/

/* ==========================================================================
   1. Local Open Sans Fonts (Zero Google Fonts Calls - 100% Local / GDPR Ready)
   ========================================================================== */
@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/opensans-regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: italic;
    font-weight: 400;
    font-display: swap;
    src: url('assets/fonts/opensans-italic.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('assets/fonts/opensans-semibold.woff2') format('woff2');
}

@font-face {
    font-family: 'Open Sans';
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url('assets/fonts/opensans-bold.woff2') format('woff2');
}

/* ==========================================================================
   2. Design Tokens & Shade Scale (#752729 Brand)
   ========================================================================== */
:root {
    /* Brand Color Scale (#752729) */
    --mw-color-50:  #fdf3f3;
    --mw-color-100: #fbe5e6;
    --mw-color-200: #f9cfd0;
    --mw-color-300: #f3aeb0;
    --mw-color-400: #ea7f82;
    --mw-color-500: #de5559;
    --mw-color-600: #c9393d;
    --mw-color-700: #a92c2f;
    --mw-color-800: #8c282b;
    --mw-color-900: #752729; /* Primary Brand */
    --mw-color-950: #3f1011;

    /* Neutrals - 2013-2014 Classic Minimalist Flat Palette */
    --mw-color-bg: #ffffff;
    --mw-color-bg-subtle: #fbfbfb;
    --mw-color-bg-card: #ffffff;
    --mw-color-text: #2c3e50;
    --mw-color-text-dark: #1a1a1a;
    --mw-color-text-muted: #666666;
    --mw-color-text-subtle: #888888;
    --mw-color-border: #e8e8e8;
    --mw-color-border-subtle: #f0f0f0;
    --mw-color-border-accent: #752729;

    /* Typography */
    --mw-font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    --mw-font-mono: SFMono-Regular, Consolas, "Liberation Mono", Menlo, Courier, monospace;

    /* Spacing & Layout */
    --mw-max-width: 1100px;
    --mw-content-width: 820px;
}

/* ==========================================================================
   3. Baseline Reset & Global Elements
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--mw-font-family);
    font-size: 0.9375rem; /* ~15px standard 2013-2014 typography */
    line-height: 1.65;
    color: var(--mw-color-text);
    background-color: var(--mw-color-bg);
    border-top: 4px solid var(--mw-color-900); /* Classic minimalist top accent bar */
}

a {
    color: var(--mw-color-900);
    text-decoration: none;
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

a:hover,
a:focus {
    color: var(--mw-color-700);
    text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--mw-color-text-dark);
    font-weight: 700;
    line-height: 1.3;
    margin-top: 1.8rem;
    margin-bottom: 0.8rem;
    letter-spacing: -0.01em;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }

p {
    margin-top: 0;
    margin-bottom: 1.3rem;
}

ul, ol {
    margin-top: 0;
    margin-bottom: 1.3rem;
    padding-left: 1.5rem;
}

li {
    margin-bottom: 0.4rem;
}

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

blockquote {
    margin: 1.5rem 0;
    padding: 0.75rem 1.25rem;
    border-left: 3px solid var(--mw-color-900);
    background-color: var(--mw-color-50);
    color: var(--mw-color-text);
    font-style: italic;
}

code, pre {
    font-family: var(--mw-font-mono);
    font-size: 0.875rem;
}

hr {
    border: 0;
    border-top: 1px solid var(--mw-color-border);
    margin: 2rem 0;
}

/* ==========================================================================
   4. Header & Site Navigation (2013-2014 Minimalist Style)
   ========================================================================== */
.site-header {
    background: #ffffff;
    border-bottom: 1px solid var(--mw-color-border);
    padding: 2rem 1.5rem 1.5rem;
}

.site-header-inner {
    max-width: var(--mw-max-width);
    margin: 0 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.site-branding {
    flex: 0 1 auto;
}

.site-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.site-title a {
    color: var(--mw-color-900);
    text-decoration: none;
}

.site-title a:hover {
    color: var(--mw-color-700);
}

.site-description {
    margin: 0.25rem 0 0;
    font-size: 0.8125rem;
    color: var(--mw-color-text-subtle);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* Primary Navigation (Desktop) */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.75rem;
}

.main-navigation li {
    position: relative;
    margin: 0;
}

.main-navigation a {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mw-color-text-dark);
    padding: 0.4rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.main-navigation a:hover,
.main-navigation a:focus,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-parent > a {
    color: var(--mw-color-900);
    border-bottom-color: var(--mw-color-900);
    text-decoration: none;
}

/* Dropdown Menu Indicator */
.main-navigation .menu-item-has-children > a::after {
    content: " \25BE";
    font-size: 0.75rem;
    margin-left: 0.25rem;
    display: inline-block;
    vertical-align: middle;
}

/* Desktop Dropdown Sub-Menu */
.main-navigation .menu-item-has-children {
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
}

.main-navigation .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 2px);
    right: 0;
    left: auto;
    min-width: 290px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-top: 3px solid var(--mw-color-900);
    border-radius: 0 0 6px 6px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    padding: 0.4rem 0;
    margin: 0;
    z-index: 1000;
    list-style: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
}

.main-navigation .menu-item-has-children:hover > .sub-menu,
.main-navigation .menu-item-has-children:focus-within > .sub-menu,
.main-navigation .menu-item-has-children.is-dropdown-open > .sub-menu {
    display: flex !important;
}

.main-navigation .sub-menu li {
    width: 100%;
    position: relative;
    margin: 0;
    padding: 0;
}

.main-navigation .sub-menu a {
    display: block;
    width: 100%;
    padding: 0.65rem 1.25rem;
    font-size: 0.8125rem;
    text-transform: none;
    letter-spacing: normal;
    font-weight: 500;
    color: var(--mw-color-text-dark);
    border-bottom: none;
    border-left: 3px solid transparent;
    box-sizing: border-box;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}

.main-navigation .sub-menu a:hover,
.main-navigation .sub-menu a:focus {
    background-color: var(--mw-color-50);
    color: var(--mw-color-900);
    border-left-color: var(--mw-color-900);
    border-bottom: none;
}

/* Mobile Hamburger Toggle Button (Hidden on Desktop) */
.mobile-menu-toggle {
    display: none;
}

/* ==========================================================================
   5. Main Content Scaffolding
   ========================================================================== */
.site-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    padding: 2.5rem 1.5rem 4rem;
}

.site-main-inner {
    max-width: var(--mw-max-width);
    margin: 0 auto;
}

/* ==========================================================================
   6. Homepage Hero & Features (front-page.php)
   ========================================================================== */
.home-intro-banner {
    background-color: var(--mw-color-50);
    border: 1px solid var(--mw-color-200);
    border-left: 5px solid var(--mw-color-900);
    padding: 2rem 2.25rem;
    margin-bottom: 3rem;
}

.home-intro-title {
    margin-top: 0;
    margin-bottom: 0.75rem;
    font-size: 1.625rem;
    color: var(--mw-color-900);
}

.home-intro-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--mw-color-text);
    margin-bottom: 0;
}

.principles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.principle-card {
    background: #ffffff;
    border: 1px solid var(--mw-color-border);
    padding: 1.75rem;
    transition: border-color 0.15s ease-in-out;
}

.principle-card:hover {
    border-color: var(--mw-color-400);
}

.principle-card h3 {
    margin-top: 0;
    font-size: 1.15rem;
    color: var(--mw-color-900);
    border-bottom: 1px solid var(--mw-color-border-subtle);
    padding-bottom: 0.5rem;
}

.section-heading-bar {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid var(--mw-color-900);
    padding-bottom: 0.5rem;
    margin-bottom: 2rem;
}

.section-heading-bar h2 {
    margin: 0;
    font-size: 1.35rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mw-color-900);
}

.section-heading-bar .view-all-link {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ==========================================================================
   7. Blog Archive & Post Cards
   ========================================================================== */
.posts-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.archive-entry {
    background: #ffffff;
    border: 1px solid var(--mw-color-border);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease-in-out;
}

.archive-entry:hover {
    border-color: var(--mw-color-700);
}

.archive-entry .entry-header {
    margin-bottom: 1rem;
}

.archive-entry .entry-title {
    font-size: 1.25rem;
    margin-top: 0;
    margin-bottom: 0.5rem;
    line-height: 1.35;
}

.archive-entry .entry-title a {
    color: var(--mw-color-text-dark);
}

.archive-entry .entry-title a:hover {
    color: var(--mw-color-900);
}

.entry-meta {
    font-size: 0.8125rem;
    color: var(--mw-color-text-muted);
    margin-bottom: 0.75rem;
}

.entry-meta a {
    color: var(--mw-color-text-muted);
}

.entry-meta a:hover {
    color: var(--mw-color-900);
}

.entry-summary {
    color: var(--mw-color-text);
    font-size: 0.9375rem;
    flex-grow: 1;
    margin-bottom: 1.25rem;
}

.entry-read-more {
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--mw-color-900);
}

.entry-read-more:hover {
    color: var(--mw-color-700);
}

/* ==========================================================================
   8. Single Post & Static Page Layout
   ========================================================================== */
.single-post-wrapper,
.page-wrapper {
    max-width: var(--mw-content-width);
    margin: 0 auto;
}

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

.static-page-entry .entry-header,
.static-page-entry .page-header {
    border: none !important;
    border-bottom: none !important;
    padding-bottom: 0 !important;
    margin-bottom: 1.5rem !important;
}

.single-article .entry-title,
.static-page-entry .entry-title {
    margin-top: 0;
    font-size: 2.15rem;
    color: var(--mw-color-text-dark);
}

.entry-content {
    font-size: 1.05rem;
    line-height: 1.75;
}

.entry-content h2 {
    border-bottom: 1px solid var(--mw-color-border-subtle);
    padding-bottom: 0.4rem;
    margin-top: 2.5rem;
}

.post-featured-chart {
    border: 1px solid var(--mw-color-border);
    padding: 0.5rem;
    margin-bottom: 2rem;
    background: #ffffff;
}

.entry-footer {
    border-top: 1px solid var(--mw-color-border);
    padding-top: 1.25rem;
    margin-top: 2.5rem;
    font-size: 0.875rem;
}

/* Author Bio Area Refinement (Subtle Divider + Clean Flexbox Layout) */
.post-author-box {
    background: transparent;
    border: none;
    border-top: 1px solid #e2e8f0;
    padding: 2.25rem 0 1.5rem;
    margin: 2.25rem 0 2.5rem;
    display: flex;
    align-items: center;
}

.author-avatar-col {
    flex-shrink: 0;
    margin-right: 1.5rem;
}

.author-avatar-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
    border: 2px solid var(--mw-color-200);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.author-bio-content {
    flex: 1;
}

.author-name {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--mw-color-text-dark);
}

.author-tagline {
    display: block;
    margin-top: 0.2rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mw-color-900);
}

.author-desc {
    margin: 0.5rem 0 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--mw-color-text-muted);
}

/* Prominent Lead Magnet Area Overhaul (High-Contrast #752729 2-Column Banner) */
.post-cta-banner {
    background-color: var(--mw-color-900); /* #752729 primary brand */
    color: #ffffff;
    border-radius: 8px;
    padding: 2.5rem 2.25rem;
    margin: 2.5rem 0 3rem;
    box-shadow: 0 6px 20px rgba(117, 39, 41, 0.18);
    border: 1px solid var(--mw-color-800);
}

.post-cta-grid {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
}

.post-cta-content {
    flex: 1 1 58%;
}

.post-cta-title {
    margin: 0 0 0.5rem;
    font-size: 1.55rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.01em;
    line-height: 1.25;
}

.post-cta-subtitle {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--mw-color-100); /* #fbe5e6 */
}

.post-cta-desc {
    margin: 0 0 1.5rem;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--mw-color-100);
    opacity: 0.92;
}

.post-cta-visual {
    flex: 0 0 240px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.post-cta-cover {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.2s ease-in-out;
}

.post-cta-cover:hover {
    transform: translateY(-3px);
}

.post-cta-form {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}

.post-cta-input {
    flex: 1 1 auto;
    width: 100%;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0 1rem;
    line-height: 48px;
    box-sizing: border-box;
    background-color: #ffffff !important;
    color: #1a1a1a !important;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 4px;
    font-size: 0.875rem;
    font-family: var(--mw-font-family);
    outline: none;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.post-cta-input::placeholder {
    color: #64748b;
}

.post-cta-input:focus {
    border-color: #ffffff;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.post-cta-button {
    flex-shrink: 0;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    background-color: #ffffff !important;
    color: var(--mw-color-900) !important;
    border: 1px solid #ffffff !important;
    font-weight: 700 !important;
    font-size: 0.875rem !important;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0 1.5rem !important;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

.post-cta-button:hover,
.post-cta-button:focus {
    background-color: var(--mw-color-100) !important;
    color: var(--mw-color-950) !important;
    transform: translateY(-1px);
}

/* Post Navigation (Prev / Next) */
.post-navigation {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 2.5rem;
}

.post-navigation .nav-links {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-subtitle {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--mw-color-text-muted);
    font-weight: 700;
}

.nav-title {
    font-weight: 600;
}

/* Pagination */
.pagination {
    margin: 2.5rem 0;
    text-align: center;
}

.pagination .nav-links {
    display: inline-flex;
    gap: 0.35rem;
}

.pagination .page-numbers {
    padding: 0.4rem 0.85rem;
    border: 1px solid var(--mw-color-border);
    color: var(--mw-color-text);
    font-weight: 600;
    font-size: 0.875rem;
}

.pagination .page-numbers.current,
.pagination .page-numbers:hover {
    background-color: var(--mw-color-900);
    border-color: var(--mw-color-900);
    color: #ffffff;
    text-decoration: none;
}

/* ==========================================================================
   9. Footer (Clean 2013-2014 Flat Design)
   ========================================================================== */
.site-footer {
    background-color: #ffffff;
    border-top: 1px solid var(--mw-color-border);
    padding: 2.5rem 1.5rem 2rem;
    font-size: 0.8125rem;
    color: var(--mw-color-text-muted);
}

.site-footer-inner {
    max-width: var(--mw-max-width);
    margin: 0 auto;
}

.footer-compliance-disclaimer {
    background: var(--mw-color-50);
    border: 1px solid var(--mw-color-200);
    padding: 1rem 1.25rem;
    margin-bottom: 2rem;
    line-height: 1.55;
    color: var(--mw-color-text);
}

.footer-compliance-disclaimer strong {
    color: var(--mw-color-900);
}

.footer-navigation ul {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.footer-navigation a {
    color: var(--mw-color-text-dark);
    font-weight: 600;
}

.footer-navigation a:hover {
    color: var(--mw-color-900);
}

.site-info {
    border-top: 1px solid var(--mw-color-border-subtle);
    padding-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.site-info p {
    margin: 0;
}

/* ==========================================================================
   10. Global Form & Input Design System
   ========================================================================== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
    font-family: var(--mw-font-family);
    font-size: 14px;
    color: var(--mw-color-text-dark);
    background-color: #ffffff;
    line-height: 1.5;
    outline: none;
    box-sizing: border-box;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
    border-color: var(--mw-color-900);
    box-shadow: 0 0 0 3px rgba(117, 39, 41, 0.12);
}

button,
input[type="submit"],
input[type="button"],
input[type="reset"],
.button,
.btn {
    display: inline-block;
    font-family: var(--mw-font-family);
    font-weight: 600;
    font-size: 14px;
    padding: 10px 20px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background-color: var(--mw-color-900);
    color: #ffffff !important;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-decoration: none !important;
    line-height: 1.5;
    transition: background-color 0.15s ease-in-out, transform 0.15s ease-in-out;
}

button:hover,
input[type="submit"]:hover,
input[type="button"]:hover,
.button:hover,
.btn:hover {
    background-color: var(--mw-color-800);
}

button:active,
input[type="submit"]:active,
.button:active {
    transform: translateY(1px);
}

/* ==========================================================================
   11. WordPress Comment Area Hardening & Styling
   ========================================================================== */
.comments-area {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.comments-title,
.comment-reply-title {
    font-size: 1.35rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1.25rem;
    color: var(--mw-color-text-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid var(--mw-color-900);
    padding-bottom: 0.5rem;
}

#commentform {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.5rem;
}

#commentform p {
    margin: 0;
}

#commentform label {
    display: block;
    font-weight: 600;
    font-size: 0.875rem;
    color: #334155;
    margin-bottom: 6px;
}

#commentform .comment-form-author,
#commentform .comment-form-email {
    width: 100%;
}

#commentform textarea {
    min-height: 130px;
    resize: vertical;
}

/* Cookies Consent Checkbox - Single-Line Alignment */
.comment-form-cookies-consent {
    display: flex !important;
    align-items: center !important;
    gap: 0.6rem !important;
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
}

.comment-form-cookies-consent input[type="checkbox"],
#commentform input[type="checkbox"] {
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    box-shadow: none !important;
}

.comment-form-cookies-consent label {
    margin: 0 !important;
    font-weight: 400 !important;
    font-size: 0.875rem !important;
    color: var(--mw-color-text-muted) !important;
    cursor: pointer !important;
    line-height: 1.4 !important;
    display: inline !important;
}

#commentform .form-submit {
    margin-top: 0.5rem;
}

#commentform #submit {
    min-width: 170px;
    padding: 12px 24px;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 2rem 0;
}

.comment-list .comment {
    border-bottom: 1px solid var(--mw-color-border-subtle);
    padding: 1.5rem 0;
}

.comment-body {
    font-size: 0.9375rem;
    line-height: 1.6;
}

.comment-meta {
    font-size: 0.8125rem;
    color: var(--mw-color-text-muted);
    margin-bottom: 0.5rem;
}

.comment-author {
    font-weight: 700;
    color: var(--mw-color-text-dark);
}

/* ==========================================================================
   12. Accessibility & Utility Classes
   ========================================================================== */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

/* ==========================================================================
   13. Mobile Navigation Drawer & Hamburger Menu
   ========================================================================== */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 40px;
    height: 38px;
    padding: 8px 7px;
    background: #ffffff;
    border: 1px solid var(--mw-color-border);
    border-radius: 5px;
    cursor: pointer;
    box-sizing: border-box;
    transition: background-color 0.15s ease, border-color 0.15s ease;
}

.mobile-menu-toggle:hover,
.mobile-menu-toggle:focus {
    border-color: var(--mw-color-900);
    background-color: var(--mw-color-50);
}

.hamburger-bar {
    display: block;
    width: 100%;
    height: 2px;
    background-color: var(--mw-color-900);
    border-radius: 2px;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.is-active .hamburger-bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

/* Full-Page Mobile Drawer Overlay */
.mobile-menu-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh;
    z-index: 999999;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s ease;
}

.mobile-menu-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-menu-drawer.is-open .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-panel {
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    max-width: 100%;
    height: 100%;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
}

.mobile-menu-drawer.is-open .mobile-menu-panel {
    transform: translateX(0);
}

body.mobile-menu-active {
    overflow: hidden !important;
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--mw-color-border);
    background: #ffffff;
    flex-shrink: 0;
}

.mobile-menu-branding {
    display: flex;
    flex-direction: column;
}

.mobile-menu-site-title {
    font-size: 1.25rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mw-color-900);
}

.mobile-menu-site-desc {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--mw-color-text-subtle);
    margin-top: 2px;
}

.mobile-menu-close {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--mw-color-50);
    border: 1px solid var(--mw-color-200);
    border-radius: 6px;
    color: var(--mw-color-900);
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-menu-close:hover,
.mobile-menu-close:focus {
    background: var(--mw-color-100);
    color: var(--mw-color-950);
}

.mobile-menu-body {
    flex: 1 1 auto;
    padding: 1rem 1.25rem 1.5rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.mobile-navigation > ul > li {
    border-bottom: 1px solid var(--mw-color-border-subtle);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.mobile-navigation > ul > li > a {
    display: block;
    padding: 1.1rem 0;
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mw-color-text-dark);
    text-decoration: none;
    flex: 1;
}

.mobile-navigation > ul > li.current-menu-item > a,
.mobile-navigation > ul > li.current-menu-parent > a {
    color: var(--mw-color-900);
}

.mobile-submenu-toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    color: var(--mw-color-text-muted);
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.25s ease, color 0.15s ease;
}

.mobile-submenu-toggle.is-expanded {
    transform: rotate(180deg);
    color: var(--mw-color-900);
}

.mobile-navigation .sub-menu {
    display: none;
    width: 100%;
    list-style: none;
    margin: 0 0 1rem 0;
    padding: 0.5rem 0.5rem 0.5rem 0.75rem;
    background: var(--mw-color-50);
    border-left: 3px solid var(--mw-color-900);
    border-radius: 4px;
    flex-direction: column;
    gap: 0.25rem;
}

.mobile-navigation .menu-item-has-children.submenu-expanded > .sub-menu {
    display: flex;
}

.mobile-navigation .sub-menu li {
    width: 100%;
}

.mobile-navigation .sub-menu a {
    display: block;
    padding: 0.65rem 0.75rem;
    font-size: 0.925rem;
    font-weight: 500;
    color: var(--mw-color-text-dark);
    text-decoration: none;
    border-radius: 3px;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.mobile-navigation .sub-menu a:hover,
.mobile-navigation .sub-menu .current-menu-item > a {
    background: rgba(117, 39, 41, 0.09);
    color: var(--mw-color-900);
    font-weight: 600;
}

.mobile-menu-footer {
    padding: 1.15rem 1.25rem;
    border-top: 1px solid var(--mw-color-border);
    background: #fdf8f8;
    flex-shrink: 0;
}

.mobile-menu-email {
    display: inline-flex;
    align-items: center;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--mw-color-900);
    text-decoration: none;
    padding: 0.5rem 0.85rem;
    background: #ffffff;
    border: 1px solid var(--mw-color-200);
    border-radius: 4px;
}

.mobile-menu-email svg {
    margin-right: 8px;
    vertical-align: middle;
}

.mobile-menu-tagline {
    margin: 0.65rem 0 0;
    font-size: 0.75rem;
    color: var(--mw-color-text-subtle);
    line-height: 1.4;
}

/* ==========================================================================
   14. Responsive Breakpoints
   ========================================================================== */
@media (max-width: 767px) {
    .site-header {
        padding: 0.875rem 1rem;
    }

    .site-header-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 0.75rem;
    }

    .site-branding {
        flex: 1 1 auto;
        min-height: auto;
    }

    .site-title {
        font-size: 1.35rem;
        margin: 0;
    }

    .site-description {
        margin: 0.15rem 0 0;
        font-size: 0.72rem;
    }

    /* Hide desktop horizontal menu on mobile, show hamburger toggle */
    .main-navigation {
        display: none !important;
    }

    .mobile-menu-toggle {
        display: flex !important;
        flex-shrink: 0;
    }

    .posts-list {
        grid-template-columns: 1fr;
    }

    .site-info {
        flex-direction: column;
        align-items: flex-start;
    }

    /* Author Bio on Mobile */
    .post-author-box {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .author-avatar-col {
        margin-right: 0;
    }

    /* Lead Magnet 2-Column on Mobile: Clean compact design */
    .post-cta-banner {
        padding: 1.75rem 1.25rem;
        margin: 2rem 0;
        border-radius: 8px;
    }

    .post-cta-grid {
        flex-direction: column;
        gap: 1.5rem;
    }

    .post-cta-content {
        order: 1;
        width: 100%;
    }

    .post-cta-title {
        font-size: 1.35rem;
        margin-bottom: 0.35rem;
    }

    .post-cta-subtitle {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }

    .post-cta-desc {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        line-height: 1.5;
    }

    .post-cta-form {
        display: flex !important;
        flex-direction: column !important;
        gap: 0.75rem !important;
        width: 100% !important;
    }

    .post-cta-input {
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        flex: 0 0 48px !important;
        padding: 0 1rem !important;
        font-size: 0.9rem !important;
        box-sizing: border-box !important;
    }

    .post-cta-button {
        width: 100% !important;
        height: 48px !important;
        min-height: 48px !important;
        max-height: 48px !important;
        flex: 0 0 48px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        text-align: center !important;
        font-size: 0.85rem !important;
    }

    .post-cta-visual {
        order: 2;
        width: 100%;
        margin-top: 0.5rem;
        display: flex;
        justify-content: center;
    }

    .post-cta-cover {
        max-width: 160px;
        height: auto;
        box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    }
}


