/*
Theme Name: EarnSmartHub
Theme URI: https://earnsmarthub.com
Author: EarnSmartHub
Author URI: https://earnsmarthub.com
Description: Custom WordPress theme for EarnSmartHub — affiliate SEO and passive income platform.
Version: 1.0.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: earnsmarthub
Tags: blog, custom-colors, custom-logo, featured-images, full-width-template, threaded-comments, translation-ready
*/

/* =============================================
   DESIGN TOKENS
============================================= */
:root {
    --ink:          #0e0e0e;
    --ink-2:        #444444;
    --ink-3:        #888888;
    --surface:      #faf9f6;
    --surface-2:    #f2f0eb;
    --surface-3:    #e8e4db;
    --accent:       #1a4a2e;
    --accent-light: #2d7a4f;
    --accent-pale:  #e8f2ec;
    --gold:         #b8902a;
    --gold-pale:    #fdf6e3;
    --border:       rgba(0,0,0,0.1);
    --border-strong:rgba(0,0,0,0.18);
    --radius:       4px;
    --radius-lg:    8px;
    --max-width:    900px;
    --font-serif:   'DM Serif Display', Georgia, serif;
    --font-sans:    'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
    font-family: var(--font-sans);
    background: var(--surface);
    color: var(--ink);
    font-size: 15px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-light); text-decoration: none; }
a:hover { text-decoration: underline; }
ul, ol { padding-left: 1.4em; }

/* =============================================
   TYPOGRAPHY
============================================= */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-serif);
    line-height: 1.15;
    letter-spacing: -0.4px;
    color: var(--ink);
}
h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -1.2px; }
h2 { font-size: clamp(24px, 3.5vw, 36px); letter-spacing: -0.8px; }
h3 { font-size: 20px; }
h4 { font-size: 16px; font-family: var(--font-sans); font-weight: 600; }

p { margin-bottom: 1.2rem; color: var(--ink-2); }
p:last-child { margin-bottom: 0; }

blockquote {
    border-left: 3px solid var(--accent-light);
    padding: 12px 24px;
    margin: 2rem 0;
    font-style: italic;
    color: var(--ink-2);
    background: var(--accent-pale);
    border-radius: 0 var(--radius) var(--radius) 0;
}

code {
    font-size: 13px;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 2px 7px;
    font-family: monospace;
}

pre {
    background: var(--ink);
    color: #e8f2ec;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    overflow-x: auto;
    margin: 1.5rem 0;
}

pre code { background: none; border: none; color: inherit; }

/* =============================================
   LAYOUT UTILITIES
============================================= */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 40px;
}

.container--wide {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 40px;
}

.section { padding: 80px 0; }
.section--dark { background: var(--ink); }
.section--tinted { background: var(--surface-2); }
.section--green { background: var(--accent-pale); }

.section-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-light);
    margin-bottom: 14px;
}

.section-tag--light { color: #7ec99a; }

.section-title { margin-bottom: 10px; }
.section-title em { font-style: italic; color: var(--accent-light); }
.section-title--light { color: #ffffff; }
.section-title--light em { color: #7ec99a; }

.section-sub {
    font-size: 15px;
    color: var(--ink-2);
    max-width: 480px;
    line-height: 1.65;
    margin-bottom: 48px;
    font-weight: 300;
}

.section-sub--light {
    color: rgba(255,255,255,0.5);
}

/* =============================================
   BUTTONS
============================================= */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 12px 24px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, border-color 0.15s;
    text-decoration: none;
    border: 1px solid transparent;
    line-height: 1;
}

.btn:hover { transform: translateY(-1px); text-decoration: none; }

.btn--primary,
.btn--primary:link,
.btn--primary:visited,
.btn--primary:hover,
.btn--primary:active,
.btn--primary:focus {
    background: var(--accent);
    color: #ffffff !important;
    border-color: var(--accent);
}
.btn--primary:hover,
.btn--primary:focus {
    background: var(--accent-light);
    border-color: var(--accent-light);
    color: #ffffff !important;
    transform: translateY(-1px);
    text-decoration: none;
}

.btn--secondary {
    background: transparent;
    color: var(--ink);
    border-color: var(--border-strong);
}
.btn--secondary:hover { border-color: var(--ink-2); color: var(--ink); }

.btn--outline-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}
.btn--outline-light:hover { border-color: rgba(255,255,255,0.7); color: #fff; }

/* =============================================
   NAVIGATION
============================================= */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
}

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

.site-logo {
    font-family: var(--font-serif);
    font-size: 18px;
    color: var(--ink);
    text-decoration: none;
    letter-spacing: -0.3px;
}
.site-logo span { color: var(--accent-light); }
.site-logo:hover { text-decoration: none; color: var(--ink); }

.site-nav { display: flex; align-items: center; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-menu a {
    color: var(--ink-2);
    font-size: 13.5px;
    font-weight: 400;
    letter-spacing: 0.01em;
    text-decoration: none;
    transition: color 0.15s;
}
.nav-menu a:hover { color: var(--ink); }

.nav-menu .btn--primary {
    font-size: 13px;
    padding: 8px 18px;
}

.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    padding: 6px 10px;
    cursor: pointer;
    color: var(--ink);
    font-size: 18px;
}

/* =============================================
   HERO
============================================= */
.hero {
    max-width: 860px;
    margin: 0 auto;
    padding: 100px 40px 80px;
    text-align: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--gold-pale);
    color: var(--gold);
    border: 1px solid rgba(184,144,42,0.25);
    padding: 5px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero__title {
    font-size: clamp(40px, 6vw, 64px);
    line-height: 1.1;
    letter-spacing: -1.5px;
    margin-bottom: 22px;
}
.hero__title em { font-style: italic; color: var(--accent-light); }

.hero__sub {
    font-size: 17px;
    color: var(--ink-2);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.65;
    font-weight: 300;
}

.hero__actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* =============================================
   STATS STRIP
============================================= */
.stats-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--surface-2);
    padding: 28px 40px;
}

