/* Kaleido curated shelves (Golden Shelf #worldShelf, Short Fiction #shortShelf).
   Four restrained, accessible booklets in the native palette.
   Independent selectors and layout: no changes to primary book-card styling. */
#worldShelf[hidden],#shortShelf[hidden],#worldShelf [hidden],#shortShelf [hidden]{display:none!important}
#worldShelf,#shortShelf{position:relative;padding:9px 12px 4px;color:#352c25}
#worldShelf .ws-head,#shortShelf .ws-head{display:flex;align-items:center;gap:8px;margin:0 0 8px;padding:0 2px}
#worldShelf .ws-heading,#shortShelf .ws-heading{font:700 17px/1.2 Georgia,"Times New Roman",serif;letter-spacing:-.018em;margin:0}
#worldShelf .ws-subtitle,#shortShelf .ws-subtitle{font-size:10.5px;line-height:1.4;color:#86786a;margin-top:2px}
#worldShelf .ws-head-main,#shortShelf .ws-head-main{min-width:0;flex:1}
#worldShelf .ws-next,#shortShelf .ws-next{
 display:grid;place-items:center;flex:none;width:36px;height:36px;padding:0;
 border:1px solid #dcd1c3;border-radius:10px;
 color:#796957;background:transparent;box-shadow:none;touch-action:manipulation;
}
#worldShelf .ws-next:hover,#shortShelf .ws-next:hover{background:#f4eee7}
#worldShelf .ws-next:active,#shortShelf .ws-next:active{transform:scale(.96)}
#worldShelf .ws-next svg,#shortShelf .ws-next svg{width:17px;height:17px}
#worldShelf .ws-grid,#shortShelf .ws-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
#worldShelf .ws-card,#shortShelf .ws-card{
 display:flex;align-items:stretch;gap:8px;min-width:0;min-height:100px;
 padding:8px 7px;border:1px solid #e6dacc;border-radius:12px;
 background:linear-gradient(145deg,#fffdf9,#faf6ef);
 color:#3d332b;text-align:left;box-shadow:0 1px 3px rgba(55,35,16,.028);
 transition:background .16s ease,border-color .16s ease,transform .16s ease;
 touch-action:manipulation;-webkit-tap-highlight-color:transparent;
}
#worldShelf .ws-card:hover,#shortShelf .ws-card:hover{background:#f7f0e5;border-color:#d1bea9}
#worldShelf .ws-card:active,#shortShelf .ws-card:active{transform:scale(.985)}
#worldShelf .ws-card:focus-visible,#shortShelf .ws-card:focus-visible,#worldShelf .ws-next:focus-visible,#shortShelf .ws-next:focus-visible{
 outline:2px solid #ae845c;outline-offset:2px;
}
#worldShelf .ws-art,#shortShelf .ws-art{
 display:block;align-self:center;position:relative;flex:none;
 width:42px;height:61px;overflow:hidden;border-radius:3px 5px 5px 3px;
 background:linear-gradient(100deg,#50635b 0 12%,#6e8478 12% 92%,#41574e);
 box-shadow:2px 3px 5px rgba(54,42,30,.16),inset 2px 0 rgba(0,0,0,.12);
}
#worldShelf .ws-card:nth-child(4n+2) .ws-art.ws-blank,#shortShelf .ws-card:nth-child(4n+2) .ws-art.ws-blank{
 background:linear-gradient(100deg,#94694e 0 12%,#bb8b6c 12% 92%,#85593e);
}
#worldShelf .ws-card:nth-child(4n+3) .ws-art.ws-blank,#shortShelf .ws-card:nth-child(4n+3) .ws-art.ws-blank{
 background:linear-gradient(100deg,#5c5877 0 12%,#817c9c 12% 92%,#4c4868);
}
#worldShelf .ws-card:nth-child(4n+4) .ws-art.ws-blank,#shortShelf .ws-card:nth-child(4n+4) .ws-art.ws-blank{
 background:linear-gradient(100deg,#6d5a43 0 12%,#9b8061 12% 92%,#634a35);
}
#worldShelf .ws-art.ws-blank::after,#shortShelf .ws-art.ws-blank::after{
 content:"";position:absolute;top:8px;bottom:8px;left:9px;right:6px;
 border-top:1px solid rgba(251,239,211,.45);border-bottom:1px solid rgba(251,239,211,.45);
}
#worldShelf .ws-cover,#shortShelf .ws-cover{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
#worldShelf .ws-copy,#shortShelf .ws-copy{display:flex;flex-direction:column;justify-content:center;gap:3px;min-width:0;flex:1}
#worldShelf .ws-title,#shortShelf .ws-title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;
 font:650 12.4px/1.27 Georgia,"Times New Roman",serif;overflow-wrap:anywhere;min-width:0}
