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

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

html {
  scroll-behavior: smooth;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.intro-card-heading {
  font-family: "Archivo", sans-serif;
  font-weight: 700;
  font-size: 1.75rem;
  color: #1e293b;
  margin-top: 0 !important;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid #bf3425;
}

/* ============================================
   EQUATION BLOCK
   ============================================ */
.equation-block {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  border: 1px solid #e2e8f0;
  font-family: "Courier New", monospace;
}

.equation-block p {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  color: #1e293b;
}

.equation-block p:last-child {
  margin-bottom: 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.split-content {
  padding: 0;
}

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

/* ============================================
   TWO COLUMN LIST
   ============================================ */
.two-column-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 2rem 0;
}

.two-column-list .column h4 {
  margin-top: 0;
  color: #47577c;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.conclusion-card h4 {
  margin: 0.5rem 0 0.5rem 0;
  font-size: 1rem;
}

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

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

.recommendation-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 1.5rem;
}

.recommendation-section h4 {
  margin: 0 0 1rem 0;
  color: #47577c;
  font-size: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #bf3425;
}

.recommendation-section ul {
  margin: 0;
  padding-left: 1.25rem;
}

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

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

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

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

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

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

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

/* ============================================
   LEARN MORE SECTION
   ============================================ */
.learn-more-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  .spec-value {
    text-align: left;
  }
}

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

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

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

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

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

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

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

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

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

  .feature-icon {
    margin: 0 auto;
  }

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

  .author-card {
    padding: 1.25rem;
  }

  /* Timeline adjustments */
  .timeline {
    padding-left: 2rem;
  }

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

  .cta-section {
    padding: 1.25rem;
  }

  .final-statement {
    padding: 1.5rem;
  }

  .final-statement p {
    font-size: 1rem;
  }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

  html {
    scroll-behavior: auto;
  }
}

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

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

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

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

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

.fsd-svg-wrapper {
  position: relative;
  width: 100%;
  overflow: visible;
}

.fsd-svg-wrapper svg {
  width: 100%;
  height: auto;
}

/* Hover zones */
.fsd-zone {
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.fsd-zone:hover .fsd-zone-highlight {
  opacity: 0.12;
}

.fsd-zone:hover .fsd-zone-label {
  font-weight: 700;
}

/* Tooltip */
.fsd-tooltip-group {
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.fsd-zone:hover .fsd-tooltip-group {
  opacity: 1;
}

/* Buckle animation */
@keyframes fsd-buckle-pulse {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(1.5px);
  }
}

.fsd-buckled-fiber {
  animation: fsd-buckle-pulse 2s ease-in-out infinite;
}

.fsd-buckled-fiber:nth-child(2) {
  animation-delay: 0.3s;
}
.fsd-buckled-fiber:nth-child(3) {
  animation-delay: 0.6s;
}
.fsd-buckled-fiber:nth-child(4) {
  animation-delay: 0.9s;
}

/* Resin pocket glow */
@keyframes fsd-resin-glow {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 0.5;
  }
}

.fsd-resin-pocket {
  animation: fsd-resin-glow 3s ease-in-out infinite;
}

/* Arrow pulse */
@keyframes fsd-arrow-pulse {
  0%,
  100% {
    opacity: 0.6;
  }
  50% {
    opacity: 1;
  }
}

.fsd-stress-arrow {
  animation: fsd-arrow-pulse 2s ease-in-out infinite;
}

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

.fsd-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  cursor: default;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
}

.fsd-legend-item:hover {
  background-color: #f1f5f9;
}

.fsd-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

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

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

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

.fbw-panels {
  display: flex;
  gap: 20px;
}

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

.fbw-panel {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  cursor: default;
}

.fbw-panel:hover {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.1);
}

.fbw-panel--buckling {
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
}
.fbw-panel--buckling:hover {
  border-color: #47577c;
}

.fbw-panel--wrinkling {
  background: linear-gradient(180deg, #fffbfa 0%, #ffffff 100%);
}
.fbw-panel--wrinkling:hover {
  border-color: #bf3425;
}

.fbw-panel-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.fbw-badge--navy {
  background: #47577c;
  color: #ffffff;
}
.fbw-badge--red {
  background: #bf3425;
  color: #ffffff;
}

.fbw-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.fbw-panel-view {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 12px;
  font-style: italic;
}

.fbw-svg-area {
  width: 100%;
  position: relative;
}

.fbw-svg-area svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Fiber buckling animation */
@keyframes fbw-fiber-wave {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
}

.fbw-wavy-fiber {
  animation: fbw-fiber-wave 2.2s ease-in-out infinite;
}
.fbw-wavy-fiber:nth-child(2) {
  animation-delay: 0.15s;
}
.fbw-wavy-fiber:nth-child(3) {
  animation-delay: 0.3s;
}
.fbw-wavy-fiber:nth-child(4) {
  animation-delay: 0.45s;
}

/* Tow wrinkling animation */
@keyframes fbw-wrinkle-breathe {
  0%,
  100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(1.06);
  }
}

