/*
Theme Name: MistAI
Theme URI: http://localhost:8080
Author: MistAIMarketing
Description: AI Workstation Builder theme inspired by HomelabConfig. Clean, minimal, data-forward design for building AI workstations.
Version: 1.0.6
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GPL v2 or later
*/

/* ============================================
   CSS CUSTOM PROPERTIES — Design Tokens
   ============================================ */
:root {
  --background: #ffffff;
  --foreground: #0a0a0a;
  --surface: #f9fafb;
  --surface-strong: #f3f4f6;
  --muted: #6b7280;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --accent: #2563eb;
  --accent-strong: #1e40af;
  --accent-light: #eff6ff;
  --success: #16a34a;
  --warning: #ca8a04;
  --danger: #dc2626;
  --font-sans: 'Space Grotesk', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
  --max-width: 1280px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

img, video, iframe, embed { max-width: 100%; height: auto; }

::selection { background: var(--accent-light); }

/* Focus styles */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1, h2, h3, h4, h5, h6 { margin: 0; font-weight: 700; line-height: 1.2; }
h1 { font-size: 3rem; letter-spacing: -0.02em; }
h2 { font-size: 1.875rem; letter-spacing: -0.01em; }
h3 { font-size: 1.125rem; }
p { margin: 0 0 1rem; }
.text-mono { font-family: var(--font-mono); }

/* ============================================
   LAYOUT
   ============================================ */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1rem;
}
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--border);
  height: 64px;
}

/* Fix admin bar gap */
#wpadminbar { position: fixed !important; top: 0 !important; }
body.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) {
  body.admin-bar .site-header { top: 46px; }
}
.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
}
.logo-img {
  height: 25px;
  width: auto;
  object-fit: contain;
}

.nav-desktop { display: none; }
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}
.nav-desktop a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.15s;
}
.nav-desktop a:hover, .nav-desktop a.active { color: var(--foreground); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  line-height: 1.5;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-primary:hover { background: var(--accent-strong); }
.btn-outline {
  background: #fff;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-outline:hover { background: var(--surface); border-color: var(--border-strong); }

/* Mobile menu button */
.mobile-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--foreground);
  border-radius: 2px;
}
.mobile-menu-btn:hover { background: var(--surface); }
@media (min-width: 768px) { .mobile-menu-btn { display: none; } }

/* Mobile menu overlay */
.mobile-menu {
  border-top: 1px solid var(--border);
  background: #fff;
  padding: 1rem;
}
.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  color: var(--foreground);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  margin-bottom: 0.5rem;
}
.mobile-menu.hidden { display: none; }

/* --- Profile dropdown --- */
.profile-dropdown {
  position: relative;
}
.profile-toggle {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.375rem 0.75rem;
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.profile-toggle:hover { background: var(--surface); border-color: var(--border-strong); }
.profile-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}
.profile-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .profile-name { display: none; }
}
.profile-toggle svg { color: var(--muted); transition: transform 0.15s; }
.profile-dropdown.open .profile-toggle svg { transform: rotate(180deg); }

.profile-menu {
  display: none;
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 10px 25px -5px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
  min-width: 220px;
  z-index: 50;
  padding: 0.375rem 0;
}
.profile-dropdown.open .profile-menu { display: block; }

.profile-menu-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}
.profile-menu-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  flex-shrink: 0;
}
.profile-menu-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
}
.profile-menu-email {
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.125rem;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-menu-divider {
  border-top: 1px solid var(--border);
  margin: 0.25rem 0;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: background 0.1s;
}
.profile-menu-item:hover { background: var(--surface); }
.profile-menu-item svg { color: var(--muted); flex-shrink: 0; }
.profile-menu-signout { color: var(--danger); }
.profile-menu-signout svg { color: var(--danger); }

/* Mobile profile links */
.mobile-signout-link { color: var(--danger) !important; border-color: #fecaca !important; }
.mobile-login-link { color: var(--accent) !important; border-color: var(--accent) !important; }

/* ============================================
   FOOTER
   ============================================ */
.site-footer {
  background: #0a0a0a;
  color: #9ca3af;
  padding: 4rem 0 2rem;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.8fr 1fr 1fr 1fr;
    gap: 3rem;
  }
}
.footer-logo {
  display: inline-block;
  margin-bottom: 1rem;
}
.footer-logo-img {
  height: 22px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.9;
}
.footer-tagline {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: #6b7280;
  max-width: 20rem;
  margin: 0;
}
.footer-links-col h4 {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #d1d5db;
  margin: 0 0 1rem;
}
.footer-links-col a {
  display: block;
  font-size: 0.8125rem;
  color: #6b7280;
  padding: 0.25rem 0;
  transition: color 0.15s;
}
.footer-links-col a:hover {
  color: #fff;
}
.footer-bottom {
  padding-top: 1.5rem;
  text-align: center;
}
.footer-copy {
  font-size: 0.75rem;
  color: #4b5563;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  background: var(--surface);
  padding: 5rem 0 0;
  text-align: center;
  overflow: visible;
}
.hero h1 {
  max-width: 48rem;
  margin: 0 auto 1.5rem;
  font-size: 3rem;
}
@media (min-width: 640px) { .hero h1 { font-size: 3.75rem; } }
.hero p {
  font-size: 1.125rem;
  color: #4b5563;
  max-width: 36rem;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
}
.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.hero-actions .btn-primary { padding: 0.875rem 2rem; }
.hero-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s;
}
.hero-link:hover { color: var(--muted); }
.hero-link svg { width: 16px; height: 16px; transition: transform 0.15s; }
.hero-link:hover svg { transform: translateX(4px); }

