/* =========================================================
   Agent memory reference article — prose, lists, tables
   Loads on top of common.css.
   ========================================================= */

.article { padding-bottom: 80px; }

.article-header {
  padding: 72px 0 40px;
  border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(circle at 12% 18%, rgba(228, 188, 76, 0.12), transparent 32vw),
    var(--bg);
}
.article-header .display-l {
  max-width: 820px;
  margin-top: 12px;
}
.article-lead {
  margin-top: 20px;
  max-width: 680px;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.6;
}

.article-body {
  padding: 56px 0 0;
  max-width: 760px;
}
.article-body > h2 {
  font-family: var(--ff-serif);
  font-weight: 400;
  font-size: clamp(28px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 48px 0 16px;
  scroll-margin-top: 88px;
}
.article-body > h2:first-child { margin-top: 0; }
.article-body > h3 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 28px 0 10px;
}
.article-body > p {
  color: var(--ink-2);
  line-height: 1.7;
  margin: 0 0 16px;
}
.article-body > ul,
.article-body > ol {
  margin: 0 0 20px 1.2em;
  color: var(--ink-2);
  line-height: 1.65;
}
.article-body > ul li,
.article-body > ol li { margin-bottom: 8px; }
.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.article-body a:hover { color: var(--ink); }

.article-table-wrap {
  overflow-x: auto;
  margin: 24px 0 32px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.article-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
}
.article-table th,
.article-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}
.article-table th {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-2);
  background: var(--bg-2);
}
.article-table tr:last-child td { border-bottom: none; }
.article-table td:first-child { font-weight: 500; color: var(--ink); }

@media (max-width: 720px) {
  .article-header { padding: 56px 0 32px; }
  .article-body { padding-top: 40px; }
}