.fbw-wrinkle-tow {
  transform-origin: center center;
  animation: fbw-wrinkle-breathe 2.8s ease-in-out infinite;
}

/* Wavelength arrow pulse */
@keyframes fbw-wavelength-pulse {
  0%,
  100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

.fbw-wavelength-arrow {
  animation: fbw-wavelength-pulse 2s ease-in-out infinite;
}

/* Hover detail cards */
.fbw-detail-cards {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.fbw-detail-card {
  flex: 1;
  min-width: 90px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.fbw-detail-card:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
}

.fbw-detail-card-value {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.fbw-detail-card-value--navy {
  color: #47577c;
}
.fbw-detail-card-value--red {
  color: #bf3425;
}

.fbw-detail-card-label {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Bottom comparison strip */
.fbw-comparison-strip {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0;
  align-items: center;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.fbw-comp-cell {
  padding: 10px 14px;
  text-align: center;
  transition: background-color 0.2s ease;
}

.fbw-comp-cell:hover {
  background-color: #f1f5f9;
}

.fbw-comp-divider {
  width: 1px;
  height: 100%;
  background: #e2e8f0;
}

.fbw-comp-label {
  font-size: 10px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 3px;
}

.fbw-comp-value {
  font-size: 12px;
  font-weight: 600;
  color: #1e293b;
}

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

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

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

.csv-panels {
  display: flex;
  gap: 20px;
}

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

.csv-panel {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  position: relative;
  overflow: hidden;
  transition:
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  cursor: default;
}

.csv-panel:hover {
  box-shadow: 0 8px 24px -4px rgba(0, 0, 0, 0.1);
}

.csv-panel--concave {
  background: linear-gradient(180deg, #fafbfd 0%, #ffffff 100%);
}
.csv-panel--concave:hover {
  border-color: #47577c;
}

.csv-panel--convex {
  background: linear-gradient(180deg, #fffbfa 0%, #ffffff 100%);
}
.csv-panel--convex:hover {
  border-color: #bf3425;
}

.csv-panel-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 8px;
}

.csv-badge--navy {
  background: #47577c;
  color: #ffffff;
}
.csv-badge--red {
  background: #bf3425;
  color: #ffffff;
}

.csv-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 2px;
}

.csv-panel-view {
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 12px;
  font-style: italic;
}

.csv-svg-area {
  width: 100%;
  position: relative;
}

.csv-svg-area svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Gap region pulse */
@keyframes csv-gap-pulse {
  0%,
  100% {
    opacity: 0.12;
  }
  50% {
    opacity: 0.3;
  }
}

.csv-gap-fill {
  animation: csv-gap-pulse 2.5s ease-in-out infinite;
}

/* Overlap region pulse */
@keyframes csv-overlap-pulse {
  0%,
  100% {
    opacity: 0.15;
  }
  50% {
    opacity: 0.35;
  }
}

.csv-overlap-fill {
  animation: csv-overlap-pulse 2.5s ease-in-out infinite;
}

/* Tow diverge animation for concave */
@keyframes csv-tow-diverge {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(1.5px);
  }
}

.csv-tow-upper-anim {
  animation: csv-tow-diverge 3s ease-in-out infinite;
}

.csv-tow-lower-anim {
  animation: csv-tow-diverge 3s ease-in-out infinite reverse;
}

/* Tow converge animation for convex */
@keyframes csv-tow-converge-up {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(0.8px);
  }
}

@keyframes csv-tow-converge-down {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-0.8px);
  }
}

.csv-tow-converge-upper {
  animation: csv-tow-converge-up 3s ease-in-out infinite;
}

.csv-tow-converge-lower {
  animation: csv-tow-converge-down 3s ease-in-out infinite;
}

/* Tooltip on hover */
.csv-hotspot {
  cursor: pointer;
}

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

.csv-hotspot:hover .csv-tip {
  opacity: 1;
}

/* Detail cards */
.csv-detail-cards {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.csv-detail-card {
  flex: 1;
  min-width: 80px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 8px 10px;
  text-align: center;
  transition:
    transform 0.2s ease,
    background-color 0.2s ease;
}

.csv-detail-card:hover {
  transform: translateY(-2px);
  background: #f1f5f9;
}

.csv-detail-card-value {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.csv-val--navy {
  color: #47577c;
}
.csv-val--red {
  color: #bf3425;
}
.csv-val--gray {
  color: #9d9d9c;
}

.csv-detail-card-label {
  font-size: 9px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

/* Impact comparison bar */
.csv-impact-bar {
  margin-top: 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
}

.csv-impact-title {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  text-align: center;
}

.csv-impact-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.csv-impact-row:last-child {
  margin-bottom: 0;
}

.csv-impact-label {
  font-size: 11px;
  color: #475569;
  width: 110px;
  flex-shrink: 0;
  text-align: right;
  font-weight: 500;
}

.csv-impact-track {
  flex: 1;
  height: 20px;
  background: #eef1f6;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  display: flex;
}

.csv-impact-segment {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: #ffffff;
  transition: width 0.5s ease;
  position: relative;
}

.csv-impact-segment--gap {
  background: #47577c;
  border-radius: 10px 0 0 10px;
}

.csv-impact-segment--overlap {
  background: #bf3425;
  border-radius: 0 10px 10px 0;
}

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

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

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

.msr-chart-wrapper {
  position: relative;
  width: 100%;
  height: 380px;
}

@media (min-width: 768px) {
  .msr-chart-wrapper {
    height: 420px;
  }
}

.msr-legend-row {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.msr-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  cursor: default;
}

.msr-legend-item:hover {
  background-color: #f1f5f9;
}

.msr-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.msr-insight-strip {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.msr-insight-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  flex: 1;
  min-width: 140px;
  max-width: 220px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: default;
}

.msr-insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.msr-insight-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.msr-insight-value--navy {
  color: #47577c;
}
.msr-insight-value--red {
  color: #bf3425;
}
.msr-insight-value--gray {
  color: #9d9d9c;
}

.msr-insight-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

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

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

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

.cbl-chart-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
}

@media (min-width: 768px) {
  .cbl-chart-wrapper {
    height: 440px;
  }
}

.cbl-legend-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.cbl-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  cursor: default;
}

.cbl-legend-item:hover {
  background-color: #f1f5f9;
}

.cbl-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.cbl-legend-swatch--line {
  width: 20px;
  height: 3px;
  border-radius: 2px;
}

.cbl-legend-swatch--dashed {
  width: 20px;
  height: 3px;
  border-radius: 0;
  background: repeating-linear-gradient(
    90deg,
    #9d9d9c 0px,
    #9d9d9c 5px,
    transparent 5px,
    transparent 8px
  );
}

.cbl-insight-strip {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.cbl-insight-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  flex: 1;
  min-width: 130px;
  max-width: 220px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: default;
}

.cbl-insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.cbl-insight-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.cbl-val--navy {
  color: #47577c;
}
.cbl-val--red {
  color: #bf3425;
}
.cbl-val--gray {
  color: #9d9d9c;
}

.cbl-insight-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

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

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

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

.sfw-svg-wrapper {
  width: 100%;
  overflow: visible;
}

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

/* ── Node hover effects ── */
.sfw-node {
  cursor: pointer;
  transition: filter 0.25s ease;
}

.sfw-node:hover {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.12));
}

