/* Materias: mismo lenguaje sobrio que el índice de la biblioteca. */
.clean-subject{--text:#dedede;--muted:#a0a0a0;--line:#2b2e34;padding:28px 0 40px;min-height:0}
.clean-subject .eyebrow{font-size:11px;letter-spacing:0;margin:0 0 12px;color:#999}
.clean-subject h1{font-size:32px;line-height:1.25;letter-spacing:-1px;font-weight:500}
.clean-subject .shelf-scope-lead{font-size:14px;line-height:1.6;color:#a0a0a0;margin:0 0 25px}
.clean-subject h2{font-size:14px!important;font-weight:600;letter-spacing:0;color:#dedede;margin:0 0 12px}
.clean-cards{display:grid;gap:8px}
.clean-card{display:block;padding:14px 18px;background:#1c1e24;border:1px solid #2b2e34;border-left:2px solid #54d03f;border-radius:4px;transition:none;color:#dedede}
.clean-card-heading{display:flex;align-items:baseline;justify-content:space-between;gap:16px}
.clean-subject h3{font-size:15px;line-height:1.45;letter-spacing:0;font-weight:600;margin:0;color:#dedede}
.clean-role{font-size:12px;line-height:1.5;color:#a0a0a0;flex-shrink:0}
.clean-subject .clean-meta{font-size:12.5px;line-height:1.5;color:#a0a0a0;margin:4px 0 0}
.clean-subject .clean-note{font-size:13px;line-height:1.55;color:#bcbcbc;margin:6px 0 0}
.clean-card:hover{background:#202329;border-color:#3d483e;border-left-color:#54d03f}
.clean-card:hover h3,.clean-resource a:hover{color:#54d03f}
.clean-subject a:focus-visible,.clean-subject button:focus-visible,.clean-subject summary:focus-visible{outline:2px solid #54d03f;outline-offset:3px}
.clean-subject .shelf-complete-section{margin-top:25px}
.clean-subject .v2-section-header{margin:0 0 7px!important;padding:0;border:0}
.clean-count{font-size:11px;font-weight:400;color:#999;margin-left:6px}
.clean-subject .shelf-tabs-nav{display:flex;gap:20px;padding:0;margin:0;border-bottom:1px solid #2b2e34;flex-wrap:wrap}
.clean-subject .shelf-tabs-label,.clean-subject .tab-indicator{display:none}
.clean-subject .shelf-tab-btn{padding:10px 0;background:none!important;border:0!important;border-bottom:2px solid transparent!important;border-radius:0;box-shadow:none!important;color:#a0a0a0!important;font-size:13px;transition:none}
.clean-subject .shelf-tab-btn.active{color:#54d03f!important;border-bottom-color:#54d03f!important}
.clean-subject .shelf-tab-btn:hover{color:#dedede!important}
.clean-subject .shelf-tab-btn .tab-count{color:inherit;background:none}
.clean-resource{display:grid;grid-template-columns:24px minmax(0,1fr);gap:12px;max-width:none;margin:0;padding:15px 0;border-bottom:1px solid #2b2e34}
.clean-number{font-size:11px;line-height:22px;color:#888}
.clean-subject .shelf-meta-drawer{margin-top:24px;padding-top:14px}
.clean-subject .shelf-meta-summary{font-size:12.5px;color:#a0a0a0}
.clean-subject .back-link{margin:0;font-size:12px}
.clean-subject~*{color:inherit}
@media(max-width:600px){.clean-subject{padding-top:22px}.clean-subject h1{font-size:26px}.clean-card{padding:14px}.clean-card-heading{display:block}.clean-role{display:block;margin-top:3px}.clean-subject .shelf-tabs-nav{gap:16px}.clean-resource{gap:8px;grid-template-columns:20px minmax(0,1fr)}}
/* Una estantería, sin duplicados: selección integrada en cada formato. */
.clean-subject .shelf-complete-section{margin-top:22px}
.clean-subject .shelf-tabs-nav{gap:8px;border:0;margin-bottom:16px;padding:0}
.clean-subject .shelf-tab-btn{min-height:42px;padding:9px 15px;background:rgba(84,208,63,.08)!important;border:1px solid rgba(84,208,63,.32)!important;border-radius:4px;color:#80d771!important;font-size:12.5px;line-height:1.5}
.clean-subject .shelf-tab-btn.active{background:#54d03f!important;border-color:#54d03f!important;color:#131418!important}
.clean-subject .shelf-tab-btn:hover{background:rgba(84,208,63,.14)!important;color:#a4ed97!important}
.clean-subject .shelf-tab-btn.active:hover{background:#54d03f!important;color:#131418!important}
.clean-subject .shelf-tab-panel{display:grid;gap:8px}
.clean-subject .shelf-tab-panel[hidden]{display:none}
.clean-subject .clean-card{padding:16px 18px;border:1px solid #2b2e34;border-radius:4px}
.clean-subject .clean-card:hover{border-color:#475346;background:#202329}
.clean-subject .clean-meta{margin-top:5px}
.shelf-subtopics-nav{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:0 0 16px;padding:9px 14px;background:#14161b;border:1px solid #282c35;border-radius:4px;font-family:var(--mono)}
.shelf-subtopics-label{font-size:11.5px;color:#7b818e;text-transform:uppercase;letter-spacing:.5px;margin-right:4px}
.shelf-chip-btn{background:#1c1f26;border:1px solid #333842;border-radius:3px;color:#abb2bf;font-family:var(--mono);font-size:12px;padding:5px 11px;min-height:32px;box-sizing:border-box;cursor:pointer;transition:all .12s ease;display:inline-flex;align-items:center;gap:6px}
.shelf-chip-btn:hover{background:#252a34;color:#fff;border-color:#434955}
.shelf-chip-btn.active,.shelf-chip-btn[aria-pressed="true"]{background:rgba(84,208,63,.12);border-color:#54d03f;color:#54d03f;font-weight:600}
.shelf-chip-btn .chip-count{font-size:10.5px;opacity:.75}
.clean-subtopic-tag{display:inline-block;font-size:11px;color:#7fc387;background:rgba(84,208,63,.08);border:1px solid rgba(84,208,63,.25);border-radius:2px;padding:1px 6px;line-height:1.4;vertical-align:middle}
@media(max-width:600px){.clean-subject .shelf-tabs-nav{gap:6px}.clean-subject .shelf-tab-btn{padding:8px 12px;font-size:12px}.clean-subject .clean-card{padding:14px}.clean-card-heading{display:flex;flex-wrap:wrap;gap:4px 12px}.clean-card-heading h3{flex:1 1 180px}.clean-role{margin:0}}
