/* ============================================
   COBAIN / AFP GBDL BLOG — CSS
   Consistent with Addcomposites design system
   ============================================ */

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: "Assistant", sans-serif;
  font-size: 17px;
  line-height: 1.75;
  color: #334155;
  background: #ffffff;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* Close button — hidden on desktop */
.sidebar-close {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: "Assistant", sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #64748b;
  padding: 8px 12px;
  border-radius: 8px;
  transition: all 0.2s ease;
  margin-bottom: 16px;
}

.sidebar-close:hover {
  color: #bf3425;
  background: #fef7f6;
}

.sidebar-close svg {
  flex-shrink: 0;
}

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

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

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

.mobile-nav-toggle svg {
  width: 24px;
  height: 24px;
  stroke: #ffffff;
}

/* ============================================
   MAIN CONTENT
   ============================================ */
.blog-content {
  flex: 1;
  max-width: 900px;
  min-width: 0;
}

/* ============================================
   BLOG META
   ============================================ */
.blog-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  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;
  flex-shrink: 0;
}

/* ============================================
   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);
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.full-width-image:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.image-caption {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-top: -1.25rem;
  margin-bottom: 2rem;
  font-style: italic;
}

/* ============================================
   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%;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.split-image img:hover {
  transform: scale(1.01);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.split-text h3 {
  margin-top: 0;
}

/* ============================================
   IMAGE GRID (3-UP)
   ============================================ */
.image-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.image-grid-item img {
  width: 100%;
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
  display: block;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.image-grid-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.14);
}

.image-grid-item .image-caption {
  margin-top: 0.5rem;
  margin-bottom: 0;
}

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

.highlight-box {
  background: linear-gradient(135deg, #fef7f6 0%, #fff8f7 100%);
  border-radius: 12px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  border: 1px solid #fbd5d0;
}

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

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

.highlight-box.dark h4 {
  color: #f87171;
}
.highlight-box.dark p {
  color: #cbd5e1;
  margin-bottom: 0;
}

/* ============================================
   FEATURE GRID
   ============================================ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin: 2rem 0;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.feature-item:hover {
  border-color: #47577c;
  box-shadow: 0 8px 25px -5px rgba(71, 87, 124, 0.15);
  transform: translateY(-2px);
}

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

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

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

/* ============================================
   STATS GRID
   ============================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

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

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

.stat-value {
  font-family: "Archivo", sans-serif;
  font-size: 1.625rem;
  font-weight: 700;
  color: #bf3425;
  margin-bottom: 0.5rem;
  line-height: 1.2;
}

.stat-label {
  font-size: 0.875rem;
  color: #64748b;
  line-height: 1.4;
}

/* ============================================
   DATA TABLE
   ============================================ */
.data-table-container {
  overflow-x: auto;
  margin: 2rem 0;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

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

.data-table thead {
  background: linear-gradient(135deg, #1e293b 0%, #2d3a52 100%);
}

.data-table th {
  padding: 14px 16px;
  text-align: left;
  font-family: "Archivo", sans-serif;
  font-weight: 600;
  font-size: 0.875rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: top;
}

.data-table tbody tr:hover {
  background-color: #f8fafc;
}
.data-table tbody tr:last-child td {
  border-bottom: none;
}

/* ============================================
   INFOGRAPHIC PLACEHOLDERS
   ============================================ */
.infographic-placeholder {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2.5rem 2rem;
  margin: 2.5rem 0;
  text-align: center;
  color: #64748b;
}

.infographic-label {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  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;
  line-height: 1.6;
}

/* ============================================
   LEARN MORE CARDS
   ============================================ */
.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;
  color: #ffffff;
}

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

/* ============================================
   REFERENCES LIST
   ============================================ */
.references-list {
  padding-left: 1.5rem;
}

.references-list li {
  font-size: 0.9375rem;
  color: #475569;
  margin-bottom: 1rem;
  line-height: 1.65;
}

.references-list a {
  font-weight: 400;
  word-break: break-all;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

/* ============================================
   SECTION SCROLL MARGIN
   ============================================ */
section {
  scroll-margin-top: 40px;
}

/* ============================================
   RESPONSIVE — 1024px
   ============================================ */
@media (max-width: 1024px) {
  .blog-layout {
    flex-direction: column;
    gap: 32px;
  }

  /* Sidebar becomes horizontal pills on tablet */
  .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 h1 {
    font-size: 2rem;
  }

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

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

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

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

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

  .author-social {
    justify-content: center;
  }
  .author-bio {
    text-align: center;
  }
}

/* ============================================
   RESPONSIVE — 768px (Mobile, sidebar overlay)
   ============================================ */
@media (max-width: 768px) {
  /* Show hamburger button */
  .mobile-nav-toggle {
    display: flex;
  }

  /* Sidebar becomes full-screen overlay */
  .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);
  }

  /* Show close button inside sidebar */
  .sidebar-close {
    display: flex;
  }

  .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: 8px;
  }

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

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

/* ============================================
   RESPONSIVE — 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: 1fr;
  }

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

  .feature-item {
    flex-direction: column;
  }
  .feature-icon {
    width: 40px;
    height: 40px;
  }

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

  .author-card {
    padding: 1.25rem;
  }
}

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

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

  .cta-section {
    padding: 1.25rem;
  }

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

  .learn-more-container {
    grid-template-columns: 1fr;
  }
}

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

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
/* <!-- INFOGRAPHIC 1 PLACEHOLDER --> */
.udg2-outer {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(71, 87, 124, 0.1);
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}
.udg2-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d9d9c;
  text-align: center;
  margin-bottom: 8px;
}
.udg2-title {
  font-size: 20px;
  font-weight: 800;
  color: #47577c;
  text-align: center;
  margin: 0 0 8px;
}
.udg2-rule {
  width: 60px;
  height: 3px;
  background: #bf3425;
  border-radius: 2px;
  margin: 0 auto 8px;
}
.udg2-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  text-align: center;
  margin: 0 0 32px;
}

