/* loot: every selector starts with the tool's root class (TOOLS.md).
   The idea: the loot window and the dungeon journal of the game — item names in their quality colours with the
   game's icons, the chance in tabular figures, bosses numbered in the order of the instance. Quiet otherwise. */
.kc-t-loot .kc-t-loot-form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 12px 16px; align-items: end; padding: 14px 16px; margin: 4px 0 14px; border: 1px solid #5d5132; background: rgba(6, 8, 26, 0.7); font: 15px/1.4 var(--sans, system-ui, sans-serif); }
.kc-t-loot .kc-t-loot-form label { display: grid; gap: 4px; color: #c9c0a8; }
.kc-t-loot .kc-t-loot-form select { font: inherit; font-size: 16px; padding: 8px 10px; background: #0a0d16; color: #f3ead1; border: 1px solid #8d713b; border-radius: 0; width: 100%; }
.kc-t-loot .kc-t-loot-form button { font: inherit; font-weight: 700; padding: 10px 16px; background: #ddb45e; color: #171105; border: 1px solid #efcd7b; cursor: pointer; }
.kc-t-loot .kc-t-loot-jump ol { display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 18px; padding-inline-start: 22px; color: #aaa38f; }
.kc-t-loot .kc-t-loot-jump a { color: #ffd100; }
/* the bosses' table of contents: real items, the number written in each, wrapping cleanly at every width */
.kc-t-loot .kc-t-loot-toc ol { list-style: none; padding: 0; gap: 6px 22px; }
.kc-t-loot .kc-t-loot-toc li { max-width: 100%; }
.kc-t-loot .kc-t-loot-toc a { display: inline-flex; gap: 6px; align-items: baseline; text-decoration: none; }
.kc-t-loot .kc-t-loot-toc a:hover, .kc-t-loot .kc-t-loot-toc a:focus-visible { text-decoration: underline; }
.kc-t-loot .kc-t-loot-jn { color: #aaa38f; font-variant-numeric: tabular-nums; min-width: 1.6em; text-align: end; }
.kc-t-loot .kc-t-loot-boss h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.kc-t-loot .kc-t-loot-n { display: inline-block; min-width: 1.6em; padding: 0 6px; border: 1px solid #8d713b; color: #ffd100; font-size: 0.8em; text-align: center; font-variant-numeric: tabular-nums; }
.kc-t-loot .kc-t-loot-sub, .kc-t-loot .kc-t-loot-xy { color: #aaa38f; font-size: 0.9rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.kc-t-loot .kc-t-loot-kind { font-size: 0.8rem; font-weight: 600; padding: 1px 6px; border: 1px solid #9aa0ae; color: #d8d8e0; }
.kc-t-loot .kc-t-loot-tbl td { white-space: normal; vertical-align: top; }
.kc-t-loot .kc-t-loot-tbl td:first-child { min-width: 14em; }
.kc-t-loot .kc-t-loot-tbl td:first-child a, .kc-t-loot .kc-t-loot-tbl td:first-child span { font-weight: 600; }
.kc-t-loot .kc-t-loot-ch { color: #f3ead1; }
.kc-t-loot .kc-t-loot-set { color: #ffd100; }
.kc-t-loot .kc-t-loot-none { color: #aaa38f; }
.kc-t-loot .kc-t-loot-where, .kc-t-loot .kc-t-loot-entrance { color: #c9c0a8; margin: 0 0 8px; }
.kc-t-loot .kc-t-loot-zones { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 6px 20px; }
.kc-t-loot .kc-t-loot-zones a { color: #ffd100; font-weight: 600; }
.kc-t-loot tr[hidden] { display: none; }
@media (max-width: 720px) {
  .kc-t-loot .kc-t-loot-form { grid-template-columns: 1fr 1fr; }
  .kc-t-loot .kc-t-loot-form button { grid-column: 1 / -1; }
  .kc-t-loot .kc-t-loot-tbl td:first-child { min-width: 11em; }
}
