/* Área do leitor: estante e leitura (complementa admin.css e portal.css) */
.small-links { font-size: .85rem; }
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.4rem; }
.shelf__item { background: #fffdf7; border: 2px solid var(--k, #0c0b09); box-shadow: 6px 6px 0 var(--y, #f2b41c); display: flex; flex-direction: column; }
.shelf__cover { display: block; aspect-ratio: 2 / 3; background: #17355a; overflow: hidden; border-bottom: 2px solid var(--k, #0c0b09); }
.shelf__cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.shelf__cover:hover img { transform: scale(1.03); }
.shelf__cover--el { display: grid; place-items: center; }
.shelf__cover--el img { width: 55%; height: auto; object-fit: contain; }
.shelf__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.shelf__body h3 { font-family: Fraunces, serif; font-size: 1.15rem; line-height: 1.15; margin: 0; }
.shelf__body .muted { margin: 0; font-size: .88rem; }
.shelf__tags { margin: 0; display: flex; gap: .3rem; flex-wrap: wrap; min-height: 1.2rem; }
.shelf__act { margin-top: auto; padding-top: .7rem; display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.code-in { font-family: ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; font-size: 1.15rem !important; }
.empty h2 { font-family: Fraunces, serif; margin: .4rem 0; }

/* leitura em tela cheia */
body.leitor--ler { margin: 0; background: #0c0b09; color: #f7f1e3; min-height: 100vh; display: flex; flex-direction: column; }
.rd-top { display: flex; align-items: center; gap: 1rem; padding: .7rem 1rem; background: #0c0b09; border-bottom: 2px solid #f2b41c; position: sticky; top: 0; z-index: 5; }
.rd-top__back { color: #f2b41c; text-decoration: none; font-weight: 700; white-space: nowrap; font-size: .9rem; }
.rd-top__t { flex: 1; min-width: 0; font-family: Fraunces, serif; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rd-frame { flex: 1; width: 100%; min-height: calc(100vh - 110px); border: 0; background: #2a2620; }
.rd-mobile { display: none; padding: 1rem; text-align: center; }
.rd-mobile a { color: #f2b41c; font-weight: 700; }
.rd-note { text-align: center; font-size: .75rem; opacity: .55; margin: .4rem 0 .6rem; }
body.leitor--ler .empty { color: #f7f1e3; margin: 4rem auto; max-width: 520px; text-align: center; }
@media (max-width: 760px) {
  .rd-top__t { font-size: .92rem; }
  .rd-top .b { display: none; }
  .rd-frame { min-height: 70vh; }
  .rd-mobile { display: block; }
  .shelf { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .shelf__body h3 { font-size: 1rem; }
}