/* Pipeline */
.udg2-pipeline {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-bottom: 0;
}

.udg2-stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.udg2-stage.udg2-in {
  opacity: 1;
  transform: translateY(0);
}
.udg2-stage:nth-child(1) {
  transition-delay: 0s;
}
.udg2-stage:nth-child(3) {
  transition-delay: 0.18s;
}
.udg2-stage:nth-child(5) {
  transition-delay: 0.36s;
}

.udg2-stage-head {
  border-radius: 10px 10px 0 0;
  padding: 14px 16px 12px;
}
.udg2-stage-head-geo {
  background: #47577c;
}
.udg2-stage-head-str {
  background: #9d9d9c;
}
.udg2-stage-head-mfg {
  background: #bf3425;
}

.udg2-stage-num {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0.65;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 3px;
}
.udg2-stage-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.03em;
}

.udg2-stage-body {
  border: 2px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  padding: 14px 14px 16px;
  flex: 1;
  background: #f8fafc;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.udg2-stage:hover .udg2-stage-body {
  background: #f0f4fa;
  border-color: #c8d4e8;
}

.udg2-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 6px;
  margin-bottom: 5px;
  transition: background 0.15s;
  cursor: default;
}
.udg2-item:last-child {
  margin-bottom: 0;
}
.udg2-item:hover {
  background: #e2e8f0;
}

.udg2-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}
.udg2-dot-geo {
  background: #47577c;
}
.udg2-dot-str {
  background: #9d9d9c;
}
.udg2-dot-mfg {
  background: #bf3425;
}
.udg2-item-text {
  font-size: 12.5px;
  color: #334155;
  font-weight: 500;
  line-height: 1.4;
}

/* Arrow connectors */
.udg2-arrow-col {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 24px;
  opacity: 0;
  transition: opacity 0.5s ease 0.45s;
}
.udg2-arrow-col.udg2-in {
  opacity: 1;
}
.udg2-arrow-svg {
  overflow: visible;
}
.udg2-arrow-flow {
  stroke: #bf3425;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 6 4;
  animation: udg2-flow 1.4s linear infinite;
}
@keyframes udg2-flow {
  to {
    stroke-dashoffset: -20;
  }
}

/* Down flow row */
.udg2-down-row {
  display: flex;
  gap: 0;
  margin: 2px 0;
  opacity: 0;
  transition: opacity 0.4s ease 0.7s;
}
.udg2-down-row.udg2-in {
  opacity: 1;
}
.udg2-down-cell {
  flex: 1;
  display: flex;
  justify-content: center;
}
.udg2-down-spacer {
  width: 48px;
  flex-shrink: 0;
}
.udg2-down-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.udg2-vline {
  width: 2px;
  height: 28px;
  border-radius: 1px;
}
.udg2-vline-geo {
  background: linear-gradient(#47577c, #47577c88);
}
.udg2-vline-str {
  background: linear-gradient(#9d9d9c, #9d9d9c88);
}
.udg2-vline-mfg {
  background: linear-gradient(#bf3425, #bf342588);
}
.udg2-vtip {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}
.udg2-vtip-geo {
  border-top: 8px solid #47577c;
}
.udg2-vtip-str {
  border-top: 8px solid #9d9d9c;
}
.udg2-vtip-mfg {
  border-top: 8px solid #bf3425;
}

/* Output panel */
.udg2-output {
  background: linear-gradient(135deg, #2e3d54 0%, #47577c 100%);
  border-radius: 12px;
  padding: 22px 24px 20px;
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease 0.95s,
    transform 0.5s ease 0.95s;
}
.udg2-output.udg2-in {
  opacity: 1;
  transform: translateY(0);
}
.udg2-output-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  margin-bottom: 4px;
}
.udg2-output-title {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  margin-bottom: 18px;
}

.udg2-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.udg2-metric {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 14px 12px 12px;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.2s,
    transform 0.2s,
    border-color 0.2s;
  position: relative;
}
.udg2-metric:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
  border-color: rgba(255, 255, 255, 0.3);
}
.udg2-metric::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 3px;
  border-radius: 2px;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.udg2-metric:hover::after {
  opacity: 1;
}
.udg2-metric:nth-child(1)::after,
.udg2-metric:nth-child(4)::after {
  background: #bf3425;
}
.udg2-metric:nth-child(2)::after,
.udg2-metric:nth-child(5)::after {
  background: #9d9d9c;
}
.udg2-metric:nth-child(3)::after,
.udg2-metric:nth-child(6)::after {
  background: #bf3425;
}

.udg2-metric-icon {
  font-size: 20px;
  display: block;
  margin-bottom: 6px;
}
.udg2-metric-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
  line-height: 1.2;
}
.udg2-metric-desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.3;
}

