/*
Theme Name: Stack Verdict
Theme URI: https://stackverdict.com
Author: David Mungathia
Author URI: https://www.linkedin.com/in/davidmmk/
Description: A standalone theme for StackVerdict — honest, no-fluff business software reviews.
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: stackverdict
Tags: blog, custom-header, custom-menu, featured-images, post-formats, threaded-comments
*/

/* =============================================================================
   ORIGINAL STACK VERDICT STYLES (preserved from child theme)
   ============================================================================= */

/* -------------------------------------------------------------------------
   CSS CUSTOM PROPERTIES (Design Tokens)
   ------------------------------------------------------------------------- */
:root {
    --sv-bg: #0d0d0d;
    --sv-surface: #141414;
    --sv-surface-2: #1a1a1a;
    --sv-surface-3: #222222;
    --sv-border: #2a2a2a;
    --sv-border-light: #333333;
    --sv-text-primary: #f0f0f0;
    --sv-text-secondary: #a0a0a0;
    --sv-text-muted: #606060;
    --sv-accent: #e8ff47;
    --sv-accent-hover: #d4eb30;
    --sv-accent-dark: #b8cc20;
    --sv-accent-rgb: 232, 255, 71;
    --sv-white: #ffffff;
    --sv-black: #000000;
    --sv-danger: #ef4444;
    --sv-success: #22c55e;
    --sv-warning: #f59e0b;
    --sv-radius-sm: 6px;
    --sv-radius-md: 10px;
    --sv-radius-lg: 16px;
    --sv-radius-xl: 24px;
    --sv-radius-full: 9999px;
    --sv-shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --sv-shadow-md: 0 4px 6px rgba(0,0,0,0.4), 0 2px 4px rgba(0,0,0,0.3);
    --sv-shadow-lg: 0 10px 15px rgba(0,0,0,0.5), 0 4px 6px rgba(0,0,0,0.4);
    --sv-shadow-glow: 0 0 20px rgba(232, 255, 71, 0.15);
    --sv-transition: 0.2s ease;
    --sv-transition-slow: 0.4s ease;
    --sv-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --sv-container: 1200px;
    --sv-container-narrow: 800px;
    --header-height: 68px;
}

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

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

body {
    font-family: var(--sv-font);
    background-color: var(--sv-bg);
    color: var(--sv-text-primary);
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

body.mobile-menu-open { overflow: hidden; }

img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--sv-transition); }
a:hover { color: var(--sv-accent); }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, textarea, select { font-family: inherit; }

/* -------------------------------------------------------------------------
   LAYOUT UTILITIES
   ------------------------------------------------------------------------- */
.container {
    max-width: var(--sv-container);
    margin-inline: auto;
    padding-inline: 24px;
}

.container-narrow {
    max-width: var(--sv-container-narrow);
    margin-inline: auto;
    padding-inline: 24px;
}

/* -------------------------------------------------------------------------
   TYPOGRAPHY
   ------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.025em;
    color: var(--sv-text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.5rem); }
h4 { font-size: 1.1rem; }
h5 { font-size: 0.95rem; }

p { color: var(--sv-text-secondary); line-height: 1.75; margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

/* -------------------------------------------------------------------------
   BUTTONS
   ------------------------------------------------------------------------- */
.button, button.button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--sv-radius-full);
    font-weight: 600;
    font-size: 0.875rem;
    transition: all var(--sv-transition);
    border: none;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
}

.btn-get-tool {
    background-color: var(--sv-accent);
    color: var(--sv-black);
    font-weight: 700;
}
.btn-get-tool:hover {
    background-color: var(--sv-accent-hover);
    color: var(--sv-black);
    transform: translateY(-1px);
    box-shadow: var(--sv-shadow-glow);
}

.btn-get-tool-small { padding: 6px 14px; font-size: 0.8rem; }

.header-cta {
    background-color: var(--sv-accent);
    color: var(--sv-black);
    font-weight: 700;
    padding: 9px 20px;
    font-size: 0.85rem;
}
.header-cta:hover {
    background-color: var(--sv-accent-hover);
    color: var(--sv-black);
}

.btn-consulting {
    background-color: var(--sv-accent);
    color: var(--sv-black);
    font-weight: 700;
    padding: 14px 28px;
    font-size: 0.95rem;
}
.btn-consulting:hover {
    background-color: var(--sv-accent-hover);
    color: var(--sv-black);
    transform: translateY(-2px);
    box-shadow: var(--sv-shadow-glow);
}

/* -------------------------------------------------------------------------
   SECTION TITLES
   ------------------------------------------------------------------------- */
.section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--sv-text-primary);
    text-align: center;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sv-accent);
    background: rgba(var(--sv-accent-rgb), 0.08);
    border: 1px solid rgba(var(--sv-accent-rgb), 0.2);
    padding: 5px 12px;
    border-radius: var(--sv-radius-full);
    margin-bottom: 12px;
}

