/* Her book: the row every list of hers shares (templates/_book.html).
   The name's link is stretched over the whole row, so a press anywhere on it opens
   its page; every other link, form, button and box in the row is raised above that
   and keeps its own press. Each page lays out its own cells on .book-row. */
.book { list-style: none; margin: 0; padding: 0; }
.book-row {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, auto);
  align-items: center; gap: 6px 20px; padding: 12px var(--pad); border-top: 1px solid var(--border);
  font-size: 13.5px; color: var(--text-2); transition: background-color 140ms var(--ease);
}
.book-row:first-child { border-top: 0; }
@media (hover: hover) and (pointer: fine) { .book-row:hover { background: var(--surface-sunk); } }
.book-row:active { background: var(--accent-soft); }
.book-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row-name { font-weight: 600; color: var(--text); overflow-wrap: anywhere; }
.row-name::after { content: ""; position: absolute; inset: 0; }
.row-name:focus-visible { outline: none; }
.row-name:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: var(--r-sm); }
.book-sub { font-size: 12.5px; color: var(--text-muted); }
.book-row a:not(.row-name), .book-row form, .book-row button, .book-row summary,
.book-row input, .book-row select, .book-row label { position: relative; z-index: 1; }
.book-heads { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px var(--pad); }
.book-head {
  display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 0 12px;
  border-radius: var(--pill); border: 1px solid var(--border); font-size: 12px; font-weight: 600; color: var(--text-2);
}
.book-head[aria-current="true"] { color: var(--accent); background: var(--accent-10); border-color: var(--accent-25); }
.book-head .arrow { color: var(--text-muted); }
@media (max-width: 900px) {
  .book-row { grid-auto-flow: row; }
  .book-head { min-height: var(--tap); }
}
