/*
Theme Name: Mini Crib
Theme URI: https://minicrib.com
Author: Mini Crib
Author URI: https://minicrib.com
Description: A warm, editorial blog and affiliate theme for mini crib reviews, buying guides, and baby nursery content. Clean, modern, and parent-friendly.
Version: 3.5.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: mini-crib
Tags: blog, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, two-columns, right-sidebar, wide-blocks
*/

/*
 * CSS TABLE OF CONTENTS
 * -----------------------------------------------
 *  1.  Design Tokens       — CSS variables: colors, fonts, spacing, shadows
 *  2.  Reset & Base        — Box-sizing, body, links, scrollbar
 *  3.  Typography          — Heading scale, paragraph, strong
 *  4.  Layout Utilities    — .container, .sr-only
 *  5.  Buttons             — .btn, .btn--primary, .btn--outline, .btn--sm
 *  6.  Header              — Sticky header, logo, nav, mobile toggle
 *  7.  Hero / Banner       — Homepage hero section with featured post card
 *  8.  Stats Bar           — 4-column feature stats row
 *  9.  Content Layout      — 2-column grid (main + sidebar)
 *  10. Section Headings    — Category filter pills
 *  11. Post Cards          — .post-card grid items
 *  12. Sidebar Widgets     — Recent posts, categories, affiliate box
 *  13. Single Post         — Post header, content, nav, reading progress
 *  14. Related Posts       — 3-post row below single post
 *  15. Sidebar CTA Button   — .sidebar-cta-btn affiliate call-to-action
 *  16. Footer              — 4-column footer grid + email link
 *  17. Page Header         — Archive/category page header
 *  18. Breadcrumb          — Home › Category › Post
 *  19. Animations          — fadeUp keyframe, pulse
 *  20. Responsive          — Breakpoints: 1024px, 768px, 480px
 *  21. WordPress Classes   — alignleft, alignright, gallery, captions
 *  22. Gutenberg Buttons   — Block editor button overrides
 *  23. Comments            — Comment list and form
 *  24. Accessibility       — Skip link, focus styles, touch targets
 *
 * TO EDIT COLORS: Change CSS variables in section 1 (Design Tokens).
 * TO EDIT FONTS:  Change --font-display and --font-body variables,
 *                 and update the Google Fonts URL in functions.php.
 */


/* ============================================
   1. DESIGN TOKENS — Warm Nursery Editorial Theme
   Palette: Soft cream + warm ink + dusty rose accent
============================================ */
:root {
    /* Text — deep navy (not harsh black, trusted & readable) */
    --ink:         #1a2b4a;
    --ink-mid:     #2e4470;
    --ink-light:   #5570a0;
    --muted:       #8ea3c3;

    /* Borders & backgrounds — cool, clean, airy */
    --border:      #dde8f5;
    --border-mid:  #c8d8ee;
    --bg:          #ffffff;
    --bg-soft:     #f4f8ff;
    --bg-mid:      #e8f1fb;

    /* Primary accent — sky blue (safety, trust, calm) */
    --rose:        #2e7de0;
    --rose-mid:    #4a92f0;
    --rose-bg:     #eaf2ff;

    /* CTA color — mint green (buy, fresh, natural) */
    --teal:        #00a878;
    --teal-mid:    #00c48a;
    --teal-bg:     #e0f7f0;

    /* Warm accent — soft gold (warmth, baby energy) */
    --amber:       #f5a623;

    --font-display: 'Playfair Display', Georgia, serif;
    --font-body:    'Nunito', 'Helvetica Neue', sans-serif;
    --font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;
    --shadow-sm:   0 1px 3px rgba(26,43,74,0.08), 0 1px 2px rgba(26,43,74,0.05);
    --shadow-md:   0 4px 16px rgba(26,43,74,0.12), 0 2px 6px rgba(26,43,74,0.07);
    --shadow-lg:   0 12px 40px rgba(26,43,74,0.15), 0 4px 12px rgba(26,43,74,0.08);
    --radius:      8px;
    --radius-lg:   16px;
    --transition:  0.2s cubic-bezier(0.4,0,0.2,1);
    --max-width:   1160px;
}

