body.pokedex-page {
  background: #f4f8fb;
}

.pdx-shell {
  padding-top: 145px;
  padding-bottom: 4rem;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ---------------- Hero ---------------- */
.pdx-hero {
  margin-bottom: 1.1rem;
}

.pdx-hero h1 {
  margin: 0 0 0.4rem;
  font-family: 'Montserrat', sans-serif;
  font-size: 2.2rem;
}

.pdx-hero-lead {
  max-width: 900px;
  margin: 0 0 0.9rem;
  color: #4b5563;
  font-size: 1rem;
  line-height: 1.55;
}

.pdx-hero-lead a,
.pdx-internal-links a,
.pdx-seo a {
  color: #2563eb;
  font-weight: 600;
}

.pdx-hero-stats {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.4rem;
  padding: 0;
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

.pdx-hero-stats strong {
  color: #0f172a;
  font-size: 1.05rem;
}

/* ---------------- Controls ---------------- */
.pdx-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.7rem 1rem;
  margin-bottom: 1.2rem;
}

.pdx-search-wrap {
  position: relative;
  flex: 1 1 280px;
  min-width: 220px;
}

.pdx-search-icon {
  position: absolute;
  left: 0.95rem;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
}

.pdx-search {
  width: 100%;
  padding: 0.8rem 1rem 0.8rem 2.5rem;
  border: 1px solid #d7e2ee;
  border-radius: 12px;
  font-size: 1rem;
  background: #fff;
}

.pdx-search:focus {
  outline: none;
  border-color: #4aa3df;
  box-shadow: 0 0 0 3px rgba(74, 163, 223, 0.18);
}

.pdx-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdx-chip {
  border: 1px solid #d7e2ee;
  background: #fff;
  color: #334155;
  border-radius: 999px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pdx-chip:hover {
  border-color: #4aa3df;
}

.pdx-chip.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
}

.pdx-select-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1rem;
}

.pdx-select-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.pdx-select {
  padding: 0.5rem 0.7rem;
  border: 1px solid #d7e2ee;
  border-radius: 10px;
  background: #fff;
  font-size: 0.9rem;
}

.pdx-noresults {
  text-align: center;
  color: #64748b;
  padding: 2rem 0;
}

/* ---------------- Type badges ---------------- */
.pdx-type {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  line-height: 1.4;
}