.section-subtitle {
    color: var(--sv-text-secondary);
    font-size: 1.05rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.65;
}

.section-header {
    text-align: center;
    margin-bottom: 48px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* -------------------------------------------------------------------------
   HEADER
   ------------------------------------------------------------------------- */
.site-header-v3 {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(13, 13, 13, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sv-border);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    width: 100%;
}

.site-branding a { display: flex; align-items: center; }
.site-logo { height: 32px; width: auto; }

/* Desktop Nav */
.desktop-nav { display: flex; align-items: center; }
.header-menu { display: flex; align-items: center; gap: 4px; }
.header-menu > li { position: relative; }
.header-menu > li > a {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sv-text-secondary);
    border-radius: var(--sv-radius-sm);
    transition: all var(--sv-transition);
}
.header-menu > li > a:hover,
.header-menu > li:hover > a { color: var(--sv-text-primary); background: var(--sv-surface-2); }

/* Mega Menu */
.mega-menu-panel {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: 520px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-lg);
    box-shadow: var(--sv-shadow-lg);
    padding: 24px;
    z-index: 200;
}
.mega-menu-parent:hover .mega-menu-panel { display: block; }
.mega-menu-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mega-menu-categories h4,
.mega-menu-featured h5 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sv-text-muted);
    margin-bottom: 12px;
    font-weight: 700;
}
.mega-menu-categories ul { display: flex; flex-direction: column; gap: 4px; }
.mega-menu-categories ul li a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--sv-radius-sm);
    font-size: 0.85rem;
    color: var(--sv-text-secondary);
    transition: all var(--sv-transition);
}
.mega-menu-categories ul li a:hover { background: var(--sv-surface-2); color: var(--sv-text-primary); }
.mega-menu-categories .icon {
    width: 28px; height: 28px;
    background: var(--sv-surface-2);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    color: var(--sv-accent);
}
.mega-menu-featured { border-left: 1px solid var(--sv-border); padding-left: 24px; }
.mega-menu-featured p { font-size: 0.85rem; color: var(--sv-text-secondary); margin-bottom: 12px; }
.mega-menu-featured .featured-link {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--sv-accent);
}
.mega-menu-featured .featured-link:hover { text-decoration: underline; }

.header-actions { display: flex; align-items: center; gap: 12px; }

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    color: var(--sv-text-primary);
    padding: 6px;
    border-radius: var(--sv-radius-sm);
    transition: background var(--sv-transition);
}
.mobile-menu-toggle:hover { background: var(--sv-surface-2); }
.mobile-menu-toggle .icon-close { display: none; }
body.mobile-menu-open .mobile-menu-toggle .icon-menu { display: none; }
body.mobile-menu-open .mobile-menu-toggle .icon-close { display: block; }

/* Mobile panel */
.mobile-menu-panel {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0; right: 0; bottom: 0;
    background: var(--sv-surface);
    z-index: 999;
    padding: 24px;
    overflow-y: auto;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--sv-border);
}
body.mobile-menu-open .mobile-menu-panel { display: flex; }
.mobile-header-menu { display: flex; flex-direction: column; gap: 4px; }
.mobile-header-menu li a {
    display: block;
    padding: 12px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--sv-text-secondary);
    border-radius: var(--sv-radius-md);
    transition: all var(--sv-transition);
}
.mobile-header-menu li a:hover { background: var(--sv-surface-2); color: var(--sv-text-primary); }
.mobile-header-menu .menu-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sv-text-muted);
    padding: 8px 16px 4px;
    font-weight: 700;
}
.mobile-header-menu .menu-divider { height: 1px; background: var(--sv-border); margin: 8px 0; }
.mobile-menu-cta {
    background: var(--sv-accent);
    color: var(--sv-black);
    text-align: center;
    padding: 14px;
    border-radius: var(--sv-radius-full);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 8px;
}
.mobile-menu-cta:hover { background: var(--sv-accent-hover); color: var(--sv-black); }

/* -------------------------------------------------------------------------
   HERO SECTION
   ------------------------------------------------------------------------- */
