   .module-intro {
    margin-bottom: 2.25rem;
  }

    .module-intro h1 {
      margin-top: 0;
      margin-bottom: 0.75rem;
      font-weight: 700;
      color: #111827;
    }
  
  .module-nav-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
  }

    .back-link {
      font-family: monospace;
      font-size: 0.9rem;
      color: #4b5563;
      text-decoration: none;
    }
    
    .back-link:hover {
      color: #111827;
      text-decoration: underline;
    }
  
  .module-lead {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 1.25rem;
  }
  
  /* Quick Jump Bar */
  .quick-jump-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 1.25rem;
  }
  
  .quick-jump-nav a {
    padding: 0.25rem 0.6rem;
    background: #f3f4f6;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
  }
  
  .quick-jump-nav a:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
    color: #111827;
  }

  .quick-jump-label {
    font-size: 0.85rem;
    font-weight: 700;
    color: #4b5563;
    margin-right: 0.25rem;
  }
  
  /* Complete Module Download Banner */
  .module-bundle {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
  }
    
    .bundle-info {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }
    
    .bundle-info strong {
      font-size: 0.95rem;
      color: #111827;
    }
    
    .bundle-info span {
      font-size: 0.85rem;
      color: #475569;
    }
    
    .bundle-btn {
      padding: 0.5rem 1rem;
      background: #15803d;
      color: #ffffff;
      border-radius: 6px;
      font-family: monospace;
      font-size: 0.85rem;
      font-weight: 700;
      text-decoration: none;
      white-space: nowrap;
      transition: background 0.15s ease;
    }
    
    .bundle-btn:hover {
      background: #166534;
      color: #ffffff;
    }
  
/* 
Cards are the main content that contains one or more "card" objects
*/
.cards {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
    
  .card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 0.75rem;
    margin-bottom: 1rem;
  }
  
    .card-header h2 {
      margin: 0;
      font-size: 1.35rem;
      font-weight: 700;
      color: #111827;
      padding:0.25rem 0.6rem;
    }
  
    .card-header-secondary {
      font-size: 0.95rem;
      padding: 0.25rem 0.6rem;
      border-radius: 4px;
      background: #f3f4f6;
      border: 1px solid #e5e7eb;
      color: #1d4ed8;
      font-weight: 600;
    }
  
    .card-desc {
      margin-top: 0;
      margin-bottom: 1.25rem;
      color: #374151;
    }
  
    /* Stacked single-column layout */
    .card-grid {
      display: flex;
      flex-direction: column;
      gap: 1.25rem;
    }
  
    /* Unified wrapper for Logic Symbol, Truth Table, and VHDL Code */
    .card-block {
      width: 100%;
      border: 1px solid #d1d5db;
      border-radius: 6px;
      overflow: hidden;
      background: #ffffff;
    }
    
    .card-block-wide {
      grid-column: 1 / -1;
    }

      .card-block pre {
        margin: 0;
        padding: 1rem;
        overflow-x: auto;
        background: #f8fafc;
        font-size: 0.9rem;
        line-height: 1.5;
        color: #1e293b;
      }
    
      .card-block pre[class*="language-"] {
        margin: 0 !important;
        border-radius: 0 !important;
      }

      .card-block-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0.45rem 0.85rem;
        background: #f1f5f9;
        border-bottom: 1px solid #d1d5db;
        font-family: monospace;
        font-size: 0.85rem;
        color: #475569;
        font-weight: 600;
      }
      
        .card-block-header-meta-tag {
          font-family: monospace;
          font-size: 0.75rem;
          color: #64748b;
        }

      /* Logic Diagram Container */
      .card-diagram {
        background: #f9fafb;
        padding: 1.5rem;
        display: flex;
        justify-content: center;
        align-items: center;
      }
  
      .card-diagram img {
        max-width: 220px;
        height: auto;
      }
      
      .waveform-container img {
        width: 100%;
        height: auto;
        display: block;
      }
      
      .synth-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 0.75rem;
        padding: 0.85rem 1rem;
      }
      
      .synth-stat {
        display: flex;
        flex-direction: column;
        gap: 0.2rem;
      }
      
      .stat-label {
        font-size: 0.75rem;
        text-transform: uppercase;
        letter-spacing: 0.04em;
        color: #64748b;
      }
      
      .stat-value {
        font-family: monospace;
        font-size: 0.9rem;
        font-weight: 600;
        color: #0f172a;
      }

      /* Truth Table */
      .truth-table {
        width: 100%;
        table-layout: fixed;
        border-collapse: collapse;
        text-align: center;
        font-family: monospace;
        font-size: 0.95rem;
        background: #ffffff;
      }
      
      .truth-table th,
      .truth-table td {
        border-bottom: 1px solid #e5e7eb;
        border-right: 1px solid #e5e7eb;
        padding: 0.5rem;
        color: #1f2937;
      }
      
      .truth-table th:last-child,
      .truth-table td:last-child {
        border-right: none;
      }
      
      .truth-table tbody tr:last-child td {
        border-bottom: none;
      }
      
      .truth-table th {
        background: #f8fafc;
        color: #111827;
        font-weight: 700;
      }
      
      .truth-table .highlight-row {
        background: #f0fdf4;
      }
      
      .truth-table .highlight-row td:last-child {
        font-weight: 700;
        color: #15803d;
      }