/* Medical Device Guide Component Styles */

.guide {
  line-height: 1.7;
  color: var(--text-color);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

@media (min-width: 1024px) {
  .guide {
    flex-direction: row;
    padding: 0;
  }
}

.guide__layout {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

@media (min-width: 1024px) {
  .guide__layout {
    flex-direction: row;
  }
}

.guide__sidebar {
  padding: var(--spacing-2) var(--spacing-2);
  position: relative;
  z-index: 5; /* Ensure sidebar appears above content gating overlay */
}

@media (min-width: 1024px) {
  .guide__sidebar {
    width: 320px;
    flex-shrink: 0;
    padding: var(--spacing-4) var(--spacing-4);
    border-right: 1px solid var(--border-color);
    background: var(--bg-light);
  }
}

.guide__main {
  flex: 1;
  padding: var(--spacing-8) var(--spacing-8);
  max-width: 1200px;
}

@media (min-width: 1024px) {
  .guide__main {
    padding: var(--spacing-8) var(--spacing-8);
    margin: 0 auto;
  }
}

.guide__header {
  text-align: center;
  margin-bottom: var(--spacing-12);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: var(--spacing-8);
}

.guide__title {
  font-size: var(--text-5xl);
  font-weight: var(--font-bold);
  margin-bottom: var(--spacing-4);
  color: var(--primary-color);
  line-height: 1.2;
}

.guide__subtitle {
  font-size: var(--text-lg);
  color: var(--text-light);
  font-style: italic;
  margin-bottom: var(--spacing-6);
}

.guide__scope {
  background: var(--bg-light);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-6);
  margin: var(--spacing-8) 0;
}

.guide__scope blockquote {
  margin: 0;
  font-size: var(--text-base);
}

.guide__scope strong {
  color: var(--primary-color);
  font-weight: var(--font-semibold);
}

/* Table of Contents */
.guide__toc {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  margin: 0;
  position: sticky;
  top: var(--spacing-4);
  z-index: 10;
  max-height: calc(100vh - var(--spacing-8));
  overflow-y: auto;
}

@media (max-width: 1023px) {
  .guide__toc {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-lg);
    padding: var(--spacing-4);
    margin: var(--spacing-4) 0;
    position: static;
    max-height: none;
    overflow-y: visible;
  }
}

.guide__toc-title {
  font-size: var(--text-lg);
  font-weight: var(--font-semibold);
  margin-bottom: var(--spacing-4);
  color: var(--primary-color);
  padding-bottom: var(--spacing-2);
  border-bottom: 1px solid var(--border-color);
}

@media (max-width: 1023px) {
  .guide__toc-title {
    font-size: var(--text-xl);
  }
}

.guide__toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  columns: 1;
  column-gap: var(--spacing-4);
}

@media (max-width: 1023px) and (min-width: 768px) {
  .guide__toc-list {
    columns: 1;
  }
}

.guide__toc-item {
  margin-bottom: var(--spacing-1);
  break-inside: avoid;
}

.guide__toc-link {
  text-decoration: none;
  color: var(--primary-color);
  font-size: var(--text-sm);
  display: block;
  padding: var(--spacing-2) var(--spacing-3);
  border-radius: var(--border-radius);
  transition: all var(--transition-fast);
  border-left: 3px solid transparent;
  line-height: 1.4;
}

.guide__toc-link:hover {
  background: var(--bg-card);
  color: var(--primary-color);
  text-decoration: none;
  border-left-color: var(--primary-color);
}

.guide__toc-link.active {
  background: rgba(0, 102, 204, 0.1);
  color: var(--primary-color);
  border-left-color: var(--primary-color);
  font-weight: var(--font-medium);
}

@media (max-width: 1023px) {
  .guide__toc-link {
    border-left: none;
    padding: var(--spacing-1) var(--spacing-2);
  }
  
  .guide__toc-link:hover,
  .guide__toc-link.active {
    border-left: none;
    background: var(--bg-light);
  }
}