.type-normal { background: #9099a1; }
.type-fire { background: #ff9d55; }
.type-water { background: #4d90d5; }
.type-electric { background: #f4d23c; color: #4b4b4b; }
.type-grass { background: #63bb5b; }
.type-ice { background: #73cec0; }
.type-fighting { background: #ce4069; }
.type-poison { background: #ab6ac8; }
.type-ground { background: #d97746; }
.type-flying { background: #8fa8dd; }
.type-psychic { background: #f97176; }
.type-bug { background: #90c12c; }
.type-rock { background: #c7b78b; }
.type-ghost { background: #5269ac; }
.type-dragon { background: #0b6dc3; }
.type-dark { background: #5a5366; }
.type-steel { background: #5a8ea1; }
.type-fairy { background: #ec8fe6; }

/* ---------------- Evolution families ---------------- */
.pdx-families {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 1rem;
  padding: 0;
}

.pdx-family {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1rem 1.1rem 1.1rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.pdx-hidden-initial {
  display: none;
}

.pdx-family-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.7rem;
}

.pdx-family-head h2 {
  font-size: 1.05rem;
  margin: 0;
  font-family: 'Montserrat', sans-serif;
}

.pdx-family-head h2 a {
  color: #0f172a;
  text-decoration: none;
}

.pdx-family-head h2 a:hover { color: #2563eb; }

.pdx-family-count {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #64748b;
  background: #f1f5f9;
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  white-space: nowrap;
}

.pdx-chain {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.8rem;
}

.pdx-chain-arrow {
  color: #cbd5e1;
  font-size: 0.8rem;
}

.pdx-mon-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  padding: 0.4rem;
  border-radius: 12px;
  width: 96px;
  transition: background 0.15s ease;
}

.pdx-mon-chip:hover { background: #f1f5f9; }

.pdx-mon-sprite {
  width: 72px;
  height: 72px;
  object-fit: contain;
  image-rendering: auto;
}

.pdx-mon-name {
  font-size: 0.82rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
  line-height: 1.15;
}

.pdx-mon-dex {
  font-size: 0.68rem;
  color: #94a3b8;
  font-weight: 600;
}

.pdx-mon-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem;
  justify-content: center;
  margin-top: 0.15rem;
}

.pdx-steps {
  list-style: none;
  margin: 0;
  padding: 0.7rem 0 0;
  border-top: 1px solid #f1f5f9;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdx-steps li {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.pdx-step-route {
  font-size: 0.88rem;
  font-weight: 700;
  color: #334155;
}

.pdx-step-route a { color: #334155; text-decoration: none; }
.pdx-step-route a:hover { color: #2563eb; }
.pdx-step-route i { color: #94a3b8; font-size: 0.7rem; margin: 0 0.25rem; }

.pdx-step-method {
  font-size: 0.85rem;
  color: #2563eb;
  background: #eff6ff;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  align-self: flex-start;
}

/* ---------------- Pokédex grid ---------------- */
.pdx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.8rem;
  padding: 0;
}

.pdx-card {
  position: relative;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.9rem 0.6rem 0.8rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.pdx-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
  border-color: #bfdbfe;
}

.pdx-card-dex {
  position: absolute;
  top: 0.5rem;
  left: 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  color: #cbd5e1;
}

.pdx-card-sprite {
  width: 96px;
  height: 96px;
  object-fit: contain;
}

.pdx-card-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #1e293b;
  text-align: center;
}

.pdx-card-types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

/* ---------------- Breeding tool ---------------- */
.pdx-chip-count {
  display: inline-block;
  margin-left: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
}

.pdx-chip.is-active .pdx-chip-count {
  color: #dbeafe;
}

.pdx-breed-context {
  margin: 0.2rem 0 1rem;
  color: #475569;
  font-size: 0.92rem;
}

.pdx-breed-context strong {
  color: #1e293b;
}

.pdx-card-egggroups {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: center;
}

.pdx-egg-badge {
  display: inline-block;
  padding: 0.12rem 0.5rem;
  border-radius: 999px;
  background: #eef4fb;
  border: 1px solid #d7e2ee;
  color: #475569;
  font-size: 0.68rem;
  font-weight: 600;
}

.pdx-breed-guide-cta {
  margin-top: 1.1rem;
  padding: 0.9rem 1.1rem;
  background: #eef4fb;
  border: 1px solid #d7e2ee;
  border-radius: 12px;
  font-size: 0.92rem;
  color: #334155;
}

/* ---------------- Load more ---------------- */
.pdx-loadmore-wrap {
  text-align: center;
  margin: 1.6rem 0 0;
}

.pdx-loadmore {
  border: 1px solid #2563eb;
  background: #fff;
  color: #2563eb;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.65rem 1.6rem;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.pdx-loadmore:hover {
  background: #2563eb;
  color: #fff;
}

/* ---------------- Profile ---------------- */
.pdx-breadcrumb {
  font-size: 0.82rem;
  color: #94a3b8;
  margin-bottom: 0.8rem;
}

.pdx-breadcrumb a { color: #64748b; text-decoration: none; }
.pdx-breadcrumb a:hover { color: #2563eb; }
.pdx-breadcrumb span { margin: 0 0.15rem; }

.pdx-mon-hero {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 1.4rem 1.6rem;
  margin-bottom: 1.2rem;
}

.pdx-mon-hero-art {
  flex: 0 0 auto;
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, #eff6ff 0%, #f8fafc 70%);
  border-radius: 18px;
}

.pdx-mon-hero-art img {
  max-width: 200px;
  max-height: 200px;
  object-fit: contain;
}

.pdx-mon-hero-info {
  flex: 1 1 320px;
}

.pdx-mon-hero-dex {
  font-size: 0.8rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pdx-mon-hero-info h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: 2.3rem;
  margin: 0.1rem 0 0.5rem;
}

.pdx-mon-hero-types {
  display: flex;
  gap: 0.4rem;
  margin-bottom: 0.7rem;
}

.pdx-mon-hero-types .pdx-type {
  font-size: 0.78rem;
  padding: 0.25rem 0.7rem;
}

.pdx-mon-hero-lead {
  color: #4b5563;
  font-size: 0.98rem;
  line-height: 1.5;
  margin: 0 0 0.9rem;
}

.pdx-mon-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pdx-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #f1f5f9;
  color: #334155;
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.pdx-action:hover {
  background: #2563eb;
  color: #fff;
}

.pdx-action-tracker {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.pdx-action-tracker:disabled {
  cursor: default;
  opacity: 0.85;
}

.pdx-action-tracker.is-added {
  background: #16a34a;
  color: #fff;
  opacity: 1;
}

.pdx-tracker-feedback {
  margin: 0.6rem 0 0;
  font-size: 0.88rem;
  color: #16a34a;
  font-weight: 600;
}

.pdx-tracker-feedback a {
  color: #15803d;
  font-weight: 700;
}

.pdx-tracker-feedback.is-error {
  color: #dc2626;
}

.pdx-mon-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.pdx-span-2 { grid-column: 1 / -1; }

.pdx-panel {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.1rem 1.3rem 1.3rem;
}

.pdx-panel h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.15rem;
  margin: 0 0 0.9rem;
}

.pdx-panel h3 {
  font-size: 0.95rem;
  margin: 1rem 0 0.5rem;
  color: #334155;
}

/* Evolution panel */
.pdx-evo-from {
  color: #4b5563;
  margin: 0 0 0.7rem;
}
.pdx-evo-from a { color: #2563eb; font-weight: 700; text-decoration: none; }

.pdx-evo-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.pdx-evo-list li {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.85rem;
  background: #f8fafc;
  border: 1px solid #eef2f7;
  border-radius: 12px;
}

.pdx-evo-target {
  font-weight: 700;
  color: #1e293b;
}
.pdx-evo-target a { color: #2563eb; text-decoration: none; }
.pdx-evo-target i { color: #94a3b8; font-size: 0.75rem; margin: 0 0.3rem; }

.pdx-evo-method {
  color: #2563eb;
  background: #eff6ff;
  border-radius: 8px;
  padding: 0.3rem 0.55rem;
  font-size: 0.9rem;
  align-self: flex-start;
}

.pdx-evo-learns {
  font-size: 0.82rem;
  color: #64748b;
}

/* Friendship berry tip */
.pdx-berry-tip {
  display: flex;
  gap: 0.7rem;
  margin-top: 0.9rem;
  padding: 0.8rem 1rem;
  background: #fdf2f8;
  border: 1px solid #fbcfe8;
  border-radius: 12px;
}

.pdx-berry-tip-icon {
  color: #ec4899;
  font-size: 1rem;
  margin-top: 0.15rem;
  flex: 0 0 auto;
}

.pdx-berry-tip p {
  margin: 0;
  font-size: 0.88rem;
  color: #6b3a52;
  line-height: 1.55;
}

.pdx-berry-tip a {
  color: #be185d;
  font-weight: 700;
  text-decoration: none;
}

.pdx-berry-tip a:hover {
  text-decoration: underline;
}

/* Stats */
.pdx-stats {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.pdx-stat-row {
  display: grid;
  grid-template-columns: 70px 38px 1fr;
  align-items: center;
  gap: 0.6rem;
}

.pdx-stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #475569;
}

.pdx-stat-val {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  text-align: right;
}

.pdx-stat-bar {
  height: 9px;
  background: #eef2f7;
  border-radius: 999px;
  overflow: hidden;
}

.pdx-stat-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #4aa3df, #2563eb);
}

.pdx-stat-total .pdx-stat-label,
.pdx-stat-total .pdx-stat-val {
  color: #2563eb;
}

/* Facts */
.pdx-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem 1rem;
  margin: 0;
}

.pdx-facts > div {
  display: flex;
  flex-direction: column;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.4rem;
}

.pdx-facts dt {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #94a3b8;
  font-weight: 700;
}

.pdx-facts dd {
  margin: 0.1rem 0 0;
  font-size: 0.9rem;
  color: #1e293b;
  font-weight: 600;
}

.pdx-facts dd em { color: #7c3aed; font-style: normal; }

/* Drops */
.pdx-drops {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pdx-drops li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: #334155;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 0.3rem;
}

.pdx-drop-link {
  color: #2563eb;
  font-weight: 600;
  text-decoration: none;
}

.pdx-drop-link:hover { text-decoration: underline; }

.pdx-drop-pct { color: #64748b; font-weight: 700; }

.pdx-drops-note {
  margin: 0.6rem 0 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

/* Linked items inside evolution method badges */
.pdx-evo-method a,
.pdx-step-method a,
.pdx-evo-from strong a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.pdx-evo-method a:hover,
.pdx-step-method a:hover,
.pdx-evo-from strong a:hover {
  color: #1e3a8a;
}

/* Moves */
.pdx-moves-table-wrap {
  max-height: 320px;
  overflow-y: auto;
  border: 1px solid #eef2f7;
  border-radius: 10px;
}

.pdx-moves-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.pdx-moves-table th {
  position: sticky;
  top: 0;
  background: #f8fafc;
  text-align: left;
  padding: 0.5rem 0.8rem;
  color: #64748b;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pdx-moves-table td {
  padding: 0.45rem 0.8rem;
  border-top: 1px solid #f1f5f9;
  color: #334155;
}

.pdx-moves-table td:first-child {
  width: 70px;
  font-weight: 700;
  color: #2563eb;
}

.pdx-moves-extra {
  margin-top: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.pdx-moves-extra details {
  border: 1px solid #eef2f7;
  border-radius: 10px;
  padding: 0.5rem 0.8rem;
}

.pdx-moves-extra summary {
  cursor: pointer;
  font-weight: 700;
  color: #334155;
  font-size: 0.9rem;
}

.pdx-moves-extra p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.6;
}

/* ---------------- SEO blocks ---------------- */
.pdx-seo {
  margin-top: 1.6rem;
  padding: 0;
  color: #475569;
  line-height: 1.6;
}

.pdx-seo h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  color: #0f172a;
  margin: 1.4rem 0 0.6rem;
}

.pdx-seo h3 {
  font-size: 1.02rem;
  color: #1e293b;
  margin: 1rem 0 0.4rem;
}

.pdx-seo-list {
  margin: 0 0 0.6rem;
  padding-left: 1.1rem;
}

.pdx-seo-list li { margin-bottom: 0.3rem; }

.pdx-faq details {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.6rem;
}

.pdx-faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #1e293b;
}

.pdx-faq p { margin: 0.6rem 0 0; }

.pdx-crosslinks {
  margin: 1rem 0;
  padding: 0.9rem 1.1rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
}

.pdx-crosslinks p {
  margin: 0 0 0.5rem;
  font-size: 0.92rem;
  line-height: 1.6;
}

.pdx-crosslinks p:last-child { margin-bottom: 0; }

.pdx-crosslinks strong { color: #0f172a; }

.pdx-crosslinks a {
  color: #2563eb;
  font-weight: 600;
}

.pdx-internal-links {
  margin-top: 1.2rem;
  font-size: 0.95rem;
}

.pdx-credit {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.pdx-credit a { color: #64748b; }

/* ---------------- Responsive ---------------- */
@media (max-width: 768px) {
  .pdx-shell { padding-top: 120px; }
  .pdx-hero h1 { font-size: 1.8rem; }
  .pdx-mon-grid { grid-template-columns: 1fr; }
  .pdx-families { grid-template-columns: 1fr; }
  .pdx-mon-hero { padding: 1.1rem; }
  .pdx-mon-hero-art { width: 100%; height: auto; padding: 1rem 0; }
  .pdx-facts { grid-template-columns: 1fr; }
}
