/* ==========================================================================
   Insights blog — the only NEW CSS in this theme.
   Loaded on blog views only (see dpl_enqueue_assets()).

   css/style.css is byte-identical to the static site and must stay that way,
   so everything here is additive and uses the same design tokens (:root vars),
   spacing rhythm and RTL convention (html[dir="rtl"] overrides) as the rest of
   the system. No token is redefined.
   ========================================================================== */

/* --- Post cards on the index ---------------------------------------------- */

.post-card-title {
  font-size: 1.15rem;
  line-height: 1.35;
  margin-bottom: 8px;
}
.post-card-title a { color: var(--text); text-decoration: none; }
.post-card-title a:hover { color: var(--accent-ink); }

.post-meta {
  color: var(--text-dim);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
}

/* --- Article measure ------------------------------------------------------ */

.post-wrap {
  max-width: 760px;
  margin-inline: auto;
}

.post-eyebrow { margin-bottom: 18px; }

.post-title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  line-height: 1.15;
  margin-bottom: 16px;
}

/* --- Article typography --------------------------------------------------- */

.post-body {
  color: var(--text-dim);
  font-size: 1.06rem;
  line-height: 1.8;
}
.post-body > * + * { margin-top: 1.15em; }

.post-body h2,
.post-body h3,
.post-body h4 {
  color: var(--text);
  line-height: 1.25;
  margin-top: 1.9em;
  margin-bottom: 0.55em;
}
.post-body h2 { font-size: 1.65rem; }
.post-body h3 { font-size: 1.3rem; }
.post-body h4 { font-size: 1.08rem; }

.post-body a {
  color: var(--accent-ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.post-body a:hover { text-decoration-thickness: 2px; }

.post-body strong { color: var(--text); font-weight: 600; }

.post-body ul,
.post-body ol { padding-inline-start: 1.35em; }
.post-body li + li { margin-top: 0.5em; }
.post-body li::marker { color: var(--accent); }

.post-body blockquote {
  margin-inline: 0;
  padding: 4px 0 4px 20px;
  border-inline-start: 2px solid var(--accent);
  color: var(--text);
  font-size: 1.1rem;
}
html[dir="rtl"] .post-body blockquote { padding: 4px 20px 4px 0; }

.post-body :is(img, figure, iframe, video) {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
}
.post-body figcaption {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-top: 10px;
  text-align: center;
}

.post-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
}
.post-body pre {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  overflow-x: auto;
  line-height: 1.6;
}
.post-body pre code { background: none; border: 0; padding: 0; }

.post-body hr {
  border: 0;
  height: 1px;
  background: var(--border);
  margin: 2.4em 0;
}

.post-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
.post-body th,
.post-body td {
  border: 1px solid var(--border);
  padding: 10px 12px;
  text-align: start;
}
.post-body th { color: var(--text); background: var(--bg-soft); font-weight: 600; }

.post-pagelinks { color: var(--text-dim); font-size: 0.9rem; }

/* --- Pagination ----------------------------------------------------------- */
/* Styled as .btn.btn-ghost without needing the class on generated markup, so
   paginate_links() output can stay untouched. */

.post-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 56px;
}
.post-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-dim);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  background: transparent;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease), background 0.25s var(--ease);
}
.post-pagination .page-numbers:hover {
  border-color: var(--border-hover);
  color: var(--text);
  background: var(--surface);
}
.post-pagination .page-numbers.current {
  border-color: var(--accent);
  color: var(--accent-ink);
  background: var(--surface);
}
.post-pagination .page-numbers.dots {
  border-color: transparent;
  background: none;
}

@media (max-width: 600px) {
  .post-body { font-size: 1rem; }
  .post-pagination { margin-top: 40px; }
}
