/* Shared layout for CJP Analysis articles.
 * Article-specific components remain in each post's inline stylesheet.
 */
.article-header {
  border-bottom: 2px solid var(--accent, #d97706);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.article-meta {
  color: var(--muted, #6b7280);
  font-size: 0.9rem;
}

.article-body {
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05rem;
}

.article-body p {
  margin-bottom: 1.25rem;
  text-indent: 1.5em;
}

.article-body p:first-of-type,
.article-body h2 + p,
.article-body h3 + p,
.article-body .pull-quote + p,
.article-body .data-box + p,
.article-body .power-pyramid + p,
.article-body .comparison-table + p,
.article-body .action-box + p,
.article-body .constituency-explorer + p {
  text-indent: 0;
}

.article-body .pull-quote,
.article-body .data-box,
.article-body .power-pyramid,
.article-body .comparison-table,
.article-body .action-box,
.article-body .constituency-explorer,
.article-body .ce-gap-highlight,
.article-body .pyramid-caption,
.article-body .explorer-search,
.article-body .data-figure,
.article-body .figure-caption,
.article-body .ref-note,
.article-body .references {
  text-indent: 0;
}

.article-body h2 {
  margin-top: 2.5rem;
  font-size: 1.4rem;
  color: var(--heading, #111);
}

.article-body h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.pull-quote {
  border-left: 4px solid var(--accent, #d97706);
  padding-left: 1rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--quote, #444);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}

.comparison-table th,
.comparison-table td {
  border: 1px solid var(--border, #e5e7eb);
  padding: 0.6rem 0.8rem;
  text-align: left;
}

.comparison-table th {
  background: var(--accent-bg, #fef3c7);
  font-weight: 600;
}

.comparison-table .highlight {
  background: #fee2e2;
  font-weight: 600;
}

.article-body ol,
.article-body ul {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}

.article-body li {
  margin-bottom: 0.5rem;
}

.data-figure {
  margin: 1.5rem 0;
  text-align: center;
}

.data-figure img,
.data-figure svg {
  max-width: 100%;
  height: auto;
}

.figure-caption {
  font-size: 0.85rem;
  color: var(--muted, #6b7280);
  text-align: center;
  margin-top: 0.5rem;
}

.article-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border, #e5e7eb);
}

.references {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 2px solid var(--border, #e5e7eb);
}

.references h2 {
  margin-top: 0;
}

.references ol {
  padding-left: 1.5rem;
}

.references li {
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
}

.references li a {
  color: var(--accent, #d97706);
  word-break: break-all;
}

.ref-note {
  background: #fefce8;
  border-left: 3px solid #eab308;
  padding: 0.75rem 1rem;
  margin: 1rem 0;
  font-size: 0.9rem;
  color: #713f12;
}

@media (max-width: 640px) {
  .article-body {
    font-size: 1rem;
  }

  .article-nav {
    gap: 1rem;
  }
}