/* Hero image window */
.hero-image-wrap {
  margin-top: 4rem;
  max-width: 64rem;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  margin-bottom: -8rem;
  z-index: 1;
}
.hero-image-wrap::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(to bottom, rgba(249,250,251,0) 0%, rgba(249,250,251,0) 20%, rgba(249,250,251,1) 70%);
  pointer-events: none;
  z-index: 2;
}
.hero-window {
  border: 1px solid var(--border);
  border-radius: 2px;
  box-shadow: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  overflow: hidden;
}
.hero-window-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #f3f4f6;
  border-bottom: 1px solid var(--border);
  padding: 10px 12px;
}
.hero-window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  border: 1px solid rgba(156,163,175,0.3);
}
.hero-window img { width: 100%; display: block; padding: 2rem; background: #fff; box-sizing: border-box; }

/* Hero mobile responsive */
@media (max-width: 640px) {
  .hero { padding: 3rem 0 0; }
  .hero .container { padding-top: 2rem !important; }
  .hero h1 { font-size: 2rem; margin-bottom: 1rem; }
  .hero p { font-size: 0.9375rem; margin-bottom: 1.75rem; }
  .hero-actions .btn-primary { padding: 0.75rem 1.25rem; font-size: 0.8125rem; }
  .hero-image-wrap { margin-top: 2.5rem; margin-bottom: -4rem; }
  .hero-window img { padding: 1rem; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 1.75rem; }
  .hero-actions { gap: 1rem; }
}

/* ============================================
   BUILDS SECTION
   ============================================ */
.builds-section {
  background: #fff;
  padding: 6rem 0;
  position: relative;
  z-index: 10;
}
.section-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.75rem;
}
.builds-section h2 { margin-bottom: 0.75rem; }
.section-desc {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2rem;
}

.builds-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .builds-grid { grid-template-columns: repeat(3, 1fr); }
}

.build-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  overflow: hidden;
}
.build-card.featured {
  border-color: rgba(22,101,52,0.3);
  box-shadow: 0 0 0 1px rgba(22,101,52,0.1);
}
.build-card-img {
  background: var(--surface);
  border-bottom: 1px solid #f3f4f6;
  height: 11rem;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.build-card-img svg { width: 80px; height: 80px; color: var(--border-strong); }
.build-card-tier {
  border-bottom: 1px solid #f3f4f6;
  padding: 0.75rem 1.5rem;
}
.build-card-tier span {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.build-card.featured .build-card-tier span { color: var(--accent); }
.build-card-body {
  flex: 1;
  padding: 1.25rem 1.5rem;
}
.build-card-body h3 { margin-bottom: 0.25rem; font-size: 1rem; }
.build-card-body > p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}
.build-card-specs {
  list-style: none;
  padding: 0;
  margin: 0;
}
.build-card-specs li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.375rem 0;
}
.build-card-specs li strong {
  font-weight: 500;
  color: #374151;
  width: 6rem;
  flex-shrink: 0;
}
.build-card-footer {
  border-top: 1px solid #f3f4f6;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.build-card-price small {
  font-size: 0.75rem;
  color: #9ca3af;
  display: block;
}
.build-card-price .amount {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1.125rem;
  color: var(--foreground);
}
.build-card-configure {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  transition: color 0.15s;
}
.build-card-configure:hover { color: var(--accent-strong); }
.build-card-configure svg { width: 14px; height: 14px; }

/* ============================================
   FEATURES SECTION
   ============================================ */
.features-section {
  background: var(--surface);
  padding: 8rem 0 8rem;
  position: relative;
  z-index: 10;
}
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}
@media (min-width: 768px) {
  .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-item {}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: #f3f4f6;
  border-radius: 2px;
  margin-bottom: 1rem;
}
.feature-icon svg { width: 24px; height: 24px; color: var(--foreground); }
.feature-item h3 { font-size: 1.125rem; font-weight: 600; margin-bottom: 0.5rem; }
.feature-item p { font-size: 0.875rem; color: #1f4d3a; line-height: 1.7; margin: 0; }

/* ============================================
   HOW IT WORKS SECTION
   ============================================ */
.how-section {
  background: #fff;
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}
.how-section .text-center { text-align: center; }
.how-section .text-center p {
  font-size: 0.875rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0.75rem auto 0;
}
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  margin-top: 4rem;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
}
.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--foreground);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 2px;
}
.step-item h3 { margin-top: 1rem; margin-bottom: 0.5rem; font-size: 1rem; }
.step-item p { font-size: 0.875rem; color: var(--muted); line-height: 1.7; margin: 0; }

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  background: var(--surface);
  padding: 6rem 0;
  border-top: 1px solid var(--border);
}
.cta-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}
@media (min-width: 768px) {
  .cta-grid { grid-template-columns: 1fr 1fr; }
}
.cta-grid h2 { margin-bottom: 1rem; }
.cta-grid .cta-desc {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 2rem;
}
.cta-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.stat-box {
  border: 1px solid var(--border);
  border-radius: 2px;
  background: var(--surface);
  padding: 1.5rem;
  text-align: center;
}
.stat-box .stat-value {
  font-size: 1.875rem;
  font-weight: 700;
  color: var(--foreground);
}
.stat-box .stat-label {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.25rem;
}

/* ============================================
   BUILDER PAGE
   ============================================ */
.builder-page { padding: 2.5rem 0 4rem; }

/* --- Builder card layout --- */
.builder-cards {
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  background: #fff;
}

.builder-row-header {
  background: var(--surface);
  padding: 0.5rem 1rem;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
}
.builder-row-header span:not(:first-child) { text-align: right; }

.builder-row {
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  border-bottom: 1px solid #f3f4f6;
  min-height: 52px;
}
.builder-row:last-child { border-bottom: none; }

.builder-cat {
  padding: 0 1rem;
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--foreground);
  white-space: nowrap;
}

