/* Dedicated Pokedex directory and infobox, using the encyclopedia palette. */
.dex-summary { display: flex; align-items: baseline; gap: 12px; padding: 16px 20px; background: var(--wiki-head); border: 1px solid var(--azoth-card-border); border-radius: 5px 5px 0 0; }
.dex-summary strong { color: var(--azoth-accent-dark); font-size: 30px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.dex-summary span { font-size: 14px; color: var(--wiki-muted); }
.dex-filters { display: flex; align-items: end; flex-wrap: wrap; gap: 14px; padding: 16px 20px; border: 1px solid var(--azoth-card-border); border-top: 0; background: var(--wiki-stripe); }
.dex-filters label { display: flex; flex-direction: column; gap: 5px; font-size: 14px; font-weight: 600; }
.dex-filters .dex-search { flex: 1; min-width: 180px; }
.dex-filters input, .dex-filters select { width: 100%; height: 40px; padding: 7px 10px; font: inherit; font-weight: 400; border: 1px solid var(--azoth-card-border); border-radius: 3px; background: var(--wiki-paper); color: var(--wiki-ink); }
.dex-filters button { min-height: 40px; padding: 7px 13px; border: 1px solid var(--azoth-card-border); border-radius: 3px; color: var(--azoth-accent-dark); background: var(--wiki-paper); cursor: pointer; font: inherit; font-size: 14px; }
.dex-generations { display: flex; flex-wrap: wrap; gap: 5px; padding: 14px 0 4px; }
.dex-generations button { padding: 6px 11px; border: 1px solid var(--wiki-line); border-radius: 3px; font: inherit; font-size: 14px; cursor: pointer; color: var(--md-typeset-a-color); background: var(--wiki-paper); }
.dex-generations button[aria-pressed="true"] { background: var(--wiki-head); color: var(--azoth-accent-dark); border-color: var(--azoth-accent); font-weight: 700; }
.md-typeset .dex-result { font-size: 13px; color: var(--wiki-muted); margin: 10px 0 20px; }
.md-typeset .dex-group h2 { display: flex; align-items: baseline; flex-wrap: wrap; gap: 12px; font-family: var(--md-text-font); font-size: 20px; font-weight: 700; padding: 12px 16px; margin: 26px 0 0; border: 1px solid var(--azoth-card-border); border-bottom: 0; border-radius: 5px 5px 0 0; background: var(--wiki-head); }
.dex-group h2 small { font-family: var(--md-text-font); font-size: 13px; color: var(--wiki-muted); font-weight: 400; }
.dex-table-scroll { overflow-x: auto; border: 1px solid var(--azoth-card-border); border-radius: 0 0 5px 5px; }
.md-typeset .dex-table { display: table; width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin: 0; }
.dex-table th { background: var(--azoth-card-bg); font-size: 13px; font-weight: 700; padding: 10px 12px; white-space: nowrap; }
.dex-table td { padding: 6px 12px; height: 46px; }
.dex-table th, .dex-table td { border-right: 1px solid var(--wiki-line); border-bottom: 1px solid var(--wiki-line); vertical-align: middle; }
.dex-table tr > :last-child { border-right: 0; }
.dex-table tr:last-child > td { border-bottom: 0; }
.dex-table tbody tr:nth-child(even) { background: var(--wiki-stripe); }
.dex-table tbody tr:hover { background: var(--azoth-card-bg); }
.dex-table tr > :first-child { width: 56px; text-align: center; }
.dex-table tr > :nth-child(2) { width: 108px; text-align: center; }
.dex-table tr > :nth-child(4) { width: 165px; }
.dex-table tr > :last-child { width: 115px; text-align: center; }
.dex-table .pk-icon { display: block; width: auto; height: auto; margin: auto; max-width: none; image-rendering: pixelated; }
.dex-name { min-width: 170px; }
.dex-name a { font-weight: 600; }
.dex-number, .dex-total { font-variant-numeric: tabular-nums; }
.dex-number { color: var(--wiki-muted); }
.dex-types { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; }
.dex-type { display: inline-block; background: var(--type-color); color: #fff; border-radius: 3px; padding: 2px 9px; min-width: 44px; text-align: center; font: 13px/1.55 var(--md-text-font); white-space: nowrap; }
.dex-empty { padding: 24px 12px; text-align: center; background: var(--azoth-card-bg); border: 1px solid var(--wiki-line); }
.dex-directory [hidden] { display: none !important; }
.dex-pager { display: grid; grid-template-columns: 1fr auto 1fr; gap: 15px; align-items: center; padding: 12px 16px; margin: 0 0 22px; border: 1px solid var(--azoth-card-border); background: var(--azoth-card-bg); border-radius: 4px; font-size: 14px; }
.dex-pager > :last-child { text-align: right; }
.dex-pager > :nth-child(2) { font-weight: 700; }
.dex-infobox { float: right; width: 272px; max-width: 100%; margin: 0 0 26px 26px; border: 1px solid var(--azoth-card-border); border-radius: 6px; overflow: hidden; background: var(--wiki-paper); }
.dex-infobox-title { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px; background: var(--wiki-head); line-height: 1.5; }
.dex-infobox-title strong { font-size: 19px; }
.dex-infobox-title span { font-size: 17px; font-weight: 700; color: var(--azoth-accent-dark); }
.dex-portrait { display: flex; justify-content: center; padding: 22px 0 8px; }
.dex-portrait-caption { font-size: 12px; text-align: center; color: var(--wiki-muted); padding: 4px 0 12px; }
.dex-infobox-types { display: flex; justify-content: center; gap: 6px; padding: 10px; border-top: 1px solid var(--wiki-line); background: var(--azoth-card-bg); }
.md-typeset .dex-facts { display: grid; grid-template-columns: 110px minmax(0, 1fr); font-size: 14px; margin: 0; line-height: 1.6; }
.dex-facts dt, .dex-facts dd { padding: 9px 10px; margin: 0; border-top: 1px solid var(--wiki-line); }
.dex-facts dt { background: var(--azoth-card-bg); font-weight: 600; border-right: 1px solid var(--wiki-line); }
.dex-facts dd { font-variant-numeric: tabular-nums; }
.dex-lead { font-size: 16px; }
.md-typeset:has(.dex-infobox) > h2 { display: flow-root; }
.md-typeset:has(.dex-infobox) > .md-typeset__scrollwrap {
  display: flow-root; max-height: none; overflow-x: auto;
}
@media (max-width: 760px) {
  .dex-infobox { float: none; width: 100%; margin: 0 0 22px; }
  .dex-filters { padding: 12px; gap: 10px; }
  .dex-filters .dex-search { flex-basis: 100%; }
  .dex-filters label:not(.dex-search) { flex: 1; }
  .dex-pager { padding: 10px; gap: 10px; font-size: 13px; }
  .dex-table { min-width: 630px; }
  .dex-summary { padding: 14px 12px; }
  .dex-generations button { padding: 7px 10px; }
}