.hero-section {
    padding: 80px 0 60px;
    background: var(--sv-bg);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.hero-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sv-accent);
    background: rgba(var(--sv-accent-rgb), 0.06);
    border: 1px solid rgba(var(--sv-accent-rgb), 0.2);
    padding: 6px 14px;
    border-radius: var(--sv-radius-full);
    margin-bottom: 20px;
}
.badge-dot {
    width: 6px; height: 6px;
    background: var(--sv-accent);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-text h1 { color: var(--sv-text-primary); margin-bottom: 16px; }
.hero-accent { color: var(--sv-accent); }
.subtitle { font-size: 1.1rem; color: var(--sv-text-secondary); margin-bottom: 28px; max-width: 480px; }

/* Hero Search */
.hero-search-form {
    display: flex;
    align-items: center;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-full);
    padding: 6px 6px 6px 20px;
    max-width: 440px;
    margin-bottom: 32px;
    transition: border-color var(--sv-transition);
}
.hero-search-form:focus-within { border-color: var(--sv-accent); }
.hero-search-form .search-field {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 0.9rem;
    color: var(--sv-text-primary);
}
.hero-search-form .search-field::placeholder { color: var(--sv-text-muted); }
.hero-search-form .search-submit {
    background: var(--sv-accent);
    color: var(--sv-black);
    border: none;
    border-radius: var(--sv-radius-full);
    width: 38px; height: 38px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: all var(--sv-transition);
}
.hero-search-form .search-submit:hover { background: var(--sv-accent-hover); transform: scale(1.05); }

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; }
.stat-number { font-size: 1.5rem; font-weight: 800; color: var(--sv-text-primary); letter-spacing: -0.04em; }
.stat-label { font-size: 0.75rem; color: var(--sv-text-muted); font-weight: 500; }
.hero-stat-divider { width: 1px; height: 36px; background: var(--sv-border); }

/* Logo Ticker */
.logo-ticker-section { display: flex; align-items: center; gap: 16px; }
.logo-ticker-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sv-text-muted); font-weight: 700; white-space: nowrap; }
.logo-ticker-wrap { overflow: hidden; flex: 1; mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent); }
.logo-ticker { display: flex; gap: 16px; }
.logo-ticker:hover { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.logo-item { width: 44px; height: 44px; background: var(--sv-surface); border: 1px solid var(--sv-border); border-radius: var(--sv-radius-md); display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; padding: 6px; }
.logo-item img { width: 100%; height: 100%; object-fit: contain; }

/* Hero Visual */
.software-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.software-card {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-lg);
    padding: 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    transition: all var(--sv-transition);
    text-decoration: none;
}
.software-card:hover { border-color: var(--sv-accent); transform: translateY(-3px); box-shadow: var(--sv-shadow-glow); color: inherit; }
.card-icon { width: 44px; height: 44px; border-radius: var(--sv-radius-md); overflow: hidden; background: var(--sv-surface-2); padding: 6px; }
.card-icon img { width: 100%; height: 100%; object-fit: contain; }
.card-name { font-size: 0.85rem; font-weight: 700; color: var(--sv-text-primary); }
.card-category { font-size: 0.72rem; color: var(--sv-text-muted); }
.card-rating { display: flex; align-items: center; gap: 4px; margin-top: 4px; }
.stars-wrapper { position: relative; display: inline-block; font-size: 0.75rem; }
.stars-background { color: var(--sv-border-light); }
.stars-foreground { position: absolute; top: 0; left: 0; overflow: hidden; color: #f59e0b; white-space: nowrap; }
.rating-number { font-size: 0.75rem; font-weight: 700; color: var(--sv-text-secondary); }

/* -------------------------------------------------------------------------
   FEATURED REVIEWS
   ------------------------------------------------------------------------- */
.featured-reviews-section { padding: 80px 0; }
.featured-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.featured-card {
    position: relative;
    border-radius: var(--sv-radius-xl);
    padding: 32px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    min-height: 260px;
    transition: transform var(--sv-transition);
    text-decoration: none;
    color: var(--sv-white);
}
.featured-card:hover { transform: translateY(-4px); color: var(--sv-white); }
.featured-card-bg-icon {
    position: absolute;
    right: -10px; bottom: -10px;
    width: 130px; height: 130px;
    opacity: 0.08;
    pointer-events: none;
}
.featured-card-bg-icon img { width: 100%; height: 100%; object-fit: contain; }
.featured-card-content { position: relative; z-index: 1; }
.card-eyebrow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; opacity: 0.7; display: block; margin-bottom: 8px; }
.featured-card h3 { font-size: 1.15rem; color: var(--sv-white); margin-bottom: 10px; }
.featured-card p { font-size: 0.85rem; opacity: 0.75; color: var(--sv-white); margin-bottom: 16px; }
.card-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.82rem; font-weight: 700; color: var(--sv-white); opacity: 0.9; }
.card-link:hover { opacity: 1; color: var(--sv-white); }

/* -------------------------------------------------------------------------
   LATEST REVIEWS
   ------------------------------------------------------------------------- */
