/* Global styles for the article */
pre {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 6px;
  padding: 15px;
  overflow-x: auto;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 14px;
  line-height: 1.4;
  margin: 15px 0;
}

code {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 3px;
  padding: 2px 6px;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 0.9em;
}

pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: inherit;
}

h2 {
  color: #2c3e50;
  border-bottom: 2px solid #3498db;
  padding-bottom: 10px;
  margin-top: 40px;
  margin-bottom: 20px;
}

h3 {
  color: #34495e;
  margin-top: 30px;
  margin-bottom: 15px;
}

p {
  line-height: 1.6;
  margin-bottom: 16px;
}

ul, ol {
  line-height: 1.6;
  margin-bottom: 16px;
}

li {
  margin-bottom: 8px;
}

strong {
  color: #2c3e50;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .basic-grid, .mixed-grid, .proportional-grid, .advanced-grid, .auto-grid {
    grid-template-columns: 1fr !important;
  }
  
  .dashboard {
    grid-template-columns: 1fr !important;
    grid-template-rows: auto !important;
    height: auto !important;
  }
  
  .interactive-container {
    padding: 10px;
  }
  
  .resize-controls button {
    display: block;
    width: 100%;
    margin-bottom: 10px;
    margin-right: 0;
  }
  
  pre {
    font-size: 12px;
    padding: 10px;
  }
}