/* ============================================
   NON-PLANAR SLICING 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;
}

/* 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%;
}

/* 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.25rem;
  font-style: italic;
  margin: 0;
}

/* 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;
}

/* Infographic Placeholders */
.infographic-placeholder {
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
  border: 2px dashed #cbd5e1;
}

.infographic-label {
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #47577c;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.infographic-description {
  font-size: 0.9375rem;
  color: #64748b;
  margin: 0;
  line-height: 1.6;
}

/* 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;
}

/* 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 h4 {
  margin-top: 0;
  color: #47577c;
}

.two-column-list ul {
  margin-bottom: 0;
}

/* 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;
}

/* 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 p {
  margin: 0;
  color: #1e293b;
}

.highlight-box.dark {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  border: none;
}

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

.highlight-box.dark p {
  color: #e2e8f0;
}

/* Equation Block */
.equation-block {
  background: #f8fafc;
  border-radius: 8px;
  padding: 1.25rem 2rem;
  margin: 1.5rem 0;
  text-align: center;
  font-family: "Archivo", sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1e293b;
  border: 1px solid #e2e8f0;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 2.5rem;
  margin: 2.5rem 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #bf3425, #47577c);
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  padding-bottom: 2.5rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-marker {
  position: absolute;
  left: -2.5rem;
  top: 0.25rem;
  width: 20px;
  height: 20px;
  background: #bf3425;
  border: 4px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 3px #bf3425;
}

.timeline-content h4 {
  margin: 0 0 0.75rem 0;
  color: #1e293b;
  font-size: 1.1rem;
}

.timeline-content ul {
  margin: 0;
  padding-left: 1.25rem;
}

.timeline-content li {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 0.5rem;
}

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

.conclusion-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1.5rem;
  position: relative;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}

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

.conclusion-number {
  position: absolute;
  top: -12px;
  left: 16px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #bf3425, #47577c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 0.875rem;
}

.conclusion-card p {
  margin: 0.5rem 0 0 0;
  font-size: 0.9375rem;
  color: #475569;
}

/* Final Statement */
.final-statement {
  background: linear-gradient(135deg, #47577c 0%, #1e293b 100%);
  border-radius: 12px;
  padding: 2rem;
  margin: 2rem 0;
  text-align: center;
}

.final-statement p {
  color: #ffffff;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 0;
}

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

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

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

/* ============================================
   MOBILE NAVIGATION TOGGLE
   ============================================ */
.mobile-nav-toggle {
  display: none;
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 1000;
  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;
}

/* ============================================
   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: 2rem;
  }

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

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

  .two-column-list,
  .feature-grid,
  .conclusions-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;
  }

  /* 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;
  }

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

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

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

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

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

  .intro-card,
  .highlight-box,
  .key-question {
    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;
  }

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

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

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

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

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

  .author-card {
    padding: 1.25rem;
  }

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

  .feature-icon {
    margin: 0 auto;
  }

  .timeline {
    padding-left: 2rem;
  }

  .timeline-marker {
    left: -2rem;
    width: 16px;
    height: 16px;
  }

  .cta-section {
    padding: 1.25rem;
  }

  .equation-block {
    padding: 1rem;
    font-size: 0.95rem;
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .blog-sidebar,
  .mobile-nav-toggle,
  .cta-section,
  .author-social {
    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 {
    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 START 1 --> */
.sfp-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;
}

.sfp-title {
  font-size: 18px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.sfp-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 16px 0;
}

.sfp-svg-wrapper {
  position: relative;
  width: 100%;
}

.sfp-svg-wrapper svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Fiber path animation */
.sfp-fiber-path {
  stroke-dasharray: 800;
  stroke-dashoffset: 800;
  animation: sfp-draw-fiber 3s ease forwards;
}
.sfp-fiber-path-2 {
  animation-delay: 0.15s;
}
.sfp-fiber-path-3 {
  animation-delay: 0.3s;
}
.sfp-fiber-path-4 {
  animation-delay: 0.45s;
}
.sfp-fiber-path-5 {
  animation-delay: 0.6s;
}
.sfp-fiber-path-6 {
  animation-delay: 0.75s;
}
.sfp-fiber-path-7 {
  animation-delay: 0.9s;
}

@keyframes sfp-draw-fiber {
  to {
    stroke-dashoffset: 0;
  }
}

/* Nozzle glow pulse */
.sfp-nozzle-glow {
  animation: sfp-glow-pulse 1.5s ease-in-out infinite;
}
@keyframes sfp-glow-pulse {
  0%,
  100% {
    opacity: 0.4;
    r: 4;
  }
  50% {
    opacity: 0.8;
    r: 6;
  }
}

/* Stress arrow fade-in */
.sfp-stress-arrow {
  opacity: 0;
  animation: sfp-fade-in 0.6s ease forwards 2s;
}
@keyframes sfp-fade-in {
  to {
    opacity: 1;
  }
}

/* Hotspot hover */
.sfp-hotspot {
  cursor: pointer;
  transition: filter 0.2s ease;
}
.sfp-hotspot:hover {
  filter: brightness(1.08);
}

/* Tooltip */
.sfp-tooltip {
  position: absolute;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  z-index: 10;
  max-width: 220px;
}
.sfp-tooltip.sfp-visible {
  opacity: 1;
}
.sfp-tooltip-title {
  font-size: 13px;
  font-weight: 700;
  color: #47577c;
  margin-bottom: 4px;
}
.sfp-tooltip-detail {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

/* Legend */
.sfp-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 16px;
  justify-content: center;
}
.sfp-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}
.sfp-legend-line {
  width: 20px;
  height: 3px;
  border-radius: 2px;
}
.sfp-legend-swatch {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}

/* Badges */
.sfp-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  justify-content: center;
}
.sfp-badge {
  font-size: 12px;
  font-weight: 600;
  color: #47577c;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 12px;
  background: #f8fafc;
}

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

/* <!-- INFOGRAPHIC START 2 --> */
.slice-cmp-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;
  position: relative;
}

.slice-cmp-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 4px;
}

.slice-cmp-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.slice-cmp-svg-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.slice-cmp-svg-wrap svg {
  width: 100%;
  max-width: 860px;
  height: auto;
}

/* Tooltip */
.slice-cmp-tip {
  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;
  z-index: 10;
  max-width: 260px;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
}

.slice-cmp-tip.active {
  opacity: 1;
}

.slice-cmp-tip-title {
  font-weight: 700;
  color: #bf3425;
  margin-bottom: 6px;
  font-size: 14px;
}

.slice-cmp-tip-detail {
  color: #475569;
  font-size: 12px;
}

/* Hotspot hover */
.sc-hotspot {
  cursor: pointer;
  transition:
    filter 0.2s ease,
    opacity 0.2s ease;
}
.sc-hotspot:hover {
  filter: brightness(1.06);
}

