/* R53 — Hucifer's featured reading shelf, preserving Alexandria subject filters. */
#alexandria .r53-shelf-toggle{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px;
  padding:0 34px 19px;max-width:100%;
}
#alexandria .r53-shelf-toggle button{
 appearance:none;position:relative;overflow:hidden;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;
 padding:17px 20px;min-width:0;min-height:92px;border-radius:12px;
 border:1px solid #576f967e;background:linear-gradient(120deg,#0c1629,#080b19);
 color:#e1ecfa;text-align:left;cursor:pointer;
 box-shadow:inset 0 1px #a4dcff0c;transition:border-color .2s,background .2s,box-shadow .2s;
}
#alexandria .r53-shelf-toggle button.is-active{
 border-color:#5affee;background:radial-gradient(ellipse at 5% 0%,#204b5a8c,transparent 75%),linear-gradient(125deg,#111a39,#261237 92%);
 box-shadow:inset 0 1px #e3b9ff41,0 0 0 1px #cf65fe8c,0 0 23px #4becdf3d;
}
#alexandria .r53-shelf-toggle button.is-active::before{
 content:"";position:absolute;left:0;top:0;right:0;height:2px;
 background:linear-gradient(90deg,#45fce9,#7f9fff,#e66af7,#ff85ba);
}
#alexandria .r53-shelf-toggle button>span{font-size:9px;font-weight:800;letter-spacing:.16em;color:#95cbea;text-transform:uppercase}
#alexandria .r53-shelf-toggle button.is-active>span{color:#78fff1}
#alexandria .r53-shelf-toggle button>strong{font-size:clamp(16px,1.4vw,22px);font-weight:770;letter-spacing:-.035em;line-height:1.16}
#alexandria .r53-shelf-toggle button>small{font-size:10px;line-height:1.55;color:#a5b7d1}
#alexandria .r53-shelf-toggle button:hover{border-color:#86dbe7}
#alexandria .r53-shelf-toggle button:focus-visible{outline:2px solid #57ffec;outline-offset:3px}
#alexandria .r53-shelf-toggle .r53-hucifer-button>strong{
 background:linear-gradient(90deg,#8cffea,#b8cbff,#ef84e9);background-clip:text;-webkit-background-clip:text;color:transparent
}
#alexandria .r53-shelf-description{padding:0 34px 19px;color:#a5c9d7;font-size:11px;line-height:1.7}
#alexandria .r53-custom-jacket{position:relative}
#alexandria .r53-jacket-label{
 position:absolute;z-index:2;bottom:7px;left:7px;right:7px;display:block;text-align:center;
 padding:4px 2px;border-radius:3px;background:#051222d9;border:1px solid #60e9f07a;
 font-size:7px;letter-spacing:.07em;color:#acfaff;font-weight:750;line-height:1.1;
}
#alexandria .r53-custom-jacket .r41-cover{max-height:198px!important}
#alexandria .r39-book .r39-shelf{overflow-wrap:anywhere}
@media(max-width:700px){
 #alexandria .r53-shelf-toggle{padding:0 17px 16px;gap:8px}
 #alexandria .r53-shelf-toggle button{min-height:99px;padding:11px 10px;gap:5px;border-radius:10px}
 #alexandria .r53-shelf-toggle button>span{font-size:7px;letter-spacing:.08em}
 #alexandria .r53-shelf-toggle button>strong{font-size:16px}
 #alexandria .r53-shelf-toggle button>small{font-size:9px}
 #alexandria .r53-shelf-description{padding:0 18px 16px;font-size:10px}
 #alexandria .r53-jacket-label{font-size:6px}
}
@media(prefers-reduced-motion:reduce){#alexandria .r53-shelf-toggle button{transition:none}}
