
/*
 * JLC Portada v1.9 — Autor
 * Tratamiento editorial tipo catálogo/biografía.
 * No modifica contenidos almacenados.
 */

body.jlc-autor-page {
    --jlc-author-ivory: #f2eee6;
    --jlc-author-brown: #51483e;
    --jlc-author-charcoal: #262522;
    --jlc-author-silver: #aaa9a3;
    --jlc-author-muted: #746f67;
    --jlc-author-line: rgba(81,72,62,.20);
    background: var(--jlc-author-ivory) !important;
    color: var(--jlc-author-charcoal);
}

body.jlc-autor-page #page,
body.jlc-autor-page .site-content,
body.jlc-autor-page .site-main,
body.jlc-autor-page .content-area,
body.jlc-autor-page .ast-container {
    background: var(--jlc-author-ivory) !important;
}

body.jlc-autor-page .site-content > .ast-container,
body.jlc-autor-page .ast-container {
    width: 100%;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

body.jlc-autor-page .site-content {
    padding-top: clamp(48px, 7vw, 92px);
    padding-bottom: clamp(80px, 10vw, 140px);
}

/* Título de página */
body.jlc-autor-page .entry-header,
body.jlc-autor-page header.entry-header {
    max-width: 820px;
    margin: 0 auto clamp(34px, 5vw, 58px);
    padding: 0 clamp(22px, 4vw, 56px);
}

body.jlc-autor-page .entry-title,
body.jlc-autor-page h1.entry-title,
body.jlc-autor-page .wp-block-post-title,
body.jlc-autor-page .entry-content > h1:first-child {
    color: var(--jlc-author-brown) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(38px, 4.1vw, 58px) !important;
    font-weight: 400 !important;
    line-height: 1.06 !important;
    letter-spacing: -.022em !important;
    text-transform: none !important;
    margin-top: 0 !important;
    margin-bottom: 22px !important;
}

body.jlc-autor-page .entry-header::after {
    content: "";
    display: block;
    width: 72px;
    height: 1px;
    margin-top: 24px;
    background: var(--jlc-author-silver);
}

/* Biografía: lectura cómoda, como texto de catálogo */
body.jlc-autor-page .entry-content > p,
body.jlc-autor-page .wp-block-post-content > p,
body.jlc-autor-page .uagb-container-inner-blocks-wrap > p {
    max-width: 820px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(22px, 4vw, 56px);
    padding-right: clamp(22px, 4vw, 56px);
    color: var(--jlc-author-charcoal) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-size: clamp(16px, 1.25vw, 18px) !important;
    line-height: 1.78 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
}

/* Fotografía/retrato: contenida, sin ocupar la página como un proyecto */
body.jlc-autor-page .entry-content figure.wp-block-image,
body.jlc-autor-page .entry-content .wp-block-image,
body.jlc-autor-page .entry-content .uagb-image {
    width: auto;
    max-width: 560px;
    margin: clamp(42px, 6vw, 76px) auto !important;
}

body.jlc-autor-page .entry-content img,
body.jlc-autor-page .wp-block-post-content img {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    margin-left: auto;
    margin-right: auto;
    border: 0 !important;
    box-shadow: none !important;
}

/* Secciones: Premios, exposiciones, selecciones, etc. */
body.jlc-autor-page .entry-content h2,
body.jlc-autor-page .entry-content h3,
body.jlc-autor-page .wp-block-post-content h2,
body.jlc-autor-page .wp-block-post-content h3 {
    max-width: 900px;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: clamp(22px, 4vw, 56px);
    padding-right: clamp(22px, 4vw, 56px);
    color: var(--jlc-author-brown) !important;
    font-family: Georgia, "Times New Roman", serif !important;
    font-weight: 400 !important;
    text-transform: none !important;
    letter-spacing: -.01em !important;
}

body.jlc-autor-page .entry-content h2,
body.jlc-autor-page .wp-block-post-content h2 {
    font-size: clamp(24px, 2.3vw, 32px) !important;
    line-height: 1.25 !important;
    margin-top: clamp(58px, 8vw, 100px) !important;
    margin-bottom: 20px !important;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--jlc-author-line);
}

