/* ============================================================
   Article layout — shared by every resources/<topic>.html page.
   Pairs with assets/site.css for tokens, nav, footer, buttons.
   ============================================================ */

main { padding-top: 0; }

.article-hero {
  padding: 80px 0 56px;
  position: relative;
  overflow: hidden;
}
.article-hero::before {
  content: '';
  position: absolute;
  inset: -10% -10% auto -10%;
  height: 80%;
  background:
    radial-gradient(ellipse 60% 80% at 30% 25%, rgba(224, 231, 255, 0.55), transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(251, 113, 133, 0.10), transparent 70%);
  filter: blur(6px);
  pointer-events: none;
  z-index: 0;
}
.article-hero .shell { position: relative; z-index: 1; max-width: 880px; }

.article-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--geist-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 22px;
}
.article-eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: var(--secondary);
  box-shadow: 0 0 10px var(--glow);
}

.article-title {
  font-family: var(--geist);
  font-weight: 300;
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  margin: 0 0 24px;
}
.article-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}

.article-lede {
  font-family: var(--geist);
  font-weight: 400;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 0 32px;
}
.article-lede em { font-family: var(--serif); font-style: italic; color: var(--text-secondary); }

.article-meta {
  display: flex;
  gap: 22px;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  font-family: var(--geist-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.article-meta .sep { color: var(--text-secondary); }
.article-meta .pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(99, 102, 241, 0.22);
  border-radius: 9999px;
  background: rgba(224, 231, 255, 0.35);
  color: var(--text-secondary);
}
.article-meta .pill .pulse {
  width: 6px; height: 6px; border-radius: 9999px;
  background: var(--secondary);
  box-shadow: 0 0 8px var(--glow);
}

.article-body { padding: 32px 0 64px; }
.article-body .shell { max-width: 880px; }

.article-section { margin: 0 0 56px; }
.article-section h2 {
  font-family: var(--geist);
  font-weight: 400;
  font-size: clamp(26px, 3vw, 36px);
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin: 0 0 18px;
  color: var(--text-primary);
}
.article-section h2 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--text-secondary);
}
.article-section h3 {
  font-family: var(--geist);
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin: 28px 0 10px;
  color: var(--text-primary);
}
.article-section p {
  font-family: var(--geist);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-muted);
  margin: 0 0 16px;
}
.article-section p em {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-secondary);
}
.article-section ul, .article-section ol {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--text-muted);
}
.article-section li {
  font-family: var(--geist);
  font-size: 16px;
  line-height: 1.65;
  margin-bottom: 8px;
}
.article-section li::marker { color: var(--text-secondary); }

.sec-num {
  font-family: var(--geist-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 6px;
}

.pull {
  margin: 28px 0;
  padding: 26px 28px;
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.4), rgba(255, 255, 255, 0.85));
  border-left: 3px solid var(--secondary);
  border-radius: 0 12px 12px 0;
}
.pull p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  line-height: 1.5;
  color: var(--text-primary);
  margin: 0;
}

.diagram {
  margin: 36px 0 44px;
  padding: 36px 36px 28px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(224, 231, 255, 0.35), transparent 70%),
    rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(4px);
  box-shadow: 0 12px 28px -16px rgba(15, 23, 42, 0.12);
}
.diagram-label {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--border);
}
.diagram-label .num {
  font-family: var(--geist-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.diagram-label .ttl {
  font-family: var(--geist);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}
.diagram svg { width: 100%; height: auto; display: block; }
.diagram-cap {
  margin: 18px 0 0;
  font-family: var(--geist);
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-faint);
  text-align: center;
}
.diagram-cap em { font-family: var(--serif); font-style: italic; color: var(--text-secondary); }

/* Tables (used in some playbook articles) */
.article-table {
  width: 100%;
  margin: 24px 0 32px;
  border-collapse: collapse;
  font-family: var(--geist);
  font-size: 14px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.article-table th, .article-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.article-table th {
  background: rgba(224, 231, 255, 0.35);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}
.article-table tr:last-child td { border-bottom: none; }
.article-table td { color: var(--text-muted); line-height: 1.55; }
.article-table td strong { color: var(--text-primary); font-weight: 500; }

.article-cta {
  margin: 56px 0 0;
  padding: 44px 44px;
  background: linear-gradient(135deg, rgba(224, 231, 255, 0.55), rgba(255, 255, 255, 0.92));
  border: 1px solid var(--border);
  border-radius: 18px;
  text-align: center;
}
.article-cta h3 {
  font-family: var(--geist);
  font-weight: 300;
  font-size: 32px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 12px;
  color: var(--text-primary);
}
.article-cta h3 em { font-family: var(--serif); font-style: italic; color: var(--text-secondary); }
.article-cta p {
  font-family: var(--geist);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 24px;
}
.article-cta .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 36px;
  font-family: var(--geist);
  font-size: 13px;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 200ms var(--ease), gap 200ms var(--ease);
}
.article-back:hover { color: var(--text-primary); gap: 10px; }

@media (max-width: 720px) {
  .article-hero { padding: 56px 0 40px; }
  .diagram { padding: 24px 18px 20px; border-radius: 14px; }
  .article-cta { padding: 32px 24px; }
  .article-section ul, .article-section ol { padding-left: 18px; }
  .article-table { font-size: 13px; }
  .article-table th, .article-table td { padding: 10px 10px; }
}
