*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

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

/* ============================================
   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: 0.5rem;
  margin-bottom: 1.5rem;
  font-style: italic;
  line-height: 1.6;
}

/* Full-width image caption spacing */
.full-width-image + .image-caption {
  margin-top: -1.25rem;
  margin-bottom: 2rem;
}

/* ============================================
   SPLIT LAYOUT
   ============================================ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  margin: 2.5rem 0;
}

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

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

.split-image {
  display: flex;
  flex-direction: column;
}

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

/* Caption always at bottom of split image */
.split-image .image-caption {
  margin-top: 0.5rem;
  margin-bottom: 0;
  text-align: center;
}

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

.intro-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: linear-gradient(180deg, #bf3425, #47577c);
}

.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;
    align-self: auto;
  }

  .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;
    align-self: auto;
  }

  .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;
    scroll-behavior: auto !important;
  }
}
/* <!-- INFOGRAPHIC 1 PLACEHOLDER --> */
.tri-wrap {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 36px 24px 28px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.tri-title {
  font-size: 17px;
  font-weight: 700;
  color: #47577c;
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}

.tri-subtitle {
  font-size: 13px;
  color: #9d9d9c;
  margin-bottom: 28px;
}

.tri-svg-area {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: block;
}

/* Vertex node circles */
.tri-node {
  cursor: pointer;
  transition: transform 0.2s ease;
  transform-origin: center;
}
.tri-node:hover {
  transform: scale(1.12);
}
.tri-node circle {
  transition: filter 0.2s ease;
}
.tri-node:hover circle {
  filter: drop-shadow(0 4px 10px rgba(71, 87, 124, 0.35));
}

/* Tooltip cards */
.tri-tooltip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}
.tri-tooltip.visible {
  opacity: 1;
}

/* Stat banner */
.tri-stat-banner {
  margin-top: 26px;
  background: #f8f9fc;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 0.6s ease 0.3s,
    transform 0.6s ease 0.3s;
}
.tri-stat-banner.revealed {
  opacity: 1;
  transform: translateY(0);
}

.tri-stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #47577c;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.tri-stat-text {
  text-align: left;
}
.tri-stat-main {
  font-size: 15px;
  font-weight: 700;
  color: #bf3425;
  line-height: 1.3;
}
.tri-stat-sub {
  font-size: 12px;
  color: #9d9d9c;
  margin-top: 2px;
}

/* Progress bar */
.tri-bar-row {
  margin-top: 18px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.6s ease 0.5s,
    transform 0.6s ease 0.5s;
}
.tri-bar-row.revealed {
  opacity: 1;
  transform: translateY(0);
}
.tri-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 600;
  color: #47577c;
  margin-bottom: 6px;
}
.tri-bar-track {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}
.tri-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #47577c 0%, #bf3425 100%);
  border-radius: 99px;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.7s;
}
.tri-bar-fill.animated {
  width: 75%;
}
.tri-bar-caption {
  font-size: 11px;
  color: #9d9d9c;
  margin-top: 5px;
  text-align: right;
}
/* <!-- INFOGRAPHIC 2 PLACEHOLDER --> */
.cfrp-wrap {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  max-width: 780px;
  margin: 0 auto;
}

.cfrp-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.cfrp-title {
  font-size: 17px;
  font-weight: 700;
  color: #47577c;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
}

.cfrp-source {
  font-size: 11px;
  color: #9d9d9c;
  margin: 0;
}

.cfrp-legend {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-shrink: 0;
}

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

