/**
 * Article Components - Typography + rich content elements
 * Tuned to runcyclingapparel.com brand (#1EB7E6 primary / #004E89 secondary)
 */

/* ========== Headings ========== */
.article-content h2,
.article-content h3,
.article-content h4 {
  color: #1a1a1a;
  font-weight: 700;
  line-height: 1.3;
  scroll-margin-top: 110px;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

.article-content h2 {
  font-size: 1.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--brand-primary, #1EB7E6);
}

.article-content h3 {
  font-size: 1.375rem;
}

.article-content h4 {
  font-size: 1.125rem;
}

/* ========== Paragraphs and lists ========== */
.article-content p {
  margin: 0 0 1.25rem;
  color: #333;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.5rem;
  padding-left: 1.5rem;
}

.article-content li {
  margin-bottom: 0.5rem;
  line-height: 1.7;
}

.article-content li + li {
  margin-top: 0.25rem;
}

.article-content ul li::marker {
  color: var(--brand-primary, #1EB7E6);
}

/* ========== Tables ========== */
.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.75rem 0;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
  border: 1px solid #e0e0e0;
}

.article-content thead th {
  background: var(--brand-secondary, #004E89);
  color: #fff;
  font-weight: 600;
  text-align: left;
  padding: 0.875rem 1rem;
  font-size: 0.9375rem;
  letter-spacing: 0.02em;
}

.article-content tbody td {
  padding: 0.75rem 1rem;
  border-top: 1px solid #e9ecef;
  font-size: 0.9375rem;
  color: #333;
}

.article-content tbody tr:nth-child(even) td {
  background: #f8f9fa;
}

.article-content tbody tr:hover td {
  background: rgba(30, 183, 230, 0.06);
}

/* ========== Blockquote ========== */
.article-content blockquote {
  margin: 1.75rem 0;
  padding: 1rem 1.5rem;
  border-left: 4px solid var(--brand-primary, #1EB7E6);
  background: #f8f9fa;
  color: #555;
  font-style: italic;
  border-radius: 0 8px 8px 0;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

/* ========== Inline code + code blocks ========== */
.article-content code {
  font-family: 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
  padding: 0.15em 0.4em;
  background: rgba(30, 183, 230, 0.1);
  color: #004E89;
  border-radius: 4px;
}

.article-content pre {
  margin: 1.5rem 0;
  padding: 1.25rem;
  background: #1a1a1a;
  color: #e6e6e6;
  border-radius: 8px;
  overflow-x: auto;
  font-size: 0.9375rem;
  line-height: 1.6;
}

.article-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

/* ========== Horizontal rule ========== */
.article-content hr {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, #e0e0e0, transparent);
  margin: 2.5rem 0;
}

/* ========== CTA Banner ========== */
.cta-banner {
  margin: 2.5rem 0;
  padding: 2.25rem 1.75rem;
  background: linear-gradient(135deg, #004E89 0%, #1EB7E6 100%);
  border-radius: 12px;
  text-align: center;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 78, 137, 0.2);
}

.cta-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 0.75rem;
}

.cta-banner-body {
  font-size: 1rem;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 auto 1.5rem;
  max-width: 620px;
}

.cta-banner-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  background: var(--brand-accent, #ffc107);
  color: #1a1a1a;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 6px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.cta-banner-button:hover {
  background: #ffb300;
  color: #1a1a1a;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.24);
  text-decoration: none;
}

/* ========== Responsive ========== */
@media (max-width: 767.98px) {
  .article-content h2 { font-size: 1.5rem; }
  .article-content h3 { font-size: 1.2rem; }
  .article-content h4 { font-size: 1.05rem; }

  .article-content table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .cta-banner {
    padding: 1.75rem 1.25rem;
  }
  .cta-banner-title {
    font-size: 1.25rem;
  }
}