/* ============================================
   2. RESET & BASE
============================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--ink);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rose); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--rose-mid); }

/* Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--border-mid); border-radius: 3px; }

/* ============================================
   3. TYPOGRAPHY
============================================ */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.25;
    color: var(--ink);
}
h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
p { margin-bottom: 1.2em; }
strong { font-weight: 700; color: var(--ink); }
em { font-style: italic; }

/* ============================================
   4. LAYOUT UTILITIES
============================================ */
.container {
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: 24px;
}
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================
   5. BUTTONS
============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    white-space: nowrap;
}
.btn--primary {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}
.btn--primary:hover {
    background: var(--rose-mid);
    border-color: var(--rose-mid);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(46,125,224,0.35);
}
.btn--outline {
    background: transparent;
    color: var(--rose);
    border-color: var(--border-mid);
}
.btn--outline:hover {
    background: var(--rose-bg);
    border-color: var(--rose);
    color: var(--rose);
}
.btn--teal {
    background: var(--teal);
    color: #fff;
    border-color: var(--teal);
}
.btn--teal:hover {
    background: var(--teal-mid);
    border-color: var(--teal-mid);
    color: #fff;
    transform: translateY(-1px);
}
.btn--sm { padding: 7px 16px; font-size: 13px; }

/* ============================================
   6. HEADER
============================================ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,253,249,0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 68px;
}
.site-branding { flex-shrink: 0; }
.site-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--ink);
}
.logo-text-wrap { display: flex; flex-direction: column; gap: 1px; }
.logo-name {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.1;
}
.logo-name span { color: var(--rose); }
.logo-tagline { font-size: 11px; color: var(--muted); letter-spacing: 0.02em; }

/* Primary nav */
.primary-nav { display: flex; align-items: center; margin-left: auto; }
.nav-menu {
    display: flex;
    align-items: center;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
}
.nav-menu a {
    display: block;
    padding: 6px 13px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ink-mid);
    border-radius: var(--radius);
    transition: all var(--transition);
}
.nav-menu a:hover,
.nav-menu .current-menu-item a,
.nav-menu .current_page_item a {
    color: var(--rose);
    background: var(--rose-bg);
}
.nav-menu li { position: relative; }

/* Dropdown */
.nav-menu .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    z-index: 200;
    list-style: none;
    flex-direction: column;
    gap: 2px;
}
.nav-menu li:hover > .sub-menu { display: flex; }
.nav-menu .sub-menu a {
    display: block;
    padding: 8px 14px;
    font-size: 13px;
    border-radius: var(--radius);
    white-space: nowrap;
}

/* Mobile toggle */
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 38px;
    height: 38px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    cursor: pointer;
    padding: 8px;
}
.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--ink);
    border-radius: 2px;
    transition: all var(--transition);
}
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav-wrap {
    display: none;
    max-height: 0;
    overflow: hidden;
    padding: 0 24px;
    border-top: 1px solid var(--border);
    background: var(--bg-soft);
    transition: max-height 0.35s ease, padding 0.2s ease;
}
.mobile-nav-wrap.open {
    display: block;
    max-height: 500px;
    padding: 12px 24px 16px;
}
.mobile-nav-menu { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-nav-menu a {
    display: block;
    padding: 10px 14px;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink-mid);
    border-radius: var(--radius);
}
.mobile-nav-menu a:hover { background: var(--bg-mid); color: var(--rose); }

