/* Content Typography - Ported from Wiki.js theme */

.entry-content {
  font-size: 1rem;
  line-height: var(--doc-line-height);
  color: var(--doc-text);
  word-wrap: break-word;
  overflow-wrap: break-word;
}

/* ---- Links ---- */

.entry-content a {
  color: var(--doc-link);
  text-decoration: none;
  font-weight: 500;
}

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

/* ---- Headings ---- */

.entry-content h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 1rem;
  color: var(--doc-text);
  line-height: 1.25;
}

.entry-content h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--doc-border);
  color: var(--doc-text);
  line-height: 1.3;
}

.entry-content h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--doc-text);
}

.entry-content h4 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
  color: var(--doc-text-muted);
}

.entry-content h5,
.entry-content h6 {
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  margin-bottom: 0.5rem;
  color: var(--doc-text-muted);
}

/* Heading anchors */
.entry-content h2[id],
.entry-content h3[id],
.entry-content h4[id] {
  scroll-margin-top: calc(var(--doc-header-height) + 1rem);
}

/* ---- Paragraphs ---- */

.entry-content p {
  margin-bottom: 1rem;
  line-height: var(--doc-line-height);
}

/* ---- Lists ---- */

.entry-content ul,
.entry-content ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
  line-height: var(--doc-line-height);
}

.entry-content li {
  margin-bottom: 0.25rem;
}

.entry-content li > ul,
.entry-content li > ol {
  margin-top: 0.25rem;
  margin-bottom: 0;
}

/* ---- Images ---- */

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--doc-radius);
}

.entry-content figure {
  margin: 1.5rem 0;
}

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

/* ---- Horizontal Rules ---- */

.entry-content hr {
  border: none;
  height: 1px;
  background-color: var(--doc-border);
  margin: 2rem 0;
}

/* ---- Docs Homepage Grid ---- */

.docs-hero {
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--doc-border);
}

.docs-hero h2 {
  border-bottom: none;
  padding-bottom: 0;
  margin-top: 0;
}

.docs-hero p {
  font-size: 1.05rem;
  color: var(--doc-text-muted);
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.docs-card {
  border: 1px solid var(--doc-border);
  border-radius: var(--doc-radius);
  padding: 1.25rem 1.5rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.docs-card:hover {
  border-color: var(--doc-primary);
  box-shadow: 0 2px 8px rgba(0, 68, 68, 0.08);
}

.docs-card h3 {
  font-size: 1.1rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.docs-card > p {
  font-size: 0.9rem;
  color: var(--doc-text-muted);
  margin-bottom: 0.75rem;
}

.docs-card ul {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.docs-card li {
  font-size: 0.9rem;
}

/* ---- Page Title ---- */

.page-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--doc-text);
  margin-bottom: 0.5rem;
  line-height: 1.25;
}
