/* ============================================================
   POKÉDEX — /pokemon/ + /pokemon/{slug}/
   ------------------------------------------------------------
   Editorial cousin of /sets/, /set/, and /card/. The index is
   a Codex of all 1,025 species grouped by generation chapter.
   Each entity page is a species profile + TCG appearances spec
   sheet. System sans body, Instrument Serif italic for titles,
   JetBrains Mono for folios + dex numbers + small caps.
   ============================================================ */

.pokedex,
.pokedex-entity {
  --paper: #ffffff;
  --paper-soft: #f7f7f9;
  --paper-edge: #f2f2f5;
  --ink: #0e1430;
  --ink-soft: rgba(14, 20, 48, 0.62);
  --ink-faint: rgba(14, 20, 48, 0.4);
  --rule: rgba(14, 20, 48, 0.1);
  --accent: #1F2258;
  --accent-warm: #C3401A;
  --type-tint: #1F2258;

  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px 96px;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body:has(.pokedex),
body:has(.pokedex-entity) {
  background: #fff;
}

.pokedex .mono,
.pokedex-entity .mono {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-feature-settings: 'tnum' 1;
}
.pokedex .serif,
.pokedex-entity .serif {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
}

/* ---------- Breadcrumb ---------- */
.pokedex-breadcrumb {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 32px 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.pokedex-breadcrumb a {
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.15s ease;
}
.pokedex-breadcrumb a:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pokedex-breadcrumb [aria-current] {
  color: var(--ink);
}

/* ============================================================
   INDEX MASTHEAD — "Volume II · The Pokédex"
   ============================================================ */
.pokedex-masthead {
  padding: 80px 0 56px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 48px;
}
.pokedex-vol {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.pokedex-title {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  font-weight: 800;
  font-size: clamp(48px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0 0 28px;
  color: var(--ink);
  max-width: 14ch;
}
.pokedex-title em {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.pokedex-lede {
  max-width: 56ch;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 40px;
}
.pokedex-stats {
  display: flex;
  gap: 56px;
  flex-wrap: wrap;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
}
.pokedex-stats > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.pokedex-stats .num {
  font-weight: 700;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.pokedex-stats .label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ============================================================
   STICKY CONTROLS — search + type + generation + TCG-only
   ============================================================ */
.pokedex-controls {
  position: sticky;
  top: 0;
  z-index: 12;
  background: var(--paper);
  backdrop-filter: saturate(180%) blur(8px);
  padding: 16px 0 20px;
  margin-bottom: 56px;
  border-bottom: 1px solid var(--rule);
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) minmax(140px, 1fr) minmax(140px, 1fr) auto auto;
  gap: 20px;
  align-items: end;
}
.pokedex-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.pokedex-control-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pokedex-control-input {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1.5px solid var(--ink);
  color: var(--ink-soft);
  transition: border-color 0.15s ease;
}
.pokedex-control-input:focus-within { border-bottom-color: var(--accent-warm); }
.pokedex-control-input input {
  appearance: none;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  outline: none;
  width: 100%;
  padding: 0;
}
.pokedex-control-input input::placeholder { color: var(--ink-faint); }
.pokedex-control-input svg { flex-shrink: 0; color: var(--ink-soft); }

.pokedex-control-select {
  position: relative;
  display: flex;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1.5px solid var(--ink);
}
.pokedex-control-select select {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  outline: none;
  padding: 0 24px 0 0;
  width: 100%;
}
.pokedex-control-select svg {
  position: absolute;
  right: 0;
  pointer-events: none;
  color: var(--ink-soft);
}
.pokedex-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  transition: all 0.15s ease;
  user-select: none;
}
.pokedex-toggle:has(input:checked) {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}
.pokedex-toggle input { display: none; }
.pokedex-control-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  justify-self: end;
  align-self: end;
  padding-bottom: 6px;
}

/* ============================================================
   GENERATION JUMP PILLS
   ============================================================ */
.pokedex-jump {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0 0 48px;
}
.pokedex-jump a {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  text-decoration: none;
  color: var(--ink-soft);
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  font-size: 12px;
  transition: all 0.15s ease;
}
.pokedex-jump a:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.pokedex-jump-roman {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.pokedex-jump-region {
  font-weight: 500;
}
.pokedex-jump-count {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.04em;
  opacity: 0.7;
}

/* ============================================================
   GENERATION CHAPTERS
   ============================================================ */
.dex-gen {
  padding: 56px 0;
  position: relative;
}
.dex-gen + .dex-gen { border-top: 1px solid var(--rule); }
.dex-gen[hidden] { display: none; }

.dex-gen-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.dex-gen-folio {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.dex-gen-folio strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.dex-gen-title {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.dex-gen-stats {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
}

/* ---------- Dex card grid ---------- */
.dex-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 28px 18px;
}
.dex-card { margin: 0; }
.dex-card[hidden] { display: none; }

.dex-card-link {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  position: relative;
  transition: transform 0.18s ease;
}
.dex-card-link:hover { transform: translateY(-3px); }

.dex-card-art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: radial-gradient(
    circle at center,
    color-mix(in srgb, var(--type-tint) 22%, transparent) 0%,
    color-mix(in srgb, var(--type-tint) 8%, transparent) 45%,
    transparent 70%
  );
  display: grid;
  place-items: center;
  transition: transform 0.18s ease;
}
.dex-card-link:hover .dex-card-art {
  transform: scale(1.04);
}
.dex-card-art img {
  position: relative;
  z-index: 1;
  width: 80%;
  height: 80%;
  object-fit: contain;
  display: block;
}
.dex-card-num {
  position: absolute;
  top: 8px;
  left: 10px;
  z-index: 2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.dex-card-tcg {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.dex-card-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 2px;
}
.dex-card-name {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  line-height: 1.2;
}
.dex-card-types {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.type-badge {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: 999px;
  color: #fff;
}

.dex-empty {
  text-align: center;
  padding: 80px 24px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
}

/* ============================================================
   ENTITY PAGE — /pokemon/{slug}/
   ============================================================ */
.pokedex-entity-masthead {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: center;
  padding: 32px 0 64px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 64px;
}
.pokedex-entity-vol {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.pokedex-entity-vol a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 1px;
}
.pokedex-entity-vol a:hover { border-bottom-color: var(--accent-warm); }
.pokedex-entity-title {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink);
}
.pokedex-entity-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 24px;
}
.pokedex-entity-chip {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
}
.pokedex-entity-chip--type { background: var(--type-tint); border-color: var(--type-tint); }
.pokedex-entity-chip--ghost {
  background: transparent;
  color: var(--ink-soft);
  border: 1px solid var(--rule);
}
.pokedex-entity-genus {
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  color: var(--ink-soft);
  margin: 0 0 24px;
}
.pokedex-entity-lede {
  max-width: 60ch;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.55;
  color: var(--ink-soft);
  margin: 0 0 28px;
}
.pokedex-entity-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.pokedex-entity-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.15s ease;
}
.pokedex-entity-btn--primary { background: var(--ink); color: #fff; }
.pokedex-entity-btn--primary:hover { background: var(--accent-warm); }
.pokedex-entity-btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}
.pokedex-entity-btn--ghost:hover { border-color: var(--ink); background: var(--paper-soft); }

.pokedex-entity-affiliate {
  margin: 12px 0 0;
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  line-height: 1.4;
  max-width: 60ch;
}

/* Hero art (right side, with type-tint glow) */
.pokedex-entity-art {
  position: relative;
  justify-self: center;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}
.pokedex-entity-art img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 24px 32px rgba(14, 20, 48, 0.18));
}
.pokedex-entity-art-glow {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at center, var(--type-tint), transparent 65%);
  opacity: 0.22;
  filter: blur(28px);
  pointer-events: none;
}

