/* share.css — one share control under every book, and the sheet it opens. */

.sh-btn{
  display:inline-flex;align-items:center;gap:.42em;
  margin-top:.55rem;padding:.42em .9em;
  font:inherit;font-size:.92rem;line-height:1;
  color:var(--amber,#C9922E);background:transparent;
  border:1px solid rgba(201,146,46,.42);border-radius:var(--r,3px);
  cursor:pointer;-webkit-appearance:none;appearance:none;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.sh-btn:hover,.sh-btn:focus-visible{background:rgba(201,146,46,.13);border-color:var(--amber,#C9922E)}
.sh-btn svg{width:1.02em;height:1.02em;flex:none}
.rec-body .sh-btn,.feat-body .sh-btn{margin-top:.6rem}

/* compact variant for the A–Z index rows */
.sh-mini{
  margin:0 0 0 .5rem;padding:.2em .55em;font-size:.8rem;
  border-color:rgba(201,146,46,.3);vertical-align:baseline;
}

/* ── sheet ─────────────────────────────────────────────────────── */
.sh-veil{
  position:fixed;inset:0;z-index:9998;
  background:rgba(10,6,4,.66);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px);
  opacity:0;transition:opacity .18s ease;
}
.sh-veil[data-open]{opacity:1}

.sh-sheet{
  position:fixed;z-index:9999;left:50%;bottom:0;transform:translate(-50%,100%);
  width:min(30rem,100%);max-height:88vh;overflow:auto;
  background:#1B120D;color:var(--paper,#F7F2E6);
  border:1px solid rgba(201,146,46,.34);border-bottom:0;
  border-radius:14px 14px 0 0;
  box-shadow:0 -18px 50px rgba(0,0,0,.6);
  transition:transform .22s cubic-bezier(.22,.75,.3,1);
  padding-bottom:max(1rem,env(safe-area-inset-bottom));
  font-family:var(--serif,Georgia,serif);
}
.sh-sheet[data-open]{transform:translate(-50%,0)}
@media (min-width:46rem){
  .sh-sheet{top:50%;bottom:auto;border-radius:12px;border-bottom:1px solid rgba(201,146,46,.34);
    transform:translate(-50%,-46%);opacity:0}
  .sh-sheet[data-open]{transform:translate(-50%,-50%);opacity:1}
}
@media (prefers-reduced-motion:reduce){
  .sh-sheet,.sh-veil{transition:none}
}

.sh-grip{width:2.4rem;height:.25rem;border-radius:3px;background:rgba(201,146,46,.35);margin:.6rem auto .2rem}
@media (min-width:46rem){.sh-grip{display:none}}

.sh-head{display:flex;gap:.85rem;align-items:flex-start;padding:.9rem 1.1rem .85rem}
.sh-head img{width:3.4rem;height:auto;border:1px solid rgba(201,146,46,.3);border-radius:2px;flex:none}
.sh-head h2{margin:0 0 .2rem;font-family:var(--display,Georgia,serif);font-size:1.06rem;line-height:1.2;color:var(--paper,#F7F2E6)}
.sh-head p{margin:0;font-size:.82rem;line-height:1.45;color:rgba(247,242,230,.68)}
.sh-head .sh-prices{color:var(--amber,#C9922E)}
.sh-x{
  margin-left:auto;flex:none;background:none;border:0;cursor:pointer;
  color:rgba(247,242,230,.6);font-size:1.5rem;line-height:1;padding:.1rem .3rem;
}
.sh-x:hover{color:var(--paper,#F7F2E6)}

.sh-grid{
  display:grid;grid-template-columns:repeat(auto-fit,minmax(6.4rem,1fr));
  gap:.5rem;padding:.25rem 1.1rem .4rem;
}
.sh-i{
  display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:.45rem;
  padding:.8rem .35rem;min-height:5.1rem;
  font:inherit;font-size:.8rem;text-align:center;text-decoration:none;
  color:var(--paper,#F7F2E6);background:rgba(255,255,255,.035);
  border:1px solid rgba(201,146,46,.2);border-radius:8px;cursor:pointer;
  transition:background .15s ease,border-color .15s ease;
}
.sh-i:hover,.sh-i:focus-visible{background:rgba(201,146,46,.12);border-color:rgba(201,146,46,.5)}
.sh-i svg{width:1.45rem;height:1.45rem;flex:none}
.sh-i b{font-weight:400;display:block}
.sh-i small{display:block;font-size:.68rem;line-height:1.25;color:rgba(247,242,230,.55)}

.sh-note{margin:.3rem 1.1rem .2rem;font-size:.76rem;line-height:1.5;color:rgba(247,242,230,.55)}
.sh-note b{color:rgba(247,242,230,.8);font-weight:400}

.sh-toast{
  position:fixed;z-index:10000;left:50%;bottom:1.4rem;transform:translate(-50%,1.2rem);
  background:#241811;color:var(--paper,#F7F2E6);
  border:1px solid rgba(201,146,46,.45);border-radius:7px;
  padding:.7rem 1.05rem;font:inherit;font-size:.85rem;line-height:1.4;
  max-width:min(26rem,92vw);text-align:center;
  box-shadow:0 10px 30px rgba(0,0,0,.5);
  opacity:0;pointer-events:none;transition:opacity .2s ease,transform .2s ease;
}
.sh-toast[data-open]{opacity:1;transform:translate(-50%,0)}

@media print{.sh-btn,.sh-sheet,.sh-veil,.sh-toast{display:none!important}}