/* ============================================
   7. HERO / BANNER
============================================ */
.site-hero {
    background: linear-gradient(160deg, #f0f6ff 0%, #e4eeff 50%, #eaf7f2 100%);
    border-bottom: 1px solid var(--border);
    padding: 56px 0 52px;
    overflow: hidden;
    position: relative;
}
.site-hero::before {
    content: '';
    position: absolute;
    top: -80px;
    right: -80px;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(46,125,224,0.08) 0%, transparent 70%);
    pointer-events: none;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rose);
    background: var(--rose-bg);
    border: 1px solid rgba(46,125,224,0.2);
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
}
.topbar-dot {
    width: 7px; height: 7px;
    background: var(--rose);
    border-radius: 50%;
    animation: pulse 2s ease infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}
.hero-title {
    font-size: clamp(2rem, 4.5vw, 3rem);
    line-height: 1.15;
    color: var(--ink);
    margin-bottom: 18px;
}
.hero-title em { color: var(--rose); font-style: normal; }
.hero-desc {
    font-size: 17px;
    color: var(--ink-light);
    line-height: 1.7;
    margin-bottom: 28px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* Hero post card */
.hero-post-card {
    display: block;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition);
    text-decoration: none;
}
.hero-post-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--rose);
}
.hero-card-thumb {
    height: 180px;
    background: linear-gradient(135deg, var(--rose) 0%, var(--teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}
.hero-card-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.92);
    color: var(--rose);
    padding: 4px 10px;
    border-radius: 100px;
}
.hero-card-body { padding: 20px; }
.hero-card-body h3 {
    font-family: var(--font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 8px;
    line-height: 1.3;
}
.hero-card-body p {
    font-size: 13px;
    color: var(--ink-light);
    line-height: 1.6;
    margin-bottom: 14px;
}
.hero-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--muted);
    align-items: center;
}
.hero-card-read {
    margin-left: auto;
    color: var(--rose);
    font-weight: 700;
}

/* ============================================
   8. STATS / FEATURES BAR
============================================ */
.stats-bar {
    background: linear-gradient(135deg, #1a2b4a 0%, #1e3a6e 100%);
    padding: 28px 0;
}
.stats-inner {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.stat-block {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 20px;
    border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-block:last-child { border-right: none; }
.stat-num {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    color: #5bc8a8;
    line-height: 1;
}
.stat-lbl { font-size: 12px; color: rgba(255,255,255,0.55); letter-spacing: 0.02em; }

/* ============================================
   9. CONTENT LAYOUT
============================================ */
.site-content { padding: 48px 0 64px; }
.content-area {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
}

/* ============================================
   10. SECTION HEADINGS & FILTER PILLS
============================================ */
.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}
.section-title {
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--ink);
    position: relative;
    padding-left: 16px;
}
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background: linear-gradient(to bottom, var(--rose), var(--amber));
    border-radius: 2px;
}
.filter-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.03em;
    border-radius: 100px;
    background: var(--bg-mid);
    color: var(--ink-mid);
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-decoration: none;
    cursor: pointer;
}
.filter-pill:hover,
.filter-pill.active {
    background: var(--rose);
    color: #fff;
    border-color: var(--rose);
}

/* ============================================
   11. POST CARDS
============================================ */
.posts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.post-card {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition);
    text-decoration: none;
    color: inherit;
}
.post-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--rose);
}
.post-card-thumb {
    position: relative;
    padding-top: 56%;
    overflow: hidden;
    background: var(--bg-mid);
}
.post-card-thumb-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--rose) 0%, var(--amber) 100%);
    transition: transform var(--transition);
}
.post-card:hover .post-card-thumb-bg { transform: scale(1.04); }
.post-card-thumb-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2rem;
    opacity: 0.3;
    pointer-events: none;
}
.post-card-cat {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255,255,255,0.92);
    color: var(--rose);
    padding: 3px 10px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
}
.post-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.post-card-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 8px;
}
.post-card-excerpt {
    font-size: 13px;
    color: var(--ink-light);
    line-height: 1.6;
    flex: 1;
    margin-bottom: 14px;
}
.post-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: var(--muted);
    padding-top: 12px;
    border-top: 1px solid var(--border);
}
.post-card-author { font-weight: 600; }
.post-card-read { color: var(--rose); font-weight: 700; }