/* ============================================================
   SECTION SCAFFOLDING — shared across entity sections
   ============================================================ */
.pokedex-section { margin-bottom: 80px; }
.pokedex-section-head {
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.pokedex-folio {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 12px;
}
.pokedex-folio strong { color: var(--ink); font-weight: 600; margin-right: 4px; }
.pokedex-section-title {
  font-family: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(30px, 4.2vw, 44px);
  line-height: 1;
  letter-spacing: -0.015em;
  margin: 0;
  color: var(--ink);
}
.pokedex-count {
  font-style: normal;
  font-size: 18px;
  color: var(--ink-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
  margin-left: 16px;
}

/* ============================================================
   I · SPECIFICATIONS (entity)
   ============================================================ */
.pokedex-spec-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  border-top: 2px solid var(--ink);
  padding-top: 0;
}
.pokedex-spec-block { margin: 0; padding: 24px 0 0; }
.pokedex-spec-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
  margin: 0 0 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--rule);
}
.pokedex-spec-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.pokedex-spec-row dt {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0;
}
.pokedex-spec-row dd {
  margin: 0;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.005em;
  font-weight: 500;
}
.pokedex-flavor {
  border-top: 1px solid var(--rule);
  margin-top: 24px;
  padding-top: 20px;
}
.pokedex-flavor-entry {
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.pokedex-flavor-entry:last-child { border-bottom: 0; }
.pokedex-flavor-game {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 6px;
}
.pokedex-flavor-text {
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  margin: 0;
  font-weight: 400;
  letter-spacing: -0.005em;
}

/* ============================================================
   BASE STATS — horizontal bars (rendered inside Profile spec)
   ============================================================ */
.pokedex-stats-inline {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.pokedex-stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 56px;
}
.pokedex-stat-row {
  display: grid;
  grid-template-columns: 120px 60px 1fr;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--rule);
}
.pokedex-stat-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pokedex-stat-value {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  text-align: right;
  font-feature-settings: 'tnum' 1;
}
.pokedex-stat-bar {
  position: relative;
  height: 4px;
  background: var(--paper-edge);
  border-radius: 4px;
  overflow: hidden;
}
.pokedex-stat-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--type-tint);
  border-radius: 4px;
}
.pokedex-stat-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}
.pokedex-stat-total .label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 600;
}
.pokedex-stat-total .num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 24px;
  font-weight: 700;
  color: var(--ink);
  font-feature-settings: 'tnum' 1;
}