/* Animations */
@keyframes sc-draw-line {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes sc-fade-up {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sc-pulse-bad {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes sc-pulse-good {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.sc-layer-draw {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: sc-draw-line 1.2s ease forwards;
}

.sc-layer-d1 {
  animation-delay: 0.1s;
}
.sc-layer-d2 {
  animation-delay: 0.25s;
}
.sc-layer-d3 {
  animation-delay: 0.4s;
}
.sc-layer-d4 {
  animation-delay: 0.55s;
}
.sc-layer-d5 {
  animation-delay: 0.7s;
}
.sc-layer-d6 {
  animation-delay: 0.85s;
}
.sc-layer-d7 {
  animation-delay: 1s;
}
.sc-layer-d8 {
  animation-delay: 1.15s;
}
.sc-layer-d9 {
  animation-delay: 1.3s;
}

.sc-np-draw {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: sc-draw-line 1.6s ease forwards;
}

.sc-np-d1 {
  animation-delay: 0.15s;
}
.sc-np-d2 {
  animation-delay: 0.35s;
}
.sc-np-d3 {
  animation-delay: 0.55s;
}
.sc-np-d4 {
  animation-delay: 0.75s;
}
.sc-np-d5 {
  animation-delay: 0.95s;
}
.sc-np-d6 {
  animation-delay: 1.15s;
}
.sc-np-d7 {
  animation-delay: 1.35s;
}

.sc-stair-flash {
  animation: sc-pulse-bad 1.8s ease-in-out infinite;
  animation-delay: 1.8s;
}

.sc-smooth-flash {
  animation: sc-pulse-good 2s ease-in-out infinite;
  animation-delay: 2s;
}

/* Metric cards */
.slice-cmp-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

.sc-metric-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 0.25s ease;
  cursor: default;
}

.sc-metric-card:hover {
  border-color: #47577c;
  box-shadow: 0 2px 8px rgba(71, 87, 124, 0.1);
}

.sc-metric-card.bad:hover {
  border-color: #9d9d9c;
}

.sc-metric-card.good:hover {
  border-color: #bf3425;
}

.sc-metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.sc-metric-label.planar {
  color: #9d9d9c;
}
.sc-metric-label.nonplanar {
  color: #bf3425;
}

.sc-metric-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.sc-metric-key {
  font-size: 12px;
  color: #475569;
}

.sc-metric-val {
  font-size: 13px;
  font-weight: 700;
}

.sc-metric-val.bad {
  color: #9d9d9c;
}
.sc-metric-val.good {
  color: #47577c;
}

/* Source */
.slice-cmp-source {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}

/* Divider line */
.sc-vs-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #47577c;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 56%;
  z-index: 5;
  box-shadow: 0 2px 8px rgba(71, 87, 124, 0.25);
}

@media (max-width: 600px) {
  .slice-cmp-metrics {
    grid-template-columns: 1fr;
  }
}
/* <!-- INFOGRAPHIC START 3 --> */
.iso-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;
  position: relative;
}

.iso-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 4px;
}

.iso-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.iso-svg-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.iso-svg-wrap svg {
  width: 100%;
  max-width: 860px;
  height: auto;
}

/* Tooltip */
.iso-tip {
  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;
  z-index: 10;
  max-width: 270px;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
}

.iso-tip.active {
  opacity: 1;
}

.iso-tip-title {
  font-weight: 700;
  color: #bf3425;
  margin-bottom: 6px;
  font-size: 14px;
}

.iso-tip-detail {
  color: #475569;
  font-size: 12px;
}

/* Hotspots */
.iso-hot {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.iso-hot:hover {
  filter: brightness(1.06);
}

/* Animations */
@keyframes iso-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes iso-heat-pulse {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes iso-heat-rise {
  0% {
    opacity: 0;
    transform: translateY(4px);
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 0;
    transform: translateY(-12px);
  }
}

@keyframes iso-glow-t1 {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

@keyframes iso-glow-t2 {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 0.85;
  }
}

@keyframes iso-glow-t3 {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes iso-step-enter {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes iso-arrow-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}

.iso-surface-draw {
  stroke-dasharray: 500;
  stroke-dashoffset: 500;
  animation: iso-draw 1.8s ease forwards;
}

.iso-sd1 {
  animation-delay: 0.2s;
}
.iso-sd2 {
  animation-delay: 0.6s;
}
.iso-sd3 {
  animation-delay: 1s;
}

.iso-heat-bg {
  animation: iso-heat-pulse 3s ease-in-out infinite;
}

.iso-t1-glow {
  animation: iso-glow-t1 2.5s ease-in-out infinite;
}
.iso-t2-glow {
  animation: iso-glow-t2 2.5s ease-in-out infinite;
  animation-delay: 0.4s;
}
.iso-t3-glow {
  animation: iso-glow-t3 2.5s ease-in-out infinite;
  animation-delay: 0.8s;
}

.iso-heat-wisp {
  animation: iso-heat-rise 2.5s ease-in-out infinite;
}

.iso-hw1 {
  animation-delay: 0s;
}
.iso-hw2 {
  animation-delay: 0.6s;
}
.iso-hw3 {
  animation-delay: 1.2s;
}
.iso-hw4 {
  animation-delay: 0.3s;
}
.iso-hw5 {
  animation-delay: 0.9s;
}

.iso-step-box {
  opacity: 0;
  animation: iso-step-enter 0.5s ease forwards;
}

.iso-sb1 {
  animation-delay: 1.8s;
}
.iso-sb2 {
  animation-delay: 2.2s;
}
.iso-sb3 {
  animation-delay: 2.6s;
}

.iso-flow-arrow {
  animation: iso-arrow-pulse 1.5s ease-in-out infinite;
}

.iso-fa1 {
  animation-delay: 2s;
}
.iso-fa2 {
  animation-delay: 2.4s;
}

/* Benefits / Challenges row */
.iso-bc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}

@media (max-width: 600px) {
  .iso-bc-row {
    grid-template-columns: 1fr;
  }
}

.iso-bc-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
  transition: all 0.25s ease;
}

.iso-bc-card:hover {
  border-color: #47577c;
  box-shadow: 0 2px 10px rgba(71, 87, 124, 0.1);
}

.iso-bc-card.challenge:hover {
  border-color: #bf3425;
}

.iso-bc-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.iso-bc-label.benefit {
  color: #47577c;
}
.iso-bc-label.challenge {
  color: #bf3425;
}

.iso-bc-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

.iso-bc-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  margin-top: 1px;
}

.iso-bc-icon.green {
  background: #47577c;
}
.iso-bc-icon.amber {
  background: #bf3425;
}

/* Source */
.iso-source {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}
/* <!-- INFOGRAPHIC START 4 --> */
.psf-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;
  position: relative;
}

.psf-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 4px;
}

.psf-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.psf-svg-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.psf-svg-wrap svg {
  width: 100%;
  max-width: 860px;
  height: auto;
}

/* Tooltip */
.psf-tip {
  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;
  z-index: 10;
  max-width: 270px;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
}

.psf-tip.active {
  opacity: 1;
}

.psf-tip-title {
  font-weight: 700;
  color: #bf3425;
  margin-bottom: 6px;
  font-size: 14px;
}

.psf-tip-detail {
  color: #475569;
  font-size: 12px;
}

.psf-hot {
  cursor: pointer;
  transition: filter 0.2s ease;
}

.psf-hot:hover {
  filter: brightness(1.05);
}

/* Animations */
@keyframes psf-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes psf-load-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes psf-stress-glow {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes psf-flow-right {
  0% {
    transform: translateX(-6px);
    opacity: 0;
  }
  40% {
    opacity: 1;
  }
  100% {
    transform: translateX(6px);
    opacity: 0;
  }
}

@keyframes psf-concentration-pulse {
  0%,
  100% {
    r: 48;
    opacity: 0.06;
  }
  50% {
    r: 56;
    opacity: 0.14;
  }
}

.psf-arrow-draw {
  stroke-dasharray: 400;
  stroke-dashoffset: 400;
  animation: psf-draw 1.6s ease forwards;
}

.psf-ad1 {
  animation-delay: 0.1s;
}
.psf-ad2 {
  animation-delay: 0.2s;
}
.psf-ad3 {
  animation-delay: 0.3s;
}
.psf-ad4 {
  animation-delay: 0.4s;
}
.psf-ad5 {
  animation-delay: 0.5s;
}
.psf-ad6 {
  animation-delay: 0.6s;
}
.psf-ad7 {
  animation-delay: 0.7s;
}
.psf-ad8 {
  animation-delay: 0.8s;
}
.psf-ad9 {
  animation-delay: 0.9s;
}

.psf-load-arrow {
  animation: psf-load-pulse 1.8s ease-in-out infinite;
}

.psf-la1 {
  animation-delay: 0s;
}
.psf-la2 {
  animation-delay: 0.15s;
}
.psf-la3 {
  animation-delay: 0.3s;
}
.psf-la4 {
  animation-delay: 0.45s;
}
.psf-la5 {
  animation-delay: 0.6s;
}

.psf-conc-pulse {
  animation: psf-concentration-pulse 2s ease-in-out infinite;
}

.psf-stress-flash {
  animation: psf-stress-glow 2.5s ease-in-out infinite;
}

/* Comparison cards */
.psf-cmp-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 18px;
}

@media (max-width: 600px) {
  .psf-cmp-row {
    grid-template-columns: 1fr;
  }
}

.psf-cmp-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.psf-cmp-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(71, 87, 124, 0.12);
}

.psf-cmp-card.raster {
  border-top: 3px solid #9d9d9c;
}
.psf-cmp-card.aligned {
  border-top: 3px solid #bf3425;
}