/* Affiliate badge on card */
.post-card-affiliate {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--amber);
    color: #fff;
    padding: 3px 8px;
    border-radius: 100px;
}

/* ============================================
   12. SIDEBAR WIDGETS
============================================ */
.widget-area.sidebar-column {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 84px;
    align-self: start;
}
.widget-area.sidebar-column::-webkit-scrollbar { display: none; }
.widget {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-sm);
}
.widget-title {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    position: relative;
}
.widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 36px;
    height: 2px;
    background: var(--rose);
}

/* Recent posts widget */
.widget-recent-posts { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.recent-post-item a {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    text-decoration: none;
    color: inherit;
}
.recent-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    overflow: hidden;
    background: var(--bg-mid);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: rgba(255,255,255,0.6);
}
.recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.recent-info { flex: 1; min-width: 0; }
.recent-title {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
    margin-bottom: 4px;
    transition: color var(--transition);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.recent-post-item a:hover .recent-title { color: var(--rose); }
.recent-date { font-size: 11px; color: var(--muted); }

/* Categories widget */
.widget-cats { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.widget-cat-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: var(--radius);
    transition: background var(--transition);
    text-decoration: none;
    color: var(--ink-mid);
    font-size: 13px;
    font-weight: 600;
}
.widget-cat-link:hover, .widget-cat-link.current { background: var(--bg-soft); color: var(--rose); }
.cat-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.cat-name { flex: 1; }
.cat-bar-wrap { width: 40px; height: 4px; background: var(--border); border-radius: 2px; overflow: hidden; }
.cat-bar { height: 100%; border-radius: 2px; }
.cat-count {
    font-size: 11px;
    font-weight: 700;
    color: var(--muted);
    background: var(--bg-mid);
    padding: 2px 8px;
    border-radius: 100px;
}

/* ============================================
   13. SINGLE POST
============================================ */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(to right, var(--rose), var(--amber));
    z-index: 999;
    width: 0%;
    transition: width 0.1s linear;
}
.main-column { min-width: 0; }

/* Post header */
.post-header {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.post-meta-top {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.post-cat-badge {
    display: inline-block;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: var(--rose-bg);
    color: var(--rose);
    border: 1px solid rgba(46,125,224,0.2);
    padding: 4px 12px;
    border-radius: 100px;
    text-decoration: none;
}
.post-meta-date, .post-meta-read {
    font-size: 13px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 5px;
}
.post-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    line-height: 1.2;
    margin-bottom: 16px;
}
.post-excerpt-lede {
    font-size: 18px;
    color: var(--ink-light);
    line-height: 1.65;
    font-style: italic;
    margin-bottom: 20px;
}
.post-author-bar {
    display: flex;
    align-items: center;
    gap: 12px;
}
.author-av {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--rose) 0%, var(--teal) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}
.author-nm { font-size: 14px; font-weight: 700; color: var(--ink); }
.author-rl { font-size: 12px; color: var(--muted); }

