:root {
  /* Colors - Light Mode */
  --color-primary: #f97316;       /* decorative: icons, borders, large headings, dark-bg text */
  --color-primary-dark: #ea580c;  /* hover state */
  --color-primary-text: #c05000;  /* WCAG AA: orange text on light bg — 4.6:1 on #f9fafb, 4.8:1 on #fff */
  --color-text: #1f2937;
  --color-text-light: #4b5563; /* WCAG AA: 9.8:1 on #ffffff */
  --color-bg: #ffffff;
  --color-bg-alt: #f9fafb;
  --color-border: #e5e7eb;
  --color-white: #ffffff;

  /* Typography */
  --font-sans: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;
  --font-size-base: 1rem;
  --font-size-sm: 0.875rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --radius-sm: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;

  /* Transitions */
  --transition-base: all 0.2s ease-in-out;
}

/* Dark Mode */
[data-theme="dark"] {
  --color-text: #f9fafb;
  --color-text-light: #d1d5db;
  --color-bg: #111827;
  --color-bg-alt: #1f2937;
  --color-border: #374151;
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.3), 0 4px 6px -4px rgb(0 0 0 / 0.3);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}

body {
  font-family: var(--font-sans);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--color-primary);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: var(--transition-base);
}

a:hover {
  color: var(--color-primary-dark);
}

/* Exceptions for navigation and UI components */
.main-nav a,
.btn,
.logo,
.logo a,
.card a,
.footer-logo,
.footer-logo a,
.read-article-link,
.page-link,
.blog-image-link,
.breadcrumb a,
.hero-actions a {
  text-decoration: none;
}

/* ACCESSIBILITY: Focus indicators for keyboard navigation */
*:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

*:focus:not(:focus-visible) {
  outline: none;
}

.btn:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 4px;
}

.dark-mode-toggle:focus-visible {
  outline: 3px solid var(--color-primary);
  outline-offset: 2px;
  background-color: var(--color-bg-alt);
}

.card:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.3);
}

ul {
  list-style: none;
}

/* Typography */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

h1 {
  font-size: var(--font-size-4xl);
}

h2 {
  font-size: var(--font-size-3xl);
}

h3 {
  font-size: var(--font-size-2xl);
}

p {
  margin-bottom: var(--space-4);
}

/* Heading Anchors */
.anchor-link {
  opacity: 1;
  color: var(--color-text);
  margin-left: var(--space-2);
  display: inline-flex;
  align-items: center;
  transition: var(--transition-base);
  vertical-align: middle;
}

.anchor-link:hover {
  color: var(--color-primary);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-4);
  padding-right: var(--space-4);
}

.grid {
  display: grid;
  gap: var(--space-8);
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

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

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Components */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-3) var(--space-6);
  border: none;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition-base);
}

.btn-primary {
  background-color: var(--color-primary-text);
  color: var(--color-white);
}

.btn-primary:hover {
  background-color: #a04000;
  color: var(--color-white);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.card {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  transition: var(--transition-base);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

a.card, a.card:hover {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.card-icon {
  width: 48px;
  height: 48px;
  background-color: #f3f4f6;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.card h3 {
  font-size: var(--font-size-xl);
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.card .card-description {
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  margin-bottom: var(--space-6);
  line-height: 1.6;
}

.card ul {
  list-style: none;
  margin-bottom: var(--space-6);
  flex-grow: 1;
}

.card ul li {
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  margin-bottom: var(--space-2);
  padding-left: var(--space-6);
  position: relative;
}

.card ul li::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  position: absolute;
  left: 0;
}

.card .btn {
  width: 100%;
  text-align: center;
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
  font-weight: 500;
}

.card .btn:hover {
  background-color: var(--color-bg-alt);
  transform: none;
  box-shadow: none;
}

/* Blog Card Styles */
.blog-card {
  padding: var(--space-6);
}

.blog-card .card-icon {
  display: none;
}

.blog-card ul {
  display: none;
}

.blog-date {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.blog-card h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

.read-article-link {
  display: inline-block;
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 600;
  margin-top: auto;
  transition: var(--transition-base);
}

.read-article-link:hover {
  color: var(--color-primary-dark);
  transform: translateX(4px);
}

/* Blog Card with Featured Image */
.blog-card-featured {
  padding: 0;
  overflow: hidden;
  position: relative;
}

.stretched-link::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  cursor: pointer;
}

.blog-image-link {
  display: block;
  position: relative;
  overflow: hidden;
}

.blog-featured-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.3s ease, transform 0.3s ease;
}

.blog-card-featured:hover .blog-featured-image {
  filter: grayscale(0%);
  transform: scale(1.05);
}

.blog-category-badge {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background-color: var(--color-white);
  color: var(--color-text);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  z-index: 10;
}

/* Dark Mode Overrides */
[data-theme="dark"] .card-icon {
  background-color: rgba(255, 255, 255, 0.1);
  color: var(--color-white);
}

[data-theme="dark"] .blog-category-badge {
  color: #1f2937;
  /* Force dark text on white badge */
}

.blog-card-content {
  padding: var(--space-6);
}

.blog-meta {
  display: flex;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
}

.blog-card-featured h3 {
  font-size: var(--font-size-xl);
  margin-bottom: var(--space-3);
}

.blog-card-featured h3 {
  color: var(--color-text);
}

.blog-card-featured:hover h3 {
  color: var(--color-primary);
}

/* Featured Large Blog Card (Latest Post) */
@media (min-width: 768px) {
  .blog-card-featured-large {
    grid-column: span 2;
  }

  .blog-card-featured-large .blog-featured-image {
    height: 300px;
  }

  .blog-card-featured-large h3 {
    font-size: var(--font-size-2xl);
  }

  .blog-card-featured-large .card-description {
    font-size: var(--font-size-lg);
  }
}

/* Section Description */
.section-description {
  max-width: 700px;
  margin: var(--space-4) auto 0;
  color: var(--color-text-light);
  font-size: var(--font-size-lg);
}

/* ACCESSIBILITY: Skip to content link */
.skip-to-content {
  position: absolute;
  top: 0;
  left: 0;
  background: var(--color-primary);
  color: white;
  padding: var(--space-4) var(--space-6);
  text-decoration: none;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 var(--radius-md) 0;
  transform: translateY(-110%);
  transition: transform 0.3s ease;
}

.skip-to-content:focus {
  transform: translateY(0);
}

/* Header */
.site-header {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 0;
  background-color: var(--color-bg);
  backdrop-filter: blur(8px);
  z-index: 50;
  transition: var(--transition-base);
}

[data-theme="dark"] .site-header {
  background-color: rgba(17, 24, 39, 0.9);
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-8);
}

.logo {
  font-weight: 800;
  font-size: var(--font-size-xl);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

.logo-text {
  white-space: nowrap;
}

.main-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.main-nav ul {
  display: flex;
  gap: var(--space-8);
  align-items: center;
}

.main-nav a {
  font-weight: 500;
  color: var(--color-text);
  font-size: var(--font-size-sm);
}

.main-nav a:hover {
  color: var(--color-primary);
}

.main-nav a.active {
  color: var(--color-primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  flex-shrink: 0;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  color: var(--color-text);
  border-radius: var(--radius-md);
  transition: var(--transition-base);
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
}

.menu-toggle:hover {
  background-color: var(--color-bg-alt);
}

.menu-toggle .menu-close { display: none; }
.menu-toggle[aria-expanded="true"] .menu-open { display: none; }
.menu-toggle[aria-expanded="true"] .menu-close { display: block; }

@media (max-width: 900px) {
  .menu-toggle { display: inline-flex; }
  .nav-wrapper { gap: var(--space-3); }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-lg);
    flex-direction: column;
    padding: var(--space-4) 0;
    display: none;
  }
  [data-theme="dark"] .main-nav {
    background-color: rgba(17, 24, 39, 0.98);
  }
  .main-nav.is-open { display: flex; }
  .main-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .main-nav li { width: 100%; }
  .main-nav a {
    display: block;
    padding: var(--space-3) var(--space-4);
    font-size: var(--font-size-base);
    min-height: 44px;
    display: flex;
    align-items: center;
  }
}

@media (max-width: 640px) {
  .header-actions .btn-dark { display: none; }
}

.dark-mode-toggle {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: var(--space-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text);
  transition: var(--transition-base);
  border-radius: var(--radius-md);
}

.dark-mode-toggle:hover {
  background-color: var(--color-bg-alt);
}

[data-theme="light"] .moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

.btn-dark {
  background-color: #1f2937;
  color: white;
  border: none;
}

.btn-dark:hover {
  background-color: #111827;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #1a1f2e 0%, #0f1419 100%);
  color: var(--color-white);
  padding: var(--space-16) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-simple {
  padding: var(--space-12) 0;
}

/* Light mode CTA section */
[data-theme="light"] .cta-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

@media (max-width: 768px) {
  .cta-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.cta-content h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-4);
}

.cta-content p {
  color: #9ca3af;
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-8);
  max-width: 500px;
}

.cta-content-center {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content-center .contact-info {
  margin: 0 auto;
}

.contact-info {
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  background-color: rgba(255, 255, 255, 0.05);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-label {
  display: block;
  font-size: var(--font-size-sm);
  color: #9ca3af;
}

.contact-value {
  display: block;
  font-weight: 600;
  color: var(--color-white);
}

.contact-value:hover {
  color: var(--color-primary);
}

/* Contact Form */
.contact-form-wrapper {
  background-color: var(--color-white);
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  color: var(--color-text);
  transition: var(--transition-base);
  border: 1px solid transparent;
}

.contact-form-wrapper:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

.contact-form-wrapper h3 {
  font-size: var(--font-size-2xl);
  margin-bottom: var(--space-6);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.form-group {
  margin-bottom: var(--space-4);
}

.form-group label {
  display: block;
  font-size: var(--font-size-sm);
  font-weight: 500;
  margin-bottom: var(--space-2);
  color: var(--color-text-light);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background-color: var(--color-bg-alt);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  transition: var(--transition-base);
  appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-3) center;
  padding-right: var(--space-8);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.1);
}

/* ACCESSIBILITY: Required field indicator */
.required {
  color: #dc2626;
  font-weight: 700;
  margin-left: 2px;
}

/* ACCESSIBILITY: Error states for form validation */
.form-group input[aria-invalid="true"],
.form-group select[aria-invalid="true"],
.form-group textarea[aria-invalid="true"] {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.error-message {
  display: block;
  color: #dc2626;
  font-size: var(--font-size-sm);
  margin-top: var(--space-2);
  font-weight: 500;
}

.error-message[hidden] {
  display: none;
}

/* ACCESSIBILITY: Button loading state */
.btn-spinner {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.btn-spinner[hidden] {
  display: none;
}

.btn-spinner svg {
  display: inline-block;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.btn-block {
  width: 100%;
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  font-size: var(--font-size-base);
  font-weight: 600;
  border: none;
  box-shadow: none;
}

/* Footer Bottom */
.site-footer {
  background-color: var(--color-bg-alt);
  padding: var(--space-8) 0;
  border-top: 1px solid var(--color-border);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: var(--font-size-lg);
  transition: var(--transition-base);
}

.logo-image {
  height: 40px;
  width: auto;
}

.footer-logo .logo-image {
  height: 20px;
  width: auto;
}

.logo:hover {
  opacity: 0.8;
}

.footer-links {
  display: flex;
  gap: var(--space-6);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  align-items: center;
}

.footer-links a {
  color: var(--color-text-light);
}

.footer-links a:hover {
  color: var(--color-primary-text);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .site-footer {
  background-color: #1f2937;
  border-top-color: #374151;
}

[data-theme="dark"] .contact-form-wrapper {
  background-color: #1f2937;
  color: var(--color-white);
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group select,
[data-theme="dark"] .form-group textarea {
  background-color: #111827;
  border-color: #374151;
  color: var(--color-white);
}


/* Utilities */
.text-center {
  text-align: center;
}

.mb-4 {
  margin-bottom: var(--space-4);
}

.mb-8 {
  margin-bottom: var(--space-8);
}

.mb-12 {
  margin-bottom: var(--space-12);
}

.mb-24 {
  margin-bottom: var(--space-24);
}

.mt-8 {
  margin-top: var(--space-8);
}

.section-padding {
  padding: var(--space-16) 0;
}

.related-articles {
  margin-top: var(--space-16);
}

.h3 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
}

.text-primary {
  color: var(--color-primary);
}

.text-sm {
  font-size: var(--font-size-sm);
}

.text-muted {
  color: var(--color-text-light);
}

/* ACCESSIBILITY: Section label for proper heading hierarchy */
.section-label {
  display: block;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

/* Hero Section */
.hero {
  padding: var(--space-16) 0;
}

.hero-content {
  max-width: 700px;
}

.hero-badge {
  display: inline-block;
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-4);
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.1;
  margin-bottom: var(--space-6);
  font-weight: 700;
}

.hero p {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.btn-secondary {
  background-color: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-bg-alt);
  transform: translateY(-1px);
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  margin-top: var(--space-12);
}

.pagination-list {
  display: flex;
  gap: var(--space-2);
}

.page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  transition: var(--transition-base);
}

.page-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

[data-theme="dark"] .page-link {
  background-color: var(--color-bg-alt);
  border-color: var(--color-border);
  color: var(--color-text);
}

[data-theme="dark"] .page-link:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

[data-theme="dark"] .page-item.active .page-link {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: var(--color-white);
}

/* Blog Header Background */
.blog-header-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  z-index: 0;
  overflow: hidden;
}

.blog-image-wrapper {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.blog-image-wrapper .blog-category-badge {
  top: var(--space-6);
  left: var(--space-6);
}

.blog-post-container {
  padding-top: calc(var(--space-12) + 60px);
  /* Account for header */
  padding-bottom: var(--space-12);
}

.blog-post-header {
  text-align: left;
}

.blog-post-title {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-8);
}

.blog-post-header .blog-header-meta {
  display: flex;
  gap: var(--space-4);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
}

.blog-post-header .blog-header-meta span {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.blog-header-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%) blur(4px);
  transform: scale(1.1);
}

.blog-header-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(17, 24, 39, 0.7);
  /* Dark overlay */
}

.blog-header h1 {
  font-size: var(--font-size-4xl);
  margin-bottom: 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.blog-featured-image-single {
  width: 100%;
  height: auto;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}

/* Prose (Typography) */
.prose {
  font-size: var(--font-size-lg);
  line-height: 1.8;
  color: var(--color-text);
}

.prose h2 {
  font-size: var(--font-size-2xl);
  margin-top: var(--space-8);
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.prose h3 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-6);
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-6);
  padding-left: var(--space-6);
}