.builder-comp {
  padding: 0.625rem 0.75rem;
  min-width: 0;
  overflow: hidden;
}
.comp-name {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comp-specs {
  display: block;
  font-size: 0.6875rem;
  color: var(--muted);
  margin-top: 0.125rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.comp-empty {
  font-size: 0.8125rem;
  color: var(--muted);
  font-style: italic;
}

.builder-price {
  padding: 0 0.75rem;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.8125rem;
  white-space: nowrap;
  text-align: right;
  color: var(--foreground);
}

.builder-act {
  padding: 0.375rem 0.75rem;
  display: flex;
  gap: 0.375rem;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}

/* Total row */
.builder-total-row {
  background: var(--surface);
  display: grid;
  grid-template-columns: 140px 1fr auto auto;
  gap: 0.5rem;
  align-items: center;
  padding: 0.75rem 0;
  font-weight: 600;
  border-top: 1px solid var(--border);
}
.builder-total-row .builder-cat { font-size: 0.8125rem; }
.builder-total-row .builder-price { font-size: 1.125rem; font-weight: 700; }

/* --- Builder buttons --- */
.btn-add {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  border: 1px dashed var(--border-strong);
  background: none;
  color: var(--muted);
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 2px;
  transition: all 0.15s;
  font-family: var(--font-sans);
}
.btn-add:hover { border-color: var(--accent); color: var(--accent); }

.btn-change {
  border: none;
  background: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 2px;
  font-family: var(--font-sans);
  transition: color 0.15s;
}
.btn-change:hover { color: var(--accent); }

.btn-buy {
  border: none;
  background: var(--accent);
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  padding: 0.375rem 1rem;
  border-radius: 4px;
  font-family: var(--font-sans);
  transition: all 0.15s;
}
.btn-buy:hover {
  background: var(--accent-strong);
  color: #fff;
}

.btn-x {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--border-strong);
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 2px;
  transition: all 0.15s;
  line-height: 0;
}
.btn-x:hover { color: var(--danger); background: #fef2f2; }

/* Mobile: stack rows */
@media (max-width: 640px) {
  .builder-row, .builder-row-header, .builder-total-row {
    grid-template-columns: 1fr;
  }
  .builder-row-header { display: none; }
  .builder-cat {
    padding: 0.5rem 1rem 0;
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
  }
  .builder-comp { padding: 0.25rem 1rem; }
  .builder-price { padding: 0 1rem; text-align: left; }
  .builder-act { padding: 0.25rem 1rem 0.5rem; justify-content: flex-start; }
  .builder-total-row .builder-cat { padding: 0.75rem 1rem 0; }
  .builder-total-row .builder-price { padding: 0.25rem 1rem 0.75rem; text-align: left; font-size: 1rem; }
}

/* --- Compatibility panel --- */
.compat-panel {
  margin-top: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem;
}
.compat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.compat-header h3 { margin: 0; font-size: 1rem; }
.compat-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 2px;
  letter-spacing: 0.04em;
  background: var(--surface);
  color: var(--muted);
}

.compat-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
@media (min-width: 640px) {
  .compat-metrics { grid-template-columns: repeat(4, 1fr); }
}
.compat-metric {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 0.625rem 0.75rem;
  text-align: center;
  background: var(--surface);
}
.compat-metric-value {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--foreground);
  font-family: var(--font-mono);
}
@media (min-width: 640px) {
  .compat-metric-value { font-size: 1.375rem; }
}
.compat-metric-label {
  font-size: 0.625rem;
  color: var(--muted);
  margin-top: 0.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.compat-finding {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  padding: 0.625rem 0.75rem;
  border-radius: 2px;
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}
.compat-finding.error   { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.compat-finding.warning { background: #fefce8; color: #854d0e; border: 1px solid #fef08a; }
.compat-finding.info    { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }
.compat-finding.pass    { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.compat-finding svg { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.compat-finding-domain {
  font-size: 0.625rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.7;
  font-weight: 600;
}
.compat-finding-detail {
  font-size: 0.75rem;
  color: inherit;
  opacity: 0.8;
  margin-top: 0.25rem;
  white-space: pre-line;
  line-height: 1.5;
}

/* --- Selection modal --- */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  z-index: 50;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}
.modal-overlay.active { display: flex; }
@media (min-width: 640px) {
  .modal-overlay { padding: 2rem; }
}
.modal {
  background: #fff;
  border-radius: 2px;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  max-width: 560px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-header h3 { margin: 0; font-size: 1rem; }
.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  cursor: pointer;
  color: var(--muted);
  padding: 0.25rem;
  border-radius: 2px;
  transition: color 0.15s;
  line-height: 0;
}
.modal-close:hover { color: var(--foreground); background: var(--surface); }
.modal-body {
  padding: 1rem 1.25rem;
  overflow-y: auto;
  flex: 1;
  -webkit-overflow-scrolling: touch;
}
.modal-search {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  font-size: 0.8125rem;
  font-family: var(--font-sans);
  margin-bottom: 0.75rem;
}
.modal-search:focus { border-color: var(--accent); outline: none; }
.filter-note {
  font-size: 0.6875rem;
  color: var(--muted);
  text-align: center;
  margin: 0 0 0.75rem;
  padding: 0.375rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.part-option {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  margin-bottom: 0.375rem;
  cursor: pointer;
  transition: all 0.15s;
  gap: 0.75rem;
}
.part-option:hover { border-color: var(--accent); background: var(--surface); }
.part-option.selected { border-color: var(--accent); background: var(--accent-light); }
.part-option .part-name { font-weight: 500; font-size: 0.8125rem; }
.part-option .part-specs { font-size: 0.6875rem; color: var(--muted); margin-top: 0.125rem; }
.part-option .part-price { font-family: var(--font-mono); font-weight: 600; font-size: 0.8125rem; white-space: nowrap; flex-shrink: 0; }

@media (max-width: 400px) {
  .part-option { flex-direction: column; align-items: flex-start; }
  .part-option .part-price { align-self: flex-end; }
}

/* ============================================
   PARTS CATALOG
   ============================================ */
.parts-page { padding: 2.5rem 0 4rem; }
.category-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.category-tab {
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 2px;
  background: #fff;
  font-size: 0.8125rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  font-family: var(--font-sans);
  color: var(--muted);
}
.category-tab:hover { border-color: var(--border-strong); color: var(--foreground); }
.category-tab.active { background: var(--accent); color: #fff; border-color: var(--accent); }
.parts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) { .parts-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .parts-grid { grid-template-columns: repeat(3, 1fr); } }
.part-card {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.25rem;
  transition: border-color 0.15s;
}
.part-card:hover { border-color: var(--accent); }
.part-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}
.part-card .part-category {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
.part-card .part-title {
  font-weight: 600;
  font-size: 0.9375rem;
  margin-bottom: 0.25rem;
}
.part-card .part-subtitle {
  font-size: 0.8125rem;
  color: var(--muted);
  margin-bottom: 0.75rem;
}
.part-card .part-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  margin-bottom: 1rem;
}
.spec-badge {
  font-size: 0.6875rem;
  padding: 0.25rem 0.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  font-weight: 500;
}
.part-card .part-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.75rem;
  border-top: 1px solid #f3f4f6;
}
.part-card .part-price {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 1rem;
}
.part-view {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
}

/* ============================================
   PRODUCT DETAIL
   ============================================ */
.product-page { padding: 2rem 0 4rem; }

/* Breadcrumb */
.product-breadcrumb {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 2rem;
  display: flex;
  gap: 0.375rem;
  align-items: center;
  flex-wrap: wrap;
}
.product-breadcrumb a { color: var(--muted); transition: color 0.15s; }
.product-breadcrumb a:hover { color: var(--foreground); }
.product-breadcrumb svg { color: var(--border-strong); flex-shrink: 0; }
.breadcrumb-current { color: var(--foreground); font-weight: 600; }

/* Hero */
.product-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2.5rem;
}
@media (min-width: 768px) {
  .product-hero { grid-template-columns: 380px 1fr; gap: 3rem; }
}
.product-hero-image {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  min-height: 280px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  overflow: hidden;
}
.product-hero-image img {
  width: 100%;
  height: auto;
  max-height: 320px;
  object-fit: contain;
}
.product-hero-icon {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-hero-icon svg { width: 80px; height: 80px; color: var(--border-strong); }

.product-hero-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.product-cat-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  width: fit-content;
}
.product-hero-info h1 { font-size: 2rem; letter-spacing: -0.02em; margin-bottom: 0.5rem; }
@media (min-width: 768px) { .product-hero-info h1 { font-size: 2.5rem; } }
.product-subtitle {
  font-size: 1rem;
  color: var(--muted);
  margin-bottom: 1rem;
  line-height: 1.5;
}
.product-price-large {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1.5rem;
}
.product-cta-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.btn-lg {
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
}
.btn-buy-lg {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-sans);
  background: #0a0a0a;
  color: #fff;
  border: 1px solid #0a0a0a;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-buy-lg:hover { background: #27272a; border-color: #27272a; color: #fff; }
.btn-buy-lg svg { width: 16px; height: 16px; }

/* Key Specs Grid */
.product-key-specs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}
@media (min-width: 640px) { .product-key-specs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .product-key-specs { grid-template-columns: repeat(var(--key-cols, 4), 1fr); } }
.product-key-spec {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.product-key-spec:hover { border-color: var(--accent); box-shadow: 0 2px 8px rgba(37,99,235,0.06); }
.product-key-spec-value {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}
.product-key-spec-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}

/* Sections */
.product-section { margin-bottom: 3rem; }
.product-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--foreground);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid var(--foreground);
  letter-spacing: -0.01em;
}