.latest-reviews-section { padding: 80px 0; border-top: 1px solid var(--sv-border); }
.section-header.flex { flex-direction: row; justify-content: space-between; align-items: flex-end; text-align: left; margin-bottom: 32px; }
.view-all-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--sv-accent); white-space: nowrap; }
.view-all-link:hover { text-decoration: underline; color: var(--sv-accent); }
.latest-reviews-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.latest-card-wrapper { display: flex; flex-direction: column; gap: 0; }
.latest-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 18px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-lg) var(--sv-radius-lg) 0 0;
    flex: 1;
    transition: all var(--sv-transition);
    text-decoration: none;
}
.latest-card:hover { border-color: rgba(var(--sv-accent-rgb), 0.4); color: inherit; }
.latest-card-logo-wrapper { width: 48px; height: 48px; border-radius: var(--sv-radius-md); overflow: hidden; background: var(--sv-surface-2); padding: 6px; flex-shrink: 0; }
.latest-card-logo-wrapper img { width: 100%; height: 100%; object-fit: contain; }
.latest-card-content h3 { font-size: 0.9rem; margin-bottom: 6px; }
.latest-card-category-tag { font-size: 0.75rem; color: var(--sv-accent); font-weight: 600; margin-bottom: 6px; }
.latest-card .rating { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; }
.latest-card .rating .stars { color: #f59e0b; }
.latest-card-action {
    padding: 10px 18px;
    background: var(--sv-surface-2);
    border: 1px solid var(--sv-border);
    border-top: none;
    border-radius: 0 0 var(--sv-radius-lg) var(--sv-radius-lg);
}

/* -------------------------------------------------------------------------
   CATEGORIES SECTION
   ------------------------------------------------------------------------- */
.categories-section { padding: 80px 0; border-top: 1px solid var(--sv-border); }
.categories-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.category-card {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-lg);
    padding: 20px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    text-align: center;
    transition: all var(--sv-transition);
    text-decoration: none;
}
.category-card:hover { border-color: var(--sv-accent); transform: translateY(-3px); color: inherit; }
.category-icon {
    width: 52px; height: 52px;
    background: var(--sv-surface-2);
    border-radius: var(--sv-radius-md);
    display: flex; align-items: center; justify-content: center;
    color: var(--sv-accent);
    transition: background var(--sv-transition);
}
.category-card:hover .category-icon { background: rgba(var(--sv-accent-rgb), 0.1); }
.category-card h3 { font-size: 0.8rem; font-weight: 600; color: var(--sv-text-secondary); }
.category-card:hover h3 { color: var(--sv-text-primary); }

/* -------------------------------------------------------------------------
   DUAL SECTION (Consulting + Hot Picks)
   ------------------------------------------------------------------------- */
.dual-section { padding: 80px 0; border-top: 1px solid var(--sv-border); }
.dual-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.consulting-panel {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-xl);
    padding: 40px;
}
.consulting-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sv-accent);
    background: rgba(var(--sv-accent-rgb), 0.06);
    border: 1px solid rgba(var(--sv-accent-rgb), 0.2);
    padding: 5px 12px;
    border-radius: var(--sv-radius-full);
    margin-bottom: 16px;
}
.consulting-panel .section-title.left-align { text-align: left; margin-bottom: 12px; font-size: 1.5rem; }
.consulting-intro { font-size: 0.9rem; color: var(--sv-text-secondary); margin-bottom: 24px; }
.consulting-benefits { display: flex; flex-direction: column; gap: 14px; margin-bottom: 28px; }
.benefit-item { display: flex; align-items: flex-start; gap: 12px; }
.benefit-icon { width: 22px; height: 22px; background: rgba(var(--sv-accent-rgb), 0.1); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: var(--sv-accent); margin-top: 2px; }
.benefit-text { display: flex; flex-direction: column; gap: 2px; }
.benefit-text strong { font-size: 0.875rem; color: var(--sv-text-primary); }
.benefit-text span { font-size: 0.8rem; color: var(--sv-text-muted); }
.consulting-cta { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.consulting-note { font-size: 0.78rem; color: var(--sv-text-muted); }

.trending-panel { display: flex; flex-direction: column; }
.trending-grid { display: flex; flex-direction: column; gap: 8px; }
.trending-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    transition: all var(--sv-transition);
}
.trending-card:hover { border-color: rgba(var(--sv-accent-rgb), 0.3); }
.trending-card-link { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: 1; min-width: 0; }
.trending-logo { width: 40px; height: 40px; background: var(--sv-surface-2); border-radius: var(--sv-radius-sm); overflow: hidden; flex-shrink: 0; padding: 4px; }
.trending-logo img { width: 100%; height: 100%; object-fit: contain; }
.trending-info { min-width: 0; }
.trending-info h4 { font-size: 0.875rem; color: var(--sv-text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 2px; }
.trending-rating { display: flex; align-items: center; gap: 4px; font-size: 0.75rem; }
.trending-rating .stars { color: #f59e0b; font-size: 0.7rem; }
.trending-rating .rating-num { color: var(--sv-text-muted); }

/* -------------------------------------------------------------------------
   FOOTER
   ------------------------------------------------------------------------- */
.site-footer-v4 {
    border-top: 1px solid var(--sv-border);
    padding: 40px 0 24px;
    background: var(--sv-surface);
    margin-top: 0;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 32px;
}

.footer-logo { height: 26px; width: auto; }
.footer-tagline { font-size: 0.8rem; color: var(--sv-text-muted); margin-top: 10px; }

.footer-nav-wrapper { display: flex; align-items: center; gap: 32px; }
.footer-nav { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 0.85rem; color: var(--sv-text-secondary); transition: color var(--sv-transition); }
.footer-nav a:hover { color: var(--sv-text-primary); }
.footer-social { display: flex; align-items: center; gap: 12px; }
.footer-social a { color: var(--sv-text-muted); transition: color var(--sv-transition); display: flex; }
.footer-social a:hover { color: var(--sv-accent); }

.footer-bottom { border-top: 1px solid var(--sv-border); padding-top: 20px; text-align: center; }
.footer-bottom p { font-size: 0.8rem; color: var(--sv-text-muted); }

/* -------------------------------------------------------------------------
   ARCHIVE / BLOG
   ------------------------------------------------------------------------- */
.sv-archive-header {
    padding: 60px 0 40px;
    border-bottom: 1px solid var(--sv-border);
    margin-bottom: 48px;
}
.sv-archive-header h1 { text-align: center; }
.archive-description { text-align: center; color: var(--sv-text-secondary); margin-top: 8px; }
.sv-archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding: 48px 0;
}
.blog-card {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-lg);
    padding: 24px;
    transition: all var(--sv-transition);
}
.blog-card:hover { border-color: rgba(var(--sv-accent-rgb), 0.3); transform: translateY(-2px); }
.post-meta-categories { margin-bottom: 8px; }
.post-meta-categories a, .card-categories a, .card-category {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sv-accent);
    background: rgba(var(--sv-accent-rgb), 0.08);
    border: 1px solid rgba(var(--sv-accent-rgb), 0.2);
    padding: 2px 8px;
    border-radius: var(--sv-radius-full);
    text-decoration: none;
    display: inline-block;
    margin-right: 4px;
    margin-bottom: 4px;
}
.card-title a { color: var(--sv-text-primary); text-decoration: none; }
.card-title a:hover { color: var(--sv-accent); }
.card-title { font-size: 1.1rem; margin-bottom: 8px; }
.card-date { font-size: 0.78rem; color: var(--sv-text-muted); margin-bottom: 10px; }
.card-excerpt { font-size: 0.875rem; color: var(--sv-text-secondary); margin-bottom: 14px; }
.read-more-link { font-size: 0.85rem; font-weight: 600; color: var(--sv-accent); text-decoration: none; }
.read-more-link:hover { text-decoration: underline; }
.post-actions { margin-top: 12px; }