.prose li {
  margin-bottom: var(--space-2);
}

.prose strong {
  font-weight: 700;
  color: var(--color-text);
}

/* ========== SHORTCODES ========== */

/* YouTube Lite Embed */
.youtube-lite {
  position: relative;
  width: 100%;
  max-width: 100%;
  margin: 0;
  border-radius: 0;
  overflow: hidden;
  background-color: #000;
}

/* Add spacing only when there's a caption */
.youtube-lite-with-caption {
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--color-border);
}

.youtube-lite-caption {
  margin: var(--space-3) 0 0 0;
  padding: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--color-text-muted);
  font-style: italic;
  text-align: center;
}

/* Hide the checkbox */
.youtube-lite-toggle {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.youtube-lite-thumbnail {
  display: block;
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 aspect ratio */
  cursor: pointer;
  overflow: hidden;
}

.youtube-lite-thumbnail img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

/* No zoom effect on YouTube Lite thumbnails */

.youtube-lite-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 48px;
  transition: var(--transition-base);
  opacity: 0.9;
  pointer-events: none;
}

.youtube-lite-thumbnail:hover .youtube-lite-play-button {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.1);
}

.youtube-lite-iframe-container {
  display: none;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

/* Show iframe when checkbox is checked */
.youtube-lite-toggle:checked~.youtube-lite-iframe-container {
  display: block;
}

/* Hide thumbnail when checkbox is checked */
.youtube-lite-toggle:checked~.youtube-lite-thumbnail {
  display: none;
}

.youtube-lite-iframe-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.youtube-lite-close {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 32px;
  height: 32px;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  text-decoration: none;
  z-index: 10;
  transition: var(--transition-base);
  cursor: pointer;
}

.youtube-lite-close:hover {
  background-color: rgba(0, 0, 0, 0.9);
  transform: scale(1.1);
}

/* Link Preview Card */
.link-preview-card {
  margin: var(--space-8) 0;
  /* Reset/Ensure article is block-displayed */
  display: block;
}

.link-preview-card>a {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: var(--transition-base);
  text-decoration: none;
  color: var(--color-text);
  box-shadow: var(--shadow-sm);
  /* Ensure anchor spans full width */
  width: 100%;
}

.link-preview-card>a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-primary);
}

@media (min-width: 640px) {
  .link-preview-card>a {
    grid-template-columns: 200px 1fr;
  }
}

.link-preview-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: var(--color-bg-alt);
}

@media (min-width: 640px) {
  .link-preview-image {
    height: 100%;
    min-height: 180px;
  }
}

.link-preview-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-base);
}

.link-preview-card:hover .link-preview-image img {
  transform: scale(1.05);
}

.link-preview-content {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.link-preview-site {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.link-preview-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin: 0;
  line-height: 1.3;
}

.link-preview-card:hover .link-preview-title {
  color: var(--color-primary);
}

.link-preview-desc {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.link-preview-url {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-top: auto;
  padding-top: var(--space-2);
}

.link-preview-url svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.link-preview-url span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dark Mode Adjustments - removed box-shadow to avoid border effect */

[data-theme="dark"] .link-preview-card {
  background-color: var(--color-bg-alt);
}

[data-theme="dark"] .link-preview-image {
  background-color: var(--color-bg);
}

/* ========== SERIES NAVIGATION ========== */
.series-navigation {
  background-color: var(--color-bg-alt);
  padding: var(--space-8);
  border-radius: var(--radius-lg);
  margin-top: var(--space-12);
}

.series-nav-title {
  margin-bottom: var(--space-4);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
}

.series-nav-list {
  margin: 0;
  padding-left: var(--space-6);
  list-style: decimal;
}

.series-nav-item {
  margin-bottom: var(--space-2);
}

.series-nav-current {
  color: var(--color-text);
}

.current-indicator {
  color: var(--color-primary);
  font-weight: 600;
  font-size: var(--font-size-sm);
  margin-left: var(--space-2);
}

.series-nav-link {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-base);
}

.series-nav-link:hover {
  text-decoration: underline;
  color: var(--color-primary-dark);
}

/* ========== TABLE OF CONTENTS ========== */
.toc-container {
  margin-bottom: var(--space-8);
  background-color: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-6);
  border: 1px solid var(--color-border);
}

.toc-container details summary {
  cursor: pointer;
  font-weight: 600;
  font-size: var(--font-size-lg);
  color: var(--color-text);
  padding: var(--space-2) 0;
  outline: none;
  list-style: none;
  /* Hide default triangle in some browsers */
}

/* Custom indicator triangle */
.toc-container details summary::-webkit-details-marker {
  display: none;
}

.toc-container details summary::after {
  content: "▼";
  font-size: 0.8em;
  float: right;
  transition: transform 0.2s;
}

.toc-container details[open] summary::after {
  transform: rotate(180deg);
}

/* TOC List Styling */
.toc-container nav ul {
  list-style: none;
  padding-left: 0;
  margin-top: var(--space-2);
}

.toc-container nav ul li {
  margin-bottom: var(--space-2);
}

.toc-container nav ul ul {
  padding-left: var(--space-4);
  margin-top: var(--space-1);
}

.toc-container nav a {
  text-decoration: none;
  color: var(--color-text-light);
  font-size: var(--font-size-base);
  transition: var(--transition-base);
  border-bottom: 1px solid transparent;
}

/* H2 Links (Bold) */
.toc-container nav>ul>li>a {
  font-weight: 700;
  color: var(--color-text);
  /* Optional: make H2s slightly darker/more prominent */
}

/* H3 Links (Normal) */
.toc-container nav>ul>li>ul>li>a {
  font-weight: 400;
  color: var(--color-text-light);
}

.toc-container nav a:hover {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

/* Dark mode adjustments */
[data-theme="dark"] .toc-container {
  background-color: var(--color-bg-alt);
}

/* ========================================================
   SERVICE PILLAR PAGE  (sp-*)
   ======================================================== */

/* ── Hero ─────────────────────────────────────────────── */
.sp-hero {
  background-color: var(--color-bg-alt);
  padding: var(--space-16) 0;
}

.sp-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

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

.sp-hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  margin: var(--space-6) 0 var(--space-8);
  line-height: 1.7;
  max-width: 540px;
}

.sp-hero-img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* ── Placeholders (hero image, video) ─────────────────── */
.sp-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background-color: var(--color-bg);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  text-align: center;
  padding: var(--space-8);
}

.sp-placeholder code {
  background-color: var(--color-bg-alt);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.8em;
}

.sp-placeholder-hero {
  aspect-ratio: 16 / 9;
}

.sp-placeholder-video {
  aspect-ratio: 16 / 9;
}

/* ── Trust Stats ──────────────────────────────────────── */
.sp-stats {
  padding: var(--space-12) 0;
  border-bottom: 1px solid var(--color-border);
}

.sp-stats-alt {
  background: linear-gradient(135deg, var(--color-primary) 0%, #ea580c 100%);
  border-bottom: none;
}

.sp-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}

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

.sp-stat-item {
  text-align: center;
  padding: var(--space-8) var(--space-4);
  border-right: 1px solid var(--color-border);
}

.sp-stats-alt .sp-stat-item {
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}

.sp-stat-item:last-child {
  border-right: none;
}

@media (max-width: 767px) {
  .sp-stat-item:nth-child(2n) { border-right: none; }
  .sp-stat-item:nth-child(1),
  .sp-stat-item:nth-child(2) { border-bottom: 1px solid var(--color-border); }

  .sp-stats-alt .sp-stat-item:nth-child(1),
  .sp-stats-alt .sp-stat-item:nth-child(2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  }
}

.sp-stat-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-2);
}

.sp-stats-alt .sp-stat-value {
  color: white;
}

.sp-stat-label {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  font-weight: 500;
}

.sp-stats-alt .sp-stat-label {
  color: rgba(255, 255, 255, 0.9);
}

/* ── Risk Cards ───────────────────────────────────────── */
.sp-risk-card {
  display: flex;
  flex-direction: column;
}

.sp-risk-icon {
  width: 56px;
  height: 56px;
  background-color: rgba(249, 115, 22, 0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  flex-shrink: 0;
}

[data-theme="dark"] .sp-risk-icon {
  background-color: rgba(249, 115, 22, 0.15);
}

.sp-risk-stat {
  margin-top: auto;
  padding-top: var(--space-4);
  font-size: var(--font-size-sm);
  font-weight: 700;
  color: var(--color-primary);
  border-top: 1px solid var(--color-border);
}

/* ── Comparison Tables ────────────────────────────────── */
.sp-tables-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 900px) {
  .sp-tables-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.sp-table-wrapper {
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
}

.sp-table-heading {
  padding: var(--space-6);
  font-size: var(--font-size-xl);
  margin-bottom: 0;
  border-bottom: 1px solid var(--color-border);
}

.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--font-size-sm);
}

.sp-table thead tr {
  background-color: var(--color-bg-alt);
}

.sp-table th {
  padding: var(--space-3) var(--space-6);
  text-align: left;
  font-weight: 600;
  color: var(--color-text-light);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sp-table td {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  color: var(--color-text);
}

.sp-table tbody tr:hover {
  background-color: var(--color-bg-alt);
}

.sp-impact {
  display: inline-block;
  padding: 2px var(--space-3);
  border-radius: var(--radius-md);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sp-impact-critical {
  background-color: rgba(239, 68, 68, 0.12);
  color: #dc2626;
}

.sp-impact-high {
  background-color: rgba(249, 115, 22, 0.12);
  color: var(--color-primary-dark);
}

.sp-impact-medium {
  background-color: rgba(234, 179, 8, 0.12);
  color: #b45309;
}

[data-theme="dark"] .sp-impact-critical { color: #f87171; background-color: rgba(239, 68, 68, 0.2); }
[data-theme="dark"] .sp-impact-high     { color: var(--color-primary); background-color: rgba(249, 115, 22, 0.2); }
[data-theme="dark"] .sp-impact-medium   { color: #fbbf24; background-color: rgba(234, 179, 8, 0.2); }

.sp-check {
  display: inline-block;
  color: var(--color-primary);
  font-size: 1.1rem;
  font-weight: 700;
}

.sp-cross {
  display: inline-block;
  color: var(--color-text-light);
  font-size: 1.1rem;
  opacity: 0.5;
}

/* ── Pricing ──────────────────────────────────────────── */
.sp-pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
}

.sp-pricing-featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 2px var(--color-primary), var(--shadow-lg);
}

.sp-pricing-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  color: #fff;
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: var(--space-1) var(--space-4);
  border-radius: 999px;
  white-space: nowrap;
}

.sp-pricing-name {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: var(--space-2);
}

.sp-pricing-price {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-2);
}

.sp-pricing-desc {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.sp-pricing-features {
  list-style: none;
  margin-bottom: var(--space-8);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sp-pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  padding-left: 0;
}

.sp-pricing-features li::before {
  display: none;
}

.sp-pricing-features svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.sp-pricing-btn {
  width: 100%;
  margin-top: auto;
}

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

.btn-outline:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
  background-color: transparent;
}

/* ── Process Steps ────────────────────────────────────── */
.sp-process-steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 768px) {
  .sp-process-steps {
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
  }
}

.sp-process-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

