/* ============================================
   Aluminaworld B2B Blog Article Stylesheet
   Authored: 2026-07-02
   Applied to: 36 blog HTML files
   Scope: only .article-content wrapper
   Conservative B2B document style with mobile-first responsive
   ============================================ */

.article-content {
  /* Base typography */
  font-size: 17px;
  line-height: 1.75;
  color: #374151; /* gray-700 */
  word-wrap: break-word;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .article-content { font-size: 18px; }
}

/* Lead paragraph (intro after H1) */
.article-content > p:first-of-type {
  font-size: 19px;
  line-height: 1.7;
  color: #4B5563;
  font-weight: 400;
  margin-bottom: 28px;
}
@media (min-width: 768px) {
  .article-content > p:first-of-type { font-size: 21px; }
}

/* H2 - primary section heading (B2B style with brand left bar) */
.article-content h2 {
  font-size: 1.65rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0F4C81; /* brand-blue */
  margin-top: 32px !important;
  margin-bottom: 14px !important;
  padding-left: 14px;
  border-left: 4px solid #0F4C81;
  scroll-margin-top: 80px; /* anchor sticky offset */
}
@media (min-width: 768px) {
  .article-content h2 { font-size: 1.875rem; }
}

/* H3 - sub heading (lighter accent) */
.article-content h3 {
  font-size: 1.2rem;
  line-height: 1.4;
  font-weight: 600;
  color: #1F2937; /* gray-800 */
  margin-top: 22px !important;
  margin-bottom: 10px !important;
  padding-left: 12px;
  border-left: 3px solid #F4A300; /* brand-orange */
  scroll-margin-top: 80px;
}
@media (min-width: 768px) {
  .article-content h3 { font-size: 1.3rem; }
}

/* Paragraphs */
.article-content p {
  margin-top: 0;
  margin-bottom: 16px;
  line-height: 1.75;
}

/* Strong / emphasis */
.article-content strong {
  color: #0F4C81;
  font-weight: 600;
}

/* Inline code */
.article-content code {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, Consolas, monospace;
  font-size: 0.92em;
  background: #F3F4F6;
  padding: 2px 6px;
  border-radius: 4px;
  color: #0F4C81;
}

/* Pre block */
.article-content pre {
  background: #1F2937;
  color: #F9FAFB;
  padding: 16px;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.5;
  margin: 20px 0;
}
.article-content pre code {
  background: transparent;
  padding: 0;
  color: inherit;
}

/* Lists */
.article-content ul, .article-content ol {
  margin: 14px 0 22px 0;
  padding-left: 26px;
  line-height: 1.8;
}
.article-content ul li {
  list-style: disc;
  margin-bottom: 8px;
}
.article-content ol li {
  list-style: decimal;
  margin-bottom: 8px;
}
.article-content ul li::marker, .article-content ol li::marker {
  color: #0F4C81;
  font-weight: 600;
}

/* Tables - B2B document style with sticky header */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.5;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid #E5E7EB;
  border-radius: 6px;
}

@media (min-width: 768px) {
  .article-content table {
    display: table;
    font-size: 15px;
  }
}

.article-content thead {
  background: #0F4C81;
  color: #FFFFFF;
}
.article-content thead th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
  border-bottom: 2px solid #0a3a66;
}
.article-content tbody td {
  padding: 11px 14px;
  border-bottom: 1px solid #E5E7EB;
  color: #374151;
  vertical-align: top;
}
.article-content tbody tr:nth-child(even) {
  background: #F9FAFB;
}
.article-content tbody tr:hover {
  background: #EFF6FF;
}
.article-content tbody tr:last-child td {
  border-bottom: none;
}

/* Blockquote */
.article-content blockquote {
  border-left: 4px solid #F4A300;
  padding: 14px 18px;
  margin: 20px 0;
  background: #FFFBEB;
  color: #1F2937;
  font-style: italic;
  border-radius: 0 6px 6px 0;
}

/* Inline / external links */
.article-content a {
  color: #0F4C81;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  transition: color 0.15s;
}
.article-content a:hover {
  color: #F4A300;
  text-decoration-thickness: 2px;
}

/* Horizontal rule */
.article-content hr {
  border: none;
  border-top: 1px solid #E5E7EB;
  margin: 32px 0;
}

/* Images */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 20px auto;
  display: block;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Fix prose conflicts - override Tailwind typography */
.prose { color: inherit !important; }
.prose h2, .prose h3 { color: inherit; font-family: inherit; }

/* Hide duplicate ad slots on mobile if present */
@media (max-width: 767px) {
  .article-content table { font-size: 13px; }
  .article-content thead th { padding: 10px 8px; font-size: 13px; }
  .article-content tbody td { padding: 10px 8px; }
}
