/*
Theme Name: CIPD Editorial Sereno
Author: Congregación Israelita Pueblo de Dios
Description: Portada editorial responsiva, radio AzuraCast, importación de estudios Word/PDF y secciones configurables. Programas y comunidad de portada en modo demostración.
Version: 1.1.3
Requires at least: 6.0
Requires PHP: 7.4
Text Domain: cipd-editorial-sereno
*/

/* Integración con WordPress. El diseño principal está en assets/styles.css. */
body.cipd-theme { min-height: 100vh; }
.home-sections.cipd-one-column { grid-template-columns: 1fr; }
.cipd-one-column .community-feature { border-left: 0; padding-left: 0; }
.cipd-study-reading[hidden] { display: none; }
.cipd-study-readings, .cipd-study-text { min-width: 0; overflow-wrap: anywhere; }
.study-sidebar .study-item { width: 100%; text-align: left; margin-bottom: 10px; }
.study-sidebar .study-item.selected { border-color: var(--olive); background: var(--paper); }
.study-item > span:first-child { flex-shrink: 0; }
.study-item > span:last-child { min-width: 0; overflow-wrap: anywhere; }
.cipd-study-pagination { display: flex; flex-wrap: wrap; gap: 15px; margin: 20px 0; }
.cipd-study-text table { display: block; max-width: 100%; overflow-x: auto; border-collapse: collapse; margin: 24px 0; }
.cipd-study-text th, .cipd-study-text td { border: 1px solid var(--line); padding: 10px; }
.cipd-study-text a { text-decoration: underline; }
.cipd-study-text h2 { font-size: clamp(27px, 3vw, 35px); }
.cipd-study-text h4 { font: 500 22px Georgia, serif; }
@media(max-width:1100px) { .studies-layout .study-sidebar { display: block; } }
body.admin-bar .site-header { top: 32px; }
.cipd-content { max-width: 900px; margin: 0 auto 40px; overflow-wrap: anywhere; }
.cipd-content h1 { font: 500 clamp(36px,5vw,64px)/1.1 Georgia,serif; }
.cipd-content h2 { font: 500 clamp(28px,4vw,42px)/1.2 Georgia,serif; }
.cipd-content a:not(.button) { text-decoration: underline; text-underline-offset: 3px; }
.cipd-content :is(iframe,video,img) { max-width: 100%; }
.cipd-content img { height: auto; }
.cipd-content figure { max-width: 100%; margin-inline: 0; }
.cipd-content :is(pre,table) { max-width: 100%; overflow-x: auto; }
.cipd-content pre { white-space: pre-wrap; }
.cipd-content .alignleft { float: left; margin: 0 24px 16px 0; }
.cipd-content .alignright { float: right; margin: 0 0 16px 24px; }
.cipd-content .aligncenter { margin-inline: auto; }
.cipd-content:after { content: ""; display: table; clear: both; }
.cipd-meta { font-size: 13px; color: var(--muted); }
.cipd-post-card { border-bottom: 1px solid var(--line); padding-bottom: 30px; }
.cipd-search { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 25px; }
.cipd-search input[type=search] { flex: 1; min-width: 160px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.cipd-comments { border-top: 1px solid var(--line); padding-top: 25px; margin-top: 35px; }
.cipd-comments .comment-list { padding: 0; list-style: none; }
.cipd-comments .comment { display: block; }
.cipd-comments .children { padding-left: 20px; list-style: none; }
.cipd-comments .comment-body { padding-block: 15px; }
.cipd-comments .comment-author img { float: left; margin-right: 12px; }
.cipd-comments .comment-metadata { font-size: 12px; }
.cipd-comments .comment-form label { display: block; margin-bottom: 5px; }
.cipd-comments .comment-form :is(input:not([type=checkbox]):not([type=submit]),textarea) { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.cipd-comments .comment-form-cookies-consent { display: flex; gap: 10px; align-items: flex-start; }
.cipd-comments .form-submit input { border: 0; border-radius: 999px; padding: 12px 24px; background: var(--olive-dark); color: #fff; cursor: pointer; }
.navigation .nav-links { display: flex; flex-wrap: wrap; gap: 14px; margin: 25px 0; }
.navigation .current { font-weight: bold; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.screen-reader-text:focus { position: fixed; z-index: 100000; top: 10px; left: 10px; width: auto; height: auto; padding: 12px; clip-path: none; background: #fff; color: #25291f; }
.cipd-noscript { display: block; margin: 20px auto; max-width: 900px; padding: 15px; border: 1px solid var(--line); }
@media(max-width:782px) { body.admin-bar .site-header { top: 46px; } }
@media(max-width:600px) { body.admin-bar .site-header { top: 0; } .cipd-content .alignleft,.cipd-content .alignright { float: none; margin-inline: 0; } }