.stats-strip__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.stat-item {
    text-align: center;
    padding: 0 20px;
    border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-item__num {
    font-family: var(--font-serif);
    font-size: 30px;
    color: var(--ink);
    letter-spacing: -0.5px;
    display: block;
    line-height: 1;
    margin-bottom: 6px;
}

.stat-item__label {
    font-size: 12px;
    color: var(--ink-3);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 500;
}

/* =============================================
   CATEGORY PATHS GRID
============================================= */
.paths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.path-card {
    padding: 28px 24px;
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    display: block;
    transition: background 0.15s;
}

.path-card:nth-child(4n) { border-right: none; }
.path-card:nth-last-child(-n+4) { border-bottom: none; }
.path-card:hover { background: var(--surface-2); text-decoration: none; }

.path-card__icon {
    width: 38px;
    height: 38px;
    background: var(--accent-pale);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    font-size: 18px;
    color: var(--accent);
}

.path-card__title {
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--ink);
}

.path-card__desc {
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.55;
    margin-bottom: 14px;
}

.path-card__link {
    font-size: 12px;
    color: var(--accent-light);
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* =============================================
   HOW IT WORKS
============================================= */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    position: relative;
}

.steps-grid::before {
    content: '';
    position: absolute;
    top: 28px;
    left: 12.5%;
    right: 12.5%;
    height: 1px;
    background: rgba(255,255,255,0.12);
    pointer-events: none;
}

.step { padding: 0 24px 0 0; }

.step__num {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255,255,255,0.4);
    margin-bottom: 20px;
    background: var(--ink);
    position: relative;
    z-index: 1;
    font-family: var(--font-sans);
}

.step__icon {
    font-size: 22px;
    color: #7ec99a;
    margin-bottom: 14px;
    display: block;
}

.step__title {
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.step__desc {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    line-height: 1.6;
    margin: 0;
}

/* =============================================
   BLOG CARDS
============================================= */
.blog-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.post-card {
    padding: 28px;
    border-right: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.post-card:last-child { border-right: none; }
.post-card:hover { background: var(--surface-2); }

.post-card__tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 16px;
}

.post-card__title {
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.3;
    color: var(--ink);
    margin-bottom: 12px;
    letter-spacing: -0.2px;
}

.post-card--featured .post-card__title { font-size: 22px; }

.post-card__excerpt {
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 20px;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--ink-3);
}

.post-card__read-time {
    margin-left: auto;
    font-size: 11px;
}

/* Archive grid */
.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.archive-grid .post-card {
    border-right: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.archive-grid .post-card:nth-child(3n) { border-right: none; }

.post-card__thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: var(--radius);
    margin-bottom: 16px;
}

/* Single post */
.post-thumbnail {
    width: 100%;
    max-height: 460px;
    object-fit: cover;
    border-radius: var(--radius-lg);
    margin-bottom: 40px;
}

/* =============================================
   NEWSLETTER SECTION
============================================= */
.newsletter {
    border-top: 1px solid rgba(26,74,46,0.12);
    border-bottom: 1px solid rgba(26,74,46,0.12);
}

.newsletter__inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 72px 40px;
}