body.jlc-autor-page .entry-content h3,
body.jlc-autor-page .wp-block-post-content h3 {
    font-size: clamp(19px, 1.8vw, 24px) !important;
    line-height: 1.3 !important;
    margin-top: 34px !important;
    margin-bottom: 14px !important;
}

/* Listas cronológicas: mucha claridad y separación discreta */
body.jlc-autor-page .entry-content ul,
body.jlc-autor-page .entry-content ol,
body.jlc-autor-page .wp-block-post-content ul,
body.jlc-autor-page .wp-block-post-content ol {
    max-width: 900px;
    margin: 22px auto 40px !important;
    padding-left: clamp(40px, 5vw, 72px) !important;
    padding-right: clamp(22px, 4vw, 56px);
    color: var(--jlc-author-charcoal);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(15px, 1.15vw, 17px);
    line-height: 1.7;
    text-transform: none !important;
}

body.jlc-autor-page .entry-content li,
body.jlc-autor-page .wp-block-post-content li {
    padding-top: 9px;
    padding-bottom: 9px;
}

body.jlc-autor-page .entry-content li + li,
body.jlc-autor-page .wp-block-post-content li + li {
    border-top: 1px solid rgba(81,72,62,.10);
}

/* Si premios/exposiciones están hechos como párrafos y no listas,
   darles el mismo ancho sin imponer separadores que puedan romper la biografía. */
body.jlc-autor-page .entry-content h2 ~ p,
body.jlc-autor-page .wp-block-post-content h2 ~ p {
    max-width: 900px;
}

/* Citas / declaraciones */
body.jlc-autor-page blockquote,
body.jlc-autor-page .wp-block-quote {
    max-width: 820px;
    margin: clamp(42px, 6vw, 80px) auto !important;
    padding: 20px 28px !important;
    border-left: 1px solid var(--jlc-author-silver) !important;
    background: transparent !important;
}

body.jlc-autor-page blockquote p,
body.jlc-autor-page .wp-block-quote p {
    padding: 0 !important;
    margin: 0 !important;
    color: var(--jlc-author-brown) !important;
    font-size: 18px !important;
    line-height: 1.65 !important;
}

/* Enlaces sobrios */
body.jlc-autor-page .entry-content a {
    color: var(--jlc-author-brown) !important;
    text-decoration-color: var(--jlc-author-silver);
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

/* Pies de foto */
body.jlc-autor-page figcaption,
body.jlc-autor-page .wp-element-caption {
    margin-top: 10px !important;
    color: var(--jlc-author-muted) !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.5 !important;
    letter-spacing: .02em !important;
    text-transform: none !important;
    text-align: center;
}

@media (max-width: 767px) {
    body.jlc-autor-page .site-content {
        padding-top: 36px;
        padding-bottom: 76px;
    }

    body.jlc-autor-page .entry-header,
    body.jlc-autor-page header.entry-header {
        padding-left: 22px;
        padding-right: 22px;
        margin-bottom: 30px;
    }

    body.jlc-autor-page .entry-title,
    body.jlc-autor-page h1.entry-title,
    body.jlc-autor-page .entry-content > h1:first-child {
        font-size: 36px !important;
    }

    body.jlc-autor-page .entry-content > p,
    body.jlc-autor-page .wp-block-post-content > p,
    body.jlc-autor-page .entry-content h2,
    body.jlc-autor-page .entry-content h3 {
        padding-left: 22px;
        padding-right: 22px;
    }

    body.jlc-autor-page .entry-content > p,
    body.jlc-autor-page .wp-block-post-content > p {
        font-size: 16px !important;
        line-height: 1.72 !important;
    }

    body.jlc-autor-page .entry-content figure.wp-block-image,
    body.jlc-autor-page .entry-content .wp-block-image,
    body.jlc-autor-page .entry-content .uagb-image {
        width: calc(100% - 44px);
        max-width: 520px;
        margin-top: 42px !important;
        margin-bottom: 42px !important;
    }

    body.jlc-autor-page .entry-content ul,
    body.jlc-autor-page .entry-content ol,
    body.jlc-autor-page .wp-block-post-content ul,
    body.jlc-autor-page .wp-block-post-content ol {
        padding-left: 44px !important;
        padding-right: 22px !important;
    }
}
