/* Tinktory — Custom styles beyond Tailwind */

/* ——————————————————————————————————————
   Prose — styles for rendered markdown
   —————————————————————————————————————— */

.prose {
  color: #5c5850; /* slate-600 */
  line-height: 1.75;
}

.prose h1 {
  font-size: 1.875rem;
  font-weight: 700;
  color: #434038;
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #434038;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #e2e0dc;
}

.prose h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #434038;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.prose p {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
}

.prose a {
  color: #96734a;
  text-decoration: none;
}

.prose a:hover {
  text-decoration: underline;
}

.prose ul,
.prose ol {
  margin-top: 0.75rem;
  margin-bottom: 0.75rem;
  padding-left: 1.5rem;
}

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

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

.prose li {
  margin-top: 0.375rem;
  margin-bottom: 0.375rem;
}

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

.prose strong {
  font-weight: 600;
  color: #434038;
}

.prose hr {
  border: none;
  border-top: 1px solid #e2e0dc;
  margin: 2rem 0;
}

.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
}

.prose thead th {
  text-align: left;
  font-weight: 600;
  color: #434038;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e2e0dc;
  background: #f0efed;
}

.prose tbody td {
  padding: 0.625rem 1rem;
  border-bottom: 1px solid #f0efed;
  vertical-align: top;
}

.prose tbody tr:hover {
  background: #f8f8f7;
}

.prose blockquote {
  border-left: 3px solid #96734a;
  padding-left: 1rem;
  margin: 1rem 0;
  color: #7a766e;
  font-style: italic;
}

.prose code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.85em;
  background: #f0efed;
  padding: 0.125rem 0.375rem;
  border-radius: 0.25rem;
}

/* Hide HTML comments rendered by marked */
.prose .prose-comment {
  display: none;
}

/* First h1 gets no top margin (title) */
.prose > h1:first-child {
  margin-top: 0;
}

/* The "Last updated" line right after the title */
.prose > h1:first-child + p {
  color: #a19d95;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

/* Responsive table wrapper */
.prose .table-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* Smooth scroll for anchor links */
html {
  scroll-behavior: smooth;
}

/* Sticky header shadow transition */
.header-scrolled {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

/* Docs sidebar — mobile overlay */
@media (max-width: 1023px) {
  #docs-sidebar:not(.hidden) {
    position: fixed;
    top: 4rem;
    left: 0;
    bottom: 0;
    z-index: 20;
    width: 16rem;
    background: #f8f8f7;
    border-right: 1px solid #e2e0dc;
    padding: 1.5rem 1rem;
    overflow-y: auto;
    box-shadow: 4px 0 12px rgb(0 0 0 / 0.08);
  }
}
