/* Where items come from, upgrades and chest loot (temp/wiki_item_sources.php, temp/wiki_chest_loot.php). */
.kb-two>.kb-body{min-width:0}
.kbi details{width:auto;max-width:100%;height:auto;overflow:visible}   /* the site's global CSS gives every details 31.625rem on phones */   /* the one-column layout of phones: wide tables scroll inside .kb-scroll, the page does not */
.kbi h3{font-size:18px;margin:20px 0 8px}
.kbi-box{margin:6px 0 10px;padding:4px 18px 10px;border:1px solid var(--line-2);border-radius:12px;background:var(--hull)}
.kbi-box h2{margin-top:14px}
.kbi-for{display:flex;align-items:center;gap:14px;margin:0 0 10px}
.kbi-for .kb-tile{width:108px;flex:0 0 108px}
.kbi-i{display:inline;white-space:normal}
.kbi-i img{width:24px;height:24px;margin-right:5px;vertical-align:-7px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--line-2)}
.kbi-m{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;color:var(--text)!important}
.kbi-m img{width:26px;height:26px;border-radius:4px;box-shadow:inset 0 0 0 1px var(--line-2)}
.kbi-m b{font-weight:600}
.kbi-mat{display:flex;flex-wrap:wrap;align-items:center;gap:6px}
.kbi-upg td,.kbi-upg th{vertical-align:middle}
.kbi-upg tfoot th,.kbi-upg tfoot td{border-bottom:0;color:var(--text);font-weight:600}
.kbi-where{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 14px;margin:10px 0 4px;font-size:14px}
.kbi-where dt{color:var(--muted)}
.kbi-where dd{margin:0}
.kbi-t td{vertical-align:top}
.kbi-t tr.kbi-has-sub td{border-bottom:0;padding-bottom:2px}
.kbi-t tr.kbi-sub td{padding-top:0}
.kbi-pl{font-size:13px;line-height:1.45;margin-top:2px;overflow-wrap:break-word}   /* not anywhere: that let the name column shrink below a word */
.kbi-li{margin:6px 0 10px}
.kbi-li .kbi-pl{display:block}
.kbi-ul{margin:4px 0 12px;padding-left:20px}
.kbi-ul li{margin:4px 0}
.kbi-list{list-style:none;margin:6px 0 12px;padding:0;display:grid;gap:6px}
.kbi-more summary,.kbi-how summary{cursor:pointer;color:var(--brass);font-size:14px;margin:4px 0}
.kbi-pick{display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:6px 0 4px;font-size:14px;color:var(--muted)}
.kbi-pick select{margin-left:6px;padding:5px 8px;border-radius:6px;border:1px solid var(--line-2);background:var(--abyss);color:var(--text);font:inherit}
.kbi-pick select:focus-visible{outline:2px solid var(--brass);outline-offset:2px}
.kbi-js .kbi-pick button{display:none}
.kbi-loot .kbi-g th{padding-top:14px;color:var(--brass-2);font-family:var(--serif);font-size:16px;font-weight:500;border-bottom-color:var(--line-2)}
.kbi-q{font-size:12.5px;color:var(--muted);line-height:1.4;margin:3px 0 0 46px}
.kbi-how{margin:14px 0 6px;padding:10px 16px;border-left:3px solid var(--brass-2);background:var(--hull);border-radius:0 10px 10px 0}
.kbi-how ol{margin:8px 0 4px;padding-left:20px;font-size:14px;line-height:1.55}
.kbi-how li{margin:0 0 8px}
.kbi-ref{display:inline-block;font-size:11.5px;color:var(--muted);background:var(--abyss);border:1px solid var(--line);border-radius:4px;padding:0 5px;margin:2px 2px 0 0;white-space:nowrap}
@media (max-width:620px){
  .kbi-box{padding:2px 12px 8px}
  .kbi .kb-table th,.kbi .kb-table td{padding:7px 6px}
  .kbi-loot .kb-row-i img{width:30px;height:30px;flex-basis:30px}
  .kbi-q{margin-left:40px}
  .kbi-ref{white-space:normal;overflow-wrap:anywhere}
  .kb-table .kbi-upto{white-space:normal;min-width:84px}
}