/* Content Sections */
.guide__content {
  margin-top: var(--spacing-8);
}

.guide__section {
  margin-bottom: var(--spacing-12);
  scroll-margin-top: var(--spacing-20);
}

.guide__section h2 {
  font-size: var(--text-3xl);
  font-weight: var(--font-semibold);
  color: var(--primary-color);
  margin-bottom: var(--spacing-6);
  border-bottom: 1px solid var(--border-color);
  padding-bottom: var(--spacing-2);
}

.guide__section h3 {
  font-size: var(--text-xl);
  font-weight: var(--font-semibold);
  color: var(--text-color);
  margin: var(--spacing-8) 0 var(--spacing-4) 0;
}

.guide__section h4 {
  font-size: var(--text-lg);
  font-weight: var(--font-medium);
  color: var(--text-color);
  margin: var(--spacing-6) 0 var(--spacing-3) 0;
}

.guide__section p {
  margin-bottom: var(--spacing-4);
}

.guide__section ul, .guide__section ol {
  margin-bottom: var(--spacing-4);
  padding-left: var(--spacing-6);
}

.guide__section li {
  margin-bottom: var(--spacing-2);
}

/* Special Content Blocks */
.guide__callout {
  background: linear-gradient(135deg, rgba(0, 102, 204, 0.05) 0%, rgba(0, 168, 107, 0.05) 100%);
  border-left: 4px solid var(--primary-color);
  border-radius: var(--border-radius);
  padding: var(--spacing-6);
  margin: var(--spacing-6) 0;
}