.udg2-tip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) scale(0.9);
  background: #1e293b;
  color: #fff;
  font-size: 11px;
  border-radius: 7px;
  padding: 7px 11px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.18s,
    transform 0.18s;
  z-index: 20;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.udg2-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #1e293b;
}
.udg2-metric:hover .udg2-tip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}

.udg2-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: #9d9d9c;
  font-style: italic;
}

@media (max-width: 600px) {
  .udg2-pipeline {
    flex-direction: column;
    gap: 8px;
  }
  .udg2-arrow-col {
    display: none;
  }
  .udg2-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
  .udg2-down-spacer {
    display: none;
  }
}
/* <!-- INFOGRAPHIC 2 PLACEHOLDER --> */
.fpt2-wrap {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(71, 87, 124, 0.1);
  max-width: 940px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header */
.fpt2-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d9d9c;
  text-align: center;
  margin-bottom: 8px;
}
.fpt2-title {
  font-size: 20px;
  font-weight: 800;
  color: #47577c;
  text-align: center;
  margin: 0 0 8px;
}
.fpt2-rule {
  width: 60px;
  height: 3px;
  background: #bf3425;
  border-radius: 2px;
  margin: 0 auto 8px;
}
.fpt2-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  text-align: center;
  margin: 0 0 28px;
}

/* Tabs */
.fpt2-tabs {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.fpt2-tab {
  padding: 9px 28px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #f8fafc;
  font-size: 14px;
  font-weight: 700;
  color: #9d9d9c;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.fpt2-tab:hover {
  border-color: #47577c;
  color: #47577c;
  background: #edf2fb;
}
.fpt2-tab.fpt2-active-geo {
  border-color: #47577c;
  background: #47577c;
  color: #fff;
}
.fpt2-tab.fpt2-active-str {
  border-color: #9d9d9c;
  background: #9d9d9c;
  color: #fff;
}
.fpt2-tab.fpt2-active-mfg {
  border-color: #bf3425;
  background: #bf3425;
  color: #fff;
}

/* Main layout */
.fpt2-main {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}

/* SVG panel */
.fpt2-svg-panel {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 340px;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.fpt2-svg-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 50% 40%,
    rgba(71, 87, 124, 0.04) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* Profile label strip at top of panel */
.fpt2-panel-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  border-radius: 6px;
  padding: 4px 14px;
  margin-bottom: 14px;
  transition: background 0.3s;
}

.fpt2-profile-svg {
  display: none;
  opacity: 0;
  transform: scale(0.93) translateY(6px);
  transition:
    opacity 0.35s ease,
    transform 0.35s ease;
  max-width: 100%;
}
.fpt2-profile-svg.fpt2-svg-active {
  display: block;
  opacity: 1;
  transform: scale(1) translateY(0);
}

/* Info panel */
.fpt2-info-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fpt2-profile-id {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 10px;
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  transition:
    border-color 0.3s,
    background 0.3s;
}
.fpt2-profile-glyph {
  font-size: 32px;
  font-weight: 900;
  font-family: Georgia, serif;
  line-height: 1;
  width: 44px;
  text-align: center;
  flex-shrink: 0;
}
.fpt2-profile-meta-name {
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
}
.fpt2-profile-meta-desc {
  font-size: 12px;
  color: #9d9d9c;
  margin-top: 2px;
}

/* color variants for profile ID card */
.fpt2-id-geo {
  border-color: #47577c;
  background: #edf2fb;
}
.fpt2-id-geo .fpt2-profile-glyph {
  color: #47577c;
}
.fpt2-id-str {
  border-color: #9d9d9c;
  background: #f5f5f5;
}
.fpt2-id-str .fpt2-profile-glyph {
  color: #9d9d9c;
}
.fpt2-id-mfg {
  border-color: #bf3425;
  background: #fef2f1;
}
.fpt2-id-mfg .fpt2-profile-glyph {
  color: #bf3425;
}

/* Parameters section */
.fpt2-params-head {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #9d9d9c;
  margin-bottom: 8px;
}
.fpt2-params-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fpt2-param-chip {
  background: #f1f5f9;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.fpt2-param-chip:hover {
  background: #edf2fb;
  border-color: #47577c;
}
.fpt2-param-chip.fpt2-chip-on-geo {
  background: #47577c;
  border-color: #47577c;
}
.fpt2-param-chip.fpt2-chip-on-geo .fpt2-pname {
  color: #fff;
}
.fpt2-param-chip.fpt2-chip-on-geo .fpt2-pval {
  color: rgba(255, 255, 255, 0.6);
}
.fpt2-param-chip.fpt2-chip-on-str {
  background: #9d9d9c;
  border-color: #9d9d9c;
}
.fpt2-param-chip.fpt2-chip-on-str .fpt2-pname {
  color: #fff;
}
.fpt2-param-chip.fpt2-chip-on-str .fpt2-pval {
  color: rgba(255, 255, 255, 0.6);
}
.fpt2-param-chip.fpt2-chip-on-mfg {
  background: #bf3425;
  border-color: #bf3425;
}
.fpt2-param-chip.fpt2-chip-on-mfg .fpt2-pname {
  color: #fff;
}
.fpt2-param-chip.fpt2-chip-on-mfg .fpt2-pval {
  color: rgba(255, 255, 255, 0.6);
}
.fpt2-pname {
  font-size: 12px;
  font-weight: 700;
  color: #47577c;
  display: block;
}
.fpt2-pval {
  font-size: 10.5px;
  color: #9d9d9c;
  margin-top: 1px;
  display: block;
}

/* Annotation elements: default hidden */
.fpt2-annot {
  pointer-events: none;
  transition: opacity 0.22s;
  opacity: 0;
}
.fpt2-annot.fpt2-annot-show {
  opacity: 1;
}

/* Shared banner */
.fpt2-shared {
  background: #f1f5f9;
  border: 1.5px dashed #9d9d9c;
  border-radius: 10px;
  padding: 12px 16px;
  margin-top: 4px;
}
.fpt2-shared-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #47577c;
  margin-bottom: 8px;
}
.fpt2-shared-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fpt2-shared-pill {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 3px 12px;
  font-size: 11px;
  font-weight: 500;
  color: #47577c;
}

