/* ============================================
   AUTOMATION BLOG - STYLES
   Brand Colors: Red #bf3425, Blue #47577c, Gray #9d9d9c
   Typography: Archivo (headers), Assistant (body)
   ============================================ */

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

body {
  font-family: "Assistant", sans-serif;
  font-weight: 400;
  color: #334155;
  line-height: 1.8;
  background-color: #fff;
}

/* Reading Progress Bar */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #bf3425, #47577c);
  z-index: 9999;
  transition: width 0.1s linear;
  width: 0%;
}

/* Mobile Navigation Toggle */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1001;
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(191, 52, 37, 0.4);
  transition: all 0.3s ease;
  align-items: center;
  justify-content: center;
}

.mobile-nav-toggle:hover {
  transform: scale(1.1);
}

.mobile-nav-toggle svg {
  color: #ffffff;
  stroke: #ffffff;
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
  box-shadow: 0 4px 15px rgba(191, 52, 37, 0.3);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(191, 52, 37, 0.4);
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top svg {
  stroke: #ffffff;
}

/* Layout */
.blog-layout {
  display: flex;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px;
  gap: 60px;
}

/* Sidebar Navigation */
.blog-sidebar {
  position: sticky;
  top: 40px;
  width: 280px;
  min-width: 280px;
  max-height: calc(100vh - 80px);
  overflow-y: auto;
  padding-right: 20px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.blog-sidebar::-webkit-scrollbar {
  display: none;
}

.blog-sidebar-title {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #9d9d9c;
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 12px;
}

.blog-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.blog-sidebar-link {
  font-family: "Assistant", sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: #64748b;
  padding: 10px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  display: block;
}

.blog-sidebar-link:hover {
  color: #47577c;
  background-color: #f8fafc;
}

.blog-sidebar-link.active {
  color: #bf3425;
  background-color: #fef7f6;
  font-weight: 700;
}

/* Main Content */
.blog-content {
  flex: 1;
  max-width: 900px;
}

/* Blog Meta */
.blog-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
  color: #64748b;
  margin-bottom: 10px;
}

.blog-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.blog-meta-icon {
  width: 16px;
  height: 16px;
  color: #64748b;
}

/* Typography */
.blog-content h1 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 2.75rem;
  line-height: 1.15;
  color: #1e293b;
  margin-bottom: 1.5rem;
}

.blog-content h2 {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #1e293b;
  margin-top: 3.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #bf3425;
}

.blog-content h3 {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  color: #47577c;
  margin-top: 2rem;
  margin-bottom: 0.875rem;
}