.guide__callout h4 {
  color: var(--primary-color);
  margin-top: 0;
  margin-bottom: var(--spacing-3);
  font-size: var(--text-base);
  font-weight: var(--font-semibold);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide__callout ul {
  margin-bottom: 0;
}

/* Code and Templates */
.guide__code {
  background: var(--bg-dark);
  color: var(--text-white);
  border-radius: var(--border-radius);
  padding: var(--spacing-4);
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: var(--text-sm);
  margin: var(--spacing-4) 0;
}

.guide__code pre {
  margin: 0;
  white-space: pre-wrap;
}

/* Template styling */
.guide__template h4 {
  color: var(--accent-blue, #66B2FF);
  margin-top: 0;
  margin-bottom: 1rem;
}

.guide__example h4 {
  color: var(--accent-blue, #66B2FF);
  margin-top: 0;
  margin-bottom: 0.5rem;
}

/* Tables */
.guide__table-wrapper {
  overflow-x: auto;
  margin: var(--spacing-6) 0;
  border-radius: var(--border-radius);
  border: 1px solid var(--border-color);
}

.guide__table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.guide__table th,
.guide__table td {
  padding: var(--spacing-3);
  text-align: left;
  border-bottom: 1px solid var(--border-color);
}

.guide__table th {
  background: var(--bg-light);
  font-weight: var(--font-semibold);
  color: var(--primary-color);
}

.guide__table tr:hover {
  background: var(--bg-light);
}

/* Content Gating */
.guide__content-free {
  /* Free content - always visible */
}

.guide__content-gated {
  position: relative;
  transition: all 0.3s ease;
}

.guide__content-gated.blurred {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

.guide__content-gated.blurred::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, 
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.7) 30%,
    rgba(255,255,255,0.95) 100%);
  z-index: 1;
  pointer-events: none;
}

.guide__content-gated.revealed {
  filter: none;
  pointer-events: auto;
  user-select: auto;
}

.guide__content-gated.revealed::before {
  display: none;
}

/* Custom Content Gate */
.guide__content-gate {
  position: relative;
  z-index: 5;
  margin: var(--spacing-8) 0;
  padding: var(--spacing-8);
  background: var(--bg-card);
  border: 2px solid var(--primary-color);
  border-radius: var(--border-radius-lg);
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.guide__content-gate-title {
  font-size: var(--text-2xl);
  font-weight: var(--font-semibold);
  color: var(--primary-color);
  margin-bottom: var(--spacing-4);
}

.guide__content-gate-description {
  font-size: var(--text-lg);
  color: var(--text-light);
  margin-bottom: var(--spacing-6);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.guide__content-gate-benefits {
  list-style: none;
  padding: 0;
  margin: var(--spacing-6) 0;
  display: grid;
  gap: var(--spacing-3);
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}

.guide__content-gate-benefit {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  font-size: var(--text-base);
  color: var(--text-color);
}

.guide__content-gate-benefit::before {
  content: '✓';
  background: var(--primary-color);
  color: white;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: var(--font-bold);
  flex-shrink: 0;
}

/* Progress Indicator */
.guide__progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(0, 102, 204, 0.1);
  z-index: 1000;
}

.guide__progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0%;
  transition: width 0.3s ease;
}

/* Citations and References */
.guide__citations {
  background: var(--bg-light);
  border-radius: var(--border-radius);
  padding: var(--spacing-6);
  margin: var(--spacing-8) 0;
}

.guide__citations h3 {
  color: var(--primary-color);
  margin-bottom: var(--spacing-4);
}

.guide__citations ol {
  font-size: var(--text-sm);
  line-height: 1.6;
}

.guide__citations a {
  color: var(--primary-color);
  text-decoration: none;
}

.guide__citations a:hover {
  text-decoration: underline;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  .guide__sidebar {
    padding: var(--spacing-4) var(--spacing-3);
  }
  
  .guide__main {
    padding: var(--spacing-4) var(--spacing-3);
  }
  
  .guide__title {
    font-size: var(--text-3xl);
  }
  
  .guide__toc {
    position: static;
    margin: var(--spacing-6) 0;
  }
  
  .guide__toc-list {
    columns: 1;
  }
  
  .guide__section h2 {
    font-size: var(--text-2xl);
  }
  
  .guide__content-gate {
    padding: var(--spacing-6);
  }
  
  .guide__content-gate-title {
    font-size: var(--text-xl);
  }
}

/* Sidebar Mobile Toggle */
.guide__toc-toggle {
  display: none;
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 0 var(--border-radius) var(--border-radius) 0;  /* Rounded right side only */
  padding: var(--spacing-3) var(--spacing-2);
  font-size: var(--text-lg);
  font-weight: bold;
  cursor: pointer;
  position: fixed;
  top: 10%;
  left: 0;  /* Move to left edge */
  transform: translateY(-50%);
  z-index: 1001;
  box-shadow: 2px 0 8px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

/* Dynamic toggle icon */
.guide__toc-toggle .toggle-icon::before {
  content: "»";  /* >> when closed */
}

.guide__sidebar.open .guide__toc-toggle .toggle-icon::before {
  content: "«";  /* << when open */
}


@media (max-width: 1023px) {
  .guide__toc-toggle {
    display: block;
  }
  
  .guide__sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100vh;
    background: var(--bg-dark);
    border-right: 1px solid var(--border-color);
    transition: left 0.3s ease;
    overflow-y: auto;
    z-index: 1100;
    padding-top: 120px;
  }
  
  /* Ensure TOC content is also above overlay */
  .guide__sidebar .guide__toc {
    position: relative;
    z-index: 1101;
  }
  
  .guide__sidebar.open {
    left: 0;
  }
  
  .guide__sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
  }
  
  .guide__sidebar-overlay.show {
    display: block;
  }
  
  /* Bright white TOC text when sidebar is open */
  .guide__sidebar.open .guide__toc-link {
    color: #ffffff !important;
    font-weight: 500;
  }
  
  .guide__sidebar.open .guide__toc-link:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.1);
  }
  
  .guide__sidebar.open .guide__toc-link.active {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.15);
  }
  
  .guide__sidebar.open .guide__toc-title {
    color: #ffffff !important;
  }
}