/* Verdict chip at bottom of info */
.fpt2-verdict {
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.fpt2-verdict-geo {
  background: #edf2fb;
  border-left: 3px solid #47577c;
  color: #47577c;
}
.fpt2-verdict-str {
  background: #f5f5f5;
  border-left: 3px solid #9d9d9c;
  color: #64748b;
}
.fpt2-verdict-mfg {
  background: #fef2f1;
  border-left: 3px solid #bf3425;
  color: #bf3425;
}

.fpt2-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 11.5px;
  color: #9d9d9c;
  font-style: italic;
}

@media (max-width: 640px) {
  .fpt2-main {
    grid-template-columns: 1fr;
  }
  .fpt2-params-grid {
    grid-template-columns: 1fr 1fr;
  }
}
/* <!-- INFOGRAPHIC 3 PLACEHOLDER --> */
.hlup-wrap {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(71, 87, 124, 0.1);
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header */
.hlup-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d9d9c;
  text-align: center;
  margin-bottom: 8px;
}
.hlup-title {
  font-size: 20px;
  font-weight: 800;
  color: #47577c;
  text-align: center;
  margin: 0 0 8px;
}
.hlup-rule {
  width: 60px;
  height: 3px;
  background: #bf3425;
  border-radius: 2px;
  margin: 0 auto 8px;
}
.hlup-sub {
  font-size: 13px;
  color: #9d9d9c;
  text-align: center;
  margin: 0 0 32px;
}

/* ── Timeline spine ── */
.hlup-timeline {
  position: relative;
  padding-left: 0;
}

/* Vertical spine line */
.hlup-timeline::before {
  content: "";
  position: absolute;
  left: 28px;
  top: 28px;
  bottom: 80px;
  width: 3px;
  background: linear-gradient(
    to bottom,
    #47577c 0%,
    #9d9d9c 40%,
    #9d9d9c 65%,
    #bf3425 100%
  );
  border-radius: 3px;
  z-index: 0;
}

/* ── Each step row ── */
.hlup-step {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 6px;
  position: relative;
  opacity: 0;
  transform: translateX(-18px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}
.hlup-step.hlup-in {
  opacity: 1;
  transform: translateX(0);
}
.hlup-step:nth-child(1) {
  transition-delay: 0.05s;
}
.hlup-step:nth-child(2) {
  transition-delay: 0.15s;
}
.hlup-step:nth-child(3) {
  transition-delay: 0.25s;
}
.hlup-step:nth-child(4) {
  transition-delay: 0.35s;
}
.hlup-step:nth-child(5) {
  transition-delay: 0.45s;
}

/* Step number circle */
.hlup-num {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  z-index: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: default;
  transition: transform 0.2s;
}
.hlup-step:hover .hlup-num {
  transform: scale(1.08);
}

.hlup-num-n {
  background: #47577c;
} /* Cutting   */
.hlup-num-lm {
  background: #5c6e8f;
} /* Laminating*/
.hlup-num-cp {
  background: #9d9d9c;
} /* Compacting*/
.hlup-num-cu {
  background: #a0522d;
  background: #7a6060;
} /* Curing    */
.hlup-num-dm {
  background: #bf3425;
} /* Demolding */

.hlup-num-digit {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  line-height: 1;
}
.hlup-num-label {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  text-transform: uppercase;
  margin-top: 1px;
}

/* Connector arm from spine to card */
.hlup-arm {
  position: absolute;
  left: 56px;
  top: 27px;
  width: 20px;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

/* Main card */
.hlup-card {
  flex: 1;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  transition:
    box-shadow 0.22s,
    border-color 0.22s;
  cursor: pointer;
}
.hlup-card:hover {
  box-shadow: 0 6px 20px rgba(71, 87, 124, 0.13);
}

/* Card header */
.hlup-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px 12px;
  user-select: none;
}
.hlup-head-n {
  background: #47577c;
}
.hlup-head-lm {
  background: #5c6e8f;
}
.hlup-head-cp {
  background: #9d9d9c;
}
.hlup-head-cu {
  background: #7a6060;
}
.hlup-head-dm {
  background: #bf3425;
}

.hlup-card-head-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.hlup-card-process {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
}
.hlup-card-tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
}
.hlup-card-chevron {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  transition: transform 0.25s;
}
.hlup-card.hlup-open .hlup-card-chevron {
  transform: rotate(180deg);
}