#worldShelf .ws-author,#shortShelf .ws-author{font-size:10.2px;line-height:1.18;color:#7e7064;
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:1;overflow:hidden;overflow-wrap:anywhere}
#worldShelf .ws-foot,#shortShelf .ws-foot{display:flex;align-items:center;gap:3px;min-width:0;font-size:9px;
 line-height:1.2;color:#988b7e}
#worldShelf .ws-type,#shortShelf .ws-type{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#worldShelf .ws-availability,#shortShelf .ws-availability{margin-left:auto;min-width:0;flex:none;max-width:94%;
 white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:#806c58}
#worldShelf .ws-type+.ws-availability,#shortShelf .ws-type+.ws-availability{max-width:57%}
#worldShelf .ws-grid.ws-change .ws-card,#shortShelf .ws-grid.ws-change .ws-card{animation:worldShelfChange .2s ease-out both}
@keyframes worldShelfChange{from{opacity:.75;transform:translateY(2px)}to{opacity:1;transform:none}}
body.nightMode #worldShelf,body.nightMode #shortShelf{color:#ece5dc}
body.nightMode #worldShelf .ws-subtitle,body.nightMode #shortShelf .ws-subtitle{color:#b9aa9a}
body.nightMode #worldShelf .ws-next,body.nightMode #shortShelf .ws-next{border-color:#685a50;background:transparent;color:#d5bc9d}
body.nightMode #worldShelf .ws-next:hover,body.nightMode #shortShelf .ws-next:hover{background:#37332d}
body.nightMode #worldShelf .ws-card,body.nightMode #shortShelf .ws-card{
 color:#efe8dc;border-color:#514b43;background:linear-gradient(145deg,#302d2a,#292824);
 box-shadow:0 1px 2px rgba(0,0,0,.1);
}
body.nightMode #worldShelf .ws-card:hover,body.nightMode #shortShelf .ws-card:hover{background:#37332d;border-color:#766755}
body.nightMode #worldShelf .ws-author,body.nightMode #shortShelf .ws-author{color:#bdafa0}
body.nightMode #worldShelf .ws-type,body.nightMode #shortShelf .ws-type{color:#a99c8f}
body.nightMode #worldShelf .ws-availability,body.nightMode #shortShelf .ws-availability{color:#dcc4a6}
@media(max-width:360px){
 #worldShelf .ws-grid,#shortShelf .ws-grid{gap:5px}
 #worldShelf .ws-card,#shortShelf .ws-card{gap:6px;min-height:96px;padding:7px 5px}
 #worldShelf .ws-art,#shortShelf .ws-art{width:34px;height:52px}
 #worldShelf .ws-title,#shortShelf .ws-title{font-size:11.6px}
 #worldShelf .ws-foot,#shortShelf .ws-foot{font-size:8.5px}
 #worldShelf .ws-author,#shortShelf .ws-author{font-size:9.6px}
}
@media(min-width:600px){
 #worldShelf .ws-card,#shortShelf .ws-card{min-height:102px;padding:9px}
 #worldShelf .ws-art,#shortShelf .ws-art{width:47px;height:68px}
}
@media(prefers-reduced-motion:reduce){
 #worldShelf *,#shortShelf *,#worldShelf .ws-grid.ws-change .ws-card,#shortShelf .ws-grid.ws-change .ws-card{animation:none!important;transition:none!important}
}

/* Short Fiction: the same shelf, told apart by slimmer booklets and a cooler
   palette — a story is a thin book. */