/* Narrow screen adjustments */
@media (max-width: 480px) {
  .guide__sidebar {
    left: -240px;
    width: 240px;
  }
}

/* Print Styles */
@media print {
  .guide__progress,
  .guide__content-gate {
    display: none !important;
  }
  
  .guide__content-gated {
    filter: none !important;
    pointer-events: auto !important;
    user-select: auto !important;
  }
  
  .guide__content-gated::before {
    display: none !important;
  }
  
  .guide__toc {
    position: static;
    break-inside: avoid;
  }
  
  .guide__section {
    break-inside: avoid;
  }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  .guide__content-gated,
  .guide__progress-bar {
    transition: none;
  }
}

/* High contrast mode */
@media (prefers-contrast: high) {
  .guide__callout {
    border-width: 2px;
  }
  
  .guide__content-gate {
    border-width: 3px;
  }
}

/* =================================================================
   LEAD MAGNET MODAL STYLES
   ================================================================= */

/* Custom Modal Styles */
.lead-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  z-index: 10000;
  backdrop-filter: blur(4px);
}

.lead-modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease-out;
}

.lead-modal__content {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideUp 0.3s ease-out;
}

.lead-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #6c757d;
  line-height: 1;
  padding: 0.25rem;
}

.lead-modal__close:hover {
  color: #000;
}

.lead-modal__header {
  text-align: center;
  margin-bottom: 1.5rem;
}

.lead-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 0.5rem;
}

.lead-modal__subtitle {
  color: #6c757d;
  font-size: 1rem;
}

.lead-modal__form {
  margin-bottom: 1rem;
}

.lead-modal__step {
  display: none;
}

.lead-modal__step.active {
  display: block;
  animation: slideIn 0.3s ease-out;
}

.lead-modal__field {
  margin-bottom: 1rem;
}

.lead-modal__label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: #2c3e50;
}

.lead-modal__input {
  width: 100%;
  padding: 0.75rem;
  border: 2px solid #e9ecef;
  border-radius: 6px;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.lead-modal__input:focus {
  outline: none;
  border-color: #007bff;
}

.lead-modal__input.error {
  border-color: #dc3545;
}

.lead-modal__error {
  color: #dc3545;
  font-size: 0.875rem;
  margin-top: 0.25rem;
  display: none;
}

.lead-modal__button {
  width: 100%;
  padding: 0.75rem 1.5rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-bottom: 1rem;
}

.lead-modal__button:hover:not(:disabled) {
  background: #0056b3;
}

.lead-modal__button:disabled {
  background: #6c757d;
  cursor: not-allowed;
}

.lead-modal__loading {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  color: #6c757d;
}

.lead-modal__spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #e9ecef;
  border-top: 2px solid #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.lead-modal__benefits {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0;
}

.lead-modal__benefit {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #495057;
}

.lead-modal__benefit::before {
  content: "✓";
  color: #28a745;
  font-weight: bold;
  flex-shrink: 0;
}

.lead-modal__privacy {
  font-size: 0.8rem;
  color: #6c757d;
  text-align: center;
  margin-top: 1rem;
}

.lead-modal__step-indicator {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.lead-modal__step-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e9ecef;
  transition: background-color 0.2s;
}

.lead-modal__step-dot.active {
  background: #007bff;
}

/* =================================================================
   GUIDE-SPECIFIC OVERRIDES AND ENHANCEMENTS
   ================================================================= */

/* Code block styling - Dark theme to match website */
.guide__code {
  background: #111827 !important;
  border: 1px solid #0066CC !important;
  border-radius: 6px;
  padding: 1rem;
  margin: 1rem 0;
  overflow-x: auto;
  color: #F3F4F6 !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.guide__code pre {
  margin: 0;
  background: none !important;
  border: none;
  padding: 0;
  font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #F3F4F6 !important;
}