.sfw-node:hover .sfw-node-bg {
  stroke-width: 2.5;
}

.sfw-node:hover .sfw-node-icon {
  transform: scale(1.12);
  transform-origin: center;
}

/* Tooltips */
.sfw-tip {
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.sfw-node:hover .sfw-tip {
  opacity: 1;
}

/* ── Decision diamond pulse ── */
@keyframes sfw-diamond-pulse {
  0%,
  100% {
    stroke-opacity: 1;
  }
  50% {
    stroke-opacity: 0.5;
  }
}

.sfw-diamond-border {
  animation: sfw-diamond-pulse 2.5s ease-in-out infinite;
}

/* ── Flow arrow animation ── */
@keyframes sfw-flow-dash {
  to {
    stroke-dashoffset: -16;
  }
}

.sfw-flow-animated {
  stroke-dasharray: 8, 8;
  animation: sfw-flow-dash 1.2s linear infinite;
}

/* ── Feedback loop glow ── */
@keyframes sfw-loop-glow {
  0%,
  100% {
    stroke-opacity: 0.4;
  }
  50% {
    stroke-opacity: 0.9;
  }
}

.sfw-loop-path {
  animation: sfw-loop-glow 2.5s ease-in-out infinite;
}

/* ── Start / End badges ── */
@keyframes sfw-badge-breathe {
  0%,
  100% {
    r: 18;
  }
  50% {
    r: 20;
  }
}

.sfw-start-ring {
  animation: sfw-badge-breathe 2s ease-in-out infinite;
}

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

.sfw-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  cursor: default;
}

.sfw-legend-item:hover {
  background-color: #f1f5f9;
}

.sfw-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

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

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

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

.skf-chart-wrapper {
  position: relative;
  width: 100%;
  height: 400px;
}

@media (min-width: 768px) {
  .skf-chart-wrapper {
    height: 440px;
  }
}