@media (min-width: 768px) {
  .sp-process-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 31px;
    left: calc(50% + 36px);
    width: calc(100% - 72px);
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-border) 100%);
  }
}

.sp-process-number {
  width: 64px;
  height: 64px;
  background-color: var(--color-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}

.sp-process-content h3 {
  font-size: var(--font-size-lg);
  margin-bottom: var(--space-2);
}

.sp-process-content p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 0;
}

/* ── Video ────────────────────────────────────────────── */
.sp-video-wrapper {
  max-width: 800px;
  margin: 0 auto;
}

.sp-video-embed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

/* ── Related Posts ────────────────────────────────────── */
.sp-related .grid {
  margin-top: 0;
}

/* ── FAQ ──────────────────────────────────────────────── */
.sp-faq-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.sp-faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.sp-faq-item {
  background-color: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.sp-faq-item.sp-faq-open {
  border-color: var(--color-primary);
}

.sp-faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  background: none;
  border: none;
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  text-align: left;
  gap: var(--space-4);
  transition: color 0.2s ease;
  font-family: var(--font-sans);
}

.sp-faq-q:hover,
.sp-faq-open .sp-faq-q {
  color: var(--color-primary);
}

.sp-faq-icon {
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.sp-faq-open .sp-faq-icon {
  transform: rotate(180deg);
}

.sp-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.sp-faq-open .sp-faq-a {
  max-height: 400px;
}

.sp-faq-a p {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-text-light);
  line-height: 1.7;
  margin: 0;
}

/* ========== RESPONSIVE IMAGES ========== */
.img-responsive {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ========================================================
   NEW LAYOUT COMPONENTS
   ======================================================== */

/* ── Callout Boxes ────────────────────────────────────── */
.callout {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  margin: var(--space-8) 0;
  background-color: var(--color-bg-alt);
  box-shadow: var(--shadow-sm);
}

.callout-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.callout-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.callout-title {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--color-text);
}

.callout-content {
  font-size: var(--font-size-base);
  color: var(--color-text-light);
  line-height: 1.7;
}

.callout-content p:last-child {
  margin-bottom: 0;
}

/* Callout Types */
.callout-info {
  border-color: rgba(59, 130, 246, 0.35);
  background-color: rgba(59, 130, 246, 0.05);
}

.callout-info .callout-icon {
  color: #3b82f6;
}

.callout-warning {
  border-color: rgba(249, 115, 22, 0.4);
  background-color: rgba(249, 115, 22, 0.05);
}

.callout-warning .callout-icon {
  color: var(--color-primary);
}

.callout-success {
  border-color: rgba(16, 185, 129, 0.35);
  background-color: rgba(16, 185, 129, 0.05);
}

.callout-success .callout-icon {
  color: #10b981;
}

.callout-note {
  border-color: var(--color-border);
  background-color: var(--color-bg-alt);
}

.callout-note .callout-icon {
  color: var(--color-text-light);
}

[data-theme="dark"] .callout-info {
  background-color: rgba(59, 130, 246, 0.1);
}

[data-theme="dark"] .callout-warning {
  background-color: rgba(249, 115, 22, 0.1);
}

[data-theme="dark"] .callout-success {
  background-color: rgba(16, 185, 129, 0.1);
}

/* ── Logo Grid ────────────────────────────────────────── */
.logo-grid-section {
  margin: var(--space-12) 0;
}

.logo-grid-header {
  text-align: center;
  margin-bottom: var(--space-8);
}

.logo-grid-heading {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
}

.logo-grid-subheading {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  align-items: center;
}

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

@media (min-width: 900px) {
  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-3);
}

.logo-link {
  display: block;
  transition: var(--transition-base);
}

.logo-link:hover {
  transform: translateY(-4px);
}

.logo-image-wrapper {
  width: 100%;
  max-width: 180px;
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background-color: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: var(--transition-base);
}

/* Ensure consistent sizing for certification and partner badges with 2:1 ratio */
.logo-item:has(img[src*="certifications"]) .logo-image-wrapper,
.logo-item:has(img[src*="partners"]) .logo-image-wrapper {
  aspect-ratio: 2 / 1;
  max-width: 200px;
}

.logo-image-wrapper img[src*="certifications"],
.logo-image-wrapper img[src*="partners"] {
  width: 100%;
  height: auto;
}

.logo-link:hover .logo-image-wrapper {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-md);
}

/* FIX: Scope to logo-grid only - don't affect site header logo */
.logo-grid .logo-image {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.7;
  transition: var(--transition-base);
}

.logo-grid .logo-link:hover .logo-image {
  filter: grayscale(0%);
  opacity: 1;
}

.logo-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  opacity: 0.3;
}

.logo-caption {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text);
}

/* ── Content Sections (Text + Image) ──────────────────── */
.content-section {
  padding: var(--space-16) 0;
}

.content-section-alt {
  background-color: var(--color-bg-alt);
}

.content-section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (min-width: 900px) {
  .content-section-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
  }

  .content-section-reverse {
    direction: rtl;
  }

  .content-section-reverse > * {
    direction: ltr;
  }
}

.content-section-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.section-badge {
  display: inline-block;
  background-color: rgba(249, 115, 22, 0.1);
  color: var(--color-primary);
  font-size: var(--font-size-sm);
  font-weight: 700;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
}

.content-section-text h2 {
  font-size: var(--font-size-3xl);
  font-weight: 700;
  margin-bottom: var(--space-4);
  line-height: 1.2;
}

.lead-text {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.7;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin: var(--space-4) 0;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--font-size-base);
  color: var(--color-text);
}

.feature-list li::before {
  display: none;
}

.feature-list svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.content-section-image {
  position: relative;
}

.content-image {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.content-video-embed {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.content-placeholder {
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background-color: var(--color-bg);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  text-align: center;
  padding: var(--space-8);
}

.content-placeholder code {
  background-color: var(--color-bg-alt);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.8em;
}

/* ── Full-Width Media Section ─────────────────────────── */
.fullwidth-media-section {
  padding: var(--space-16) 0;
}

.fullwidth-media-container {
  max-width: 1000px;
  margin: 0 auto;
}

.fullwidth-video-wrapper,
.fullwidth-image-wrapper {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.youtube-lite-fullwidth {
  aspect-ratio: 16 / 9;
}

.fullwidth-image {
  width: 100%;
  display: block;
}

.fullwidth-image-caption,
.fullwidth-video-caption,
.content-video-caption {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  margin-top: var(--space-4);
  font-style: italic;
}

/* Add border/padding to video containers when caption is present */
.content-video-embed:has(.content-video-caption),
.fullwidth-video-wrapper:has(.fullwidth-video-caption) {
  padding: var(--space-4);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
}

.fullwidth-placeholder {
  aspect-ratio: 16 / 9;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background-color: var(--color-bg);
  border: 2px dashed var(--color-border);
  border-radius: var(--radius-xl);
  color: var(--color-text-light);
  font-size: var(--font-size-sm);
  text-align: center;
}

.fullwidth-placeholder code {
  background-color: var(--color-bg-alt);
  padding: 2px var(--space-2);
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 0.8em;
}

/* ── Utility Classes ──────────────────────────────────── */
.mb-4 { margin-bottom: var(--space-4); }
.mb-8 { margin-bottom: var(--space-8); }
.section-description {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  max-width: 700px;
  margin: 0 auto var(--space-8);
}
/* ══════════════════════════════════════════════════════════════════════
   NEW LANDING PAGE COMPONENTS
   ══════════════════════════════════════════════════════════════════════ */

/* ─── Statistics/Metrics Banner ──────────────────────────────────────── */
.stats-banner {
  padding: var(--space-12) 0;
  background: linear-gradient(135deg, var(--color-primary) 0%, #ea580c 100%);
  color: white;
}

.stats-banner-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 1000px;
  margin: 0 auto;
}

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

@media (min-width: 900px) {
  .stats-banner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.stat-value {
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: var(--space-2);
  display: block;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
  white-space: nowrap;
}

.stat-label {
  font-size: 1rem;
  font-weight: 500;
  opacity: 0.95;
  color: rgba(255,255,255,0.95);
  line-height: 1.4;
  text-align: center;
}

/* ─── Feature Grid (Icon + Text Cards) ───────────────────────────────── */
.feature-grid-section {
  padding: var(--space-16) 0;
}

.feature-grid-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.feature-grid-heading {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.feature-grid-subheading {
  font-size: 1.125rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

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

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

.feature-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-6);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary), #ea580c);
  border-radius: var(--radius-lg);
  color: white;
}

.feature-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.feature-card-description {
  font-size: 1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* ─── Comparison Table ───────────────────────────────────────────────── */
.comparison-section {
  padding: var(--space-16) 0;
  background-color: var(--color-bg-alt);
}

.comparison-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.comparison-table-wrapper {
  overflow-x: auto;
  max-width: 900px;
  margin: 0 auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.comparison-table thead {
  background: linear-gradient(135deg, var(--color-primary), #ea580c);
  color: white;
}

.comparison-table th {
  padding: var(--space-6);
  text-align: left;
  font-weight: 700;
  font-size: 1.125rem;
}

.comparison-table th:not(:first-child) {
  text-align: center;
}

.comparison-table td {
  padding: var(--space-5);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.comparison-table td:not(:first-child) {
  text-align: center;
}

.comparison-table tbody tr:last-child td {
  border-bottom: none;
}

.comparison-table tbody tr:hover {
  background-color: var(--color-bg-alt);
}

.comparison-feature {
  font-weight: 600;
  color: var(--color-text);
}

.comparison-check {
  color: #10b981;
  font-size: 1.5rem;
  text-align: center;
}

.comparison-cross {
  color: #ef4444;
  font-size: 1.5rem;
  text-align: center;
}

/* ─── Testimonial Cards ──────────────────────────────────────────────── */
.testimonials-section {
  padding: var(--space-16) 0;
}

.testimonials-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
  max-width: 1200px;
  margin: 0 auto;
}

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

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

.testimonial-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.testimonial-quote-icon {
  position: absolute;
  top: var(--space-6);
  right: var(--space-6);
  font-size: 3rem;
  color: var(--color-primary);
  opacity: 0.15;
  line-height: 1;
}

.testimonial-content {
  position: relative;
  margin-bottom: var(--space-6);
}

.testimonial-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--color-border);
}

.testimonial-avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), #ea580c);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 1.25rem;
}

.testimonial-author-info {
  flex: 1;
}

.testimonial-name {
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 2px;
}

.testimonial-title {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.testimonial-company {
  font-size: 0.875rem;
  color: var(--color-primary);
  font-weight: 600;
}

/* ─── FAQ Accordion ──────────────────────────────────────────────────── */
.faq-section {
  padding: var(--space-16) 0;
  background-color: var(--color-bg-alt);
}

.faq-section-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-header {
  margin: 0;
}

.faq-toggle-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  text-align: left;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-toggle-btn:hover,
.faq-item:hover .faq-toggle-btn {
  color: var(--color-primary);
}

.faq-toggle-btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
  border-radius: 2px;
}

.faq-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin-left: 12px;
  font-size: 18px;
  color: var(--color-text);
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  opacity: 0;
}

.faq-item.open .faq-answer {
  max-height: 3000px;
  opacity: 1;
  margin-bottom: 20px;
}

.faq-answer p {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 0.75rem;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer ul,
.faq-answer ol {
  color: var(--color-text-secondary);
  line-height: 1.7;
  margin: 0 0 0.75rem 1.5rem;
  padding: 0;
}

.faq-answer li {
  margin-bottom: 0.25rem;
}

.faq-answer strong {
  color: var(--color-text);
  font-weight: 600;
}

/* ACCESSIBILITY: Dark mode consistency improvements */
[data-theme="dark"] .breadcrumb {
  color: var(--color-text-light);
}

[data-theme="dark"] .breadcrumb a {
  color: var(--color-text-light);
}

[data-theme="dark"] .breadcrumb a:hover {
  color: var(--color-primary);
}

[data-theme="dark"] .hero-badge,
[data-theme="dark"] .section-badge {
  background-color: rgba(249, 115, 22, 0.15);
  color: var(--color-primary);
}

[data-theme="dark"] .sp-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] .comparison-table tbody tr:hover {
  background-color: rgba(255, 255, 255, 0.03);
}

[data-theme="dark"] *:focus-visible {
  outline-color: var(--color-primary);
}

[data-theme="dark"] .required {
  color: #f87171;
}

[data-theme="dark"] .error-message {
  color: #f87171;
}

[data-theme="dark"] .form-group input[aria-invalid="true"],
[data-theme="dark"] .form-group select[aria-invalid="true"],
[data-theme="dark"] .form-group textarea[aria-invalid="true"] {
  border-color: #f87171;
  box-shadow: 0 0 0 3px rgba(248, 113, 113, 0.1);
}

/* ACCESSIBILITY: Reduced motion support for users with vestibular disorders */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .card:hover,
  .btn:hover {
    transform: none !important;
  }
}