.newsletter__icon {
    width: 52px;
    height: 52px;
    background: #fff;
    border-radius: 50%;
    border: 1px solid rgba(26,74,46,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 22px;
    color: var(--accent);
}

.newsletter__title {
    font-family: var(--font-serif);
    font-size: 28px;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    color: var(--accent);
}

.newsletter__sub {
    font-size: 14px;
    color: var(--accent);
    opacity: 0.65;
    margin-bottom: 28px;
    line-height: 1.65;
}

.newsletter__form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
}

.newsletter__form input[type="email"] {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid rgba(26,74,46,0.2);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-sans);
    background: #fff;
    color: var(--ink);
    outline: none;
    transition: border-color 0.15s;
}
.newsletter__form input[type="email"]:focus { border-color: var(--accent-light); }
.newsletter__form input[type="email"]::placeholder { color: #aaa; }

.newsletter__form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s;
}
.newsletter__form button:hover { background: var(--accent-light); }

.newsletter__note {
    margin-top: 12px;
    font-size: 11.5px;
    color: var(--accent);
    opacity: 0.45;
}

/* =============================================
   FOOTER
============================================= */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 56px 0 32px;
}

.site-footer__grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}

.footer-brand__desc {
    font-size: 12.5px;
    color: var(--ink-3);
    line-height: 1.65;
    max-width: 210px;
    margin-top: 12px;
}

.footer-col__heading {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 16px;
    font-family: var(--font-sans);
}

.footer-col__list {
    list-style: none;
    padding: 0;
}

.footer-col__list li { margin-bottom: 9px; }

.footer-col__list a {
    font-size: 13px;
    color: var(--ink-2);
    text-decoration: none;
    transition: color 0.15s;
}
.footer-col__list a:hover { color: var(--ink); }

.site-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-footer__copy {
    font-size: 12px;
    color: var(--ink-3);
    margin: 0;
}

.footer-socials { display: flex; gap: 8px; }

.social-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--ink-3);
    font-size: 14px;
    transition: border-color 0.15s, color 0.15s;
}
.social-btn:hover { border-color: var(--ink); color: var(--ink); }

/* =============================================
   SINGLE POST LAYOUT
============================================= */
.post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 60px;
    align-items: start;
    padding: 60px 0 80px;
}

.post-header { margin-bottom: 36px; }

.post-header__cats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--accent-pale);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
}
.cat-badge:hover { background: var(--accent); color: #fff; text-decoration: none; }

.post-header__title {
    font-size: clamp(28px, 4vw, 44px);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.post-header__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--ink-3);
    flex-wrap: wrap;
}

.post-header__meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.post-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-2);
}

.post-content h2 {
    font-size: 26px;
    margin: 2.5rem 0 1rem;
    color: var(--ink);
}

.post-content h3 {
    font-size: 20px;
    margin: 2rem 0 0.8rem;
    color: var(--ink);
}

.post-content ul, .post-content ol {
    margin-bottom: 1.2rem;
    color: var(--ink-2);
}

.post-content li { margin-bottom: 6px; }

.post-content a { color: var(--accent-light); }
.post-content a:hover { text-decoration: underline; }

.post-content img {
    border-radius: var(--radius-lg);
    margin: 1.5rem 0;
}

/* =============================================
   SIDEBAR
============================================= */
.sidebar { position: sticky; top: 80px; }

.widget {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 24px;
    margin-bottom: 24px;
    background: var(--surface);
}

.widget__title {
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}

.widget ul {
    list-style: none;
    padding: 0;
}

.widget ul li {
    border-bottom: 1px solid var(--border);
    padding: 10px 0;
}
.widget ul li:last-child { border-bottom: none; padding-bottom: 0; }

.widget ul li a {
    font-size: 13px;
    color: var(--ink-2);
    text-decoration: none;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.widget ul li a:hover { color: var(--accent-light); }

/* Author box */
.author-box {
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin: 48px 0;
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--surface-2);
}

.author-box__avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
}

.author-box__name {
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
    margin-bottom: 4px;
}

.author-box__bio {
    font-size: 13px;
    color: var(--ink-3);
    line-height: 1.6;
    margin: 0;
}

/* Post navigation */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 48px 0;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.post-nav__item {
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    color: inherit;
    transition: background 0.15s;
}
.post-nav__item:hover { background: var(--surface-2); text-decoration: none; }

.post-nav__item--next { text-align: right; }

.post-nav__label {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 6px;
}
.post-nav__item--next .post-nav__label { justify-content: flex-end; }

.post-nav__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--ink);
    line-height: 1.4;
}