.skf-legend-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 16px;
  flex-wrap: wrap;
}

.skf-legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #475569;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background-color 0.2s ease;
  cursor: default;
}

.skf-legend-item:hover {
  background-color: #f1f5f9;
}

.skf-legend-swatch {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  flex-shrink: 0;
}

.skf-legend-swatch--line {
  width: 20px;
  height: 3px;
  border-radius: 2px;
}

.skf-insight-strip {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.skf-insight-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 16px;
  text-align: center;
  flex: 1;
  min-width: 130px;
  max-width: 220px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  cursor: default;
}

.skf-insight-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.skf-insight-value {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.skf-val--navy {
  color: #47577c;
}
.skf-val--red {
  color: #bf3425;
}
.skf-val--gray {
  color: #9d9d9c;
}

.skf-insight-label {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

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

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

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

/* ── Layout: table + radar side by side ── */
.tsm-content {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

@media (max-width: 760px) {
  .tsm-content {
    flex-direction: column;
  }
}

.tsm-table-wrap {
  flex: 1.2;
  min-width: 0;
}

.tsm-radar-wrap {
  flex: 1;
  min-width: 240px;
}

/* ── Interactive Heatmap Table ── */
.tsm-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 12px;
}

.tsm-table th,
.tsm-table td {
  padding: 10px 8px;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
}

.tsm-table thead th {
  background: #f8fafc;
  color: #47577c;
  font-weight: 700;
  font-size: 13px;
  border-bottom: 2px solid #e2e8f0;
  position: relative;
}

.tsm-table thead th:first-child {
  text-align: left;
  border-radius: 8px 0 0 0;
}

.tsm-table thead th:last-child {
  border-radius: 0 8px 0 0;
}

.tsm-table tbody tr:last-child td:first-child {
  border-radius: 0 0 0 8px;
}
.tsm-table tbody tr:last-child td:last-child {
  border-radius: 0 0 8px 0;
}

.tsm-table tbody td:first-child {
  text-align: left;
  font-weight: 600;
  color: #1e293b;
  white-space: nowrap;
}

/* Tow size sub-label */
.tsm-tow-label {
  display: block;
  font-weight: 700;
  font-size: 14px;
}

.tsm-tow-sub {
  display: block;
  font-weight: 400;
  font-size: 9px;
  color: #94a3b8;
  margin-top: 1px;
}

/* ── Heatmap cell ── */
.tsm-cell {
  position: relative;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
  border-radius: 6px;
}

.tsm-cell:hover {
  transform: scale(1.08);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.tsm-cell-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.tsm-stars {
  font-size: 12px;
  letter-spacing: 1px;
  line-height: 1;
}

.tsm-cell-value {
  font-size: 9px;
  color: #64748b;
  font-weight: 500;
}

/* Heat levels */
.tsm-heat-1 {
  background: rgba(191, 52, 37, 0.08);
}
.tsm-heat-2 {
  background: rgba(191, 52, 37, 0.04);
}
.tsm-heat-3 {
  background: rgba(157, 157, 156, 0.08);
}
.tsm-heat-4 {
  background: rgba(71, 87, 124, 0.08);
}
.tsm-heat-5 {
  background: rgba(71, 87, 124, 0.15);
}

.tsm-heat-1 .tsm-stars {
  color: #bf3425;
}
.tsm-heat-2 .tsm-stars {
  color: #d4654e;
}
.tsm-heat-3 .tsm-stars {
  color: #9d9d9c;
}
.tsm-heat-4 .tsm-stars {
  color: #5d6e8f;
}
.tsm-heat-5 .tsm-stars {
  color: #47577c;
}

/* ── Tooltip ── */
.tsm-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 11px;
  color: #1e293b;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 10;
  pointer-events: none;
}

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

.tsm-cell:hover .tsm-tooltip {
  display: block;
}

.tsm-tip-title {
  font-weight: 600;
  color: #47577c;
  margin-bottom: 2px;
}

.tsm-tip-detail {
  color: #64748b;
}

/* ── Radar chart ── */
.tsm-radar-title {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 8px;
}

.tsm-radar-chart-area {
  position: relative;
  width: 100%;
  height: 300px;
}

/* ── Column highlight on hover ── */
.tsm-table thead th.tsm-col-hover {
  background: #eef1f6;
}

.tsm-table tbody td.tsm-col-hover {
  background: rgba(71, 87, 124, 0.04);
}

/* ── Bottom bar: scale ── */
.tsm-scale-bar {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.tsm-scale-label {
  font-size: 10px;
  color: #94a3b8;
  padding: 0 6px;
}

.tsm-scale-block {
  width: 48px;
  height: 14px;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 600;
  color: #ffffff;
}

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