/*
 * Maintain Brain — Post Personality Layer
 * Article-specific styling for blog posts in The Protocol
 * Imports: tokens.css → system.css → styles.css → this file
 * (Nav, footer, body, reset, and base post layout from system.css + styles.css)
 */

/* ─── Post Header Wrapper ─── */
.post-wrapper {
  max-width: 740px;
  margin: 0 auto;
  padding: var(--sp-10) var(--sp-4);
}

/* ─── Custom Callout Components ─── */
.research-callout {
  background: rgba(30,92,158,0.06);
  border-left: 3px solid var(--primary);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-5) 0;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.research-callout strong {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-2);
}

.research-callout p {
  font-size: 15px;
  line-height: 1.68;
  color: var(--dark);
  margin: 0;
}

.pull-quote {
  margin: var(--sp-6) 0;
  padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--primary);
  background: var(--light);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: clamp(16px, 1.8vw, 20px);
  font-weight: 300;
  line-height: 1.52;
  color: var(--dark);
  font-style: italic;
  letter-spacing: -0.01em;
}

.protocol-box {
  background: var(--dark); color: white;
  padding: var(--sp-5) var(--sp-5); border-radius: var(--r-lg); margin: var(--sp-5) 0;
}
.protocol-box-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(255,255,255,0.45); margin-bottom: var(--sp-3);
}
.protocol-box h3 {
  font-size: 16px; font-weight: 700; color: white; margin-bottom: var(--sp-3);
}
.protocol-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-2); }
.protocol-list li {
  font-size: 14px; color: rgba(255,255,255,0.8); line-height: 1.6;
  padding-left: var(--sp-4); position: relative;
}
.protocol-list li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }

.stat-callout {
  display: grid; grid-template-columns: auto 1fr; gap: var(--sp-4); align-items: start;
  background: var(--light); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0;
}
.stat-figure {
  font-size: clamp(28px, 3.5vw, 44px); font-weight: 800; color: var(--primary);
  letter-spacing: -0.04em; line-height: 0.9;
}
.stat-body { font-size: 14px; color: var(--mid); line-height: 1.65; padding-top: 4px; }
.stat-body strong { color: var(--dark); }

/* ─── Post Footer ─── */
.post-divider { height: 1px; background: var(--border); margin: var(--sp-6) 0; }

.post-tags { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.post-tag {
  display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--primary); background: rgba(30,92,158,0.07);
  padding: 4px 12px; border-radius: var(--r-pill); text-decoration: none;
  transition: background var(--t-fast);
}
.post-tag:hover { background: rgba(30,92,158,0.14); }

/* Related Posts */
.related-posts { margin-top: var(--sp-2); }
.related-posts-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mid); margin-bottom: var(--sp-3);
}
.related-list { display: flex; flex-direction: column; gap: var(--sp-2); }
.related-item {
  display: block; padding: var(--sp-3) var(--sp-4); background: var(--light);
  border: 1px solid var(--border); border-radius: var(--r-md);
  text-decoration: none; transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.related-item:hover { border-color: rgba(30,92,158,0.2); box-shadow: var(--shadow-sm); }
.related-item-title { font-size: 14px; font-weight: 600; color: var(--dark); margin-bottom: 3px; }
.related-item-meta { font-size: 12px; color: var(--mid); }

/* ─── Responsive ─── */
@media (max-width: 640px) {
  .post-body { font-size: 15px; }
  .stat-callout { grid-template-columns: 1fr; }
}

/* ─── Blog hero image ──────────────────────────────────────────────────────── */
.post-hero-image {
  width: 100%;
  margin: 0 0 var(--sp-8);
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}
.post-hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 640px) {
  .post-hero-image { aspect-ratio: 4 / 3; margin-bottom: var(--sp-6); }
}