/* =============================================
   ARCHIVE / BLOG LISTING
============================================= */
.archive-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 48px;
}

.archive-header__tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink-3);
    margin-bottom: 10px;
    display: block;
}

.archive-header__title { margin-bottom: 8px; }

.archive-header__count {
    font-size: 13px;
    color: var(--ink-3);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin: 48px 0;
}

.pagination a,
.pagination span {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 13px;
    color: var(--ink-2);
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}
.pagination a:hover { background: var(--surface-2); border-color: var(--border-strong); }
.pagination .current {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}

/* =============================================
   COMMENTS
============================================= */
.comments-area {
    margin-top: 48px;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}

.comments-title {
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 28px;
    color: var(--ink);
}

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

.comment-body {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.comment-author b { font-size: 13px; font-weight: 600; color: var(--ink); }
.comment-metadata { font-size: 12px; color: var(--ink-3); margin-top: 4px; }
.comment-content { margin-top: 12px; font-size: 14px; color: var(--ink-2); }

.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    background: var(--surface);
    color: var(--ink);
    margin-bottom: 12px;
    outline: none;
    transition: border-color 0.15s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent-light); }
.comment-form textarea { min-height: 120px; resize: vertical; }

/* =============================================
   BREADCRUMBS
============================================= */
.breadcrumbs {
    padding: 16px 0;
    font-size: 12.5px;
    color: var(--ink-3);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent-light); }
.breadcrumbs .sep { opacity: 0.4; }

/* =============================================
   404 PAGE
============================================= */
.error-404 {
    text-align: center;
    padding: 100px 40px;
}
.error-404 .error-num {
    font-family: var(--font-serif);
    font-size: 120px;
    color: var(--surface-3);
    line-height: 1;
    letter-spacing: -5px;
    margin-bottom: 20px;
}
.error-404 h1 { font-size: 28px; margin-bottom: 12px; }
.error-404 p { color: var(--ink-3); margin-bottom: 32px; }

/* =============================================
   SEARCH RESULTS
============================================= */
.search-form {
    display: flex;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto 48px;
}

.search-form input[type="search"] {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    background: var(--surface);
    color: var(--ink);
    outline: none;
}
.search-form input:focus { border-color: var(--accent-light); }

.search-form button {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 14px;
    cursor: pointer;
}

/* =============================================
   RESPONSIVE
============================================= */
@media (max-width: 900px) {
    .container, .container--wide { padding: 0 24px; }
    .section { padding: 60px 0; }
    .hero { padding: 60px 24px 48px; }
    .stats-strip { padding: 24px; }
    .stats-strip__inner { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--border); padding-bottom: 16px; }
    .stat-item:nth-child(even) { border-right: none; }
    .stat-item:last-child, .stat-item:nth-last-child(2) { border-bottom: none; }
    .paths-grid { grid-template-columns: repeat(2, 1fr); }
    .path-card:nth-child(4n) { border-right: 1px solid var(--border); }
    .path-card:nth-child(2n) { border-right: none; }
    .path-card:nth-last-child(-n+4) { border-bottom: 1px solid var(--border); }
    .path-card:nth-last-child(-n+2) { border-bottom: none; }
    .steps-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; }
    .steps-grid::before { display: none; }
    .blog-grid { grid-template-columns: 1fr; }
    .post-card { border-right: none; border-bottom: 1px solid var(--border); }
    .post-card:last-child { border-bottom: none; }
    .archive-grid { grid-template-columns: repeat(2, 1fr); }
    .post-layout { grid-template-columns: 1fr; gap: 40px; }
    .sidebar { position: static; }
    .site-footer__grid { grid-template-columns: 1fr 1fr; }
    .post-nav { grid-template-columns: 1fr; }
    .post-nav__item--next { text-align: left; }
    .post-nav__item--next .post-nav__label { justify-content: flex-start; }
}

@media (max-width: 600px) {
    .nav-menu { display: none; }
    .nav-menu.is-open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 60px;
        left: 0; right: 0;
        background: var(--surface);
        border-bottom: 1px solid var(--border);
        padding: 16px 24px;
        gap: 16px;
    }
    .menu-toggle { display: flex; }
    .site-header { position: relative; }
    .paths-grid { grid-template-columns: 1fr; }
    .path-card { border-right: none !important; }
    .steps-grid { grid-template-columns: 1fr; }
    .archive-grid { grid-template-columns: 1fr; }
    .archive-grid .post-card:nth-child(3n) { border-right: none; }
    .site-footer__grid { grid-template-columns: 1fr; }
    .author-box { flex-direction: column; }
    .newsletter__form { flex-direction: column; }
}

