/* assets/tools/books-per-year.css — Books Per Year Calculator additions. Loads after reading-plan.css
   (shared shell, reading-* layout) and reading-time.css (rt-chips, rt-table, rt-reference, rt-guide).
   Every class is bpy-* because the tower sprite's <style> reserves bare names page-wide. */
#bpy-workspace [hidden]{display:none!important}
.bpy-trust{margin:18px 0 0;font-family:var(--mono);font-size:12px;letter-spacing:.06em;color:#a3edcc}
.bpy-mode{margin-bottom:24px}
.bpy-mode .rt-chips span{min-height:52px;padding:8px 10px;font-size:13px;line-height:1.3}
.bpy-chips-6{grid-template-columns:repeat(6,1fr)}
.bpy-chips-7{grid-template-columns:repeat(7,1fr)}
.bpy-field-group{border:0;padding:0;margin:0 0 22px;min-width:0}
.bpy-field-group legend{font-size:13px;color:var(--mist);display:block;margin-bottom:8px;font-weight:400;padding:0}
.bpy-field-group legend span{color:var(--dim)}
.bpy-days-help{margin-top:8px}
#bpy-calculate{width:100%;min-height:48px;font-size:14px;padding:14px 10px;box-shadow:none;border-radius:10px;white-space:normal;line-height:1.35;margin-top:24px}
#bpy-detail{color:var(--mist);font-size:14px;line-height:1.7;margin:0}
#bpy-assumptions{margin-top:17px}
#bpy-note{margin-top:10px;color:var(--mist)}
.bpy-help-link{text-decoration:underline;text-underline-offset:3px}

/* The shelf: a spine per book. Heights and tones come from the index, not randomness, so the same
   result always draws the same shelf. */
.bpy-shelf{display:flex;flex-wrap:wrap;align-items:flex-end;gap:3px 3px;margin:22px 0 4px;padding:0 4px 6px;min-height:46px;border-bottom:2px solid #5ce1a640;box-shadow:0 6px 0 -3px #5ce1a614}
.bpy-spine{--bpy-c:#5CE1A6;position:relative;display:block;width:11px;height:calc(var(--bpy-h) * .5px);border-radius:2px 2px 1px 1px;background:color-mix(in srgb,var(--bpy-c) 22%,transparent);border:1px solid color-mix(in srgb,var(--bpy-c) 60%,transparent);overflow:hidden;transform-origin:bottom;animation:bpy-rise .45s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--bpy-i) * 14ms)}
.bpy-spine::after{content:"";position:absolute;left:0;right:0;bottom:0;height:calc(var(--bpy-fill) * 100%);background:color-mix(in srgb,var(--bpy-c) 70%,transparent)}
.bpy-spine::before{content:"";position:absolute;left:2px;right:2px;top:22%;height:1px;background:#07080c80;z-index:1}
.bpy-spine.is-partial{border-style:dashed}
.bpy-spine.bpy-tone-1{--bpy-c:#4FD1C5}
.bpy-spine.bpy-tone-2{--bpy-c:#7C7BF5}
.bpy-spine.bpy-tone-3{--bpy-c:#FFE3B0}
.bpy-spine.bpy-tone-4{--bpy-c:#A3EDCC}
.bpy-shelf-more{align-self:center;margin-left:6px;font-family:var(--mono);font-size:11px;color:var(--dim)}
@keyframes bpy-rise{from{transform:scaleY(0);opacity:0}to{transform:scaleY(1);opacity:1}}
@media (prefers-reduced-motion:reduce){.bpy-spine{animation:none}}

.bpy-compare{margin-top:22px}
.bpy-compare h3{font-size:14px;font-weight:400;margin:0 0 10px}
.bpy-compare .reading-help{margin-top:10px}
.bpy-tables{display:grid;grid-template-columns:1fr;gap:0}
.bpy-reference p:not(.reading-help){font-size:14px;line-height:1.8;color:var(--muted);max-width:780px}
.bpy-reference p a{text-decoration:underline;text-underline-offset:3px}
.bpy-reference .rt-reference-table{margin-top:22px}
@media(max-width:600px){.bpy-chips-6{grid-template-columns:repeat(3,1fr)}}
@media(max-width:400px){.bpy-chips-7{gap:4px}.bpy-mode .rt-chips span{font-size:12px;padding:8px 6px}}