.cfrp-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cfrp-rows {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cfrp-row {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 14px 16px;
  opacity: 0;
  transform: translateX(-16px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.cfrp-row.visible {
  opacity: 1;
  transform: translateX(0);
}

.cfrp-row-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.cfrp-prop-name {
  font-size: 13px;
  font-weight: 700;
  color: #47577c;
}

.cfrp-prop-unit {
  font-size: 11px;
  color: #9d9d9c;
  margin-left: 4px;
  font-weight: 400;
}

.cfrp-ratio-badge {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #bf3425;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.cfrp-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cfrp-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.cfrp-bar-label {
  font-size: 11px;
  font-weight: 600;
  width: 38px;
  flex-shrink: 0;
  color: #47577c;
}

.cfrp-bar-track {
  flex: 1;
  height: 10px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  position: relative;
}

.cfrp-bar-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.cfrp-bar-fill.steel {
  background: #47577c;
}

.cfrp-bar-fill.cfrp {
  background: #bf3425;
}

.cfrp-bar-val {
  font-size: 11px;
  font-weight: 600;
  min-width: 48px;
  color: #47577c;
  text-align: right;
}
/* <!-- INFOGRAPHIC 3 PLACEHOLDER --> */
.biw-wrap {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  max-width: 780px;
  margin: 0 auto;
}

.biw-header {
  margin-bottom: 24px;
}

.biw-title {
  font-size: 17px;
  font-weight: 700;
  color: #47577c;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
}

.biw-source {
  font-size: 11px;
  color: #9d9d9c;
  margin: 0;
}

.biw-legend {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}

.biw-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #9d9d9c;
}

.biw-legend-swatch {
  width: 28px;
  height: 8px;
  border-radius: 99px;
}

.biw-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.biw-card {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 16px 18px;
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.biw-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.biw-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
  flex-wrap: wrap;
  gap: 6px;
}

.biw-car-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 2px;
}

.biw-car-scope {
  font-size: 11px;
  color: #9d9d9c;
  margin: 0;
}

.biw-outcome-badge {
  font-size: 12px;
  font-weight: 700;
  border-radius: 20px;
  padding: 4px 12px;
  white-space: nowrap;
}

.biw-outcome-badge.saving {
  background: #47577c;
  color: #ffffff;
}

.biw-outcome-badge.gain {
  background: #bf3425;
  color: #ffffff;
}

.biw-bar-section {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.biw-bar-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.biw-bar-label {
  font-size: 11px;
  font-weight: 600;
  width: 46px;
  flex-shrink: 0;
  color: #64748b;
}

.biw-track {
  flex: 1;
  height: 12px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: visible;
  position: relative;
}

.biw-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  position: relative;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.biw-fill.steel-fill {
  background: #9d9d9c;
}

.biw-fill.cfrp-fill {
  background: #bf3425;
}

.biw-fill.cfrp-gain {
  background: #47577c;
}

.biw-pct {
  font-size: 12px;
  font-weight: 700;
  min-width: 40px;
  text-align: right;
}

.biw-pct.steel-pct {
  color: #9d9d9c;
}
.biw-pct.cfrp-pct {
  color: #bf3425;
}
.biw-pct.gain-pct {
  color: #47577c;
}

.biw-sub-note {
  margin-top: 7px;
  font-size: 11px;
  color: #9d9d9c;
  padding-left: 56px;
}
/* <!-- INFOGRAPHIC 4 PLACEHOLDER --> */
.pyr-wrap {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  max-width: 720px;
  margin: 0 auto;
}

.pyr-title {
  font-size: 17px;
  font-weight: 700;
  color: #47577c;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
}

.pyr-source {
  font-size: 11px;
  color: #9d9d9c;
  margin: 0 0 24px;
}

.pyr-body {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.pyr-svg-col {
  flex: 1;
  min-width: 0;
}

.pyr-axis-col {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 0;
  padding: 4px 0;
  width: 80px;
  flex-shrink: 0;
}

.pyr-axis-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9d9d9c;
  text-align: center;
  line-height: 1.2;
}

.pyr-axis-arrow {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.pyr-arrow-line {
  width: 2px;
  background: #e2e8f0;
  height: 100%;
  min-height: 40px;
  position: relative;
}

/* Pyramid tiers */
.pyr-tiers {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
  width: 100%;
}

.pyr-tier {
  display: flex;
  align-items: center;
  width: 100%;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
  cursor: pointer;
  position: relative;
}

.pyr-tier.visible {
  opacity: 1;
  transform: translateY(0);
}

.pyr-tier-bar {
  height: 36px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    filter 0.2s ease,
    transform 0.15s ease;
  position: relative;
  margin: 0 auto;
}

.pyr-tier:hover .pyr-tier-bar {
  filter: brightness(1.08);
  transform: scaleY(1.06);
}

.pyr-tier-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 12px;
  pointer-events: none;
}

/* Tooltip */
.pyr-tooltip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  background: #1e293b;
  color: #ffffff;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.18s ease;
  z-index: 10;
}

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

.pyr-tier:hover .pyr-tooltip {
  opacity: 1;
}

/* Axis labels below/above */
.pyr-axis-outer {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding: 0 2px;
}

.pyr-axis-outer span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #9d9d9c;
}