.blog-content h4 {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
  color: #1e293b;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}

.blog-content p {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
}

.blog-content ul,
.blog-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.blog-content li {
  margin-bottom: 0.625rem;
  font-size: 1.0625rem;
}

.blog-content a {
  color: #47577c;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 600;
  transition: color 0.2s;
}

.blog-content a:hover {
  color: #bf3425;
}

/* Subtitle */
.subtitle {
  font-size: 1.25rem;
  font-style: italic;
  color: #47577c;
  margin-bottom: 2rem;
}

/* Drop Cap */
.drop-cap::first-letter {
  float: left;
  font-family: "Archivo", sans-serif;
  font-size: 4.5rem;
  font-weight: 700;
  line-height: 0.8;
  color: #bf3425;
  margin-right: 12px;
  margin-top: 8px;
}

/* Images */
.full-width-image {
  width: 100%;
  border-radius: 12px;
  margin: 2rem 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.image-caption {
  font-size: 0.875rem;
  color: #9d9d9c;
  text-align: center;
  font-style: italic;
  margin-top: -1rem;
  margin-bottom: 2rem;
}

/* Intro Card */
.intro-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 2.5rem;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
}

.intro-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(
    circle,
    rgba(191, 52, 37, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
}

.intro-card h2 {
  margin-top: 0;
}

/* Key Question Box */
.key-question {
  background: linear-gradient(135deg, #47577c 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  text-align: center;
}

.key-question p {
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.125rem;
  font-style: italic;
  margin: 0;
  line-height: 1.6;
}

/* Blockquote Card */
.blockquote-card {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 2rem 2.5rem;
  margin: 2rem 0;
  border: 1px solid #e2e8f0;
  position: relative;
}

.blockquote-card::before {
  content: "\201C";
  position: absolute;
  top: -10px;
  left: 20px;
  font-family: "Archivo", sans-serif;
  font-size: 5rem;
  color: #bf3425;
  opacity: 0.2;
  line-height: 1;
}

.blockquote-card p {
  font-family: "Archivo", sans-serif;
  font-weight: 500;
  font-size: 1.125rem;
  font-style: italic;
  color: #47577c;
  margin: 0;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Data Tables */
.data-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.data-table thead {
  background-color: #47577c;
  color: white;
}

.data-table th {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  padding: 1rem 1.25rem;
  text-align: left;
}

.data-table td {
  padding: 1rem 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
  border-bottom: 0;
}

.data-table.comparison-matrix {
  font-size: 0.85rem;
}

.data-table.comparison-matrix th,
.data-table.comparison-matrix td {
  padding: 0.75rem 1rem;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem;
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.feature-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.feature-item p {
  margin: 0;
  font-size: 0.9375rem;
  color: #475569;
}

.feature-item strong {
  color: #1e293b;
  display: block;
  margin-bottom: 0.25rem;
}

/* Split Layout */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
  margin: 2.5rem 0;
}

.split-layout.reverse {
  direction: rtl;
}

.split-layout.reverse > * {
  direction: ltr;
}

.split-image img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.split-content {
  padding: 0;
}

.split-content h3,
.split-content h4 {
  margin-top: 0;
}

/* Two Column List */
.two-column-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.two-column-list .column {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
}

.two-column-list .column h4 {
  margin-top: 0;
  color: #47577c;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #bf3425;
}

/* Specs */
.specs-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.spec-item {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border-radius: 8px;
}

.spec-label {
  font-weight: 600;
  color: #475569;
}

.spec-value {
  color: #1e293b;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.spec-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.25rem;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.spec-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(0, 0, 0, 0.1);
}

.spec-card .spec-label {
  display: block;
  font-size: 0.8125rem;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.spec-card .spec-value {
  display: block;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.25rem;
  margin: 2rem 0;
}

.stat-card {
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 25px -5px rgba(0, 0, 0, 0.15);
}

.stat-number {
  font-family: "Archivo", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #bf3425;
  display: block;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.8125rem;
  color: #64748b;
  margin-top: 0.5rem;
  display: block;
}

/* Highlight Box */
.highlight-box {
  background: linear-gradient(135deg, #fef7f6 0%, #ffffff 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border: 1px solid rgba(191, 52, 37, 0.2);
}

.highlight-box h4 {
  margin-top: 0;
  color: #bf3425;
}

.highlight-box p {
  margin: 0;
  color: #1e293b;
}

/* References */
.references-list {
  font-size: 0.875rem;
  color: #475569;
}

.references-list p {
  margin-bottom: 1rem;
  padding-left: 2rem;
  text-indent: -2rem;
  word-break: break-word;
}

.references-list em {
  color: #47577c;
}

.article-footer {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
  font-size: 0.9375rem;
  color: #64748b;
  text-align: center;
}

/* Learn More Section */
.learn-more-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.learn-more-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.learn-more-card:hover {
  border-color: #bf3425;
  box-shadow: 0 8px 25px -5px rgba(191, 52, 37, 0.15);
  transform: translateY(-2px);
}

.learn-more-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #47577c 0%, #1e293b 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.3s;
}

.learn-more-card:hover .learn-more-icon {
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
}

.learn-more-icon svg {
  width: 24px;
  height: 24px;
  color: #ffffff;
}

.learn-more-text {
  display: flex;
  flex-direction: column;
}

.learn-more-title {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  color: #1e293b;
  transition: color 0.3s;
}

.learn-more-card:hover .learn-more-title {
  color: #bf3425;
}

.learn-more-desc {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 0.25rem;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(135deg, #fef7f6 0%, #ffffff 100%);
  border: 2px solid #bf3425;
  border-radius: 16px;
  padding: 2rem;
  margin: 2.5rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #bf3425, #47577c);
}

.cta-section p {
  margin-bottom: 1.25rem;
  color: #1e293b;
  font-size: 1.125rem;
}

.cta-button {
  display: inline-block;
  padding: 0.875rem 2rem;
  background: linear-gradient(135deg, #bf3425 0%, #9d2a1e 100%);
  color: #ffffff !important;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px -5px rgba(191, 52, 37, 0.4);
  color: #ffffff;
}

/* Author Section */
.author-section {
  margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid #e2e8f0;
}

.author-card {
  display: flex;
  gap: 32px;
  align-items: flex-start;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #e2e8f0;
}

.author-image-wrapper {
  flex-shrink: 0;
}

.author-image {
  width: 180px;
  height: 180px;
  border-radius: 16px;
  object-fit: cover;
  display: block;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}

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

.author-name {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 4px;
  text-decoration: underline;
  text-decoration-color: #bf3425;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
}

.author-title {
  font-size: 1rem;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 16px;
}

.author-social {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.author-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border-radius: 10px;
  transition:
    transform 0.2s,
    background 0.2s;
  text-decoration: none;
}

.author-social a:hover {
  transform: scale(1.1);
  background: #e2e8f0;
}

.author-social svg {
  width: 24px;
  height: 24px;
}

.about-author-label {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
  color: #bf3425;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.author-bio {
  font-size: 0.9375rem;
  color: #475569;
  line-height: 1.7;
  text-align: justify;
  margin: 0;
}

/* Section Scroll Margin */
section {
  scroll-margin-top: 40px;
}

/* ============================================
   RESPONSIVE BREAKPOINTS
   ============================================ */

/* Tablet Large & Below (1024px) */
@media (max-width: 1024px) {
  .blog-layout {
    flex-direction: column;
    gap: 32px;
  }

  .blog-sidebar {
    position: relative;
    top: 0;
    width: 100%;
    min-width: 100%;
    max-height: none;
    padding-right: 0;
    padding-bottom: 24px;
    border-bottom: 1px solid #e2e8f0;
  }

  .blog-sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .blog-sidebar-link {
    font-size: 13px;
    padding: 8px 12px;
  }

  .blog-content {
    max-width: 100%;
  }

  .blog-content h1 {
    font-size: 2.25rem;
  }

  .split-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .split-layout.reverse {
    direction: ltr;
  }

  .two-column-list,
  .feature-grid,
  .learn-more-container {
    grid-template-columns: 1fr;
  }

  .author-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

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

  .author-bio {
    text-align: center;
  }
}

/* Tablet (768px) */
@media (max-width: 768px) {
  .blog-layout {
    padding: 24px 16px;
  }

  .blog-content h1 {
    font-size: 2rem;
  }

  .blog-content h2 {
    font-size: 1.5rem;
  }

  /* Mobile Nav Toggle */
  .mobile-nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Hide sidebar on mobile, show on toggle */
  .blog-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background: #ffffff;
    z-index: 999;
    padding: 20px;
    overflow-y: auto;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    border-bottom: none;
    max-height: 100vh;
  }

  .blog-sidebar.active {
    transform: translateY(0);
  }

  .blog-sidebar-nav {
    flex-direction: column;
    gap: 4px;
  }

  .blog-sidebar-link {
    font-size: 16px;
    padding: 14px 16px;
    border-radius: 8px;
  }

  .blog-sidebar-title {
    font-size: 12px;
    margin-bottom: 20px;
    padding-top: 40px;
  }

  .data-table {
    font-size: 0.8125rem;
  }

  .data-table th,
  .data-table td {
    padding: 0.75rem 0.875rem;
  }

  .data-table.comparison-matrix {
    font-size: 0.75rem;
  }

  .data-table.comparison-matrix th,
  .data-table.comparison-matrix td {
    padding: 0.5rem 0.625rem;
  }

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

/* Mobile Large (640px) */
@media (max-width: 640px) {
  .blog-layout {
    padding: 20px 12px;
  }

  .blog-content h1 {
    font-size: 1.75rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .specs-grid {
    grid-template-columns: 1fr 1fr;
  }

  .intro-card,
  .highlight-box,
  .key-question,
  .blockquote-card {
    padding: 1.25rem;
  }

  .cta-button {
    width: 100%;
    text-align: center;
    padding: 1rem;
  }

  .learn-more-card {
    padding: 1rem;
  }

  .learn-more-icon {
    width: 40px;
    height: 40px;
  }

  .learn-more-icon svg {
    width: 20px;
    height: 20px;
  }
}

/* Mobile Small (480px) */
@media (max-width: 480px) {
  .blog-layout {
    padding: 16px 10px;
  }

  .blog-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .spec-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .author-image {
    width: 100px;
    height: 100px;
  }

  .author-card {
    padding: 1.25rem;
  }

  .feature-item {
    flex-direction: column;
    text-align: center;
  }

  .feature-icon {
    margin: 0 auto;
  }

  .cta-section {
    padding: 1.25rem;
  }

  .back-to-top {
    bottom: 20px;
    right: 20px;
    width: 42px;
    height: 42px;
  }

  .blockquote-card::before {
    font-size: 3.5rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .blog-sidebar,
  .mobile-nav-toggle,
  .cta-section,
  .author-social,
  .back-to-top,
  .reading-progress {
    display: none;
  }

  .blog-layout {
    display: block;
    padding: 0;
  }

  .blog-content {
    max-width: 100%;
  }

  .blog-content h1 {
    font-size: 24pt;
  }

  .blog-content h2 {
    font-size: 18pt;
    page-break-after: avoid;
  }

  .blog-content h3 {
    font-size: 14pt;
    page-break-after: avoid;
  }

  .full-width-image {
    max-width: 100%;
    page-break-inside: avoid;
  }

  .data-table-container {
    overflow: visible;
  }

  .data-table {
    font-size: 10pt;
  }

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

  .intro-card,
  .highlight-box,
  .key-question,
  .blockquote-card {
    page-break-inside: avoid;
  }
}

/* ============================================
   ACCESSIBILITY - REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ============================================
   HIGH CONTRAST MODE
   ============================================ */
@media (prefers-contrast: high) {
  .blog-sidebar-link.active {
    outline: 2px solid #bf3425;
  }

  .cta-button {
    border: 2px solid #ffffff;
  }

  .data-table th,
  .data-table td {
    border: 1px solid #334155;
  }
}
/* <!-- Infographic Placeholder 1 --> */
.lsam-diagram-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.lsam-diagram-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 20px;
  text-align: center;
}

.lsam-diagram-svg-wrap {
  position: relative;
  width: 100%;
  overflow: visible;
}

.lsam-diagram-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Component hover styles */
.lsam-component {
  cursor: pointer;
  transition: filter 0.3s ease;
}

.lsam-component:hover {
  filter: drop-shadow(0 0 8px rgba(71, 87, 124, 0.4));
}

.lsam-component:hover .lsam-fill-navy {
  fill: #3a4866;
}

.lsam-component:hover .lsam-fill-red {
  fill: #a82c1f;
}

.lsam-component:hover .lsam-fill-gray {
  fill: #8a8a89;
}

/* Tooltip */
.lsam-tooltip {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  transform: translateY(6px);
  z-index: 10;
  max-width: 260px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.lsam-tooltip.lsam-tooltip-visible {
  opacity: 1;
  transform: translateY(0);
}

.lsam-tooltip-title {
  font-weight: 700;
  font-size: 14px;
  color: #47577c;
  margin-bottom: 4px;
}

.lsam-tooltip-highlight {
  color: #bf3425;
  font-weight: 600;
}

/* Animated flow lines */
@keyframes lsamFlowDown {
  0% {
    stroke-dashoffset: 20;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.lsam-flow-line {
  stroke-dasharray: 6 4;
  animation: lsamFlowDown 0.8s linear infinite;
}

/* Material bead animation */
@keyframes lsamBeadMove {
  0% {
    transform: translateX(-30px);
  }
  100% {
    transform: translateX(30px);
  }
}

.lsam-bead {
  animation: lsamBeadMove 2s ease-in-out infinite alternate;
}

/* Pulse on extruder nozzle */
@keyframes lsamPulse {
  0%,
  100% {
    r: 4;
    opacity: 0.8;
  }
  50% {
    r: 7;
    opacity: 0.3;
  }
}

.lsam-pulse-dot {
  animation: lsamPulse 1.6s ease-in-out infinite;
}

/* Gantry shuttle animation */
@keyframes lsamGantryShuttle {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(20px);
  }
}

.lsam-gantry-head {
  animation: lsamGantryShuttle 3s ease-in-out infinite;
}

/* Source note */
.lsam-source-note {
  margin-top: 16px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}

/* Legend */
.lsam-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.lsam-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.lsam-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
/* <!-- Infographic Placeholder 2 --> */
.lsam-crossover-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.lsam-crossover-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 20px;
}

.lsam-crossover-chart-wrap {
  position: relative;
  width: 100%;
  height: 380px;
}

@media (min-width: 768px) {
  .lsam-crossover-chart-wrap {
    height: 420px;
  }
}

.lsam-crossover-note {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #64748b;
  font-style: italic;
}

.lsam-crossover-source {
  margin-top: 8px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}
/* <!-- Infographic Placeholder 3 --> */
.afp-timeline-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 20px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
  overflow: hidden;
}

.afp-timeline-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 28px;
  text-align: center;
}

.afp-timeline-svg-wrap {
  position: relative;
  width: 100%;
}

.afp-timeline-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* Milestone hover */
.afp-tl-milestone {
  cursor: pointer;
}

.afp-tl-milestone .afp-tl-dot-outer {
  transition:
    r 0.25s ease,
    opacity 0.25s ease;
}

.afp-tl-milestone:hover .afp-tl-dot-outer {
  r: 18;
  opacity: 0.18;
}

.afp-tl-milestone .afp-tl-dot-inner {
  transition: r 0.2s ease;
}

.afp-tl-milestone:hover .afp-tl-dot-inner {
  r: 9;
}

.afp-tl-milestone .afp-tl-card {
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
}

.afp-tl-milestone:hover .afp-tl-card {
  transform: translateY(-4px);
}

.afp-tl-milestone:hover .afp-tl-card-bg {
  filter: brightness(0.96);
}

/* Tooltip */
.afp-tl-tooltip {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  transform: translateY(6px);
  z-index: 10;
  max-width: 240px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.afp-tl-tooltip.afp-tl-tooltip-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-tl-tooltip-title {
  font-weight: 700;
  font-size: 14px;
  color: #47577c;
  margin-bottom: 4px;
}

.afp-tl-tooltip-highlight {
  color: #bf3425;
  font-weight: 600;
}

/* Arrow animation */
@keyframes afpTlArrowPulse {
  0%,
  100% {
    transform: translateX(0);
    opacity: 1;
  }
  50% {
    transform: translateX(6px);
    opacity: 0.6;
  }
}

.afp-tl-arrow-head {
  animation: afpTlArrowPulse 2s ease-in-out infinite;
}

/* Dot entrance animation */
@keyframes afpTlDotIn {
  0% {
    r: 0;
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.afp-tl-dot-inner {
  animation: afpTlDotIn 0.5s ease-out both;
}

/* Progress bar fill animation */
@keyframes afpTlProgressFill {
  0% {
    width: 0;
  }
  100% {
    width: 100%;
  }
}

.afp-tl-source {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}
/* <!-- Infographic Placeholder 4 --> */
.afp-workflow-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.afp-workflow-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 20px;
  text-align: center;
}

.afp-workflow-svg-wrap {
  position: relative;
  width: 100%;
}

.afp-workflow-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Node hover */
.afp-wf-node {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.afp-wf-node:hover {
  filter: drop-shadow(0 0 10px rgba(71, 87, 124, 0.35));
}

.afp-wf-node:hover .afp-wf-node-bg {
  transform: scale(1.04);
  transform-origin: center;
}

.afp-wf-node .afp-wf-node-bg {
  transition: transform 0.25s ease;
}

/* Flow arrow dash animation */
@keyframes afpWfFlowForward {
  0% {
    stroke-dashoffset: 16;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes afpWfFlowBack {
  0% {
    stroke-dashoffset: -16;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.afp-wf-arrow-fwd {
  stroke-dasharray: 8 4;
  animation: afpWfFlowForward 0.7s linear infinite;
}

.afp-wf-arrow-back {
  stroke-dasharray: 8 4;
  animation: afpWfFlowBack 0.7s linear infinite;
}

/* Feedback loop pulse */
@keyframes afpWfFeedbackPulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.afp-wf-feedback-label {
  animation: afpWfFeedbackPulse 2s ease-in-out infinite;
}

/* Tooltip */
.afp-wf-tooltip {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  transform: translateY(6px);
  z-index: 10;
  max-width: 250px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.afp-wf-tooltip.afp-wf-tooltip-visible {
  opacity: 1;
  transform: translateY(0);
}

.afp-wf-tooltip-title {
  font-weight: 700;
  font-size: 14px;
  color: #47577c;
  margin-bottom: 4px;
}

.afp-wf-tooltip-hl {
  color: #bf3425;
  font-weight: 600;
}

.afp-wf-source {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}

.afp-wf-legend {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.afp-wf-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.afp-wf-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
}
/* <!-- Infographic Placeholder 5 --> */
.sauber-arch-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.sauber-arch-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 20px;
  text-align: center;
}

.sauber-arch-svg-wrap {
  position: relative;
  width: 100%;
}

.sauber-arch-svg-wrap svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Node hover */
.sauber-node {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.sauber-node:hover {
  filter: drop-shadow(0 0 12px rgba(71, 87, 124, 0.35));
}

.sauber-node .sauber-node-bg {
  transition:
    transform 0.25s ease,
    opacity 0.25s ease;
  transform-origin: center;
}

.sauber-node:hover .sauber-node-bg {
  transform: scale(1.03);
}

/* Data flow animation */
@keyframes sauberDataFlow {
  0% {
    stroke-dashoffset: 16;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.sauber-flow-line {
  stroke-dasharray: 6 4;
  animation: sauberDataFlow 0.8s linear infinite;
}

/* Pulse on backbone */
@keyframes sauberBackbonePulse {
  0%,
  100% {
    opacity: 0.06;
  }
  50% {
    opacity: 0.14;
  }
}

.sauber-backbone-glow {
  animation: sauberBackbonePulse 3s ease-in-out infinite;
}

/* Partner badge hover */
.sauber-partner-badge {
  cursor: pointer;
  transition: transform 0.2s ease;
  transform-origin: center;
}

.sauber-partner-badge:hover {
  transform: scale(1.08);
}

/* Tooltip */
.sauber-tooltip {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  transform: translateY(6px);
  z-index: 10;
  max-width: 260px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.sauber-tooltip.sauber-tooltip-visible {
  opacity: 1;
  transform: translateY(0);
}

.sauber-tooltip-title {
  font-weight: 700;
  font-size: 14px;
  color: #47577c;
  margin-bottom: 4px;
}

.sauber-tooltip-hl {
  color: #bf3425;
  font-weight: 600;
}

.sauber-source {
  margin-top: 14px;
  text-align: center;
  font-size: 12px;
  color: #94a3b8;
  font-style: italic;
}
