/* Bestiary page: items.css gives the layout; these are the parts only the bestiary has. */
:root {
  --weak: #6fdc8c;
  --resist: #f0a64a;
  --immune: #ff6b6b;
}
.ecard { justify-content: flex-start; min-height: 128px; }
.nmcell img.none { visibility: hidden; }
.ecard .nopic { color: #4d586a; font-size: 12px; }
.ecard .nm { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 6px; }
.nm .no { color: var(--muted); font-weight: 500; font-variant-numeric: tabular-nums; }
.tag { font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; color: var(--muted); white-space: nowrap; }
.tag.boss { color: var(--accent); border-color: rgba(255,216,74,.45); }
.nmcell .tag { margin-left: 2px; }
.res { display: flex; flex-direction: column; gap: 3px; margin-top: 2px; font-size: 12.5px; line-height: 1.35; }
.rl.none { color: var(--muted); font-size: 12px; }
.lv { display: inline-block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; border-radius: 4px; padding: 0 5px; line-height: 17px; vertical-align: 1px; }
.lv.weak { background: rgba(111,220,140,.16); color: var(--weak); }
.lv.normal { background: var(--panel-2); color: var(--muted); }
.lv.resist { background: rgba(240,166,74,.16); color: var(--resist); }
.lv.immune { background: rgba(255,107,107,.16); color: var(--immune); }
.inflicts { margin-top: auto; }
td.rc.weak { color: var(--weak); }
td.rc.resist { color: var(--resist); }
td.rc.immune { color: var(--immune); }
td.rc.normal { color: #4d586a; }
.variant { color: var(--muted); font-size: 13px; margin-top: -2px; }
.restable tr.normal td { color: var(--muted); }
.restable .aff { color: var(--muted); font-size: 12px; }
.restable .x { font-variant-numeric: tabular-nums; display: inline-block; min-width: 3.6em; }
.src .chance { color: var(--muted); }
.blegend { color: var(--muted); font-size: 12.5px; line-height: 1.5; max-width: 860px; margin: 22px 2px 0; }
.blegend p { margin: 0 0 6px; }
.blegend .lv { margin-right: 1px; }

@media (max-width: 600px) {
  /* the Show and Damage filters share a row; sort and the view switch share the next */
  .right .sel { flex: 1 1 40%; min-width: 0; }
  .right .sel select { flex: 1; min-width: 0; max-width: none; }
  .ecard { min-height: 0; }
}