/* Side annotation arrows */
.pyr-side-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  padding: 4px 0;
  min-width: 64px;
  gap: 0;
}

.pyr-note {
  font-size: 10px;
  color: #9d9d9c;
  line-height: 1.4;
  text-align: center;
  padding: 0 4px;
}

.pyr-caption {
  margin-top: 14px;
  font-size: 11.5px;
  color: #9d9d9c;
  text-align: center;
  font-style: italic;
  line-height: 1.5;
}
/* <!-- INFOGRAPHIC 5 PLACEHOLDER --> */
.rcf-wrap {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  max-width: 740px;
  margin: 0 auto;
}

.rcf-title {
  font-size: 17px;
  font-weight: 700;
  color: #47577c;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
}

.rcf-source {
  font-size: 11px;
  color: #9d9d9c;
  margin: 0 0 22px;
}

.rcf-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

@media (max-width: 560px) {
  .rcf-cards {
    grid-template-columns: 1fr;
  }
}

.rcf-card {
  background: #f8f9fc;
  border-radius: 12px;
  padding: 18px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.45s ease,
    transform 0.45s ease;
}

.rcf-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.rcf-card:hover {
  box-shadow: 0 4px 14px rgba(71, 87, 124, 0.1);
  transform: translateY(-2px) !important;
}

.rcf-card-name {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 8px;
}

.rcf-method-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Fiber strength gauge */
.rcf-gauge-section {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.rcf-gauge-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9d9d9c;
}

.rcf-gauge-track {
  width: 100%;
  height: 10px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
}

.rcf-gauge-fill {
  height: 100%;
  border-radius: 99px;
  width: 0%;
  transition: width 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

.rcf-gauge-val {
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
  margin-top: 2px;
}

.rcf-gauge-sub {
  font-size: 10.5px;
  color: #9d9d9c;
  margin-top: 1px;
}

/* Risk pill */
.rcf-risk-row {
  display: flex;
  align-items: center;
  gap: 7px;
}

.rcf-risk-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9d9d9c;
}

.rcf-risk-pill {
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
}

.rcf-risk-low {
  background: rgba(71, 87, 124, 0.12);
  color: #47577c;
}
.rcf-risk-high {
  background: rgba(191, 52, 37, 0.12);
  color: #bf3425;
}

/* Global rate banner */
.rcf-banner {
  background: #47577c;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 0.5s ease 0.5s,
    transform 0.5s ease 0.5s;
}

.rcf-banner.visible {
  opacity: 1;
  transform: translateY(0);
}

.rcf-banner-num {
  font-size: 36px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1;
  flex-shrink: 0;
}

.rcf-banner-text {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
}

.rcf-banner-text strong {
  color: #ffffff;
  font-weight: 700;
}

/* Donut accent */
.rcf-donut-wrap {
  flex-shrink: 0;
  position: relative;
  width: 56px;
  height: 56px;
}

