[x-cloak] { display: none !important; }
/* Custom styles for the cms */

/* Tailwind Typography plugin styles for cms content */
.prose {
    max-width: 65ch;
    color: #374151;
}

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

.prose a {
    color: #4f46e5;
    text-decoration: underline;
    font-weight: 500;
}

.prose a:hover {
    color: #4338ca;
}

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

.prose h1 {
    color: #111827;
    font-weight: 800;
    font-size: 2.25em;
    margin-top: 0;
    margin-bottom: 0.8888889em;
    line-height: 1.1111111;
}

.prose h2 {
    color: #111827;
    font-weight: 700;
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
}

.prose h3 {
    color: #111827;
    font-weight: 600;
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.6;
}

.prose h4 {
    color: #111827;
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.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: none;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-left: 0;
}

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

.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;
}

/* Line clamp utility for post excerpts */
.line-clamp-1 {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Custom EasyMDE editor styles */
.editor-toolbar.fullscreen {
    z-index: 100;
}

.CodeMirror-fullscreen {
    z-index: 99;
}

.editor-preview-side {
    z-index: 98;
}

/* Custom file input styling */
input[type="file"] {
    position: relative;
}

input[type="file"]::file-selector-button {
    cursor: pointer;
}

/* Highlight.js theme override */
.hljs {
    background: #1f2937 !important;
    border-radius: 0.375rem;
}

/* Content Body Styles for CMS HTML Content */
.content-body {
    max-width: 65ch;
    margin-left: auto;
    margin-right: auto;
    color: #23272f;
    font-size: 1.05rem;
    line-height: 1.7;
    word-break: break-word;
}

.content-body h1,
.content-body h2,
.content-body h3,
.content-body h4 {
    color: #18181b;
    font-family: inherit;
    font-weight: 700;
    line-height: 1.2;
    margin-top: 2em;
    margin-bottom: 0.7em;
}

.content-body h1 {
    font-size: 2.2em;
    font-weight: 800;
    margin-top: 0;
}

.content-body h2 {
    font-size: 1.6em;
    font-weight: 700;
}

.content-body h3 {
    font-size: 1.25em;
    font-weight: 600;
}

.content-body h4 {
    font-size: 1.1em;
    font-weight: 600;
}

.content-body p {
    margin-top: 1em;
    margin-bottom: 1em;
}

.content-body ol {
    margin-top: 1.2em;
    margin-bottom: 1.2em;
    padding-left: 2em;
}

.content-body ul {
    list-style-type: none;
    margin-top: 1.2em;
    margin-bottom: 1.2em;
    padding-left: 0;
}

.content-body ul ul {
    list-style-type: disc;
    padding-left: 2em;
}

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

.content-body li {
    margin-top: 0.4em;
    margin-bottom: 0.4em;
}

.content-body a {
    color: #2563eb;
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.15s;
}

.content-body a:hover {
    color: #1d4ed8;
}

.content-body strong {
    font-weight: 700;
    color: #18181b;
}

.content-body em {
    font-style: italic;
}

.content-body blockquote {
    border-left: 4px solid #e5e7eb;
    padding-left: 1em;
    color: #52525b;
    font-style: italic;
    background: #f8fafc;
    margin: 1.5em 0;
}

.content-body pre {
    background: #1e293b;
    color: #f1f5f9;
    font-size: 0.97em;
    border-radius: 0.375em;
    padding: 1em 1.2em;
    overflow-x: auto;
    margin: 1.5em 0;
}

.content-body code {
    background: #f3f4f6;
    color: #be185d;
    font-size: 0.97em;
    border-radius: 0.3em;
    padding: 0.2em 0.5em;
    font-family: 'Fira Mono', 'Consolas', 'Monaco', monospace;
}

.content-body pre code {
    background: none;
    color: inherit;
    padding: 0;
    border-radius: 0;
    font-size: inherit;
}

.content-body img {
    max-width: 100%;
    display: block;
    margin: 2em auto;
    border-radius: 0.3em;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
