/* DexHaul Pokédex (2026-10-26). Same tokens and chrome as the blog (blog.css loads
   first); type colours are the only additions. */
.pdx-page .t-normal { --tc: #9a9a6e; --tink: #171b2d; }
.pdx-page .t-fire { --tc: #e06c1c; --tink: #fff; }
.pdx-page .t-water { --tc: #4a78e0; --tink: #fff; }
.pdx-page .t-electric { --tc: #f2c81d; --tink: #171b2d; }
.pdx-page .t-grass { --tc: #5fae37; --tink: #fff; }
.pdx-page .t-ice { --tc: #7fcfcb; --tink: #171b2d; }
.pdx-page .t-fighting { --tc: #b8302a; --tink: #fff; }
.pdx-page .t-poison { --tc: #9a3d98; --tink: #fff; }
.pdx-page .t-ground { --tc: #d9b456; --tink: #171b2d; }
.pdx-page .t-flying { --tc: #8f78e6; --tink: #fff; }
.pdx-page .t-psychic { --tc: #ef4f7e; --tink: #fff; }
.pdx-page .t-bug { --tc: #93a719; --tink: #171b2d; }
.pdx-page .t-rock { --tc: #a8953a; --tink: #171b2d; }
.pdx-page .t-ghost { --tc: #6a5091; --tink: #fff; }
.pdx-page .t-dragon { --tc: #6236e8; --tink: #fff; }
.pdx-page .t-dark { --tc: #5f4a3c; --tink: #fff; }
.pdx-page .t-steel { --tc: #9b9bb8; --tink: #171b2d; }
.pdx-page .t-fairy { --tc: #d07aa6; --tink: #fff; }
.pdx-page .pdx-wrap { max-width: 1180px; padding-top: 26px; padding-bottom: 50px; }
.pdx-page h1 { font-size: clamp(30px, 4.6vw, 44px); margin: 0 0 10px; }
.pdx-page .pdx-intro { color: var(--slate); max-width: 46em; margin: 0 0 20px; font-size: 16.5px; }
.pdx-page .crumb { margin: 0 0 12px; }

/* search + filters */
.pdx-page .pdx-search { position: relative; margin: 0 0 14px; max-width: 620px; }
.pdx-page .pdx-search input { width: 100%; height: 52px; border-radius: 999px; border: 2px solid rgba(16,25,79,.2);
  padding: 0 110px 0 22px; font: 600 16px var(--body); background: #fff; color: var(--ink); }
.pdx-page .pdx-search input:focus { outline: none; border-color: var(--blue); box-shadow: var(--ring); }
.pdx-page .pdx-count { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); color: var(--slate);
  font-weight: 700; font-size: 13.5px; }
.pdx-page .pdx-filter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0 0 10px; }
.pdx-page .pf-label { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  color: var(--slate); margin-right: 4px; min-width: 84px; }
.pdx-page .pdx-chip { display: inline-flex; gap: 5px; align-items: baseline; padding: 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 13.5px; color: var(--navy);
  text-decoration: none; }
.pdx-page .pdx-chip small { font-weight: 700; color: var(--slate); }
.pdx-page .pdx-chip[class*=" t-"] { border-left: 6px solid var(--tc); }
.pdx-page .pdx-chip:hover { border-color: var(--blue); }
.pdx-page .pdx-chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }
.pdx-page .pdx-chip.on small { color: rgba(255,255,255,.8); }
@media (max-width: 700px) {
  .pdx-page .pdx-filter { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px;
    margin-right: -16px; padding: 2px 16px; }
  .pdx-page .pdx-filter::-webkit-scrollbar { display: none; }
  .pdx-page .pdx-chip, .pdx-page .pf-label { flex: none; }
}

/* grid */
.pdx-page .pdx-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px;
  margin: 18px 0 34px; }
.pdx-page .pdx-card { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink);
  box-shadow: var(--shadow-1); overflow: hidden; content-visibility: auto; contain-intrinsic-size: auto 104px;
  transition: transform .12s, box-shadow .12s; }
.pdx-page .pdx-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 5px; background: var(--tc); }
.pdx-page .pdx-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.pdx-page .pdx-card[hidden] { display: none; }
.pdx-page .pc-num { font: 700 12.5px var(--body); color: var(--slate); letter-spacing: .03em; }
.pdx-page .pc-name { font: 600 18px/1.15 var(--head); }
.pdx-page .pc-types { display: flex; gap: 5px; flex-wrap: wrap; margin-top: auto; }
.pdx-page .pdx-type { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--tc);
  color: var(--tink); font-size: 11.5px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  text-decoration: none; }
.pdx-page a.pdx-type:hover { filter: brightness(1.08); }

/* Pokémon page (2026-10-26 v2) */
.pdx-page .ti { width: 14px; height: 14px; flex: none; vertical-align: -2px; }
.pdx-page .pdx-type { display: inline-flex; align-items: center; gap: 5px; }
.pdx-page .pdx-chip .ti { color: var(--tc); width: 15px; height: 15px; margin-right: 2px; }
.pdx-page .pdx-chip.on .ti { color: #fff; }
.pdx-page .pdx-mon { background: #fff; border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow-1); padding: clamp(18px, 3.2vw, 36px); position: relative; overflow: hidden; }
.pdx-page .pdx-mon::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 8px;
  background: linear-gradient(90deg, var(--tc), color-mix(in srgb, var(--tc) 40%, #fff)); }
.pdx-page .pdx-title { margin: 6px 0 18px; }
.pdx-page .pdx-kicker { margin: 0 0 2px; color: var(--slate); font-weight: 800; font-size: 14px; letter-spacing: .04em; }
.pdx-page .pdx-types { display: flex; gap: 8px; align-items: center; margin: 6px 0 0; flex-wrap: wrap; }
.pdx-page .pdx-types .pdx-type { font-size: 13px; padding: 6px 14px 6px 10px; }
.pdx-page .pdx-types .ti { width: 16px; height: 16px; }
.pdx-page .pdx-flag { font-size: 12px; font-weight: 800; color: var(--yellow-ink); background: #fff6cc;
  border-radius: 999px; padding: 5px 11px; text-transform: uppercase; letter-spacing: .04em; }

/* top row: photo | base stats | health record */
.pdx-page .pdx-top { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr) minmax(250px, 300px);
  gap: 22px; align-items: start; margin: 0 0 26px; }
.pdx-page .pdx-hero { position: relative; border-radius: 18px; min-height: 280px; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, #fff 0 34%, transparent 35%),
              linear-gradient(150deg, var(--tc), color-mix(in srgb, var(--tc) 45%, #fff)); overflow: hidden; }
.pdx-page .ph-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -58%); color: var(--tc); }
.pdx-page .ph-ti { width: 64px; height: 64px; }
.pdx-page .ph-num { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center;
  font: 700 22px var(--head); color: color-mix(in srgb, var(--tc) 60%, #171b2d); }
.pdx-page .pdx-hero.has-photo { background: #fff; border: 1px solid var(--line); min-height: 0; display: block; }
.pdx-page .pdx-hero.has-photo .ph-icon, .pdx-page .pdx-hero.has-photo .ph-num { display: none; }
.pdx-page .ph-link { display: block; padding: 12px; }
.pdx-page .ph-link img { display: block; width: 100%; height: auto; max-height: 420px; object-fit: contain;
  border-radius: 12px; }   /* whole photo, never cropped */

.pdx-page .pdx-statbox { background: var(--bg); border-radius: 18px; padding: 18px 20px; }
.pdx-page .pdx-statbox h2, .pdx-page .pdx-box h2, .pdx-page .pdx-shop h2 { font-size: clamp(20px, 2.4vw, 24px); margin: 0 0 14px; }
.pdx-page .st-row { display: grid; grid-template-columns: 64px 38px 1fr; gap: 10px; align-items: center; margin: 0 0 11px; }
.pdx-page .st-k { font-weight: 800; font-size: 13px; color: var(--slate); }
.pdx-page .st-v { font: 700 16px var(--head); text-align: right; font-variant-numeric: tabular-nums; }
.pdx-page .st-track { position: relative; height: 12px; border-radius: 999px; background: #fff;
  box-shadow: inset 0 0 0 1px var(--line); }
.pdx-page .st-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 1%); border-radius: 999px;
  background: var(--sc); }
.pdx-page .st-knob { position: absolute; right: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px;
  border-radius: 50%; background: #fff; border: 3px solid var(--sc); box-shadow: 0 2px 6px rgba(16,25,79,.25); }
.pdx-page .st-low { --sc: #e5624a; } .pdx-page .st-mid { --sc: #f0a92b; }
.pdx-page .st-good { --sc: #43b05c; } .pdx-page .st-great { --sc: #1f9e9a; }
.pdx-page .pdx-stats.armed .st-fill { width: 0; }
.pdx-page .pdx-stats.play .st-fill { width: calc(var(--v) * 1%); transition: width .9s cubic-bezier(.2,.8,.2,1); }
.pdx-page .pdx-stats.play .st-row:nth-child(2) .st-fill { transition-delay: .06s; }
.pdx-page .pdx-stats.play .st-row:nth-child(3) .st-fill { transition-delay: .12s; }
.pdx-page .pdx-stats.play .st-row:nth-child(4) .st-fill { transition-delay: .18s; }
.pdx-page .pdx-stats.play .st-row:nth-child(5) .st-fill { transition-delay: .24s; }
.pdx-page .pdx-stats.play .st-row:nth-child(6) .st-fill { transition-delay: .30s; }
.pdx-page .st-total { margin: 6px 0 0; padding-top: 10px; border-top: 1px dashed var(--line); font-weight: 800;
  color: var(--slate); display: flex; justify-content: space-between; }
.pdx-page .st-total b { font: 700 18px var(--head); color: var(--ink); }

/* health record (spec sheet) */
.pdx-page .pdx-record { background: #fff; border: 2px solid #f6c9d4; border-radius: 18px; overflow: hidden;
  box-shadow: 0 10px 26px -18px rgba(214, 72, 104, .55); }
.pdx-page .hr-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px;
  background: linear-gradient(135deg, #ffe4ec, #fff3f6); border-bottom: 2px solid #f6c9d4; }
.pdx-page .hr-cross { width: 30px; height: 30px; flex: none; border-radius: 8px; background: #fff;
  box-shadow: inset 0 0 0 2px #f6c9d4; position: relative; }
.pdx-page .hr-cross::before, .pdx-page .hr-cross::after { content: ""; position: absolute; background: #e3405f;
  border-radius: 2px; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.pdx-page .hr-cross::before { width: 16px; height: 5px; } .pdx-page .hr-cross::after { width: 5px; height: 16px; }
.pdx-page .hr-kicker { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #c2385a; }
.pdx-page .hr-head h2 { margin: 0; font-size: 19px; }
.pdx-page .hr-ecg { display: block; width: 100%; height: 26px; background: #fffafb; }
.pdx-page .hr-ecg path { fill: none; stroke: #e3405f; stroke-width: 2; stroke-linejoin: round;
  stroke-dasharray: 400; stroke-dashoffset: 400; animation: hr-beat 2.6s linear infinite; }
@keyframes hr-beat { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .pdx-page .hr-ecg path { animation: none; stroke-dashoffset: 0; } }
.pdx-page .hr-list { margin: 0; padding: 4px 16px 14px;
  background-image: repeating-linear-gradient(#fff 0 47px, #fdf0f3 47px 48px); }
.pdx-page .hr-row { padding: 9px 0; border-bottom: 1px dashed #f3d3dc; }
.pdx-page .hr-row:last-child { border-bottom: 0; }
.pdx-page .hr-row dt { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #b9677b; margin: 0 0 3px; }
.pdx-page .hr-row dd { margin: 0; font-weight: 800; color: var(--ink); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pdx-page .hr-row dd small { color: var(--slate); font-weight: 700; }
.pdx-page .hr-chip { background: #fff3f6; border: 1px solid #f6c9d4; border-radius: 999px; padding: 2px 10px; font-size: 13.5px; }
.pdx-page .hr-chip small { font-size: 11px; text-transform: uppercase; color: #c2385a; }

.pdx-page .pdx-lead { font-size: 17.5px; line-height: 1.7; max-width: 54em; margin: 0 0 6px; }
.pdx-page .pdx-lead p { margin: 0 0 12px; }
.pdx-page .pdx-box { margin: 30px 0 0; }
.pdx-page .pdx-cols { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 0 34px; align-items: start; }

/* type matchups: one vertical column */
.pdx-page .mu-group { margin: 0 0 16px; }
.pdx-page .mu-group h3 { font: 800 12px var(--body); letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px;
  color: var(--slate); display: flex; align-items: center; gap: 8px; }
.pdx-page .mu-group h3::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--mc); }
.pdx-page .mu-weak { --mc: #e5624a; } .pdx-page .mu-res { --mc: #43b05c; } .pdx-page .mu-imm { --mc: #8a93ab; }
.pdx-page .mu-group ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.pdx-page .mu-group li { display: flex; align-items: center; justify-content: space-between; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.pdx-page .mu-group li:last-child { border-bottom: 0; }
.pdx-page .mu-group li b { font: 700 16px var(--head); color: var(--mc); }

/* evolution line */
.pdx-page .pdx-evo { display: flex; align-items: center; gap: 0; flex-wrap: wrap; row-gap: 16px; }
.pdx-page .evo-stage { display: flex; flex-direction: column; gap: 14px; }
.pdx-page .evo-link { flex: 0 0 46px; height: 4px; border-radius: 4px; margin: 0 6px 34px;
  background: repeating-linear-gradient(90deg, var(--line) 0 8px, transparent 8px 13px); position: relative; }
.pdx-page .evo-link::after { content: ""; position: absolute; right: -2px; top: 50%; width: 9px; height: 9px;
  border-top: 3px solid #c3c9da; border-right: 3px solid #c3c9da; transform: translateY(-50%) rotate(45deg); }
.pdx-page .evo-node { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none;
  color: var(--ink); width: 112px; }
.pdx-page .evo-orb { width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle, #fff 0 55%, transparent 56%), conic-gradient(var(--tc), color-mix(in srgb, var(--tc) 40%, #fff), var(--tc));
  box-shadow: 0 6px 16px -10px rgba(16,25,79,.5); transition: transform .15s; color: var(--tc); }
.pdx-page .evo-ti { width: 34px; height: 34px; }
.pdx-page .evo-node:hover .evo-orb { transform: translateY(-3px) scale(1.04); }
.pdx-page .evo-node[aria-current] .evo-orb { box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--tc); }
.pdx-page .evo-num { font: 700 12px var(--body); color: var(--slate); margin-top: 4px; }
.pdx-page .evo-name { font: 600 16px var(--head); text-align: center; }
.pdx-page .evo-node[aria-current] .evo-name { color: var(--red-dark); }
.pdx-page .pdx-facts ul { margin: 0; padding-left: 20px; } .pdx-page .pdx-facts li { margin: 0 0 8px; }
.pdx-page .pdx-guides { margin: 0; padding-left: 20px; }
.pdx-page .pdx-guides li { margin: 0 0 8px; }
.pdx-page .pdx-pn { display: flex; justify-content: space-between; gap: 12px; margin: 18px 0 0; }
.pdx-page .pdx-pn a { font-weight: 800; text-decoration: none; padding: 10px 16px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); box-shadow: var(--shadow-1); }

/* shop: category buttons */
.pdx-page .shop-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pdx-page .shop-head h2 { margin: 0; }
.pdx-page .shop-now { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff;
  font-weight: 800; text-decoration: none; border-radius: 999px; padding: 11px 20px; box-shadow: 0 8px 18px -10px rgba(227,53,13,.8); }
.pdx-page .shop-now:hover { background: var(--red-dark); color: #fff; }
.pdx-page .shop-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0 6px; }
.pdx-page .shop-tab { font: 800 14px var(--body); color: var(--navy); background: #fff; border: 2px solid var(--line);
  border-radius: 999px; padding: 8px 16px; cursor: pointer; }
.pdx-page .shop-tab:hover { border-color: var(--blue); }
.pdx-page .shop-tab[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
@media (max-width: 700px) {
  .pdx-page .shop-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
  .pdx-page .shop-tab { flex: none; }
}
.pdx-page .pdx-prods .pdx-empty { grid-column: 1 / -1; color: var(--slate); font-weight: 700; padding: 18px 0; }

@media (max-width: 1100px) {
  .pdx-page .pdx-top { grid-template-columns: minmax(200px, 280px) minmax(0, 1fr); }
  .pdx-page .pdx-record { grid-column: 1 / -1; }
  .pdx-page .hr-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; background: none; }
}
@media (max-width: 760px) {
  .pdx-page .pdx-top, .pdx-page .pdx-cols { grid-template-columns: 1fr; }
  .pdx-page .hr-list { grid-template-columns: 1fr; }
  .pdx-page .pdx-hero { min-height: 220px; }
  .pdx-page .evo-node { width: 92px; } .pdx-page .evo-orb { width: 70px; height: 70px; }
  .pdx-page .evo-link { flex-basis: 24px; }
}

/* live products */
.pdx-page .pdx-shop { margin: 26px 0 0; }
.pdx-page .pdx-shopnote { margin: -6px 0 12px; color: var(--slate); font-size: 13.5px; }
.pdx-page .pdx-prods { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; min-height: 120px; }
.pdx-page .pdx-prods[aria-busy] { background: linear-gradient(90deg, var(--bg), #fff, var(--bg)); border-radius: 14px; }
.pdx-page .pdx-prod { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 10px; background: #fff;
  border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink); }
.pdx-page .pdx-prod:hover { box-shadow: var(--shadow-2); }
.pdx-page .pdx-prod img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 10px; margin: 0 0 4px; background: #fff; }
.pdx-page .pp-title { font-weight: 700; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden; }
.pdx-page .pp-price { font-weight: 800; color: var(--red-dark); }
.pdx-page .pp-seller { font-size: 12.5px; color: var(--slate); }
.pdx-page .pp-spon { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 800; background: var(--navy);
  color: #fff; border-radius: 999px; padding: 2px 7px; }
.pdx-page .pdx-more { display: inline-block; margin: 14px 0 0; font-weight: 800; text-decoration: none; }
.pdx-page .pdx-foot { margin-top: 40px; padding: 24px 0 40px; font-size: 13.5px; color: var(--slate); }

@media (max-width: 760px) {
  .pdx-page .pdx-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .pdx-page .pdx-wrap { padding-left: 12px; padding-right: 12px; }
  .pdx-page .pdx-mon { padding: 18px 16px; }
  .pdx-page .pdx-prods { grid-template-columns: repeat(2, 1fr); }
}

/* ---- v3 (2026-10-26): about under the photo, on-page nav, forms, game data, moves, guides ---- */
.pdx-page .pdx-top { grid-template-areas: "hero stats rec" "about about rec"; }
.pdx-page .pdx-hero { grid-area: hero; } .pdx-page .pdx-statbox { grid-area: stats; }
.pdx-page .pdx-record { grid-area: rec; } .pdx-page .pdx-about { grid-area: about; }
.pdx-page .pdx-about h2 { font-size: clamp(20px, 2.4vw, 24px); margin: 4px 0 10px; }
.pdx-page .pdx-about p { font-size: 17px; line-height: 1.7; margin: 0 0 12px; }
.pdx-page .pdx-about a, .pdx-page .pdx-prose a, .pdx-page .pdx-facts a { color: var(--blue-dark); font-weight: 700; }
.pdx-page .pdx-about strong, .pdx-page .pdx-prose strong { color: var(--navy); }
.pdx-page .pdx-prose p { font-size: 17px; line-height: 1.7; margin: 0 0 12px; max-width: 54em; }
.pdx-page .pdx-prose h3 { font-size: 18px; margin: 18px 0 8px; }
.pdx-page .pdx-sub { color: var(--slate); margin: -6px 0 14px; }
.pdx-page .hr-ecgwrap { padding: 12px 0 2px; background: #fffafb; }   /* room above the heartbeat */

.pdx-page .pdx-toc { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 20px; position: sticky;
  top: calc(var(--head-h, 126px) + 6px); z-index: 5; padding: 8px 0; background: linear-gradient(#fff 80%, transparent); }
.pdx-page .pdx-toc a { font-weight: 800; font-size: 13.5px; text-decoration: none; color: var(--navy);
  padding: 6px 12px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); }
.pdx-page .pdx-toc a:hover { border-color: var(--blue); }
@media (max-width: 760px) {
  .pdx-page .pdx-toc { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 8px 16px; }
  .pdx-page .pdx-toc a { flex: none; }
}
.pdx-page .pdx-box, .pdx-page .pdx-shop, .pdx-page .pdx-about { scroll-margin-top: calc(var(--head-h, 126px) + 64px); }

/* evolution photos + how */
.pdx-page .evo-orb { overflow: hidden; }
.pdx-page .evo-orb img { width: 72%; height: 72%; object-fit: contain; border-radius: 50%; background: #fff; }
.pdx-page .evo-orb.has-photo .evo-ti { display: none; }
.pdx-page .evo-how { font-size: 12px; font-weight: 700; color: var(--slate); text-align: center; line-height: 1.3;
  background: var(--bg); border-radius: 8px; padding: 3px 7px; margin-top: 2px; }

/* forms */
.pdx-page .form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.pdx-page .form-card { border: 1px solid var(--line); border-top: 5px solid var(--tc); border-radius: 14px; padding: 14px 16px; background: #fff; }
.pdx-page .form-card h3 { margin: 0 0 6px; font-size: 18px; }
.pdx-page .form-card dl { margin: 10px 0; }
.pdx-page .form-card dl div { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.pdx-page .form-card dt { color: var(--slate); font-weight: 700; } .pdx-page .form-card dd { margin: 0; font-weight: 800; text-align: right; }
.pdx-page .form-stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; text-align: center; font-size: 11px; color: var(--slate); font-weight: 700; }
.pdx-page .form-stats b { display: block; font: 700 15px var(--head); color: var(--ink); }

/* game data */
.pdx-page .pdx-minis { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.pdx-page .pdx-mini { background: var(--bg); border-radius: 14px; padding: 14px 16px; }
.pdx-page .pdx-mini h3 { margin: 0 0 8px; font-size: 17px; }
.pdx-page .pdx-mini dl { margin: 0; }
.pdx-page .pdx-mini dl div { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.pdx-page .pdx-mini dl div:last-child { border-bottom: 0; }
.pdx-page .pdx-mini dt { font-size: 11px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--slate); }
.pdx-page .pdx-mini dd { margin: 2px 0 0; font-weight: 800; }

/* moves */
.pdx-page .table-scroll { overflow-x: auto; }
.pdx-page .pdx-moves { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.pdx-page .pdx-moves th { text-align: left; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--slate);
  padding: 8px 10px; border-bottom: 2px solid var(--line); }
.pdx-page .pdx-moves td { padding: 8px 10px; border-bottom: 1px solid var(--line); font-weight: 700; }
.pdx-page .pdx-moves tr:nth-child(even) td { background: #fafbff; }
.pdx-page .pdx-moves .pdx-type { font-size: 11px; padding: 3px 9px 3px 7px; }
.pdx-page .mv-cat { font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: var(--bg); }
.pdx-page .mv-physical { background: #fde3dc; color: #a33a1f; } .pdx-page .mv-special { background: #e2e7fd; color: #2c3aa0; }
.pdx-page .mv-status { background: #eceef4; color: #5c6378; }

/* guides: blog-style cards */
.pdx-page .guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.pdx-page .guide-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: var(--ink); box-shadow: var(--shadow-1); transition: box-shadow .15s, transform .15s; }
.pdx-page .guide-card:hover { box-shadow: var(--shadow-2); transform: translateY(-2px); }
.pdx-page .gc-img { display: block; background: #fff; border-bottom: 1px solid var(--line); }
.pdx-page .gc-img img, .pdx-page .gc-ph { display: block; width: 100%; height: 150px; object-fit: contain; padding: 8px; }
.pdx-page .gc-body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; }
.pdx-page .gc-title { font: 600 16px/1.3 var(--head); }
.pdx-page .guide-card:hover .gc-title { color: var(--red-dark); }
.pdx-page .gc-date { font-size: 12.5px; color: var(--slate); }

@media (max-width: 1100px) {
  .pdx-page .pdx-top { grid-template-areas: "hero stats" "about about" "rec rec"; }
}
@media (max-width: 760px) {
  .pdx-page .pdx-top { grid-template-areas: "hero" "stats" "about" "rec"; }
}
.pdx-page .evo-orb { width: 96px; height: 96px; }
.pdx-page .evo-orb img { width: 84%; height: 84%; }
@media (max-width: 760px) { .pdx-page .evo-orb { width: 78px; height: 78px; } }

/* ---- v4 (2026-10-26): type buttons = black pill, coloured symbol, name slides out on hover/focus ---- */
.pdx-page .pdx-type { display: inline-flex; align-items: center; justify-content: center; gap: 0; height: 30px;
  min-width: 30px; padding: 0 7px; border-radius: 999px; background: #171b2d; color: #fff !important;
  text-decoration: none; text-transform: uppercase; font: 800 11.5px/1 var(--body); letter-spacing: .06em;
  box-shadow: 0 2px 6px -3px rgba(16,25,79,.6); transition: padding .2s ease, background .2s; }
.pdx-page .pdx-type .ti { width: 16px; height: 16px; color: var(--tc); }
.pdx-page .pdx-type .tl { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width .25s ease, opacity .2s ease, margin .25s ease; }
.pdx-page .pdx-type:hover, .pdx-page .pdx-type:focus-visible { padding: 0 12px 0 9px; }
.pdx-page .pdx-type:hover .tl, .pdx-page .pdx-type:focus-visible .tl { max-width: 110px; opacity: 1; margin-left: 7px; }
.pdx-page .pdx-types .pdx-type { height: 36px; min-width: 36px; padding: 0 9px; font-size: 12.5px; }
.pdx-page .pdx-types .pdx-type .ti { width: 19px; height: 19px; }
.pdx-page .pdx-types .pdx-type:hover { padding: 0 14px 0 11px; }
.pdx-page .pdx-moves .pdx-type { height: 26px; min-width: 26px; padding: 0 5px; font-size: 10.5px; }
.pdx-page .pdx-moves .pdx-type .ti { width: 14px; height: 14px; }
.pdx-page .pc-types .pdx-type { height: 26px; min-width: 26px; padding: 0 5px; }
.pdx-page .pdx-card:hover .pc-types .pdx-type { padding: 0 10px 0 7px; }
.pdx-page .pdx-card:hover .pc-types .tl { max-width: 90px; opacity: 1; margin-left: 6px; }
/* hub type filters use the same buttons */
.pdx-page .pdx-chip[class*=" t-"] { height: 34px; min-width: 34px; padding: 0 8px; justify-content: center; gap: 0;
  background: #171b2d; color: #fff; border: 2px solid #171b2d; border-left: 2px solid #171b2d; text-transform: uppercase;
  font-size: 11.5px; letter-spacing: .06em; transition: padding .2s ease; }
.pdx-page .pdx-chip[class*=" t-"] .ti { color: var(--tc); width: 17px; height: 17px; margin: 0; }
.pdx-page .pdx-chip[class*=" t-"] .tl { max-width: 0; overflow: hidden; white-space: nowrap; opacity: 0;
  transition: max-width .25s ease, opacity .2s ease, margin .25s ease; }
.pdx-page .pdx-chip[class*=" t-"]:hover, .pdx-page .pdx-chip[class*=" t-"]:focus-visible, .pdx-page .pdx-chip[class*=" t-"].on { padding: 0 12px 0 9px; }
.pdx-page .pdx-chip[class*=" t-"]:hover .tl, .pdx-page .pdx-chip[class*=" t-"]:focus-visible .tl,
.pdx-page .pdx-chip[class*=" t-"].on .tl { max-width: 110px; opacity: 1; margin-left: 7px; }
.pdx-page .pdx-chip[class*=" t-"].on { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.pdx-page .pdx-chip.on .ti { color: var(--tc); }
.pdx-page .mu-group li { justify-content: flex-start; gap: 10px; }
.pdx-page .mu-name { font-weight: 800; color: var(--ink); }
.pdx-page .mu-group li b { margin-left: auto; }
@media (hover: none) {   /* touch screens: no hover, so the name shows beside the symbol on the page's main type badges */
  .pdx-page .pdx-title .pdx-type .tl, .pdx-page .hr-row .pdx-type .tl { max-width: 110px; opacity: 1; margin-left: 7px; }
  .pdx-page .pdx-title .pdx-type, .pdx-page .hr-row .pdx-type { padding: 0 12px 0 9px; }
}

/* ---- evolution line v4: photo cards in stage columns, labelled arrows ---- */
.pdx-page .pdx-evobox { margin-top: 30px; background: var(--bg); border-radius: 20px; padding: 20px clamp(14px, 2.4vw, 26px) 24px; }
.pdx-page .pdx-evo { display: flex; align-items: center; gap: 0; overflow-x: auto; padding: 4px 2px 8px; }
.pdx-page .evo-stage { display: flex; flex-direction: column; gap: 14px; justify-content: center; }
.pdx-page .evo-item { display: flex; align-items: center; }
.pdx-page .evo-arrow { display: flex; align-items: center; justify-content: center; position: relative; width: 120px; flex: none;
  height: 2px; margin: 0 10px; background: linear-gradient(90deg, #c7cde0, #8f98b5); }
.pdx-page .evo-arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: 10px; height: 10px; transform: translateY(-50%) rotate(45deg);
  border-top: 2px solid #8f98b5; border-right: 2px solid #8f98b5; }
.pdx-page .evo-how { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); white-space: nowrap; max-width: 118px;
  overflow: hidden; text-overflow: ellipsis; background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 3px 10px; font-size: 11.5px; font-weight: 800; color: var(--navy); box-shadow: var(--shadow-1); }
.pdx-page .evo-card { display: flex; flex-direction: column; width: 168px; flex: none; background: #fff; border-radius: 16px;
  border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; box-shadow: var(--shadow-1);
  transition: transform .15s, box-shadow .15s; }
.pdx-page .evo-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-2); }
.pdx-page .evo-card[aria-current] { border: 2px solid var(--tc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tc) 22%, transparent); }
.pdx-page .evo-pic { display: grid; place-items: center; height: 140px; color: var(--tc);
  background: radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--tc) 18%, #fff) 0 45%, #fff 46%); }
.pdx-page .evo-pic img { width: 82%; height: 82%; object-fit: contain; }
.pdx-page .evo-pic.has-photo { background: #fff; } .pdx-page .evo-pic.has-photo .evo-ti { display: none; }
.pdx-page .evo-pic .evo-ti { width: 48px; height: 48px; }
.pdx-page .evo-meta { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; border-top: 1px solid var(--line); }
.pdx-page .evo-num { font: 700 11.5px var(--body); color: var(--slate); letter-spacing: .04em; }
.pdx-page .evo-name { font: 600 17px var(--head); }
.pdx-page .evo-card[aria-current] .evo-name { color: var(--red-dark); }
.pdx-page .evo-types { display: flex; gap: 5px; margin-top: 4px; }
.pdx-page .evo-types .pdx-type { height: 26px; min-width: 26px; padding: 0 5px; }
.pdx-page .evo-card:hover .evo-types .pdx-type { padding: 0 10px 0 7px; }
.pdx-page .evo-card:hover .evo-types .tl { max-width: 90px; opacity: 1; margin-left: 6px; }
@media (max-width: 760px) {
  .pdx-page .evo-arrow { width: 74px; margin: 0 6px; } .pdx-page .evo-how { max-width: 72px; font-size: 10.5px; padding: 2px 7px; }
  .pdx-page .evo-card { width: 132px; } .pdx-page .evo-pic { height: 110px; }
}

/* ---- game data v4: tiles, meters, gender bar ---- */
.pdx-page .gd-h { font: 800 12px var(--body); letter-spacing: .08em; text-transform: uppercase; color: var(--slate); margin: 6px 0 10px; }
.pdx-page .gd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin: 0 0 20px; }
.pdx-page .gd-tile { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 16px; box-shadow: var(--shadow-1); }
.pdx-page .gd-wide { grid-column: span 2; }
@media (max-width: 560px) { .pdx-page .gd-wide { grid-column: auto; } }
.pdx-page .gd-k { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.pdx-page .gd-v { font: 700 26px/1 var(--head); color: var(--ink); }
.pdx-page .gd-text { font-size: 20px; }
.pdx-page .gd-note { font-size: 12.5px; color: var(--slate); font-weight: 700; }
.pdx-page .gd-meter { height: 8px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.pdx-page .gd-meter i { display: block; height: 100%; border-radius: 999px; background: var(--tc); }
.pdx-page .gd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.pdx-page .gd-chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; font-weight: 800; font-size: 14px; }
.pdx-page .gd-chip b { color: var(--tc); filter: brightness(.8); }
.pdx-page .gd-gender { display: flex; height: 14px; border-radius: 999px; overflow: hidden; background: var(--bg); }
.pdx-page .gd-gender .gm { background: #4a8fe0; } .pdx-page .gd-gender .gf { background: #ec6aa0; }
.pdx-page .gd-legend { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; }
.pdx-page .gd-legend .lm { color: #2f6fc0; } .pdx-page .gd-legend .lf { color: #c63f7b; }
.pdx-page .pdx-gamedata .gd-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