.rcf-donut-wrap svg {
  transform: rotate(-90deg);
}

.rcf-donut-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}
/* <!-- INFOGRAPHIC 6 PLACEHOLDER --> */
.adopt-wrap {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 24px 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.08);
  max-width: 780px;
  margin: 0 auto;
}

.adopt-title {
  font-size: 17px;
  font-weight: 700;
  color: #47577c;
  letter-spacing: -0.01em;
  margin: 0 0 3px;
}

.adopt-source {
  font-size: 11px;
  color: #9d9d9c;
  margin: 0 0 20px;
}

/* Legend row */
.adopt-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 16px;
  align-items: center;
}

.adopt-legend-group {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: #64748b;
}

.adopt-legend-swatch {
  width: 10px;
  height: 10px;
  border-radius: 2px;
}

/* Table */
.adopt-table {
  width: 100%;
  border-collapse: collapse;
}

.adopt-table thead tr {
  border-bottom: 2px solid #e2e8f0;
}

.adopt-table thead th {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9d9d9c;
  padding: 0 10px 10px;
  text-align: left;
  white-space: nowrap;
}

.adopt-table thead th:first-child {
  padding-left: 0;
}

.adopt-table tbody tr {
  border-bottom: 1px solid #f1f5f9;
  opacity: 0;
  transform: translateX(-10px);
  transition:
    opacity 0.4s ease,
    transform 0.4s ease;
}

.adopt-table tbody tr.visible {
  opacity: 1;
  transform: translateX(0);
}

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

.adopt-table tbody tr:hover {
  background: #f8f9fc;
}

.adopt-table tbody td {
  padding: 11px 10px;
  vertical-align: middle;
  font-size: 13px;
  color: #1e293b;
}

.adopt-table tbody td:first-child {
  padding-left: 0;
  font-weight: 600;
  color: #47577c;
  font-size: 13px;
  width: 34%;
}

/* Mass saving dots */
.adopt-dots {
  display: flex;
  gap: 4px;
  align-items: center;
}

.adopt-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e2e8f0;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.adopt-dot.filled-high {
  background: #bf3425;
}
.adopt-dot.filled-med {
  background: #47577c;
}
.adopt-dot.filled-low {
  background: #9d9d9c;
}

tr:hover .adopt-dot {
  transform: scale(1.2);
}

.adopt-dot-label {
  font-size: 11px;
  color: #9d9d9c;
  margin-left: 5px;
  white-space: nowrap;
}

/* Readiness badge */
.adopt-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 700;
  border-radius: 20px;
  padding: 3px 10px;
  white-space: nowrap;
}

.adopt-badge.mainstream {
  background: rgba(71, 87, 124, 0.12);
  color: #47577c;
}
.adopt-badge.proven {
  background: rgba(71, 87, 124, 0.2);
  color: #354669;
}
.adopt-badge.growing {
  background: rgba(191, 52, 37, 0.1);
  color: #bf3425;
}
.adopt-badge.niche {
  background: rgba(157, 157, 156, 0.18);
  color: #6b6b6a;
}

/* AFP relevance */
.adopt-afp {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
}

.adopt-afp-bar {
  height: 6px;
  border-radius: 99px;
  transition: width 0.9s cubic-bezier(0.4, 0, 0.2, 1);
  width: 0;
}

.adopt-afp.high .adopt-afp-bar {
  background: #bf3425;
  width: 28px;
}
.adopt-afp.med .adopt-afp-bar {
  background: #47577c;
  width: 18px;
}
.adopt-afp.low .adopt-afp-bar {
  background: #9d9d9c;
  width: 10px;
}

.adopt-afp.high {
  color: #bf3425;
}
.adopt-afp.med {
  color: #47577c;
}
.adopt-afp.low {
  color: #9d9d9c;
}

.adopt-afp-bars-animated .adopt-afp-bar {
  transition-delay: var(--td, 0s);
}
