/* custom-styles.css */

.prose h1:not(.not-prose *), .content-body h1:not(.not-prose *) {
  color: #1f2937;
  font-weight: 900;
  font-family: "Satoshi", sans-serif;
  font-size: 3rem;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.prose h2:not(.not-prose *), .content-body h2:not(.not-prose *) {
  color: #1f2937;
  font-weight: 800;
  font-family: "Satoshi", sans-serif;
  font-size: 2.25rem;
  margin-bottom: 1.5rem;
  margin-top: 2.5rem;
  line-height: 1.3;
}

.prose h3:not(.not-prose *), .content-body h3:not(.not-prose *) {
  color: #1f2937;
  font-weight: 800;
  font-family: "Satoshi", sans-serif;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  margin-top: 2rem;
  line-height: 1.4;
}

.prose h4:not(.not-prose *), .content-body h4:not(.not-prose *) {
  color: #1f2937;
  font-weight: 700;
  font-family: "Satoshi", sans-serif;
  font-size: 1.5rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
  line-height: 1.4;
}

.prose h5:not(.not-prose *), .content-body h5:not(.not-prose *) {
  color: #1f2937;
  font-weight: 700;
  font-family: "Satoshi", sans-serif;
  font-size: 1.25rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.prose h6:not(.not-prose *), .content-body h6:not(.not-prose *) {
  color: #1f2937;
  font-weight: 700;
  font-family: "Satoshi", sans-serif;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  margin-top: 1.5rem;
}

.prose p:not(.not-prose *), .content-body p:not(.not-prose *) {
  font-size: 1.125rem;
  color: #4b5563;
  font-weight: 400;
  margin-bottom: 1.5rem;
  margin-top: 0;
  line-height: 1.75;
}

.prose > p:first-child, .content-body > p:first-child {
  margin-top: 0;
}

/* Tailwind Typography plugin styles for cms content (ported from styles.css) */
.prose {
    max-width: 65ch;
    color: #374151;
    font-size: 1.125rem;
    line-height: 1.75;
}

.prose [class~="lead"] {
    color: #4b5563;
    font-size: 1.25em;
    line-height: 1.6;
    margin-top: 1.2em;
    margin-bottom: 1.2em;
}

/* Standard links (exclude buttons using Tailwind utility classes) */
.prose a:not([class*="bg-"]):not([class*="text-white"]):not([class*="btn"]) {
    color: #4f46e5;
    text-decoration: underline;
    font-weight: 500;
}

.prose a:not([class*="bg-"]):not([class*="text-white"]):not([class*="btn"]):hover {
    color: #4338ca;
}

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

.prose blockquote {
    font-weight: 500;
    font-style: italic;
    color: #111827;
    border-left-width: 0.25rem;
    border-left-color: #e5e7eb;
    quotes: "\201C""\201D""\2018""\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-left: 1em;
}

.prose blockquote p:first-of-type::before {
    content: open-quote;
}

.prose blockquote p:last-of-type::after {
    content: close-quote;
}

.prose code {
    color: #111827;
    font-weight: 600;
    font-size: 0.875em;
    background-color: #f3f4f6;
    padding: 0.25em 0.5em;
    border-radius: 0.375rem;
}

.prose pre {
    color: #e5e7eb;
    background-color: #1f2937;
    overflow-x: auto;
    font-size: 0.875em;
    line-height: 1.7142857;
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
    border-radius: 0.375rem;
    padding: 0.8571429em 1.1428571em;
}

.prose pre code {
    background-color: transparent;
    border-width: 0;
    border-radius: 0;
    padding: 0;
    font-weight: 400;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.prose img {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose ul {
    list-style-type: disc;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose ul ul {
    list-style-type: circle;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose ol {
    list-style-type: decimal;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 1.625em;
}

.prose li {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
    padding-left: 0.375em;
}

.prose li::marker {
    color: #9ca3af;
}

.prose > ul > li p {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}


/* ── Callout / tip boxes (bare <div> elements inside prose) ── */
.prose > div,
.content-body > div {
    margin-top: 1.75em;
    margin-bottom: 1.75em;
}

/* ── Mermaid diagram container ── */
.prose .mermaid,
.content-body .mermaid {
    margin-top: 2em;
    margin-bottom: 2em;
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.75rem 1.25rem 1.5rem;
    overflow-x: auto;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04), 0 4px 16px rgba(124,58,237,0.06);
    display: flex;
    justify-content: center;
}

.prose .mermaid svg,
.content-body .mermaid svg {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
}

/* ── figcaption after a diagram ── */
.prose figcaption,
.content-body figcaption {
    text-align: center;
    font-size: 0.82em;
    color: #9ca3af;
    margin-top: -1.25em;
    margin-bottom: 1.75em;
    letter-spacing: 0.02em;
}