#shortShelf{padding-top:4px}
#shortShelf .ws-art{width:30px;border-radius:2px 4px 4px 2px;
 background:linear-gradient(100deg,#4d5f73 0 14%,#6f8399 14% 92%,#3f5063)}
#shortShelf .ws-card:nth-child(4n+2) .ws-art.ws-blank{
 background:linear-gradient(100deg,#8a5a5a 0 14%,#b07c78 14% 92%,#7a4a4a);
}
#shortShelf .ws-card:nth-child(4n+3) .ws-art.ws-blank{
 background:linear-gradient(100deg,#5b6b4f 0 14%,#7f9070 14% 92%,#4d5c42);
}
#shortShelf .ws-card:nth-child(4n+4) .ws-art.ws-blank{
 background:linear-gradient(100deg,#7a6a48 0 14%,#a48f63 14% 92%,#6a5a3a);
}
#shortShelf .ws-art.ws-blank::after{left:7px;right:5px;top:10px;bottom:10px}
@media(max-width:360px){#shortShelf .ws-art{width:25px}}
@media(min-width:600px){#shortShelf .ws-art{width:34px}}

/* One Golden Shelf: a single title with a progressive small/large prose switch. */
.curatedShelves[hidden],.curatedShelfSwitch[hidden]{display:none!important}
.curatedShelves{
 margin:3px 12px 10px;overflow:hidden;border:1px solid #e6d9ca;
 border-radius:17px;background:rgba(255,251,246,.78);
 box-shadow:0 3px 13px rgba(62,42,25,.035);
}
.curatedShelfHeader{
 display:flex;align-items:center;justify-content:space-between;
 flex-wrap:wrap;gap:7px;padding:10px 12px 2px;
}
.curatedShelfHeading{
 margin:0;min-width:0;flex:1 1 auto;color:#352c25;
 font:600 19px/1.2 Georgia,"Times New Roman",serif;letter-spacing:-.02em;
}
.curatedShelfSwitch{
 flex:0 1 auto;max-width:100%;min-height:34px;
 padding:7px 10px;border:1px solid #ddcbb8;border-radius:11px;
 background:#f6eee4;color:#6c5139;font-size:11.5px;
 font-weight:500;line-height:1.3;text-align:center;white-space:normal;
 touch-action:manipulation;-webkit-tap-highlight-color:transparent;
 transition:background-color .15s ease,border-color .15s ease;
}
.curatedShelfSwitch:hover{background:#eee0d0;border-color:#cdb498}
.curatedShelfSwitch:active{background:#e5d5c2}
.curatedShelfSwitch:focus-visible{outline:2px solid #ae845c;outline-offset:2px}
.curatedShelves[data-active="shortShelf"] #worldShelf,
.curatedShelves[data-active="worldShelf"] #shortShelf{display:none!important}
.curatedShelves #worldShelf,.curatedShelves #shortShelf{padding-top:5px;padding-bottom:9px}
.curatedShelves .ws-heading{
 font:600 12px/1.2 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
 letter-spacing:0;color:#74604d;
}
body.nightMode .curatedShelves{background:#282725;border-color:#51473e}
body.nightMode .curatedShelfHeading{color:#ece5dc}
body.nightMode .curatedShelfSwitch{background:#39342d;border-color:#665849;color:#dfc8ae}
body.nightMode .curatedShelfSwitch:hover{background:#443c33}
body.nightMode .curatedShelves .ws-heading{color:#c8b49b}
@media(max-width:360px){
 .curatedShelfHeader{padding:9px 9px 2px}
 .curatedShelfHeading{font-size:17px}
 .curatedShelfSwitch{font-size:11px;padding:7px 9px}
}
@media(prefers-reduced-motion:reduce){
 .curatedShelfSwitch{transition:none!important}
}

/* Golden Shelf lives in the same visual world as New Arrivals:
   tabletop, overlapping paper covers, natural tilt and very light controls. */
.curatedShelves{
  border:1px solid #e7d9ca;border-radius:22px;
  background:#f7e8da;
  box-shadow:0 7px 20px rgba(83,54,31,.06),inset 0 1px rgba(255,255,255,.72);
}
.curatedShelfHeader{
  padding:9px 15px 7px;min-height:55px;
  background:linear-gradient(180deg,#f8eadd,#f7e8da);
}
.curatedShelfHeading{
  color:#241e18;font:400 clamp(18px,5.5vw,27px)/1.13 var(--display-font,Georgia,serif);
  letter-spacing:-.035em;
}
.curatedShelfSwitch{
  flex:0 0 auto;border-color:rgba(159,125,96,.30);
  border-radius:12px;background:rgba(234,219,204,.52);
  color:#795c47;font-weight:500;font-size:11px;min-height:35px;
}
.curatedShelves #shortShelf,.curatedShelves #worldShelf{padding:0!important}
.curatedShelves .ws-head{
  padding:7px 15px 4px!important;margin:0!important;
  background:#f7e8da;
}
.curatedShelves .ws-heading{font-size:12px;color:#765943}
.curatedShelves .ws-subtitle{font-size:10px;color:#947c69}
.curatedShelves .ws-next{
  border-color:rgba(159,125,96,.30);background:rgba(234,219,204,.48);color:#795c47;
  border-radius:12px;width:36px;height:36px;
}
.curatedShelves .ws-grid.wsGoldScene{
  display:block!important;width:100%;aspect-ratio:1.47;min-width:0;
  padding:0!important;margin:0!important;border-radius:0;
}
.curatedShelves .wsGoldScene .newArrivalTile{
  cursor:pointer;min-height:0!important;
}
.curatedShelves .wsGoldScene .newArrivalCover{
  border-radius:7px 10px 8px 7px;
  color:#191713;
}
.curatedShelves .wsGoldScene .wsGoldArt:not([style*="background-image"]){
  background-image:
    radial-gradient(ellipse at 72% 78%,rgba(255,242,201,.65) 0 14%,transparent 38%),
    linear-gradient(156deg,rgba(255,255,255,.3) 4%,transparent 32%,rgba(75,53,41,.16) 98%),
    repeating-linear-gradient(134deg,transparent 0 17px,rgba(255,255,255,.12) 18px 19px);
}
.curatedShelves .wsGoldScene .newArrivalLettering{
  background:linear-gradient(180deg,var(--arrival-tint) 0%,var(--arrival-tint) 60%,transparent 100%);
}
.curatedShelves .wsGoldScene .newArrivalAuthor,
.curatedShelves .wsGoldScene .newArrivalTitle{font-weight:400}
.curatedShelves .wsGoldScene .newArrivalRibbon{bottom:-12px}
.curatedShelves .wsGoldScene .newArrivalTile:focus-visible{
  outline:2px solid #946947!important;outline-offset:4px;
}
.wsPreviewOverlay .livePreviewCard{
  position:relative;width:min(410px,calc(100vw - 24px));overflow:hidden;
  background:#f9f1e8;
}
.wsPreviewClose{
  position:absolute;right:12px;top:11px;z-index:8;display:grid;place-items:center;
  width:36px;height:36px;padding:0;border:1px solid rgba(82,55,29,.23);
  border-radius:50%;background:rgba(255,252,246,.92);color:#47392e;font-size:23px;
}
.wsPreviewArt{
  min-height:155px;display:flex;align-items:center;justify-content:center;
  padding:25px 50px;background:
    radial-gradient(ellipse at 20% 30%,rgba(255,255,255,.6),transparent 53%),
    repeating-linear-gradient(132deg,rgba(255,255,255,.10) 0 2px,transparent 3px 25px),
    linear-gradient(145deg,#e2b68a,#a97a56);
}
.wsPreviewArtTitle{
  max-width:100%;font:500 23px/1.16 var(--display-font,Georgia,serif);
  color:#382a20;text-align:center;overflow-wrap:anywhere;
}
.wsPreviewKicker{color:#8b765f;font-size:11px;letter-spacing:.02em}
.wsPreviewDescription{color:#5e544b;font-size:13px;line-height:1.55;margin:9px 0 13px}
.wsPreviewActions{display:flex;gap:9px;justify-content:flex-start}
.wsPreviewAdd{
  min-height:42px;padding:9px 15px;border-radius:11px;
  background:#f0d9bd;border:1px solid #cfa982;color:#4b3828;font-weight:600;
}
.wsPreviewAdd:focus-visible,.wsPreviewClose:focus-visible{outline:2px solid #946947;outline-offset:3px}
body.nightMode .curatedShelves,body.nightMode .curatedShelfHeader,
body.nightMode .curatedShelves .ws-head{background:#302922}
body.nightMode .curatedShelfHeading{color:#f0e5d6}
body.nightMode .curatedShelves .ws-heading{color:#dbc5aa}
body.nightMode .curatedShelves .ws-subtitle{color:#baaa98}
body.nightMode .wsPreviewOverlay .livePreviewCard{background:#302a24;color:#efe5da}
body.nightMode .wsPreviewOverlay .livePreviewTitle{color:#efe5da}
body.nightMode .wsPreviewDescription{color:#c9bcad}
@media(max-width:360px){
  .curatedShelfHeader{padding:7px 10px 6px}
  .curatedShelfSwitch{font-size:10px;max-width:48%}
}

/* Golden Shelf's not-yet-imported card shares the ordinary 'Найти'
   audiobook workflow rather than changing the main search query. */
.wsPreviewFind{
  min-height:42px;padding:9px 15px;border-radius:11px;
  background:#fffaf3;border:1px solid #d5bb9a;color:#604731;font-weight:600;
}
.wsPreviewFind:hover{background:#f6e8d6}
.wsPreviewFind:focus-visible{outline:2px solid #946947;outline-offset:3px}
body.nightMode .wsPreviewFind{
  background:#40372e;color:#efdbbe;border-color:#77634d;
}


/* Release 0.999.30: half-height Golden Shelf. Four real, tappable covers
   are composed in a horizontal paper scene instead of two tall layers. */
.curatedShelves{margin-bottom:7px;border-radius:18px}
.curatedShelves .curatedShelfHeader{
  padding:6px 12px 2px;min-height:39px;gap:5px;
}
.curatedShelves .curatedShelfHeading{
  font-size:clamp(17px,4.3vw,23px);line-height:1.12;
}
.curatedShelves .curatedShelfSwitch{
  min-height:29px;padding:4px 9px;border-radius:9px;font-size:10.3px;
}
.curatedShelves #shortShelf .ws-head,.curatedShelves #worldShelf .ws-head{
  padding:0 12px 4px!important;min-height:28px;align-items:center;
}
.curatedShelves .ws-heading{font-size:10.5px}
.curatedShelves .ws-subtitle{display:none}
.curatedShelves .ws-next{
  width:27px;height:27px;border-radius:9px;
}
.curatedShelves .ws-next svg{width:15px;height:15px}
.curatedShelves .ws-grid.wsGoldScene{
  aspect-ratio:3.5;min-height:98px;max-height:230px;
  background:
    radial-gradient(ellipse at 49% 8%,rgba(255,255,255,.50),transparent 70%),
    linear-gradient(180deg,#f6e8db,#ecd4be);
}
.curatedShelves .wsGoldScene .newArrivalTable{inset:61% 0 0}
.curatedShelves .wsGoldScene .newArrivalPlant,
.curatedShelves .wsGoldScene .newArrivalParcel{display:none}
.curatedShelves .wsGoldScene .newArrivalTile{
  width:20.5%!important;height:88%!important;top:4%;z-index:3;
}
.curatedShelves .wsGoldScene .newArrivalTile--1{left:5%;top:5%;--arrival-tilt:-3.3deg}
.curatedShelves .wsGoldScene .newArrivalTile--2{left:28%;top:3%;--arrival-tilt:2.3deg}
.curatedShelves .wsGoldScene .newArrivalTile--3{left:51%;top:6%;--arrival-tilt:-2.6deg}
.curatedShelves .wsGoldScene .newArrivalTile--4{left:74%;top:4%;--arrival-tilt:3deg}
.curatedShelves .wsGoldScene .newArrivalCover{box-shadow:0 5px 9px rgba(73,46,30,.18),1px 2px 2px rgba(73,46,30,.12)}
.curatedShelves .wsGoldScene .newArrivalLettering{
  height:88%;gap:2px;padding:9% 8% 0 14%;
  background:linear-gradient(180deg,var(--arrival-tint) 0%,var(--arrival-tint) 53%,transparent 100%);
}
.curatedShelves .wsGoldScene .newArrivalAuthor{
  font-size:clamp(7px,1.7cqw,10px);line-height:1.12;
  -webkit-line-clamp:2;
}
.curatedShelves .wsGoldScene .newArrivalTitle,
.curatedShelves .wsGoldScene .newArrivalTile--3 .newArrivalTitle,
.curatedShelves .wsGoldScene .newArrivalTile--4 .newArrivalTitle{
  font-size:clamp(9px,2.85cqw,15px);line-height:1.08;
  -webkit-line-clamp:3;
}
.curatedShelves .wsGoldScene .newArrivalRibbon{
  bottom:-5px;height:12px;width:7px;
}
@media(max-width:359px){
  .curatedShelves .curatedShelfHeader{padding:6px 9px 2px}
  .curatedShelves .curatedShelfSwitch{font-size:9.7px;padding-inline:6px}
  .curatedShelves .ws-grid.wsGoldScene{min-height:94px}
}
@media(min-width:700px){
  .curatedShelves .ws-grid.wsGoldScene{max-height:230px}
}
body.nightMode .curatedShelves .ws-grid.wsGoldScene{
  background:linear-gradient(180deg,#403226,#362820);
}
