/* Content page typography — prose styling for generated pages.
   Used by: features, docs, packages, changelog, status */

.content-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 80px;
  line-height: 1.65;
}

/* Headings */

.content-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.content-page h2 {
  font-size: 18px;
  font-weight: 600;
  margin: 48px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.content-page h3 {
  font-size: 15px;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.content-page h4 {
  font-size: 13px;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Paragraphs */

.content-page p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

/* Links */

.content-page a {
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(255, 255, 255, 0.2);
  transition: text-decoration-color 0.15s;
}

.content-page a:hover {
  text-decoration-color: rgba(255, 255, 255, 0.6);
}

/* Lists */

.content-page ul,
.content-page ol {
  margin: 0 0 16px;
  padding-left: 24px;
}

.content-page li {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 6px;
  line-height: 1.55;
}

.content-page li strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* Tables */

.content-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 13px;
}

.content-page thead th {
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.content-page tbody td {
  padding: 8px 12px;
  color: var(--text-secondary);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  vertical-align: top;
}

.content-page tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}

/* Code */

.content-page code {
  font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--text-primary);
}

.content-page pre {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 8px;
  padding: 16px 20px;
  margin: 16px 0 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.content-page pre code {
  background: none;
  padding: 0;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Blockquotes */

.content-page blockquote {
  border-left: 3px solid rgba(255, 255, 255, 0.1);
  margin: 16px 0 24px;
  padding: 8px 16px;
  color: var(--text-tertiary);
  font-size: 13px;
}

.content-page blockquote p {
  color: var(--text-tertiary);
  margin-bottom: 0;
}

/* Horizontal rules */

.content-page hr {
  border: none;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin: 48px 0;
}

/* Footer */

.content-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  font-size: 12px;
  color: var(--text-quaternary);
}

.content-footer a {
  color: var(--text-quaternary);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color 0.15s;
}

.content-footer a:hover {
  color: var(--text-tertiary);
}

/* Responsive */

@media (max-width: 600px) {
  .content-page {
    padding: 24px 16px 60px;
  }

  .content-page h1 {
    font-size: 22px;
  }

  .content-page table {
    font-size: 12px;
  }

  .content-page thead th,
  .content-page tbody td {
    padding: 6px 8px;
  }
}
