/* The lending shelf list at /rak/. Uses the site tokens from /styles.css. */
.rak-count { font-family: var(--font-body); font-size: var(--step-0); font-weight: 600; color: var(--ink-muted); margin: 0 0 var(--space-2); }
.rak-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.rak-book { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; gap: 0.25rem var(--space-2); align-items: baseline; padding: 0.9rem 0.5rem; border-bottom: 1px solid var(--rule); scroll-margin-top: 6rem; }
.rak-book:target { background: var(--paper-deep); box-shadow: inset 3px 0 0 var(--baltic); }
.rak-code { font-size: var(--step--1); font-weight: 600; letter-spacing: 0.04em; color: var(--hematite); font-variant-numeric: tabular-nums; }
.rak-title { min-width: 0; }
.rak-title cite { display: block; font-style: normal; font-family: var(--font-display); font-size: var(--step-1); line-height: 1.25; color: var(--ink); }
.rak-author { font-size: var(--step--1); color: var(--ink-muted); }
.rak-status { display: inline-flex; align-items: center; gap: 0.45rem; font-size: var(--step--1); color: var(--ink-muted); white-space: nowrap; }
.rak-status::before { content: ""; flex: none; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--baltic); }
.rak-book[data-state="out"] .rak-status::before { background: transparent; box-shadow: inset 0 0 0 1.5px var(--cover); }
.rak-found { margin-top: var(--space-3); max-width: var(--measure); color: var(--ink-muted); }

/* Tools for the host, shown only on a phone that has the door code */
.rak-staff { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin-bottom: var(--space-3); padding: var(--space-2); border: 1px solid var(--rule); border-radius: 0.5rem; background: var(--card); }
.rak-staff p { margin: 0; }
.rak-staff form { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1); }
.rak-tools { grid-column: 2 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: 0.4rem; font-size: var(--step--1); }
.rak-tools button, .rak-staff button { font: 600 var(--step--1)/1 var(--font-body); padding: 0.6rem 1rem; border: 1px solid var(--button); border-radius: 0.4rem; background: var(--button); color: var(--button-text); cursor: pointer; }
.rak-tools button:hover, .rak-staff button:hover { background: var(--button-hover); }
.rak-staff button.quiet { background: transparent; color: var(--ink); }
.rak-tools input, .rak-staff input { font: inherit; width: 8.5rem; padding: 0.5rem 0.6rem; border: 1px solid var(--cover); border-radius: 0.4rem; background: var(--paper); color: var(--ink); }
.rak-late { color: var(--error); font-weight: 600; }

@media (max-width: 34rem) {
  .rak-book { grid-template-columns: 3.75rem minmax(0, 1fr); }
  .rak-status { grid-column: 2; }
}
.rak-reviews { margin-left: 0.5rem; white-space: nowrap; }