/* FORM SUCCESS/ERROR MESSAGES */
.form-success-message {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-top: var(--space-6);
  background-color: #d1fae5;
  border: 1px solid #10b981;
  border-radius: var(--radius-md);
  color: #065f46;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

.form-success-message svg {
  flex-shrink: 0;
  color: #10b981;
}

.form-error-message {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4);
  margin-bottom: var(--space-6);
  background-color: #fee2e2;
  border: 1px solid #dc2626;
  border-radius: var(--radius-md);
  color: #991b1b;
  font-weight: 500;
  animation: slideIn 0.3s ease-out;
}

.form-error-message svg {
  flex-shrink: 0;
  color: #dc2626;
}

/* Dark mode variants */
[data-theme="dark"] .form-success-message {
  background-color: #064e3b;
  border-color: #10b981;
  color: #d1fae5;
}

[data-theme="dark"] .form-error-message {
  background-color: #7f1d1d;
  border-color: #dc2626;
  color: #fecaca;
}

/* Turnstile Widget Styling */
.cf-turnstile {
  margin: var(--space-4) 0;
}

/* Slide in animation */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ============================================================
   CHECKLIST STYLES
   ============================================================ */

/* Hero eyebrow (dot + mono, no pill — matches design.md §6) */
.cl-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: var(--space-4);
}

.cl-hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
  flex-shrink: 0;
}

[data-theme="dark"] .cl-hero-badge {
  color: #9ca3af;
}

/* Section eyebrow (// PREFIX, mono, orange — matches design.md §6) */
.cl-eyebrow {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #c05000;
  margin-bottom: 1rem;
  margin-top: var(--space-8);
}

.cl-eyebrow::before { content: "// "; }

.cl-eyebrow:first-child,
.checklist-intro + .cl-eyebrow {
  margin-top: 0;
}

[data-theme="dark"] .cl-eyebrow {
  color: var(--color-primary);
}

/* Checklist Page Layout */
.checklist-page {
  padding: var(--space-16) 0;
}

/* Checklist Introduction/Conclusion */
.checklist-intro,
.checklist-conclusion {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
}

.checklist-conclusion {
  margin-top: var(--space-8);
  margin-bottom: 0;
}

/* Scoreboard */
.checklist-score-block {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-bottom: var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  box-shadow: var(--shadow-md);
}

.checklist-score-left {
  flex-shrink: 0;
}

.checklist-pct-display {
  font-size: 4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  transition: color 0.5s ease;
}