/* Full Specs Table */
.product-specs-table-full {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.product-specs-table-full td {
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}
.product-specs-table-full tr:last-child td { border-bottom: none; }
.product-specs-table-full .spec-label {
  font-weight: 600;
  color: var(--muted);
  width: 180px;
  background: var(--surface);
  white-space: nowrap;
}
.product-specs-table-full .spec-value {
  color: var(--foreground);
  font-weight: 500;
}
.product-specs-table-full .spec-row-alt .spec-label { background: #f9fafb; }
.product-specs-table-full .spec-row-alt .spec-value { background: #fafbfc; }

/* Compatibility */
.product-compat-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.product-compat-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.875rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--foreground);
  line-height: 1.5;
}
.product-compat-icon {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 1px;
  white-space: nowrap;
  line-height: 1.5;
}

/* Similar Products Grid */
.product-similar-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 640px) { .product-similar-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .product-similar-grid { grid-template-columns: repeat(3, 1fr); } }
.product-similar-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: #fff;
}
.product-similar-card:hover { border-color: var(--accent); box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.similar-card-image {
  background: var(--surface);
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  border-bottom: 1px solid #f3f4f6;
}
.similar-card-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.similar-card-icon { width: 48px; height: 48px; }
.similar-card-icon svg { width: 48px; height: 48px; color: var(--border-strong); }
.similar-card-body {
  padding: 1rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.similar-card-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--foreground);
  margin-bottom: 0.375rem;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.similar-card-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-bottom: 0.75rem;
  flex: 1;
}
.similar-card-price {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--foreground);
  padding-top: 0.5rem;
  border-top: 1px solid #f3f4f6;
}

/* Affiliate Disclaimer */
.product-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.6;
}
.product-disclaimer svg { flex-shrink: 0; color: var(--border-strong); margin-top: 1px; }
.product-disclaimer a { color: var(--accent); text-decoration: underline; }
.product-disclaimer a:hover { color: var(--accent-strong); }

/* Product page mobile */
@media (max-width: 767px) {
  .product-hero { padding: 1rem 0; margin-bottom: 1.5rem; }
  .product-hero-image { min-height: 200px; padding: 1.5rem; }
  .product-hero-info h1 { font-size: 1.5rem; }
  .product-price-large { font-size: 1.5rem; }
  .product-cta-row { flex-direction: column; }
  .btn-buy-lg, .btn-lg { width: 100%; justify-content: center; text-align: center; }
  .product-key-specs { gap: 0.75rem; }
  .product-key-spec { padding: 1rem; }
  .product-key-spec-value { font-size: 1.125rem; }
  .product-specs-table-full .spec-label { width: 130px; font-size: 0.8125rem; }
  .product-specs-table-full .spec-value { font-size: 0.8125rem; }
  .product-similar-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
}

/* ============================================
   BLOG GRID
   ============================================ */

.blog-page { padding: 3rem 0 4rem; }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  justify-content: center;
}

