/*
Theme Name: Camelot Flows
Description: WordPress conversion of Camelot Flows
Version: 1.1.0
Text Domain: camelot-flows
*/

/* ================================================================
   Camelot Flows — .prose-camelot blog post typography
   Applied in single.php: <div class="max-w-3xl mx-auto prose-camelot">
   Covers: headings, paragraphs, tables, lists, code, blockquote, HR
   ================================================================ */

.prose-camelot {
    color: #cbd5e1;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/* ── Headings ──────────────────────────────────────────────────── */
.prose-camelot h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.prose-camelot h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #c7d2fe;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose-camelot h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ── Body text ─────────────────────────────────────────────────── */
.prose-camelot p {
    margin-bottom: 1.25rem;
}

.prose-camelot strong,
.prose-camelot b {
    font-weight: 700;
    color: #e2e8f0;
}

.prose-camelot em,
.prose-camelot i {
    font-style: italic;
    color: #c7d2fe;
}

/* ── Links ─────────────────────────────────────────────────────── */
.prose-camelot a {
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.prose-camelot a:hover {
    color: #a5b4fc;
}

/* ── Lists ─────────────────────────────────────────────────────── */
.prose-camelot ul {
    list-style: disc;
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}

.prose-camelot ol {
    list-style: decimal;
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}

.prose-camelot li {
    margin-bottom: 0.45rem;
    padding-left: 0.25rem;
}

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

/* ── Tables ────────────────────────────────────────────────────── */
.prose-camelot table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.9375rem;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 8px;
    overflow: hidden;
}

.prose-camelot thead {
    background: rgba(99, 102, 241, 0.15);
}

.prose-camelot th {
    text-align: left;
    padding: 0.75rem 1.1rem;
    font-weight: 600;
    color: #c7d2fe;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.prose-camelot td {
    padding: 0.65rem 1.1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    color: #cbd5e1;
    vertical-align: top;
}

.prose-camelot tbody tr:last-child td {
    border-bottom: none;
}

.prose-camelot tbody tr:hover {
    background: rgba(99, 102, 241, 0.06);
}

/* ── Blockquote ────────────────────────────────────────────────── */
.prose-camelot blockquote {
    border-left: 3px solid #6366f1;
    padding: 0.75rem 0 0.75rem 1.25rem;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-style: italic;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 6px 6px 0;
}

.prose-camelot blockquote p {
    margin-bottom: 0;
}

/* ── Code ──────────────────────────────────────────────────────── */
.prose-camelot code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.prose-camelot pre {
    background: rgba(5, 5, 8, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.75rem 0;
    line-height: 1.6;
}

.prose-camelot pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: #e2e8f0;
}

/* ── HR ────────────────────────────────────────────────────────── */
.prose-camelot hr {
    border: none;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin: 2.25rem 0;
}

/* ── Images ────────────────────────────────────────────────────── */
.prose-camelot img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

.prose-camelot figcaption {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
}

/* ── First child spacing reset ─────────────────────────────────── */
.prose-camelot > *:first-child {
    margin-top: 0;
}

.prose-camelot > *:last-child {
    margin-bottom: 0;
}

/* ================================================================
   Camelot Flows — .prose-camelot blog post typography
   Applied in single.php: <div class="max-w-3xl mx-auto prose-camelot">
   Covers: headings, paragraphs, tables, lists, code, blockquote, HR
   ================================================================ */

.prose-camelot {
    color: #cbd5e1;
    line-height: 1.8;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
}

/* ── Headings ──────────────────────────────────────────────────── */
.prose-camelot h2 {
    font-family: 'Fraunces', serif;
    font-size: 1.7rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    line-height: 1.3;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
}

.prose-camelot h3 {
    font-family: 'Fraunces', serif;
    font-size: 1.3rem;
    font-weight: 600;
    color: #c7d2fe;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.prose-camelot h4 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #a5b4fc;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

/* ── Body text ─────────────────────────────────────────────────── */
.prose-camelot p {
    margin-bottom: 1.25rem;
}

.prose-camelot strong,
.prose-camelot b {
    font-weight: 700;
    color: #e2e8f0;
}

.prose-camelot em,
.prose-camelot i {
    font-style: italic;
    color: #c7d2fe;
}

/* ── Links ─────────────────────────────────────────────────────── */
.prose-camelot a {
    color: #818cf8;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.prose-camelot a:hover {
    color: #a5b4fc;
}

/* ── Lists ─────────────────────────────────────────────────────── */
.prose-camelot ul {
    list-style: disc;
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}

.prose-camelot ol {
    list-style: decimal;
    padding-left: 1.75rem;
    margin-bottom: 1.25rem;
}

.prose-camelot li {
    margin-bottom: 0.45rem;
    padding-left: 0.25rem;
}

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

/* ── Tables ────────────────────────────────────────────────────── */
.prose-camelot table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75rem 0;
    font-size: 0.9375rem;
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 8px;
    overflow: hidden;
}

.prose-camelot thead {
    background: rgba(99, 102, 241, 0.15);
}

.prose-camelot th {
    text-align: left;
    padding: 0.75rem 1.1rem;
    font-weight: 600;
    color: #c7d2fe;
    border-bottom: 1px solid rgba(99, 102, 241, 0.3);
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.prose-camelot td {
    padding: 0.65rem 1.1rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
    color: #cbd5e1;
    vertical-align: top;
}

.prose-camelot tbody tr:last-child td {
    border-bottom: none;
}

.prose-camelot tbody tr:hover {
    background: rgba(99, 102, 241, 0.06);
}

/* ── Blockquote ────────────────────────────────────────────────── */
.prose-camelot blockquote {
    border-left: 3px solid #6366f1;
    padding: 0.75rem 0 0.75rem 1.25rem;
    margin: 1.5rem 0;
    color: #94a3b8;
    font-style: italic;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 0 6px 6px 0;
}

.prose-camelot blockquote p {
    margin-bottom: 0;
}

/* ── Code ──────────────────────────────────────────────────────── */
.prose-camelot code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.875em;
    background: rgba(99, 102, 241, 0.15);
    color: #a5b4fc;
    padding: 0.15em 0.45em;
    border-radius: 4px;
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.prose-camelot pre {
    background: rgba(5, 5, 8, 0.85);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 8px;
    padding: 1.25rem 1.5rem;
    overflow-x: auto;
    margin: 1.75rem 0;
    line-height: 1.6;
}

.prose-camelot pre code {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.875rem;
    color: #e2e8f0;
}

/* ── HR ────────────────────────────────────────────────────────── */
.prose-camelot hr {
    border: none;
    border-top: 1px solid rgba(99, 102, 241, 0.2);
    margin: 2.25rem 0;
}

/* ── Images ────────────────────────────────────────────────────── */
.prose-camelot img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 1.5rem 0;
    display: block;
}

.prose-camelot figcaption {
    font-size: 0.875rem;
    color: #64748b;
    text-align: center;
    margin-top: -0.75rem;
    margin-bottom: 1.25rem;
}

/* ── First child spacing reset ─────────────────────────────────── */
.prose-camelot > *:first-child {
    margin-top: 0;
}

.prose-camelot > *:last-child {
    margin-bottom: 0;
}

/* ================================================================
   Blog theme-aware colors — extracted from WP theme camelot.css v1.6.0
   (blog markup uses night-design Tailwind classes; these remap for cozy)
   ================================================================ */


/* ================================================================
   Blog single.php — theme-aware text colors
   single.php uses hardcoded Tailwind text-white / text-slate-*
   which are invisible on the cozy (cream) background.
   These rules fix readability for cozy; night is already fine.
   ================================================================ */

/* Post title — replaces text-white on h1 */
.cf-post-title { color: var(--text, #171715); }


[data-theme="night"] .cf-post-title { color: #f1f5f9; }



/* Post excerpt strip — replaces text-slate-400 */
.cf-excerpt { color: var(--text-soft, #302f2b) !important; }


[data-theme="night"] .cf-excerpt { color: #94a3b8 !important; }



/* prose-camelot — blog body content wrapper */
.prose-camelot { color: var(--text-soft, #302f2b); }


.prose-camelot p,
.prose-camelot li,
.prose-camelot td,
.prose-camelot blockquote { color: var(--text-soft, #302f2b); }


.prose-camelot h2,
.prose-camelot h3,
.prose-camelot h4 { color: var(--text, #171715); }


.prose-camelot strong { color: var(--text, #171715); }


.prose-camelot a { color: var(--cobalt, #3f5d8d); }


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



[data-theme="night"] .prose-camelot { color: #cbd5e1; }


[data-theme="night"] .prose-camelot p,
[data-theme="night"] .prose-camelot li,
[data-theme="night"] .prose-camelot td,
[data-theme="night"] .prose-camelot blockquote { color: #cbd5e1; }


[data-theme="night"] .prose-camelot h2,
[data-theme="night"] .prose-camelot h3,
[data-theme="night"] .prose-camelot h4 { color: #f1f5f9; }


[data-theme="night"] .prose-camelot strong { color: #f8fafc; }


[data-theme="night"] .prose-camelot a { color: #818cf8; }



/* Table in prose-camelot */
.prose-camelot table { border-collapse: collapse; width: 100%; }


.prose-camelot table th {
    background: var(--cobalt, #3f5d8d);
    color: #ffffff;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1rem;
    text-align: left;
}


.prose-camelot table td {
    color: var(--text-soft, #302f2b);
    padding: 0.65rem 1rem;
    border-bottom: 1px solid var(--line, rgba(26,26,24,0.1));
}


[data-theme="night"] .prose-camelot table th {
    background: rgba(99,102,241,0.25);
    color: #e2e8f0;
}


[data-theme="night"] .prose-camelot table td {
    color: #cbd5e1;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}



/* CTA button — cozy: solid indigo so text is readable */
[data-theme="cozy"] .cf-blog-cta-btn {
    background: rgba(79,70,229,0.85) !important;
    color: #ffffff !important;
    border-color: rgba(79,70,229,0.9) !important;
}


[data-theme="cozy"] .cf-blog-cta-btn:hover {
    background: rgba(79,70,229,1) !important;
}