/* Library book "Elite Monsters" (pages/library/elites.php) - only the book's own bits; the rest is library.css */

/* perk badges and status icons: the client's own pixel art, scaled up crisp */
.lib-frame .lib-elites-badge{flex:none;width:22px;height:22px;image-rendering:pixelated;filter:drop-shadow(0 1px 2px rgba(0,0,0,.6))}
.lib-frame .lib-elites-status{display:inline-block;width:18px;height:18px;margin:0 7px 0 0;vertical-align:-3px;image-rendering:pixelated}

/* panels holding a small table: the oak head is the heading, the table's own head stays light */
.lib-frame .lib-elites-perk,.lib-frame .lib-elites-mult{margin:0}
.lib-frame :is(.lib-elites-perk,.lib-elites-mult) table.lib-table{margin:0;background:rgba(255,248,228,.35)}
.lib-frame :is(.lib-elites-perk,.lib-elites-mult) .lib-table thead th{
  padding:4px 7px 3px;font-size:10px;letter-spacing:.1em;white-space:normal;
  color:var(--lib-meta);text-shadow:none;background:none;border-bottom:1px solid var(--lib-rule);
}
.lib-frame :is(.lib-elites-perk,.lib-elites-mult) .lib-table thead th + th{border-left:0}
.lib-frame :is(.lib-elites-perk,.lib-elites-mult) .lib-table td{border-left:0}
.lib-frame .lib-elites-perk td:first-child{width:3.2em}
.lib-frame .lib-elites-perk p.lib-small{margin:8px 0 0;line-height:1.45}
.lib-frame .lib-elites-scroll{max-width:100%;overflow-x:auto;scrollbar-width:thin}

/* the 13 perk cards: two columns, one on a narrow sheet */
.lib-frame .lib-elites-perks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:6px 0 10px;align-items:start}
@container lib (max-width:760px){
  .lib-frame .lib-elites-perks{grid-template-columns:minmax(0,1fr)}
}
.lib-frame .lib-elites-perk{scroll-margin-top:calc(var(--nav-h, 64px) + 16px)}

/* the roll rules and the chance table side by side */
.lib-frame ol.lib-elites-steps{margin:4px 0 10px;padding-left:22px}
.lib-frame ol.lib-elites-steps > li{margin:0 0 7px;padding-left:2px}
.lib-frame .lib-elites-ritual .lib-h3{margin-top:0}
.lib-frame .lib-elites-prob td:first-child{white-space:normal}

/* blood orb: the sprite beside its text */
.lib-frame .lib-elites-item{display:flex;align-items:flex-start;gap:14px;margin-top:6px;scroll-margin-top:calc(var(--nav-h, 64px) + 16px)}
.lib-frame .lib-elites-item > .lib-sprite{flex:none;width:48px;height:48px}
.lib-frame .lib-elites-item .lib-h3{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:0}
.lib-frame .lib-elites-item p:last-child{margin-bottom:0}
.lib-frame .lib-h2 .lib-tag{margin-left:8px;vertical-align:3px}

/* soul catchers: empty and holding a soul */
.lib-frame .lib-elites-pair{display:inline-flex;gap:2px;margin-right:8px;vertical-align:middle}
.lib-frame .lib-elites-catchers td{vertical-align:middle}

/* debuffs: the effect column takes the room */
.lib-frame .lib-elites-debuffs td{vertical-align:top}
.lib-frame .lib-elites-debuffs td:first-child,.lib-frame .lib-elites-debuffs td:nth-child(2){white-space:nowrap}
.lib-frame .lib-elites-debuffs td:nth-child(4){min-width:260px}
.lib-frame .lib-elites-debuffs td:last-child{white-space:nowrap}

/* tiers: the table beside what it means */
.lib-frame .lib-elites-tiergrid .lib-table-wrap{margin:0}
.lib-frame .lib-elites-tiergrid .lib-elites-explain{margin:0}
.lib-frame .lib-elites-tiers td:first-child,.lib-frame .lib-elites-mult td:first-child{white-space:nowrap}

/* which creatures */
.lib-frame .lib-elites-who{display:flex;align-items:center;gap:8px;min-width:0}
.lib-frame .lib-elites-pic{display:grid;place-items:center;flex:none;width:32px;height:32px}
.lib-frame .lib-elites-pic img{max-width:32px;max-height:32px;object-fit:contain;image-rendering:pixelated}
.lib-frame .lib-elites-who-table td{vertical-align:middle}
.lib-frame .lib-elites-who-table td:last-child{font-size:13.5px;color:var(--lib-meta)}
.lib-frame .lib-elites-who-table td:last-child .lib-tag{margin-left:4px}
.lib-frame .lib-filterbar .lib-chips + .lib-chips{margin-left:4px}