.psf-cmp-card.raster:hover {
  border-color: #9d9d9c;
}
.psf-cmp-card.aligned:hover {
  border-color: #bf3425;
}

.psf-cmp-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.psf-cmp-badge {
  font-size: 10px;
  font-weight: 700;
  color: #ffffff;
  padding: 2px 8px;
  border-radius: 4px;
}

.psf-cmp-badge.raster {
  background: #9d9d9c;
}
.psf-cmp-badge.aligned {
  background: #bf3425;
}

.psf-cmp-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
}

.psf-cmp-svg-box {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.psf-cmp-svg-box svg {
  width: 100%;
  max-width: 320px;
  height: auto;
}

.psf-cmp-result {
  font-size: 12px;
  color: #475569;
  line-height: 1.5;
}

.psf-cmp-metric {
  display: inline-block;
  font-size: 20px;
  font-weight: 800;
  margin-right: 6px;
}

.psf-cmp-metric.bad {
  color: #9d9d9c;
}
.psf-cmp-metric.good {
  color: #47577c;
}

.psf-cmp-metric-label {
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
}

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

.psf-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #475569;
  font-weight: 500;
}

.psf-legend-line {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Source */
.psf-source {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}
/* <!-- INFOGRAPHIC START 5 --> */
.fea-pipe-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;
  position: relative;
}

.fea-pipe-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 4px;
}

.fea-pipe-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.fea-pipe-svg-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.fea-pipe-svg-wrap svg {
  width: 100%;
  max-width: 860px;
  height: auto;
}

/* Tooltip */
.fp-tip {
  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;
  z-index: 10;
  max-width: 280px;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
}

.fp-tip.active {
  opacity: 1;
}

.fp-tip-title {
  font-weight: 700;
  color: #bf3425;
  margin-bottom: 6px;
  font-size: 14px;
}

.fp-tip-detail {
  color: #475569;
  font-size: 12px;
}

.fp-hot {
  cursor: pointer;
}

/* Animations */
@keyframes fp-step-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fp-connector-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fp-arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@keyframes fp-mini-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fp-streamline-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fp-mesh-fade {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes fp-eigen-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fp-noise-jitter {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1px, -1px);
  }
  50% {
    transform: translate(-1px, 1px);
  }
  75% {
    transform: translate(1px, 1px);
  }
}

@keyframes fp-smooth-settle {
  0% {
    transform: translate(0, 0);
    opacity: 0.4;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.fp-step-anim {
  opacity: 0;
  animation: fp-step-enter 0.6s ease forwards;
}

.fp-s1 {
  animation-delay: 0.1s;
}
.fp-s2 {
  animation-delay: 0.5s;
}
.fp-s3 {
  animation-delay: 0.9s;
}
.fp-s4 {
  animation-delay: 1.3s;
}
.fp-s5 {
  animation-delay: 1.7s;
}

.fp-conn-draw {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: fp-connector-draw 0.4s ease forwards;
}

.fp-c1 {
  animation-delay: 0.4s;
}
.fp-c2 {
  animation-delay: 0.8s;
}
.fp-c3 {
  animation-delay: 1.2s;
}
.fp-c4 {
  animation-delay: 1.6s;
}

.fp-mesh-anim {
  animation: fp-mesh-fade 3s ease-in-out infinite;
}

.fp-stream-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: fp-streamline-draw 2s ease forwards;
  animation-delay: 2.2s;
}

.fp-sd1 {
  animation-delay: 2.2s;
}
.fp-sd2 {
  animation-delay: 2.5s;
}
.fp-sd3 {
  animation-delay: 2.8s;
}

/* Step card hover highlight */
.fp-step-card {
  transition: filter 0.25s ease;
}

.fp-step-card:hover {
  filter: brightness(0.98) drop-shadow(0 4px 12px rgba(71, 87, 124, 0.15));
}
/* <!-- INFOGRAPHIC START 6 --> */
.fea-pipe-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;
  position: relative;
}

.fea-pipe-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 4px;
}

.fea-pipe-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.fea-pipe-svg-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.fea-pipe-svg-wrap svg {
  width: 100%;
  max-width: 860px;
  height: auto;
}

/* Tooltip */
.fp-tip {
  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;
  z-index: 10;
  max-width: 280px;
  font-size: 13px;
  color: #1e293b;
  line-height: 1.5;
}

.fp-tip.active {
  opacity: 1;
}

.fp-tip-title {
  font-weight: 700;
  color: #bf3425;
  margin-bottom: 6px;
  font-size: 14px;
}

.fp-tip-detail {
  color: #475569;
  font-size: 12px;
}

.fp-hot {
  cursor: pointer;
}

/* Animations */
@keyframes fp-step-enter {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fp-connector-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fp-arrow-bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(3px);
  }
}

@keyframes fp-mini-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

@keyframes fp-streamline-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes fp-mesh-fade {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.35;
  }
}

@keyframes fp-eigen-rotate {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes fp-noise-jitter {
  0%,
  100% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(1px, -1px);
  }
  50% {
    transform: translate(-1px, 1px);
  }
  75% {
    transform: translate(1px, 1px);
  }
}

@keyframes fp-smooth-settle {
  0% {
    transform: translate(0, 0);
    opacity: 0.4;
  }
  100% {
    transform: translate(0, 0);
    opacity: 1;
  }
}

.fp-step-anim {
  opacity: 0;
  animation: fp-step-enter 0.6s ease forwards;
}

.fp-s1 {
  animation-delay: 0.1s;
}
.fp-s2 {
  animation-delay: 0.5s;
}
.fp-s3 {
  animation-delay: 0.9s;
}
.fp-s4 {
  animation-delay: 1.3s;
}
.fp-s5 {
  animation-delay: 1.7s;
}

.fp-conn-draw {
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: fp-connector-draw 0.4s ease forwards;
}

.fp-c1 {
  animation-delay: 0.4s;
}
.fp-c2 {
  animation-delay: 0.8s;
}
.fp-c3 {
  animation-delay: 1.2s;
}
.fp-c4 {
  animation-delay: 1.6s;
}

.fp-mesh-anim {
  animation: fp-mesh-fade 3s ease-in-out infinite;
}

.fp-stream-draw {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: fp-streamline-draw 2s ease forwards;
  animation-delay: 2.2s;
}

.fp-sd1 {
  animation-delay: 2.2s;
}
.fp-sd2 {
  animation-delay: 2.5s;
}
.fp-sd3 {
  animation-delay: 2.8s;
}

/* Step card hover highlight */
.fp-step-card {
  transition: filter 0.25s ease;
}

.fp-step-card:hover {
  filter: brightness(0.98) drop-shadow(0 4px 12px rgba(71, 87, 124, 0.15));
}
/* <!-- INFOGRAPHIC START 7 --> */
.dfs-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;
  position: relative;
}

.dfs-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 4px;
}

.dfs-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

/* 3-column defect card grid */
.dfs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 14px;
}

@media (max-width: 700px) {
  .dfs-grid {
    grid-template-columns: 1fr;
  }
}

.dfs-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.dfs-card:hover {
  border-color: #bf3425;
  box-shadow: 0 6px 20px rgba(191, 52, 37, 0.1);
  transform: translateY(-2px);
}

.dfs-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dfs-card-badge {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  background: #bf3425;
  border-radius: 5px;
  padding: 3px 8px;
  flex-shrink: 0;
}

.dfs-card-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.dfs-card-condition {
  font-size: 10px;
  color: #9d9d9c;
  font-weight: 600;
  font-style: italic;
  margin-bottom: 10px;
}

.dfs-card-svg {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}

.dfs-card-svg svg {
  width: 100%;
  height: auto;
}

.dfs-card-desc {
  font-size: 11px;
  color: #475569;
  line-height: 1.45;
}

/* Slide-up detail on hover */
.dfs-card-detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(71, 87, 124, 0.96) 65%,
    rgba(71, 87, 124, 0)
  );
  padding: 38px 14px 12px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.dfs-card:hover .dfs-card-detail {
  transform: translateY(0);
}