/* Weapon pages (temp/wiki.php case item, owner 04.12 22:22): the class once, in the stats, with its sword */
.kb-class-v{display:inline-flex;align-items:center;gap:6px}
.kb-class-v .kb-wc{position:static;background:none;padding:0}
/* the tip on «damage per hit»: hover or focus opens it (no JS needed), a tap or Enter too (public/js/wiki-items.js) */
.kbw{position:relative;max-width:560px}
.kbw .kb-attacks{max-width:none}
.kbw .kb-attacks th:first-child{width:auto}
.kbw .kb-attacks tbody th{color:var(--text);font-weight:500;white-space:nowrap}
.kbw .kb-attacks tbody th kbd{margin-left:6px}
.kbw-trig{all:unset;cursor:help;display:inline-flex;align-items:center;gap:6px;color:var(--brass);font:inherit;font-weight:600;border-bottom:1px dotted rgba(255,216,160,.55);line-height:1.3}
.kbw-trig i{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;border-radius:50%;border:1px solid var(--brass-2);font:700 10px/1 var(--sans);font-style:normal;color:var(--brass)}
.kbw-trig:focus-visible{outline:2px solid var(--brass);outline-offset:3px;border-radius:3px}
.kbw-x{color:var(--muted);font-size:12px;font-weight:500;margin-right:4px}
.kbw-pop{display:none;position:absolute;z-index:45;top:44px;right:0;width:min(440px,100%);padding:14px 16px 12px;background:#1b1510;border:1px solid var(--line-2);border-top:2px solid var(--brass-2);
  border-radius:10px;box-shadow:0 18px 40px rgba(0,0,0,.6);font-size:13.5px;line-height:1.5;color:var(--text);text-align:left;white-space:normal}