.checklist-pct-display[data-tier="0"] { color: #dc2626; }
.checklist-pct-display[data-tier="1"] { color: #ea580c; }
.checklist-pct-display[data-tier="2"] { color: #ca8a04; }
.checklist-pct-display[data-tier="3"] { color: #65a30d; }
.checklist-pct-display[data-tier="4"] { color: #16a34a; }

.checklist-score-right {
  flex: 1;
  min-width: 200px;
}

.checklist-tally {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  margin-bottom: var(--space-3);
}

.checklist-bar-track {
  height: 12px;
  background: var(--color-border);
  border-radius: 99px;
  overflow: hidden;
}

.checklist-bar-fill {
  height: 100%;
  border-radius: 99px;
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1), background 0.45s ease;
}

.checklist-bar-fill[data-tier="0"] { background: #dc2626; }
.checklist-bar-fill[data-tier="1"] { background: #ea580c; }
.checklist-bar-fill[data-tier="2"] { background: #ca8a04; }
.checklist-bar-fill[data-tier="3"] { background: #65a30d; }
.checklist-bar-fill[data-tier="4"] { background: #16a34a; }

.checklist-status-label {
  margin-top: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  transition: color 0.5s ease;
}

.checklist-status-label[data-tier="0"] { color: #dc2626; }
.checklist-status-label[data-tier="1"] { color: #ea580c; }
.checklist-status-label[data-tier="2"] { color: #ca8a04; }
.checklist-status-label[data-tier="3"] { color: #65a30d; }
.checklist-status-label[data-tier="4"] { color: #16a34a; }

.checklist-reset {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-light);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: var(--transition-base);
}

.checklist-reset:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

/* Checklist Sections */
.checklist-sections {
  margin-top: var(--space-8);
}

.checklist-section {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-4);
  overflow: hidden;
  transition: var(--transition-base);
}

.checklist-section:hover {
  box-shadow: var(--shadow-md);
}

.checklist-section-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-4) var(--space-6);
  background: none;
  border: none;
  font: inherit;
  color: inherit;
  text-align: left;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s;
}

.checklist-section-header:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: -2px;
}

.checklist-section-header:hover {
  background: var(--color-bg);
}

.checklist-section-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  flex: 1;
  margin: 0;
}

.checklist-section-mini {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text-light);
  white-space: nowrap;
}

.checklist-chevron {
  width: 20px;
  height: 20px;
  color: var(--color-text-light);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.checklist-section.open .checklist-chevron {
  transform: rotate(180deg);
}

.checklist-section-pip {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background 0.4s;
}

.checklist-section-pip[data-tier="0"] { background: #dc2626; }
.checklist-section-pip[data-tier="1"] { background: #ea580c; }
.checklist-section-pip[data-tier="2"] { background: #ca8a04; }
.checklist-section-pip[data-tier="3"] { background: #65a30d; }
.checklist-section-pip[data-tier="4"] { background: #16a34a; }

/* Checklist Items */
.checklist-items {
  padding: 0 var(--space-6) var(--space-4);
  display: none;
}

.checklist-section.open .checklist-items {
  display: block;
}

.checklist-divider {
  height: 1px;
  background: var(--color-border);
  margin-bottom: var(--space-4);
}

.checklist-section-content {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--color-bg);
  border-radius: var(--radius-md);
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: background 0.15s;
}

.checklist-item:hover {
  background: var(--color-bg);
}

.checklist-item input[type="checkbox"] {
  display: none;
}

.checklist-check-box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--color-border);
  border-radius: var(--radius-sm);
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
  position: relative;
}

.checklist-check-box svg {
  opacity: 0;
  transition: opacity 0.15s, transform 0.2s;
  transform: scale(0.6);
  color: var(--color-white);
}

.checklist-item.checked .checklist-check-box {
  border-color: var(--color-primary);
  background: var(--color-primary);
}

.checklist-item.checked .checklist-check-box svg {
  opacity: 1;
  transform: scale(1);
}

.checklist-item-label {
  font-size: var(--font-size-base);
  line-height: 1.5;
  transition: color 0.2s;
}

.checklist-item.checked .checklist-item-label {
  color: var(--color-text-light);
  text-decoration: line-through;
  text-decoration-color: var(--color-text-light);
  text-decoration-thickness: 2px;
}

/* Print Styles for PDF */
@media print {
  /* Hide non-essential elements */
  header.site-header,
  footer,
  .checklist-actions,
  .checklist-reset,
  .checklist-score-block,
  .dark-mode-toggle {
    display: none !important;
  }

  /* Show print-only elements */
  .print-only {
    display: block !important;
  }

  .print-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    border-top: 2px solid var(--color-primary);
    background: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .print-logo {
    max-height: 30px;
    width: auto;
  }

  .print-url {
    font-size: var(--font-size-sm);
    color: var(--color-text-light);
  }

  /* Expand all sections */
  .checklist-section {
    page-break-inside: avoid;
    border: 1px solid #ddd;
    margin-bottom: var(--space-4);
  }

  .checklist-items {
    display: block !important;
  }

  .checklist-chevron {
    display: none;
  }

  /* Show unchecked checkboxes as empty boxes */
  .checklist-check-box {
    border: 2px solid #333;
    background: white;
  }

  .checklist-item.checked .checklist-check-box {
    background: white;
    border-color: #333;
  }

  .checklist-item.checked .checklist-check-box svg {
    color: #333;
  }

  /* Don't show strikethrough in print */
  .checklist-item.checked .checklist-item-label {
    text-decoration: none;
    color: var(--color-text);
  }

  /* Use light mode colors for print */
  body {
    background: white;
    color: #1f2937;
  }

  .checklist-section,
  .checklist-intro,
  .checklist-conclusion {
    background: white;
  }
}

/* Responsive */
@media (max-width: 640px) {
  .checklist-score-block {
    flex-direction: column;
    gap: var(--space-4);
  }

  .checklist-pct-display {
    font-size: 3rem;
  }

  .checklist-reset {
    margin-left: 0;
    width: 100%;
  }

  .checklist-section-header {
    padding: var(--space-3) var(--space-4);
  }

  .checklist-items {
    padding: 0 var(--space-4) var(--space-3);
  }
}

/* ============================================================
   COOKIE CONSENT BANNER & PREFERENCES MODAL
   ============================================================ */

/* Cookie Consent Banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--color-bg);
  border-top: 3px solid var(--color-primary);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
  z-index: 9999;
  padding: var(--space-6);
  animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-consent-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.cookie-consent-text {
  flex: 1;
  min-width: 300px;
}

.cookie-consent-text h3 {
  font-size: var(--font-size-lg);
  font-weight: 700;
  margin: 0 0 var(--space-2) 0;
  color: var(--color-text);
}

.cookie-consent-text p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

.cookie-consent-text a {
  color: var(--color-primary-text);
  text-decoration: underline;
  font-weight: 600;
}

.cookie-consent-text a:hover {
  color: #a04000;
}

.cookie-consent-buttons {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  align-items: center;
}

.cookie-consent-buttons .btn {
  white-space: nowrap;
  font-size: var(--font-size-base);
  padding: var(--space-4) var(--space-6);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-text {
  background: transparent;
  color: var(--color-text-light);
  border: none;
  padding: var(--space-4) var(--space-5);
  text-decoration: underline;
  cursor: pointer;
  transition: var(--transition-base);
  font-family: var(--font-sans);
  font-size: var(--font-size-base);
  font-weight: 500;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.btn-text:hover {
  color: var(--color-primary);
}

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.cookie-modal-content {
  background: var(--color-bg);
  border-radius: var(--radius-xl);
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    transform: translateY(-50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.cookie-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.cookie-modal-header h2 {
  margin: 0;
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--color-text);
}

.modal-close {
  background: transparent;
  border: none;
  font-size: 2rem;
  line-height: 1;
  color: var(--color-text-light);
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  transition: var(--transition-base);
}

.modal-close:hover {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

.cookie-modal-body {
  padding: var(--space-6);
}

.cookie-category {
  margin-bottom: var(--space-6);
  padding: var(--space-4);
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.cookie-category:last-child {
  margin-bottom: 0;
}

.cookie-category-header {
  margin-bottom: var(--space-3);
}

.cookie-category-header label {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  user-select: none;
}

.cookie-category-header input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--color-primary);
}

.cookie-category-header input[type="checkbox"]:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.cookie-category-header strong {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
}

.cookie-category-description {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
  padding-left: var(--space-8);
}

.cookie-modal-footer {
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.cookie-modal-footer .btn {
  flex: 1;
  min-width: 150px;
  justify-content: center;
}

/* Dark mode adjustments */
[data-theme="dark"] .cookie-consent {
  border-top-color: var(--color-primary);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .cookie-modal {
  background: rgba(0, 0, 0, 0.85);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .cookie-consent-content {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-consent-buttons {
    flex-direction: column;
  }

  .cookie-consent-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  .cookie-modal-footer {
    flex-direction: column;
  }

  .cookie-modal-footer .btn {
    width: 100%;
  }
}

/* Utility: Hide element when no consent */
[data-requires-consent] {
  display: none;
}

/* ============================================================
   404 ERROR PAGE STYLES
   ============================================================ */

/* Main 404 Section */
.not-found-section {
  padding: var(--space-16) 0;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
  text-align: center;
  min-height: 50vh;
  display: flex;
  align-items: center;
}

.not-found-content {
  max-width: 700px;
  margin: 0 auto;
}

.not-found-number {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: var(--space-6);
  letter-spacing: -0.03em;
}

.not-found-section h1 {
  font-size: clamp(1.5rem, 4vw, 2.5rem);
  line-height: 1.3;
  margin-bottom: var(--space-4);
  color: var(--color-text);
}

.not-found-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-light);
  line-height: 1.7;
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.not-found-section .btn-primary {
  display: inline-block;
}

/* Links Sections */
.not-found-links-section {
  padding: var(--space-16) 0;
}

.not-found-links-alt {
  background-color: var(--color-bg-alt);
}

.not-found-links-section h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
  font-weight: 700;
  margin-bottom: var(--space-12);
  text-align: center;
  color: var(--color-text);
}

.not-found-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  margin-bottom: var(--space-8);
}

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

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

.not-found-grid-3 {
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .not-found-grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.not-found-card {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-align: left;
  display: flex;
  flex-direction: column;
}

.not-found-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-primary);
}

.not-found-card h3 {
  margin: 0 0 var(--space-3) 0;
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
}

.not-found-card h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.not-found-card h3 a:hover {
  color: var(--color-primary);
}

.not-found-card p {
  font-size: var(--font-size-sm);
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

.not-found-date {
  margin-top: var(--space-3);
  font-weight: 500;
  color: var(--color-primary);
}

.not-found-center-link {
  text-align: center;
  margin-top: var(--space-8);
}

.not-found-center-link .btn-secondary {
  display: inline-block;
}

/* Quick Links Section */
.not-found-quick-links {
  padding: var(--space-12) 0;
  border-top: 1px solid var(--color-border);
}

.not-found-quick-links h2 {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  margin-bottom: var(--space-8);
  text-align: center;
  color: var(--color-text);
}

.quick-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
  max-width: 600px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .quick-links-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.quick-links-list li {
  text-align: center;
}

.quick-links-list a {
  display: inline-block;
  padding: var(--space-3) var(--space-6);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
  width: 100%;
}

.quick-links-list a:hover {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-2px);
}

/* Dark Mode Adjustments */
[data-theme="dark"] .not-found-section {
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 100%);
}

[data-theme="dark"] .not-found-links-alt {
  background-color: var(--color-bg-alt);
}

[data-theme="dark"] .not-found-card {
  background: var(--color-bg);
}

[data-theme="dark"] .quick-links-list a {
  background: var(--color-bg-alt);
  color: var(--color-text);
}

/* Responsive adjustments */
@media (max-width: 640px) {
  .not-found-section {
    padding: var(--space-12) 0;
    min-height: 40vh;
  }

  .not-found-number {
    margin-bottom: var(--space-4);
  }

  .not-found-section h1 {
    margin-bottom: var(--space-3);
  }

  .not-found-subtitle {
    margin-bottom: var(--space-6);
    font-size: var(--font-size-base);
  }

  .not-found-links-section {
    padding: var(--space-12) 0;
  }

  .not-found-grid {
    gap: var(--space-4);
  }
}

/* ============================================================
   WHATSAPP BUTTON
   ============================================================ */
.whatsapp-btn {
    position: fixed;
    bottom: 20px;
    right: 10px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #25D366;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    z-index: 9000;
    text-decoration: none;
}

/* Mobile: adjust WhatsApp position for equal spacing */
@media (max-width: 768px) {
    .whatsapp-btn {
        bottom: 76px;
    }
}

/* Hover effect removed to match Zoho button behavior */

.whatsapp-btn img {
    width: 32px;
    height: 32px;
    display: block;
}

/* Desktop: position above Zoho when functional cookies are accepted */
@media (min-width: 769px) {
    .whatsapp-btn.above-zoho {
        bottom: 90px;
    }
}

/* Mobile: position Zoho widget with proper spacing */
@media (max-width: 768px) {
    #zsiq_float {
        bottom: 0 !important;
        right: 10px !important;
    }
}

/* ─── Social Share Bar ───────────────────────────────────────────────── */
.social-share {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin: var(--space-8) 0;
  flex-wrap: wrap;
}

.social-share-label {
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: var(--color-text-muted);
  white-space: nowrap;
}

.social-share-buttons {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease;
  line-height: 1;
  font-family: inherit;
}

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

.share-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.share-btn--reddit,    .share-btn--reddit:hover    { background: #FF4500; color: #fff; }
.share-btn--facebook,  .share-btn--facebook:hover  { background: #1877F2; color: #fff; }
.share-btn--linkedin,  .share-btn--linkedin:hover  { background: #0A66C2; color: #fff; }
.share-btn--x,         .share-btn--x:hover         { background: #000;    color: #fff; }
.share-btn--pinterest, .share-btn--pinterest:hover { background: #E60023; color: #fff; }
.share-btn--threads,   .share-btn--threads:hover   { background: #000;    color: #fff; }

[data-theme="dark"] .share-btn--x,
[data-theme="dark"] .share-btn--x:hover,
[data-theme="dark"] .share-btn--threads,
[data-theme="dark"] .share-btn--threads:hover {
  background: #fff;
  color: #000;
}

.share-btn--email { background: var(--color-bg-alt); color: var(--color-text); border: 1px solid var(--color-border); }
.share-btn--email:hover { background: var(--color-bg-alt); color: var(--color-text); opacity: .8; }

.share-btn--copy {
  background: var(--color-bg-alt);
  color: var(--color-text);
  border: 1px solid var(--color-border);
  padding: 7px 14px;
}

.share-btn--copy svg {
  width: 15px;
  height: 15px;
}

.share-btn--copy.copied {
  background: #4CAF50;
  color: #fff;
  border-color: #4CAF50;
}

/* ─── Author Byline (compact, top of article) ───────────────────────── */
.author-byline {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.author-byline strong {
  color: var(--color-text);
}

.author-byline-sep {
  color: var(--color-border);
  margin: 0 2px;
}

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

/* ─── Author Bio Box (bottom of article) ────────────────────────────── */
.author-bio-box {
  display: flex;
  gap: var(--space-6);
  padding: var(--space-8);
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  margin: var(--space-10) 0;
}

.author-bio-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
}

.author-bio-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-bio-content {
  flex: 1;
  min-width: 0;
}

.author-bio-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-3);
}

.author-bio-name {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--color-text);
  margin: 0 0 2px 0;
}

.author-bio-title {
  font-size: var(--font-size-sm);
  color: var(--color-primary);
  font-weight: 600;
  margin: 0;
}

.author-bio-text {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  margin: 0;
}

.author-bio-linkedin {
  color: #0A66C2;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  transition: opacity 0.2s;
}

.author-bio-linkedin:hover { opacity: 0.75; }

@media (max-width: 580px) {
  .author-bio-box {
    flex-direction: column;
    gap: var(--space-4);
  }
}

/* ═══════════════════════════════════════════════════════════════════════════
   SERVICE LIST PAGE — Alternating Sections (sv- prefix)
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Service jump nav strip ── */
.sv-nav {
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sv-nav-inner {
  display: flex;
  gap: 0;
  white-space: nowrap;
}

.sv-nav-item {
  display: inline-flex;
  align-items: center;
  padding: 0.875rem 1.25rem;
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--color-text-light);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.sv-nav-item:hover {
  color: var(--color-text);
  border-bottom-color: var(--color-primary);
}

/* ── Service alternating sections ── */
.sv-section {
  padding: 5rem 0;
  border-bottom: 1px solid var(--color-border);
}

.sv-section:nth-child(even) {
  background: var(--color-bg-alt);
}

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

.sv-grid--reverse {
  direction: rtl;
}

.sv-grid--reverse > * {
  direction: ltr;
}

/* ── Text side ── */
.sv-tag {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-primary);
  margin-bottom: 0.6rem;
}

.sv-title {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  font-weight: 400;
  line-height: 1.2;
  color: var(--color-text);
  margin-bottom: 1rem;
}

.sv-desc {
  font-size: 1rem;
  color: var(--color-text-light);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.sv-features {
  list-style: none;
  margin: 0 0 1.75rem;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.sv-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.9rem;
  color: var(--color-text);
}

.sv-features li svg {
  color: var(--color-primary);
  flex-shrink: 0;
  margin-top: 2px;
}

.sv-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-primary);
  text-decoration: none;
  transition: gap 0.2s;
}

.sv-link:hover {
  gap: 0.55rem;
}

/* ── Visual panel ── */
.sv-visual {
  aspect-ratio: 4/3;
  border-radius: var(--radius-lg, 0.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.sv-visual--dark {
  background: #111827;
}

.sv-visual--light {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
}

.sv-visual--accent {
  background: rgba(249,115,22,0.06);
  border: 1px solid rgba(249,115,22,0.15);
}

.sv-visual:has(.sv-visual-img) {
  aspect-ratio: 16/9;
  background: #f5f0e8;
}

.sv-visual-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  display: block;
}

.sv-visual-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle, var(--color-primary) 1.5px, transparent 1.5px);
  background-size: 20px 20px;
  opacity: 0.04;
}

.sv-visual--dark .sv-visual-dots {
  opacity: 0.07;
}

.sv-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.sv-visual--dark .sv-icon-wrap {
  background: rgba(249,115,22,0.15);
  color: var(--color-primary);
}

.sv-visual--light .sv-icon-wrap {
  background: rgba(249,115,22,0.1);
  color: var(--color-primary);
}

.sv-visual--accent .sv-icon-wrap {
  background: var(--color-bg);
  color: var(--color-primary);
  box-shadow: 0 4px 16px -4px rgba(0,0,0,0.1);
}

/* Decorative radial gradient blobs */
.sv-visual::before {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  width: 200px;
  height: 200px;
}

.sv-visual--dark::before {
  background: radial-gradient(circle, rgba(249,115,22,0.15) 0%, transparent 65%);
  top: -40px;
  right: -40px;
}

.sv-visual--light::before {
  background: radial-gradient(circle, rgba(249,115,22,0.07) 0%, transparent 65%);
  top: -30px;
  left: -30px;
}

.sv-visual--accent::before {
  width: 250px;
  height: 250px;
  background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 65%);
  bottom: -60px;
  right: -60px;
}

/* ── CTA section ── */
.sv-cta-section {
  background: #111827;
  padding: 4.5rem 0;
  position: relative;
  overflow: hidden;
}

.sv-cta-section::before {
  content: '';
  position: absolute;
  top: -120px;
  right: -120px;
  width: 460px;
  height: 460px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(249,115,22,0.18) 0%, transparent 65%);
  pointer-events: none;
}

.sv-cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .sv-cta-inner {
    grid-template-columns: 1fr auto;
  }
}

.sv-cta-heading {
  font-family: var(--font-serif);
  font-size: clamp(1.6rem, 2.8vw, 2.25rem);
  color: white;
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 0.75rem;
}

.sv-cta-sub {
  color: #9ca3af;
  font-size: 0.95rem;
  line-height: 1.7;
  margin: 0;
}

.sv-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  align-items: center;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .sv-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .sv-grid--reverse {
    direction: ltr;
  }

  .sv-visual {
    aspect-ratio: 16/7;
  }
}

/* Dark mode adjustments */
[data-theme="dark"] .sv-nav {
  background: var(--color-bg);
  border-bottom-color: var(--color-border);
}

[data-theme="dark"] .sv-nav-item:hover {
  color: var(--color-text);
}

[data-theme="dark"] .sv-visual--light {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

[data-theme="dark"] .sv-visual--accent {
  background: rgba(249,115,22,0.08);
}

[data-theme="dark"] .sv-visual--accent .sv-icon-wrap {
  background: var(--color-bg-alt);
}

[data-theme="dark"] .sv-title {
  color: var(--color-text);
}

[data-theme="dark"] .sv-features li {
  color: var(--color-text);
}

/* ─── END SERVICE LIST PAGE ──────────────────────────────────────────────── */


/* ─── SHARED LANDING HERO ────────────────────────────────────────────────── */
/* One hero shared across all /<service>/ hub pages. Image bleeds downward
   into the trust row, tying the two zones together. Trust stats span full
   width as a four-up row beneath the content+media grid. */

.landing-hero {
  position: relative;
  isolation: isolate;
  background: #0f172a;
  color: #f9fafb;
  padding: clamp(2.5rem, 5vw, 4rem) 0 0;
  overflow: hidden;
}

.landing-hero__bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 55% at 78% 35%, rgba(249, 115, 22, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 12% 90%, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
  z-index: 0;
}

.landing-hero .container {
  position: relative;
  z-index: 1;
}

.landing-hero__top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
  padding-bottom: clamp(2rem, 4vw, 3rem);
}

@media (min-width: 960px) {
  .landing-hero__top {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 3.5rem;
    padding-bottom: 4.5rem;
  }
}

.landing-hero__content {
  max-width: 36rem;
}

.landing-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.landing-hero__badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-primary);
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.15);
  flex-shrink: 0;
}

.landing-hero__headline {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 1.25rem;
  color: #f9fafb;
}

.landing-hero__headline em {
  font-style: italic;
  color: var(--color-primary);
}

.landing-hero__sub {
  font-size: clamp(1rem, 1.6vw, 1.125rem);
  line-height: 1.65;
  color: #cbd5e1;
  max-width: 34rem;
  margin-bottom: 2rem;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
}

.landing-hero__ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #f9fafb;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease-out, border-color 0.2s ease-out;
}

.landing-hero__ghost:hover,
.landing-hero__ghost:focus-visible {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.65);
  color: #f9fafb;
}

/* Media column: image sits to the right and bleeds down. */
.landing-hero__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-hero__media-glow {
  position: absolute;
  inset: -12% -8%;
  background: radial-gradient(ellipse 60% 55% at 50% 50%, rgba(249, 115, 22, 0.28) 0%, transparent 70%);
  filter: blur(8px);
  z-index: 0;
  pointer-events: none;
}

.landing-hero__media img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 32rem;
  height: auto;
  box-shadow:
    0 30px 60px -20px rgba(0, 0, 0, 0.65),
    0 0 0 1px rgba(249, 115, 22, 0.22);
}

@media (min-width: 960px) {
  /* The bleed: image overhangs the trust row by ~2.5rem so it visually
     anchors the two zones together instead of sitting as a separate block. */
  .landing-hero__media img {
    margin-bottom: -2.5rem;
  }
}

