body[data-page-kind="norma-detail"] .mley-app-sidebar{overflow-wrap:anywhere}
/* The shared side reader owns the split, resize and hide/restore states. */
.norma-workspace{box-sizing:border-box;width:100%;max-width:840px;margin-inline:auto;padding-inline:16px;padding-bottom:24px}
.norma-ficha-pane{min-width:0;padding:20px;background:var(--bg-surface);color:var(--text-color);border:1px solid var(--border-color);border-radius:12px;overflow-wrap:anywhere}
@media(max-width:739px){.norma-workspace{padding-inline:12px}.norma-ficha-pane{padding:16px}}
.norma-ficha-pane h1{font-size:1.2rem;line-height:1.4;margin:.25rem 0}
.norma-ficha-source{font-size:.84rem;color:var(--text-muted);margin:.4rem 0 1rem}
.norma-ficha-pane .norma-sidebar-title,.norma-ficha-pane .norma-ficha-section>div{font-size:.9rem}
.norma-ficha-pane .norma-ficha-section summary{font-size:.92rem}
.norma-ficha-pane :is(a,summary):focus-visible{outline:2px solid var(--accent-color);outline-offset:2px}
.norma-site-navigation{flex:0 0 auto;border-top:1px solid var(--border-color);font-size:.8rem}
.norma-site-navigation>summary{cursor:pointer;padding:.65rem .25rem}
.norma-sidebar-title{font-size:.86rem;line-height:1.5;margin:.8rem 0;color:var(--text-color)}
.norma-ficha,.norma-sidebar-documents{padding:1rem 0;border-bottom:1px solid var(--border-color)}
.norma-ficha h2,.norma-sidebar-documents h2,#mley-law-sidebar-index-title{font-size:.88rem;font-weight:700;margin:0 0 .7rem}
.norma-ficha dl{font-size:.8rem;line-height:1.5}.norma-ficha dt{color:var(--text-muted);margin-top:.55rem}.norma-ficha dd{margin:0}.norma-ficha details{margin:.7rem 0}.norma-ficha>a{font-size:.8rem}
.norma-sidebar-documents ul,.norma-document-index{list-style:none;margin:0;padding:0}.norma-sidebar-documents a,.norma-document-index a{display:block;padding:.55rem .6rem;border-radius:7px;font-size:.8rem;line-height:1.5}.norma-sidebar-documents small{display:block;color:var(--text-muted)}.norma-sidebar-documents [aria-current]{background:var(--bg-surface-2);font-weight:700}.norma-document-index{max-height:40vh;overflow:auto}
.norma-breadcrumbs{font-size:.83rem;padding:.8rem 0;overflow-wrap:anywhere}.norma-reader-heading h1{font-size:clamp(1.05rem,1.8vw,1.45rem);line-height:1.5}.norma-document-kind{text-transform:uppercase;letter-spacing:.055em;font-size:.74rem;color:var(--text-muted)}.norma-reader-tools{margin-top:1rem;font-size:.83rem}.norma-reader-tools form>div{display:flex;gap:.5rem;margin-top:.4rem}.norma-reader-tools input{min-width:0;flex:1;padding:.6rem;border:1px solid var(--border-color);border-radius:7px;color:var(--text-color);background:var(--bg-surface)}.norma-reader-tools [role="status"]:empty{display:none}
.norma-notice{padding:.8rem 1rem;border-left:3px solid #b48b37;background:var(--bg-surface-2);font-size:.86rem;line-height:1.5}.norma-note{font-size:.84rem;color:var(--text-muted)}
/* Legal content uses the same cards, typography and theme as articles. */
.norma-content-shell,.mley-norm-source,.mley-norm-source .card-body{min-width:0;max-width:100%}
.mley-norm-source{color:var(--text-color);font:inherit;overflow-wrap:anywhere}
.mley-norm-source .card{color:var(--text-color);background:var(--bg-surface)}
.mley-norm-source [data-norm-block]{margin-top:0;margin-bottom:1rem;line-height:inherit}
.mley-norm-source [data-norm-block]:last-child{margin-bottom:0}
.mley-norm-source :is(h1,h2,h3,h4,h5,h6){font-size:1.1rem;line-height:1.6}
.mley-norm-source [data-unit-kind="apartado"] .mley-norm-unit-heading,
.mley-norm-source [data-unit-kind="indice"] .mley-norm-unit-heading{font-weight:700}
body[data-page-kind="norma-detail"] .mley-norm-source .mley-norm-number{font:inherit;font-weight:700;white-space:nowrap;overflow-wrap:normal;text-indent:0;text-decoration:none;margin-right:.2em}
.mley-norm-source img{max-width:100%;height:auto;object-fit:contain}
.mley-norm-source svg{max-width:100%}
.mley-norm-source pre{white-space:pre-wrap;font:inherit}
.mley-norm-source table{border-collapse:collapse;max-width:100%;color:inherit}
.mley-norm-source :is(td,th){border-color:var(--border-color);padding:.6rem;vertical-align:top}
.mley-norm-source .mley-table-shell{min-width:0;max-width:100%}
.mley-norm-source .mley-table-scroll{overflow-x:auto;max-width:100%}
.mley-norm-source [data-norm-unit],.mley-norm-unit-anchor{scroll-margin-top:100px}
.mley-norm-source [data-find-match]{outline:2px solid var(--accent-color);outline-offset:2px}
.norma-document-index [data-unit-depth]:not([data-unit-depth="0"]) a{padding-left:1.25rem}
.norma-document-index [data-unit-depth="2"] a{padding-left:1.75rem}
.norma-references{margin-top:1rem}.norma-references ol{padding-left:1.4rem}.norma-references li{margin:.5rem 0}.norma-pdf iframe{display:block;width:100%;height:75vh;border:0;margin-top:1rem}.norma-pdf summary,.norma-references summary{cursor:pointer}
@media(max-width:600px){.norma-reader-tools form>div{flex-wrap:wrap}.norma-reader-tools input{width:100%}.norma-content-shell{min-width:0}.mley-norm-source .card-body{padding:1rem}.mley-norm-source :is(td,th){padding:.4rem}}
.norma-sidebar-title summary,.norma-publication-title summary{cursor:pointer;color:var(--text-muted);font-size:.8rem}.norma-sidebar-title p{margin:.5rem 0}.norma-heading-name{font-size:.96rem;line-height:1.5;margin:.35rem 0 .7rem}.norma-publication-title{margin:.5rem 0 .8rem;font-size:.86rem}.norma-reader-heading h1{margin:0}.norma-ficha{padding:.6rem 0}.norma-ficha dl{margin-bottom:.5rem}.norma-ficha dt{margin-top:.35rem}
.norma-notice{color:inherit;background:rgba(180,139,55,.12)}
.norma-ficha-section summary{cursor:pointer;font-size:.84rem;font-weight:700;color:var(--text-color);padding:.5rem 0}
.norma-ficha-section>div{font-size:.8rem;line-height:1.6;overflow-wrap:anywhere}
.norma-ficha-section p{margin:.5rem 0}.norma-ficha-section ul,.norma-ficha-section ol{padding-left:1.2rem}
.norma-ficha-section table{display:block;max-width:100%;overflow:auto}
.norma-reader-status:empty{display:none}
body[data-page-kind="norma-detail"] .mley-dof-reader .modal-body> :is(.dof-document,.dof-find){max-width:900px;margin-left:auto;margin-right:auto}
/* Metadata lives in the ficha. Never hide headings inside the official document. */
body[data-page-kind="norma-detail"] .mley-dof-reader .modal-body> :is(.dof-reader-title,.dof-reader-meta,.norma-notice){display:none}
body[data-page-kind="norma-detail"] .mley-dof-reader .dof-find:not([open])> :not(summary){display:none}
body[data-page-kind="norma-detail"] .mley-dof-reader .dof-document.mley-norm-source{font-family:Arial,sans-serif;font-size:12px;line-height:normal}