/* Card body (collapsible) */
.hlup-card-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  background: #f8fafc;
}
.hlup-card.hlup-open .hlup-card-body {
  max-height: 600px;
}

.hlup-card-inner {
  padding: 16px 18px 18px;
}

/* Sub-process rows inside card */
.hlup-sub-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.hlup-sub-item {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 12px;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.hlup-sub-item:hover {
  background: #edf2fb;
  border-color: #47577c;
}

.hlup-sub-name {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
}
.hlup-sub-val {
  font-size: 11px;
  color: #9d9d9c;
  line-height: 1.4;
}

/* Formula box */
.hlup-formula {
  background: #1e293b;
  border-radius: 9px;
  padding: 13px 16px;
  margin-bottom: 12px;
  font-family: "Courier New", monospace;
}
.hlup-formula-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #9d9d9c;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hlup-formula-eq {
  font-size: 13px;
  color: #e2e8f0;
  margin-bottom: 8px;
}
.hlup-formula-eq span {
  color: #bf3425;
  font-weight: 700;
}
.hlup-formula-vars {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.hlup-fvar {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 4px 10px;
  font-size: 10.5px;
  color: #94a3b8;
}
.hlup-fvar b {
  color: #e2e8f0;
}

/* Trigger badge */
.hlup-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef3cd;
  border: 1px solid #f0d080;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #92680a;
  margin-bottom: 10px;
}

/* Params list */
.hlup-params {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.hlup-param-pill {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 500;
  color: #47577c;
}

/* ── Output bar at bottom ── */
.hlup-output {
  background: linear-gradient(135deg, #2e3d54 0%, #47577c 100%);
  border-radius: 12px;
  padding: 18px 22px 16px;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease 0.65s,
    transform 0.5s ease 0.65s;
}
.hlup-output.hlup-in {
  opacity: 1;
  transform: translateY(0);
}

.hlup-output-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 12px;
  text-align: center;
}
.hlup-output-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
}

.hlup-out-tile {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 10px 8px;
  text-align: center;
  transition:
    background 0.2s,
    transform 0.2s;
  cursor: default;
}
.hlup-out-tile:hover {
  background: rgba(255, 255, 255, 0.16);
  transform: translateY(-2px);
}
.hlup-out-tile-icon {
  font-size: 16px;
  display: block;
  margin-bottom: 4px;
}
.hlup-out-tile-name {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  display: block;
  margin-bottom: 2px;
}
.hlup-out-tile-scope {
  font-size: 9.5px;
  color: rgba(255, 255, 255, 0.5);
}

/* Color accent bottom border on tiles */
.hlup-out-tile:nth-child(1),
.hlup-out-tile:nth-child(3),
.hlup-out-tile:nth-child(5) {
  border-bottom: 3px solid #bf3425;
}
.hlup-out-tile:nth-child(2),
.hlup-out-tile:nth-child(4) {
  border-bottom: 3px solid #9d9d9c;
}

.hlup-output-levels {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.hlup-lvl-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 4px 14px;
}

.hlup-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: #9d9d9c;
  font-style: italic;
}

@media (max-width: 600px) {
  .hlup-sub-grid {
    grid-template-columns: 1fr;
  }
  .hlup-output-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hlup-timeline::before {
    left: 22px;
  }
}
/* <!-- INFOGRAPHIC 4 PLACEHOLDER --> */
.adpc-wrap {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(71, 87, 124, 0.1);
  max-width: 900px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* ── Header ── */
.adpc-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d9d9c;
  text-align: center;
  margin-bottom: 8px;
}
.adpc-title {
  font-size: 20px;
  font-weight: 800;
  color: #47577c;
  text-align: center;
  margin: 0 0 8px;
}
.adpc-rule {
  width: 60px;
  height: 3px;
  background: #bf3425;
  border-radius: 2px;
  margin: 0 auto 8px;
}
.adpc-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  text-align: center;
  margin: 0 0 32px;
}

/* ── Source / Destination banner ── */
.adpc-endpoints {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}
.adpc-endpoint {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 16px;
  flex: 1;
}
.adpc-endpoint-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.adpc-endpoint-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9d9d9c;
  display: block;
  margin-bottom: 1px;
}
.adpc-endpoint-name {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.adpc-endpoint-arrow {
  font-size: 22px;
  color: #bf3425;
  flex-shrink: 0;
  animation: adpc-pulse-arrow 2s ease-in-out infinite;
}
@keyframes adpc-pulse-arrow {
  0%,
  100% {
    opacity: 0.5;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(4px);
  }
}

/* ── Main chain ── */
.adpc-chain {
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
}

/* Spine */
.adpc-chain::before {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, #47577c 0%, #9d9d9c 50%, #bf3425 100%);
  border-radius: 3px;
  z-index: 0;
  pointer-events: none;
}

/* ── Each block ── */
.adpc-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.adpc-block.adpc-in {
  opacity: 1;
  transform: translateY(0);
}
.adpc-block:nth-child(1) {
  transition-delay: 0.05s;
}
.adpc-block:nth-child(2) {
  transition-delay: 0.2s;
}
.adpc-block:nth-child(3) {
  transition-delay: 0.35s;
}

/* Block card */
.adpc-card {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.07);
  transition:
    box-shadow 0.22s,
    transform 0.22s;
}
.adpc-card:hover {
  box-shadow: 0 8px 24px rgba(71, 87, 124, 0.15);
  transform: translateY(-2px);
}