/* Trust row spanning full hero width beneath the content+media grid. */
.landing-hero__trust {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem 1.5rem;
  padding: clamp(2rem, 3.5vw, 2.75rem) 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 640px) {
  .landing-hero__trust {
    grid-template-columns: repeat(4, 1fr);
  }
}

.landing-hero__trust-item {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.landing-hero__trust-value {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1;
  color: var(--color-primary);
  font-weight: 400;
}

.landing-hero__trust-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: #94a3b8;
  letter-spacing: 0.02em;
  line-height: 1.35;
}

/* When trust row coexists with a bleeding image, give the right-hand
   trust items enough room and align the row visually. */
@media (min-width: 960px) {
  .landing-hero__trust--with-media {
    padding-top: 3rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__ghost { transition: none; }
}
/* ─── END SHARED LANDING HERO ────────────────────────────────────────────── */


/* Ghost button used on dark CTA bands and the hero. Renders the same on dark
   and light surfaces; pair with a dark background section for the intended look. */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.65rem 1.4rem;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #f9fafb;
  background: transparent;
  text-decoration: none;
  transition: background 0.2s ease-out, border-color 0.2s ease-out;
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.7);
  color: #f9fafb;
}

@media (prefers-reduced-motion: reduce) {
  .btn-ghost { transition: none; }
}

/* ============================================================
   HOMEPAGE V4 — Live Operations
   Scoped to .home-v4 to avoid clashing with site-wide styles.
   Colors are fixed (not theme-aware) by design.
   ============================================================ */