.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s;
}
.blog-card:hover { border-color: var(--accent); }

.blog-card-image {
  height: 200px;
  background: var(--surface);
  overflow: hidden;
}
.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.blog-card:hover .blog-card-image img { transform: scale(1.03); }

.blog-card-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--border-strong);
}

.blog-card-body {
  padding: 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.blog-card-meta {
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  display: flex;
  gap: 0.375rem;
}
.blog-card-body h2 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.375rem;
}
.blog-card-body p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}
.blog-card-link {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-top: 0.75rem;
}

/* Empty state */
.blog-empty {
  text-align: center;
  padding: 6rem 0;
  color: var(--muted);
}
.blog-empty svg { margin: 0 auto 1rem; display: block; color: var(--border-strong); }
.blog-empty p { font-size: 0.9375rem; }

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.pagination-numbers {
  display: flex;
  gap: 0.25rem;
}
.pagination-numbers a,
.pagination-numbers span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border: 1px solid var(--border);
  border-radius: 2px;
  color: var(--muted);
  text-decoration: none;
  transition: all 0.15s;
}
.pagination-numbers a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.pagination-current {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.pagination-prev,
.pagination-next {
  min-width: 5rem;
  justify-content: center;
}

/* ============================================
   BLOG HERO — Light editorial
   ============================================ */
.blog-hero-breadcrumb {
  border-bottom: 1px solid #e5e7eb;
  background: #fff;
  padding: 1rem 0;
}
.blog-hero-breadcrumb .container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #a1a1aa;
}
.blog-hero-breadcrumb a { color: #a1a1aa; text-decoration: none; transition: color 0.15s; }
.blog-hero-breadcrumb a:hover { color: #18181b; }
.blog-hero-breadcrumb .bc-current { color: #18181b; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 260px; }

.blog-hero {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 2.5rem 0 3rem;
}
@media (min-width: 768px) { .blog-hero { padding: 3.5rem 0 4rem; } }
.blog-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) { .blog-hero-grid { grid-template-columns: 3fr 2fr; gap: 4rem; } }

.blog-hero-category {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-light);
  border: 1px solid rgba(37,99,235,0.15);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}
.blog-hero-text h1 {
  font-size: 2.5rem;
  font-weight: 600;
  color: #000;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 1.25rem;
}
@media (min-width: 768px) { .blog-hero-text h1 { font-size: 3rem; } }
@media (min-width: 1024px) { .blog-hero-text h1 { font-size: 3.25rem; } }
.blog-hero-excerpt {
  font-size: 1.0625rem;
  color: #666;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 0 2rem;
}
.blog-hero-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.blog-hero-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}
.blog-hero-author-name {
  font-size: 14px;
  font-weight: 600;
  color: #18181b;
  display: block;
}
.blog-hero-date-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: #999;
  margin-top: 2px;
}
.blog-hero-image-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.blog-hero-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ============================================
   SINGLE POST — CreatorConfig affiliate aesthetic
   ============================================ */
