/* Modern Enterprise Typography & Reset */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #334155;
  background-color: #f8fafc;
  line-height: 1.65;
}

/* Headings */
h1 {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 1.25rem;
}

h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e8f0;
}

h3 {
  font-size: 1.15rem;
  font-weight: 600;
  color: #1e293b;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}

p {
  margin-bottom: 1.25rem;
  color: #475569;
}

a {
  color: #0284c7;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.15s ease;
}

a:hover {
  color: #0369a1;
  text-decoration: underline;
}

/* Ultra-Modern Data Tables */
.prose table,
table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  margin: 2rem 0 !important;
  background: #ffffff !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.05), 0 2px 4px -2px rgb(0 0 0 / 0.05) !important;
  border: 1px solid #e2e8f0 !important;
  font-size: 0.875rem !important;
  display: table !important;
}

.prose thead,
thead {
  background-color: #f8fafc !important;
  border-bottom: 1px solid #e2e8f0 !important;
}

.prose thead th,
thead th {
  background-color: #f8fafc !important;
  color: #1e293b !important;
  font-weight: 700 !important;
  font-size: 0.75rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 14px 18px !important;
  text-align: left !important;
  border-bottom: 1px solid #e2e8f0 !important;
  white-space: nowrap !important;
}

.prose tbody tr,
tbody tr {
  transition: background-color 0.15s ease !important;
  border-bottom: 1px solid #f1f5f9 !important;
}

.prose tbody tr:nth-child(even),
tbody tr:nth-child(even) {
  background-color: #fafbfc !important;
}

.prose tbody tr:hover,
tbody tr:hover {
  background-color: #f0f9ff !important;
}

.prose tbody td,
tbody td {
  padding: 14px 18px !important;
  border-bottom: 1px solid #f1f5f9 !important;
  color: #334155 !important;
  vertical-align: middle !important;
  line-height: 1.55 !important;
}

.prose tbody tr:last-child td,
tbody tr:last-child td {
  border-bottom: none !important;
}

/* Code Pills inside tables & text */
code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  font-size: 0.8rem;
  background-color: #f1f5f9;
  color: #0f172a;
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-weight: 500;
}

td code {
  background-color: #f0f7ff !important;
  color: #0369a1 !important;
  border: 1px solid #bae6fd !important;
  word-break: break-all !important;
  font-size: 0.8rem !important;
}

/* Pre / Code Blocks */
pre {
  background-color: #0f172a !important;
  color: #f8fafc !important;
  border-radius: 10px;
  padding: 1.25rem !important;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid #1e293b;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

pre code {
  background: transparent !important;
  color: inherit !important;
  border: none !important;
  padding: 0 !important;
  font-size: 0.85rem;
}

/* Lists */
ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1.25rem;
  color: #475569;
}

.prose ul {
  list-style: disc outside;
}

.prose ol {
  list-style: decimal outside;
}

li {
  margin-bottom: 0.5rem;
}

li strong {
  color: #0f172a;
}

/* Horizontal Rule */
hr {
  border: 0;
  height: 1px;
  background: #e2e8f0;
  margin: 2.5rem 0;
}

/* Blockquotes / Callouts */
blockquote {
  border-left: 4px solid #0284c7;
  background: #f0f9ff;
  padding: 1rem 1.25rem;
  border-radius: 0 8px 8px 0;
  margin: 1.5rem 0;
  color: #0369a1;
}

blockquote p {
  margin-bottom: 0;
  color: #0369a1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .prose table,
  table {
    display: block !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
  }
}