/* Ensure template code blocks use dark theme */
.guide__template .guide__code,
.guide__example .guide__code {
  background: #111827 !important;
  border-color: #0066CC !important;
  color: #F3F4F6 !important;
}

.guide__template .guide__code pre,
.guide__example .guide__code pre {
  color: #F3F4F6 !important;
}

/* Enhanced template containers to match site theme */
.guide__template {
  background: rgba(17, 24, 39, 0.8) !important;
  border: 1px solid rgba(0, 102, 204, 0.3) !important;
  backdrop-filter: blur(10px);
}

.guide__example {
  background: rgba(0, 102, 204, 0.1) !important;
  border-left: 4px solid #0066CC !important;
}

/* Diagram placeholder styling */
.guide__diagram {
  background: rgba(17, 24, 39, 0.8);
  border: 2px dashed rgba(0, 102, 204, 0.3);
  border-radius: 8px;
  padding: 2rem;
  margin: 1.5rem 0;
  text-align: center;
  color: #9ca3af;
  backdrop-filter: blur(10px);
}

.guide__diagram-title {
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #66B2FF;
}

.guide__diagram-description {
  font-size: 0.9rem;
  font-style: italic;
  color: #d1d5db;
}

/* Diagram image styling */
.guide__diagram-image {
  max-width: 100%;
  width: auto;
  height: auto;
  max-height: 600px;
  margin: 1rem auto;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  background: #1a202c;
  padding: 1rem;
  border: 1px solid #374151;
  display: block;
}

/* Enhanced callout styling override */
.guide__example {
  background: #f0f8ff;
  border-left: 4px solid #007bff;
  padding: 1rem 1.5rem;
  margin: 1rem 0;
}