.home-v4 {
  --hv4-orange: #f97316;
  --hv4-orange-d: #ea580c;
  --hv4-text: #e2e8f0;
  --hv4-muted: #94a3b8;
  --hv4-bg: #0b0f1a;
  --hv4-bg-2: #111827;
  --hv4-bg-3: #1e293b;
  --hv4-border: #1f2937;
  --hv4-border-2: #334155;
  --hv4-ink: #ffffff;
  --hv4-green: #22c55e;
  --hv4-amber: #f59e0b;
  --hv4-red: #ef4444;
  --hv4-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --hv4-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  font-family: var(--hv4-sans);
  color: var(--hv4-text);
  background: var(--hv4-bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.home-v4 a { color: var(--hv4-orange); text-decoration: none; }
.home-v4 img { max-width: 100%; display: block; }

/* HERO */
.home-v4 .hv4-hero {
  padding: clamp(3rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem);
  position: relative;
  overflow: hidden;
  background: var(--hv4-bg);
}
.home-v4 .hv4-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 80% 0%, rgba(249, 115, 22, 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.home-v4 .hv4-hero-grid {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
@media (max-width: 1000px) { .home-v4 .hv4-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; } }

.home-v4 .hv4-hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--hv4-mono);
  font-size: 0.78rem;
  color: var(--hv4-muted);
  letter-spacing: 0.05em;
  margin-bottom: 1.5rem;
}
.home-v4 .hv4-live-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--hv4-green);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
  animation: hv4-pulse 2.4s ease-in-out infinite;
}
@keyframes hv4-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15); }
  50% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0.05); }
}
.home-v4 .hv4-hero h1 {
  font-family: var(--hv4-sans);
  font-size: clamp(2.5rem, 5.5vw, 4.5rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--hv4-ink);
  margin-bottom: 1.5rem;
  max-width: 18ch;
}
.home-v4 .hv4-hero h1 .hv4-accent { color: var(--hv4-orange); }
.home-v4 .hv4-hero p.hv4-lede {
  font-size: 1.15rem;
  color: var(--hv4-muted);
  line-height: 1.6;
  max-width: 48ch;
  margin-bottom: 2rem;
}
.home-v4 .hv4-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.home-v4 .hv4-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 0.45rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.18s ease;
  border: 1px solid transparent;
}
.home-v4 .hv4-btn-solid { background: #c05000; color: white; }
.home-v4 .hv4-btn-solid:hover { background: #a04000; transform: translateY(-1px); }
.home-v4 .hv4-btn-ghost { color: var(--hv4-text); border-color: var(--hv4-border-2); background: transparent; }
.home-v4 .hv4-btn-ghost:hover { border-color: var(--hv4-orange); color: var(--hv4-orange); }

/* OPS PANEL */
.home-v4 .hv4-ops {
  background: var(--hv4-bg-2);
  border: 1px solid var(--hv4-border);
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.home-v4 .hv4-ops-bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--hv4-border);
  background: var(--hv4-bg-3);
  font-family: var(--hv4-mono);
  font-size: 0.75rem;
  color: var(--hv4-muted);
}
.home-v4 .hv4-ops-bar .hv4-tdot { width: 10px; height: 10px; border-radius: 50%; background: var(--hv4-border-2); }
.home-v4 .hv4-ops-bar .hv4-tdot.r { background: #ef4444; }
.home-v4 .hv4-ops-bar .hv4-tdot.y { background: #f59e0b; }
.home-v4 .hv4-ops-bar .hv4-tdot.g { background: #22c55e; }
.home-v4 .hv4-ops-bar .hv4-title { margin-left: 0.75rem; }
.home-v4 .hv4-ops-bar .hv4-title strong { color: var(--hv4-ink); font-weight: 600; }
.home-v4 .hv4-ops-body { padding: 1.25rem; }

.home-v4 .hv4-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.home-v4 .hv4-kpi {
  background: var(--hv4-bg-3);
  border: 1px solid var(--hv4-border);
  border-radius: 8px;
  padding: 1rem 1.1rem;
}
.home-v4 .hv4-kpi .hv4-lbl {
  font-family: var(--hv4-mono);
  font-size: 0.7rem;
  color: var(--hv4-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.home-v4 .hv4-kpi .hv4-lbl .hv4-trend { color: var(--hv4-green); }
.home-v4 .hv4-kpi .hv4-val {
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--hv4-ink);
  line-height: 1;
  letter-spacing: -0.01em;
  font-family: var(--hv4-mono);
}
.home-v4 .hv4-kpi .hv4-val .hv4-unit { color: var(--hv4-orange); font-size: 0.95rem; margin-left: 0.25rem; }
.home-v4 .hv4-kpi .hv4-sub { margin-top: 0.4rem; font-size: 0.78rem; color: var(--hv4-muted); }

.home-v4 .hv4-feed { border-top: 1px solid var(--hv4-border); padding-top: 1rem; }
.home-v4 .hv4-feed-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--hv4-mono);
  font-size: 0.72rem;
  color: var(--hv4-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.home-v4 .hv4-feed-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px dotted var(--hv4-border);
  align-items: center;
}
.home-v4 .hv4-feed-row:last-child { border-bottom: none; }
.home-v4 .hv4-badge {
  font-family: var(--hv4-mono);
  font-size: 0.68rem;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}
.home-v4 .hv4-b-g { background: rgba(34, 197, 94, 0.15); color: var(--hv4-green); }
.home-v4 .hv4-b-o { background: rgba(249, 115, 22, 0.15); color: var(--hv4-orange); }
.home-v4 .hv4-b-y { background: rgba(245, 158, 11, 0.15); color: var(--hv4-amber); }
.home-v4 .hv4-b-b { background: rgba(96, 165, 250, 0.15); color: #60a5fa; }
.home-v4 .hv4-b-p { background: rgba(192, 132, 252, 0.15); color: #c084fc; }
.home-v4 .hv4-feed-row .hv4-msg { font-size: 0.88rem; color: var(--hv4-text); }

/* LIGHT-SECTION OVERRIDE */
.home-v4 .hv4-light-section {
  --hv4-bg: #ffffff;
  --hv4-bg-2: #f9fafb;
  --hv4-bg-3: #f3f4f6;
  --hv4-text: #1f2937;
  --hv4-muted: #4b5563;
  --hv4-ink: #0f172a;
  --hv4-border: #e5e7eb;
  --hv4-border-2: #d1d5db;
  --hv4-orange: #c05000;   /* accessible on light bg: 4.8:1 on #fff, 4.6:1 on #f9fafb */
  --hv4-green: #15803d;    /* accessible on light bg: 5.0:1 on #fff */
  background: #ffffff;
  color: #1f2937;
  border-block: 1px solid #e5e7eb;
}

[data-theme="dark"] .home-v4 .hv4-light-section {
  --hv4-bg: #0b0f1a;
  --hv4-bg-2: #111827;
  --hv4-bg-3: #1e293b;
  --hv4-text: #e2e8f0;
  --hv4-muted: #94a3b8;
  --hv4-ink: #ffffff;
  --hv4-border: #1f2937;
  --hv4-border-2: #334155;
  --hv4-orange: #f97316;   /* restore: passes on dark bg */
  --hv4-green: #22c55e;    /* restore: passes on dark bg */
  background: #0b0f1a;
  color: #e2e8f0;
  border-block-color: #1f2937;
}

/* SERVICES */
.home-v4 .hv4-services { padding: clamp(5rem, 8vw, 7rem) 0; }
.home-v4 .hv4-svc-wrap { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.home-v4 .hv4-svc-head { max-width: 680px; margin-bottom: 3rem; }
.home-v4 .hv4-svc-head .hv4-lbl {
  font-family: var(--hv4-mono);
  font-size: 0.78rem;
  color: var(--hv4-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.home-v4 .hv4-svc-head h2 {
  font-family: var(--hv4-sans);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--hv4-ink);
}

.home-v4 .hv4-svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
@media (max-width: 900px) { .home-v4 .hv4-svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .home-v4 .hv4-svc-grid { grid-template-columns: 1fr; } }

.home-v4 .hv4-svc {
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: all 0.2s ease-in-out;
  text-decoration: none;
  color: inherit;
}
.home-v4 .hv4-svc:hover {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.home-v4 .hv4-svc-full { grid-column: 1 / -1; }

.home-v4 .hv4-svc-icon {
  width: 44px; height: 44px;
  border-radius: 0.625rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: var(--color-primary);
  box-shadow: var(--shadow-sm);
}
.home-v4 .hv4-svc-body { flex: 1; min-width: 0; }
.home-v4 .hv4-svc-cat {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #c05000;
  margin-bottom: 0.25rem;
}
.home-v4 .hv4-svc h3 {
  font-family: var(--hv4-sans);
  font-weight: 700;
  font-size: 0.95rem;
  margin: 0 0 0.35rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--color-text);
}
.home-v4 .hv4-svc p {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0 0 0.625rem;
}
.home-v4 .hv4-svc-link {
  font-size: 0.78rem;
  font-weight: 600;
  color: #c05000;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  transition: gap 0.15s;
}
.home-v4 .hv4-svc:hover .hv4-svc-link { gap: 0.5rem; }

[data-theme="dark"] .home-v4 .hv4-svc { background: var(--color-bg-alt); }
[data-theme="dark"] .home-v4 .hv4-svc-icon { background: var(--color-bg); border-color: var(--color-border); }

/* BLOG */
.home-v4 .hv4-blog {
  padding: clamp(5rem, 8vw, 7rem) 0;
  background: var(--hv4-bg);
  position: relative;
}
.home-v4 .hv4-blog::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 20% 0%, rgba(249, 115, 22, 0.06) 0%, transparent 60%);
  pointer-events: none;
}
.home-v4 .hv4-blog-wrap { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }
.home-v4 .hv4-blog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.home-v4 .hv4-blog-head .hv4-lbl {
  font-family: var(--hv4-mono);
  font-size: 0.78rem;
  color: var(--hv4-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
}
.home-v4 .hv4-blog-head h2 {
  font-family: var(--hv4-sans);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--hv4-ink);
  max-width: 18ch;
}
.home-v4 .hv4-blog-head .hv4-all {
  font-family: var(--hv4-mono);
  font-size: 0.85rem;
  color: var(--hv4-orange);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.home-v4 .hv4-blog-head .hv4-all:hover { color: var(--hv4-orange-d); }

.home-v4 .hv4-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 1000px) { .home-v4 .hv4-blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .home-v4 .hv4-blog-grid { grid-template-columns: 1fr; } }
.home-v4 .hv4-post {
  background: var(--hv4-bg-2);
  border: 1px solid var(--hv4-border);
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
  text-decoration: none;
  color: var(--hv4-text);
}
.home-v4 .hv4-post:hover {
  border-color: var(--hv4-orange);
  background: var(--hv4-bg-3);
  transform: translateY(-3px);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.6);
}
.home-v4 .hv4-post-media {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--hv4-bg-3);
  border-bottom: 1px solid var(--hv4-border);
}
.home-v4 .hv4-post-media img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.home-v4 .hv4-post-media-fallback {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(ellipse 60% 70% at 80% 20%, rgba(249,115,22,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 15% 90%, rgba(249,115,22,0.10) 0%, transparent 65%),
    linear-gradient(135deg, var(--hv4-bg-2) 0%, var(--hv4-bg-3) 100%);
  color: rgba(255,255,255,0.55);
  font-family: var(--hv4-mono);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.home-v4 .hv4-post-media-fallback::before {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, #000 30%, transparent 80%);
}
.home-v4 .hv4-post-media-fallback span { position: relative; z-index: 1; }
.home-v4 .hv4-post-body {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
  flex: 1;
}
.home-v4 .hv4-post-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--hv4-mono);
  font-size: 0.7rem;
  color: var(--hv4-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.home-v4 .hv4-post-cat { color: var(--hv4-orange); font-weight: 600; }
.home-v4 .hv4-post h3 {
  font-family: var(--hv4-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--hv4-ink);
  line-height: 1.3;
  letter-spacing: -0.01em;
  flex: 1;
  margin: 0;
}
.home-v4 .hv4-post:hover h3 { color: var(--hv4-orange); }
.home-v4 .hv4-post p { font-size: 0.85rem; color: var(--hv4-muted); line-height: 1.55; margin: 0; }
.home-v4 .hv4-post-foot {
  font-family: var(--hv4-mono);
  font-size: 0.78rem;
  color: var(--hv4-muted);
  padding-top: 0.75rem;
  border-top: 1px dashed var(--hv4-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.home-v4 .hv4-post-foot .hv4-read { color: var(--hv4-orange); font-weight: 600; }
.home-v4 .hv4-post:hover .hv4-post-foot .hv4-read { color: var(--hv4-ink); }

/* COMMITS */
.home-v4 .hv4-commits { padding: clamp(5rem, 8vw, 6rem) 0; }
.home-v4 .hv4-commits-wrap { max-width: 1320px; margin: 0 auto; padding: 0 1.5rem; }
.home-v4 .hv4-commits-head {
  font-family: var(--hv4-mono);
  font-size: 0.78rem;
  color: var(--hv4-orange);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}
.home-v4 .hv4-commits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--hv4-border);
  border-radius: 10px;
  overflow: hidden;
}
@media (max-width: 800px) { .home-v4 .hv4-commits-grid { grid-template-columns: repeat(2, 1fr); } }
.home-v4 .hv4-commit {
  padding: 2rem 1.5rem;
  border-right: 1px solid var(--hv4-border);
  background: var(--hv4-bg-2);
}
.home-v4 .hv4-commit:last-child { border-right: none; }
.home-v4 .hv4-commit:nth-child(2n) { background: var(--hv4-bg); }
@media (max-width: 800px) {
  .home-v4 .hv4-commit:nth-child(2n) { background: var(--hv4-bg-2); }
  .home-v4 .hv4-commit:nth-child(odd) { background: var(--hv4-bg); }
  .home-v4 .hv4-commit:nth-child(2) { border-right: none; }
}
.home-v4 .hv4-commit .hv4-num {
  font-family: var(--hv4-mono);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--hv4-orange);
  line-height: 1;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}
.home-v4 .hv4-commit h4 {
  font-family: var(--hv4-sans);
  font-size: 0.95rem;
  color: var(--hv4-ink);
  font-weight: 600;
  margin-bottom: 0.4rem;
}
.home-v4 .hv4-commit p { font-size: 0.82rem; color: var(--hv4-muted); line-height: 1.5; }

/* CTA */
.home-v4 .hv4-cta {
  padding: clamp(5rem, 8vw, 7rem) 0;
  background: var(--hv4-bg-2);
  border-top: 1px solid var(--hv4-border);
}
.home-v4 .hv4-cta-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 3rem;
  align-items: center;
}
@media (max-width: 800px) { .home-v4 .hv4-cta-wrap { grid-template-columns: 1fr; gap: 1.5rem; } }
.home-v4 .hv4-cta h3 {
  font-family: var(--hv4-sans);
  font-size: clamp(2rem, 3.6vw, 2.8rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--hv4-ink);
  margin-bottom: 1rem;
  max-width: 18ch;
}
.home-v4 .hv4-cta h3 .hv4-accent { color: var(--hv4-orange); }
.home-v4 .hv4-cta p { color: var(--hv4-muted); font-size: 1.05rem; max-width: 50ch; }
.home-v4 .hv4-cta-action { display: flex; flex-direction: column; gap: 0.75rem; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .home-v4 .hv4-live-dot { animation: none; }
  .home-v4 .hv4-svc, .home-v4 .hv4-post, .home-v4 .hv4-btn { transition: none; }
}

.home-v4 .hv4-blog-cta { display: flex; justify-content: center; margin-top: clamp(2rem, 4vw, 3rem); }

/* ============================================================
   BLOG POST V2 — Editorial light + dark widgets
   Scoped to .bp2 to avoid collisions. Dark-mode aware.
   ============================================================ */

.bp2 {
    --bp2-ink: #1f2937;
    --bp2-muted: #4b5563;
    --bp2-soft: #6b7280;
    --bp2-bg: #ffffff;
    --bp2-bg-alt: #f9fafb;
    --bp2-border: #e5e7eb;
    --bp2-border-2: #cbd5e1;
    --bp2-orange: #f97316;
    --bp2-orange-d: #ea580c;
    --bp2-orange-txt: #c05000;
    --bp2-orange-txt-h: #a04000;
    --bp2-dark-bg: #0b0f1a;
    --bp2-dark-bg-2: #111827;
    --bp2-dark-bg-3: #1e293b;
    --bp2-dark-border: #1f2937;
    --bp2-dark-text: #e2e8f0;
    --bp2-dark-muted: #94a3b8;
    --bp2-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
    color: var(--bp2-ink);
}

[data-theme="dark"] .bp2 {
    --bp2-ink: #f9fafb;
    --bp2-muted: #d1d5db;
    --bp2-soft: #9ca3af;
    --bp2-bg: #111827;
    --bp2-bg-alt: #1f2937;
    --bp2-border: #374151;
    --bp2-border-2: #4b5563;
    --bp2-orange-txt: #f97316;
    --bp2-orange-txt-h: #ea580c;
}

/* Match the homepage container (hv4 wrap): 1320px max, 1.5rem side padding */
.bp2 .container,
.bp2-related .container {
    max-width: 1320px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

/* HERO IMAGE */
.bp2-hero-image-wrap {
    padding: 2rem 0 0;
    background: var(--bp2-bg);
}
.bp2-hero-image {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
}
.bp2-hero-image-fallback {
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--bp2-dark-bg-2), var(--bp2-dark-bg-3));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.bp2-hero-image-fallback::before {
    content: "";
    position: absolute; inset: 0;
    background:
        radial-gradient(circle at 30% 30%, rgba(249,115,22,0.18), transparent 60%),
        radial-gradient(circle at 70% 70%, rgba(249,115,22,0.10), transparent 60%);
}
.bp2-hero-image-fallback-label {
    position: relative;
    font-family: var(--bp2-mono);
    font-size: 1rem;
    color: rgba(255,255,255,0.6);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* HERO HEADER */
.bp2-hero {
    padding: 3rem 0 2.5rem;
    border-bottom: 1px solid var(--bp2-border);
    background: var(--bp2-bg);
}
.bp2-hero-inner { max-width: 780px; }
.bp2-eyebrow {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--bp2-mono);
    font-size: 0.78rem;
    color: var(--bp2-orange-txt);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 1.5rem;
}
.bp2-eyebrow::before {
    content: "";
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--bp2-orange);
    box-shadow: 0 0 0 4px rgba(249,115,22,0.15);
}
.bp2-title {
    font-size: clamp(2.25rem, 4.4vw, 3.4rem);
    font-weight: 800;
    color: var(--bp2-ink);
    line-height: 1.08;
    letter-spacing: -0.025em;
    margin: 0 0 1.5rem;
    max-width: 24ch;
}
.bp2-subtitle {
    font-size: 1.2rem;
    color: var(--bp2-muted);
    line-height: 1.55;
    max-width: 60ch;
    margin-bottom: 2rem;
}
.bp2-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    font-family: var(--bp2-mono);
    font-size: 0.78rem;
    color: var(--bp2-soft);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bp2-meta .k { color: var(--bp2-ink); font-weight: 600; }

/* ARTICLE GRID */
.bp2-article { padding: 3.5rem 0 5rem; background: var(--bp2-bg); }
.bp2-grid {
    display: grid;
    grid-template-columns: minmax(0, 720px) 1fr;
    gap: 4rem;
    align-items: start;
}
@media (max-width: 1000px) {
    .bp2-grid { grid-template-columns: 1fr; gap: 3rem; }
    .bp2-sidebar { order: 2; }
}

/* PROSE OVERRIDES — drop cap, h2 mono pre-line, code chips */
.bp2-prose { font-size: 1.125rem; line-height: 1.8; color: var(--bp2-ink); }
.bp2-prose p { margin-bottom: 1.6rem; }
.bp2-prose > p:first-of-type {
    font-size: 1.32rem;
    line-height: 1.55;
    color: var(--bp2-ink);
    font-weight: 400;
    margin-bottom: 2rem;
}
.bp2-prose > p:first-of-type::first-letter {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 700;
    font-size: 4.2rem;
    float: left;
    line-height: 0.95;
    padding: 0.3rem 0.65rem 0 0;
    color: var(--bp2-orange-txt);
}
.bp2-prose h2 {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: var(--bp2-ink);
    margin: 3.25rem 0 1.25rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
    position: relative;
    padding-left: 0;
    scroll-margin-top: 6rem;
}
.bp2-prose h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--bp2-ink);
    margin: 2.25rem 0 0.85rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
}
.bp2-prose code {
    font-family: var(--bp2-mono);
    font-size: 0.86em;
    background: var(--bp2-bg-alt);
    color: var(--bp2-orange-txt);
    padding: 0.15em 0.42em;
    border-radius: 4px;
    border: 1px solid var(--bp2-border);
}
.bp2-prose pre,
.bp2-prose .highlight {
    max-width: 100%;
    margin: 1.5rem 0;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    background: #1a1a1a;
    border: 1px solid var(--bp2-border);
    line-height: 1.55;
}
.bp2-prose .highlight pre,
.bp2-prose .highlight > div {
    margin: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}
.bp2-prose pre {
    padding: 1rem 1.15rem;
    font-size: 0.86rem;
}
.bp2-prose pre code {
    display: block;
    background: transparent;
    color: #e6e6e6;
    border: 0;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    white-space: pre;
    word-wrap: normal;
}
.bp2-prose a {
    color: var(--bp2-orange-txt);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
}
.bp2-prose a:hover { color: var(--bp2-orange-txt-h); }
.bp2-prose blockquote {
    margin: 2.5rem 0;
    border-top: 1px solid var(--bp2-ink);
    border-bottom: 1px solid var(--bp2-ink);
    padding: 1.5rem 0;
    font-size: 1.4rem;
    line-height: 1.3;
    color: var(--bp2-ink);
    font-weight: 500;
    letter-spacing: -0.015em;
}
.bp2-prose blockquote p { margin: 0; }
.bp2-prose hr {
    border: 0;
    border-top: 1px dashed var(--bp2-border-2);
    margin: 3rem 0;
}
.bp2-prose ul, .bp2-prose ol { margin: 0 0 1.6rem 1.5rem; padding: 0; }
.bp2-prose li { margin-bottom: 0.5rem; }
.bp2-prose img {
    border-radius: 10px;
    border: 1px solid var(--bp2-border);
    margin: 1.5rem 0;
}

/* COMPARISON TABLE (bp2 scope) */
.bp2-cmp {
    margin: 3rem 0;
    font-family: var(--bp2-sans, "Inter", system-ui, sans-serif);
}
.bp2-cmp-frame {
    border-top: 2px solid var(--bp2-ink);
    border-bottom: 2px solid var(--bp2-ink);
}
.bp2-cmp-cap {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0 1rem;
    border-bottom: 1px dashed var(--bp2-border-2);
    font-family: var(--bp2-mono, "JetBrains Mono", monospace);
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bp2-muted);
}
.bp2-cmp-cap-l { color: var(--bp2-orange-txt); }
.bp2-cmp-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
    font-size: 0.95rem;
}
.bp2-cmp-table thead th {
    vertical-align: bottom;
    padding: 1.25rem 1rem 1.1rem;
    text-align: left;
    border-bottom: 1px solid var(--bp2-ink);
    background: transparent;
}
.bp2-cmp-feat {
    width: 28%;
    font-family: var(--bp2-mono, "JetBrains Mono", monospace);
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bp2-muted);
}
.bp2-cmp-col { width: 24%; }
.bp2-cmp-eyebrow {
    display: block;
    font-family: var(--bp2-mono, "JetBrains Mono", monospace);
    font-size: 0.68rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bp2-muted);
    margin-bottom: 0.45rem;
}
.bp2-cmp-col--pick .bp2-cmp-eyebrow { color: var(--bp2-orange-txt); }
.bp2-cmp-name {
    display: block;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.25;
    color: var(--bp2-ink);
    letter-spacing: -0.005em;
}
.bp2-cmp-col--pick {
    background: rgba(249, 115, 22, 0.05);
    box-shadow: inset 0 2px 0 0 var(--bp2-orange);
}
.bp2-cmp-col--diy .bp2-cmp-name { color: var(--bp2-muted); }
.bp2-cmp-table tbody th {
    text-align: left;
    padding: 0.95rem 1rem 0.95rem 0;
    font-weight: 500;
    color: var(--bp2-ink);
    border-bottom: 1px dashed var(--bp2-border-2);
    line-height: 1.35;
}
.bp2-cmp-table tbody td {
    padding: 0.95rem 1rem;
    border-bottom: 1px dashed var(--bp2-border-2);
    vertical-align: top;
    line-height: 1.35;
}
.bp2-cmp-table tbody tr:last-child th,
.bp2-cmp-table tbody tr:last-child td {
    border-bottom: none;
}
.bp2-cmp-table tbody td[data-rank="pick"] {
    background: rgba(249, 115, 22, 0.04);
}
.bp2-cell {
    display: inline-flex;
    align-items: baseline;
    gap: 0.5rem;
}
.bp2-cell-mark {
    flex: none;
    font-family: var(--bp2-mono, "JetBrains Mono", monospace);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1;
    transform: translateY(1px);
}
.bp2-cell--strong .bp2-cell-mark { color: var(--bp2-orange-txt); }
.bp2-cell--strong .bp2-cell-text { color: var(--bp2-ink); font-weight: 500; }
.bp2-cell--partial .bp2-cell-mark { color: var(--bp2-muted); }
.bp2-cell--partial .bp2-cell-text { color: var(--bp2-muted); }
.bp2-cell--none .bp2-cell-mark { color: var(--bp2-border-2); }
.bp2-cell--none .bp2-cell-text { color: var(--bp2-muted); font-style: italic; }
.bp2-cell--note { color: var(--bp2-ink); font-weight: 500; }

