/* Item List page — extends the guide layout (guide.css) */

.il-intro p {
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.6;
}

.il-summary {
  margin-bottom: 0;
}

.il-summary .gd-table td:last-child {
  color: #fff;
}

.il-num {
  text-align: right !important;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.il-ok {
  color: #7fdc9f;
  font-weight: 800;
}

.il-no {
  color: #ffb84a;
  font-weight: 800;
}

.il-count {
  display: inline-block;
  margin-left: 4px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}

.gd-tab.is-active .il-count {
  background: #f16700;
  color: #fff;
}

.il-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
}

.il-controls[hidden] {
  display: none;
}

.il-field {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.il-field > span {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.il-grow {
  flex: 1 1 240px;
}

.il-field input,
.il-field select {
  width: 100%;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  color-scheme: dark;
}

.il-field input:focus-visible,
.il-field select:focus-visible,
.il-reset:focus-visible,
.gd-tab:focus-visible {
  outline: 2px solid #ffb84a;
  outline-offset: 2px;
}

.il-reset {
  padding: 8px 4px;
  border: 0;
  background: none;
  color: #ffb84a;
  font: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.il-status {
  margin: 0 0 12px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

.il-status:empty {
  display: none;
}

.il-status b {
  color: #fff;
}

.il-table td:first-child {
  white-space: normal;
  min-width: 180px;
}

.il-table td:last-child {
  min-width: 200px;
}

.il-name {
  display: block;
  color: #fff;
  font-weight: 700;
}

.il-unnamed {
  font-style: italic;
  color: rgba(255, 255, 255, 0.6);
}

.il-id {
  display: block;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  word-break: break-all;
}

.il-rare {
  white-space: nowrap;
  font-weight: 800;
  color: #fff;
}

.il-rare-hi {
  color: #ffd24a;
}

.il-rare-lo {
  color: rgba(255, 255, 255, 0.55);
}

.il-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.il-chip {
  padding: 2px 8px;
  border-radius: 5px;
  background: rgba(127, 220, 159, 0.14);
  color: #9fe8b7;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.il-chip-flag {
  background: rgba(255, 106, 0, 0.16);
  color: #ffb84a;
}

.il-muted {
  color: rgba(255, 255, 255, 0.45);
}

.il-empty td {
  padding: 24px 14px;
  text-align: center;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 400 !important;
  white-space: normal !important;
}

@media (max-width: 560px) {
  .il-field {
    flex: 1 1 calc(50% - 12px);
  }

  .il-grow {
    flex-basis: 100%;
  }
}

.il-sub {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
}
