/* Pipelane Blog — Article Styles */
/* Layered on top of Tailwind CSS CDN + site/style.css */

/* ---- Article Layout ---- */
.article-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: #374151;
}

/* ---- Headings ---- */
.article-content h1 {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.2;
  color: #111827;
  letter-spacing: -0.025em;
  margin-bottom: 1.5rem;
}

@media (min-width: 640px) {
  .article-content h1 {
    font-size: 2.75rem;
  }
}

.article-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.3;
  color: #111827;
  margin-top: 3rem;
  margin-bottom: 1rem;
  letter-spacing: -0.015em;
}

.article-content h3 {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.4;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

.article-content h4 {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.5;
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

/* ---- Paragraphs ---- */
.article-content p {
  margin-bottom: 1.25rem;
}

/* ---- Links ---- */
.article-content a {
  color: #0D7377;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s ease;
}

.article-content a:hover {
  color: #0a5c5f;
}

/* ---- Lists ---- */
.article-content ul,
.article-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-content ul {
  list-style-type: disc;
}

.article-content ol {
  list-style-type: decimal;
}

.article-content li {
  margin-bottom: 0.5rem;
  padding-left: 0.25rem;
}

.article-content li > ul,
.article-content li > ol {
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

/* ---- Strong & Em ---- */
.article-content strong {
  font-weight: 600;
  color: #111827;
}

.article-content em {
  font-style: italic;
}

/* ---- Blockquotes ---- */
.article-content blockquote {
  border-left: 3px solid #0D7377;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  background: #f0fdfa;
  border-radius: 0 0.5rem 0.5rem 0;
  color: #134e4a;
  font-style: italic;
}

.article-content blockquote p {
  margin-bottom: 0.5rem;
}

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

/* ---- Tables ---- */
.article-content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 1.5rem 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  border: 1px solid #e5e7eb;
  border-radius: 0.5rem;
  overflow: hidden;
}

.article-content thead th {
  background: #f9fafb;
  padding: 0.75rem 1rem;
  text-align: left;
  font-weight: 600;
  color: #111827;
  font-size: 0.875rem;
  border-bottom: 1px solid #e5e7eb;
}

.article-content tbody td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
}

.article-content tbody tr:last-child td {
  border-bottom: none;
}

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

/* Table horizontal scroll on mobile */
.table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.5rem 0;
}

.table-wrapper table {
  margin: 0;
  min-width: 500px;
}

/* ---- Code ---- */
.article-content code {
  font-family: 'SF Mono', 'Fira Code', 'Fira Mono', monospace;
  font-size: 0.875em;
  background: #f3f4f6;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
  color: #1f2937;
}

.article-content pre {
  background: #1f2937;
  color: #e5e7eb;
  padding: 1.25rem 1.5rem;
  border-radius: 0.5rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 0.875rem;
  line-height: 1.6;
}

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

/* ---- Horizontal Rule ---- */
.article-content hr {
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 2.5rem 0;
}

/* ---- Images ---- */
.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.5rem;
  margin: 1.5rem 0;
}

/* ---- Table of Contents ---- */
.toc {
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
}

.toc-title {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #6b7280;
  margin-bottom: 0.75rem;
}

.toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}

.toc li {
  counter-increment: toc-counter;
  margin-bottom: 0.375rem;
}

.toc li::before {
  content: counter(toc-counter) ". ";
  color: #9ca3af;
  font-size: 0.875rem;
}

.toc a {
  color: #374151;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s ease;
}

.toc a:hover {
  color: #0D7377;
}

/* ---- CTA Banner ---- */
.cta-banner {
  background: linear-gradient(135deg, #0D7377 0%, #0f766e 100%);
  border-radius: 0.75rem;
  padding: 2rem 2rem;
  margin-top: 3rem;
  text-align: center;
  color: #fff;
}

.cta-banner h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: #fff;
}

.cta-banner p {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.25rem;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-banner .cta-btn {
  display: inline-block;
  background: #fff;
  color: #0D7377;
  padding: 0.75rem 1.75rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.1s ease, box-shadow 0.15s ease;
}

.cta-banner .cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ---- Article Meta ---- */
.article-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}

.article-category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0D7377;
  background: #f0fdfa;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
}

.article-date {
  font-size: 0.875rem;
  color: #9ca3af;
}

/* ---- Blog Index Cards ---- */
.blog-card {
  display: block;
  border: 1px solid #e5e7eb;
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  color: inherit;
}

.blog-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  border-color: #d1d5db;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #0D7377;
  background: #f0fdfa;
  padding: 0.1875rem 0.5rem;
  border-radius: 9999px;
  margin-bottom: 0.75rem;
}

.blog-card-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.3;
  margin-bottom: 0.5rem;
}

.blog-card-description {
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.6;
}

.blog-card-priority {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  margin-left: 0.5rem;
}

/* ---- Breadcrumb ---- */
.breadcrumb {
  font-size: 0.875rem;
  color: #9ca3af;
  margin-bottom: 1.5rem;
}

.breadcrumb a {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover {
  color: #0D7377;
}

.breadcrumb span {
  margin: 0 0.375rem;
}

/* ---- FAQ Schema Section ---- */
.faq-section {
  margin-top: 2rem;
}

.faq-section h3 {
  font-size: 1.125rem;
}

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .article-content {
    font-size: 1rem;
  }

  .article-content h1 {
    font-size: 1.75rem;
  }

  .article-content h2 {
    font-size: 1.3125rem;
    margin-top: 2.25rem;
  }

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

  .toc {
    padding: 1rem 1.25rem;
  }

  .cta-banner {
    padding: 1.5rem;
  }

  .cta-banner h3 {
    font-size: 1.25rem;
  }

  .blog-card {
    padding: 1.25rem;
  }
}