/* Pagination */
.sv-pagination { margin-top: 40px; }
.pagination-list { display: flex; align-items: center; justify-content: center; gap: 6px; list-style: none; flex-wrap: wrap; }
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px; height: 36px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--sv-text-secondary);
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-sm);
    transition: all var(--sv-transition);
    text-decoration: none;
}
.page-numbers:hover, .pagination-item.current .page-numbers {
    background: var(--sv-accent);
    color: var(--sv-black);
    border-color: var(--sv-accent);
}
.pagination-item.first .page-numbers,
.pagination-item.last .page-numbers { width: auto; padding: 0 12px; }
.page-numbers.prev, .page-numbers.next { width: auto; padding: 0 14px; }

/* -------------------------------------------------------------------------
   SINGLE POST
   ------------------------------------------------------------------------- */
.single-post-layout {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    padding: 48px 0 80px;
    max-width: var(--sv-container);
    margin-inline: auto;
    padding-inline: 24px;
}

.single-post-main {}

/* Post categories above title */
.post-categories { margin-bottom: 12px; }
.post-categories a {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--sv-accent);
    background: rgba(var(--sv-accent-rgb), 0.08);
    border: 1px solid rgba(var(--sv-accent-rgb), 0.2);
    padding: 3px 10px;
    border-radius: var(--sv-radius-full);
    text-decoration: none;
    display: inline-block;
    margin-right: 4px;
}

.single-post-title { font-size: clamp(1.75rem, 4vw, 2.75rem); margin-bottom: 16px; }

/* Custom meta */
.entry-meta-custom {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--sv-border);
}
.author-avatar img { border-radius: 50%; }
.meta-text { display: flex; flex-direction: column; gap: 2px; }
.author-name a { font-size: 0.875rem; font-weight: 600; color: var(--sv-text-primary); }
.posted-on { font-size: 0.8rem; color: var(--sv-text-muted); }