/* ============================================================
   III · EVOLUTION CHAIN
   ============================================================ */
.pokedex-evo {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.evo-step {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 20px 16px;
  border: 1px solid var(--rule);
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  min-width: 130px;
  transition: all 0.18s ease;
  background:
    radial-gradient(circle at top, color-mix(in srgb, var(--type-tint) 18%, transparent), transparent 60%),
    var(--paper);
}
.evo-step:hover {
  border-color: var(--type-tint);
  transform: translateY(-2px);
}
.evo-step.is-current {
  border-color: var(--ink);
  border-width: 2px;
}
.evo-step img {
  width: 80px;
  height: 80px;
  object-fit: contain;
}
.evo-step-num {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
}
.evo-step-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.evo-arrow {
  display: flex;
  align-items: center;
  font-size: 18px;
  color: var(--ink-faint);
  flex: 0 0 auto;
  padding: 0 4px;
}

/* ============================================================
   IV · TCG APPEARANCES — chase row + grid
   ============================================================ */
.pokedex-chase-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px 20px;
  margin-bottom: 48px;
}
.pokedex-tcg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 28px 16px;
}
.pokedex-tcg-tile {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: transform 0.18s ease;
}
.pokedex-tcg-tile:hover { transform: translateY(-3px); }
.pokedex-tcg-art {
  display: block;
  aspect-ratio: 0.72;
  background: var(--paper-soft);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(14, 20, 48, 0.05);
  transition: box-shadow 0.18s ease;
}
.pokedex-tcg-tile:hover .pokedex-tcg-art {
  box-shadow: 0 8px 22px -10px rgba(14, 20, 48, 0.22);
}
.pokedex-tcg-art img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.pokedex-tcg-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 0 2px;
  min-height: 3.2em;
}
.pokedex-tcg-name {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pokedex-tcg-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  color: var(--ink-soft);
}
.pokedex-tcg-meta .mono { font-size: 10px; letter-spacing: 0.04em; }
.pokedex-tcg-price {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  font-feature-settings: 'tnum' 1;
}

.pokedex-no-tcg {
  text-align: center;
  padding: 48px 24px;
  border: 1px dashed var(--rule);
  border-radius: 16px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-style: italic;
  font-size: 18px;
  color: var(--ink-soft);
}

/* ============================================================
   V · FAQ
   ============================================================ */
.pokedex-faq-item {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}
.pokedex-faq-item summary {
  cursor: pointer;
  list-style: none;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  padding-right: 32px;
}
.pokedex-faq-item summary::-webkit-details-marker { display: none; }
.pokedex-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  font-family: 'JetBrains Mono', monospace;
  font-size: 20px;
  color: var(--ink-soft);
}
.pokedex-faq-item[open] summary::after { content: '−'; }
.pokedex-faq-item p {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 64ch;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .pokedex,
  .pokedex-entity { padding: 0 16px 64px; }
  .pokedex-masthead { padding: 48px 0 32px; margin-bottom: 24px; }
  .pokedex-stats { gap: 32px; padding-top: 24px; }
  .pokedex-controls {
    grid-template-columns: 1fr 1fr;
    gap: 16px 14px;
    position: relative;
    top: auto;
  }
  .pokedex-controls .pokedex-control:first-child { grid-column: span 2; }
  .pokedex-control-meta { grid-column: span 2; justify-self: start; }
  .pokedex-entity-masthead {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-bottom: 48px;
    margin-bottom: 48px;
    align-items: start;
  }
  .pokedex-entity-art { order: -1; max-width: 280px; }
  .pokedex-spec-grid,
  .pokedex-stats-grid { grid-template-columns: 1fr; gap: 32px; }
  .pokedex-chase-grid { grid-template-columns: repeat(3, 1fr); gap: 24px 14px; }
}

@media (max-width: 540px) {
  .pokedex-controls { grid-template-columns: 1fr; }
  .pokedex-controls .pokedex-control:first-child { grid-column: 1; }
  .pokedex-control-meta { grid-column: 1; }
  .pokedex-stat-row { grid-template-columns: 100px 50px 1fr; gap: 10px; }
  .dex-grid { grid-template-columns: repeat(2, 1fr); gap: 24px 12px; }
  .pokedex-chase-grid,
  .pokedex-tcg-grid { grid-template-columns: repeat(2, 1fr); }
}