/* Post cover image */
.post-cover {
    width: 100%;
    height: 360px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 32px;
    position: relative;
    background: linear-gradient(135deg, var(--rose) 0%, var(--teal) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}
.post-cover-symbol { font-size: 64px; opacity: 0.35; }

/* Post content */
.entry-content {
    font-size: 16px;
    line-height: 1.8;
    color: var(--ink-mid);
}
.entry-content h2 {
    font-size: 1.6rem;
    color: var(--ink);
    margin: 2.2em 0 0.7em;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}
.entry-content h3 {
    font-size: 1.25rem;
    color: var(--ink);
    margin: 1.8em 0 0.6em;
}
.entry-content h4 { font-size: 1.05rem; color: var(--ink); margin: 1.5em 0 0.5em; }
.entry-content p { margin-bottom: 1.4em; }
.entry-content ul, .entry-content ol {
    padding-left: 1.5em;
    margin-bottom: 1.4em;
}
.entry-content li { margin-bottom: 0.5em; }
.entry-content a { color: var(--rose); text-decoration: underline; text-underline-offset: 3px; }
.entry-content a:hover { color: var(--rose-mid); }
.entry-content img { border-radius: var(--radius); margin: 1.5em auto; }
.entry-content blockquote {
    border-left: 4px solid var(--rose);
    padding: 16px 20px;
    margin: 1.8em 0;
    background: var(--rose-bg);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
    color: var(--ink-mid);
}
.entry-content code {
    font-family: var(--font-mono);
    font-size: 0.875em;
    background: var(--bg-mid);
    padding: 2px 6px;
    border-radius: 4px;
    color: var(--rose);
}
.entry-content pre {
    background: var(--ink);
    color: rgba(255,255,255,0.85);
    padding: 20px;
    border-radius: var(--radius);
    overflow-x: auto;
    margin: 1.5em 0;
    font-family: var(--font-mono);
    font-size: 14px;
}
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5em 0;
    font-size: 14px;
}
.entry-content th {
    background: var(--ink);
    color: #fff;
    padding: 10px 14px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.entry-content td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
}
.entry-content tr:nth-child(even) td { background: var(--bg-soft); }

/* Post nav */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 36px 0;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}
.post-nav-item {
    display: block;
    padding: 16px;
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition);
}
.post-nav-item:hover { background: var(--rose-bg); border-color: var(--rose); }
.post-nav-dir { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.post-nav-title { font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }

/* Related posts */
.related-posts { margin-top: 40px; }
.related-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border);
}

/* Space between related posts and comments */
.comments-section-wrap {
    margin-top: 56px;
    padding-top: 48px;
    border-top: 2px solid var(--border);
}

/* ============================================
   14. PRODUCT BOX (Affiliate Top Picks)
============================================ */
.product-box {
    background: linear-gradient(145deg, #1a2b4a 0%, #1e3a6e 100%);
    border-radius: var(--radius-lg);
    padding: 36px;
    margin: 48px 0;
    position: relative;
    overflow: hidden;
}
.product-box::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(0,168,120,0.2) 0%, transparent 70%);
    pointer-events: none;
}
.product-box h2 {
    color: #fff;
    font-size: 1.5rem;
    margin-bottom: 8px;
}
.product-box > p {
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    margin-bottom: 24px;
}
.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-bottom: 24px;
}
.product-item {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius);
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all var(--transition);
}
.product-item:hover { background: rgba(255,255,255,0.12); border-color: rgba(0,168,120,0.5); }
.prd-icon { font-size: 22px; line-height: 1; }
.prd-name { font-size: 13px; font-weight: 700; color: rgba(255,255,255,0.9); }
.prd-price { font-size: 12px; color: #5bc8a8; font-weight: 700; }

/* Sidebar affiliate box CTA button */
.sidebar-cta-btn {
    display: block;
    width: 100%;
    padding: 13px 16px;
    background: var(--teal);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    box-shadow: 0 4px 14px rgba(0,168,120,0.35);
    transition: background var(--transition), box-shadow var(--transition);
}
.sidebar-cta-btn:hover {
    background: var(--teal-mid);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0,168,120,0.45);
}