.dfs-card-detail-title {
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

.dfs-card-detail-text {
  font-size: 10px;
  color: #e2e8f0;
  line-height: 1.5;
}

/* Animations */
@keyframes dfs-wrinkle-wave {
  0%,
  100% {
    d: path("M 4 22 Q 12 18 20 22 Q 28 26 36 22 Q 44 18 52 22 Q 60 26 68 22");
  }
  50% {
    d: path("M 4 22 Q 12 26 20 22 Q 28 18 36 22 Q 44 26 52 22 Q 60 18 68 22");
  }
}

@keyframes dfs-compress {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(0.94);
  }
}

@keyframes dfs-tension {
  0%,
  100% {
    transform: scaleX(1);
  }
  50% {
    transform: scaleX(1.04);
  }
}

@keyframes dfs-gap-pulse {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.4;
  }
}

@keyframes dfs-overlap-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.6;
  }
}

@keyframes dfs-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes dfs-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.dfs-wrinkle-line {
  animation: dfs-wrinkle-wave 1.5s ease-in-out infinite;
}

.dfs-inner-compress {
  transform-origin: center;
  animation: dfs-compress 2s ease-in-out infinite;
}

.dfs-outer-tension {
  transform-origin: center;
  animation: dfs-tension 2s ease-in-out infinite;
}

.dfs-gap-flash {
  animation: dfs-gap-pulse 2s ease-in-out infinite;
}

.dfs-overlap-flash {
  animation: dfs-overlap-pulse 2s ease-in-out infinite;
}

.dfs-path-draw {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: dfs-draw 1.5s ease forwards;
}

.dfs-dd1 {
  animation-delay: 0.2s;
}
.dfs-dd2 {
  animation-delay: 0.5s;
}
.dfs-dd3 {
  animation-delay: 0.8s;
}

/* Impact section */
.dfs-impact {
  margin-top: 18px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.dfs-impact-title {
  font-size: 13px;
  font-weight: 700;
  color: #47577c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
}

.dfs-impact-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 12px;
}

@media (max-width: 600px) {
  .dfs-impact-row {
    grid-template-columns: 1fr;
  }
}

.dfs-impact-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px;
  text-align: center;
  transition: all 0.25s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.dfs-impact-card:hover {
  border-color: #bf3425;
  box-shadow: 0 2px 10px rgba(191, 52, 37, 0.08);
}

.dfs-impact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #bf3425;
  border-radius: 3px 3px 0 0;
}

.dfs-impact-icon {
  font-size: 22px;
  margin-bottom: 6px;
}

.dfs-impact-metric {
  font-size: 26px;
  font-weight: 800;
  color: #bf3425;
  line-height: 1;
  margin-bottom: 4px;
}

.dfs-impact-label {
  font-size: 11px;
  color: #64748b;
  line-height: 1.3;
}

/* Severity bar */
.dfs-sev-wrap {
  margin-top: 10px;
}

.dfs-sev-bar {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.dfs-sev-fill {
  height: 100%;
  border-radius: 3px;
  background: #bf3425;
  transition: width 0.8s ease;
}

.dfs-sev-label {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #94a3b8;
  margin-top: 3px;
}

/* Source */
.dfs-source {
  margin-top: 14px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}
.cts-compare-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.cts-compare-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 4px 0;
  text-align: center;
}

.cts-compare-subtitle {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 0 0 24px 0;
  font-style: italic;
}

.cts-columns {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .cts-columns {
    flex-direction: column;
  }
}

.cts-col {
  flex: 1;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cts-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15);
}

.cts-col-conv {
  background: linear-gradient(135deg, #f8f9fb 0%, #eef0f5 100%);
  border: 2px solid #47577c;
}

.cts-col-cts {
  background: linear-gradient(135deg, #fef8f7 0%, #fceeed 100%);
  border: 2px solid #bf3425;
}

.cts-col-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid;
}

.cts-col-conv .cts-col-label {
  color: #47577c;
  border-color: #47577c;
}

.cts-col-cts .cts-col-label {
  color: #bf3425;
  border-color: #bf3425;
}

/* SVG Diagram Area */
.cts-diagram-area {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  margin-bottom: 16px;
}

.cts-diagram-area svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* Mechanism Tag */
.cts-mechanism-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.cts-col-conv .cts-mechanism-tag {
  background: #47577c;
  color: #ffffff;
}

.cts-col-cts .cts-mechanism-tag {
  background: #bf3425;
  color: #ffffff;
}

/* Detail Rows */
.cts-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
  transition: background 0.2s ease;
  cursor: default;
}

.cts-detail-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

.cts-detail-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.cts-col-conv .cts-detail-icon {
  color: #47577c;
}
.cts-col-cts .cts-detail-icon {
  color: #bf3425;
}

.cts-detail-label {
  font-weight: 600;
  color: #1e293b;
}

/* Radius Highlight */
.cts-radius-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cts-col-conv .cts-radius-box {
  background: #47577c;
}

.cts-col-cts .cts-radius-box {
  background: #bf3425;
}

.cts-radius-value {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.cts-radius-unit {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 2px 0 0 0;
}

.cts-radius-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin: 4px 0 0 0;
}

/* Improvement Arrow Banner */
.cts-improvement-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(90deg, #47577c 0%, #bf3425 100%);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cts-improvement-stat {
  text-align: center;
  color: #ffffff;
  padding: 0 12px;
  position: relative;
}

.cts-improvement-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.cts-improvement-value {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.cts-improvement-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin: 2px 0 0 0;
}

/* Source */
.cts-source-line {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* Animated SVG Paths */
@keyframes cts-draw-path {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes cts-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.cts-anim-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: cts-draw-path 1.5s ease forwards;
}

.cts-col:hover .cts-anim-path {
  animation: cts-draw-path 0.8s ease forwards;
}

.cts-wrinkle-line {
  animation: cts-pulse 2s ease-in-out infinite;
}

/* Tooltip on hover for SVG */
.cts-svg-tooltip {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cts-diagram-area:hover .cts-svg-tooltip {
  opacity: 1;
}
/* info 8 */
.cts-compare-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.cts-compare-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 4px 0;
  text-align: center;
}

.cts-compare-subtitle {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 0 0 24px 0;
  font-style: italic;
}

.cts-columns {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .cts-columns {
    flex-direction: column;
  }
}

.cts-col {
  flex: 1;
  border-radius: 12px;
  padding: 20px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.cts-col:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.15);
}

.cts-col-conv {
  background: linear-gradient(135deg, #f8f9fb 0%, #eef0f5 100%);
  border: 2px solid #47577c;
}

.cts-col-cts {
  background: linear-gradient(135deg, #fef8f7 0%, #fceeed 100%);
  border: 2px solid #bf3425;
}

.cts-col-label {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0 0 16px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid;
}

.cts-col-conv .cts-col-label {
  color: #47577c;
  border-color: #47577c;
}

.cts-col-cts .cts-col-label {
  color: #bf3425;
  border-color: #bf3425;
}

/* SVG Diagram Area */
.cts-diagram-area {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 180px;
  margin-bottom: 16px;
}

.cts-diagram-area svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* Mechanism Tag */
.cts-mechanism-tag {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 12px;
}

.cts-col-conv .cts-mechanism-tag {
  background: #47577c;
  color: #ffffff;
}

.cts-col-cts .cts-mechanism-tag {
  background: #bf3425;
  color: #ffffff;
}

/* Detail Rows */
.cts-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 6px;
  font-size: 13px;
  color: #334155;
  line-height: 1.45;
  transition: background 0.2s ease;
  cursor: default;
}

.cts-detail-row:hover {
  background: rgba(0, 0, 0, 0.04);
}

.cts-detail-icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
}

.cts-col-conv .cts-detail-icon {
  color: #47577c;
}
.cts-col-cts .cts-detail-icon {
  color: #bf3425;
}

.cts-detail-label {
  font-weight: 600;
  color: #1e293b;
}

/* Radius Highlight */
.cts-radius-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 8px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cts-col-conv .cts-radius-box {
  background: #47577c;
}

.cts-col-cts .cts-radius-box {
  background: #bf3425;
}

.cts-radius-value {
  font-size: 28px;
  font-weight: 800;
  color: #ffffff;
  margin: 0;
  line-height: 1.2;
}

.cts-radius-unit {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  margin: 2px 0 0 0;
}