/* Card header strip */
.adpc-card-head {
  padding: 14px 20px 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.adpc-head-1 {
  background: #47577c;
}
.adpc-head-2 {
  background: #9d9d9c;
}
.adpc-head-3 {
  background: #bf3425;
}

.adpc-block-num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.adpc-card-title {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  flex: 1;
}
.adpc-card-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 20px;
  padding: 3px 11px;
}

/* Card body */
.adpc-card-body {
  background: #f8fafc;
  border: 2px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 18px 20px 20px;
}

/* ── Block 1: AfpComponent Model ── */
.adpc-source-ref {
  font-size: 11px;
  font-weight: 600;
  color: #9d9d9c;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.adpc-source-tag {
  background: #edf2fb;
  color: #47577c;
  border: 1px solid #c8d4e8;
  border-radius: 20px;
  padding: 2px 10px;
  font-size: 11px;
  font-weight: 700;
}

/* Ply stack visualisation */
.adpc-ply-stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 14px 0;
  position: relative;
}
.adpc-ply-row {
  display: flex;
  align-items: center;
  gap: 0;
  cursor: pointer;
  transition: transform 0.18s;
}
.adpc-ply-row:hover {
  transform: translateX(5px) translateY(-1px);
}
.adpc-ply-row:hover .adpc-ply-bar {
  filter: brightness(1.1);
}

.adpc-ply-bar {
  height: 28px;
  flex: 1;
  display: flex;
  align-items: center;
  padding: 0 14px;
  position: relative;
  transition: all 0.18s;
  clip-path: polygon(
    0 0,
    calc(100% - 10px) 0,
    100% 50%,
    calc(100% - 10px) 100%,
    0 100%
  );
}
/* Fiber line overlay inside ply bar */
.adpc-ply-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.18;
  background-size: 12px 12px;
  pointer-events: none;
}

/* Angle-based colors */
.adpc-ply-0 {
  background: #47577c;
}
.adpc-ply-45 {
  background: #6b80a8;
}
.adpc-ply-90 {
  background: #9d9d9c;
}
.adpc-ply-n45 {
  background: #8a6060;
}

.adpc-ply-angle {
  font-size: 12px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.05em;
  width: 46px;
  flex-shrink: 0;
}
.adpc-ply-desc {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.8);
  flex: 1;
}
.adpc-ply-t {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.6);
  background: rgba(0, 0, 0, 0.15);
  border-radius: 3px;
  padding: 1px 6px;
}

/* Detail chips under ply */
.adpc-ply-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.28s ease;
  background: #edf2fb;
  border-left: 3px solid #47577c;
  border-radius: 0 0 4px 4px;
  margin-top: -1px;
}
.adpc-ply-row.adpc-ply-open + .adpc-ply-detail {
  max-height: 60px;
}
.adpc-ply-detail-inner {
  padding: 7px 14px;
  font-size: 11px;
  color: #47577c;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.adpc-ply-detail-inner span {
  font-weight: 600;
}
.adpc-ply-detail-inner i {
  font-weight: 400;
  color: #9d9d9c;
  font-style: normal;
}

/* Obj structure tree */
.adpc-tree {
  background: #1e293b;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: "Courier New", monospace;
  font-size: 12px;
  line-height: 1.7;
  color: #94a3b8;
  margin-top: 14px;
}
.adpc-tree .adpc-tc {
  color: #64b5f6;
}
.adpc-tree .adpc-tp {
  color: #e2e8f0;
}
.adpc-tree .adpc-tv {
  color: #bf3425;
  font-weight: 700;
}
.adpc-tree .adpc-tg {
  color: #9d9d9c;
}

/* ── Block 2: Sectorization ── */
.adpc-sector-row {
  display: flex;
  gap: 14px;
  margin: 14px 0;
  align-items: flex-start;
}

/* SVG sector diagram */
.adpc-sector-svg-wrap {
  flex-shrink: 0;
  background: #1e293b;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.adpc-sector-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.adpc-sector-stat {
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 9px 12px;
  transition:
    border-color 0.2s,
    background 0.2s;
  cursor: default;
}
.adpc-sector-stat:hover {
  background: #edf2fb;
  border-color: #9d9d9c;
}
.adpc-sector-stat-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9d9d9c;
  margin-bottom: 2px;
}
.adpc-sector-stat-val {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
}

.adpc-tradeoff {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 11px 14px;
  margin-top: 4px;
}
.adpc-tradeoff-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9d9d9c;
  margin-bottom: 8px;
}
.adpc-tradeoff-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 0;
  font-size: 12px;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
}
.adpc-tradeoff-row:last-child {
  border-bottom: none;
}
.adpc-tradeoff-dir {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  border-radius: 20px;
  padding: 2px 10px;
  flex-shrink: 0;
}
.adpc-dir-fewer {
  background: #bf3425;
}
.adpc-dir-more {
  background: #9d9d9c;
}
.adpc-tradeoff-arrow {
  color: #9d9d9c;
  font-size: 12px;
}
.adpc-tradeoff-effect {
  font-weight: 500;
}

