/*
 * Additions to the approved theme (style.css) for pages the static theme did not have:
 * the body of a post. Same tokens as style.css.
 */

/* Body of a post: rich text from the admin editor. Tailwind's preflight strips heading,
   list and spacing defaults, so the article restores them here. */
.post-content {
  color: var(--color-text-secondary);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}

.post-content > * + * {
  margin-top: 1.1em;
}

.post-content h2,
.post-content h3,
.post-content h4 {
  color: var(--color-heading);
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.3;
  margin-top: 1.8em;
}

.post-content h2 { font-size: 1.6rem; }
.post-content h3 { font-size: 1.3rem; }
.post-content h4 { font-size: 1.1rem; }

.post-content a {
  color: var(--color-primary);
  text-decoration: underline;
}

.post-content ul,
.post-content ol {
  padding-left: 1.5em;
}

.post-content ul { list-style: disc; }
.post-content ol { list-style: decimal; }

.post-content li + li {
  margin-top: 0.4em;
}

.post-content blockquote {
  border-left: 4px solid var(--color-secondary);
  background: var(--color-primary-light);
  padding: 0.9em 1.2em;
  border-radius: 0 12px 12px 0;
  color: var(--color-heading);
}

.post-content img {
  border-radius: 14px;
  height: auto;
  max-width: 100%;
}

.post-content figcaption {
  color: var(--color-text-muted);
  font-size: 0.85rem;
  margin-top: 0.5em;
  text-align: center;
}

.post-content table {
  border-collapse: collapse;
  width: 100%;
}

.post-content th,
.post-content td {
  border: 1px solid var(--color-border);
  padding: 0.6em 0.8em;
  text-align: left;
}

.post-content iframe {
  aspect-ratio: 16 / 9;
  border: 0;
  height: auto;
  width: 100%;
}
