/* ==========================================================================
   WEAPON WORLD - WIKI ARTICLE & SIDEBAR SPEC LAYOUT
   ========================================================================== */

.article-wrapper {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
  align-items: start;
}

/* Main Article Content */
.article-header h1 {
  font-size: 2.2rem;
  font-weight: 800;
  color: #111315;
  letter-spacing: -0.5px;
  margin-top: 8px;
}

.article-meta {
  color: #6c757d;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.content-body h2 {
  font-size: 1.4rem;
  color: #111315;
  margin: 32px 0 12px 0;
  padding-bottom: 6px;
  border-bottom: 1px solid #dee2e6;
}

.content-body p {
  margin-bottom: 16px;
  color: #2b2f33;
  font-size: 1.02rem;
}

.content-body ul, .content-body ol {
  margin: 0 0 20px 24px;
  color: #2b2f33;
}

.content-body li {
  margin-bottom: 6px;
}

/* Wikipedia-Style Sidebar Spec Box (Infobox) */
.wiki-infobox {
  background-color: #ffffff;
  border: 1px solid #ced4da;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

.wiki-infobox h3 {
  font-size: 1.1rem;
  text-align: center;
  padding-bottom: 10px;
  border-bottom: 2px solid #212529;
  margin-bottom: 16px;
  color: #111315;
}

.infobox-image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  border: 1px solid #e9ecef;
  margin-bottom: 16px;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  margin-bottom: 20px;
}

.spec-table th, .spec-table td {
  padding: 8px 4px;
  border-bottom: 1px solid #e9ecef;
  text-align: left;
}

.spec-table th {
  color: #495057;
  font-weight: 600;
  width: 45%;
}

.spec-table td {
  color: #111315;
}

/* Affiliate Buy/Check Price Button */
.btn-affiliate {
  display: block;
  text-align: center;
  background-color: #212529;
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: background 0.2s ease;
}

.btn-affiliate:hover {
  background-color: #343a40;
}

/* Inline In-Article Masterclass Banner */
.inline-academy-callout {
  background-color: #f8f9fa;
  border: 1px solid #dee2e6;
  border-left: 4px solid #212529;
  padding: 20px;
  border-radius: 6px;
  margin: 30px 0;
}

.inline-academy-callout h4 {
  font-size: 1.1rem;
  color: #111315;
  margin-bottom: 6px;
}

.inline-academy-callout p {
  font-size: 0.92rem;
  color: #6c757d;
  margin-bottom: 12px;
}

/* Mobile Responsiveness */
@media (max-width: 850px) {
  .article-wrapper {
    grid-template-columns: 1fr;
  }
  
  .wiki-infobox {
    order: -1; /* Puts spec box at top on mobile screens */
    margin-bottom: 24px;
  }
}