.kbw:has(.kbw-trig:hover) .kbw-pop,.kbw:has(.kbw-pop:hover) .kbw-pop,.kbw:has(.kbw-trig:focus-visible) .kbw-pop,.kbw.on .kbw-pop{display:block}
.kbw.kbw-off:not(.on) .kbw-pop{display:none}
.kbw-pop p{margin:0 0 8px}
.kbw-ph{display:block;font-family:var(--serif);font-size:17px;font-weight:500;color:#fff6e6;margin:0 0 6px}
.kbw-st{width:100%;border-collapse:collapse;margin:4px 0 8px;font-size:13px;table-layout:fixed}
.kbw-st thead{display:table-header-group;width:auto}   /* the site's global css turns thead, tr and tbody into blocks and greys the cells */
.kbw-st tbody{display:table-row-group;max-height:none;overflow:visible;padding:0;width:auto}
.kbw-st tr{display:table-row;width:auto;height:auto;background:none}
.kbw-st td{color:var(--text)}
.kbw-st th:first-child{width:34%}
.kbw-st caption{caption-side:top;text-align:left;color:var(--muted);font-size:12.5px;padding:0 0 4px}
.kbw-st th,.kbw-st td{padding:5px 6px;border-bottom:1px solid var(--line);text-align:right;vertical-align:bottom}
.kbw-st thead th{font-size:11.5px;font-weight:500;color:var(--muted);line-height:1.25}
.kbw-st thead th span{display:block}
.kbw-st thead th .kb-wc{position:static;background:none;padding:0;display:inline-flex}
.kbw-st tbody th{text-align:left;font-weight:500;color:var(--text)}
.kbw-st .on{background:rgba(255,216,160,.1);color:#fff6e6;font-weight:600}
.kbw-st thead .on{color:var(--brass)}
.kbw-pn{color:var(--muted);font-size:12.5px;margin:0!important}

/* Chest loot (temp/wiki_chest_loot.php, owner 04.12 22:37): level and luck in plain words, the average worth, weapons as one row */
.kbi-pick-n{font-size:13px;line-height:1.5;color:var(--muted);max-width:70ch;margin:2px 0 12px}
.kbi-pick-n .kb-gbtn{margin-left:4px;vertical-align:1px}
.kbi-luck{font-size:13px;line-height:1.55;color:var(--text);max-width:70ch;margin:-4px 0 14px;padding:10px 14px;border-radius:8px;background:rgba(0,0,0,.2);border:1px solid var(--line)}
.kbi-luck[hidden]{display:none}
.kbi-ev{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 18px;margin:4px 0 16px;padding:12px 18px;border:1px solid var(--line-2);border-left:4px solid var(--brass);border-radius:4px 12px 12px 4px;background:linear-gradient(90deg,rgba(255,216,160,.08),rgba(255,216,160,0) 70%)}
.kbi-ev p{margin:0}
.kbi-ev-n{font-size:15px;color:var(--text)}
.kbi-ev-n b{font-family:var(--serif);font-size:30px;font-weight:700;color:#fff6e6;line-height:1.1;margin-left:4px;white-space:nowrap}
.kbi-ev-n b .kb-coin{width:22px;height:22px}
.kbi-ev-s{font-size:13px;color:var(--muted)}
.kbi-wpick{display:flex;align-items:flex-start;gap:12px}
.kbi-fan{position:relative;flex:0 0 58px;height:40px;margin-top:2px}
.kbi-fan img{position:absolute;top:2px;width:34px;height:34px;border-radius:5px;background:var(--hull-2);box-shadow:0 0 0 1px var(--line-2),0 3px 8px rgba(0,0,0,.45)}
.kbi-fan img:nth-child(1){left:0;transform:rotate(-9deg);z-index:1}
.kbi-fan img:nth-child(2){left:11px;transform:rotate(-1deg);z-index:2}
.kbi-fan img:nth-child(3){left:22px;transform:rotate(8deg);z-index:3}
.kbi-wpick .kbi-q{margin:3px 0 6px}
.kbi-cbtn{margin-top:2px}
.kbi-cands>td{padding-top:6px!important}
.kbi-crule{font-size:12.5px;line-height:1.5;color:var(--muted);margin:2px 0 8px;max-width:72ch}
.kbi-cl{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:2px 18px}
.kbi-cl li{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 10px;padding:5px 0;border-bottom:1px solid var(--line)}
.kbi-cl a{display:flex;align-items:center;gap:8px;min-width:0}
.kbi-cl a span{overflow-wrap:anywhere}
.kbi-cl img{width:30px;height:30px;border-radius:4px;flex:0 0 30px;box-shadow:inset 0 0 0 1px var(--line-2)}
.kbi-cl b{font-weight:600;color:#fff6e6;font-size:13.5px}
.kbi-cl small{grid-column:1/-1;margin:0 0 0 38px;font-size:11.5px;color:var(--rust);line-height:1.3}

/* Notes (temp/wiki.php case note, owner 04.12 22:37): the chest the note opens, where the note lies, the answer behind a button */
.kbn{max-width:70ch;margin:-4px 0 22px;padding:16px 20px 18px;border:1px solid var(--line-2);border-radius:12px;background:var(--hull)}
.kbn-k{display:block;font-size:12.5px;color:var(--muted);margin-bottom:2px}
.kbn-opens{display:flex;align-items:center;gap:14px;padding-bottom:14px;border-bottom:1px solid var(--line)}
.kbn-opens img{width:56px;height:56px;border-radius:8px;flex:0 0 56px;background:var(--abyss);box-shadow:inset 0 0 0 1px var(--line-2)}
.kbn-opens p{margin:0;font-family:var(--serif);font-size:20px;line-height:1.3}
.kbn-opens .kb-lock{font-family:var(--sans);vertical-align:3px}
.kbn-found{padding-top:12px}
.kbn-opens+.kbn-ans,.kbn-found+.kbn-ans{margin-top:14px;padding-top:14px;border-top:1px solid var(--line)}
.kbn-ways{margin:2px 0 0;padding-left:18px;font-size:14.5px;line-height:1.55}
.kbn-ways li{margin:3px 0}
.kbn-ways .kb-lock{margin-left:2px}
.kbn-wh{margin:4px 0 2px!important;font-size:13px;color:var(--muted)}
.kbn-think{font-size:13.5px;color:var(--muted);margin:0 0 8px!important}
.kbn-show{font:600 14px var(--sans);padding:9px 16px;border-radius:8px;border:0;background:var(--brass);color:#24180c;cursor:pointer}
.kbn-show[aria-expanded=true]{background:var(--hull-2);color:var(--brass);box-shadow:inset 0 0 0 1px var(--line-2)}
.kbn-show:focus-visible{outline:2px solid var(--brass);outline-offset:3px}
.kbn-a{display:flex;flex-wrap:wrap;align-items:center;gap:6px 16px;margin-top:12px}
.kbn-a[hidden]{display:none}
.kbn-a b{font-family:var(--serif);font-size:36px;font-weight:700;letter-spacing:.3em;color:#fff6e6;line-height:1}
.kbn-a span{font-size:13.5px;color:var(--muted)}
@media (max-width:400px){
  .kb-quality .kb-row-i img{display:none}
}
@media (max-width:620px){
  .kbw-pop{left:0;right:auto;width:100%;padding:12px 12px 10px}
  .kbw .kb-attacks tbody th{white-space:normal}
  .kbi-ev{padding:10px 14px}
  .kbi-ev-n b{font-size:26px}
  .kbi-fan{flex-basis:48px}
  .kbi-fan img{width:30px;height:30px}
  .kbi-fan img:nth-child(2){left:9px}.kbi-fan img:nth-child(3){left:18px}
  .kbi-cl{grid-template-columns:1fr}
  .kbn{padding:14px 14px 16px}
  .kb-table.kbi-loot thead th,.kb-table.kb-quality thead th,.kb-table.kbi-t thead th{white-space:normal;line-height:1.3;vertical-align:bottom}
  .kbi-loot thead th small{display:block}
  .kbi-fan{display:none}
  .kb-quality .kb-row-i img{width:28px;height:28px;flex-basis:28px}
  .kb-quality .kb-row-i{gap:6px}
  .kb-table.kb-quality th,.kb-table.kb-quality td{padding:7px 5px}
  .kb-quality .kb-money{white-space:nowrap}
  .kbn-opens p{font-size:18px}
}
.kb-class-v{white-space:nowrap}
.kbw-refs{margin:6px 0 0!important;line-height:1.2}
.kbw-rule{max-width:72ch;line-height:1.55}
.kbw-rule .kbi-ref{font-size:11px}
.kbw-nw{white-space:nowrap}
.kbn-here{margin:0 0 14px;font-size:14.5px}
