/* Main Article Content */
.article-content {
  min-width: 0;
  max-width: var(--content-max);
}

.prose {
  font-size: 19px;
  line-height: 1.75;
  color: var(--gray-700);
}

.prose h2 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--gray-900);
  margin: 56px 0 24px;
  line-height: 1.3;
  scroll-margin-top: 100px;
}

.prose h3 {
  font-size: 24px;
  font-weight: 700;
  color: var(--gray-800);
  margin: 40px 0 16px;
  line-height: 1.4;
  scroll-margin-top: 100px;
}

.prose p {
  margin-bottom: 24px;
}

.prose strong {
  color: var(--gray-900);
  font-weight: 600;
}

.prose a {
  color: var(--whk-blue);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(37, 99, 235, 0.3);
  transition: all 0.2s;
}

.prose a:hover {
  text-decoration-color: var(--whk-blue);
  color: var(--whk-blue-dark);
}

.prose ul,
.prose ol {
  margin: 24px 0;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 12px;
}

.prose li::marker {
  color: var(--whk-blue);
}

.prose blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: white;
  border-left: 4px solid var(--whk-blue);
  box-shadow: var(--shadow-sm);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-style: italic;
  font-size: 20px;
  color: var(--gray-800);
}

.prose img {
  width: 100%;
  border-radius: var(--radius-md);
  margin: 32px 0;
  box-shadow: var(--shadow-md);
}

/* Table wrapper for horizontal scroll on overflow */
.prose .table-wrapper {
  width: 100%;
  margin: 32px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
}

.prose .table-wrapper table {
  margin: 0;
  border: none;
  border-radius: 0;
}

.prose table {
  width: 100%;
  min-width: 100%;
  margin: 32px 0;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  overflow: hidden;
  font-size: 16px;
  table-layout: auto;
}

.prose th,
.prose td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid var(--gray-200);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.prose th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-900);
  white-space: nowrap;
}

.prose td {
  min-width: 120px;
}

.prose tr:last-child td {
  border-bottom: none;
}

/* Responsive table handling */
@media (max-width: 768px) {
  .prose table {
    font-size: 14px;
  }

  .prose th,
  .prose td {
    padding: 12px 10px;
  }

  .prose td {
    min-width: 100px;
  }
}

/* Callout */
.callout {
  margin: 32px 0;
  padding: 24px;
  background: linear-gradient(135deg, #eff6ff, #f0f9ff);
  border: 1px solid #bfdbfe;
  border-radius: var(--radius-lg);
  display: flex;
  gap: 16px;
}

.callout-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: var(--whk-blue);
}

.callout-content strong {
  display: block;
  margin-bottom: 6px;
  color: var(--whk-blue-dark);
}

/* Article Footer */
.article-footer {
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;
}

.tag {
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.tag:hover {
  background: var(--whk-blue);
  border-color: var(--whk-blue);
  color: white;
}

/* Share Buttons (Bottom) */
.share-section-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius-md);
}

.share-label {
  font-weight: 600;
  color: var(--gray-700);
}

.share-icons {
  display: flex;
  gap: 12px;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: white;
  border: 1px solid var(--gray-200);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gray-600);
  text-decoration: none;
  transition: all 0.2s;
}

.share-btn:hover {
  background: var(--whk-blue);
  border-color: var(--whk-blue);
  color: white;
  transform: translateY(-2px);
}

/* Author Box */
.author-box {
  padding: 32px;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  display: flex;
  gap: 24px;
}

.author-box-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--whk-blue), var(--whk-cyan));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 28px;
  flex-shrink: 0;
}

.author-box-content h4,
.author-box-content .author-box-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 4px;
}

.author-box-content .role {
  font-size: 14px;
  color: var(--whk-blue);
  margin-bottom: 12px;
}

/* Author Link Styles */
.author-info-link,
.author-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.author-info-link:hover .author-name,
.author-link:hover .author-box-name {
  color: var(--whk-blue);
}

.author-info-link:hover .author-title,
.author-link:hover .role {
  text-decoration: underline;
}

