/* Documentation prose styles */

/* Prose base styles (for rendered markdown content) */
.docs-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #374151;
}

html.dark .docs-content {
    color: #d1d5db;
}

.docs-content h1 {
    font-size: 2.25rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 1rem;
    line-height: 1.2;
    color: #111827;
}

html.dark .docs-content h1 {
    color: #f3f4f6;
}

.docs-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e5e7eb;
    color: #111827;
}

html.dark .docs-content h2 {
    color: #f3f4f6;
    border-bottom-color: #374151;
}

.docs-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

html.dark .docs-content h3 {
    color: #f3f4f6;
}

.docs-content h4, .docs-content h5, .docs-content h6 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
    color: #111827;
}

html.dark .docs-content h4, html.dark .docs-content h5, html.dark .docs-content h6 {
    color: #f3f4f6;
}

.docs-content p {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
}

.docs-content a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 2px;
}

html.dark .docs-content a {
    color: #60a5fa;
}

.docs-content a:hover {
    color: #1d4ed8;
}

html.dark .docs-content a:hover {
    color: #93c5fd;
}

.docs-content strong {
    font-weight: 600;
    color: #111827;
}

html.dark .docs-content strong {
    color: #f3f4f6;
}

/* Code */
.docs-content code {
    font-family: 'Cascadia Code', 'Fira Code', Consolas, Monaco, 'Andale Mono', monospace;
    font-size: 0.875em;
    background-color: #f3f4f6;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    color: #1f2937;
}

html.dark .docs-content code {
    background-color: #1f2937;
    color: #e5e7eb;
}

.docs-content pre {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.7;
}

html.dark .docs-content pre {
    background-color: #1f2937;
    border-color: #374151;
}

.docs-content pre code {
    background: none;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
    color: inherit;
}

/* Lists */
.docs-content ul, .docs-content ol {
    margin-top: 0.75rem;
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
}

.docs-content ul {
    list-style-type: disc;
}

.docs-content ol {
    list-style-type: decimal;
}

.docs-content li {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

.docs-content li > ul, .docs-content li > ol {
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
}

/* Tables */
.docs-content table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    margin-bottom: 1rem;
    font-size: 0.875rem;
}

.docs-content thead th {
    background-color: #f9fafb;
    font-weight: 600;
    text-align: left;
    padding: 0.75rem 1rem;
    border-bottom: 2px solid #e5e7eb;
    color: #374151;
}

html.dark .docs-content thead th {
    background-color: #1f2937;
    border-bottom-color: #374151;
    color: #d1d5db;
}

.docs-content tbody td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #e5e7eb;
}

html.dark .docs-content tbody td {
    border-bottom-color: #374151;
}

.docs-content tbody tr:hover {
    background-color: #f9fafb;
}

html.dark .docs-content tbody tr:hover {
    background-color: rgba(55, 65, 81, 0.5);
}

/* Blockquote / Notes */
.docs-content blockquote {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-left: 4px solid #3b82f6;
    background-color: #eff6ff;
    color: #1e40af;
    border-radius: 0 0.375rem 0.375rem 0;
}

html.dark .docs-content blockquote {
    background-color: rgba(30, 58, 138, 0.2);
    border-left-color: #60a5fa;
    color: #93c5fd;
}

.docs-content blockquote p {
    margin: 0;
}

/* Horizontal rule */
.docs-content hr {
    margin-top: 2rem;
    margin-bottom: 2rem;
    border: none;
    border-top: 1px solid #e5e7eb;
}

html.dark .docs-content hr {
    border-top-color: #374151;
}

/* Images */
.docs-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Task lists */
.docs-content input[type="checkbox"] {
    margin-right: 0.5rem;
}

/* ========================================================
   LIGHT DESIGN SYSTEM PROSE OVERRIDES
   ======================================================== */
.docs-content {
    color: var(--f-text-muted) !important;
    font-feature-settings: "cv01" on, "cv05" on, "cv09" on, "cv11" on, "ss03" on, "ss07" on !important;
}

.docs-content h1 {
    font-size: 2rem !important;
    line-height: 1.2 !important;
    letter-spacing: -0.5px !important;
    font-weight: 700 !important;
    color: var(--f-text) !important;
    margin-bottom: 16px !important;
}
.docs-content h2 {
    font-size: 1.375rem !important;
    letter-spacing: -0.3px !important;
    line-height: 1.3 !important;
    font-weight: 600 !important;
    color: var(--f-text) !important;
    border-bottom: 1px solid var(--f-border) !important;
}
.docs-content h3 {
    font-size: 1.125rem !important;
    font-weight: 600 !important;
    letter-spacing: -0.2px !important;
    line-height: 1.4 !important;
    color: var(--f-text) !important;
}
.docs-content h4, .docs-content h5, .docs-content h6 {
    font-size: 1rem !important;
    font-weight: 600 !important;
    color: var(--f-text) !important;
}

.docs-content a {
    color: var(--f-blue) !important;
    text-decoration-color: rgba(0, 153, 255, 0.3) !important;
}
.docs-content a:hover {
    color: var(--f-blue-dark) !important;
}

.docs-content strong {
    color: var(--f-text) !important;
    font-weight: 600 !important;
}

.docs-content pre {
    background-color: #f8fafc !important;
    border: 1px solid var(--f-border) !important;
    box-shadow: none !important;
    border-radius: 10px !important;
}

.docs-content code {
    background-color: var(--f-bg-muted) !important;
    color: #c7254e !important;
    border: 1px solid var(--f-border) !important;
    font-size: 0.85em !important;
}
.docs-content pre code {
    background: none !important;
    border: none !important;
    color: inherit !important;
}

.docs-content thead th {
    background-color: var(--f-bg-subtle) !important;
    color: var(--f-text) !important;
    border-bottom: 2px solid var(--f-border) !important;
}
.docs-content tbody td {
    border-bottom: 1px solid var(--f-border) !important;
    color: var(--f-text-muted) !important;
}
.docs-content tbody tr:hover {
    background-color: var(--f-bg-subtle) !important;
}

.docs-content blockquote {
    border-left: 4px solid var(--f-blue) !important;
    background-color: var(--f-blue-light) !important;
    color: var(--f-text-muted) !important;
    border-radius: 0 8px 8px 0 !important;
}

.docs-content hr {
    border-top: 1px solid var(--f-border) !important;
}

.docs-content img {
    border-radius: 10px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08), 0 0 0 1px var(--f-border) !important;
}
