/* ============================================================
   ODS Prose — rich article content styling (plain CSS, no build)
   Styles whatever the admin writes in the WP editor: paragraphs,
   headings, lists, blockquotes, tables, images, code, links.
   ============================================================ */

.ods-prose {
    color: #374151;
    line-height: 1.75;
    font-size: 1rem;
    word-wrap: break-word;
}

.ods-prose > *:first-child { margin-top: 0 !important; }
.ods-prose > *:last-child { margin-bottom: 0 !important; }

/* Paragraphs */
.ods-prose p {
    margin: 0 0 1.25em;
    line-height: 1.8;
}

/* Headings */
.ods-prose h1,
.ods-prose h2,
.ods-prose h3,
.ods-prose h4,
.ods-prose h5,
.ods-prose h6 {
    color: #111827;
    font-weight: 700;
    line-height: 1.3;
    margin: 2em 0 0.75em;
}

.ods-prose h1 { font-size: 2em; }
.ods-prose h2 {
    font-size: 1.55em;
    padding-bottom: 0.35em;
    border-bottom: 1px solid #e5e7eb;
}
.ods-prose h3 { font-size: 1.28em; color: #1d4ed8; }
.ods-prose h4 { font-size: 1.14em; color: #374151; }
.ods-prose h5 { font-size: 1em; color: #4b5563; }
.ods-prose h6 { font-size: 0.92em; color: #6b7280; text-transform: uppercase; letter-spacing: 0.03em; }

/* Lists */
.ods-prose ul {
    list-style: none;
    margin: 0 0 1.25em;
    padding: 0;
}
.ods-prose ul > li {
    position: relative;
    padding-left: 1.6em;
    margin-bottom: 0.5em;
}
.ods-prose ul > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 0.55em;
    height: 0.55em;
    border-radius: 9999px;
    background: linear-gradient(135deg, #0d9488, #2563eb);
}

.ods-prose ol {
    list-style: none;
    counter-reset: ods-ol;
    margin: 0 0 1.25em;
    padding: 0;
}
.ods-prose ol > li {
    position: relative;
    counter-increment: ods-ol;
    padding-left: 2.1em;
    margin-bottom: 0.6em;
}
.ods-prose ol > li::before {
    content: counter(ods-ol);
    position: absolute;
    left: 0;
    top: 0.15em;
    width: 1.45em;
    height: 1.45em;
    border-radius: 9999px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: #fff;
    font-size: 0.72em;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Nested lists */
.ods-prose li > ul,
.ods-prose li > ol { margin: 0.5em 0 0.25em; }

/* Blockquote */
.ods-prose blockquote {
    margin: 1.75em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #0d9488;
    background: linear-gradient(135deg, rgba(13, 148, 136, 0.06), rgba(37, 99, 235, 0.06));
    border-radius: 0 0.75rem 0.75rem 0;
    color: #334155;
    font-style: italic;
}
.ods-prose blockquote p:last-child { margin-bottom: 0; }

/* Links */
.ods-prose a {
    color: #0d9488;
    font-weight: 500;
    text-decoration: underline;
    text-decoration-color: rgba(13, 148, 136, 0.4);
    text-underline-offset: 2px;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}
.ods-prose a:hover {
    color: #0f766e;
    text-decoration-color: #0f766e;
}

/* Images / video / media */
.ods-prose img,
.ods-prose video,
.ods-prose iframe {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1.5em 0;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.15);
}
.ods-prose figure { margin: 1.75em 0; }
.ods-prose figcaption {
    text-align: center;
    font-size: 0.85em;
    color: #6b7280;
    margin-top: 0.6em;
}

/* Tables */
.ods-prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.75em 0;
    font-size: 0.95em;
    display: block;
    overflow-x: auto;
}
.ods-prose thead th {
    background: linear-gradient(135deg, #f0fdfa, #eff6ff);
    color: #134e4a;
    font-weight: 700;
    text-align: left;
    padding: 0.7em 1em;
    border-bottom: 2px solid #99f6e4;
}
.ods-prose tbody td {
    padding: 0.65em 1em;
    border-bottom: 1px solid #e5e7eb;
    color: #374151;
}
.ods-prose tbody tr:hover { background: #f8fafc; }

/* Inline code + code blocks */
.ods-prose code {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.35rem;
    padding: 0.15em 0.45em;
    font-size: 0.875em;
    color: #be185d;
}
.ods-prose pre {
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 0.75rem;
    padding: 1.25em 1.5em;
    overflow-x: auto;
    margin: 1.75em 0;
}
.ods-prose pre code {
    background: transparent;
    border: 0;
    padding: 0;
    color: inherit;
    font-size: 0.875em;
}

/* Horizontal rule */
.ods-prose hr {
    border: 0;
    height: 2px;
    margin: 2.5em 0;
    background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

/* Strong / emphasis */
.ods-prose strong { color: #111827; font-weight: 700; }

/* WordPress alignment classes */
.ods-prose .aligncenter { margin-left: auto; margin-right: auto; display: block; }
.ods-prose .alignright { float: right; margin-left: 1.5em; }
.ods-prose .alignleft { float: left; margin-right: 1.5em; }
.ods-prose .wp-caption { max-width: 100%; }
.ods-prose .wp-caption-text { font-size: 0.85em; color: #6b7280; text-align: center; }

@media (max-width: 640px) {
    .ods-prose { font-size: 0.95rem; }
    .ods-prose h1 { font-size: 1.65em; }
    .ods-prose h2 { font-size: 1.35em; }
    .ods-prose .alignright,
    .ods-prose .alignleft { float: none; margin-left: 0; margin-right: 0; }
}