/* Post intro section (ACF) */
.post-intro-section {
    margin-bottom: 32px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-xl);
    overflow: hidden;
}
.post-intro-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.post-intro-image { overflow: hidden; max-height: 300px; }
.post-intro-image img { width: 100%; height: 100%; object-fit: cover; }
.post-intro-content { padding: 28px; }
.intro-subtitle { font-size: 0.95rem; color: var(--sv-text-secondary); margin-bottom: 20px; }
.intro-details-grid { display: flex; flex-direction: column; gap: 12px; }
.detail-item { display: flex; flex-direction: column; gap: 2px; }
.detail-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sv-text-muted); font-weight: 700; }
.detail-value { font-size: 0.9rem; font-weight: 600; color: var(--sv-text-primary); }
.rating-value { color: #f59e0b; }

/* Entry content prose */
.entry-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--sv-text-secondary);
}
.entry-content h2, .entry-content h3, .entry-content h4 {
    color: var(--sv-text-primary);
    margin-top: 2em;
    margin-bottom: 0.75em;
}
.entry-content p { margin-bottom: 1.25em; }
.entry-content a { color: var(--sv-accent); text-decoration: underline; }
.entry-content a:hover { color: var(--sv-accent-hover); }
.entry-content ul, .entry-content ol { padding-left: 1.5em; margin-bottom: 1.25em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content blockquote {
    border-left: 3px solid var(--sv-accent);
    padding: 12px 20px;
    background: var(--sv-surface);
    border-radius: 0 var(--sv-radius-sm) var(--sv-radius-sm) 0;
    margin: 1.5em 0;
    font-style: italic;
}
.entry-content img { border-radius: var(--sv-radius-md); margin: 1.5em 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: 0.9rem; }
.entry-content th { background: var(--sv-surface-2); color: var(--sv-text-primary); padding: 10px 14px; text-align: left; font-weight: 600; }
.entry-content td { padding: 10px 14px; border-bottom: 1px solid var(--sv-border); }
.entry-content tr:hover td { background: var(--sv-surface); }
.entry-content code {
    background: var(--sv-surface-2);
    border: 1px solid var(--sv-border);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.875em;
    color: var(--sv-accent);
}
.entry-content pre {
    background: var(--sv-surface-2);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 20px;
    overflow-x: auto;
    margin: 1.5em 0;
}
.entry-content pre code { background: none; border: none; padding: 0; }

/* Author bio box */
.author-box-enhanced {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-xl);
    padding: 28px;
    margin-top: 48px;
}
.author-box-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.author-box-avatar-large { border-radius: 50%; }
.author-box-title { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sv-text-muted); font-weight: 700; display: block; }
.author-box-name-large { font-size: 1.1rem; color: var(--sv-text-primary); margin: 2px 0 8px; }
.author-social-links { display: flex; gap: 8px; }
.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px; height: 32px;
    border-radius: var(--sv-radius-sm);
    background: var(--sv-surface-2);
    border: 1px solid var(--sv-border);
    color: var(--sv-text-secondary);
    transition: all var(--sv-transition);
}
.social-link:hover { background: var(--sv-accent); color: var(--sv-black); border-color: var(--sv-accent); }
.author-box-bio-large { font-size: 0.875rem; color: var(--sv-text-secondary); line-height: 1.7; }

/* Post navigation */
.sv-post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--sv-border);
}
.sv-post-navigation a {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    transition: all var(--sv-transition);
    color: inherit;
}
.sv-post-navigation a:hover { border-color: var(--sv-accent); color: inherit; }
.sv-post-navigation .meta-nav { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--sv-text-muted); font-weight: 700; }
.sv-post-navigation .post-title { font-size: 0.875rem; font-weight: 600; color: var(--sv-text-primary); }
.nav-next a { text-align: right; }

/* Sticky tool bar */
.sticky-tool-bar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--sv-surface);
    border-top: 1px solid var(--sv-border);
    padding: 12px 0;
    z-index: 500;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.sticky-bar-content { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sticky-bar-info { display: flex; align-items: center; gap: 14px; }
.sticky-bar-logo { width: 40px; height: 40px; border-radius: var(--sv-radius-sm); overflow: hidden; background: var(--sv-surface-2); padding: 4px; }
.sticky-bar-logo img { width: 100%; height: 100%; object-fit: contain; }
.sticky-bar-title { font-weight: 700; font-size: 0.95rem; color: var(--sv-text-primary); }
.sticky-bar-actions { display: flex; align-items: center; gap: 16px; }
.sticky-bar-rating { display: flex; align-items: center; gap: 6px; }
.sticky-bar-rating .stars { color: #f59e0b; font-size: 0.9rem; }
.sticky-bar-rating .rating-num { font-weight: 700; font-size: 0.9rem; }

/* Sidebar */
.single-post-sidebar { display: flex; flex-direction: column; gap: 24px; }
.sidebar-widget {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-lg);
    padding: 20px;
}
.sidebar-widget-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--sv-text-muted);
    font-weight: 700;
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--sv-border);
}
.sidebar-toc { display: flex; flex-direction: column; gap: 6px; }
.sidebar-toc a { font-size: 0.82rem; color: var(--sv-text-secondary); transition: color var(--sv-transition); padding: 2px 0; }
.sidebar-toc a:hover { color: var(--sv-accent); }
.sidebar-recent-post { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sv-border); }
.sidebar-recent-post:last-child { border-bottom: none; }
.sidebar-recent-thumb { width: 52px; height: 52px; border-radius: var(--sv-radius-sm); overflow: hidden; flex-shrink: 0; background: var(--sv-surface-2); }
.sidebar-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-recent-title { font-size: 0.82rem; font-weight: 600; color: var(--sv-text-primary); line-height: 1.35; }
.sidebar-recent-title a { color: inherit; }
.sidebar-recent-title a:hover { color: var(--sv-accent); }
.sidebar-recent-date { font-size: 0.75rem; color: var(--sv-text-muted); margin-top: 4px; }