.cts-radius-note {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.65);
  margin: 4px 0 0 0;
}

/* Improvement Arrow Banner */
.cts-improvement-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  background: linear-gradient(90deg, #47577c 0%, #bf3425 100%);
  border-radius: 10px;
  padding: 14px 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.cts-improvement-stat {
  text-align: center;
  color: #ffffff;
  padding: 0 12px;
  position: relative;
}

.cts-improvement-stat:not(:last-child)::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 10%;
  height: 80%;
  width: 1px;
  background: rgba(255, 255, 255, 0.3);
}

.cts-improvement-value {
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.cts-improvement-label {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  opacity: 0.85;
  margin: 2px 0 0 0;
}

/* Source */
.cts-source-line {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin: 0;
  line-height: 1.4;
}

/* Animated SVG Paths */
@keyframes cts-draw-path {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes cts-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.cts-anim-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: cts-draw-path 1.5s ease forwards;
}

.cts-col:hover .cts-anim-path {
  animation: cts-draw-path 0.8s ease forwards;
}

.cts-wrinkle-line {
  animation: cts-pulse 2s ease-in-out infinite;
}

/* Tooltip on hover for SVG */
.cts-svg-tooltip {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.cts-diagram-area:hover .cts-svg-tooltip {
  opacity: 1;
}
/* <!-- INFOGRAPHIC START 9 --> */
.dof-robot-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.dof-robot-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 4px 0;
  text-align: center;
}

.dof-robot-subtitle {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 0 0 24px 0;
  font-style: italic;
}

/* Top Section: Workspace Diagram + Constraints Side-by-Side */
.dof-top-section {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

@media (max-width: 700px) {
  .dof-top-section {
    flex-direction: column;
  }
}

/* Workspace SVG Panel */
.dof-workspace-panel {
  flex: 1;
  background: linear-gradient(135deg, #f8f9fb 0%, #eef0f5 100%);
  border: 2px solid #47577c;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.dof-workspace-panel:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px -4px rgba(71, 87, 124, 0.2);
}

.dof-workspace-label {
  font-size: 13px;
  font-weight: 700;
  color: #47577c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 10px 0;
}

.dof-workspace-svg-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

.dof-workspace-svg-wrap svg {
  width: 100%;
  max-width: 280px;
  height: auto;
}

/* Constraints Panel */
.dof-constraints-panel {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.dof-constraints-heading {
  font-size: 13px;
  font-weight: 700;
  color: #47577c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}

.dof-constraint-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.dof-constraint-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #9d9d9c;
  transition:
    background 0.3s ease,
    width 0.3s ease;
}

.dof-constraint-card:hover {
  border-color: #47577c;
  box-shadow: 0 4px 12px -2px rgba(71, 87, 124, 0.15);
  transform: translateX(4px);
}

.dof-constraint-card:hover::before {
  background: #bf3425;
  width: 4px;
}

.dof-constraint-num {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #47577c;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.dof-constraint-card:hover .dof-constraint-num {
  background: #bf3425;
}

.dof-constraint-text {
  flex: 1;
}

.dof-constraint-name {
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 2px 0;
}

.dof-constraint-desc {
  font-size: 11.5px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Hover detail that reveals on card hover */
.dof-constraint-detail {
  font-size: 11px;
  color: #bf3425;
  margin: 4px 0 0 0;
  max-height: 0;
  overflow: hidden;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
  opacity: 0;
  font-weight: 600;
}

.dof-constraint-card:hover .dof-constraint-detail {
  max-height: 40px;
  opacity: 1;
}

/* Bottom Section: Toolpath Requirements */
.dof-toolpath-section {
  background: linear-gradient(135deg, #fef8f7 0%, #fceeed 100%);
  border: 2px solid #bf3425;
  border-radius: 12px;
  padding: 18px 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.dof-toolpath-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(191, 52, 37, 0.15);
}

.dof-toolpath-heading {
  font-size: 13px;
  font-weight: 700;
  color: #bf3425;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(191, 52, 37, 0.2);
}

.dof-toolpath-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 500px) {
  .dof-toolpath-grid {
    grid-template-columns: 1fr;
  }
}

.dof-toolpath-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 52, 37, 0.12);
  transition: all 0.3s ease;
  cursor: default;
}

.dof-toolpath-item:hover {
  background: #ffffff;
  border-color: #bf3425;
  box-shadow: 0 2px 8px -2px rgba(191, 52, 37, 0.2);
}

.dof-toolpath-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #bf3425;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.dof-toolpath-item:hover .dof-toolpath-icon {
  transform: scale(1.1);
}

.dof-toolpath-icon svg {
  width: 16px;
  height: 16px;
  color: #ffffff;
}

.dof-toolpath-item-text {
  flex: 1;
}

.dof-toolpath-item-name {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 2px 0;
}

.dof-toolpath-item-desc {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* SVG Animations */
@keyframes dof-rotate-sweep {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@keyframes dof-pulse-ring {
  0%,
  100% {
    opacity: 0.15;
    r: 85;
  }
  50% {
    opacity: 0.3;
    r: 90;
  }
}

@keyframes dof-blink-warn {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.9;
  }
}

.dof-sweep-ring {
  animation: dof-pulse-ring 3s ease-in-out infinite;
}

.dof-singular-dot {
  animation: dof-blink-warn 1.8s ease-in-out infinite;
}

.dof-svg-hover-label {
  opacity: 0;
  transition: opacity 0.3s ease;
}

.dof-workspace-svg-wrap:hover .dof-svg-hover-label {
  opacity: 1;
}

/* Axis badge animation on workspace hover */
@keyframes dof-axis-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

.dof-workspace-panel:hover .dof-axis-badge {
  animation: dof-axis-pop 0.6s ease;
}
/* <!-- INFOGRAPHIC START 10 --> */
.mech-perf-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.mech-perf-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 4px 0;
  text-align: center;
}

.mech-perf-subtitle {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 0 0 24px 0;
  font-style: italic;
}

/* Section Cards */
.mech-perf-section {
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 20px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.mech-perf-section:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px -4px rgba(0, 0, 0, 0.12);
}

.mech-perf-section-load {
  background: linear-gradient(135deg, #f8f9fb 0%, #eef0f5 100%);
  border: 2px solid #47577c;
}

.mech-perf-section-stress {
  background: linear-gradient(135deg, #fef8f7 0%, #fceeed 100%);
  border: 2px solid #bf3425;
}

.mech-perf-section-label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 6px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid;
}

.mech-perf-section-load .mech-perf-section-label {
  color: #47577c;
  border-color: #47577c;
}

.mech-perf-section-stress .mech-perf-section-label {
  color: #bf3425;
  border-color: #bf3425;
}

.mech-perf-section-desc {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 18px 0;
}

/* Horizontal Bar Rows */
.mech-bar-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  cursor: default;
  position: relative;
}

.mech-bar-label {
  flex-shrink: 0;
  width: 160px;
  text-align: right;
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
  line-height: 1.3;
}

@media (max-width: 600px) {
  .mech-bar-label {
    width: 110px;
    font-size: 11px;
  }
}

.mech-bar-track {
  flex: 1;
  height: 36px;
  background: #f1f5f9;
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.mech-bar-fill {
  height: 100%;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 10px;
  position: relative;
  width: 0;
  transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.mech-bar-fill.mech-animated {
  /* Width set via inline style */
}

.mech-bar-value {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Small value label for narrow bars */
.mech-bar-value-outside {
  position: absolute;
  right: -45px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* Hover tooltip */
.mech-bar-tooltip {
  position: absolute;
  top: -34px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 4px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.3s ease,
    top 0.3s ease;
  z-index: 10;
}

.mech-bar-tooltip::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 5px solid #1e293b;
}

.mech-bar-row:hover .mech-bar-tooltip {
  opacity: 1;
  top: -38px;
}

.mech-bar-row:hover .mech-bar-fill {
  filter: brightness(1.08);
}

/* Bar colors */
.mech-bar-baseline {
  background: #9d9d9c;
}
.mech-bar-navy {
  background: #47577c;
}
.mech-bar-red {
  background: #bf3425;
}
.mech-bar-gradient {
  background: linear-gradient(90deg, #47577c 0%, #bf3425 100%);
}

/* Scale axis */
.mech-scale-axis {
  display: flex;
  margin-left: 172px;
  margin-top: 4px;
  position: relative;
  height: 20px;
}

@media (max-width: 600px) {
  .mech-scale-axis {
    margin-left: 122px;
  }
}

.mech-scale-line {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: #cbd5e1;
}

.mech-scale-tick {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  font-size: 10px;
  color: #94a3b8;
  font-weight: 500;
  padding-top: 4px;
}

.mech-scale-tick::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 6px;
  background: #cbd5e1;
}

/* Improvement callout */
.mech-improvement-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  padding: 10px 16px;
  background: linear-gradient(90deg, #47577c, #bf3425);
  border-radius: 8px;
}

.mech-improvement-text {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.mech-improvement-highlight {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
}

/* Stress reduction specific */
.mech-stress-comparison {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 8px;
  border: 1px solid rgba(191, 52, 37, 0.15);
}

@media (max-width: 600px) {
  .mech-stress-comparison {
    flex-direction: column;
    gap: 10px;
  }
}

.mech-stress-stat {
  text-align: center;
  flex: 1;
}

.mech-stress-stat-value {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.mech-stress-stat-label {
  font-size: 11px;
  color: #64748b;
  margin: 2px 0 0 0;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  font-weight: 600;
}

.mech-stress-arrow {
  font-size: 24px;
  color: #9d9d9c;
  font-weight: 300;
}

@media (max-width: 600px) {
  .mech-stress-arrow {
    transform: rotate(90deg);
  }
}

/* Source */
.mech-perf-source {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin: 16px 0 0 0;
  line-height: 1.4;
}
/* //info 11 */
.topo-opt-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.topo-opt-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 4px 0;
  text-align: center;
}

.topo-opt-subtitle {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 0 0 28px 0;
  font-style: italic;
}

/* Flow connector arrows */
.topo-flow-arrow {
  display: flex;
  justify-content: center;
  padding: 8px 0;
}

.topo-flow-arrow svg {
  width: 28px;
  height: 28px;
}

/* ── STAGE CARD BASE ── */
.topo-stage {
  border-radius: 12px;
  padding: 20px;
  position: relative;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.topo-stage:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.12);
}

/* Stage header row */
.topo-stage-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.topo-stage-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
}

.topo-stage-name {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

/* ── INPUTS STAGE ── */
.topo-stage-inputs {
  background: linear-gradient(135deg, #f8f9fb 0%, #eef0f5 100%);
  border: 2px solid #9d9d9c;
}

.topo-stage-inputs .topo-stage-badge {
  background: #9d9d9c;
}
.topo-stage-inputs .topo-stage-name {
  color: #64748b;
}

.topo-input-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.topo-input-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  font-size: 12px;
  color: #334155;
  font-weight: 500;
  transition: all 0.3s ease;
  cursor: default;
}

.topo-input-chip:hover {
  border-color: #47577c;
  background: #f0f3f8;
  transform: translateY(-1px);
  box-shadow: 0 2px 6px -1px rgba(71, 87, 124, 0.15);
}

.topo-input-chip-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #9d9d9c;
  transition: color 0.3s ease;
}

.topo-input-chip:hover .topo-input-chip-icon {
  color: #47577c;
}

/* ── OPTIMIZATION LOOP STAGE ── */
.topo-stage-loop {
  background: #ffffff;
  border: 2px solid #47577c;
  padding: 0;
  overflow: hidden;
}

.topo-loop-header-bar {
  background: #47577c;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.topo-loop-header-badge {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
}

.topo-loop-header-text {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0;
}

.topo-loop-body {
  padding: 20px;
}

/* Twin optimization panels */
.topo-twin-panels {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
}

@media (max-width: 650px) {
  .topo-twin-panels {
    flex-direction: column;
  }
}

.topo-opt-panel {
  flex: 1;
  border-radius: 10px;
  padding: 16px;
  position: relative;
  transition: all 0.3s ease;
  cursor: default;
}

.topo-opt-panel:hover {
  transform: scale(1.02);
}

.topo-opt-panel-topo {
  background: linear-gradient(135deg, #f8f9fb 0%, #eef0f5 100%);
  border: 1.5px solid #47577c;
}

.topo-opt-panel-topo:hover {
  box-shadow: 0 4px 14px -3px rgba(71, 87, 124, 0.25);
}

.topo-opt-panel-path {
  background: linear-gradient(135deg, #fef8f7 0%, #fceeed 100%);
  border: 1.5px solid #bf3425;
}

.topo-opt-panel-path:hover {
  box-shadow: 0 4px 14px -3px rgba(191, 52, 37, 0.25);
}

.topo-opt-panel-title {
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1.5px solid;
}

.topo-opt-panel-topo .topo-opt-panel-title {
  color: #47577c;
  border-color: rgba(71, 87, 124, 0.3);
}

.topo-opt-panel-path .topo-opt-panel-title {
  color: #bf3425;
  border-color: rgba(191, 52, 37, 0.3);
}

.topo-opt-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #334155;
  line-height: 1.4;
}

.topo-opt-row:last-child {
  margin-bottom: 0;
}

.topo-opt-row-key {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 3px;
  margin-top: 1px;
}

.topo-opt-panel-topo .topo-opt-row-key {
  background: rgba(71, 87, 124, 0.1);
  color: #47577c;
}

.topo-opt-panel-path .topo-opt-row-key {
  background: rgba(191, 52, 37, 0.1);
  color: #bf3425;
}

.topo-opt-row-val {
  font-weight: 500;
}

.topo-opt-row-val code {
  font-family: "SF Mono", "Fira Code", monospace;
  font-size: 11.5px;
  background: rgba(0, 0, 0, 0.05);
  padding: 1px 5px;
  border-radius: 3px;
  font-weight: 600;
}

/* Coupling arrow between panels */
.topo-coupling-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  gap: 4px;
}

@media (max-width: 650px) {
  .topo-coupling-arrow {
    flex-direction: row;
    width: auto;
    height: 36px;
    justify-content: center;
  }
}

.topo-coupling-arrow svg {
  width: 20px;
  height: 20px;
}

@keyframes topo-arrow-pulse-right {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(3px);
    opacity: 1;
  }
}

@keyframes topo-arrow-pulse-left {
  0%,
  100% {
    transform: translateX(0);
    opacity: 0.6;
  }
  50% {
    transform: translateX(-3px);
    opacity: 1;
  }
}

.topo-coupling-arrow svg:first-child {
  animation: topo-arrow-pulse-right 2s ease-in-out infinite;
}

.topo-coupling-arrow svg:last-child {
  animation: topo-arrow-pulse-left 2s ease-in-out infinite;
  animation-delay: 1s;
}

/* Coupling footer */
.topo-coupling-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(
    90deg,
    rgba(71, 87, 124, 0.06),
    rgba(191, 52, 37, 0.06)
  );
  border-radius: 8px;
  border: 1px dashed #9d9d9c;
}

.topo-coupling-footer-icon {
  width: 18px;
  height: 18px;
  color: #9d9d9c;
  flex-shrink: 0;
}

.topo-coupling-footer-text {
  font-size: 12px;
  color: #64748b;
  font-weight: 500;
  margin: 0;
}

.topo-coupling-footer-text strong {
  color: #1e293b;
  font-weight: 700;
}

/* ── OUTPUTS STAGE ── */
.topo-stage-outputs {
  background: linear-gradient(135deg, #fef8f7 0%, #fceeed 100%);
  border: 2px solid #bf3425;
}

.topo-stage-outputs .topo-stage-badge {
  background: #bf3425;
}
.topo-stage-outputs .topo-stage-name {
  color: #bf3425;
}

.topo-output-cards {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

@media (max-width: 600px) {
  .topo-output-cards {
    grid-template-columns: 1fr;
  }
}

.topo-output-card {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(191, 52, 37, 0.12);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  transition: all 0.3s ease;
  cursor: default;
  position: relative;
  overflow: hidden;
}

.topo-output-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #bf3425;
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.topo-output-card:hover {
  background: #ffffff;
  border-color: #bf3425;
  box-shadow: 0 4px 12px -3px rgba(191, 52, 37, 0.2);
  transform: translateY(-2px);
}

.topo-output-card:hover::after {
  transform: scaleX(1);
}

.topo-output-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #bf3425;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px auto;
  transition:
    transform 0.3s ease,
    background 0.3s ease;
}

.topo-output-card:hover .topo-output-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
  background: #47577c;
}

.topo-output-icon-wrap svg {
  width: 18px;
  height: 18px;
  color: #ffffff;
}

.topo-output-card-title {
  font-size: 12px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.topo-output-card-desc {
  font-size: 11px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

/* Hover-reveal detail on output cards */
.topo-output-card-detail {
  font-size: 10.5px;
  color: #bf3425;
  font-weight: 600;
  margin: 6px 0 0 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
}

.topo-output-card:hover .topo-output-card-detail {
  max-height: 30px;
  opacity: 1;
}

/* Source */
.topo-opt-source {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin: 20px 0 0 0;
  line-height: 1.4;
}

/* Entry animation */
@keyframes topo-fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.topo-stage-inputs {
  animation: topo-fade-up 0.6s ease both;
}
.topo-stage-loop {
  animation: topo-fade-up 0.6s ease 0.2s both;
}
.topo-stage-outputs {
  animation: topo-fade-up 0.6s ease 0.4s both;
}
/* info 3 */
.nps-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;
  position: relative;
}

.nps-title {
  font-size: 18px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 4px;
}

.nps-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 20px;
}

.nps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .nps-grid {
    grid-template-columns: 1fr;
  }
}

/* Individual strategy card */
.nps-card {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  transition: all 0.3s ease;
  overflow: hidden;
}

.nps-card:hover {
  border-color: #47577c;
  box-shadow: 0 4px 16px rgba(71, 87, 124, 0.12);
  transform: translateY(-2px);
}

.nps-card-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: #47577c;
  border-radius: 4px;
  padding: 2px 8px;
  margin-bottom: 8px;
}

