/*
Theme Name: MechKeyFoundry
Theme URI: https://mechkeyfoundry.com
Author: MechKeyFoundry
Author URI: https://mechkeyfoundry.com
Description: Built to the Last Key - Honest mechanical keyboard guides covering switches, keycaps, stabilizer tuning, mods, and full custom builds.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mechkeyfoundry
*/

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #ece7dc;
    background-color: #18181c;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

ul, ol {
    list-style: none;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

input, textarea, select {
    font-family: inherit;
    font-size: inherit;
}

::selection {
    background-color: #8b5cf6;
    color: white;
}

/* ========================================
   CSS VARIABLES
   ======================================== */
:root {
    /* Colors */
    --key-black: #0c0c0e;
    --key-dark: #18181c;
    --key-gray: #26262c;
    --key-cream: #ece7dc;
    --key-muted: #8a8794;
    --mech-accent: #8b5cf6;
    --mech-accent-light: #a78bfa;
    --mech-teal: #2dd4bf;
    --mech-yellow: #eab308;
    
    /* Typography */
    --font-heading: 'Bebas Neue', 'Impact', sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Fira Code', monospace;
    --font-label: 'Inter', sans-serif;
    
    /* Spacing */
    --container-max: 1280px;
    --container-padding: 1rem;
    
    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.2s ease;
    --transition-slow: 0.3s ease;
}

/* ========================================
   TYPOGRAPHY
   ======================================== */
.font-heading {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.font-mono {
    font-family: var(--font-mono);
}

.font-label {
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.1;
    color: white;
}

h1 { font-size: clamp(2.5rem, 8vw, 6rem); }
h2 { font-size: clamp(2rem, 5vw, 3.5rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

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

@media (min-width: 768px) {
    .container {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

.min-h-screen {
    min-height: 100vh;
}

.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.flex-grow {
    flex-grow: 1;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.justify-center {
    justify-content: center;
}

.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.gap-12 { gap: 3rem; }

.grid {
    display: grid;
}

.grid-cols-1 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
}

@media (min-width: 768px) {
    .md\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .md\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .md\:grid-cols-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    .md\:col-span-3 {
        grid-column: span 3 / span 3;
    }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .lg\:grid-cols-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ========================================
   HEADER
   ======================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background-color: rgba(12, 12, 14, 0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.header-inner {
    height: 5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.site-logo:hover .logo-icon {
    transform: rotate(12deg);
}

.logo-icon {
    background-color: var(--mech-accent);
    padding: 0.375rem;
    border-radius: 2px;
    transition: transform var(--transition-normal);
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--key-black);
}

.logo-text {
    display: flex;
    flex-direction: column;
}

.logo-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1;
    letter-spacing: 0.02em;
    color: white;
}

.logo-title span {
    color: var(--mech-accent);
}

.logo-subtitle {
    font-size: 0.625rem;
    font-family: var(--font-mono);
    color: var(--key-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* Desktop Navigation */
.main-nav {
    display: none;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .main-nav {
        display: flex;
    }
}

.nav-link {
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.875rem;
    color: var(--key-cream);
    transition: color var(--transition-normal);
}

.nav-link:hover,
.nav-link.active {
    color: var(--mech-accent);
}

.nav-cta {
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--mech-teal);
    color: var(--mech-teal);
    transition: all var(--transition-normal);
}

.nav-cta:hover {
    background-color: var(--mech-teal);
    color: var(--key-black);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
    display: flex;
    color: var(--key-cream);
    padding: 0.5rem;
    transition: color var(--transition-normal);
}

.mobile-menu-toggle:hover {
    color: var(--mech-accent);
}

@media (min-width: 768px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

/* Mobile Navigation */
.mobile-nav {
    display: none;
    position: absolute;
    top: 5rem;
    left: 0;
    width: 100%;
    background-color: var(--key-gray);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
}

.mobile-nav.is-open {
    display: flex;
}

@media (min-width: 768px) {
    .mobile-nav {
        display: none !important;
    }
}

.mobile-nav-link {
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.125rem;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--key-cream);
}

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
    background-color: var(--key-black);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 4rem;
    padding-bottom: 2rem;
    position: relative;
}

.site-footer::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 1.5fr 1fr 1fr 1fr;
    }
}

.footer-brand-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: white;
}

.footer-brand-title span {
    color: var(--mech-accent);
}

.footer-brand-desc {
    color: var(--key-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    color: var(--key-muted);
    transition: color var(--transition-normal);
}

.footer-social a:hover {
    color: var(--mech-accent);
}

.footer-social svg {
    width: 1.25rem;
    height: 1.25rem;
}

.footer-heading {
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    color: white;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-link {
    color: var(--key-muted);
    font-size: 0.875rem;
    transition: color var(--transition-normal);
}

.footer-link:hover {
    color: var(--mech-teal);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--key-muted);
    position: relative;
    z-index: 1;
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* ========================================
   BUTTONS
   ======================================== */
.btn {
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all var(--transition-normal);
    transform: translateY(0);
    cursor: pointer;
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

.btn-sm {
    font-size: 0.75rem;
    padding: 0.375rem 0.75rem;
}

.btn-md {
    font-size: 0.875rem;
    padding: 0.625rem 1.25rem;
}

.btn-lg {
    font-size: 1rem;
    padding: 0.875rem 2rem;
}

.btn-primary {
    background-color: var(--mech-accent);
    color: var(--key-black);
    border: 1px solid transparent;
    box-shadow: 0 0 15px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    background-color: var(--mech-accent-light);
}

.btn-secondary {
    background-color: var(--mech-teal);
    color: var(--key-black);
    border: 1px solid transparent;
}

.btn-secondary:hover {
    background-color: #00e6b8;
}

.btn-outline {
    background-color: transparent;
    color: var(--mech-teal);
    border: 1px solid var(--mech-teal);
}

.btn-outline:hover {
    background-color: rgba(45, 212, 191, 0.1);
}

.btn-ghost {
    background-color: transparent;
    color: var(--key-muted);
    border: none;
}

.btn-ghost:hover {
    color: white;
}

/* ========================================
   CARDS
   ======================================== */
.card {
    background-color: var(--key-gray);
    border-left: 4px solid transparent;
    padding: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all var(--transition-slow);
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    border-left-color: var(--mech-accent);
}

.card-image {
    margin: -1.5rem -1.5rem 1rem -1.5rem;
    height: 12rem;
    overflow: hidden;
    position: relative;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.card:hover .card-image img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
}

.card-meta {
    margin-bottom: 0.5rem;
}

.card-meta .category {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--mech-accent);
    text-transform: uppercase;
    margin-right: 0.5rem;
}

.card-meta .time {
    font-size: 0.75rem;
    font-family: var(--font-mono);
    color: var(--key-muted);
}

.card-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.card-title a {
    color: white;
    transition: color var(--transition-normal);
}

.card-title a:hover {
    color: var(--mech-teal);
}

.card-excerpt {
    color: var(--key-muted);
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--mech-teal);
    transition: color var(--transition-normal);
}

.card-link:hover {
    color: white;
}

.card-link svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* ========================================
   BADGES
   ======================================== */
.badge {
    display: inline-block;
    padding: 0.125rem 0.5rem;
    font-size: 0.75rem;
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 2px;
    border: 1px solid;
}

.badge-orange {
    background-color: rgba(139, 92, 246, 0.2);
    color: var(--mech-accent);
    border-color: rgba(139, 92, 246, 0.5);
}

.badge-teal {
    background-color: rgba(45, 212, 191, 0.2);
    color: var(--mech-teal);
    border-color: rgba(45, 212, 191, 0.5);
}

.badge-yellow {
    background-color: rgba(234, 179, 8, 0.2);
    color: var(--mech-yellow);
    border-color: rgba(234, 179, 8, 0.5);
}

.badge-gray {
    background-color: var(--key-gray);
    color: var(--key-muted);
    border-color: rgba(138, 135, 148, 0.3);
}

/* ========================================
   SECTION HEADER
   ======================================== */
.section-header {
    margin-bottom: 3rem;
}

.section-header.text-center {
    text-align: center;
}

.section-header h2 {
    margin-bottom: 0.75rem;
}

.section-header p {
    color: var(--key-muted);
    font-size: 1.125rem;
    max-width: 42rem;
}

.section-header.text-center p {
    margin-left: auto;
    margin-right: auto;
}

.section-header-bar {
    height: 4px;
    width: 6rem;
    background-color: var(--mech-accent);
    margin-top: 1rem;
}

.section-header.text-center .section-header-bar {
    margin-left: auto;
    margin-right: auto;
}

/* ========================================
   DISCLAIMER BOX
   ======================================== */
.disclaimer-box {
    background-color: var(--key-black);
    border: 1px solid rgba(234, 179, 8, 0.3);
    padding: 1rem;
    border-radius: 2px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 1.5rem 0;
}

.disclaimer-box svg {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--mech-yellow);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.disclaimer-box-content {
    font-size: 0.875rem;
    color: var(--key-muted);
}

.disclaimer-box-title {
    color: var(--mech-yellow);
    font-weight: 700;
    text-transform: uppercase;
    font-family: var(--font-label);
    margin-bottom: 0.25rem;
    font-size: 0.875rem;
}

/* ========================================
   HERO SECTION
   ======================================== */
.hero {
    position: relative;
    min-height: 80vh;
    display: flex;
    align-items: center;
    background-color: var(--key-black);
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    opacity: 0.4;
    background-size: cover;
    background-position: center;
    filter: grayscale(100%);
    mix-blend-mode: overlay;
}

.hero-bg-blueprint {
    position: absolute;
    inset: 0;
    opacity: 0.2;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 20px 20px;
}

.hero-bg-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, var(--key-black), rgba(24, 24, 28, 0.8), transparent);
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 48rem;
}

.hero-tagline {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.hero-tagline-bar {
    height: 2px;
    width: 3rem;
    background-color: var(--mech-accent);
}

.hero-tagline-text {
    color: var(--mech-accent);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero h1 {
    margin-bottom: 1.5rem;
    line-height: 0.9;
}

.hero-description {
    font-size: 1.25rem;
    color: var(--key-cream);
    max-width: 36rem;
    border-left: 2px solid var(--mech-teal);
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-buttons {
        flex-direction: row;
    }
}

.hero-animation {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 33%;
    height: 100%;
    opacity: 0.2;
    pointer-events: none;
    display: none;
}

@media (min-width: 1024px) {
    .hero-animation {
        display: block;
    }
}

/* ========================================
   SKILL PATHS SECTION
   ======================================== */
.skill-paths {
    padding: 5rem 0;
    background-color: var(--key-dark);
}

.skill-paths-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: -8rem;
    position: relative;
    z-index: 20;
}

@media (min-width: 768px) {
    .skill-paths-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.skill-path-card {
    background-color: var(--key-gray);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.skill-path-card-bg {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    opacity: 0.1;
    transition: all 0.5s ease;
}

.skill-path-card:hover .skill-path-card-bg {
    opacity: 0.2;
    transform: scale(1.25);
}

.skill-path-card-bg svg {
    width: 7.5rem;
    height: 7.5rem;
}

.skill-path-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.skill-path-icon {
    background-color: var(--key-black);
    padding: 0.75rem;
    border-radius: 2px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--mech-accent);
}

.skill-path-icon svg {
    width: 1.5rem;
    height: 1.5rem;
}

.skill-path-level {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--key-muted);
    text-transform: uppercase;
    letter-spacing: 0.15em;
}

.skill-path-card h3 {
    font-size: 1.875rem;
    margin-bottom: 1rem;
}

.skill-path-card p {
    color: var(--key-muted);
    margin-bottom: 2rem;
}

.skill-path-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--mech-teal);
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-normal);
}

.skill-path-link:hover {
    color: white;
}

.skill-path-link svg {
    width: 1rem;
    height: 1rem;
}

/* ========================================
   FEATURED GUIDES SECTION
   ======================================== */
.featured-guides {
    padding: 6rem 0;
    background-color: var(--key-dark);
    position: relative;
}

.featured-guides-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .featured-guides-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .featured-guides-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.featured-guides .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-guides-more {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   CAM SOFTWARE SECTION
   ======================================== */
.cam-software {
    padding: 6rem 0;
    background-color: var(--key-black);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.cam-software-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .cam-software-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.cam-software-content p {
    color: var(--key-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cam-software-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.cam-software-logos {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.cam-logo {
    background-color: var(--key-gray);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--transition-normal);
    cursor: pointer;
}

.cam-logo:hover {
    border-color: var(--mech-teal);
}

.cam-logo span {
    font-family: var(--font-heading);
    font-size: 1.125rem;
    color: var(--key-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color var(--transition-normal);
}

.cam-logo:hover span {
    color: white;
}

/* ========================================
   NEWSLETTER SECTION
   ======================================== */
.newsletter {
    padding: 5rem 0;
    background-color: var(--mech-accent);
    color: var(--key-black);
}

.newsletter-inner {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .newsletter-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.newsletter-content {
    flex: 1;
}

@media (min-width: 768px) {
    .newsletter-content {
        max-width: 50%;
    }
}

.newsletter h2 {
    color: var(--key-black);
    margin-bottom: 1rem;
}

.newsletter p {
    font-weight: 500;
    font-size: 1.125rem;
    opacity: 0.8;
}

.newsletter-form {
    flex: 1;
    width: 100%;
}

@media (min-width: 768px) {
    .newsletter-form {
        max-width: 50%;
    }
}

.newsletter-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .newsletter-form form {
        flex-direction: row;
    }
}

.newsletter-form input[type="email"] {
    flex-grow: 1;
    padding: 1rem 1.5rem;
    background-color: rgba(0, 0, 0, 0.1);
    border: 2px solid rgba(0, 0, 0, 0.2);
    color: var(--key-black);
    font-weight: 700;
}

.newsletter-form input[type="email"]::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.newsletter-form input[type="email"]:focus {
    outline: none;
    border-color: var(--key-black);
}

.newsletter-form button {
    padding: 1rem 2rem;
    background-color: var(--key-black);
    color: white;
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all var(--transition-normal);
    white-space: nowrap;
}

.newsletter-form button:hover {
    background-color: white;
    color: var(--key-black);
}

/* ========================================
   BOARD COMPARISON PAGE
   ======================================== */
.board-comparison {
    min-height: 100vh;
    background-color: var(--key-dark);
    padding: 3rem 0;
}

.board-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.board-table-wrapper {
    display: none;
    overflow-x: auto;
    background-color: var(--key-gray);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

@media (min-width: 768px) {
    .board-table-wrapper {
        display: block;
    }
}

.board-table {
    width: 100%;
    text-align: left;
    border-collapse: collapse;
}

.board-table thead tr {
    background-color: var(--key-black);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.board-table th {
    padding: 1rem;
    font-family: var(--font-heading);
    font-size: 1.125rem;
    text-transform: uppercase;
    color: var(--key-cream);
}

.board-table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background-color var(--transition-normal);
}

.board-table tbody tr:nth-child(even) {
    background-color: #252525;
}

.board-table tbody tr:nth-child(odd) {
    background-color: var(--key-gray);
}

.board-table tbody tr:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.board-table td {
    padding: 1rem;
}

.board-name {
    font-weight: 700;
    color: white;
}

.board-manufacturer {
    font-size: 0.75rem;
    color: var(--key-muted);
}

.board-area {
    font-family: var(--font-mono);
    font-size: 0.875rem;
    color: var(--mech-teal);
}

.board-metal {
    text-align: center;
}

.board-metal svg {
    margin: 0 auto;
}

.board-metal .yes {
    color: var(--mech-accent);
}

.board-metal .no {
    color: rgba(138, 135, 148, 0.3);
}

.price-indicator {
    display: flex;
    gap: 0.25rem;
}

.price-indicator span {
    height: 0.5rem;
    width: 1rem;
    border-radius: 2px;
    background-color: var(--key-black);
}

.price-indicator span.active {
    background-color: var(--mech-yellow);
}

/* Mobile Board Cards */
.board-cards-mobile {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 768px) {
    .board-cards-mobile {
        display: none;
    }
}

.board-card-mobile {
    background-color: var(--key-gray);
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.board-card-mobile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.board-card-mobile-info h3 {
    font-size: 1.25rem;
    color: white;
}

.board-card-mobile-info span {
    font-size: 0.875rem;
    color: var(--key-muted);
}

.board-card-mobile-specs {
    font-size: 0.875rem;
}

.board-card-mobile-spec {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.board-card-mobile-spec .label {
    color: var(--key-muted);
}

.board-card-mobile-spec .value {
    color: white;
    text-align: right;
}

.board-card-mobile-spec .value.teal {
    color: var(--mech-teal);
    font-family: var(--font-mono);
}

.board-disclaimer {
    margin-top: 3rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--key-muted);
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
}

/* ========================================
   TOOLS PAGE
   ======================================== */
.tools-page {
    min-height: 100vh;
    background-color: var(--key-dark);
    padding: 3rem 0;
}

.tools-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 64rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.calculator {
    background-color: var(--key-gray);
    padding: 1.5rem;
    border-top: 4px solid var(--mech-accent);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.calculator-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.calculator-header svg {
    color: var(--mech-accent);
    width: 1.25rem;
    height: 1.25rem;
}

.calculator-header h3 {
    font-size: 1.5rem;
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .calculator-inputs {
        grid-template-columns: repeat(3, 1fr);
    }
}

.calculator-input label {
    display: block;
    font-size: 0.75rem;
    font-family: var(--font-label);
    text-transform: uppercase;
    color: var(--key-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.calculator-input input {
    width: 100%;
    background-color: var(--key-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem;
    font-family: var(--font-mono);
    transition: border-color var(--transition-normal);
}

.calculator-input input:focus {
    outline: none;
    border-color: var(--mech-accent);
}

.calculator-result {
    margin-top: 2rem;
    background-color: var(--key-black);
    padding: 1rem;
    border: 1px solid rgba(45, 212, 191, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.calculator-result-label {
    font-family: var(--font-label);
    text-transform: uppercase;
    color: var(--mech-teal);
}

.calculator-result-value {
    font-family: var(--font-mono);
    font-size: 1.875rem;
    font-weight: 700;
    color: white;
}

.calculator-result-unit {
    font-size: 0.875rem;
    font-weight: 400;
    color: var(--key-muted);
    margin-left: 0.25rem;
}

.calculator-note {
    font-size: 0.75rem;
    color: var(--key-muted);
    margin-top: 0.5rem;
}

.tool-placeholder {
    background-color: var(--key-gray);
    padding: 1.5rem;
    border-left: 4px solid var(--mech-teal);
    opacity: 0.75;
}

.tool-placeholder.yellow {
    border-left-color: var(--mech-yellow);
}

.tool-placeholder h3 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: white;
}

.tool-placeholder h3 svg {
    width: 1.25rem;
    height: 1.25rem;
}

.tool-placeholder h3 svg.teal {
    color: var(--mech-teal);
}

.tool-placeholder h3 svg.yellow {
    color: var(--mech-yellow);
}

.tool-placeholder p {
    font-size: 0.875rem;
    color: var(--key-muted);
}

/* Main Calculator Full Width */
.calculator.full-width {
    grid-column: 1 / -1;
}

/* ========================================
   GUIDE DETAIL PAGE
   ======================================== */
.guide-detail {
    min-height: 100vh;
    background-color: var(--key-dark);
    padding-bottom: 5rem;
}

.guide-hero {
    height: 16rem;
    position: relative;
    width: 100%;
    background-color: var(--key-black);
    overflow: hidden;
}

@media (min-width: 768px) {
    .guide-hero {
        height: 24rem;
    }
}

.guide-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.guide-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.guide-hero-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3rem;
}

.guide-back-link {
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.5rem;
    font-family: var(--font-label);
    text-transform: uppercase;
    font-size: 0.875rem;
    font-weight: 700;
    transition: color var(--transition-normal);
}

.guide-back-link:hover {
    color: var(--mech-accent);
}

.guide-back-link svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.25rem;
}

.guide-badges {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.guide-hero h1 {
    font-size: clamp(1.5rem, 5vw, 3.5rem);
    max-width: 56rem;
    line-height: 1;
}

.guide-content-wrapper {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .guide-content-wrapper {
        grid-template-columns: 3fr 1fr;
    }
}

.guide-main-content {
    background-color: var(--key-gray);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.guide-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--key-muted);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    font-family: var(--font-mono);
    flex-wrap: wrap;
}

.guide-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.guide-meta svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Article Content Styling */
.article-content {
    color: var(--key-cream);
    line-height: 1.7;
}

.article-content h2 {
    font-size: 1.875rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.article-content h3 {
    font-size: 1.25rem;
    color: var(--mech-accent);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.article-content p {
    margin-bottom: 1rem;
}

.article-content ul,
.article-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--key-muted);
}

.article-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.article-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
}

.article-content blockquote {
    border-left: 4px solid var(--mech-yellow);
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.05);
    font-style: italic;
    font-size: 1.125rem;
}

/* Guide Sidebar */
.guide-sidebar {
    position: relative;
}

.guide-toc {
    background-color: var(--key-black);
    padding: 1.5rem;
    border-top: 4px solid var(--mech-accent);
    position: sticky;
    top: 6rem;
}

.guide-toc h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.guide-toc ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.guide-toc li {
    font-size: 0.875rem;
    color: var(--key-muted);
    cursor: pointer;
    transition: color var(--transition-normal);
}

.guide-toc li:hover {
    color: white;
}

.guide-toc-related {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.guide-toc-related h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
}

.guide-toc-related a {
    display: block;
    color: var(--mech-teal);
    font-size: 0.875rem;
    transition: color var(--transition-normal);
}

.guide-toc-related a:hover {
    text-decoration: underline;
}

/* ========================================
   CONTACT PAGE
   ======================================== */
.contact-page {
    min-height: 100vh;
    background-color: var(--key-dark);
    padding: 3rem 0;
}

.contact-form-wrapper {
    max-width: 48rem;
    margin: 0 auto;
    background-color: var(--key-gray);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    border-radius: 2px;
}

.contact-form-bg {
    position: absolute;
    top: 0;
    right: 0;
    padding: 1rem;
    opacity: 0.05;
    pointer-events: none;
    color: white;
}

.contact-form-bg svg {
    width: 12.5rem;
    height: 12.5rem;
}

.contact-form {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .contact-form-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

.form-group label {
    display: block;
    font-size: 0.75rem;
    font-family: var(--font-label);
    text-transform: uppercase;
    color: var(--key-muted);
    margin-bottom: 0.5rem;
    letter-spacing: 0.1em;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    background-color: var(--key-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem;
    transition: border-color var(--transition-normal);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--mech-accent);
}

.form-group textarea {
    resize: vertical;
    min-height: 9rem;
}

.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 20 20' fill='%23888888'%3E%3Cpath d='M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.form-group select option {
    background-color: var(--key-black);
}

.contact-note {
    background-color: rgba(0, 0, 0, 0.5);
    padding: 1rem;
    border-left: 2px solid var(--mech-yellow);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.contact-note svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--mech-yellow);
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.contact-note p {
    font-size: 0.75rem;
    color: var(--key-muted);
    line-height: 1.5;
}

.contact-note strong {
    color: white;
}

.contact-submit {
    text-align: center;
    padding-top: 1rem;
}

/* Contact Success Message */
.contact-success {
    min-height: 100vh;
    background-color: var(--key-dark);
    padding: 5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-success-box {
    background-color: var(--key-gray);
    padding: 2rem;
    border-left: 4px solid var(--mech-accent);
    max-width: 28rem;
    width: 100%;
    text-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
}

.contact-success-box svg {
    width: 3rem;
    height: 3rem;
    color: var(--mech-accent);
    margin: 0 auto 1rem;
}

.contact-success-box h2 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.contact-success-box p {
    color: var(--key-muted);
    margin-bottom: 1.5rem;
}

/* ========================================
   BLOG ARCHIVE
   ======================================== */
.blog-archive {
    min-height: 100vh;
    background-color: var(--key-dark);
    padding: 3rem 0;
}

.blog-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .blog-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.blog-grid .card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    background-color: var(--key-gray);
    color: var(--key-muted);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    transition: all var(--transition-normal);
}

.pagination a:hover {
    background-color: var(--key-black);
    color: white;
}

.pagination .current {
    background-color: var(--mech-accent);
    color: var(--key-black);
}

/* ========================================
   SINGLE POST
   ======================================== */
.single-post {
    min-height: 100vh;
    background-color: var(--key-dark);
    padding-bottom: 5rem;
}

.single-post-hero {
    height: 16rem;
    position: relative;
    width: 100%;
    background-color: var(--key-black);
    overflow: hidden;
}

@media (min-width: 768px) {
    .single-post-hero {
        height: 24rem;
    }
}

.single-post-hero-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 10;
}

.single-post-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.single-post-hero-content {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-bottom: 3rem;
}

.single-post-categories {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.single-post-hero h1 {
    font-size: clamp(1.5rem, 5vw, 3rem);
    max-width: 56rem;
    line-height: 1.1;
}

.single-post-content-wrapper {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
}

@media (min-width: 768px) {
    .single-post-content-wrapper {
        grid-template-columns: 3fr 1fr;
    }
}

.single-post-main-content {
    background-color: var(--key-gray);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.single-post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--key-muted);
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 1rem;
    font-family: var(--font-mono);
    flex-wrap: wrap;
}

.single-post-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.single-post-meta svg {
    width: 0.875rem;
    height: 0.875rem;
}

/* Post Content */
.post-content {
    color: var(--key-cream);
    line-height: 1.8;
}

.post-content h2 {
    font-size: 1.875rem;
    margin-top: 2rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 0.5rem;
}

.post-content h3 {
    font-size: 1.5rem;
    color: var(--mech-accent);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.post-content h4 {
    font-size: 1.25rem;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

.post-content p {
    margin-bottom: 1.25rem;
}

.post-content ul,
.post-content ol {
    margin-left: 1.5rem;
    margin-bottom: 1.25rem;
}

.post-content ul li {
    list-style-type: disc;
    margin-bottom: 0.5rem;
}

.post-content ol li {
    list-style-type: decimal;
    margin-bottom: 0.5rem;
}

.post-content blockquote {
    border-left: 4px solid var(--mech-yellow);
    padding-left: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    margin: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.05);
    font-style: italic;
    font-size: 1.125rem;
}

.post-content img {
    margin: 1.5rem 0;
    border-radius: 2px;
}

.post-content a {
    color: var(--mech-teal);
    text-decoration: underline;
}

.post-content a:hover {
    color: white;
}

.post-content pre,
.post-content code {
    font-family: var(--font-mono);
    background-color: var(--key-black);
    border-radius: 2px;
}

.post-content code {
    padding: 0.125rem 0.375rem;
    font-size: 0.875rem;
}

.post-content pre {
    padding: 1rem;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.post-content pre code {
    padding: 0;
    background: none;
}

/* Sidebar */
.single-post-sidebar {
    position: relative;
}

.sidebar-widget {
    background-color: var(--key-black);
    padding: 1.5rem;
    border-top: 4px solid var(--mech-accent);
    margin-bottom: 2rem;
}

.sidebar-widget.sticky {
    position: sticky;
    top: 6rem;
}

.sidebar-widget h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.sidebar-widget ul {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.sidebar-widget li a {
    font-size: 0.875rem;
    color: var(--key-muted);
    transition: color var(--transition-normal);
}

.sidebar-widget li a:hover {
    color: var(--mech-teal);
}

/* Related Posts */
.related-posts {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.related-posts h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .related-posts-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* ========================================
   ABOUT PAGE
   ======================================== */
.about-page {
    min-height: 100vh;
    background-color: var(--key-dark);
    padding: 3rem 0;
}

.about-content {
    max-width: 48rem;
    margin: 0 auto;
    background-color: var(--key-gray);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 2px;
}

.about-content .post-content {
    color: var(--key-cream);
}

/* ========================================
   404 PAGE
   ======================================== */
.error-404 {
    min-height: 100vh;
    background-color: var(--key-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.error-404-content {
    text-align: center;
    max-width: 32rem;
}

.error-404-code {
    font-family: var(--font-heading);
    font-size: 8rem;
    line-height: 1;
    color: var(--mech-accent);
    opacity: 0.3;
    margin-bottom: 1rem;
}

.error-404 h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.error-404 p {
    color: var(--key-muted);
    margin-bottom: 2rem;
}

/* ========================================
   COMMENTS
   ======================================== */
.comments-area {
    margin-top: 3rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.comments-title {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.comment-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.comment {
    background-color: var(--key-black);
    padding: 1.5rem;
    border-left: 3px solid var(--key-gray);
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.comment-author img {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.comment-author-name {
    font-weight: 700;
    color: white;
}

.comment-author-date {
    font-size: 0.75rem;
    color: var(--key-muted);
    font-family: var(--font-mono);
}

.comment-content {
    color: var(--key-cream);
    font-size: 0.9375rem;
}

.comment-content p {
    margin-bottom: 0.5rem;
}

.comment-reply-link {
    font-size: 0.75rem;
    color: var(--mech-teal);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
    display: inline-block;
}

.comment-reply-link:hover {
    color: white;
}

.children {
    margin-left: 2rem;
    margin-top: 1rem;
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.comment-form-author,
.comment-form-email,
.comment-form-url {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comment-form label {
    font-size: 0.75rem;
    font-family: var(--font-label);
    text-transform: uppercase;
    color: var(--key-muted);
    letter-spacing: 0.05em;
}

.comment-form input,
.comment-form textarea {
    background-color: var(--key-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 0.75rem;
    transition: border-color var(--transition-normal);
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--mech-accent);
}

.comment-form textarea {
    min-height: 8rem;
    resize: vertical;
}

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

.form-submit input {
    background-color: var(--mech-accent);
    color: var(--key-black);
    font-family: var(--font-label);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.75rem 2rem;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-normal);
}

.form-submit input:hover {
    background-color: var(--mech-accent-light);
}

/* ========================================
   UTILITY CLASSES
   ======================================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.hidden { display: none; }

.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;
}

.mt-0 { margin-top: 0; }
.mt-4 { margin-top: 1rem; }
.mt-8 { margin-top: 2rem; }
.mt-12 { margin-top: 3rem; }
.mb-0 { margin-bottom: 0; }
.mb-4 { margin-bottom: 1rem; }
.mb-8 { margin-bottom: 2rem; }
.mb-12 { margin-bottom: 3rem; }

.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.py-20 { padding-top: 5rem; padding-bottom: 5rem; }
.py-24 { padding-top: 6rem; padding-bottom: 6rem; }

/* WordPress Specific */
.alignleft {
    float: left;
    margin-right: 1.5rem;
    margin-bottom: 1rem;
}

.alignright {
    float: right;
    margin-left: 1.5rem;
    margin-bottom: 1rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-size: 0.875rem;
    color: var(--key-muted);
    font-style: italic;
    margin-top: 0.5rem;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* WordPress Block Editor Styles */
.wp-block-image {
    margin: 1.5rem 0;
}

.wp-block-quote {
    border-left: 4px solid var(--mech-yellow);
    padding-left: 1rem;
    margin: 1.5rem 0;
    background-color: rgba(255, 255, 255, 0.05);
}

.wp-block-code {
    background-color: var(--key-black);
    padding: 1rem;
    overflow-x: auto;
    font-family: var(--font-mono);
}

.has-text-align-center {
    text-align: center;
}

.has-text-align-right {
    text-align: right;
}

/* 2026-06-13 fix: force dark text inside builder light-bg callout boxes (invisible on dark themes) */
[style*="background:#f3faf6"],[style*="background:#fbf8f0"],[style*="background:#fff"]{color:#1a1a1a !important}

/* 2026-06-13 fix: paginate_links() styling for page-guides.php template */
.guides-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.5rem;
    height: 2.5rem;
    padding: 0 0.75rem;
    margin: 0 0.25rem;
    background-color: var(--key-gray);
    color: var(--key-muted);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    text-decoration: none;
    transition: all var(--transition-normal);
}
.guides-pagination a.page-numbers:hover {
    background-color: var(--key-black);
    color: #fff;
}
.guides-pagination .page-numbers.current {
    background-color: var(--mech-accent);
    color: var(--key-black);
}
.guides-pagination .page-numbers.dots {
    background-color: transparent;
}
.guides-search input[type="search"] {
    background-color: var(--key-gray);
    border: 1px solid rgba(255,255,255,0.1);
    color: var(--key-cream);
    padding: 0 1rem;
    height: 2.75rem;
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* SF_ALIGN_FIX 2026-06-13 */
.single-post-content{margin-left:auto !important;margin-right:auto !important}
.single-post-featured-image{margin-left:auto !important;margin-right:auto !important;max-width:48rem !important}

/* SF_DISCLOSURE_NORMAL 2026-06-14 — affiliate disclosures render as NORMAL body text: no box, no border/background/padding, no fade, normal size & colour. */
.affiliate-disclosure,
[style*="#f7f7f7"]{ color: var(--color-text-secondary, inherit) !important; background: none !important; border: none !important; padding: 0 !important; margin: 1rem 0 !important; font-size: inherit !important; opacity: 1 !important; border-radius: 0 !important; }
.affiliate-disclosure *,
[style*="#f7f7f7"] *{ color: var(--color-text-secondary, inherit) !important; opacity: 1 !important; }
.affiliate-disclosure a,
[style*="#f7f7f7"] a{ color: #58a6ff !important; text-decoration: underline; }
