/* PKE Wiki — Drops tab
   Load after style.css:
     <link rel="stylesheet" href="drops-tab.css">
   Everything is namespaced .dt-* so it can't touch the rest of the wiki. */

.dt-wrap {
  /* palette comes from :root in style.css — no local copies */
  --dt-line: var(--border);
  --dt-band: var(--band);
  --dt-gold: var(--gold);
  --dt-brass: var(--brass);
  --dt-dim: var(--text-dim);
  --dt-sure: var(--green);
  max-width: 1180px;
  margin: 0 auto;
}
.dt-wrap, .dt-wrap * { box-sizing: border-box; }

.dt-count {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--dt-brass);
  margin: 0 0 14px;
}

/* ---------- one droppable item ---------- */
.dt-row {
  border: 1px solid var(--dt-line);
  border-radius: 10px;
  background: var(--dt-band);
  margin-bottom: 8px;
  overflow: hidden;
}
.dt-row[open] { border-color: var(--line); }

.dt-sum {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  cursor: pointer;
  list-style: none;
  min-height: 46px;
}
.dt-sum::-webkit-details-marker { display: none; }
.dt-sum:hover { background: #16273a; }

.dt-icon {
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
}
.dt-img { width: 26px; height: 26px; object-fit: contain; image-rendering: pixelated; }

.dt-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}
.dt-name:hover { color: var(--dt-gold); text-decoration: underline; }

.dt-type {
  font-size: 10.5px;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: var(--dt-dim);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 2px 6px;
  white-space: nowrap;
}
.dt-n {
  font-size: 11px;
  color: var(--dt-brass);
  white-space: nowrap;
  flex: 0 0 auto;
}

/* ---------- the sources under it ---------- */
.dt-srcs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 6px;
  padding: 0 14px 13px;
}

.dt-src {
  appearance: none;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  transition: border-color .15s, background .15s;
}
.dt-src:hover { border-color: var(--dt-brass); background: #16273a; }
.dt-src:focus-visible { outline: 2px solid var(--dt-gold); outline-offset: 2px; }

.dt-src-icon { flex: 0 0 auto; font-size: 14px; }
.dt-src-name {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dt-src-slot {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--dt-dim);
}
.dt-src-amt { font-size: 12px; color: var(--text); white-space: nowrap; }
.dt-src-chance {
  font-size: 12px;
  font-weight: 600;
  color: var(--dt-brass);
  white-space: nowrap;
  min-width: 46px;
  text-align: right;
}
.dt-src-chance.is-sure { color: var(--dt-sure); }

@media (max-width: 560px) {
  .dt-sum { gap: 8px; padding: 10px 11px; }
  .dt-type { display: none; }          /* type badge is the first thing to go */
  .dt-name { font-size: 14px; }
  .dt-srcs { grid-template-columns: 1fr; padding: 0 11px 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .dt-src { transition: none; }
}

/* type comes from the shared tokens */
.dt-name { font-family: var(--font-display); }
.dt-count, .dt-type, .dt-n,
.dt-src-slot, .dt-src-amt, .dt-src-chance { font-family: var(--font-data); }
