/**
 * Typografia treści dokumentów prawnych i artykułów pomocy.
 * Tailwind Play CDN nie ładuje @tailwindcss/typography — klasy prose są martwe;
 * ten arkusz zastępuje je dla kontenera .doc-content.
 */
.doc-content {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: #4b5563;
}

.doc-content > *:first-child {
  margin-top: 0 !important;
}

.doc-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: #111827;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f3f4f6;
  scroll-margin-top: 6rem;
}

@media (min-width: 640px) {
  .doc-content h2 {
    font-size: 1.5rem;
  }
}

.doc-content h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

@media (min-width: 640px) {
  .doc-content h3 {
    font-size: 1.25rem;
  }
}

.doc-content h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.doc-content p {
  margin-top: 0.875rem;
  margin-bottom: 0.875rem;
}

.doc-content a {
  color: #4f46e5;
  font-weight: 600;
  text-decoration: none;
}

.doc-content a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.doc-content strong {
  color: #111827;
  font-weight: 600;
}

.doc-content ul,
.doc-content ol {
  margin-top: 1rem;
  margin-bottom: 1rem;
  padding-left: 1.35rem;
}

.doc-content li {
  margin-top: 0.4rem;
  margin-bottom: 0.4rem;
}

.doc-content ul {
  list-style-type: disc;
}

.doc-content ul li::marker {
  color: #6366f1;
}

.doc-content ol {
  list-style-type: decimal;
}

.doc-content blockquote {
  margin: 1.5rem 0;
  padding: 0.75rem 1.25rem;
  border-left: 4px solid #4f46e5;
  background: rgba(249, 250, 251, 0.95);
  border-radius: 0 0.75rem 0.75rem 0;
  color: #374151;
}

.doc-content hr {
  margin: 2.5rem 0;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.doc-content code {
  font-size: 0.9em;
  font-weight: 500;
  color: #3730a3;
  background: #eef2ff;
  padding: 0.125rem 0.375rem;
  border-radius: 0.375rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.doc-content pre {
  margin: 1.5rem 0;
  padding: 1rem 1.25rem;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 0.75rem;
  border: 1px solid #334155;
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

.doc-content pre code {
  background: transparent;
  color: inherit;
  padding: 0;
  font-size: inherit;
}

.doc-content table {
  width: 100%;
  font-size: 0.875rem;
  border-collapse: collapse;
  margin: 1.5rem 0;
}

.doc-content th {
  background: #f9fafb;
  color: #111827;
  font-weight: 600;
  text-align: left;
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
}

.doc-content td {
  padding: 0.5rem 0.75rem;
  border: 1px solid #e5e7eb;
}

.doc-content figure {
  margin: 2rem 0;
}

.doc-content figcaption {
  text-align: center;
  font-size: 0.875rem;
  color: #6b7280;
  margin-top: 0.5rem;
}

.doc-content dl {
  margin: 1rem 0 1.5rem;
}

.doc-content dt {
  font-weight: 600;
  color: #111827;
  margin-top: 1rem;
}

.doc-content dt:first-child {
  margin-top: 0;
}

.doc-content dd {
  margin: 0.35rem 0 0 0;
  padding-left: 0;
}

.doc-content img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
  margin: 1.5rem 0;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.08);
}
