/**
 * Tipografía editorial — posts y páginas (.post-content)
 * Carga después de Tailwind para restaurar listas, espaciado y legibilidad.
 */

.post-content {
    color: #1f2937;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.post-content > *:first-child {
    margin-top: 0;
}

.post-content p {
    margin: 0 0 1.25rem;
    color: #374151;
    line-height: 1.8;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    color: #111111;
    line-height: 1.25;
}

.post-content h2 {
    margin: 2.5rem 0 1rem;
    padding-left: 1rem;
    border-left: 4px solid #0cd454;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
}

.post-content h3 {
    margin: 2rem 0 0.75rem;
    font-size: 1.375rem;
    font-weight: 800;
}

.post-content h4 {
    margin: 1.5rem 0 0.5rem;
    font-size: 1.125rem;
    font-weight: 800;
}

.post-content a:not(.wp-block-button__link):not(.wp-element-button):not(.button):not(.btn):not(.magnetic-btn):not(.evento-btn) {
    color: #ff6600;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.post-content a:not(.wp-block-button__link):not(.wp-element-button):not(.button):not(.btn):not(.magnetic-btn):not(.evento-btn):hover {
    color: #111111;
}

/* —— Listas (restaurar tras reset global + Tailwind preflight) —— */
.post-content ul,
.post-content ol,
.post-content .wp-block-list {
    margin: 0 0 1.75rem;
    padding-left: 1.75rem;
}

.post-content ul,
.post-content .wp-block-list {
    list-style: disc outside;
}

.post-content ol {
    list-style: decimal outside;
}

.post-content li {
    margin: 0 0 0.85rem;
    padding-left: 0.25rem;
    color: #374151;
    line-height: 1.8;
}

.post-content li:last-child {
    margin-bottom: 0;
}

.post-content li > ul,
.post-content li > ol {
    margin-top: 0.75rem;
    margin-bottom: 0.5rem;
}

.post-content ul ul {
    list-style-type: circle;
}

.post-content ul ul ul {
    list-style-type: square;
}

.post-content li::marker {
    color: #0cd454;
    font-weight: 700;
}

.post-content ol li::marker {
    color: #111111;
    font-weight: 800;
}

.post-content li strong,
.post-content li b {
    color: #111111;
    font-weight: 800;
}

.post-content h2 + ul,
.post-content h2 + ol,
.post-content h3 + ul,
.post-content h3 + ol,
.post-content h4 + ul,
.post-content h4 + ol {
    margin-top: 0.75rem;
}

.post-content p + ul,
.post-content p + ol {
    margin-top: 0.35rem;
}

.post-content ul + p,
.post-content ol + p {
    margin-top: 1rem;
}

.post-content blockquote {
    margin: 2rem 0;
    padding: 1.5rem 1.75rem;
    border-left: 4px solid #ff6600;
    border-radius: 0 1.25rem 1.25rem 0;
    background: #f9fafb;
    color: #4b5563;
    font-style: italic;
}

.post-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 2rem 0;
    border-radius: 1rem;
    border: 1px solid #e5e7eb;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.post-content figure {
    margin: 2rem 0;
}

.post-content figcaption {
    margin-top: 0.5rem;
    text-align: center;
    font-size: 0.6875rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #9ca3af;
}

.post-content hr {
    margin: 2.5rem 0;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.post-content table {
    width: 100%;
    margin: 1.5rem 0 2rem;
    border-collapse: collapse;
    font-size: 0.9375rem;
}

.post-content th,
.post-content td {
    padding: 0.65rem 0.85rem;
    border: 1px solid #e5e7eb;
    text-align: left;
}

.post-content th {
    background: #f3f4f6;
    font-weight: 800;
}
