/* Pasajes centrados; el resto del escrito conserva la alineación izquierda. */
.reader-prose .editorial-centered,
.studio-reader-prose .editorial-centered{text-align:center;margin:2em auto;max-width:100%}
.reader-prose .editorial-centered :is(p,h2,h3,h4),
.studio-reader-prose .editorial-centered :is(p,h2,h3,h4){text-align:center}

/* Llamadas: enlace HTML funcional incluso sin JavaScript. */
.footnote-callout{font-family:var(--sans,Arial,sans-serif);font-size:.58em;line-height:0;vertical-align:super;white-space:nowrap}
.footnote-ref{color:#c89c6f;text-decoration:none;border-bottom:0!important;position:relative;padding:3px 2px;scroll-margin-top:160px;font-weight:700}
.footnote-ref:hover,.footnote-ref:focus-visible{text-decoration:underline;color:#f1cba3}
.paper-mode .footnote-ref{color:#765232}
.article-note-detail.editorial-footnotes{border-top:1px solid rgba(190,148,110,.4);padding:22px 0;margin:55px 0 0}
.editorial-footnotes summary{font-size:11px;letter-spacing:.07em;font-family:var(--sans,Arial,sans-serif);cursor:pointer;color:#c99f79;list-style:revert;padding:5px 0}
.editorial-footnotes .footnote-list{list-style:none;padding:0;margin:20px 0 0}
.editorial-footnotes .footnote-item{display:grid;grid-template-columns:28px minmax(0,1fr) 28px;column-gap:12px;align-items:start;scroll-margin-top:168px;margin:0 0 17px;font-size:15px;line-height:1.6}
.editorial-footnotes .footnote-number{font-family:var(--sans,Arial,sans-serif);font-size:11px;color:#ba926f;padding-top:4px}
.editorial-footnotes .footnote-text{white-space:pre-wrap;overflow-wrap:anywhere;color:inherit}
.editorial-footnotes .footnote-back{font-size:18px;text-align:right;text-decoration:none;color:#c99d71;line-height:1.2}
.editorial-footnotes .footnote-back:hover{text-decoration:underline}
.paper-mode .editorial-footnotes,.paper-mode .editorial-footnotes summary{color:#6d4d33;border-color:rgba(90,62,39,.28)}
.paper-mode .editorial-footnotes .footnote-back,.paper-mode .editorial-footnotes .footnote-number{color:#805836}
.studio-body .editorial-footnotes{color:#dfceb9}
.studio-body .footnote-ref{color:#c99d71}

/* El popover se sitúa al lado de la llamada y no reacomoda el texto. */
.reader-note-popover{position:fixed;z-index:120;max-width:calc(100vw - 32px);box-sizing:border-box;padding:20px 22px;background:#27211c;color:#f0e2cf;border:1px solid #a7825d;box-shadow:0 14px 40px rgba(0,0,0,.45);font-family:Georgia,serif}
.reader-note-popover[hidden]{display:none!important}
.reader-note-popover-head{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:12px}
.reader-note-popover-head strong{font:600 11px/1.5 var(--sans,Arial,sans-serif);letter-spacing:.11em;text-transform:uppercase;color:#d6ad85}
.reader-note-popover-close{border:1px solid rgba(218,180,145,.4);background:transparent;color:inherit;cursor:pointer;width:32px;height:32px;font:22px/1 Arial,sans-serif}
.reader-note-popover-close:focus-visible,.reader-note-popover-link:focus-visible,.footnote-ref:focus-visible,.footnote-back:focus-visible{outline:2px solid #d8af85;outline-offset:3px}
.reader-note-popover-text{font-size:16px;line-height:1.55;white-space:pre-wrap;overflow-wrap:anywhere;margin:0 0 17px;max-height:min(42vh,290px);overflow:auto}
.reader-note-popover-link{font:11px/1.5 var(--sans,Arial,sans-serif);color:#e1bc96;border-bottom:1px solid #a7825d;text-decoration:none;padding-bottom:5px}
.paper-mode .reader-note-popover{background:#fff9ee;color:#342c24;border-color:#a48b6c}
.paper-mode .reader-note-popover-head strong,.paper-mode .reader-note-popover-link{color:#805836}
.paper-mode .reader-note-popover-close{border-color:#927c66}
@media(max-width:600px){
  .reader-note-popover{padding:16px 18px}
  .reader-note-popover-text{font-size:15px}
  .editorial-footnotes .footnote-item{grid-template-columns:22px minmax(0,1fr) 25px;gap:9px}
}
