/* Library book "Item Attributes" (pages/library/attributes.php) - only the book's own bits; the rest is library.css */

/* tier stars and stat sockets: the client's tooltip art (images/library/attributes), coloured the way the tooltip
   tints them */
.lib-frame .lib-attributes-stars,.lib-frame .lib-attributes-sockets{display:inline-flex;align-items:center;gap:2px;vertical-align:-1px}
.lib-frame .lib-attributes-stars i,.lib-frame .lib-attributes-sockets i{
  display:block;flex:none;width:9px;height:9px;background:rgba(117,90,50,.3);
  -webkit-mask:url(../../../images/library/attributes/star.png) center/contain no-repeat;
  mask:url(../../../images/library/attributes/star.png) center/contain no-repeat;
}
.lib-frame .lib-attributes-stars i.on{background:var(--c,#a8741e)}
.lib-frame .lib-attributes-sockets{gap:3px}
.lib-frame .lib-attributes-sockets i{
  width:11px;height:11px;background:rgba(93,80,60,.55);
  -webkit-mask-image:url(../../../images/library/attributes/socket_empty.png);mask-image:url(../../../images/library/attributes/socket_empty.png);
}
.lib-frame .lib-attributes-sockets i.on{
  background:var(--c,#a8741e);
  -webkit-mask-image:url(../../../images/library/attributes/socket.png);mask-image:url(../../../images/library/attributes/socket.png);
}
.lib-frame :is(.lib-oak,.lib-on-oak,.lib-table thead) .lib-attributes-stars i{background:rgba(226,187,122,.24)}
.lib-frame :is(.lib-oak,.lib-on-oak,.lib-table thead) .lib-attributes-stars i.on{background:#e8c06a}

/* the stats tables: the stat with its plain words, the tiers, the limit, where it rolls */
.lib-frame .lib-attributes-stats,.lib-frame .lib-attributes-pool{min-width:640px}
.lib-frame :is(.lib-attributes-stats,.lib-attributes-pool) td{vertical-align:top}
.lib-frame :is(.lib-attributes-stats,.lib-attributes-pool) th.c{white-space:nowrap}
.lib-frame .lib-attributes-stat{min-width:230px;max-width:360px}
.lib-frame .lib-attributes-named > div > :is(b,.lib-link){font-weight:700}

/* the client's stat icons (images/library/attributes/stats: 16x16 pixel art, drawn 1:1) before the stat names; in the
   stat rows the icon has a column of its own (an empty slot where the client draws none), so names and words line up;
   in a list of names icon and name stay on one line, so a narrow list is one stat per line, each led by its icon */
.lib-frame .lib-attributes-ico{display:inline-block;flex:none;width:16px;height:16px;image-rendering:pixelated;vertical-align:-3px}
.lib-frame .lib-attributes-named{display:grid;grid-template-columns:16px minmax(0,1fr);column-gap:7px;align-items:start}
.lib-frame .lib-attributes-named > .lib-attributes-ico{display:block;margin-top:2px}
.lib-frame .lib-attributes-pname{white-space:nowrap}
.lib-frame .lib-attributes-pname > .lib-attributes-ico{margin-right:5px}
.lib-frame .lib-attributes-note{font-size:13px;color:var(--lib-meta)}
.lib-frame .lib-attributes-what{display:block;margin-top:2px;font-size:13.5px;line-height:1.35;color:var(--lib-meta)}
.lib-frame .lib-attributes-tier{text-align:center;white-space:nowrap}
.lib-frame .lib-attributes-tier .v{display:block;font-weight:700;font-variant-numeric:lining-nums tabular-nums}
.lib-frame .lib-attributes-tier .s,.lib-frame :is(.lib-attributes-cap,.lib-attributes-on) .s{display:block;font-size:12.5px;line-height:1.3;color:var(--lib-meta)}
.lib-frame .lib-attributes-tier.is-off{opacity:.42}
.lib-frame .lib-attributes-cap{white-space:nowrap}
.lib-frame .lib-attributes-on{min-width:110px}
.lib-frame .lib-attributes-shares{white-space:nowrap;font-size:13.5px;color:var(--lib-meta);font-variant-numeric:lining-nums tabular-nums}

/* small tables inside panels */
.lib-frame .lib-attributes-mini{margin:4px 0 6px}
.lib-frame .lib-attributes-mini td{vertical-align:middle}
.lib-frame .lib-panel .lib-table-wrap{margin:6px 0}

/* the drop steps */
.lib-frame ol.lib-attributes-steps{margin:4px 0 10px;padding-left:22px}
.lib-frame ol.lib-attributes-steps > li{margin:0 0 6px;padding-left:2px}

/* item rows: sprite beside the name */
.lib-frame .lib-attributes-who{display:flex;align-items:center;gap:8px;min-width:0}
.lib-frame .lib-attributes-who .lib-tag{margin-left:2px}
.lib-frame .lib-attributes-pic{display:grid;place-items:center;flex:none;width:32px;height:32px}
.lib-frame .lib-attributes-pic img{max-width:32px;max-height:32px;object-fit:contain;image-rendering:pixelated}
.lib-frame :is(.lib-attributes-items,.lib-attributes-temper,.lib-attributes-innate) td{vertical-align:middle}
.lib-frame .lib-attributes-items th .lib-swatch{margin-right:5px}
.lib-frame .lib-attributes-items td:first-child{min-width:190px}
.lib-frame .lib-attributes-poolcell{font-size:14px;line-height:1.4}
.lib-frame .lib-filterbar .lib-chips + .lib-chips{margin-left:4px}

/* tools: the sprite beside the text */
.lib-frame .lib-attributes-tool{display:flex;align-items:flex-start;gap:12px}
.lib-frame .lib-attributes-tool > .lib-sprite{flex:none;width:48px;height:48px;image-rendering:pixelated}
.lib-frame .lib-attributes-tool .lib-h3{margin-top:0}
.lib-frame .lib-attributes-tool p:last-child{margin-bottom:4px}
.lib-frame .lib-attributes-temper th{white-space:nowrap}
.lib-frame .lib-attributes-temper td:nth-child(2),.lib-frame .lib-attributes-temper td:first-child b{white-space:nowrap}
.lib-frame .lib-h2 .lib-tag{margin-left:8px;vertical-align:3px}

/* one item: outcome rows (label, bar, chance) */
.lib-frame .lib-attributes-oddsgrid > .lib-panel{display:flex;flex-direction:column}
.lib-frame .lib-attributes-odds{display:grid;grid-template-columns:auto minmax(18px,1fr) auto;gap:6px 9px;align-items:center;margin:4px 0 8px}
.lib-frame .lib-attributes-orow{display:contents}
.lib-frame .lib-attributes-orow .l{display:flex;align-items:center;gap:6px;white-space:nowrap;font-size:14.5px}
.lib-frame .lib-attributes-orow .p{font-weight:700;text-align:right;white-space:nowrap;font-variant-numeric:lining-nums tabular-nums;color:#5a3410}
.lib-frame .lib-attributes-oddsgrid p.lib-small{margin:auto 0 0}
.lib-frame .lib-attributes-asidehead{display:grid;place-items:center;margin:0 0 8px}
.lib-frame .lib-attributes-asidehead .lib-sprite{width:64px;height:64px;image-rendering:pixelated}
.lib-frame #ingame q{quotes:"\201C" "\201D"}