/* ── Block 3: NC Code ── */
.adpc-nc-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 14px 0;
}
.adpc-nc-step {
  flex: 1;
  background: #ffffff;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 12px;
  text-align: center;
  transition:
    border-color 0.2s,
    transform 0.18s,
    background 0.2s;
  cursor: default;
}
.adpc-nc-step:hover {
  border-color: #bf3425;
  background: #fef2f1;
  transform: translateY(-2px);
}
.adpc-nc-step:hover .adpc-nc-icon {
  transform: scale(1.15);
}
.adpc-nc-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 7px;
  transition: transform 0.2s;
}
.adpc-nc-name {
  font-size: 12px;
  font-weight: 700;
  color: #334155;
  margin-bottom: 3px;
}
.adpc-nc-desc {
  font-size: 10.5px;
  color: #9d9d9c;
  line-height: 1.35;
}

.adpc-nc-arrow {
  width: 32px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adpc-nc-arrow svg {
  overflow: visible;
}
.adpc-nc-flow-path {
  stroke: #bf3425;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 5 3;
  animation: adpc-flow 1.2s linear infinite;
}
@keyframes adpc-flow {
  to {
    stroke-dashoffset: -16;
  }
}

.adpc-nc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f1;
  border: 1px solid #f5c6c2;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  color: #bf3425;
  margin-top: 10px;
}

/* ── Connector / export badge between blocks ── */
.adpc-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  gap: 3px;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.adpc-connector.adpc-in {
  opacity: 1;
}
.adpc-connector-vline {
  width: 2px;
  height: 22px;
  border-radius: 1px;
  animation: adpc-vpulse 2s ease-in-out infinite;
}
@keyframes adpc-vpulse {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 1;
  }
}
.adpc-vline-1 {
  background: #47577c;
}
.adpc-vline-2 {
  background: #9d9d9c;
}

.adpc-connector-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #fff;
  border-radius: 20px;
  padding: 4px 14px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.adpc-badge-1 {
  background: #47577c;
}
.adpc-badge-2 {
  background: #9d9d9c;
}

.adpc-vtip-down {
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
}
.adpc-vtip-1 {
  border-top: 8px solid #47577c;
}
.adpc-vtip-2 {
  border-top: 8px solid #9d9d9c;
}

.adpc-footer {
  margin-top: 16px;
  text-align: center;
  font-size: 11.5px;
  color: #9d9d9c;
  font-style: italic;
}

@media (max-width: 600px) {
  .adpc-sector-row {
    flex-direction: column;
  }
  .adpc-nc-flow {
    flex-direction: column;
    gap: 8px;
  }
  .adpc-nc-arrow {
    transform: rotate(90deg);
  }
  .adpc-chain::before {
    display: none;
  }
  .adpc-endpoints {
    flex-direction: column;
  }
}
/* <!-- INFOGRAPHIC 5 PLACEHOLDER --> */
.wfcmp-wrap {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 32px 30px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 20px rgba(71, 87, 124, 0.1);
  max-width: 940px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Header */
.wfcmp-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9d9d9c;
  text-align: center;
  margin-bottom: 8px;
}
.wfcmp-title {
  font-size: 20px;
  font-weight: 800;
  color: #47577c;
  text-align: center;
  margin: 0 0 8px;
}
.wfcmp-rule {
  width: 60px;
  height: 3px;
  background: #bf3425;
  border-radius: 2px;
  margin: 0 auto 8px;
}
.wfcmp-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  text-align: center;
  margin: 0 0 28px;
}

/* ── Two-column layout ── */
.wfcmp-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 24px;
}

/* Column wrapper */
.wfcmp-col {
  display: flex;
  flex-direction: column;
  gap: 0;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.wfcmp-col.wfcmp-in {
  opacity: 1;
  transform: translateY(0);
}
.wfcmp-col:nth-child(1) {
  transition-delay: 0.05s;
}
.wfcmp-col:nth-child(2) {
  transition-delay: 0.18s;
}

/* Column header */
.wfcmp-col-head {
  border-radius: 12px 12px 0 0;
  padding: 14px 18px 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.wfcmp-head-trad {
  background: #9d9d9c;
}
.wfcmp-head-gbdl {
  background: #47577c;
}

.wfcmp-head-icon {
  font-size: 20px;
}
.wfcmp-head-label-top {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
  display: block;
  margin-bottom: 1px;
}
.wfcmp-head-label-name {
  font-size: 15px;
  font-weight: 800;
  color: #ffffff;
}
.wfcmp-head-sub {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.65);
  margin-top: 1px;
  display: block;
}

/* Column body */
.wfcmp-col-body {
  border: 2px solid #e2e8f0;
  border-top: none;
  border-radius: 0 0 12px 12px;
  padding: 18px 16px 20px;
  background: #f8fafc;
  flex: 1;
}

/* ── Flow pipeline inside column ── */
.wfcmp-flow {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
}

.wfcmp-node {
  flex: 1;
  border-radius: 8px;
  padding: 10px 10px;
  text-align: center;
  border: 2px solid;
  transition:
    transform 0.18s,
    box-shadow 0.18s;
  cursor: default;
}
.wfcmp-node:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.wfcmp-node-trad {
  border-color: #e2e8f0;
  background: #ffffff;
}
.wfcmp-node-gbdl {
  border-color: #c8d4e8;
  background: #edf2fb;
}

.wfcmp-node-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 2px;
}
.wfcmp-node-sub {
  font-size: 9.5px;
  color: #9d9d9c;
}

