/* Clean single article page with professional styling */
.single-article-page {
  background: #ffffff;
  color: #1e293b;
}

.article-shell {
  margin: auto;
  width: min(1160px, calc(100% - 40px));
}

.article-hero {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  color: #0f172a;
  padding: 48px 0 52px;
}

.article-breadcrumb {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 13px;
  gap: 8px;
  margin-bottom: 20px;
}

.article-breadcrumb a {
  color: #c2410c;
  text-decoration: none;
  font-weight: 500;
}

.article-topic,
.faq-answer-label {
  color: #c2410c;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.article-hero .article-topic {
  color: #9a3412;
}

.article-hero h1 {
  color: #0f172a !important;
  font-size: clamp(30px, 4vw, 48px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin: 10px 0 16px;
  max-width: 860px;
}

.article-meta {
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  font-size: 13px;
  font-weight: 500;
}

.article-meta span + span:before {
  color: #cbd5e1;
  content: '•';
  margin: 0 10px;
}

.article-layout {
  align-items: start;
  display: grid;
  gap: 40px;
  grid-template-columns: minmax(0, 760px) 280px;
  padding: 48px 0 56px;
}

.article-body {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  padding: clamp(24px, 4vw, 48px);
}

.article-prose {
  color: #334155;
  font-size: 17px;
  line-height: 1.8;
}

.article-prose > :first-child {
  margin-top: 0;
}

.article-prose h2 {
  color: #0f172a;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  margin: 40px 0 14px;
  scroll-margin-top: 100px;
}

.article-prose h3 {
  color: #0f172a;
  font-size: 21px;
  font-weight: 700;
  margin: 32px 0 10px;
  scroll-margin-top: 100px;
}

.article-prose figure {
  margin: 28px 0;
}

.article-prose img {
  border-radius: 12px;
  display: block;
  height: auto;
  max-width: 100%;
  width: 100%;
}

.article-prose figcaption {
  color: #64748b;
  font-size: 13px;
  margin-top: 10px;
  text-align: center;
}

.article-prose p,
.article-prose ul,
.article-prose ol {
  margin: 0 0 20px;
}

.article-prose li {
  margin: 6px 0;
}

.article-prose a {
  color: #c2410c;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose a:hover {
  color: #9a3412;
}

.article-prose .isb-article,
.article-prose .isb-faq-entry {
  max-width: none;
  margin: 0;
  padding: 0;
}

.article-prose .isb-article-lead {
  color: #334155;
  font-size: 19px;
  line-height: 1.6;
}

.article-prose .isb-article h2 {
  font-size: 28px;
  font-weight: 800;
}

.article-prose .isb-article-quote,
.article-prose .isb-faq-quote {
  background: #fff7ed;
  border-left: 3px solid #fb923c;
  border-radius: 0 8px 8px 0;
  padding: 18px 22px;
  margin: 24px 0;
}

.article-prose .isb-article-quote p,
.article-prose .isb-faq-quote p {
  margin: 0;
  color: #334155;
}

.article-prose .isb-article-quote strong,
.article-prose .isb-faq-quote strong {
  color: #c2410c;
}

.article-prose .isb-steps article {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.article-prose .isb-steps article:hover {
  border-color: #fdba74;
}

.article-prose .isb-steps strong {
  color: #c2410c;
}

.article-prose .isb-resource-grid a {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  display: block;
  padding: 16px;
  text-decoration: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.article-prose .isb-resource-grid a:hover {
  border-color: #fdba74;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.article-prose .isb-resource-grid a span {
  color: #c2410c;
  font-weight: 600;
}

.article-prose .isb-text-link {
  color: #c2410c;
  font-weight: 600;
}

.article-prose .isb-post a {
  color: #c2410c;
  text-decoration: none;
  font-weight: 600;
}

.article-prose .isb-post a:hover {
  color: #9a3412;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-prose .isb-post {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
  background: #ffffff;
  transition: border-color 0.2s ease;
}

.article-prose .isb-post:hover {
  border-color: #fdba74;
}

.article-prose blockquote {
  border-left: 3px solid #fb923c;
  margin: 24px 0;
  padding: 14px 22px;
  background: #fff7ed;
  border-radius: 0 8px 8px 0;
  color: #334155;
  font-style: italic;
}

.article-prose code {
  background: #f1f5f9;
  border-radius: 4px;
  font-size: 14px;
  padding: 2px 6px;
}

.article-prose pre {
  background: #1e293b;
  border-radius: 8px;
  color: #e2e8f0;
  overflow-x: auto;
  padding: 18px;
}

.article-prose pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

/* Sidebar rail */
.article-sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Table of contents */
.article-toc {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  position: sticky;
  top: 100px;
}

.article-toc > span,
.side-card-label {
  color: #0f172a;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

.article-toc li {
  margin-bottom: 2px;
}

.article-toc li.toc-level-3 {
  padding-left: 14px;
}

.article-toc a {
  color: #475569;
  display: block;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 10px;
  text-decoration: none;
  border-radius: 6px;
  transition: background 0.2s ease, color 0.2s ease;
}

.article-toc a:hover {
  background: #fff7ed;
  color: #c2410c;
}

/* Share + explore-more sidebar cards */
.article-share-card,
.article-side-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
}

.article-share-card > span {
  color: #0f172a;
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.article-side-card h2 {
  color: #0f172a;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 4px 0 14px;
}

.article-side-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-side-card li {
  margin-bottom: 4px;
}

.article-side-card a {
  align-items: center;
  border-radius: 6px;
  color: #334155;
  display: flex;
  font-size: 13px;
  font-weight: 500;
  justify-content: space-between;
  padding: 7px 10px;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.article-side-card a:hover {
  background: #fff7ed;
  color: #c2410c;
}

.article-side-card a b {
  background: #fff7ed;
  border-radius: 20px;
  color: #9a3412;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
}

/* Share buttons (sidebar + bottom-of-article) */
.article-share-buttons {
  display: flex;
  gap: 10px;
}

.article-bottom-share {
  align-items: center;
  border-top: 1px solid #e2e8f0;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 28px;
}

.article-bottom-share > span {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
}

.article-share-buttons a,
.article-share-buttons button {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 50%;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  font-size: 14px;
  font-weight: 700;
  height: 38px;
  justify-content: center;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  width: 38px;
}

.article-share-buttons a:hover,
.article-share-buttons button:hover {
  background: #c2410c;
  border-color: #c2410c;
  color: #ffffff;
  transform: translateY(-2px);
}

.article-share-buttons button.is-copied {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

/* Related posts */
.related-posts {
  border-top: 1px solid #e2e8f0;
  margin-top: 48px;
  padding-top: 40px;
}

.related-posts h3 {
  color: #0f172a;
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 20px;
  letter-spacing: -0.02em;
}

.related-posts-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
}

.related-post-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 18px;
  text-decoration: none;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.related-post-card h4 {
  color: #0f172a;
  font-size: 15px;
  font-weight: 700;
  margin: 0 0 6px;
}

.related-post-card span {
  color: #64748b;
  font-size: 12px;
}

/* Author box */
.author-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  display: flex;
  gap: 18px;
  margin-top: 36px;
  padding: 24px;
}

.author-box-avatar {
  border-radius: 50%;
  flex-shrink: 0;
  height: 64px;
  overflow: hidden;
  width: 64px;
}

.author-box-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.author-box-info h4 {
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px;
}

.author-box-info p {
  color: #475569;
  font-size: 14px;
  line-height: 1.55;
  margin: 0;
}

/* Responsive */
@media (max-width: 768px) {
  .article-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-toc {
    display: none;
  }

  .related-posts-grid {
    grid-template-columns: 1fr;
  }

  .author-box {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}

/* Related article cards */
.related-articles {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  margin-top: 56px;
  padding: 64px 0 72px;
}
.related-articles .article-topic { display: block; margin-bottom: 10px; }
.related-articles h2 { color: #1e293b; font-size: clamp(32px, 4vw, 46px); line-height: 1.1; margin: 0 0 28px; letter-spacing: -0.04em; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.related-grid > a { background: #fff; border: 1px solid #dbe5ee; border-radius: 14px; box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05); color: #1e293b; display: flex; flex-direction: column; gap: 12px; min-height: 184px; padding: 24px; text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.related-grid > a:hover { border-color: #f97316; box-shadow: 0 14px 28px rgba(15, 23, 42, .12); transform: translateY(-3px); }
.related-grid > a span { color: #c2410c; font-size: 13px; font-weight: 700; }
.related-grid > a strong { color: #1e293b; font-size: 18px; line-height: 1.35; }
.related-grid > a b { color: #c2410c; font-size: 14px; margin-top: auto; }
@media (max-width: 768px) { .related-articles { margin-top: 40px; padding: 46px 0; } .related-grid { grid-template-columns: 1fr; } .related-grid > a { min-height: 0; } }