/* post.css — long-form article and blog index styles.
   Loads after style.css and reuses its tokens. Generated pages only. */

.prose { max-width: 760px; margin: 0 auto; }

.prose p,
.prose li { color: var(--text-dim); line-height: 1.75; }

.prose h2 {
  font-family: var(--font-heading);
  color: var(--text);
  margin: 2.6rem 0 .8rem;
  font-size: clamp(1.4rem, 2.4vw, 1.6rem);
  scroll-margin-top: 90px;
}

.prose h3 {
  font-family: var(--font-heading);
  color: var(--text);
  margin: 1.9rem 0 .6rem;
  font-size: 1.14rem;
}

.prose strong { color: var(--text); }

.prose code {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: .1em .4em;
  font-size: .9em;
}

.prose ul,
.prose ol { padding-left: 1.2rem; margin: 1rem 0; }
.prose li { margin: .45rem 0; }

.prose-rule {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 2.6rem 0;
}

/* Breadcrumb + byline ---------------------------------------------------- */

.crumbs {
  font-size: .87rem;
  color: var(--text-dim);
  margin-bottom: 1.1rem;
}
.crumbs a { color: var(--accent-2); }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { opacity: .5; margin: 0 .35rem; }

.meta-line {
  color: var(--text-dim);
  font-size: .9rem;
  margin-bottom: 1.8rem;
}

.lede {
  color: var(--text-dim);
  font-size: 1.08rem;
  max-width: 660px;
  margin-bottom: 2.2rem;
}

/* Tables ----------------------------------------------------------------- */

.data-table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  -webkit-overflow-scrolling: touch;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .94rem;
  min-width: 460px;
}

.data-table th,
.data-table td {
  padding: .7rem .9rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.data-table th {
  color: var(--text);
  font-family: var(--font-heading);
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .045em;
  white-space: nowrap;
}

.data-table td { color: var(--text-dim); }
.data-table tbody tr:last-child td { border-bottom: 0; }

/* Pull quote / key point ------------------------------------------------- */

.keytake {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.15rem 1.4rem;
  margin: 1.8rem 0;
}

.keytake p {
  color: var(--text);
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.65;
}

/* In-article CTA --------------------------------------------------------- */

.post-cta {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.7rem;
  margin: 2.8rem 0;
  text-align: center;
}

.post-cta p {
  color: var(--text);
  max-width: 52ch;
  margin: 0 auto 1.2rem;
}

/* Post grid — blog index and related ------------------------------------- */

.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(268px, 1fr));
  gap: 1.1rem;
  margin: 1.5rem 0 0;
}

.post-card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem;
  transition: border-color .18s ease, transform .18s ease;
}

.post-card:hover {
  border-color: var(--accent-2);
  transform: translateY(-2px);
}

.post-card h3 {
  margin: 0 0 .5rem;
  font-size: 1.03rem;
  line-height: 1.35;
}

.post-card p {
  margin: 0;
  font-size: .9rem;
  color: var(--text-dim);
  line-height: 1.6;
}

.post-date {
  display: block;
  margin-top: .85rem;
  font-size: .8rem;
  color: var(--text-dim);
  opacity: .75;
  font-variant-numeric: tabular-nums;
}

/* The generated FAQ block sits inside .prose, which is narrower than the
   homepage section it was designed for. */
.prose .faq-list { margin-top: 1rem; }

@media (max-width: 640px) {
  .post-cta { padding: 1.3rem; }
  .prose h2 { margin-top: 2.1rem; }
}