/* Arrow between nodes */
.wfcmp-flow-arrow {
  width: 28px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.wfcmp-arrow-svg {
  overflow: visible;
}

/* Traditional: dashed slow arrow */
.wfcmp-arr-trad {
  stroke: #9d9d9c;
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 3;
}
/* GBDL: animated bidirectional */
.wfcmp-arr-gbdl-fwd {
  stroke: #47577c;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 5 3;
  animation: wfcmp-flow-fwd 1.1s linear infinite;
}
.wfcmp-arr-gbdl-rev {
  stroke: #bf3425;
  stroke-width: 2;
  fill: none;
  stroke-dasharray: 5 3;
  animation: wfcmp-flow-rev 1.1s linear infinite;
}
@keyframes wfcmp-flow-fwd {
  to {
    stroke-dashoffset: -16;
  }
}
@keyframes wfcmp-flow-rev {
  to {
    stroke-dashoffset: 16;
  }
}

.wfcmp-arr-label {
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.2;
}
.wfcmp-arr-label-trad {
  color: #9d9d9c;
}
.wfcmp-arr-label-gbdl {
  color: #47577c;
}

/* ── Change propagation rows ── */
.wfcmp-change-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 12px;
}
.wfcmp-change-chip {
  border-radius: 8px;
  padding: 9px 8px;
  text-align: center;
  border: 1.5px solid;
  position: relative;
  cursor: default;
  transition: transform 0.18s;
}
.wfcmp-change-chip:hover {
  transform: translateY(-2px);
}

.wfcmp-chip-trad {
  border-color: #e2e8f0;
  background: #ffffff;
}
.wfcmp-chip-gbdl {
  border-color: #c8d4e8;
  background: #edf2fb;
}

.wfcmp-chip-what {
  font-size: 10px;
  font-weight: 700;
  color: #334155;
  display: block;
  margin-bottom: 3px;
}
.wfcmp-chip-how {
  font-size: 10px;
  color: #9d9d9c;
  display: block;
  margin-bottom: 3px;
  line-height: 1.3;
}
.wfcmp-chip-time {
  font-size: 11px;
  font-weight: 800;
  display: block;
}
.wfcmp-chip-time-trad {
  color: #bf3425;
}
.wfcmp-chip-time-gbdl {
  color: #47577c;
}

/* ── KPI Summary row ── */
.wfcmp-kpi-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.wfcmp-kpi {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1.5px solid #e2e8f0;
  background: #ffffff;
  font-size: 12px;
}
.wfcmp-kpi-label {
  color: #9d9d9c;
  font-weight: 600;
  flex: 1;
  font-size: 11.5px;
}
.wfcmp-kpi-val {
  font-weight: 800;
  font-size: 12.5px;
}
.wfcmp-kpi-val-trad {
  color: #bf3425;
}
.wfcmp-kpi-val-gbdl {
  color: #47577c;
}

/* ── Divider with VS badge ── */
.wfcmp-vs-divider {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 20px;
  opacity: 0;
  transition: opacity 0.5s ease 0.4s;
}
.wfcmp-vs-divider.wfcmp-in {
  opacity: 1;
}
.wfcmp-vs-line {
  flex: 1;
  height: 2px;
  background: #e2e8f0;
}
.wfcmp-vs-badge {
  background: linear-gradient(135deg, #9d9d9c, #47577c);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border-radius: 20px;
  padding: 6px 18px;
  box-shadow: 0 2px 8px rgba(71, 87, 124, 0.2);
}

/* ── Delta comparison bar ── */
.wfcmp-delta {
  background: linear-gradient(135deg, #2e3d54 0%, #47577c 100%);
  border-radius: 12px;
  padding: 20px 24px 18px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease 0.5s,
    transform 0.5s ease 0.5s;
}
.wfcmp-delta.wfcmp-in {
  opacity: 1;
  transform: translateY(0);
}

.wfcmp-delta-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  text-align: center;
  margin-bottom: 16px;
}

.wfcmp-delta-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.wfcmp-delta-tile {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 16px 12px;
  text-align: center;
  position: relative;
  overflow: hidden;
  cursor: default;
  transition:
    background 0.2s,
    transform 0.2s;
}
.wfcmp-delta-tile:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}
.wfcmp-delta-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}
.wfcmp-dt-1::before {
  background: #9d9d9c;
}
.wfcmp-dt-2::before {
  background: #bf3425;
}
.wfcmp-dt-3::before {
  background: #47577c;
}

.wfcmp-dt-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 8px;
  display: block;
}
.wfcmp-dt-trad {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: line-through;
  margin-bottom: 4px;
  display: block;
}
.wfcmp-dt-gbdl {
  font-size: 18px;
  font-weight: 800;
  color: #ffffff;
  display: block;
  margin-bottom: 4px;
}
.wfcmp-dt-arrow {
  font-size: 16px;
  display: block;
}

.wfcmp-footer {
  margin-top: 14px;
  text-align: center;
  font-size: 11.5px;
  color: #9d9d9c;
  font-style: italic;
}

@media (max-width: 640px) {
  .wfcmp-cols {
    grid-template-columns: 1fr;
  }
  .wfcmp-delta-grid {
    grid-template-columns: 1fr;
  }
  .wfcmp-flow {
    flex-direction: column;
    gap: 6px;
  }
  .wfcmp-flow-arrow {
    transform: rotate(90deg);
  }
  .wfcmp-change-row {
    grid-template-columns: 1fr;
  }
}
