/* The Explorer page (explorer.html, explorer.js): restyle only, every colour a token of styles.css. */
.explorer { padding-top: 48px; padding-bottom: 64px; }
.ex-controls { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; margin: 0 0 16px; }
.ex-controls label { display: flex; flex-direction: column; gap: 4px; font-size: .88rem; color: var(--dim); }
.ex-controls label[hidden] { display: none; }
.ex-controls input, .ex-controls select {
  font: inherit; font-size: 1rem; color: var(--text); background: var(--sheet);
  border: 1px solid var(--line-strong); border-radius: var(--r); padding: 7px 10px; min-height: 40px;
}
.ex-tabs { display: flex; }
.ex-tabs button {
  font: inherit; font-weight: 600; color: var(--text); background: var(--sheet-2); cursor: pointer;
  border: 1px solid var(--line-strong); padding: 7px 16px; min-height: 40px; margin-left: -1px;
}
.ex-tabs button:first-child { margin-left: 0; border-radius: var(--r) 0 0 var(--r); }
.ex-tabs button:last-child { border-radius: 0 var(--r) var(--r) 0; }
.ex-tabs button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ex-note { color: var(--dim); font-size: .92rem; }
.ex-scroll { overflow-x: auto; background: var(--sheet); border: 1px solid var(--line); border-radius: var(--r); }
.ex-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.ex-caption { text-align: left; padding: 10px 12px; color: var(--dim); font-size: .88rem; caption-side: top; }
.ex-table th, .ex-table td { padding: 8px 12px; text-align: left; border-top: 1px solid var(--line); }
.ex-table th { font-size: .85rem; color: var(--dim); font-weight: 600; }
.ex-table .num { text-align: right; white-space: nowrap; }
.ex-name { font: inherit; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer;
  text-align: left; text-decoration: underline; text-underline-offset: 2px; }
.ex-cost { color: var(--dim); font-size: .85rem; margin-left: 6px; }
.ex-kind { color: var(--dim); font-size: .85rem; margin-left: 6px; }
.ex-detail > td { background: var(--sheet-2); padding: 12px 16px 16px; }
.ex-detail h2 { font-size: 1.1rem; margin: 0 0 8px; }
.ex-detail .ex-table { background: var(--sheet); border: 1px solid var(--line); }
.ex-empty { padding: 16px 0; }

@media (max-width: 760px) {
  body.ex-page .top nav a:not(:first-child):not([aria-current]) { display: none; }
  .ex-controls label, .ex-controls input, .ex-controls select { width: 100%; }
  .ex-table { font-size: .9rem; }
  .ex-table th, .ex-table td { padding: 8px 5px; }
  .ex-cost { display: block; margin: 0; }
  .ex-detail > td { padding: 10px 6px 12px; }
}