.guide__example h4 {
  color: #007bff;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.guide__template {
  background: #f9f9f9;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}

/* =================================================================
   ANIMATIONS
   ================================================================= */

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(30px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideIn {
  from { 
    opacity: 0;
    transform: translateX(20px);
  }
  to { 
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* =================================================================
   COMPARISON TABLE COMPONENT
   ================================================================= */

/* Comparison Table Wrapper */
.guide__comparison-table {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 102, 204, 0.3);
  border-radius: var(--border-radius-lg);
  padding: var(--spacing-6);
  margin: var(--spacing-8) 0;
  overflow: hidden;
  box-shadow: var(--shadow-blue);
  transition: all var(--transition-base);
}

.guide__comparison-table:hover {
  border-color: var(--primary-blue);
  box-shadow: var(--glow-blue);
}

.guide__comparison-table h4 {
  font-size: var(--text-xl);
  font-weight: var(--font-bold);
  color: var(--text-white);
  margin-bottom: var(--spacing-2);
  text-align: center;
  background: var(--secondary-gradient);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.guide__comparison-table .guide__diagram-description {
  font-size: var(--text-base);
  color: var(--text-gray-300);
  text-align: center;
  margin-bottom: var(--spacing-6);
  font-style: italic;
}

/* Table Styles */
.comparison-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  font-size: var(--text-sm);
}

.comparison-table thead th {
  text-align: left;
  padding: var(--spacing-4);
  color: var(--text-white);
  font-weight: var(--font-bold);
  border-right: 1px solid rgba(0, 102, 204, 0.2);
  font-size: var(--text-base);
  position: relative;
}

.comparison-table thead th:first-child {
  border-top-left-radius: var(--border-radius);
}

.comparison-table thead th:last-child {
  border-top-right-radius: var(--border-radius);
  border-right: none;
}

.comparison-table tbody td {
  padding: var(--spacing-4);
  vertical-align: top;
  line-height: 1.4;
  border-right: 1px solid rgba(0, 102, 204, 0.2);
  border-top: 1px solid rgba(0, 102, 204, 0.2);
  font-size: var(--text-sm);
  color: var(--text-white);
  transition: all var(--transition-fast);
}

.comparison-table tbody tr:nth-child(odd) td {
  background: rgba(0, 102, 204, 0.03);
}

.comparison-table tbody tr:hover td {
  background: rgba(0, 102, 204, 0.1);
}

.comparison-table tbody td:last-child {
  border-right: none;
}

/* Column-specific backgrounds */
.comparison-table thead th.col-category {
  background: var(--bg-dark-tertiary);
}

.comparison-table thead th.col-formative {
  background: linear-gradient(135deg, #1b5e20 0%, #2e7d32 100%);
}

.comparison-table thead th.col-summative {
  background: linear-gradient(135deg, #b71c1c 0%, #c62828 100%);
}

.comparison-table tbody td.col-category {
  background: var(--bg-dark-tertiary);
  font-weight: var(--font-semibold);
  white-space: nowrap;
  color: var(--accent-blue);
}

.comparison-table tbody td.col-formative {
  background: rgba(27, 94, 32, 0.2);
}

.comparison-table tbody td.col-summative {
  background: rgba(183, 28, 28, 0.2);
}

/* Content formatting within cells */
.comparison-table .cell {
  display: block;
}

.comparison-table .cell .label {
  display: block;
  font-weight: var(--font-semibold);
  margin-bottom: var(--spacing-1);
  color: var(--accent-blue);
}

.comparison-table .cell ul {
  margin: var(--spacing-1) 0 0 var(--spacing-4);
  padding: 0;
  list-style: none;
}

.comparison-table .cell li {
  margin: var(--spacing-1) 0;
  position: relative;
  padding-left: var(--spacing-3);
}

.comparison-table .cell li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--secondary-blue);
  font-weight: var(--font-bold);
}

/* Responsive: stack columns on small screens */
@media (max-width: 820px) {
  .comparison-table thead {
    display: none;
  }
  
  .comparison-table,
  .comparison-table tbody,
  .comparison-table tr,
  .comparison-table td {
    display: block;
    width: 100%;
  }
  
  .comparison-table tbody tr {
    margin: 0 0 var(--spacing-4);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    background: var(--bg-card);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 102, 204, 0.2);
  }
  
  .comparison-table tbody td {
    border-right: none;
    border-top: none;
    padding: var(--spacing-3);
    position: relative;
  }
  
  .comparison-table tbody td.col-category {
    border-bottom: 1px solid rgba(0, 102, 204, 0.3);
    background: var(--bg-dark-tertiary);
    font-weight: var(--font-bold);
    text-align: center;
    padding: var(--spacing-4);
  }
  
  .comparison-table tbody td.col-formative,
  .comparison-table tbody td.col-summative {
    border-top: 1px solid rgba(0, 102, 204, 0.2);
  }
  
  /* Add labels for mobile */
  .comparison-table tbody td.col-formative::before {
    content: "Formative – Improve the Design";
    display: block;
    font-weight: var(--font-bold);
    color: var(--accent-blue);
    margin-bottom: var(--spacing-2);
    padding-bottom: var(--spacing-2);
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
  }
  
  .comparison-table tbody td.col-summative::before {
    content: "Summative – Validate the Design";
    display: block;
    font-weight: var(--font-bold);
    color: var(--accent-blue);
    margin-bottom: var(--spacing-2);
    padding-bottom: var(--spacing-2);
    border-bottom: 1px solid rgba(0, 102, 204, 0.2);
  }
}

/* =================================================================
   RESPONSIVE OVERRIDES FOR GUIDE-SPECIFIC ELEMENTS
   ================================================================= */

/* Responsive */
@media (max-width: 768px) {
  .guide__diagram-image {
    max-height: 300px;
    padding: 0.5rem;
  }
}

@media (max-width: 576px) {
  .lead-modal__content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .lead-modal__title {
    font-size: 1.25rem;
  }
  
  .guide__diagram-image {
    max-height: 250px;
  }
  
  .comparison-table tbody td {
    padding: var(--spacing-2);
  }
  
  .comparison-table .cell .label {
    font-size: var(--text-sm);
  }
}