.nps-card-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.nps-card-desc {
  font-size: 11px;
  color: #64748b;
  margin-bottom: 12px;
  line-height: 1.4;
}

.nps-card-svg {
  width: 100%;
  display: flex;
  justify-content: center;
}

.nps-card-svg svg {
  width: 100%;
  max-width: 360px;
  height: auto;
}

/* Detail panel that reveals on hover */
.nps-card-detail {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(
    to top,
    rgba(71, 87, 124, 0.95) 60%,
    rgba(71, 87, 124, 0)
  );
  padding: 40px 16px 14px;
  transform: translateY(100%);
  transition: transform 0.35s ease;
  pointer-events: none;
}

.nps-card:hover .nps-card-detail {
  transform: translateY(0);
}

.nps-card-detail-text {
  font-size: 11px;
  color: #e2e8f0;
  line-height: 1.5;
}

.nps-card-detail-title {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
}

/* Tag pills */
.nps-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.nps-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: #eef1f6;
  color: #47577c;
  border: 1px solid #dde2ec;
  transition: all 0.2s ease;
}

.nps-card:hover .nps-tag {
  background: #47577c;
  color: #ffffff;
  border-color: #47577c;
}

/* Animations */
@keyframes nps-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes nps-arrow-flow {
  0% {
    opacity: 0;
    transform: translateX(-8px);
  }
  30% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(8px);
  }
}