/* =============================================
   WORDPRESS CORE CLASSES
============================================= */
.alignleft { float: left; margin: 0 1.5rem 1rem 0; }
.alignright { float: right; margin: 0 0 1rem 1.5rem; }
.aligncenter { margin: 1.5rem auto; display: block; }
.alignwide { margin: 0 -40px; }
.alignfull { margin: 0 calc(-50vw + 50%); }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--ink-3); text-align: center; margin-top: 6px; }
.screen-reader-text { clip: rect(1px,1px,1px,1px); height: 1px; overflow: hidden; position: absolute; width: 1px; }
.sticky { /* sticky post style if needed */ }
.bypostauthor { /* author comment highlight */ }

/* =============================================
   PATHS GRID — 12 CARDS (3 cols on wide)
============================================= */
.paths-grid--wide {
    grid-template-columns: repeat(4, 1fr);
}
.paths-grid--wide .path-card:nth-child(4n) { border-right: none; }
.paths-grid--wide .path-card:nth-child(3n) { border-right: 1px solid var(--border); }

@media (max-width: 900px) {
    .paths-grid--wide { grid-template-columns: repeat(2, 1fr); }
    .paths-grid--wide .path-card:nth-child(4n),
    .paths-grid--wide .path-card:nth-child(3n) { border-right: 1px solid var(--border); }
    .paths-grid--wide .path-card:nth-child(2n) { border-right: none; }
}

/* =============================================
   AFFILIATE CTA BANNER (homepage)
============================================= */
.aff-banner {
    background: var(--ink);
    padding: 60px 0;
    border-top: 1px solid rgba(255,255,255,0.06);
}
.aff-banner__inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 48px;
    align-items: center;
}
.aff-banner__text .section-tag { margin-bottom: 12px; }
.aff-banner__text h2 {
    font-family: var(--font-serif);
    font-size: clamp(22px, 3vw, 32px);
    color: #fff;
    letter-spacing: -0.6px;
    margin-bottom: 12px;
    line-height: 1.2;
}
.aff-banner__text h2 em { font-style: italic; color: #7ec99a; }
.aff-banner__text p {
    font-size: 14px;
    color: rgba(255,255,255,0.5);
    max-width: 480px;
    line-height: 1.65;
    margin: 0;
}
.aff-banner__cta { text-align: center; }
.aff-banner__disclosure {
    font-size: 11px;
    color: rgba(255,255,255,0.25);
    margin-top: 10px;
    max-width: 200px;
    line-height: 1.5;
}
.btn--lg { font-size: 15px; padding: 14px 32px; }

@media (max-width: 700px) {
    .aff-banner__inner { grid-template-columns: 1fr; gap: 28px; }
    .aff-banner__cta { text-align: left; }
    .aff-banner__disclosure { max-width: 100%; }
}


/* =============================================
   FOOTER — copyright centered
============================================= */
.site-footer__bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.site-footer__copy {
    text-align: center;
    flex: 1;
}

/* =============================================
   STAT COUNT-UP — prevent layout shift
============================================= */
.stat-item__num {
    min-width: 80px;
    display: inline-block;
}

/* =============================================
   NEWSLETTER — CF7 overrides
============================================= */
.newsletter .wpcf7-form {
    display: flex;
    gap: 8px;
    max-width: 420px;
    margin: 0 auto;
    flex-wrap: wrap;
}
.newsletter .wpcf7-form input[type="email"] {
    flex: 1;
    padding: 11px 16px;
    border: 1px solid rgba(26,74,46,0.2);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: var(--font-sans);
    background: #fff;
    color: var(--ink);
    outline: none;
    min-width: 180px;
}
.newsletter .wpcf7-form input[type="email"]:focus { border-color: var(--accent-light); }
.newsletter .wpcf7-form input[type="submit"] {
    background: var(--accent);
    color: #fff;
    border: none;
    padding: 11px 20px;
    border-radius: var(--radius);
    font-family: var(--font-sans);
    font-size: 13.5px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}
.newsletter .wpcf7-form input[type="submit"]:hover { background: var(--accent-light); }
.newsletter .wpcf7-response-output {
    width: 100%;
    font-size: 13px;
    border: none !important;
    padding: 0 !important;
    margin: 8px 0 0 !important;
    color: var(--accent);
}

/* NAV CTA — force white text */
.nav-menu .btn--primary,
.nav-menu .btn--primary:visited,
.nav-menu .btn--primary:hover {
    color: #ffffff !important;
}