/* Related posts */
.related-posts-section { padding: 64px 0; border-top: 1px solid var(--sv-border); }
.related-posts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.related-post-card {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-lg);
    overflow: hidden;
    transition: all var(--sv-transition);
}
.related-post-card:hover { border-color: rgba(var(--sv-accent-rgb), 0.3); transform: translateY(-2px); }
.related-post-image { display: block; height: 150px; overflow: hidden; background: var(--sv-surface-2); }
.related-post-image img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--sv-transition-slow); }
.related-post-card:hover .related-post-image img { transform: scale(1.04); }
.image-fallback { display: block; width: 100%; height: 100%; background: var(--sv-surface-3); }
.related-post-content { padding: 16px; }
.related-post-content .card-categories a {
    font-size: 0.68rem;
    color: var(--sv-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    text-decoration: none;
}
.related-post-title { font-size: 0.875rem; margin-top: 6px; line-height: 1.4; }
.related-post-title a { color: var(--sv-text-primary); }
.related-post-title a:hover { color: var(--sv-accent); }

/* -------------------------------------------------------------------------
   ABOUT PAGE
   ------------------------------------------------------------------------- */
.about-container {
    max-width: 720px;
    margin: 0 auto;
    padding: 80px 24px;
}
.about-content h1 { margin-bottom: 24px; }
.about-content .lead {
    font-size: 1.15rem;
    color: var(--sv-text-primary);
    line-height: 1.7;
    margin-bottom: 32px;
}
.about-content .narrative-section { margin-bottom: 40px; }
.about-content .narrative-section p {
    font-size: 1rem;
    color: var(--sv-text-secondary);
    margin-bottom: 1.25em;
    line-height: 1.8;
}
.about-content .footer-section { border-top: 1px solid var(--sv-border); padding-top: 28px; }
.founder-line { font-size: 0.9rem; color: var(--sv-text-secondary); margin-bottom: 12px; }
.founder-line a { color: var(--sv-accent); text-decoration: underline; }
.footer-links { display: flex; align-items: center; gap: 10px; }
.footer-links a { font-size: 0.875rem; font-weight: 600; color: var(--sv-text-secondary); transition: color var(--sv-transition); }
.footer-links a:hover { color: var(--sv-accent); }
.separator { color: var(--sv-text-muted); }

/* -------------------------------------------------------------------------
   CONTACT PAGE
   ------------------------------------------------------------------------- */
.contact-hero {
    padding: 64px 0 48px;
    text-align: center;
    border-bottom: 1px solid var(--sv-border);
}
.page-title { margin-bottom: 12px; }
.page-subtitle { font-size: 1.05rem; color: var(--sv-text-secondary); max-width: 560px; margin: 0 auto; }
.contact-content-section { padding: 64px 0 80px; }
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 64px;
    align-items: start;
}
.contact-info h2 { font-size: 1.5rem; margin-bottom: 12px; }
.contact-info > p { font-size: 0.9rem; color: var(--sv-text-secondary); margin-bottom: 28px; }
.contact-meta h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--sv-text-muted); font-weight: 700; margin-bottom: 6px; margin-top: 20px; }
.contact-meta p { font-size: 0.875rem; color: var(--sv-text-secondary); }
.contact-social-links { display: flex; gap: 12px; margin-top: 8px; }
.contact-social-links a {
    color: var(--sv-text-muted);
    transition: color var(--sv-transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
}
.contact-social-links a:hover { color: var(--sv-accent); border-color: var(--sv-accent); background: rgba(var(--sv-accent-rgb), 0.06); }

/* Native contact form */
.sv-contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--sv-text-secondary); }
.form-group input,
.form-group textarea {
    background: var(--sv-surface);
    border: 1px solid var(--sv-border);
    border-radius: var(--sv-radius-md);
    padding: 11px 16px;
    font-size: 0.9rem;
    color: var(--sv-text-primary);
    transition: border-color var(--sv-transition);
    outline: none;
    width: 100%;
}
.form-group input:focus,
.form-group textarea:focus { border-color: var(--sv-accent); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit-btn {
    background: var(--sv-accent);
    color: var(--sv-black);
    border: none;
    border-radius: var(--sv-radius-full);
    padding: 13px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--sv-transition);
    font-family: var(--sv-font);
    align-self: flex-start;
}
.form-submit-btn:hover { background: var(--sv-accent-hover); transform: translateY(-1px); box-shadow: var(--sv-shadow-glow); }
.form-notice { font-size: 0.78rem; color: var(--sv-text-muted); margin-top: 4px; }
.form-success { background: rgba(34, 197, 94, 0.1); border: 1px solid rgba(34, 197, 94, 0.3); border-radius: var(--sv-radius-md); padding: 16px; color: var(--sv-success); font-size: 0.9rem; display: none; }
.form-success.visible { display: block; }

