/* ==========================================================================
   Full-Width Single Blog Article Architecture
   Prevents narrow squishing on wide screens, provides fluid responsive matrices
   and full-width breathing room for tables, ASCII diagrams, and code snippets.
   ========================================================================== */

.article-container {
  width: 100% !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 clamp(1rem, 3vw, 2.5rem) !important;
  box-sizing: border-box;
}

.article-body {
  width: 100% !important;
  max-width: 100% !important;
  font-size: clamp(1.02rem, 1.15vw, 1.15rem) !important;
  line-height: 1.85 !important;
  color: #e2e8f0;
}

/* Fluid Tables & Matrices */
.article-body table,
.article-container table {
  width: 100% !important;
  min-width: 680px;
  border-collapse: collapse;
  margin: 2.25rem 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  overflow: hidden;
  background: rgba(13, 18, 31, 0.75);
}

.article-body th,
.article-container th {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  padding: 16px 20px;
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid rgba(255, 255, 255, 0.12);
}

.article-body td,
.article-container td {
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: #cbd5e1;
}

/* Horizontal scrolling wrapper for tables when screen < 768px */
.table-responsive-wrapper,
.table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 2.5rem 0;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(13, 18, 31, 0.6);
  -webkit-overflow-scrolling: touch;
}

.table-responsive-wrapper table,
.table-wrap table {
  margin: 0 !important;
  border: none !important;
}

/* ASCII Diagrams & Preformatted Technical Snippets */
.article-body pre,
.article-container pre {
  max-width: 100% !important;
  overflow-x: auto !important;
  background: #060911 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 1.5rem 1.75rem !important;
  font-family: 'Fira Code', 'Courier New', Courier, monospace !important;
  font-size: clamp(0.8rem, 1vw, 0.92rem) !important;
  line-height: 1.55 !important;
  margin: 2.5rem 0 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5) !important;
}

/* Full-width callout boxes & Answer-First definitions */
.answer-first-box,
.article-body .answer-first-box {
  width: 100% !important;
  box-sizing: border-box !important;
  background: rgba(56, 189, 248, 0.08) !important;
  border-left: 4px solid var(--color-accent, #38bdf8) !important;
  padding: 1.35rem 1.75rem !important;
  border-radius: 0 12px 12px 0 !important;
  margin: 1.75rem 0 !important;
}

/* Responsive Images inside Single Articles */
.article-body img,
.article-container img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 14px;
}