@keyframes nps-pulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.9;
  }
}

@keyframes nps-geodesic-shimmer {
  0%,
  100% {
    stroke-opacity: 0.5;
  }
  50% {
    stroke-opacity: 1;
  }
}

.nps-layer-draw {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: nps-draw 1.4s ease forwards;
}

.nps-ld1 {
  animation-delay: 0.1s;
}
.nps-ld2 {
  animation-delay: 0.3s;
}
.nps-ld3 {
  animation-delay: 0.5s;
}
.nps-ld4 {
  animation-delay: 0.7s;
}
.nps-ld5 {
  animation-delay: 0.9s;
}

.nps-iso-pulse {
  animation: nps-pulse 2.2s ease-in-out infinite;
}
.nps-iso-p1 {
  animation-delay: 0s;
}
.nps-iso-p2 {
  animation-delay: 0.5s;
}
.nps-iso-p3 {
  animation-delay: 1s;
}

.nps-geo-shimmer {
  animation: nps-geodesic-shimmer 2s ease-in-out infinite;
}
.nps-gs1 {
  animation-delay: 0s;
}
.nps-gs2 {
  animation-delay: 0.3s;
}
.nps-gs3 {
  animation-delay: 0.6s;
}
.nps-gs4 {
  animation-delay: 0.9s;
}

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

.nps-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #475569;
  font-weight: 500;
}

.nps-legend-line {
  width: 18px;
  height: 3px;
  border-radius: 2px;
  flex-shrink: 0;
}

.nps-legend-dash {
  width: 18px;
  height: 0;
  border-top: 2px dashed;
  flex-shrink: 0;
}

/* Source */
.nps-source {
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  color: #94a3b8;
  font-style: italic;
}
/* info 14 */
.aero-app-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.aero-app-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 4px 0;
  text-align: center;
}

.aero-app-subtitle {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 0 0 24px 0;
  font-style: italic;
}

/* Application cards grid */
.aero-cards-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Individual Application Card ── */
.aero-card {
  display: flex;
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  transition: all 0.35s ease;
  cursor: default;
  position: relative;
}

.aero-card:hover {
  border-color: #47577c;
  box-shadow: 0 8px 24px -6px rgba(71, 87, 124, 0.18);
  transform: translateY(-3px);
}

@media (max-width: 650px) {
  .aero-card {
    flex-direction: column;
  }
}