/* Notes column variant — editorial commentary, distinct from data cells */
.bp2-cmp-col--notes { width: 22%; }
.bp2-cmp-table tbody td.bp2-cmp-notes {
    font-family: var(--bp2-mono, "JetBrains Mono", monospace);
    font-size: 0.82rem;
    color: var(--bp2-muted);
    line-height: 1.4;
    background: transparent;
}
.bp2-cmp-table tbody td.bp2-cmp-notes .bp2-cmp-verdict {
    display: inline-block;
    color: var(--bp2-orange-txt);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.7rem;
    margin-bottom: 0.2rem;
}
.bp2-cmp-table tbody td.bp2-cmp-notes .bp2-cmp-verdict--tie { color: var(--bp2-muted); }
/* Neutral variant — no "pick" highlight, two products treated as equals */
.bp2-cmp--neutral .bp2-cmp-col--pick { background: transparent; box-shadow: none; }
.bp2-cmp--neutral .bp2-cmp-col--pick .bp2-cmp-eyebrow { color: var(--bp2-muted); }
.bp2-cmp--neutral tbody td[data-rank="pick"] { background: transparent; }

/* Reference-table variant — for non-comparison tables (schedules, config refs, lookup tables) */
.bp2-cmp--ref .bp2-cmp-col--pick { background: transparent; box-shadow: none; }
.bp2-cmp--ref .bp2-cmp-col--pick .bp2-cmp-eyebrow,
.bp2-cmp--ref .bp2-cmp-col .bp2-cmp-eyebrow { color: var(--bp2-muted); }
.bp2-cmp--ref .bp2-cmp-table tbody th {
    font-family: var(--bp2-mono, "JetBrains Mono", monospace);
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--bp2-orange-txt);
}
.bp2-cmp--ref .bp2-cmp-table tbody td .bp2-cell--note { color: var(--bp2-ink); font-weight: 400; }
.bp2-cmp--ref .bp2-cmp-table tbody td.bp2-cmp-mono {
    font-family: var(--bp2-mono, "JetBrains Mono", monospace);
    font-size: 0.85rem;
    color: var(--bp2-ink);
}
.bp2-cmp--ref .bp2-cmp-table tbody td.bp2-cmp-mono code {
    background: var(--bp2-bg-alt);
    border: 1px solid var(--bp2-border);
    color: var(--bp2-orange-txt);
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.82rem;
}
.bp2-cmp-col--diy + .bp2-cmp-col, /* no-op safety */
.bp2-cmp-table tbody td.bp2-cmp-diy { color: var(--bp2-muted); }
.bp2-cmp-foot {
    padding: 0.85rem 0 0;
    border-top: 1px dashed var(--bp2-border-2);
    font-family: var(--bp2-mono, "JetBrains Mono", monospace);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--bp2-muted);
}

/* Stacked layout on narrow screens */
@media (max-width: 720px) {
    .bp2-cmp-table,
    .bp2-cmp-table thead,
    .bp2-cmp-table tbody,
    .bp2-cmp-table tr,
    .bp2-cmp-table th,
    .bp2-cmp-table td {
        display: block;
        width: 100%;
    }
    .bp2-cmp-table thead { display: none; }
    .bp2-cmp-table tbody tr {
        padding: 1.1rem 0 0.4rem;
        border-bottom: 1px solid var(--bp2-ink);
    }
    .bp2-cmp-table tbody tr:last-child { border-bottom: none; }
    .bp2-cmp-table tbody th {
        padding: 0 0 0.6rem;
        border: none;
        font-family: var(--bp2-mono, "JetBrains Mono", monospace);
        font-size: 0.72rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--bp2-orange-txt);
        font-weight: 600;
    }
    .bp2-cmp-table tbody td {
        padding: 0.35rem 0;
        border: none;
        display: grid;
        grid-template-columns: 38% 1fr;
        gap: 0.75rem;
        background: transparent !important;
    }
    .bp2-cmp-table tbody td::before {
        content: attr(data-col);
        font-family: var(--bp2-mono, "JetBrains Mono", monospace);
        font-size: 0.68rem;
        text-transform: uppercase;
        letter-spacing: 0.08em;
        color: var(--bp2-muted);
        font-weight: 600;
        align-self: baseline;
    }
    .bp2-cmp-table tbody td[data-rank="pick"]::before { color: var(--bp2-orange-txt); }
}

/* Dark mode adjustments */
[data-theme="dark"] .bp2-cmp-col--pick {
    background: rgba(249, 115, 22, 0.08);
    box-shadow: inset 0 2px 0 0 var(--bp2-orange);
}
[data-theme="dark"] .bp2-cmp-table tbody td[data-rank="pick"] {
    background: rgba(249, 115, 22, 0.06);
}
[data-theme="dark"] .bp2-cell--none .bp2-cell-mark { color: var(--bp2-border); }

/* SIDEBAR */
.bp2-sidebar {
    position: sticky;
    top: 6rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}
@media (max-width: 1000px) { .bp2-sidebar { position: static; } }
.bp2-side-block {
    border-top: 1px solid var(--bp2-ink);
    padding-top: 1.25rem;
}
.bp2-side-e {
    font-family: var(--bp2-mono);
    font-size: 0.7rem;
    color: var(--bp2-orange-txt);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.bp2-side-block h4 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bp2-ink);
    margin: 0 0 0.5rem;
    line-height: 1.3;
}
.bp2-side-block p {
    font-size: 0.92rem;
    color: var(--bp2-muted);
    line-height: 1.55;
    margin: 0;
}

/* TOC inside sidebar */
.bp2-toc { font-size: 0.9rem; }
.bp2-toc ul, .bp2-toc ol { list-style: none; padding: 0; margin: 0; counter-reset: bp2t; }
.bp2-toc li {
    counter-increment: bp2t;
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.35rem 0;
    border-bottom: 1px dashed var(--bp2-border);
}
.bp2-toc li:last-child { border-bottom: none; }
.bp2-toc li::before {
    content: counter(bp2t, decimal-leading-zero);
    font-family: var(--bp2-mono);
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--bp2-orange-txt);
    flex-shrink: 0;
    line-height: 1.8;
}
.bp2-toc a {
    color: var(--bp2-ink);
    text-decoration: none;
    line-height: 1.4;
}
.bp2-toc a:hover { color: var(--bp2-orange-txt); }
.bp2-toc ul ul, .bp2-toc ol ol {
    margin-left: 1rem;
    padding-left: 0;
    border-left: 1px dashed var(--bp2-border);
    padding-left: 0.65rem;
}

/* SIDE CTA — dark card */
.bp2-side-cta {
    background: var(--bp2-dark-bg);
    color: var(--bp2-dark-text);
    padding: 1.5rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.bp2-side-cta::before {
    content: "";
    position: absolute;
    top: -40%; right: -40%;
    width: 200px; height: 200px;
    background: radial-gradient(circle, rgba(249,115,22,0.2), transparent 60%);
    pointer-events: none;
}
.bp2-side-cta .e {
    font-family: var(--bp2-mono);
    font-size: 0.7rem;
    color: var(--bp2-orange);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 0.5rem;
    position: relative;
}
.bp2-side-cta h4 {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    position: relative;
    line-height: 1.3;
}
.bp2-side-cta p {
    color: var(--bp2-dark-muted);
    font-size: 0.88rem;
    margin-bottom: 1rem;
    position: relative;
    line-height: 1.55;
}
.bp2-side-cta .btn {
    position: relative;
    width: 100%;
    justify-content: center;
    background: var(--bp2-orange);
    color: #fff;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.7rem 1rem;
    border-radius: 0.375rem;
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.18s ease;
}
.bp2-side-cta .btn:hover {
    background: var(--bp2-orange-d);
    color: #fff;
    transform: translateY(-1px);
}

/* FIELD-NOTES FOOTER */
.bp2-fn-footer {
    margin-top: 3rem;
    border-top: 1px dashed var(--bp2-border-2);
    padding-top: 2rem;
    font-family: var(--bp2-mono);
    font-size: 0.82rem;
    color: var(--bp2-soft);
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.bp2-fn-footer .bp2-tag {
    color: var(--bp2-orange-txt);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
}
.bp2-fn-footer .bp2-tag:hover { color: var(--bp2-orange-txt-h); }
.bp2-fn-footer .bp2-back { color: var(--bp2-orange-txt); text-decoration: none; }
.bp2-fn-footer .bp2-back:hover { color: var(--bp2-orange-txt-h); }

/* RELATED */
.bp2-related {
    background: var(--bp2-bg-alt);
    border-top: 1px solid var(--bp2-border);
    padding: 4.5rem 0;
}
.bp2-related-h {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 2rem;
    gap: 1rem;
}
.bp2-related-e {
    font-family: var(--bp2-mono);
    font-size: 0.78rem;
    color: var(--bp2-orange-txt);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
}
.bp2-related-e::before { content: "// "; }
.bp2-related-h h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--bp2-ink);
    letter-spacing: -0.02em;
    margin: 0.4rem 0 0;
}
.bp2-related-all {
    font-family: var(--bp2-mono);
    font-size: 0.82rem;
    color: var(--bp2-orange-txt);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
}
.bp2-related-all:hover { color: var(--bp2-orange-txt-h); }
.bp2-related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
@media (max-width: 900px) { .bp2-related-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bp2-related-grid { grid-template-columns: 1fr; } }
.bp2-pc {
    background: var(--bp2-bg);
    border: 1px solid var(--bp2-border);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.bp2-pc:hover {
    transform: translateY(-3px);
    border-color: var(--bp2-orange);
    box-shadow: 0 10px 30px -8px rgba(0,0,0,0.1);
}
[data-theme="dark"] .bp2-pc:hover { box-shadow: 0 10px 30px -8px rgba(0,0,0,0.5); }
.bp2-pc-media {
    aspect-ratio: 16 / 9;
    background-size: cover;
    background-position: center;
    border-bottom: 1px solid var(--bp2-border);
}
.bp2-pc-media-fallback {
    background: linear-gradient(135deg, var(--bp2-dark-bg-2), var(--bp2-dark-bg-3));
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.bp2-pc-media-fallback::before {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 30% 30%, rgba(249,115,22,0.15), transparent 60%);
}
.bp2-pc-media-fallback span {
    position: relative;
    font-family: var(--bp2-mono);
    font-size: 0.78rem;
    color: rgba(255,255,255,0.55);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.bp2-pc-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }
.bp2-pc-meta {
    display: flex;
    justify-content: space-between;
    font-family: var(--bp2-mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}
.bp2-pc-meta .cat { color: var(--bp2-orange-txt); font-weight: 600; }
.bp2-pc-meta .rt { color: var(--bp2-soft); }
.bp2-pc h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--bp2-ink);
    line-height: 1.3;
    margin: 0 0 0.75rem;
    flex: 1;
}
.bp2-pc:hover h3 { color: var(--bp2-orange-txt); }
.bp2-pc-foot {
    border-top: 1px dashed var(--bp2-border);
    padding-top: 0.65rem;
    font-family: var(--bp2-mono);
    font-size: 0.7rem;
    color: var(--bp2-soft);
    display: flex;
    justify-content: space-between;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.bp2-pc-foot .read { color: var(--bp2-orange-txt); font-weight: 600; }