.blog-single-layout {
  max-width: 860px;
  margin: 0 auto;
  padding: 40px 20px 56px;
  font-family: 'Montserrat', var(--font-sans);
  color: #3f3f46;
  line-height: 1.7;
}
.blog-single-breadcrumb {
  font-size: 13px;
  color: #a1a1aa;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.blog-single-breadcrumb a { color: #a1a1aa; text-decoration: none; transition: color 0.15s; }
.blog-single-breadcrumb a:hover { color: #18181b; }
.blog-single-breadcrumb .bc-current { color: #18181b; font-weight: 500; }

.blog-single-layout {

/* Article prose */
.blog-single-content {
  font-size: 16px;
  color: #3f3f46;
  line-height: 1.8;
}
.blog-single-content p { margin: 0 0 1.5rem; }
.blog-single-content h2 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #18181b;
  margin: 2.5rem 0 1rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.blog-single-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #18181b;
  margin: 2rem 0 0.75rem;
  line-height: 1.35;
}
.blog-single-content strong { font-weight: 600; color: #18181b; }
.blog-single-content p a,
.blog-single-content li a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  font-weight: 500;
  transition: color 0.15s;
}
.blog-single-content p a:hover,
.blog-single-content li a:hover { color: var(--accent-strong); }
.blog-single-content ul, .blog-single-content ol { margin: 0 0 1.5rem; padding-left: 24px; }
.blog-single-content li { margin-bottom: 8px; line-height: 1.7; }
.blog-single-content img { border-radius: 8px; margin: 16px 0; display: block; }

/* --- Affiliate Disclaimer --- */
.affiliate-disclaimer {
  margin-bottom: 2.5rem;
  padding: 1rem 1.25rem;
  border-radius: 8px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  font-size: 12px;
  color: #4b5563;
  line-height: 1.65;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}
.affiliate-disclaimer svg { width: 18px; height: 18px; flex-shrink: 0; color: #9ca3af; margin-top: 1px; }
.affiliate-disclaimer a { color: var(--accent); text-decoration: underline; }
.affiliate-disclaimer a:hover { color: var(--accent-strong); }

/* --- Why this guide box --- */
.why-guide-box {
  margin-bottom: 2rem;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem 2rem;
  border-left: 4px solid var(--accent);
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  position: relative;
  overflow: hidden;
}
.why-guide-box h2 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #18181b;
  margin: 0 0 0.75rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.why-guide-box h2 svg { width: 20px; height: 20px; color: var(--accent); }
.why-guide-box p { font-size: 14px; color: #4b5563; line-height: 1.7; margin: 0; }
@media (min-width: 768px) { .why-guide-box p { font-size: 16px; } }

/* --- Quick Comparison Cards Grid --- */
.quick-compare-section { margin-bottom: 5rem; }
.quick-compare-heading {
  font-size: 1.5rem;
  font-weight: 700;
  color: #18181b;
  margin: 0 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.quick-compare-heading svg { width: 22px; height: 22px; color: var(--accent); }
.quick-compare-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 640px) { .quick-compare-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .quick-compare-grid { grid-template-columns: repeat(3, 1fr); } }
.quick-compare-bottom {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

/* Individual compare card */
.qc-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  padding: 1.25rem;
  position: relative;
  display: flex;
  flex-direction: column;
}
.qc-card.qc-editors {
  border: 2px solid rgba(37,99,235,0.2);
}
.qc-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.qc-badge svg { width: 12px; height: 12px; }
.qc-badge.bg-editors { background: var(--accent); }
.qc-badge.bg-value { background: #0f766e; }
.qc-badge.bg-premium { background: #374151; }
.qc-badge.bg-budget { background: #4b5563; }
.qc-badge.bg-workstation { background: #991b1b; }

.qc-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 1rem;
  margin-top: 4px;
}
.qc-top img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #f3f4f6;
  padding: 4px;
  flex-shrink: 0;
}
.qc-name {
  font-size: 14px;
  font-weight: 700;
  color: #18181b;
  line-height: 1.3;
}
.qc-subtitle { font-size: 11px; font-weight: 600; margin-top: 2px; }
.qc-subtitle.sub-editors { color: var(--accent); }
.qc-subtitle.sub-value { color: #0f766e; }
.qc-subtitle.sub-premium { color: #374151; }
.qc-subtitle.sub-budget { color: #4b5563; }
.qc-subtitle.sub-workstation { color: #991b1b; }

.qc-specs { display: flex; flex-direction: column; gap: 8px; margin-bottom: 1rem; flex: 1; }
.qc-spec-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}
.qc-spec-row span:first-child { color: #6b7280; }
.qc-spec-row span:last-child { font-weight: 500; color: #374151; text-align: right; }

.qc-actions { display: flex; gap: 8px; }
.qc-btn-review {
  flex: 1;
  text-align: center;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s;
}
.qc-btn-review:hover { background: var(--accent-strong) !important; color: #fff !important; }
.qc-card.qc-editors .qc-btn-review { box-shadow: 0 1px 4px rgba(37,99,235,0.2); }
.qc-btn-review.btn-gray {
  background: #e5e7eb !important;
  color: #18181b !important;
}
.qc-btn-review.btn-gray:hover { background: #d1d5db !important; }
.qc-btn-part {
  flex: 1;
  text-align: center;
  background: #f3f4f6 !important;
  color: #374151 !important;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s;
}
.qc-btn-part:hover { background: #e5e7eb !important; }
.qc-btn-buy {
  flex: 1;
  text-align: center;
  background: #18181b !important;
  color: #fff !important;
  font-size: 12px;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s;
}
.qc-btn-buy:hover { background: #27272a !important; color: #fff !important; }

/* --- Product Review Articles --- */
.product-reviews-section {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  margin-top: 3rem;
}
@media (min-width: 640px) { .product-reviews-section { gap: 4rem; } }

.product-review {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  border: 1px solid #e5e7eb;
  overflow: hidden;
  position: relative;
}
.product-review.pr-editors { border-color: rgba(37,99,235,0.2); }
.pr-top-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--accent);
}
.product-review-inner {
  padding: 1.5rem;
  display: flex;
  gap: 2.5rem;
  align-items: flex-start;
}
@media (max-width: 768px) { .product-review-inner { flex-direction: column; } }
@media (min-width: 768px) { .product-review-inner { padding: 2rem 2.5rem; } }

/* Left sidebar (1/3) */
.pr-sidebar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
@media (min-width: 768px) { .pr-sidebar { width: 33%; flex-shrink: 0; } }

.pr-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.pr-badge svg { width: 12px; height: 12px; }
.pr-badge.bg-editors { background: var(--accent); }
.pr-badge.bg-value { background: #0f766e; }
.pr-badge.bg-premium { background: #374151; }
.pr-badge.bg-budget { background: #4b5563; }
.pr-badge.bg-workstation { background: #991b1b; }

.pr-image-box {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 1;
  background: #fff;
  border-radius: 12px;
  border: 1px solid #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}
.pr-image-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pr-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: #18181b;
  text-align: center;
  margin: 0 0 0.25rem;
}
.pr-price {
  font-size: 1.75rem;
  font-weight: 800;
  color: #18181b;
  text-align: center;
  margin: 0.75rem 0 1.25rem;
}
.pr-cta-main {
  width: 100%;
  max-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent) !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(37,99,235,0.2);
  transition: all 0.2s;
  margin-bottom: 0.75rem;
}
.pr-cta-main:hover { background: var(--accent-strong) !important; color: #fff !important; transform: translateY(-1px); }
.pr-cta-main svg { width: 18px; height: 18px; }

.pr-cta-buy {
  width: 100%;
  max-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #18181b !important;
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  transition: all 0.2s;
  margin-bottom: 0.75rem;
}
.pr-cta-buy:hover { background: #27272a !important; color: #fff !important; transform: translateY(-1px); }
.pr-cta-buy svg { width: 18px; height: 18px; }

.pr-cta-secondary {
  width: 100%;
  max-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #f3f4f6 !important;
  color: #374151 !important;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s;
  margin-bottom: 0.5rem;
}
.pr-cta-secondary:hover { background: #e5e7eb !important; }

/* Specs box in sidebar */
.pr-specs-box {
  width: 100%;
  max-width: 250px;
  margin-top: 1rem;
  background: #f9fafb;
  border-radius: 8px;
  padding: 1rem;
  border: 1px solid #e5e7eb;
}
.pr-specs-box h4 {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #18181b;
  margin: 0 0 0.75rem;
}
.pr-specs-box dl { margin: 0; }
.pr-specs-box .spec-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 12px;
}
.pr-specs-box .spec-row:not(:last-child) { border-bottom: 1px solid #f3f4f6; }
.pr-specs-box dt { color: #6b7280; font-weight: 500; }
.pr-specs-box dd { font-weight: 500; color: #18181b; margin: 0; text-align: right; }

/* Right content (2/3) */
.pr-content { flex: 1; min-width: 0; }
.pr-content p {
  font-size: 16px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* Pros/Cons */
.pr-pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 640px) { .pr-pros-cons { grid-template-columns: 1fr 1fr; } }

.pr-pros-box {
  background: #ecfdf5;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #d1fae5;
}
.pr-pros-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #064e3b;
  margin: 0 0 0.75rem;
}
.pr-pros-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #065f46;
}
.pr-pros-box li { padding: 4px 0; }
.pr-pros-box li::before { content: "\2022 "; color: #22c55e; }

.pr-cons-box {
  background: #fef2f2;
  border-radius: 12px;
  padding: 1.25rem;
  border: 1px solid #fecaca;
}
.pr-cons-box h4 {
  font-size: 14px;
  font-weight: 700;
  color: #7f1d1d;
  margin: 0 0 0.75rem;
}
.pr-cons-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 14px;
  color: #991b1b;
}
.pr-cons-box li { padding: 4px 0; }
.pr-cons-box li::before { content: "\2022 "; color: #ef4444; }

/* --- Buying Guide section --- */
.buying-guide-section {
  margin-top: 5rem;
  background: #fff;
  border-radius: 24px;
  padding: 2rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
@media (min-width: 768px) { .buying-guide-section { padding: 3rem; } }
.buying-guide-section h2 {
  font-size: 1.75rem;
  font-weight: 800;
  color: #18181b;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}
.buying-guide-section p {
  font-size: 16px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1.25rem;
}

/* --- Final Thoughts --- */
.final-thoughts { margin-top: 4rem; padding-bottom: 3rem; }
.final-thoughts h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #18181b;
  margin: 0 0 1.5rem;
}
.final-thoughts-box {
  background: #f9fafb;
  padding: 2rem;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
}
.final-thoughts-box p {
  font-size: 16px;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.final-thoughts-box p:last-child { margin-bottom: 0; }

/* Back to blog nav */
.blog-single-nav {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid #e5e7eb;
}

/* WordPress alignment fixes */
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignleft { float: left; margin-right: 1rem; }
.alignright { float: right; margin-left: 1rem; }

/* WordPress caption */
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.8125rem; color: var(--muted); text-align: center; margin-top: 0.5rem; }

/* Screen reader text */
.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;
}

/* ============================================
   ABOUT PAGE
   ============================================ */

/* Intro — big typographic statement */
.about-intro {
  padding: 8rem 0 6rem;
  background: #0a0a0a;
  color: #fff;
  position: relative;
  overflow: hidden;
}
.about-intro::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(22,101,52,0.15) 0%, transparent 70%);
  pointer-events: none;
}
.about-intro-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  border: 1px solid rgba(22,101,52,0.4);
  padding: 0.375rem 0.875rem;
  border-radius: 2px;
  margin-bottom: 2rem;
  background: rgba(22,101,52,0.08);
}
.about-intro-title {
  font-size: 4.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 36rem;
}
.about-intro-title br { display: inline; }
@media (max-width: 768px) {
  .about-intro { padding: 5rem 0 4rem; }
  .about-intro-title { font-size: 2.75rem; }
}

/* Split bio section */
.about-split {
  padding: 5rem 0;
  background: #fff;
}
.about-split-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.about-portrait {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2.5rem;
}
.about-portrait-inner {
  width: 160px;
  height: 160px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--accent) 0%, #0369a1 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 40px -10px rgba(22,101,52,0.25);
}
.about-portrait-inner span {
  font-size: 4rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.04em;
}
.about-bio-text {
  max-width: 48rem;
}
.about-bio-text p {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
@media (max-width: 768px) {
  .about-portrait-inner { width: 120px; height: 120px; }
  .about-portrait-inner span { font-size: 3rem; }
}

.about-lead {
  font-size: 1.25rem;
  font-weight: 500;
  color: var(--foreground);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.about-lead em {
  font-style: normal;
  color: var(--accent);
}

/* Timeline */
.about-timeline-section {
  padding: 6rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.about-timeline-header {
  max-width: 28rem;
  margin-bottom: 3.5rem;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}
.about-timeline-header h2 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}
.about-timeline-header p {
  font-size: 0.9375rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}

.about-timeline {
  position: relative;
  padding-left: 3rem;
  max-width: 48rem;
  margin: 0 auto;
}
.about-timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border-strong);
}
.about-tl-item {
  position: relative;
  padding-bottom: 3rem;
}
.about-tl-item:last-child { padding-bottom: 0; }
.about-tl-item::before {
  content: '';
  position: absolute;
  left: -3rem;
  top: 0.375rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--surface);
  transform: translateX(-4px);
}
.about-tl-year {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.about-tl-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.about-tl-content p {
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 32rem;
}

/* Philosophy section */
.about-philosophy {
  padding: 6rem 0;
  background: #fff;
  border-top: 1px solid var(--border);
}
.about-phil-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 4rem;
  max-width: 64rem;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .about-phil-grid { grid-template-columns: 1.4fr 1fr; }
}
.about-phil-main h2 {
  font-size: 1.75rem;
  margin-bottom: 1rem;
}
.about-phil-lead {
  font-size: 1.0625rem;
  color: #374151;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  max-width: 32rem;
}
.about-beliefs { display: flex; flex-direction: column; gap: 2rem; }
.about-belief {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
}
.about-belief-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-light);
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  flex-shrink: 0;
  margin-top: 0.125rem;
}
.about-belief h3 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
}
.about-belief p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.65;
  margin: 0;
}

/* Sidebar cards */
.about-phil-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.about-quote-card {
  background: #0a0a0a;
  color: #fff;
  border-radius: 4px;
  padding: 2rem;
  position: relative;
}
.about-quote-mark {
  font-size: 3rem;
  line-height: 1;
  color: var(--accent);
  font-family: Georgia, serif;
  margin-bottom: 0.5rem;
}
.about-quote-card p {
  font-size: 1rem;
  line-height: 1.6;
  font-style: italic;
  color: #d1d5db;
  margin-bottom: 1rem;
}
.about-quote-attr {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  font-style: normal;
}

.about-tools-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5rem;
  background: var(--surface);
}
.about-tools-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.about-tools-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.about-tools-card li {
  font-size: 0.8125rem;
  color: var(--foreground);
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  line-height: 1.4;
}
.about-tools-card li:last-child { border-bottom: none; }
.about-tools-card li strong {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  display: block;
  margin-bottom: 0.125rem;
}

/* Outro */
.about-outro {
  padding: 6rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  text-align: center;
}
.about-outro h2 {
  font-size: 2.25rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.about-outro p {
  font-size: 1rem;
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.about-outro-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.about-outro-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #0a0a0a;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.875rem 2rem;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.15s;
}
.about-outro-btn:hover { background: #222; }
.about-outro-link {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.15s;
}
.about-outro-link:hover { color: var(--muted); }

/* ============================================
   SHARED PAGE HERO
   ============================================ */
.page-hero {
  background: #0a0a0a;
  color: #fff;
  padding: 4.5rem 0 4.5rem;
}
.page-hero h1 {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 0 0 1rem;
  color: #fff;
}
@media (min-width: 768px) {
  .page-hero h1 { font-size: 3.25rem; }
}
.page-hero-desc {
  font-size: 1rem;
  color: #9ca3af;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0;
}

.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: end;
}
@media (min-width: 768px) {
  .page-hero-grid { grid-template-columns: 1fr auto; }
}

.page-hero-stats {
  display: flex;
  gap: 2rem;
}
.page-hero-stat {
  text-align: center;
}
.page-hero-stat-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.page-hero-stat-label {
  display: block;
  font-size: 0.6875rem;
  color: #6b7280;
  margin-top: 0.375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

@media (max-width: 767px) {
  .page-hero { padding: 3.5rem 0 2.5rem; }
  .page-hero h1 { font-size: 2rem; }
  .page-hero-stats { gap: 1.5rem; }
  .page-hero-stat-num { font-size: 1.375rem; }
}

/* ============================================
   AI NEWS PAGE
   ============================================ */
.news-filter-bar {
  border-bottom: 1px solid var(--border);
  background: #fff;
  position: sticky;
  top: 64px;
  z-index: 30;
}
body.admin-bar .news-filter-bar { top: 96px; }
@media screen and (max-width: 782px) {
  body.admin-bar .news-filter-bar { top: 110px; }
}
.news-filter-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
}
.news-filters {
  display: flex;
  gap: 0;
}
.news-filter {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.875rem 1rem;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: all 0.15s;
}
.news-filter:hover { color: var(--foreground); }
.news-filter.active {
  color: var(--foreground);
  border-bottom-color: var(--foreground);
  font-weight: 600;
}
.news-count {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* --- Feed sections toggle --- */
.news-section { display: none; }
.news-section.active { display: block; }
.news-body {
  background: var(--surface);
  padding: 2.5rem 0 4rem;
  min-height: 60vh;
}

/* --- Mist RSS grid --- */
.mist-rss {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 768px) {
  .mist-rss { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1024px) {
  .mist-rss { grid-template-columns: 1fr 1fr 1fr; }
}

.mist-rss-item {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.mist-rss-item:hover {
  border-color: var(--foreground);
  box-shadow: 0 4px 16px rgba(0,0,0,0.07);
}

.mist-rss-thumb {
  line-height: 0;
  overflow: hidden;
  background: var(--surface);
}
.mist-rss-thumb a { display: block; }
.mist-rss-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s;
}
.mist-rss-item:hover .mist-rss-thumb img { transform: scale(1.03); }

.mist-rss-body {
  padding: 1.25rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.mist-rss-source {
  font-size: 0.625rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.mist-rss-title {
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1.4;
  margin: 0 0 0.5rem;
}
.mist-rss-title a {
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.15s;
}
.mist-rss-title a:hover { color: var(--accent); }

.mist-rss-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.6875rem;
  color: #9ca3af;
  margin-bottom: 0.625rem;
}
.mist-rss-meta span { color: var(--muted); }

.mist-rss-summary {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.mist-rss-empty {
  text-align: center;
  padding: 4rem 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* Mobile */
@media (max-width: 767px) {
  .news-intro { padding: 3.5rem 0 2.5rem; }
  .news-intro h1 { font-size: 2rem; }
  .news-intro-stats { gap: 1.5rem; }
  .news-stat-num { font-size: 1.375rem; }
  .news-filter { font-size: 0.75rem; padding: 0.75rem 0.625rem; }
  .news-count { display: none; }
  .mist-rss-thumb img { height: 160px; }
}

/* --- Footer strip --- */
.news-footer-strip {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
  background: #fff;
}
.news-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.news-footer-strip p {
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
.news-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--foreground);
  text-decoration: none;
  transition: color 0.15s;
}
.news-back-link:hover { color: var(--accent); }
.news-back-link svg { color: var(--muted); }

/* ============================================
   LEGAL PAGES
   ============================================ */
.legal-page {
  padding: 4rem 0 5rem;
}
.legal-content {
  max-width: 44rem;
  margin: 0 auto;
}
.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  letter-spacing: -0.01em;
}
.legal-content h2:first-of-type {
  margin-top: 0;
}
.legal-content p {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 1rem;
}
.legal-content ul {
  margin: 0 0 1.25rem;
  padding-left: 1.25rem;
}
.legal-content li {
  font-size: 0.9375rem;
  color: #4b5563;
  line-height: 1.75;
  margin-bottom: 0.5rem;
}
.legal-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover { color: var(--accent-strong); }
.legal-updated {
  font-size: 0.8125rem;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}
.legal-notice {
  background: var(--accent-light);
  border: 1px solid #bfdbfe;
  border-radius: 4px;
  padding: 1.25rem 1.5rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #1e3a5f;
  margin-bottom: 2rem;
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}
@media (min-width: 768px) {
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
}
.contact-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2rem 1.5rem;
  text-align: center;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(37,99,235,0.08);
}
.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--accent-light);
  border-radius: 50%;
  margin-bottom: 1.25rem;
  color: var(--accent);
}
.contact-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.contact-card p {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
}
.contact-link {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  transition: color 0.15s;
}
.contact-link:hover { color: var(--accent-strong); }