/* Left: SVG diagram panel */
.aero-card-diagram {
  flex-shrink: 0;
  width: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

@media (max-width: 650px) {
  .aero-card-diagram {
    width: 100%;
    min-height: 180px;
  }
}

.aero-card-a .aero-card-diagram {
  background: linear-gradient(135deg, #eef0f5 0%, #dde1eb 100%);
}
.aero-card-b .aero-card-diagram {
  background: linear-gradient(135deg, #fceeed 0%, #f8dfdd 100%);
}
.aero-card-c .aero-card-diagram {
  background: linear-gradient(135deg, #f3f3f2 0%, #e8e8e7 100%);
}

.aero-card-diagram svg {
  width: 100%;
  max-width: 180px;
  height: auto;
}

/* Right: Content panel */
.aero-card-content {
  flex: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Card header with letter badge */
.aero-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.aero-card-badge {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.aero-card:hover .aero-card-badge {
  transform: scale(1.1) rotate(-3deg);
}

.aero-card-a .aero-card-badge {
  background: #47577c;
}
.aero-card-b .aero-card-badge {
  background: #bf3425;
}
.aero-card-c .aero-card-badge {
  background: #9d9d9c;
}

.aero-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.3;
}

/* Description */
.aero-card-desc {
  font-size: 12.5px;
  color: #475569;
  line-height: 1.5;
  margin: 0 0 14px 0;
}

/* Stat row */
.aero-stat-row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.aero-stat-box {
  flex: 1;
  min-width: 120px;
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.aero-stat-box::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  transition: width 0.3s ease;
}

.aero-stat-box:hover {
  transform: translateY(-1px);
}

.aero-card-a .aero-stat-box {
  background: rgba(71, 87, 124, 0.06);
}
.aero-card-a .aero-stat-box::before {
  background: #47577c;
}
.aero-card-a .aero-stat-box:hover {
  background: rgba(71, 87, 124, 0.1);
}

.aero-card-b .aero-stat-box {
  background: rgba(191, 52, 37, 0.06);
}
.aero-card-b .aero-stat-box::before {
  background: #bf3425;
}
.aero-card-b .aero-stat-box:hover {
  background: rgba(191, 52, 37, 0.1);
}

.aero-card-c .aero-stat-box {
  background: rgba(157, 157, 156, 0.08);
}
.aero-card-c .aero-stat-box::before {
  background: #9d9d9c;
}
.aero-card-c .aero-stat-box:hover {
  background: rgba(157, 157, 156, 0.14);
}

.aero-stat-value {
  font-size: 20px;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.aero-card-a .aero-stat-value {
  color: #47577c;
}
.aero-card-b .aero-stat-value {
  color: #bf3425;
}
.aero-card-c .aero-stat-value {
  color: #64748b;
}

.aero-stat-label {
  font-size: 11px;
  color: #64748b;
  margin: 2px 0 0 0;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

/* Application tag */
.aero-app-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 5px;
  transition: all 0.3s ease;
}

.aero-card-a .aero-app-tag {
  background: #47577c;
  color: #ffffff;
}
.aero-card-b .aero-app-tag {
  background: #bf3425;
  color: #ffffff;
}
.aero-card-c .aero-app-tag {
  background: #9d9d9c;
  color: #ffffff;
}

.aero-app-tag-icon {
  width: 14px;
  height: 14px;
}

/* SVG Animations */
@keyframes aero-draw {
  from {
    stroke-dashoffset: 300;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes aero-flow-right {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -20;
  }
}

@keyframes aero-pulse-soft {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

@keyframes aero-glow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(71, 87, 124, 0));
  }
  50% {
    filter: drop-shadow(0 0 6px rgba(71, 87, 124, 0.3));
  }
}

.aero-draw-path {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: aero-draw 1.5s ease forwards;
}

.aero-flow-path {
  stroke-dasharray: 8, 4;
  animation: aero-flow-right 1.2s linear infinite;
}

.aero-pulse-el {
  animation: aero-pulse-soft 2.5s ease-in-out infinite;
}

/* Hover-reveal tooltip on SVG */
.aero-svg-tip {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.aero-card:hover .aero-svg-tip {
  opacity: 1;
}

/* Entry stagger */
.aero-card-a {
  animation: aero-card-enter 0.5s ease both;
}
.aero-card-b {
  animation: aero-card-enter 0.5s ease 0.15s both;
}
.aero-card-c {
  animation: aero-card-enter 0.5s ease 0.3s both;
}

@keyframes aero-card-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
/* info 7 */
.stf-container {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background-color: #ffffff;
  border-radius: 16px;
  padding: 28px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

.stf-title {
  font-size: 18px;
  font-weight: 700;
  color: #47577c;
  margin: 0 0 4px 0;
  text-align: center;
}

.stf-subtitle {
  font-size: 13px;
  color: #64748b;
  text-align: center;
  margin: 0 0 24px 0;
  font-style: italic;
}

/* 2×2 Grid */
.stf-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

@media (max-width: 600px) {
  .stf-grid {
    grid-template-columns: 1fr;
  }
}

/* Arrow connectors between grid cells */
.stf-grid-row {
  display: contents;
}

/* Individual stage card */
.stf-card {
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #e2e8f0;
  transition: all 0.35s ease;
  cursor: default;
  position: relative;
}

.stf-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 22px -6px rgba(71, 87, 124, 0.2);
}

.stf-card-a {
  border-color: #9d9d9c;
}
.stf-card-a:hover {
  border-color: #9d9d9c;
}
.stf-card-b {
  border-color: #47577c;
}
.stf-card-b:hover {
  border-color: #47577c;
}
.stf-card-c {
  border-color: #bf3425;
}
.stf-card-c:hover {
  border-color: #bf3425;
}
.stf-card-d {
  border-color: #47577c;
}
.stf-card-d:hover {
  border-color: #47577c;
}

/* Card header */
.stf-card-head {
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stf-card-a .stf-card-head {
  background: #9d9d9c;
}
.stf-card-b .stf-card-head {
  background: #47577c;
}
.stf-card-c .stf-card-head {
  background: #bf3425;
}
.stf-card-d .stf-card-head {
  background: linear-gradient(90deg, #47577c, #bf3425);
}

.stf-card-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.stf-card-head-text {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: 0.3px;
}

/* Card SVG area */
.stf-card-visual {
  padding: 14px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 160px;
  position: relative;
}

.stf-card-a .stf-card-visual {
  background: linear-gradient(135deg, #f5f5f5, #ececec);
}
.stf-card-b .stf-card-visual {
  background: linear-gradient(135deg, #f8f9fb, #eef0f5);
}
.stf-card-c .stf-card-visual {
  background: linear-gradient(135deg, #fef8f7, #fceeed);
}
.stf-card-d .stf-card-visual {
  background: linear-gradient(135deg, #f8f9fb, #eef0f5);
}

.stf-card-visual svg {
  width: 100%;
  max-width: 240px;
  height: auto;
}

/* Card footer tag */
.stf-card-foot {
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-top: 1px solid #f1f5f9;
  font-size: 11.5px;
  font-weight: 600;
  transition: background 0.3s ease;
}

.stf-card:hover .stf-card-foot {
  background: rgba(0, 0, 0, 0.02);
}

.stf-card-a .stf-card-foot {
  color: #9d9d9c;
}
.stf-card-b .stf-card-foot {
  color: #47577c;
}
.stf-card-c .stf-card-foot {
  color: #bf3425;
}
.stf-card-d .stf-card-foot {
  color: #47577c;
}

.stf-foot-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Flow arrows between stages */
.stf-flow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 16px;
}

.stf-flow-between {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 0;
  margin-bottom: 4px;
}

@media (max-width: 600px) {
  .stf-flow-between {
    grid-template-columns: 1fr;
  }
  .stf-flow-between-arrow {
    transform: rotate(90deg);
    margin: 8px auto;
  }
}

/* Key constraint banner */
.stf-constraint-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  border: 2px dashed #47577c;
  background: linear-gradient(
    135deg,
    rgba(71, 87, 124, 0.04),
    rgba(191, 52, 37, 0.04)
  );
  transition: all 0.3s ease;
}

.stf-constraint-banner:hover {
  border-style: solid;
  background: linear-gradient(
    135deg,
    rgba(71, 87, 124, 0.07),
    rgba(191, 52, 37, 0.07)
  );
  box-shadow: 0 4px 12px -3px rgba(71, 87, 124, 0.15);
}

.stf-constraint-icon-wrap {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #47577c;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.stf-constraint-banner:hover .stf-constraint-icon-wrap {
  transform: scale(1.1);
}

.stf-constraint-icon-wrap svg {
  width: 20px;
  height: 20px;
  color: #ffffff;
}

.stf-constraint-text {
  flex: 1;
}

.stf-constraint-label {
  font-size: 12px;
  font-weight: 700;
  color: #47577c;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 0 0 4px 0;
}

.stf-constraint-desc {
  font-size: 12.5px;
  color: #334155;
  margin: 0;
  line-height: 1.5;
}

.stf-constraint-desc strong {
  color: #bf3425;
  font-weight: 700;
}

/* Hover detail expand */
.stf-constraint-detail {
  font-size: 11px;
  color: #64748b;
  margin: 6px 0 0 0;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 0.4s ease,
    opacity 0.3s ease;
  line-height: 1.4;
}

.stf-constraint-banner:hover .stf-constraint-detail {
  max-height: 40px;
  opacity: 1;
}

/* Source */
.stf-source {
  font-size: 11px;
  color: #94a3b8;
  text-align: center;
  margin: 16px 0 0 0;
  line-height: 1.4;
}

/* ── SVG Animations ── */
@keyframes stf-jitter {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(0.8px, -0.5px);
  }
  50% {
    transform: translate(-0.6px, 0.7px);
  }
  75% {
    transform: translate(0.5px, 0.4px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes stf-flow-right {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: -24;
  }
}

@keyframes stf-draw-line {
  from {
    stroke-dashoffset: 200;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes stf-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.stf-jitter-arrow {
  animation: stf-jitter 0.8s ease-in-out infinite;
}

.stf-flow-line {
  stroke-dasharray: 12, 6;
  animation: stf-flow-right 1.4s linear infinite;
}

.stf-draw-path {
  stroke-dasharray: 200;
  stroke-dashoffset: 200;
  animation: stf-draw-line 1.2s ease forwards;
}

.stf-svg-tip {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.stf-card:hover .stf-svg-tip {
  opacity: 1;
}

/* Entry stagger */
.stf-card-a {
  animation: stf-enter 0.5s ease both;
}
.stf-card-b {
  animation: stf-enter 0.5s ease 0.1s both;
}
.stf-card-c {
  animation: stf-enter 0.5s ease 0.2s both;
}
.stf-card-d {
  animation: stf-enter 0.5s ease 0.3s both;
}

@keyframes stf-enter {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
