/* Rulebooks (docs/adr/0078), in the hub's look on the paper (site.css, on
   games/house/paper.css): every game's rulebook, a row each under its
   family's heading, the shelf's box art at the left as on the Dailies page
   (static/css/dailies.css), the rulebook's opening line beside it. */

.rbx .kicker { margin: 0 0 var(--s2); }
.rbx h1 { margin: 0 0 var(--s2); }
.rbx .lead { margin: 0 0 var(--s4); }
.rbx-family h2 { margin: var(--s5) 0 var(--s3); }
.rbx-family:first-of-type h2 { margin-top: var(--s4); }

.rbx-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
/* two columns of rows where there's room, as the Dailies page's */
@media (min-width: 900px) { .rbx-list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rbx-row {
  position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: center;
  background: var(--card); border: var(--edge); box-shadow: var(--card-shadow); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s ease, box-shadow .15s ease;
}
.rbx-art { display: block; align-self: stretch; min-height: 84px; overflow: hidden; background: var(--tile); border-right: var(--edge); }
.rbx-art svg { width: 100%; height: 100%; display: block; }
.rbx-text { min-width: 0; padding: 10px 16px; }
.rbx-text h3 { margin: 0; font-size: 18px; line-height: 1.3; }
.rbx-text p { margin: 2px 0 0; font-size: var(--t-note); line-height: 1.45; color: var(--ink-soft); }
.rbx-open { text-decoration: none; }
.rbx-open:hover { text-decoration: underline; text-underline-offset: 3px; }
/* the whole row is the link's target, for a finger */
.rbx-open::after { content: ""; position: absolute; inset: 0; }
.rbx-row:has(.rbx-open:hover), .rbx-row:has(.rbx-open:focus-visible) { box-shadow: var(--card-shadow-up); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .rbx-row { transition: none; } }

@media (max-width: 640px) {
  .rbx-row { grid-template-columns: 88px minmax(0, 1fr); }
  .rbx-text { padding: 10px 12px; }
  .rbx-text h3 { font-size: 16px; }
}