/* ============================================
   16. FOOTER
============================================ */
.site-footer {
    background: linear-gradient(160deg, #1a2b4a 0%, #142240 60%, #0e1a33 100%);
    color: rgba(255,255,255,0.65);
    padding-top: 60px;
    border-top: 3px solid var(--teal);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 40px;
    padding-bottom: 44px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .site-logo { margin-bottom: 16px; }
.footer-brand .logo-name { color: #fff; }
.footer-desc { font-size: 13px; color: rgba(255,255,255,0.5); line-height: 1.7; }
.footer-col-title {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.9);
    margin-bottom: 16px;
    letter-spacing: 0.03em;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-links li a {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-decoration: none;
    transition: color var(--transition);
}
.footer-links a:hover, .footer-links li a:hover { color: #5bc8a8; }
.footer-email-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #5bc8a8;
    background: rgba(0,168,120,0.12);
    border: 1px solid rgba(0,168,120,0.3);
    padding: 10px 16px;
    border-radius: var(--radius);
    text-decoration: none;
    transition: all var(--transition);
}
.footer-email-link:hover {
    background: rgba(0,168,120,0.22);
    color: #fff;
}
.footer-email-icon { font-size: 16px; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    font-size: 12px;
    color: rgba(255,255,255,0.3);
    flex-wrap: wrap;
    gap: 12px;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: rgba(255,255,255,0.35); text-decoration: none; transition: color var(--transition); }
.footer-bottom-links a:hover { color: #5bc8a8; }

/* ============================================
   17. PAGE HEADER (Archive / Category)
============================================ */
.page-header {
    background: linear-gradient(160deg, var(--bg-soft) 0%, var(--bg-mid) 100%);
    border-bottom: 1px solid var(--border);
    padding: 40px 0 36px;
}
.page-header-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 10px;
}
.page-header h1 { font-size: 2rem; margin-bottom: 10px; }
.page-header p { font-size: 15px; color: var(--ink-light); max-width: 520px; }

/* ============================================
   18. BREADCRUMB
============================================ */
.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 20px;
}
.breadcrumb a { color: var(--rose); text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb-sep { color: var(--border-mid); font-size: 14px; }

/* ============================================
   19. ANIMATIONS
============================================ */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.55s ease forwards;
}
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
@keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================
   20. RESPONSIVE
============================================ */
@media (max-width: 1024px) {
    .content-area { grid-template-columns: 1fr; }
    .widget-area.sidebar-column {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        position: static; /* disable sticky on tablet */
        max-height: none;
        overflow-y: visible;
    }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-grid { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .primary-nav { display: none; }
    .menu-toggle { display: flex; }
    .posts-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .widget-area.sidebar-column { grid-template-columns: 1fr; }
    .stats-inner { grid-template-columns: 1fr 1fr; }
    .product-grid { grid-template-columns: 1fr; }
    .post-nav { grid-template-columns: 1fr; }

}
@media (max-width: 480px) {
    .stats-inner { grid-template-columns: 1fr; }
    .stats-bar { padding: 20px 0; }
    .stat-block { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 12px 0; }
    .stat-block:last-child { border-bottom: none; }
    .hero-cta { flex-direction: column; }
    .section-header { flex-direction: column; align-items: flex-start; }
}

/* ============================================
   21. WORDPRESS CLASSES
============================================ */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { margin: 1.5em auto; text-align: center; }
.alignwide { margin-left: -40px; margin-right: -40px; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 12px; color: var(--muted); text-align: center; margin-top: 6px; }
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.gallery img { width: 100%; height: auto; border-radius: var(--radius); }

/* ============================================
   GUTENBERG BLOCK BUTTONS — Override to match theme
   Fixes the default dark/rounded block editor button style.
============================================ */

/* Base block button — matches .btn style */
.wp-block-button__link,
.wp-block-button .wp-block-button__link {
    font-family: var(--font-body) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    padding: 10px 22px !important;
    border-radius: var(--radius) !important;
    border: 2px solid transparent !important;
    cursor: pointer !important;
    transition: all var(--transition) !important;
    text-decoration: none !important;
    line-height: 1.5 !important;
    display: inline-flex !important;
    align-items: center !important;
}

/* Default (filled) block button — matches .btn--primary (sky blue) */
.wp-block-button:not(.is-style-outline) .wp-block-button__link {
    background-color: var(--rose) !important;
    color: #fff !important;
    border-color: var(--rose) !important;
    box-shadow: none !important;
}
.wp-block-button:not(.is-style-outline) .wp-block-button__link:hover {
    background-color: var(--rose-mid) !important;
    border-color: var(--rose-mid) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(46,125,224,0.3) !important;
}

/* Outline style block button — matches .btn--outline */
.wp-block-button.is-style-outline .wp-block-button__link {
    background-color: transparent !important;
    color: var(--rose) !important;
    border-color: var(--border-mid) !important;
}
.wp-block-button.is-style-outline .wp-block-button__link:hover {
    background-color: var(--rose-bg) !important;
    border-color: var(--rose) !important;
    color: var(--rose) !important;
}

/* "Fill" style — mint green CTA (matches sidebar/top-picks buy button) */
.wp-block-button.is-style-fill .wp-block-button__link {
    background-color: var(--teal) !important;
    color: #fff !important;
    border-color: var(--teal) !important;
}
.wp-block-button.is-style-fill .wp-block-button__link:hover {
    background-color: var(--teal-mid) !important;
    border-color: var(--teal-mid) !important;
    color: #fff !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 6px 20px rgba(0,168,120,0.3) !important;
}

/* Remove Gutenberg's weird border-radius on button wrapper */
.wp-block-button { border-radius: 0 !important; }

/* Fix button group spacing */
.wp-block-buttons {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
}
.wp-block-buttons .wp-block-button { margin: 0 !important; }

/* Pagination */
.pagination .nav-links,
.posts-navigation .nav-links {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    font-size: 14px;
    font-weight: 700;
    border-radius: var(--radius);
    background: var(--bg-soft);
    border: 1px solid var(--border);
    color: var(--ink-mid);
    text-decoration: none;
    transition: all var(--transition);
}
.page-numbers:hover { background: var(--rose-bg); border-color: var(--rose); color: var(--rose); }
.page-numbers.current { background: var(--rose); border-color: var(--rose); color: #fff; }
.page-numbers.dots { background: transparent; border-color: transparent; }

/* Hide the "Posts pagination" screen-reader heading WordPress outputs */
.navigation.pagination .nav-links::before,
.navigation h2.screen-reader-text { display: none !important; }
.navigation.pagination { margin-top: 36px; display: flex; justify-content: center; }

/* ============================================
   22. COMMENTS
============================================ */
.comments-area { margin-top: 0; padding-top: 0; }
.comments-title {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 24px;
}
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.comment-body {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
}
.comment-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.comment-author-av {
    width: 36px; height: 36px;
    background: var(--rose-bg);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700; color: var(--rose);
    flex-shrink: 0;
}
.comment-author-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.comment-date { font-size: 12px; color: var(--muted); }
.comment-content { font-size: 14px; color: var(--ink-mid); line-height: 1.7; }
.comment-reply-link {
    display: inline-block;
    margin-top: 8px;
    font-size: 12px;
    font-weight: 700;
    color: var(--rose);
    text-decoration: none;
}
.comment-form label { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 6px; }
.comment-form input,
.comment-form textarea {
    width: 100%;
    padding: 10px 14px;
    font-family: var(--font-body);
    font-size: 14px;
    background: var(--bg-soft);
    border: 1px solid var(--border-mid);
    border-radius: var(--radius);
    color: var(--ink);
    transition: border-color var(--transition);
    margin-bottom: 16px;
}
.comment-form input:focus,
.comment-form textarea:focus { outline: none; border-color: var(--rose); }
.comment-form textarea { min-height: 120px; resize: vertical; }
#submit {
    padding: 11px 28px;
    background: var(--rose);
    color: #fff;
    border: none;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background var(--transition);
}
#submit:hover { background: var(--rose-mid); }

/* ============================================
   23. ACCESSIBILITY
============================================ */
.skip-link {
    position: absolute;
    top: -9999px;
    left: -9999px;
    z-index: 999;
    background: var(--rose);
    color: #fff;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
}
.skip-link:focus { top: 12px; left: 12px; }
a:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 3px;
    border-radius: 2px;
}
button:focus-visible {
    outline: 2px solid var(--rose);
    outline-offset: 3px;
}



/* ============================================
   TOP PICKS PAGE — page-top-picks.php styles
   Loaded conditionally (is_page('top-picks'))
============================================ */
.picks-hero {
    background: linear-gradient(160deg, #f0f6ff 0%, #e4eeff 50%, #eaf7f2 100%);
    border-bottom: 1px solid var(--border);
    padding: 48px 0 44px;
    text-align: center;
}
.picks-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--teal);
    background: var(--teal-bg);
    border: 1px solid rgba(0,168,120,0.25);
    padding: 5px 16px;
    border-radius: 100px;
    margin-bottom: 16px;
}
.picks-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); color: var(--ink); margin-bottom: 12px; }
.picks-hero h1 span { color: var(--rose); }
.picks-hero p { font-size: 16px; color: var(--ink-light); max-width: 540px; margin: 0 auto 20px; line-height: 1.7; }
.picks-meta { display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.picks-meta span { display: flex; align-items: center; gap: 5px; }
.picks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 36px; }
.product-card { background: var(--bg); border: 2px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; transition: all var(--transition); position: relative; }
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--rose); }
.product-card.featured { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal), var(--shadow-md); }
.product-card.featured:hover { border-color: var(--teal-mid); }
.card-badge { position: absolute; top: 14px; left: 14px; font-size: 10px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; z-index: 2; }
.badge-best    { background: #fbbf24; color: #78350f; }
.badge-budget  { background: var(--teal); color: #fff; }
.badge-new     { background: var(--rose); color: #fff; }
.badge-editor  { background: #7c3aed; color: #fff; }
.badge-portable{ background: #0ea5e9; color: #fff; }
.badge-eco     { background: #16a34a; color: #fff; }
.card-image { height: 180px; background: linear-gradient(135deg, var(--bg-mid) 0%, var(--bg-soft) 100%); display: flex; align-items: center; justify-content: center; font-size: 64px; position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.card-image img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card-category { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--rose); margin-bottom: 6px; }
.card-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); line-height: 1.3; margin-bottom: 8px; }
.card-desc { font-size: 13px; color: var(--ink-light); line-height: 1.65; margin-bottom: 14px; flex: 1; }
.card-stars { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.stars { color: #fbbf24; font-size: 14px; letter-spacing: 1px; }
.star-count { font-size: 12px; font-weight: 700; color: var(--ink-mid); }
.review-count { font-size: 11px; color: var(--muted); }
.card-features { list-style: none; display: flex; flex-direction: column; gap: 5px; margin-bottom: 16px; padding: 12px 14px; background: var(--bg-soft); border-radius: var(--radius); border: 1px solid var(--border); }
.card-features li { font-size: 12px; color: var(--ink-mid); display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; }
.card-features li::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.card-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--border); margin-top: auto; }
.card-price { display: flex; flex-direction: column; gap: 2px; }
.price-label { font-size: 10px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.price-value { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--ink); line-height: 1; }
.price-value span { font-size: 0.85rem; color: var(--ink-light); font-weight: 400; }
.card-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 18px; background: var(--teal); color: #fff; font-size: 13px; font-weight: 700; border-radius: var(--radius); text-decoration: none; transition: all var(--transition); white-space: nowrap; flex-shrink: 0; }
.card-btn:hover { background: var(--teal-mid); color: #fff; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,168,120,0.35); }
.picks-section-title { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: var(--ink); margin: 48px 0 4px; padding-left: 16px; position: relative; }
.picks-section-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; background: linear-gradient(to bottom, var(--rose), var(--teal)); border-radius: 2px; }
.picks-section-sub { font-size: 14px; color: var(--ink-light); margin-bottom: 8px; padding-left: 16px; }
.picks-disclaimer { background: var(--bg-soft); border: 1px solid var(--border); border-left: 4px solid var(--amber); border-radius: var(--radius); padding: 14px 18px; font-size: 12px; color: var(--ink-light); margin: 40px 0 0; line-height: 1.7; }
@media (max-width: 1024px) { .picks-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
    .picks-grid { grid-template-columns: 1fr; }
    .card-footer { flex-direction: column; align-items: flex-start; }
    .card-btn { width: 100%; justify-content: center; }
}