/* -------------------------------------------------------------------------
   SEARCH RESULTS
   ------------------------------------------------------------------------- */
.search-results-header {
    padding: 60px 0 0;
    text-align: center;
}
.search-results-header h1 { margin-bottom: 8px; }
.search-results-header h1 span { color: var(--sv-accent); }
.search-results-header p { color: var(--sv-text-secondary); font-size: 0.9rem; }

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 1200px) {
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .featured-reviews-grid { grid-template-columns: repeat(2, 1fr); }
    .latest-reviews-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .desktop-nav { display: none; }
    .mobile-menu-toggle { display: flex; }
    .header-cta { display: none; }

    .hero-content { grid-template-columns: 1fr; gap: 40px; }
    .hero-visual { display: none; }
    .dual-grid { grid-template-columns: 1fr; }
    .contact-grid { grid-template-columns: 1fr; gap: 40px; }
    .single-post-layout { grid-template-columns: 1fr; }
    .single-post-sidebar { display: none; }
    .related-posts-grid { grid-template-columns: repeat(2, 1fr); }
    .sv-post-navigation { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    .hero-section { padding: 48px 0 40px; }
    .featured-reviews-grid { grid-template-columns: 1fr; }
    .latest-reviews-grid { grid-template-columns: 1fr 1fr; }
    .categories-grid { grid-template-columns: repeat(2, 1fr); }
    .sv-archive-grid { grid-template-columns: 1fr; }
    .related-posts-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { flex-direction: column; align-items: flex-start; gap: 20px; }
    .footer-nav-wrapper { flex-direction: column; align-items: flex-start; gap: 16px; }
    .post-intro-wrapper { grid-template-columns: 1fr; }
    .post-intro-image { max-height: 200px; }
}

@media (max-width: 480px) {
    .latest-reviews-grid { grid-template-columns: 1fr; }
    .categories-grid { grid-template-columns: repeat(3, 1fr); }
    .related-posts-grid { grid-template-columns: 1fr; }
    .software-showcase { grid-template-columns: repeat(2, 1fr); }
    .hero-stats { gap: 12px; }
    .footer-nav { gap: 12px; }
}

/* -------------------------------------------------------------------------
   WORDPRESS CORE 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;
}
.alignleft { float: left; margin-right: 1.5em; margin-bottom: 0.5em; }
.alignright { float: right; margin-left: 1.5em; margin-bottom: 0.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; margin-bottom: 0.5em; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8rem; color: var(--sv-text-muted); text-align: center; margin-top: 6px; }

/* -------------------------------------------------------------------------
   ACCESSIBILITY: FOCUS STYLES
   Uses :focus-visible so mouse users don't see the ring, only keyboard users.
   ------------------------------------------------------------------------- */
:focus-visible {
    outline: 2px solid var(--sv-accent);
    outline-offset: 3px;
    border-radius: var(--sv-radius-sm);
}

/* Remove the default browser outline now that we have our own */
:focus:not(:focus-visible) { outline: none; }

/* Stronger ring on form inputs (they already have a border transition) */
.form-group input:focus-visible,
.form-group textarea:focus-visible,
.hero-search-form .search-field:focus-visible {
    outline: 2px solid var(--sv-accent);
    outline-offset: 0;
}

/* -------------------------------------------------------------------------
   ACCESSIBILITY: REDUCED MOTION
   Pauses the logo ticker and badge pulse for users who prefer less motion.
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .logo-ticker { animation: none; }
    .badge-dot   { animation: none; }
}

/* Wrap the ticker animation in no-preference so it only runs for users
   who are OK with motion — the ticker pauses for everyone else. */
@media (prefers-reduced-motion: no-preference) {
    .logo-ticker { animation: ticker 20s linear infinite; }
}

/* Remove the unconditional animation rule above — this block takes over */

/* -------------------------------------------------------------------------
   LOGO FALLBACK: plain text site name when no custom logo is set
   ------------------------------------------------------------------------- */
.site-name-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--sv-text-primary);
    letter-spacing: -0.03em;
}
.footer-site-name {
    font-size: 1rem;
    font-weight: 700;
    color: var(--sv-text-primary);
}

/* -------------------------------------------------------------------------
   STARS: ensure .stars-foreground clip works (connected to stackverdict_star_rating())
   ------------------------------------------------------------------------- */
.stars-wrapper { position: relative; display: inline-block; font-size: 0.9rem; line-height: 1; }
.stars-background { color: var(--sv-border-light); }
.stars-foreground { position: absolute; top: 0; left: 0; overflow: hidden; color: #f59e0b; white-space: nowrap; }
